aboutsummaryrefslogtreecommitdiff
path: root/gdb/findcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/findcmd.c')
-rw-r--r--gdb/findcmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 7ae43e5..09d93fc 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -291,9 +291,7 @@ find_command (char *args, int from_tty)
/* Record and print the results. */
- set_internalvar (lookup_internalvar ("numfound"),
- value_from_longest (builtin_type_int32,
- (LONGEST) found_count));
+ set_internalvar_integer (lookup_internalvar ("numfound"), found_count);
if (found_count > 0)
{
struct gdbarch *gdbarch = current_gdbarch;