public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/103617] New: Debugging gcc: can't use 'pp' command for irange
@ 2021-12-08 10:10 marxin at gcc dot gnu.org
  2021-12-08 14:45 ` [Bug other/103617] " amacleod at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-08 10:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103617

            Bug ID: 103617
           Summary: Debugging gcc: can't use 'pp' command for irange
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

Using the GCC ./gcc/gdbinit.in:

define pp
eval "set $debug_arg = $%s", $argc ? "arg0" : ""
call debug ($debug_arg)
end

$ (gdb) p debug(predicate->true_range)
integer(kind=8) [-INF, 2147483646]

However:

(gdb) pp predicate->true_range
Attempt to take address of value not located in memory.

And the following works:

$ (gdb) pp &predicate->true_range
integer(kind=8) [-INF, 2147483646]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-12 20:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-08 10:10 [Bug other/103617] New: Debugging gcc: can't use 'pp' command for irange marxin at gcc dot gnu.org
2021-12-08 14:45 ` [Bug other/103617] " amacleod at redhat dot com
2021-12-09 10:57 ` marxin at gcc dot gnu.org
2021-12-09 14:57 ` amacleod at redhat dot com
2021-12-09 15:11 ` marxin at gcc dot gnu.org
2021-12-09 17:42 ` amacleod at redhat dot com
2022-01-11 14:51 ` amacleod at redhat dot com
2022-01-12 20:46 ` amacleod at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).