This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/15377] New: completer ignores inlined functions
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 18 Apr 2013 14:05:04 +0000
- Subject: [Bug cli/15377] New: completer ignores inlined functions
- Auto-submitted: auto-generated
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.