source: rtems/contrib/crossrpms/patches/gdb-6.6-rtems4.8-20070306.diff @ 84f86cb

4.104.114.95
Last change on this file since 84f86cb was 41c3ed9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/06/07 at 12:53:35

New (Incorporate Joels patch to increase mem-sizes for erc32 sim.)

  • Property mode set to 100644
File size: 4.4 KB
  • bfd/sysdep.h

    diff -uNr gdb-6.6.orig/bfd/sysdep.h gdb-6.6-rtems4.8-20070306/bfd/sysdep.h
    old new  
    135135#endif
    136136
    137137#if !HAVE_DECL_STRSTR
    138 extern char *strstr ();
     138/* extern char *strstr (); */
    139139#endif
    140140
    141141#ifdef HAVE_FTELLO
  • gdb/arch-utils.c

    diff -uNr gdb-6.6.orig/gdb/arch-utils.c gdb-6.6-rtems4.8-20070306/gdb/arch-utils.c
    old new  
    349349};
    350350static const char *set_endian_string;
    351351
     352enum bfd_endian
     353selected_byte_order (void)
     354{
     355  if (target_byte_order_user != BFD_ENDIAN_UNKNOWN)
     356    return TARGET_BYTE_ORDER;
     357  else
     358    return BFD_ENDIAN_UNKNOWN;
     359}
     360
    352361/* Called by ``show endian''.  */
    353362
    354363static void
  • gdb/arch-utils.h

    diff -uNr gdb-6.6.orig/gdb/arch-utils.h gdb-6.6-rtems4.8-20070306/gdb/arch-utils.h
    old new  
    126126
    127127extern int legacy_register_sim_regno (int regnum);
    128128
     129/* Return the selected byte order, or BFD_ENDIAN_UNKNOWN if no byte
     130   order was explicitly selected.  */
     131extern enum bfd_endian selected_byte_order (void);
     132
    129133/* Return the selected architecture's name, or NULL if no architecture
    130134   was explicitly selected.  */
    131135extern const char *selected_architecture_name (void);
  • gdb/ChangeLog.rtems

    diff -uNr gdb-6.6.orig/gdb/ChangeLog.rtems gdb-6.6-rtems4.8-20070306/gdb/ChangeLog.rtems
    old new  
     12007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
     2
     3        * arch-utils.c (selected_byte_order): New.
     4        * arch-utils.h (selected_byte_order): New prototype.
     5        * remote-sim.c (gdbsim_open): Use selected_byte_order.
     6
  • gdb/memory-map.c

    diff -uNr gdb-6.6.orig/gdb/memory-map.c gdb-6.6-rtems4.8-20070306/gdb/memory-map.c
    old new  
    141141        {
    142142          if (strcmp (data->property_name, "blocksize") == 0)
    143143            {
     144              char *end = NULL;
    144145              if (!data->character_data)
    145146                throw_error (XML_PARSE_ERROR,
    146147                             _("Empty content of 'property' element"));
    147               char *end = NULL;
    148148              data->currently_parsing->attrib.blocksize
    149149                = strtoul (data->character_data, &end, 0);
    150150              if (*end != '\0')
  • gdb/remote-sim.c

    diff -uNr gdb-6.6.orig/gdb/remote-sim.c gdb-6.6-rtems4.8-20070306/gdb/remote-sim.c
    old new  
    504504         + 50) /* slack */ ;
    505505  arg_buf = (char *) alloca (len);
    506506  strcpy (arg_buf, "gdbsim");   /* 7 */
    507   /* Specify the byte order for the target when it is both selectable
    508      and explicitly specified by the user (not auto detected). */
    509   switch (TARGET_BYTE_ORDER)
     507  /* Specify the byte order for the target when it is explicitly
     508     specified by the user (not auto detected). */
     509  switch (selected_byte_order ())
    510510    {
    511511    case BFD_ENDIAN_BIG:
    512512      strcat (arg_buf, " -E big");
  • sim/erc32/erc32.c

    diff -uNr gdb-6.6.orig/sim/erc32/erc32.c gdb-6.6-rtems4.8-20070306/sim/erc32/erc32.c
    old new  
    413413    if (rom8) mec_memcfg &= ~0x20000;
    414414    else mec_memcfg |= 0x20000;
    415415
    416     mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
     416    mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
    417417    mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
    418418
    419419    if (sparclite_board) {
  • sim/erc32/exec.c

    diff -uNr gdb-6.6.orig/sim/erc32/exec.c gdb-6.6-rtems4.8-20070306/sim/erc32/exec.c
    old new  
    17131713            sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1];
    17141714            sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1];
    17151715    default:
    1716       ;
     1716      break;
    17171717    }
    17181718#endif
    17191719
     
    18861886        sregs->fs[rd & ~1] = sregs->fdp[rd | 1];
    18871887        sregs->fs[rd | 1] = sregs->fdp[rd & ~1];
    18881888    default:
    1889       ;
     1889      break;
    18901890    }
    18911891#endif
    18921892    if (sregs->fpstate == FP_EXC_PE) {
Note: See TracBrowser for help on using the repository browser.