1. GNU gdb 4.18
2. HP-UX avis B.10.20 A 9000/780 2008865022 two-user license
3. gcc version 2.95.2 was used to compile gdb and the test case source
code.
4. the only command line option fot compiling the test case source code
was -ggdb
5. here's the source file:

#include <stdlib.h>

main()
{
    printf("hello world");
    return(0);
}

of course this crash occurs on any source code that i have tried.

6. i bring up gdb with the executable and set a breakpoint on main. when
gdb stops i type in the following command:

(gdb) set $a="abba"

gdb then responds with the following:

rogram received signal SIGSEGV, Segmentation fault.
0x7af585e8 in malloc () from /usr/lib/libc.1
The program being debugged stopped while in a function called from GDB.
When the function (malloc) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).

essentially i am not able to store an array of characters at all. i
cannot even call a function with a string variable like so:

p $out=function("abba")

this exibits the same behavior.

i have been able to do this on other platforms, such as solaris, linux,
aix using gdb 4.18. it only seems to fail on hp10.20 (of course it works
on hp11.0 but i really need it for hp10.20). any help would be
appreciated.

bill schilp

begin:vcard 
n:Schilp;William J.
tel;work:(978)441-4373
x-mozilla-html:TRUE
org:Quickturn Design Systems, Inc.;R&D, Backend
adr:;;41 Wellman Str.;Lowell;MA;01851;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
x-mozilla-cpt:;32160
fn:William J. Schilp
end:vcard

Reply via email to