<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/ddb/db_examine.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2017-11-30T15:48:35Z</updated>
<entry>
<title>SPDX: Consider code from Carnegie-Mellon University.</title>
<updated>2017-11-30T15:48:35Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-30T15:48:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=796df753f404f4772ae0fd7da0e1d2b948268448'/>
<id>urn:sha1:796df753f404f4772ae0fd7da0e1d2b948268448</id>
<content type='text'>
Interesting cases, most likely from CMU Mach sources.
</content>
</entry>
<entry>
<title>Determine the operand/address size of %cs in a new function</title>
<updated>2016-09-25T16:30:29Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2016-09-25T16:30:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=808cf02c244239ce0bebb09c9f4a49e11db29f3b'/>
<id>urn:sha1:808cf02c244239ce0bebb09c9f4a49e11db29f3b</id>
<content type='text'>
db_segsize().

Use db_segsize() to set the default operand/address size for
disassembling.  Allow overriding this with the "alternate" display
format /I.  The API of db_disasm() should be debooleanized to pass a
more general request (amd64 needs overrides to sizes of 16, 32, and
64, but this commit doesn't implement anything for amd64 since much
larger changes are needed to restore the amd64 disassmbler's support
for non-default sizes).

Fix db_print_loc_and_inst() to ask for the normal format and not the
alternate in normal operation.

This is most useful for vm86 mode, but also works for 16-bit protected
mode.

Use db_segsize() to avoid trying to print a garbage stack trace if %cs
is 16 bits.  Print something like the stack trace termination message
for a trap boundary instead.

Document that the alternate format is now useful on i386.
</content>
</entry>
<entry>
<title>Add a small set of logical operators to DDB command language.</title>
<updated>2016-05-16T19:42:38Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-05-16T19:42:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c69cee69f9886806e57d9b08337d565b2bdf8298'/>
<id>urn:sha1:c69cee69f9886806e57d9b08337d565b2bdf8298</id>
<content type='text'>
This are based on Mach3.
Documentation is pending but has been promised.

Submitted by:	Dan Partelly
Reviewed by:	adrian, jhb (older version)

Differential Revision:	https://reviews.freebsd.org/D4230
RelNotes:	yes
</content>
</entry>
<entry>
<title>Revert r298938: Change x/a to work similar to gdb.</title>
<updated>2016-05-06T20:28:28Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-05-06T20:28:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8c6a0d07a6ea786efac002029d88843faf6a5a3b'/>
<id>urn:sha1:8c6a0d07a6ea786efac002029d88843faf6a5a3b</id>
<content type='text'>
This badly breaks x/ia: ddb and gdb syntax are quite different and it is
unclear if they can be reconciled.
</content>
</entry>
<entry>
<title>Enhance the ddb examine (x) command.</title>
<updated>2016-05-02T19:32:06Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-05-02T19:32:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dd40d6d5e083ab6adacf83b9c201377d2719c06b'/>
<id>urn:sha1:dd40d6d5e083ab6adacf83b9c201377d2719c06b</id>
<content type='text'>
* Change x/a to work similar to gdb.  The content of the memory is
  treated as an address, printed symbolically and the address is advanced.
  This way you can x/a &lt;stack_address&gt; and then just hit return a bunch
  of times to locate useful data on the stack.

* Add x/p.  The content of the memory is treated as an address and
  printed as hex.

This is based on the similar commit from DragonFlyBSD without the
cosmetic changes.

Relnotes:	yes
Obtained from:	DragonflyBSD (Matthew Dillon)
Reference:	0624d20e86affcd708609cbf9014207537537a72
</content>
</entry>
<entry>
<title>Don't return undefined symbols to a DDB symbol lookup.</title>
<updated>2015-07-21T23:07:55Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2015-07-21T23:07:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e31a60b4861854b24f2b7b8f406f429ad1d7f0bf'/>
<id>urn:sha1:e31a60b4861854b24f2b7b8f406f429ad1d7f0bf</id>
<content type='text'>
Undefined symbols have a value of zero, so it makes no sense to return
such a symbol when performing a lookup by value. This occurs for example
when unwinding the stack after calling a NULL function pointer, and we
confusingly report the faulting function as uart_sab82532_class() on
amd64.

Convert db_print_loc_and_inst() to only attempt disassembly if we managed
to find a symbol corresponding to the IP. Otherwise we may fault and
re-enter the debugger.

Reviewed by:	jhb
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D2858
</content>
</entry>
<entry>
<title>ddb: finish converting boolean values.</title>
<updated>2015-05-21T15:16:18Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-05-21T15:16:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd508278c11d046bf7ce79ca39f6aabeb8c77f36'/>
<id>urn:sha1:cd508278c11d046bf7ce79ca39f6aabeb8c77f36</id>
<content type='text'>
The replacement started at r283088 was necessarily incomplete without
replacing boolean_t with bool.  This also involved cleaning some type
mismatches and ansifying old C function declarations.

Pointed out by:	bde
Discussed with:	bde, ian, jhb
</content>
</entry>
<entry>
<title>ddb: stop boolean screaming.</title>
<updated>2015-05-18T22:27:46Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-05-18T22:27:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2b490bc747e67a2b9cecb12321ed4719600d31e9'/>
<id>urn:sha1:2b490bc747e67a2b9cecb12321ed4719600d31e9</id>
<content type='text'>
TRUE --&gt; true
FALSE--&gt; false

Hinted by:	NetBSD
</content>
</entry>
<entry>
<title>ddb: ANSI-fy function declarations.</title>
<updated>2014-10-12T18:01:52Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-10-12T18:01:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a41dd0319c532919c2f5ac2ba161d0157375e2fc'/>
<id>urn:sha1:a41dd0319c532919c2f5ac2ba161d0157375e2fc</id>
<content type='text'>
MFC after:	5 days
</content>
</entry>
<entry>
<title>Add a /S mode to DDB "ex" command, which interprets and prints the</title>
<updated>2008-03-07T18:09:07Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-07T18:09:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7c7b7f8e1bc300d13801758a74b8ab931906a928'/>
<id>urn:sha1:7c7b7f8e1bc300d13801758a74b8ab931906a928</id>
<content type='text'>
value at the requested address as a symbol.  For example, "ex /S
aio_swake" prints the name of the function currently registered in
via aio_swake hook.

The change as committed differs slightly from the patch in the PR,
as I force the size of the retrieved value (and the automatic
address increment) to be sizeof(void *).  This seems to provide
the most useful auto-increment behavior, and defaults using the
default size (4), which is not sizeof(void *) on 64-bit platforms.

MFC after:	3 days
PR:		57976
Submitted by:	Dan Strick &lt;strick at covad.net&gt;
</content>
</entry>
</feed>
