HP gnu source-level debugger 5992-4701 Bedienungsanleitung Seite 199

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 198
where:
&a[0] Specifies the start address of the memory address range.
&a[10] Specifies the end address of the memory address range.
“el”, 'l' Specifies the pattern.
Using the start address (start-address), length (+length) parameter, and a
pattern (expr1)
find &str[0], +11, "hihi"
&str[0] Specifies the starting address.
+11 Specifies the length of the memory address range, starting from
&str[0].
"hihi" Specifies the pattern (expr1).
Using the /max-count parameter
(gdb) find /1 &int8_search_buf[0], +sizeof(int8_search_buf), 'a', 'a', 'a'
where:
/1 Specifies the find command to display only
one matching pattern.
&int8_search_buf[0] Specifies the starting address.
+sizeof(int8_search_buf) Specifies the ending address.
'a', 'a', 'a' Specifies the pattern (expr1, expr2,
expr3).
Using the /size-char parameter
(gdb) find /b &int8_search_buf[0], &int8_search_buf[0]+sizeof(int8_search_buf),
0x61, 0x61, 0x61, 0x61
where:
/b Specifies that the size of the pattern is 8 bits.
&int8_search_buf[0] Specifies the starting address.
&int8_search_buf[0]
+sizeof(int8_search_buf)
Specifies the ending address.
0x61, 0x61, 0x61, 0x61 Specifies the pattern (expr1, expr2, expr3,
exp4).
14.14 Command to Search for a Pattern in the Memory Address Space 199
Seitenansicht 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare