Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Grace Sainsbury <graces@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: breakpoint error messages
Date: Thu, 22 Aug 2002 14:38:00 -0000	[thread overview]
Message-ID: <20020822173220.A12466@tomago.toronto.redhat.com> (raw)
In-Reply-To: <3D655542.AF3065A0@redhat.com>; from msnyder@redhat.com on Thu, Aug 22, 2002 at 02:18:58PM -0700

On Thu, Aug 22, 2002 at 02:18:58PM -0700, Michael Snyder wrote:
> Grace Sainsbury wrote:
> > 
> > I changed insert_breakpoints to collect all the warning messages from
> > failed inserts and print them with an error after trying the whole
> > queue. This changes the functionality slightly -- the old code stopped
> > after the first failed insert of a breakpoint. I also changed the
> > error messages to be more explicit about hardware breakpoints.
> > 
> > ok?
> 
> Grace, thanks for the contribution.  A few implementation details.
> First off, you've lost some output.
> 1) The word "Warning: ", which is generated by the 'warning' function
> (which you've replaced by fprintf_unfiltered).  One instance would
> probably be enough.

ok.

> 2) The output of the 'memory_error' function.

The original purpose of the change was to remove that text
'Cannot access memory address XXXXX' doesn't seem to be meaningful in
this context.

> 3) The msg "The same program may be running in another process"

I'll add that back.

> 4) The output of print_sys_errmsg, formerly called by infrun.

This printed 'Unknown error' which seems to be uninformative.

> 
> Do you think you could work those back in?
> 
> Then, just some textual edits.  In one comment you say
> "If there wat an error", where you probably meant to say 'was'.
> And there's this:
>     if (hw_breakpoint_error)
>        fprintf_unfiltered (tmp_error_stream, 
> 		"Could not insert breakpoints: ..."
> 
> Seems like you might as well say "hardware breakpoints" there.

ok.

let me know if you really want the memory_error, print_sys_errmsg text
back. 

thanks,

grace


  reply	other threads:[~2002-08-22 21:32 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 [this message]
2002-08-22 15:26     ` Michael Snyder
2002-08-23  9:27       ` Grace Sainsbury
2002-08-23 11:51         ` Michael Snyder
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=20020822173220.A12466@tomago.toronto.redhat.com \
    --to=graces@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@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