* Re: [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661
@ 2004-06-01 2:39 Michael Elizabeth Chastain
2004-06-01 3:09 ` Randolph Chung
0 siblings, 1 reply; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2004-06-01 2:39 UTC (permalink / raw)
To: cagney, mec.gnu; +Cc: gdb-patches, randolph
> Thanks. If you haven't guessed I'm waiting on the doco and hp to be
> resolved.
Actually, now that I understand this bug, I can say that gdb_6_1-branch
has no regressions versus gdb 6.1, right now. That makes me happy.
Randolph, what would you think of shipping 6.1.1 without any hp fixes?
Or with just my memset fix?
I've been thinking about those two possibilities. Right now there are
regressions in 21 different test scripts from gdb 6.1 to gdb HEAD. Some
of these are fake, and some of them will be fixed by my memset fix.
But there are still some real bugs in there, notably watchpoints.
I would prefer to fix all the regressions in HEAD; and by the time we do
that, 6.1.1 will be out the door, and it will be time to branch 6.2
(branch for 6.2 is scheduled for July, with release in August).
You've done most of the work so I defer to your judgement, though.
Michael C
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661
2004-06-01 2:39 [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661 Michael Elizabeth Chastain
@ 2004-06-01 3:09 ` Randolph Chung
0 siblings, 0 replies; 5+ messages in thread
From: Randolph Chung @ 2004-06-01 3:09 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: cagney, gdb-patches
> Randolph, what would you think of shipping 6.1.1 without any hp fixes?
> Or with just my memset fix?
How about:
your memset fix + the fix that will let us build 6.1 with hp C compiler
(the stuff for somsolib.c). We'll leave the rest of the fixes for 6.2.
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661
@ 2004-06-01 3:15 Michael Elizabeth Chastain
0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2004-06-01 3:15 UTC (permalink / raw)
To: randolph; +Cc: cagney, gdb-patches
> your memset fix + the fix that will let us build 6.1 with hp C compiler
> (the stuff for somsolib.c). We'll leave the rest of the fixes for 6.2.
Sounds really good. Can you throw me that hp-c patch, or a URL
for it?
Michael C
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661
2004-05-31 20:12 Michael Elizabeth Chastain
@ 2004-06-01 1:45 ` Andrew Cagney
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Cagney @ 2004-06-01 1:45 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: gdb-patches, randolph
> This patch fixes some uninitialized memory in the HP symbol
> table reader. See PR symtab/1661.
>
> I tested this on native hppa2.0w-hp-hpux11.11 with hpcc
> B.11.11.28706.GP and hpacc A.03.45.
>
> MAINTAINERS says that "Any [past] maintainer" can modify the hp/ux
> symtab reader, so I'm going to commit this in 24 hours if nobody
> objects. After that, I am also going to test it on gdb_6_1-branch
> and commit it to gdb_6_1-branch.
Thanks. If you haven't guessed I'm waiting on the doco and hp to be
resolved.
Andrew
(Must not suggest ...
#define ZALLOCA(TYPE) ((TYPE *) memset (alloca (sizeof (TYPE)), 0,
sizeof (TYPE))) ... ;-)
> 2004-05-31 Michael Chastain <mec.gnu@mindspring.com>
>
> Fix PR symtab/1661.
> * hpread.c (hpread_pxdb_needed): Call memset after alloca.
> (hpread_read_struct_type): Likewise.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661
@ 2004-05-31 20:12 Michael Elizabeth Chastain
2004-06-01 1:45 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-31 20:12 UTC (permalink / raw)
To: gdb-patches, randolph
This patch fixes some uninitialized memory in the HP symbol
table reader. See PR symtab/1661.
I tested this on native hppa2.0w-hp-hpux11.11 with hpcc
B.11.11.28706.GP and hpacc A.03.45.
MAINTAINERS says that "Any [past] maintainer" can modify the hp/ux
symtab reader, so I'm going to commit this in 24 hours if nobody
objects. After that, I am also going to test it on gdb_6_1-branch
and commit it to gdb_6_1-branch.
Michael C
2004-05-31 Michael Chastain <mec.gnu@mindspring.com>
Fix PR symtab/1661.
* hpread.c (hpread_pxdb_needed): Call memset after alloca.
(hpread_read_struct_type): Likewise.
Index: hpread.c
===================================================================
RCS file: /cvs/src/src/gdb/hpread.c,v
retrieving revision 1.48
diff -c -3 -p -r1.48 hpread.c
*** hpread.c 7 May 2004 05:48:49 -0000 1.48
--- hpread.c 31 May 2004 02:04:14 -0000
*************** hpread_pxdb_needed (bfd *sym_bfd)
*** 383,388 ****
--- 383,389 ----
if (header_section_size == (bfd_size_type) sizeof (DOC_info_PXDB_header))
{
buf = alloca (sizeof (DOC_info_PXDB_header));
+ memset (buf, 0, sizeof (DOC_info_PXDB_header));
if (!bfd_get_section_contents (sym_bfd,
header_section,
*************** hpread_pxdb_needed (bfd *sym_bfd)
*** 450,455 ****
--- 451,457 ----
{
buf = alloca (sizeof (PXDB_header));
+ memset (buf, 0, sizeof (PXDB_header));
if (!bfd_get_section_contents (sym_bfd,
header_section,
buf, 0,
*************** hpread_read_struct_type (dnttpointer hp_
*** 3686,3691 ****
--- 3688,3694 ----
/* Get space to record the next field/data-member. */
new = (struct nextfield *) alloca (sizeof (struct nextfield));
+ memset (new, 0, sizeof (struct nextfield));
new->next = list;
list = new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 3764,3769 ****
--- 3767,3773 ----
n_templ_args++;
/* Allocate and fill in a struct next_template */
t_new = (struct next_template *) alloca (sizeof (struct next_template));
+ memset (t_new, 0, sizeof (struct next_template));
t_new->next = t_list;
t_list = t_new;
t_list->arg.name = VT (objfile) + fieldp->dtempl_arg.name;
*************** hpread_read_struct_type (dnttpointer hp_
*** 3904,3909 ****
--- 3908,3914 ----
/* Get space to record this member function */
/* Note: alloca used; this will disappear on routine exit */
fn_new = (struct next_fn_field *) alloca (sizeof (struct next_fn_field));
+ memset (fn_new, 0, sizeof (struct next_fn_field));
fn_new->next = fn_list;
fn_list = fn_new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 4021,4026 ****
--- 4026,4032 ----
/* Get space to record this static member */
new = (struct nextfield *) alloca (sizeof (struct nextfield));
+ memset (new, 0, sizeof (struct nextfield));
new->next = list;
list = new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 4051,4056 ****
--- 4057,4063 ----
warning ("Debug info inconsistent: FIELD of anonymous union doesn't have a_union bit set");
/* Get space to record the next field/data-member. */
new = (struct nextfield *) alloca (sizeof (struct nextfield));
+ memset (new, 0, sizeof (struct nextfield));
new->next = list;
list = new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 4082,4087 ****
--- 4089,4095 ----
warning ("Debug info inconsistent: SVAR field in anonymous union doesn't have a_union bit set");
/* Get space to record the next field/data-member. */
new = (struct nextfield *) alloca (sizeof (struct nextfield));
+ memset (new, 0, sizeof (struct nextfield));
new->next = list;
list = new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 4102,4107 ****
--- 4110,4116 ----
warning ("Debug info inconsistent: DVAR field in anonymous union doesn't have a_union bit set");
/* Get space to record the next field/data-member. */
new = (struct nextfield *) alloca (sizeof (struct nextfield));
+ memset (new, 0, sizeof (struct nextfield));
new->next = list;
list = new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 4150,4155 ****
--- 4159,4165 ----
/* Get space to record the next field/data-member. */
new = (struct nextfield *) alloca (sizeof (struct nextfield));
+ memset (new, 0, sizeof (struct nextfield));
new->next = list;
list = new;
*************** hpread_read_struct_type (dnttpointer hp_
*** 4233,4238 ****
--- 4243,4249 ----
break;
i_new = (struct next_instantiation *) alloca (sizeof (struct next_instantiation));
+ memset (i_new, 0, sizeof (struct next_instantiation));
i_new->next = i_list;
i_list = i_new;
i_list->t = hpread_type_lookup (field, objfile);
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-06-01 3:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-01 2:39 [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661 Michael Elizabeth Chastain
2004-06-01 3:09 ` Randolph Chung
-- strict thread matches above, loose matches on Subject: below --
2004-06-01 3:15 Michael Elizabeth Chastain
2004-05-31 20:12 Michael Elizabeth Chastain
2004-06-01 1:45 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox