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 cli/15377] New: completer ignores inlined functions


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

             Bug #: 15377
           Summary: completer ignores inlined functions
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
                CC: gbenson@redhat.com
    Classification: Unclassified


Completion on static functions
http://sourceware.org/ml/gdb/2013-04/msg00013.html

volatile int e;
static __attribute__ ((__always_inline__)) void
func_inlined (int a) {
  e = a;
}
static __attribute__ ((__noinline__)) void
func_notinlined (int a) {
  e = a;
}
int main (void) {
  func_inlined (1);
  func_notinlined (2);
  return 0;
}

gcc -o inlined4 inlined4.c -Wall -g -O2
# -O0 does not work, not sure why.

(gdb) break func_inlined
Breakpoint 1 at 0x400400: file inlined4.c, line 10.
(gdb) complete break func

Actual:
break func_notinlined
break func_notinlined.constprop.0

Expected:
break func_inlined
break func_notinlined
break func_notinlined.constprop.0

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