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 breakpoints/20653] New: string_to_explicit_location has some weird code


https://sourceware.org/bugzilla/show_bug.cgi?id=20653

            Bug ID: 20653
           Summary: string_to_explicit_location has some weird code
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

This comes from bug 20613 and http://www.viva64.com/en/b/0430/

string_to_explicit_location compares a char* against '\0':

  if (argp == NULL
      || *argp == '\0'

That second comparison should probably be == NULL

-- 
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]