public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: insight@sourceware.org
Subject: breakpoint setting bug
Date: Sun, 21 Feb 2010 18:28:00 -0000	[thread overview]
Message-ID: <4B8171D2.3050802@gmail.com> (raw)

I've got too much stuff on my plate at the moment.
If this is insufficient, I'll try to do a better
test case later.  Sorry.


In the following code fragment, I set a breakpoint at "emit_file_text"
only to have insight/gdb to set it on line 1227 instead of 1219 or 1222.
Oops.

 	1211	static void
 	1212	emit_file_text (input, remaining_size, restore_name,
 	1213	                quoted_restore_name, split_flag)
 	1214	     FILE * input;
 	1215	     off_t remaining_size;
 	1216	     char const * restore_name;
 	1217	     char const * quoted_restore_name;
 	1218	     int * split_flag;
-	1219	{
 	1220	  char buffer[BUFSIZ];
 	1221	
-	1222	  while (fgets (buffer, BUFSIZ, input))
 	1223	    {
 	1224	
 	1225	      /* Output a line and test the length.  */
 	1226	
	1227	      if (!mandatory_prefix_mode

             reply	other threads:[~2010-02-21 17:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-21 18:28 Bruce Korb [this message]
2010-02-21 18:40 ` Keith Seitz
2010-02-21 19:09   ` Bruce Korb
2010-02-23 23:59     ` Keith Seitz

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=4B8171D2.3050802@gmail.com \
    --to=bruce.korb@gmail.com \
    --cc=insight@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).