public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* breakpoint setting bug
@ 2010-02-21 18:28 Bruce Korb
  2010-02-21 18:40 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Korb @ 2010-02-21 18:28 UTC (permalink / raw)
  To: insight

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-21 19:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-21 18:28 breakpoint setting bug Bruce Korb
2010-02-21 18:40 ` Keith Seitz
2010-02-21 19:09   ` Bruce Korb
2010-02-23 23:59     ` Keith Seitz

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).