History log of /haiku/src/kits/debug/SymbolLookup.h
Revision Date Author Comments
# 196ab88d 30-Apr-2013 Rene Gollent <anevilyak@gmail.com>

Extend debug_create_symbol_lookup_context().

- debug_create_symbol_lookup_context() now takes an image ID
parameter that can optionally be used to restrict the symbols
it gathers to only those of the targeted image rather than the
entire team, allowing for significantly more lightweight usage
when the desired image is known. The previous behavior can still
be obtained if desired by passing -1 as said ID.

- Adjust callers.


# a731ad19 07-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

ELF64 and x86_64 support in the debug kit.


# 9774f385 03-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added debug_get_symbol(). It's not implemented particularly efficiently, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31392 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 73677f78 12-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Some refactoring: There are three ways to access the symbols of an image.
Formerly two were implemented in ImageFile (from file, via syscalls) and one
in SymbolLookup (via the debugger interface). Now there's a base class Image
and respective derived classes implementing those methods.
* Simplified SymbolIterator.
* Moved the classes into sub-namespace BPrivate::Debug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30142 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0be39a3a 22-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Rather use the new _kern_read_kernel_image_symbols() syscall to use
kernel image symbol tables.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27688 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7ada3268 21-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Also store the string table size for an image. This helps to improve the
symbol name len check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27682 a95241bf-73f2-0310-859d-f6bbb57e9c96


# abb2df34 18-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* SymbolLookup: Implemented loading the symbol tables from the shared
object files. Thus static functions will be found, too.
* debug_lookup_symbol_address() and debug_next_image_symbol() no longer
need to read the symbol name via the debugger API, since the
respective SymbolLookup methods compute the length of the symbol name
that can safely be accessed locally, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27628 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eb333098 17-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Added work-around for a runtime loader problem after fork(). Its image
structures still have the parent IDs, so finding an image by ID would
fail in this case. We do now fall back to getting the image's text base
address and finding the image by address.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27607 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68e6763b 14-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Added functionality for iterating through the symbols of a debugged
team's image to libdebug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27526 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a323d35 16-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added support for looking up symbols of other team to libdebug. The
debug_server uses this feature to print stack traces with symbols.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13698 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 196ab88d06ca479b6d6ab2ab974c1dd0c899a088 30-Apr-2013 Rene Gollent <anevilyak@gmail.com>

Extend debug_create_symbol_lookup_context().

- debug_create_symbol_lookup_context() now takes an image ID
parameter that can optionally be used to restrict the symbols
it gathers to only those of the targeted image rather than the
entire team, allowing for significantly more lightweight usage
when the desired image is known. The previous behavior can still
be obtained if desired by passing -1 as said ID.

- Adjust callers.


# a731ad19e680a5ec387be3e4345445cadcd75fb4 07-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

ELF64 and x86_64 support in the debug kit.


# 9774f385b5b79b1128c47b270f9c9ec54fc1cd90 03-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added debug_get_symbol(). It's not implemented particularly efficiently, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31392 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 73677f785acf3360a0194dbd2d243fa9d56c9782 12-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Some refactoring: There are three ways to access the symbols of an image.
Formerly two were implemented in ImageFile (from file, via syscalls) and one
in SymbolLookup (via the debugger interface). Now there's a base class Image
and respective derived classes implementing those methods.
* Simplified SymbolIterator.
* Moved the classes into sub-namespace BPrivate::Debug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30142 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0be39a3a0db8333e609e12392e064f8e9fa63ddd 22-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Rather use the new _kern_read_kernel_image_symbols() syscall to use
kernel image symbol tables.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27688 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7ada326834bed8264812b4ff99ce5ac2ec7f5567 21-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Also store the string table size for an image. This helps to improve the
symbol name len check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27682 a95241bf-73f2-0310-859d-f6bbb57e9c96


# abb2df34ee5bc3fbb3f47fae3f7969dfe4126348 18-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* SymbolLookup: Implemented loading the symbol tables from the shared
object files. Thus static functions will be found, too.
* debug_lookup_symbol_address() and debug_next_image_symbol() no longer
need to read the symbol name via the debugger API, since the
respective SymbolLookup methods compute the length of the symbol name
that can safely be accessed locally, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27628 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eb333098fe361d36e330fe35707a75a21b18686f 17-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Added work-around for a runtime loader problem after fork(). Its image
structures still have the parent IDs, so finding an image by ID would
fail in this case. We do now fall back to getting the image's text base
address and finding the image by address.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27607 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68e6763b074c48a3e3302b2162031c71110abe51 14-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Added functionality for iterating through the symbols of a debugged
team's image to libdebug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27526 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a323d3533ed56555d16790d139f139e35b82a1f 16-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added support for looking up symbols of other team to libdebug. The
debug_server uses this feature to print stack traces with symbols.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13698 a95241bf-73f2-0310-859d-f6bbb57e9c96