Added a image_debug_lookup_user_symbol_address() that one day may find symbol names
in user images - right now, it only finds the image name and base address. Fixed "images" debugger command - it actually acquired a mutex to dump the images... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14705 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2003-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _KERNEL_IMAGE_H
|
||||
#define _KERNEL_IMAGE_H
|
||||
|
||||
@@ -11,10 +11,18 @@
|
||||
|
||||
struct team;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern image_id register_image(struct team *team, image_info *info, size_t size);
|
||||
extern status_t unregister_image(struct team *team, image_id id);
|
||||
extern int32 count_images(struct team *team);
|
||||
extern status_t remove_images(struct team *team);
|
||||
|
||||
extern status_t image_debug_lookup_user_symbol_address(struct team *team,
|
||||
addr_t address, addr_t *_baseAddress, const char **_symbolName,
|
||||
const char **_imageName, bool *_exactMatch);
|
||||
extern status_t image_init(void);
|
||||
|
||||
// user-space exported calls
|
||||
@@ -26,4 +34,8 @@ extern status_t _user_get_next_image_info(team_id team, int32 *_cookie,
|
||||
image_info *userInfo, size_t size);
|
||||
extern status_t _user_get_image_info(image_id id, image_info *userInfo, size_t size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _KRENEL_IMAGE_H */
|
||||
|
||||
Reference in New Issue
Block a user