projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimize the performance of the group_setup function.
[deliverable/binutils-gdb.git]
/
gdb
/
solib-darwin.c
diff --git
a/gdb/solib-darwin.c
b/gdb/solib-darwin.c
index 03211cfb92a6a61baabb9ecab02dbd1985a95b39..121a7135c05130760d2067411a0a1df4001dc6d3 100644
(file)
--- a/
gdb/solib-darwin.c
+++ b/
gdb/solib-darwin.c
@@
-1,6
+1,6
@@
/* Handle Darwin shared libraries for GDB, the GNU Debugger.
/* Handle Darwin shared libraries for GDB, the GNU Debugger.
- Copyright (C) 2009-201
7
Free Software Foundation, Inc.
+ Copyright (C) 2009-201
8
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-67,7
+67,7
@@
struct gdb_dyld_all_image_infos
/* Current all_image_infos version. */
#define DYLD_VERSION_MIN 1
/* Current all_image_infos version. */
#define DYLD_VERSION_MIN 1
-#define DYLD_VERSION_MAX 1
4
+#define DYLD_VERSION_MAX 1
5
/* Per PSPACE specific data. */
struct darwin_info
/* Per PSPACE specific data. */
struct darwin_info
@@
-156,7
+156,7
@@
darwin_load_image_infos (struct darwin_info *info)
struct lm_info_darwin : public lm_info_base
{
/* The target location of lm. */
struct lm_info_darwin : public lm_info_base
{
/* The target location of lm. */
- CORE_ADDR lm_addr;
+ CORE_ADDR lm_addr
= 0
;
};
/* Lookup the value for a specific symbol. */
};
/* Lookup the value for a specific symbol. */
@@
-222,7
+222,7
@@
find_program_interpreter (void)
Note that darwin-nat.c implements pid_to_exec_file. */
static int
Note that darwin-nat.c implements pid_to_exec_file. */
static int
-open_symbol_file_object (
void *from_ttyp
)
+open_symbol_file_object (
int from_tty
)
{
return 0;
}
{
return 0;
}
@@
-296,7
+296,7
@@
darwin_current_sos (void)
newobj = XCNEW (struct so_list);
old_chain = make_cleanup (xfree, newobj);
newobj = XCNEW (struct so_list);
old_chain = make_cleanup (xfree, newobj);
- lm_info_darwin *li =
XCNEW (lm_info_darwin)
;
+ lm_info_darwin *li =
new lm_info_darwin
;
newobj->lm_info = li;
strncpy (newobj->so_name, file_path, SO_NAME_MAX_PATH_SIZE - 1);
newobj->lm_info = li;
strncpy (newobj->so_name, file_path, SO_NAME_MAX_PATH_SIZE - 1);
@@
-578,7
+578,9
@@
darwin_clear_solib (void)
static void
darwin_free_so (struct so_list *so)
{
static void
darwin_free_so (struct so_list *so)
{
- xfree (so->lm_info);
+ lm_info_darwin *li = (lm_info_darwin *) so->lm_info;
+
+ delete li;
}
/* The section table is built from bfd sections using bfd VMAs.
}
/* The section table is built from bfd sections using bfd VMAs.
@@
-646,9
+648,6
@@
darwin_bfd_open (char *pathname)
struct target_so_ops darwin_so_ops;
struct target_so_ops darwin_so_ops;
-/* -Wmissing-prototypes */
-extern initialize_file_ftype _initialize_darwin_solib;
-
void
_initialize_darwin_solib (void)
{
void
_initialize_darwin_solib (void)
{
This page took
0.025502 seconds
and
4
git commands to generate.