On Fri, 2003-06-13 at 14:40, Bryan Whitehead wrote:
> Mandrake 9.1 kernels (including the latest) still have problems when
> trying to use gdb. If I use any kernel from mdk9.0 the problem goes away.
>
> [EMAIL PROTECTED] ~]$ cat main.c
> #include <stdlib.h>
> #include <stdio.h>
>
>
> int main ( )
> {
> printf("hello world\n");
> }
> [EMAIL PROTECTED] ~]$ gcc -g main.c -o main
> [EMAIL PROTECTED] ~]$ gdb main
> GNU gdb 5.3-22mdk (Mandrake Linux)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i586-mandrake-linux-gnu"...
> (gdb) break 6
> Breakpoint 1 at 0x804834c: file main.c, line 6.
> (gdb) run
> Starting program: /home/driver/main
> Warning:
> Cannot insert breakpoint -2.
> Error accessing memory address 0x4000af50: Input/output error.
> The same program may be running in another process.
> (gdb)
>
>
> [EMAIL PROTECTED] ~]$ uname -a
> Linux mulan.jpl.nasa.gov 2.4.21-0.18mdkenterprise #1 SMP Wed Jun 4
> 11:44:12 MDT
> 2003 i686 unknown unknown GNU/Linux
> [EMAIL PROTECTED] ~]$
>
> Since our linux workstations are used heavily for development of
> internal software this creates serious problems for maintaining our
> workstations. We noe have to hack around getting older kernels installed
> so the workstation isn't useless. Please fix this problem.
>
> If Mandrake would like to witness this problem for themselves, I can
> arrange for a visit to the lab in pasadena, ca.
Brian,
As I cut and pasted main.c from this e-mail it wouldn't compile... do
to a number | (pipes) showing up. What I got was
#include <stdlib.h>
#include <stdio.h>
int main ( )
{
| | | | printf("hello world\n");
}
(I had to edit this to make them visible in the e-mail.)
but when I removed them.
#include <stdlib.h>
#include <stdio.h>
int main ( )
{
printf("hello world\n");
}
it worked fine here on 9.1 with gcc3. It's possible I guess that your
e-mail client inserted the pipes or mine did when cutting or pasting...
not sure. The important part is that it compiled, and ran, as expected.
What I'm running.
Mandrake 9.1
Kernel 2.4.21-18mdk (stock)
libgcc1-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk
gcc-3.2.2-3mdk
gcc-c++-3.2.2-3mdk
my uname -a
Linux jamlin.linuxpda.biz 2.4.21-0.18mdk #1 Wed Jun 4 12:38:37 MDT 2003
i686 unknown unknown GNU/Linux
If you note I'm not using the enterprise version of the kernel. I'm
instead using the standard. Since in my case our workstations don't
seem to benefit from it at all. (ie no performance change, or other
gain)
James
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com