[illumos-Developer] webrev #953 amd64 mdb chews arguments to ::run?
Adam Leventhal
ahl at delphix.com
Mon May 16 10:43:03 PDT 2011
Looks good to me; thanks for maintaining mdb.
Adam
On Mon, May 16, 2011 at 1:38 AM, Alexander Eremin
<alexander.eremin at nexenta.com> wrote:
> This fix replaces strncpy/strcpy, which in 64bit mode affected for
> overlap, with memmove.
> webrev: http://cr.opensolaris.org/~alhazred/i953/
> Results:
>
> ~$ cat test.c
> #include <stdio.h>
>
> int
> main(int argc, char **argv)
> {
> int i;
> for (i = 1; argv[i] != NULL; i++)
> printf("%s ", argv[i]);
> printf("\n");
> return 0;
> }
>
> ~$ cc -m64 -o test test.c
>
> ~$ ./x -d -i '"pci1814,601"' rtls
> -d -i "pci1814,601" rtls
>
> ~$ mdb ./test
>> :r -d -i '"pci1814,601"' rtls
> -d -i "pci1814,601" rtls
> mdb: target has terminated
>>
>
> ~# mdb /usr/sbin/amd64/dtrace
>> :r -n 'pid$target::main:entry,pid$target::main:return' -c '/bin/date'
> mdb: forksys detected: follow (p)arent or (c)hild? p
> mdb: target forked child process 121673 (debugger following parent)
> dtrace: description 'pid$target::main:entry,pid$target::main:return' matched
> 2 probes
> Mon May 16 12:18:34 MSD 2011
> dtrace: pid 121673 has exited
> CPU ID FUNCTION:NAME
> 1 66976 main:entry
> 1 66977 main:return
>
> mdb: target has terminated
> >
>
>
> Thanks,
> :: Alexander
>
>
>
>
>
>
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer
>
>
--
Adam Leventhal, Delphix
http://dtrace.org/blogs/ahl
275 Middlefield Road, Suite 50
Menlo Park, CA 94025
http://www.delphix.com
More information about the Developer
mailing list