Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 20:39:54 +0000
From:      "Peter Edwards" <pmedwards@eircom.net>
To:        zzhang@cs.binghamton.edu
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: A quick gdb help
Message-ID:  <20021112204320.4E59E43E75@mx1.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
I tend to avoid using "set", and use "print", with an assignment expression:
eg "print i = 1" or "p i = 1". It removes any namespace conflicts between
variables in the target process and gdb settings.
--
Peter.

> I need to set a variable value in gdb:
> 
> (gdb) set xyz = 1      <- works
> (gdb) set i = 1        <- syntax error near '1'
> 
> I guess i must have special meaning in gdb. But what if I insist setting
> it, is there a way?   Thanks.
> 
> -Zhihui

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021112204320.4E59E43E75>