This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tui/13378] New: gdbtui updates source window for non-stoppingconditional breakpoints


http://sourceware.org/bugzilla/show_bug.cgi?id=13378

             Bug #: 13378
           Summary: gdbtui updates source window for non-stopping
                    conditional breakpoints
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


gdbtui updates the source window for non-stopping conditional breakpoints.
This unnecessarily slows things down.

Repro:

#include <stdlib.h>

void foo (int x) { }
void bar (int x) { }

int
main ()
{
  int i;

  for (i = 0; i < 1000; ++i)
    {
      if (i % 2 == 0)
    {
      foo (i);
      bar (i);
    }
      else
    {
      bar (i);
      foo (i);
    }
      sleep (1);
    }

  return 0;
}

bash$ gdbtui a.out
(gdb) b foo if x == 42
(gdb) b bar if x == 52
(gdb) run

and watch the cursor bounce back and forth between foo and bar.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]