gdb/gdb-6.3-bz193763-object-name-completion.patch
Jan Kratochvil f517af0a0a - Bugfix segv on the source display by ^X 1 (fixes Patch130, BZ 200048).
- Do not step into the PPC solib trampolines (BZ 200533).
- Fix exec() from threaded program, partial CVS backport (BZ 182116).
- Fix occasional failure to load shared libraries (BZ 146810).
- Bugfix object names completion (fixes Patch116, BZ 193763).
- Avoid crash of 'info threads' if stale threads exist (BZ 195429).
- Handle corrupted or missing location list information (BZ 196439).
2006-08-20 17:41:36 +00:00

16 lines
648 B
Diff

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193763
diff -u -r gdb-6.3-old/gdb/linespec.c gdb-6.3/gdb/linespec.c
--- gdb-6.3-old/gdb/linespec.c 2006-06-01 13:43:12.000000000 +0100
+++ gdb-6.3/gdb/linespec.c 2006-06-01 13:44:14.000000000 +0100
@@ -293,7 +293,7 @@
This will give us a list of all the member names including
the function signature. */
completion_name = xmalloc (strlen (class_name) +
- strlen (member_name) + 9);
+ strlen (member_name) + strlen("'::$base(") + 1);
completion_name[0] = '\'';
strcpy (completion_name+1, class_name);
/* FIXME: make this the language class separator. */