History log of /haiku-fatelf/src/apps/debugger/value/value_nodes/BMessageValueNode.cpp
Revision Date Author Comments
# f2ebf00c 06-Dec-2012 Rene Gollent <anevilyak@gmail.com>

Fix delete vs release issues in BMessageValueNode.


# 7483c98d 05-Aug-2012 Ingo Weinhold <ingo_weinhold@gmx.de>

Debugger (and some friends): 64 bit fixes


# c163f973 14-Jul-2012 Rene Gollent <anevilyak@gmail.com>

Fix resource leak in error cases. CID 611238.


# fd651d78 20-Nov-2011 Rene Gollent <anevilyak@gmail.com>

Fix issues with child creation in BMessage nodes.

BMessageValueNode and BMessageFieldNode weren't correctly setting
the children created flag. This would result in duplicates of
some of the nodes showing up, especially in the case of nested messages.


# 0d890a68 26-Sep-2011 Michael Lotz <mmlr@mlotz.ch>

Do some minimal sanity checks on the message data. Avoids trying to allocate
random amounts of memory when getting an invalid header.


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


# f1aea13b 07-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Detect if the message node is contained in a BMessage field child. If so,
handle the message in flat format. This gets messages embedded inside other
messages working.



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


# 2a3c2964 06-Jul-2011 Rene Gollent <anevilyak@gmail.com>

BMessageValueNode wasn't taking into account the possibility that type
information was unavailable, leading to a crash when used without a debug
libbe being present.



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


# 90753bf8 04-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Fix leaking of type references.



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


# c1d84ade 04-Jul-2011 Rene Gollent <anevilyak@gmail.com>

* Use the base type name in order to look up the types for strings
and pointers. This gets strings inside BMessages working.

* Enable the BMessage type handler. This effectively means that the debugger
now has the ability to introspect BMessages for their field contents.



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


# 063fa6fa 04-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Properly handle field names that have multiple indices by publishing
child nodes for them.



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


# 140b05c8 03-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Simplification due to better understanding of the node system.



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


# ef826895 02-Jul-2011 Rene Gollent <anevilyak@gmail.com>

* Restructure things a bit so we store the message's message and field headers
after resolving them. This allows us to reuse BMessage's logic for computing
the offsets of values in the data buffer.
* Resolve fields to their types and correctly resolve the locations of their
data. This means we can now see the values of fields inside the message, with
some caveats: string types aren't yet handled properly, and we don't yet
properly deal with fields that have multiple indices.



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


# fd471859 30-Jun-2011 Rene Gollent <anevilyak@gmail.com>

BMessageFieldHeaderNode{Child} -> BMessageFieldNode{Child}


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


# 8a798574 30-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Cleanups to simplify handling of pointer vs value types.



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


# e416dbbd 29-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed GCC2 build.
* Minor cleanup.


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


# a2d074a7 27-Jun-2011 Rene Gollent <anevilyak@gmail.com>

* Modify BMessageValueNode to use delayed child creation flag.



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


# 1e1e05fd 27-Jun-2011 Rene Gollent <anevilyak@gmail.com>

* Got rid of BMessageFieldNode{Child} in favor of presenting the fields directly
at the top level of the message.
* Fixed issues with incorrectly resolving the what value.
* Reordered some functions to match header decl order.



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


# 15f3037b 26-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Fix regression introduced in r42324 which prevented pointers to BMessages from being
properly.


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


# f225c7e9 26-Jun-2011 Rene Gollent <anevilyak@gmail.com>

BMessageValueNode now publishes a BMessageFieldNode child, which in turn
exposes child nodes for all the fields detected in the target BMessage.
Doesn't yet exposes the indices/values for each field though.



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


# 97c9b89b 25-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Rework BMessageValueNode to find its needed addresses via member value locations.



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


# 11ce866c 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Revert unintended change, and clarified TODO a bit.



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


# 93e87b30 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Add TODO note.



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


# 29a6c81b 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

We now retrieve and unflatten the target BMessage successfully,
though we don't yet create child nodes for the contained fields.



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


# d137ab04 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Used the wrong define in the previous commit.



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


# 29fdb533 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Fix build with tracing disabled.



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


# 04584c0d 21-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Add the beginnings of a BMessage type/value handler. Not yet registered with
the type handler roster since it's quite far from being complete.



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


# 7483c98dece8f3606fc5d3fd746c0544f7e4b6dd 05-Aug-2012 Ingo Weinhold <ingo_weinhold@gmx.de>

Debugger (and some friends): 64 bit fixes


# c163f973e6a96a2c37d70cc1992f2bb027f9ab81 14-Jul-2012 Rene Gollent <anevilyak@gmail.com>

Fix resource leak in error cases. CID 611238.


# fd651d785afc30be2efb9297c680230fda761406 20-Nov-2011 Rene Gollent <anevilyak@gmail.com>

Fix issues with child creation in BMessage nodes.

BMessageValueNode and BMessageFieldNode weren't correctly setting
the children created flag. This would result in duplicates of
some of the nodes showing up, especially in the case of nested messages.


# 0d890a6821487ef6392c9bff9d8258a4ea85a60f 26-Sep-2011 Michael Lotz <mmlr@mlotz.ch>

Do some minimal sanity checks on the message data. Avoids trying to allocate
random amounts of memory when getting an invalid header.


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


# f1aea13b5ec88c77805228188dbcd3435c30a7d3 07-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Detect if the message node is contained in a BMessage field child. If so,
handle the message in flat format. This gets messages embedded inside other
messages working.



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


# 2a3c2964f178132f1ee5a0e76f86fdb3eb65b192 06-Jul-2011 Rene Gollent <anevilyak@gmail.com>

BMessageValueNode wasn't taking into account the possibility that type
information was unavailable, leading to a crash when used without a debug
libbe being present.



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


# 90753bf8054b6837d66348398b47d6ff24246dd1 04-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Fix leaking of type references.



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


# c1d84ade70d5373461414352264ad315f9db9037 04-Jul-2011 Rene Gollent <anevilyak@gmail.com>

* Use the base type name in order to look up the types for strings
and pointers. This gets strings inside BMessages working.

* Enable the BMessage type handler. This effectively means that the debugger
now has the ability to introspect BMessages for their field contents.



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


# 063fa6fa1efe74748be9f8641bad806f524c33a3 04-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Properly handle field names that have multiple indices by publishing
child nodes for them.



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


# 140b05c8ecc3c835ee17171ed3fb179063c10b98 03-Jul-2011 Rene Gollent <anevilyak@gmail.com>

Simplification due to better understanding of the node system.



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


# ef826895ffe809578436d6f6d1c9503d38d3fe16 02-Jul-2011 Rene Gollent <anevilyak@gmail.com>

* Restructure things a bit so we store the message's message and field headers
after resolving them. This allows us to reuse BMessage's logic for computing
the offsets of values in the data buffer.
* Resolve fields to their types and correctly resolve the locations of their
data. This means we can now see the values of fields inside the message, with
some caveats: string types aren't yet handled properly, and we don't yet
properly deal with fields that have multiple indices.



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


# fd47185941cfa89077bbd9813c3b95fa5d2c2ff7 30-Jun-2011 Rene Gollent <anevilyak@gmail.com>

BMessageFieldHeaderNode{Child} -> BMessageFieldNode{Child}


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


# 8a7985745ccdebb615d9b613777ac5b6aff1a9d9 30-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Cleanups to simplify handling of pointer vs value types.



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


# e416dbbd1b2974634a409317ee05ba1457c21f65 29-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed GCC2 build.
* Minor cleanup.


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


# a2d074a765dbe331d3eaae938947fcba1616ae02 27-Jun-2011 Rene Gollent <anevilyak@gmail.com>

* Modify BMessageValueNode to use delayed child creation flag.



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


# 1e1e05fdba80d2da2c4f67dc34997eb9229f65c5 27-Jun-2011 Rene Gollent <anevilyak@gmail.com>

* Got rid of BMessageFieldNode{Child} in favor of presenting the fields directly
at the top level of the message.
* Fixed issues with incorrectly resolving the what value.
* Reordered some functions to match header decl order.



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


# 15f3037b87882557e2e24ef3ed6d090893f1128d 26-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Fix regression introduced in r42324 which prevented pointers to BMessages from being
properly.


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


# f225c7e9444545e41ed23c9fb44f857f169523a0 26-Jun-2011 Rene Gollent <anevilyak@gmail.com>

BMessageValueNode now publishes a BMessageFieldNode child, which in turn
exposes child nodes for all the fields detected in the target BMessage.
Doesn't yet exposes the indices/values for each field though.



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


# 97c9b89bceefda476718e417e985c691ae5da52b 25-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Rework BMessageValueNode to find its needed addresses via member value locations.



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


# 11ce866cbde146b40bff8ccf394db44ba963a20f 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Revert unintended change, and clarified TODO a bit.



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


# 93e87b30a239b40177d7cb6a6b9cc924d800c32e 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Add TODO note.



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


# 29a6c81bcd87a541b6e00462f24ca15e9b39654f 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

We now retrieve and unflatten the target BMessage successfully,
though we don't yet create child nodes for the contained fields.



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


# d137ab049bc9c6ed153202c52c27706d27aa8940 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Used the wrong define in the previous commit.



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


# 29fdb533ba7028a45e9b453abb9872b7a65e2470 22-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Fix build with tracing disabled.



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


# 04584c0d6f9eb1cc69fe36df2a761a13ede381da 21-Jun-2011 Rene Gollent <anevilyak@gmail.com>

Add the beginnings of a BMessage type/value handler. Not yet registered with
the type handler roster since it's quite far from being complete.



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