Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Kill last SECT_OFF_MAX (somread.c)
@ 2003-07-09 17:25 Joel Brobecker
  2003-07-09 17:56 ` Elena Zannoni
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2003-07-09 17:25 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

This is a patch I forgot to submit. It fixes a compilation error on
HP/UX and finally kills the last instance of SECT_OFF_MAX.

2003-07-09  Joel Brobecker  <brobecker@gnat.com>

        * somread.c (som_symfile_offsets): Fix compilation error.

Ok to apply mainline and branch?

Thanks,
-- 
Joel

[-- Attachment #2: somread.c.diff --]
[-- Type: text/plain, Size: 1029 bytes --]

Index: somread.c
===================================================================
RCS file: /cvs/src/src/gdb/somread.c,v
retrieving revision 1.19
diff -c -3 -p -r1.19 somread.c
*** somread.c	6 Jun 2003 23:32:59 -0000	1.19
--- somread.c	9 Jul 2003 17:17:44 -0000
*************** som_symfile_offsets (struct objfile *obj
*** 453,459 ****
        /* Note: Here is OK to compare with ".text" because this is the
           name that gdb itself gives to that section, not the SOM
           name. */
!       for (i = 0; i < SECT_OFF_MAX && addrs->other[i].name; i++)
  	if (strcmp (addrs->other[i].name, ".text") == 0)
  	  break;
        text_addr = addrs->other[i].addr;
--- 453,459 ----
        /* Note: Here is OK to compare with ".text" because this is the
           name that gdb itself gives to that section, not the SOM
           name. */
!       for (i = 0; i < objfile->num_sections && addrs->other[i].name; i++)
  	if (strcmp (addrs->other[i].name, ".text") == 0)
  	  break;
        text_addr = addrs->other[i].addr;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] Kill last SECT_OFF_MAX (somread.c)
  2003-07-09 17:25 [RFA] Kill last SECT_OFF_MAX (somread.c) Joel Brobecker
@ 2003-07-09 17:56 ` Elena Zannoni
  2003-07-09 18:52   ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Elena Zannoni @ 2003-07-09 17:56 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

Joel Brobecker writes:
 > This is a patch I forgot to submit. It fixes a compilation error on
 > HP/UX and finally kills the last instance of SECT_OFF_MAX.
 > 
 > 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
 > 
 >         * somread.c (som_symfile_offsets): Fix compilation error.
 > 
 > Ok to apply mainline and branch?
 > 

yes, thanks
elena

 > Thanks,
 > -- 
 > Joel
 > Index: somread.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/somread.c,v
 > retrieving revision 1.19
 > diff -c -3 -p -r1.19 somread.c
 > *** somread.c	6 Jun 2003 23:32:59 -0000	1.19
 > --- somread.c	9 Jul 2003 17:17:44 -0000
 > *************** som_symfile_offsets (struct objfile *obj
 > *** 453,459 ****
 >         /* Note: Here is OK to compare with ".text" because this is the
 >            name that gdb itself gives to that section, not the SOM
 >            name. */
 > !       for (i = 0; i < SECT_OFF_MAX && addrs->other[i].name; i++)
 >   	if (strcmp (addrs->other[i].name, ".text") == 0)
 >   	  break;
 >         text_addr = addrs->other[i].addr;
 > --- 453,459 ----
 >         /* Note: Here is OK to compare with ".text" because this is the
 >            name that gdb itself gives to that section, not the SOM
 >            name. */
 > !       for (i = 0; i < objfile->num_sections && addrs->other[i].name; i++)
 >   	if (strcmp (addrs->other[i].name, ".text") == 0)
 >   	  break;
 >         text_addr = addrs->other[i].addr;


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] Kill last SECT_OFF_MAX (somread.c)
  2003-07-09 17:56 ` Elena Zannoni
@ 2003-07-09 18:52   ` Joel Brobecker
  0 siblings, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2003-07-09 18:52 UTC (permalink / raw)
  To: Elena Zannoni; +Cc: gdb-patches

>  > 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
>  > 
>  >         * somread.c (som_symfile_offsets): Fix compilation error.
>  > 
>  > Ok to apply mainline and branch?
>  > 
> 
> yes, thanks

Thank you. It's in.

-- 
Joel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-09 18:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-09 17:25 [RFA] Kill last SECT_OFF_MAX (somread.c) Joel Brobecker
2003-07-09 17:56 ` Elena Zannoni
2003-07-09 18:52   ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox