projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use __asm__ rather than asm in gold testsuite
[deliverable/binutils-gdb.git]
/
sim
/
common
/
hw-handles.c
diff --git
a/sim/common/hw-handles.c
b/sim/common/hw-handles.c
index b850e47dc9ff8769a1eedf2d93412d131d981197..1f92cd4d2ed9869e834794344d89b82bb28a46d6 100644
(file)
--- a/
sim/common/hw-handles.c
+++ b/
sim/common/hw-handles.c
@@
-1,6
+1,6
@@
/* The common simulator framework for GDB, the GNU Debugger.
/* The common simulator framework for GDB, the GNU Debugger.
- Copyright 2002
, 2007, 2008, 2009, 201
0 Free Software Foundation, Inc.
+ Copyright 2002
-202
0 Free Software Foundation, Inc.
Contributed by Andrew Cagney and Red Hat.
Contributed by Andrew Cagney and Red Hat.
@@
-23,8
+23,12
@@
#include "hw-main.h"
#include "hw-base.h"
#include "hw-main.h"
#include "hw-base.h"
+#if HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
-struct hw_handle_mapping {
+struct hw_handle_mapping
+{
cell_word external;
struct hw *phandle;
struct hw_instance *ihandle;
cell_word external;
struct hw *phandle;
struct hw_instance *ihandle;
@@
-32,7
+36,8
@@
struct hw_handle_mapping {
};
};
-struct hw_handle_data {
+struct hw_handle_data
+{
int nr_mappings;
struct hw_handle_mapping *mappings;
};
int nr_mappings;
struct hw_handle_mapping *mappings;
};
@@
-155,7
+160,7
@@
hw_handle_add_ihandle (struct hw *hw,
struct hw_instance *internal)
{
struct hw_handle_data *db = hw->handles_of_hw;
struct hw_instance *internal)
{
struct hw_handle_data *db = hw->handles_of_hw;
- if (hw_handle_2ihandle (hw, internal) != 0)
+ if (hw_handle_2ihandle (hw, internal) != 0)
{
hw_abort (hw, "attempting to add an ihandle already in the data base");
}
{
hw_abort (hw, "attempting to add an ihandle already in the data base");
}
@@
-177,7
+182,7
@@
hw_handle_add_phandle (struct hw *hw,
struct hw *internal)
{
struct hw_handle_data *db = hw->handles_of_hw;
struct hw *internal)
{
struct hw_handle_data *db = hw->handles_of_hw;
- if (hw_handle_2phandle (hw, internal) != 0)
+ if (hw_handle_2phandle (hw, internal) != 0)
{
hw_abort (hw, "attempting to add a phandle already in the data base");
}
{
hw_abort (hw, "attempting to add a phandle already in the data base");
}
@@
-206,7
+211,7
@@
hw_handle_remove_ihandle (struct hw *hw,
{
struct hw_handle_mapping *delete = *current_map;
*current_map = delete->next;
{
struct hw_handle_mapping *delete = *current_map;
*current_map = delete->next;
-
z
free (delete);
+ free (delete);
return;
}
current_map = &(*current_map)->next;
return;
}
current_map = &(*current_map)->next;
@@
-227,12
+232,10
@@
hw_handle_remove_phandle (struct hw *hw,
{
struct hw_handle_mapping *delete = *current_map;
*current_map = delete->next;
{
struct hw_handle_mapping *delete = *current_map;
*current_map = delete->next;
-
z
free (delete);
+ free (delete);
return;
}
current_map = &(*current_map)->next;
}
hw_abort (hw, "attempt to remove nonexistant phandle");
}
return;
}
current_map = &(*current_map)->next;
}
hw_abort (hw, "attempt to remove nonexistant phandle");
}
-
-
This page took
0.024148 seconds
and
4
git commands to generate.