public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/29440] New: [gdb/cli] inferior "" -> Inferior ID -134450784 not known
@ 2022-08-03 9:52 vries at gcc dot gnu.org
2022-08-06 17:16 ` [Bug cli/29440] " tromey at sourceware dot org
0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2022-08-03 9:52 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29440
Bug ID: 29440
Summary: [gdb/cli] inferior "" -> Inferior ID -134450784 not
known
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
...
$ gdb -q -batch a.out -ex start -ex "inferior \"\""
Temporary breakpoint 1 at 0x66e: file test.c, line 6.
Temporary breakpoint 1, main () at test.c:6
6 aaa = 1;
Inferior ID -134450784 not known.
...
Likewise:
...
$ gdb -q a.out -ex start
Reading symbols from a.out...
Temporary breakpoint 1 at 0x66e: file test.c, line 6.
Starting program: /home/vries/gdb_versions/devel/a.out
Temporary breakpoint 1, main () at test.c:6
6 aaa = 1;
(gdb) inferior ""
Inferior ID -134450784 not known.
(gdb)
...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug cli/29440] [gdb/cli] inferior "" -> Inferior ID -134450784 not known
2022-08-03 9:52 [Bug cli/29440] New: [gdb/cli] inferior "" -> Inferior ID -134450784 not known vries at gcc dot gnu.org
@ 2022-08-06 17:16 ` tromey at sourceware dot org
0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2022-08-06 17:16 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29440
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
inferior_command does:
num = parse_and_eval_long (args);
which I suppose allows a pointer to be converted to an integer.
It looks like there are other calls that have this same problem.
We'd have to examine all the calls (there are a surprising number)
to see if converting this function to be more strict would be ok.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-06 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 9:52 [Bug cli/29440] New: [gdb/cli] inferior "" -> Inferior ID -134450784 not known vries at gcc dot gnu.org
2022-08-06 17:16 ` [Bug cli/29440] " tromey at sourceware dot 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).