public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/17233] New: possible bug in amd64-tdep.c:fixup_riprel
@ 2014-08-07 15:36 tromey at redhat dot com
  0 siblings, 0 replies; only message in thread
From: tromey at redhat dot com @ 2014-08-07 15:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17233

            Bug ID: 17233
           Summary: possible bug in amd64-tdep.c:fixup_riprel
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at redhat dot com

I tried -Wunused-but-set-variable and it reported
some code in amd64-tdep.c:fixup_riprel:

  int32_t disp;
[...]
  /* Compute the rip-relative address.    */
  disp = extract_signed_integer (insn, sizeof (int32_t), byte_order);

"disp" is never used.
It seems that this could be a real bug.
However if not it would be clearer to remove the unused
variable and add a comment explaining why there's no need
to do this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-07 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-07 15:36 [Bug tdep/17233] New: possible bug in amd64-tdep.c:fixup_riprel tromey 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).