diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-14 19:27:05 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-14 19:27:05 +0000 |
commit | bb9bcb69cdddee8069bf24321f9a0e91ffd22f32 (patch) | |
tree | edad95eb6c25be7325dd34d11bec9dfb5e462ff8 /gdb/findcmd.c | |
parent | d7f9d729727b2b85ae3228785762f4d2e6a8742f (diff) | |
download | gdb-bb9bcb69cdddee8069bf24321f9a0e91ffd22f32.zip gdb-bb9bcb69cdddee8069bf24321f9a0e91ffd22f32.tar.gz gdb-bb9bcb69cdddee8069bf24321f9a0e91ffd22f32.tar.bz2 |
2010-05-14 Michael Snyder <msnyder@vmware.com>
* findcmd.c: White space.
* findvar.c: White space.
* fork-child.c: White space.
* frame-base.c: White space.
* frame.c: White space.
* frame-unwind.c: White space.
* f-valprint.c: White space.
Diffstat (limited to 'gdb/findcmd.c')
-rw-r--r-- | gdb/findcmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/findcmd.c b/gdb/findcmd.c index c752316..8e9a4b8 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -126,6 +126,7 @@ parse_find_args (char *args, ULONGEST *max_countp, if (*s == '+') { LONGEST len; + ++s; v = parse_to_comma_and_eval (&s); len = value_as_long (v); @@ -145,6 +146,7 @@ parse_find_args (char *args, ULONGEST *max_countp, else { CORE_ADDR end_addr; + v = parse_to_comma_and_eval (&s); end_addr = value_as_address (v); if (start_addr > end_addr) @@ -179,6 +181,7 @@ parse_find_args (char *args, ULONGEST *max_countp, > pattern_buf_size) { size_t current_offset = pattern_buf_end - pattern_buf; + pattern_buf_size *= 2; pattern_buf = xrealloc (pattern_buf, pattern_buf_size); pattern_buf_end = pattern_buf + current_offset; @@ -298,6 +301,7 @@ find_command (char *args, int from_tty) if (found_count > 0) { struct type *ptr_type = builtin_type (gdbarch)->builtin_data_ptr; + set_internalvar (lookup_internalvar ("_"), value_from_pointer (ptr_type, last_found_addr)); } |