From: Michael Snyder <msnyder@redhat.com>
To: Grace Sainsbury <graces@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: breakpoint error messages
Date: Fri, 23 Aug 2002 11:51:00 -0000 [thread overview]
Message-ID: <3D668375.92B9FF9B@redhat.com> (raw)
In-Reply-To: <20020823115315.A13713@tomago.toronto.redhat.com>
Grace Sainsbury wrote:
>
> How about this?
>
> The memory_error is only relevant for memory
> breakpoints, and only insert_breakpoint returns an errno (the hardware
> and catcpoint functions return -1 on error)-- so the call to strerror
> prints the error when it is relevant, and so replaces print_sys_errmsg.
>
> grace
Much better, thanks. The only concern I still have is about the msg
"the same program may be running in another process". Your patch will
now print that message much more often than before, both because you
eliminated the #ifdef, and because you're going to print it any time
-any- error or warning occurs.
Even though we all hate ifdefs, I suggest you leave this one in,
since taking it out will result in a behavior change, and I suggest
you use another boolian variable to determine when it should be
printed (set the variable true at the point where the existing code
prints the message).
Given those changes, you can go ahead and check it in without
re-submitting.
Thanks,
Michael
next prev parent reply other threads:[~2002-08-23 18:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-21 11:26 Grace Sainsbury
2002-08-22 0:59 ` Eli Zaretskii
2002-08-22 14:24 ` Michael Snyder
2002-08-22 14:38 ` Grace Sainsbury
2002-08-22 15:26 ` Michael Snyder
2002-08-23 9:27 ` Grace Sainsbury
2002-08-23 11:51 ` Michael Snyder [this message]
2002-08-24 2:18 ` Eli Zaretskii
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=3D668375.92B9FF9B@redhat.com \
--to=msnyder@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=graces@redhat.com \
/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