HP gnu source-level debugger 5992-4701 Uživatelský manuál Strana 226

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 225
"Steplast is not meaningful for the current line."
For example,
(gdb) 4 int k = 10; (gdb) sl ---> alias to "steplast" command error: Steplast
is not meaningful for the current line
To execute the steplast command in C++ compiled applications, you must compile
the application using the HP aC++ version A.03.50 or later with the -g0 option.
In C++, the steplast command is helpful while debugging heavy templated functions,
because it directly steps into the call, thus skipping the constructor calls, if any. This
behavior is unlike the step command that steps into the constructor itself.
Consider the following example:
void call_me ( string s ) ... (gdb)
10
call_me ( "hello" );
(gdb) steplast call_me (s=static npos = 4294967295,
static nullref = ref_hdr = mutex_= dummy1 = 0x7f4f79e0, dummy2 = 2136325568,
refs_ = 2136327612,
capacity_ = 2136327468, nchars_ = 2136327464, eos_char = 64 '@',
alloc_ = <No data fields>,
value_allocator = alloc_ = 0x7f7f133c,
data_ = 0x40003a64 "hello") at str.C:55
printf ("Will just print the value of \n");
If there are multiple top-level calls, the steplast command enables you to step into
each top-level call. For example, for the following line, the steplast command takes
you to the first top-level call, (foo()):
foo(bar()) + bar(foo());
Debug foo(), use the finish command to exit from the first top-level call, (foo()),
execute the steplast command to step into the next top-level call, (bar()). The
following example illustrates the use of steplast command:
(gdb)10 foo( bar() ) + bar( foo() ) (gdb) sl Use the steplast (sl) command to step
14.28 Getting information from a non-debug executable
You can get some information about the arguments passed to the functions displayed
in the stack trace in a non-debug, optimized executable.
When GDB has no debug information; it does not know where the arguments are
located or even the type of the arguments. GDB cannot infer this in an optimized,
non-debug executable.
However, for integer arguments you can nd the first few parameters for the top-of-
stack frame by looking at the registers. On PA-RISC systems, the first parameter will
be in $r26, the second in $r25, and so on. On IPF systems, the first few parameters will
be in $gr32 and $gr33.
226 HP-UX Configuration-Specific Information
Zobrazit stránku 225
1 2 ... 221 222 223 224 225 226 227 228 229 230 231 ... 368 369

Komentáře k této Příručce

Žádné komentáře

BCM BC45Q manuels

Manuels d'utilisation et guides de l'utilisateur pour Cartes mères BCM BC45Q.
Nous fournissons des manuels en pdf 1 BCM BC45Q à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Cartes mères BCM

Modèles Type de document
RX35Q Manuel de l'utilisateur   BCM RX35Q User`s manual, 64 pages
BC133KT-100 Manuel de l'utilisateur   BCM BC133KT-100 User`s manual [en] , 54 pages
RX945G Manuel de l'utilisateur   BCM RX945G User`s manual, 69 pages
MX965Q Manuel de l'utilisateur   BCM MX965Q User`s manual [en] , 52 pages
SQ575 Manuel de l'utilisateur   BCM SQ575 User`s manual, 47 pages
IN845GVD Manuel de l'utilisateur   BCM IN845GVD User`s manual, 44 pages
MX945GSE3 Manuel de l'utilisateur   BCM MX945GSE3 User`s manual, 52 pages
QS440VA Manuel de l'utilisateur   BCM QS440VA User`s manual, 59 pages
IN915GVE Manuel de l'utilisateur   BCM IN915GVE User`s manual [en] , 48 pages
BC845EVL Manuel de l'utilisateur   BCM BC845EVL User`s manual, 43 pages
MX690E2 Manuel de l'utilisateur   BCM MX690E2 User`s manual, 74 pages
QS750 Manuel de l'utilisateur   BCM QS750 User`s manual, 50 pages
GT133KT Manuel de l'utilisateur   BCM GT133KT User`s manual [en] , 45 pages
RX67Q Manuel de l'utilisateur   BCM RX67Q User`s manual, 88 pages
RX815ELT Manuel de l'utilisateur   BCM RX815ELT User`s manual, 44 pages
MX266 Manuel de l'utilisateur   BCM MX266 User`s manual, 53 pages
BC845DL Manuel de service   BCM BC845DL Service manual, 214 pages