⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hexwords.1

📁 debug source code under unix platform.
💻 1
字号:
'\" t.\".\" mpatrol.\" A library for controlling and tracing dynamic memory allocations..\" Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>.\".\" This library is free software; you can redistribute it and/or.\" modify it under the terms of the GNU Library General Public.\" License as published by the Free Software Foundation; either.\" version 2 of the License, or (at your option) any later version..\".\" This library is distributed in the hope that it will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU.\" Library General Public License for more details..\".\" You should have received a copy of the GNU Library General Public.\" License along with this library; if not, write to the Free.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,.\" MA 02111-1307, USA..\".\" UNIX Manual Page.\".\" $Id: hexwords.1,v 1.7 2002/01/08 20:28:41 graeme Exp $.\".TH HEXWORDS 1 "8 January 2002" "Release 1.4" "mpatrol library".SH NAMEhexwords \- extracts any words from a file that can be written as hex numbers.SH SYNOPSIS\fBhexwords\fP [\fIoptions\fP] [\fIdictfile\fP].SH DESCRIPTIONThe \fBhexwords\fP command is a little tool that can be used to generatehexadecimal constants from a dictionary of known words.  Such numericalconstants can be used in source files for a variety of debugging problems, andproblems with uninitialised variables are especially relevant since thesespecial numbers will stand out if seen from within a debugger.  For example,here are some common (and some not-so-common) 32-bit hexadecimal constants thatcan be used as debugging aids:.TSr l.\fIword\fP	\fIhex constant\fPaddedbad	0xaddedbadallocate	0xa110ca7ebadlabel	0xbad1abe1baseball	0xba5eba11codebabe	0xc0debabecodedbad	0xc0dedbaddeadbeef	0xdeadbeefdeadcode	0xdeadc0defailsafe	0xfa115afefeedface	0xfeedfacefreedata	0xf4eeda7agoodcode	0x600dc0de.TE.PPAs can be seen above, many decimal digits can be used to represent the lettersthat they most closely resemble, along with the hexadecimal digits \fIA\fPthrough \fPF\fP.  This provides a much larger selection of words that can bematched, although the digits \fI3\fP and \fI8\fP cannot be used due to the lackof any similar-looking letters.  The digits and their corresponding letters aregiven in the following table..TSl l.\fIdigit\fP	\fIletter\fP0	O, o or Q1	I, i or l2	Z or z3	-4	q or R5	S or s6	G7	J or T8	-9	gA-F	A-Fa-f	a-f.TE.PPThe \fIdictfile\fP argument must be a valid dictionary filename but if\fIdictfile\fP is omitted then \fBhexwords\fP will use \fI/usr/dict/words\fP asthe name of the dictionary file to use.  If that cannot be found then\fBhexwords\fP will try \fI/usr/lib/dict/words\fP and\fI/usr/share/dict/words\fP.  The dictionary file must be a plain text filethat contains one word per line, otherwise few to no words will be matched..PPThe \fBhexwords\fP command currently makes use of several UNIX text processingcommands in order to extract the words and their hexadecimal equivalents.  As aresult, the \fBhexwords\fP command is only likely to work on UNIX platforms oron systems which have the necessary commands installed..SH OPTIONS.TP\fB\-\-help\fP [\fB\-h\fP]Displays a quick-reference option summary..TP\fB\-\-match\fP <\fIexact\fP|\fIlower\fP|\fIupper\fP|\fIany\fP> [\fB\-m\fP]Sets the type of case-sensitivity to use.  A setting of \fIexact\fP performs acase-sensitive comparison of all of the words in the dictionary file and thehexadecimal digits, whereas a setting of \fIany\fP does not.  The \fIlower\fPand \fIupper\fP settings convert the words in the dictionary file to lower andupper case respectively before performing a case-sensitive comparison.  Thedefault case-sensitivity is \fIexact\fP..TP\fB\-\-maximum\fP <\fIcount\fP> [\fB\-u\fP]Sets the maximum number of letters to match.  None of the hexadecimal numbersdisplayed will have any more digits than this.  The default is \fI8\fP..TP\fB\-\-minimum\fP <\fIcount\fP> [\fB\-l\fP]Sets the minimum number of letters to match.  None of the hexadecimal numbersdisplayed will have any less digits than this.  The default is \fI4\fP..TP\fB\-\-version\fP [\fB\-V\fP]Displays the version number of the \fBhexwords\fP command..SH SEE ALSO\fBmpatrol\fP(1), \fBmprof\fP(1), \fBmptrace\fP(1), \fBmleak\fP(1),\fBmpsym\fP(1), \fBmpedit\fP(1), \fBlibmpatrol\fP(3), \fBlibmpalloc\fP(3)..PPThe mpatrol manual and reference card..PPhttp://www.cbmamiga.demon.co.uk/mpatrol/.SH AUTHORGraeme S. Roy <graeme.roy@analog.com>.SH COPYRIGHTCopyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>.PPThis library is free software; you can redistribute it and/or modify it underthe terms of the GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at your option) anylater version..PPThis library is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for moredetails..PPYou should have received a copy of the GNU Library General Public Licensealong with this library; if not, write to the Free Software Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -