projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: check for partial symtab presence in dwarf2_initialize_objfile
[deliverable/binutils-gdb.git]
/
opcodes
/
arc-ext.c
diff --git
a/opcodes/arc-ext.c
b/opcodes/arc-ext.c
index bf578871d768d57177386bdddc78a5cb16ab29e3..dc907772335f51b27a7e5637307e3d4a1c8ae7a8 100644
(file)
--- a/
opcodes/arc-ext.c
+++ b/
opcodes/arc-ext.c
@@
-1,5
+1,5
@@
/* ARC target-dependent stuff. Extension structure access functions
/* ARC target-dependent stuff. Extension structure access functions
- Copyright (C) 1995-20
19
Free Software Foundation, Inc.
+ Copyright (C) 1995-20
20
Free Software Foundation, Inc.
This file is part of libopcodes.
This file is part of libopcodes.
@@
-53,7
+53,7
@@
struct ExtAuxRegister
{
struct ExtAuxRegister
{
-
long
address;
+
unsigned
address;
char * name;
struct ExtAuxRegister * next;
};
char * name;
struct ExtAuxRegister * next;
};
@@
-191,8
+191,8
@@
create_map (unsigned char *block,
char *aux_name = xstrdup ((char *) (p + 6));
newAuxRegister->name = aux_name;
char *aux_name = xstrdup ((char *) (p + 6));
newAuxRegister->name = aux_name;
- newAuxRegister->address = (p[2] << 24) | (p[3] << 16)
-
| (p[4] << 8) | p[5]
;
+ newAuxRegister->address = (
((unsigned)
p[2] << 24) | (p[3] << 16)
+
| (p[4] << 8) | p[5])
;
newAuxRegister->next = arc_extension_map.auxRegisters;
arc_extension_map.auxRegisters = newAuxRegister;
break;
newAuxRegister->next = arc_extension_map.auxRegisters;
arc_extension_map.auxRegisters = newAuxRegister;
break;
@@
-245,17
+245,11
@@
destroy_map (void)
/* Free core registers. */
for (i = 0; i < NUM_EXT_CORE; i++)
/* Free core registers. */
for (i = 0; i < NUM_EXT_CORE; i++)
- {
- if (arc_extension_map.coreRegisters[i].name)
- free (arc_extension_map.coreRegisters[i].name);
- }
+ free (arc_extension_map.coreRegisters[i].name);
/* Free condition codes. */
for (i = 0; i < NUM_EXT_COND; i++)
/* Free condition codes. */
for (i = 0; i < NUM_EXT_COND; i++)
- {
- if (arc_extension_map.condCodes[i])
- free (arc_extension_map.condCodes[i]);
- }
+ free (arc_extension_map.condCodes[i]);
memset (&arc_extension_map, 0, sizeof (arc_extension_map));
}
memset (&arc_extension_map, 0, sizeof (arc_extension_map));
}
@@
-406,7
+400,7
@@
arcExtMap_condCodeName (int code)
/* Get the name of an extension auxiliary register. */
const char *
/* Get the name of an extension auxiliary register. */
const char *
-arcExtMap_auxRegName (
long
address)
+arcExtMap_auxRegName (
unsigned
address)
{
/* Walk the list of auxiliary register names and find the name. */
struct ExtAuxRegister *r;
{
/* Walk the list of auxiliary register names and find the name. */
struct ExtAuxRegister *r;
@@
-438,7
+432,7
@@
build_ARC_extmap (bfd *text_bfd)
sizeof (".gnu.linkonce.arcextmap.") - 1)
|| !strcmp (sect->name,".arcextmap"))
{
sizeof (".gnu.linkonce.arcextmap.") - 1)
|| !strcmp (sect->name,".arcextmap"))
{
- bfd_size_type count = bfd_
get_
section_size (sect);
+ bfd_size_type count = bfd_section_size (sect);
unsigned char* buffer = xmalloc (count);
if (buffer)
unsigned char* buffer = xmalloc (count);
if (buffer)
@@
-463,7
+457,7
@@
dump_ARC_extmap (void)
while (r)
{
while (r)
{
- printf ("AUX : %s %
ld
\n", r->name, r->address);
+ printf ("AUX : %s %
u
\n", r->name, r->address);
r = r->next;
}
r = r->next;
}
This page took
0.026113 seconds
and
4
git commands to generate.