Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org>
To: Hans-Peter Nilsson <hp@axis.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 10/12] sim: Add sim_dump_memory for debugging
Date: Thu, 17 Feb 2022 00:30:40 -0500	[thread overview]
Message-ID: <Yg3dgKaQS3GsKLGY@vapier> (raw)
In-Reply-To: <20220217020545.1A52420434@pchp3.se.axis.com>

[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]

On 17 Feb 2022 03:05, Hans-Peter Nilsson wrote:
> > On 15 Feb 2022 00:06, Hans-Peter Nilsson via Gdb-patches wrote:
> > > --- a/sim/common/sim-memopt.c
> > > +++ b/sim/common/sim-memopt.c
> > >
> > > +/* Convenience function for use when debugging the simulator.  */
> > 
> > can you clarify that it's meant for an attached debugger to call vs a
> > manual call from within the sim itself ?  i know your commit message
> > said that, but the code comment would help too.
> > 
> > i vaguely recall seeing another such hook point in the
> > tree.
> 
> That *could* have been in gdbinit.in a.k.a. .gdbinit.

hrm, maybe.  i want to say it was real code.  maybe in one of the ports.
at any rate, prob not worth diving deeper for now.

> Speaking of that, I just noticed there's no .gdbinit in
> sim/<any> anymore.  They aren't build from sim/common/gdbinit.in
> apparently due to some mixup of @SIM_COMMON_BUILD_FALSE@ and/or
> @SIM_COMMON_BUILD_TRUE@ which seems to have been introduced in
> your 36bb57e40c506.  (No, not planning on going there.)

thanks for pointing this out.  it was left behind because it has a configure
dependency on cgen ports and i hadn't figured out how to unwind that.  but
from playing around a bit, i think we can just always set the breakpoint.
if the symbol doesn't exist, gdb will warn, but that's it.  if you know how
to get it to not complain, i'm all ears.
-mike

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-02-17  5:31 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14 22:58 [PATCH 00/12] A little TLC for the simulators (in particular CRIS) Hans-Peter Nilsson via Gdb-patches
2022-02-14 22:59 ` [PATCH 01/12] sim cris: Correct PRIu32 to PRIx32 Hans-Peter Nilsson via Gdb-patches
2022-02-16  4:43   ` Mike Frysinger via Gdb-patches
2022-02-14 23:02 ` [PATCH 03/12] sim/testsuite: Set global_cc_os also when no compiler is found Hans-Peter Nilsson via Gdb-patches
2022-02-16  4:42   ` Mike Frysinger via Gdb-patches
2022-02-14 23:02 ` [PATCH 04/12] sim/testsuite/cris/c: Use -sim3 but only for newlib targets Hans-Peter Nilsson via Gdb-patches
2022-02-15 17:43   ` Dimitar Dimitrov
2022-02-15 22:49     ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  5:25   ` Mike Frysinger via Gdb-patches
2022-02-16  6:07     ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  7:34       ` Mike Frysinger via Gdb-patches
2022-02-16  5:39   ` Mike Frysinger via Gdb-patches
2022-02-16  6:09     ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  7:17       ` Mike Frysinger via Gdb-patches
2022-02-16 15:27         ` Hans-Peter Nilsson via Gdb-patches
2022-02-14 23:03 ` [PATCH 06/12] sim/testsuite: Support "requires: simoption <--name-of-option>" Hans-Peter Nilsson via Gdb-patches
2022-02-16  4:49   ` Mike Frysinger via Gdb-patches
2022-02-16  6:24     ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  7:09       ` Mike Frysinger via Gdb-patches
2022-02-16 15:25         ` Hans-Peter Nilsson via Gdb-patches
2022-02-14 23:05 ` [PATCH 08/12] sim cris: Unbreak --disable-sim-hardware builds Hans-Peter Nilsson via Gdb-patches
2022-02-16  4:51   ` Mike Frysinger via Gdb-patches
2022-02-16  5:54     ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  6:48       ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  7:15       ` Mike Frysinger via Gdb-patches
2022-02-14 23:05 ` [PATCH 09/12] sim: Fix use of out-of-tree assembler and linker when testing Hans-Peter Nilsson via Gdb-patches
2022-02-16  5:03   ` Mike Frysinger via Gdb-patches
2022-02-14 23:06 ` [PATCH 10/12] sim: Add sim_dump_memory for debugging Hans-Peter Nilsson via Gdb-patches
2022-02-16  5:02   ` Mike Frysinger via Gdb-patches
2022-02-16  6:10     ` Hans-Peter Nilsson via Gdb-patches
2022-02-16  6:41     ` Hans-Peter Nilsson via Gdb-patches
2022-02-17  2:05     ` Hans-Peter Nilsson via Gdb-patches
2022-02-17  5:30       ` Mike Frysinger via Gdb-patches [this message]
2022-02-14 23:07 ` [PATCH 11/12] sim/testsuite/cris: Remove faulty use of basename in C tests Hans-Peter Nilsson via Gdb-patches
2022-02-16  4:57   ` Mike Frysinger via Gdb-patches
2022-02-16  6:44     ` Hans-Peter Nilsson via Gdb-patches

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=Yg3dgKaQS3GsKLGY@vapier \
    --to=gdb-patches@sourceware.org \
    --cc=hp@axis.com \
    --cc=vapier@gentoo.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