public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug m2/29163] New: [gdb/m2] parse_number needs rewrite
@ 2022-05-21  4:01 vries at gcc dot gnu.org
  2022-05-23  7:43 ` [Bug m2/29163] " vries at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-05-21  4:01 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 29163
           Summary: [gdb/m2] parse_number needs rewrite
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: m2
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

When building with -fsanitize=undefined, I run into:
...
$ gdb -q -batch -ex "set lang modula-2" -ex "p /x 010000000000000000H"
/home/vries/gdb_versions/devel/src/gdb/m2-exp.y:627:9: runtime error: signed
integer overflow: 1152921504606846976 * 16 cannot be represented in type 'long
int'
$1 = 0x0
...

I guess the parser needs to be rewritten to use ULONGEST, like all the others.

Note that the parser is different from others in that it uses the number_sign
indicator, so we'll have to add negative number cases as well to
gdb.base/parse_number.exp.

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

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

end of thread, other threads:[~2022-06-04 11:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-21  4:01 [Bug m2/29163] New: [gdb/m2] parse_number needs rewrite vries at gcc dot gnu.org
2022-05-23  7:43 ` [Bug m2/29163] " vries at gcc dot gnu.org
2022-05-23 13:44 ` vries at gcc dot gnu.org
2022-06-04 11:21 ` vries at gcc dot gnu.org

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).