]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix "set enum-command value junk"
authorPedro Alves <palves@redhat.com>
Wed, 12 Jun 2019 23:06:52 +0000 (00:06 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 12 Jun 2019 23:09:37 +0000 (00:09 +0100)
commit48c410fb70fe09c036e27092880db687e5c2fb0b
tree443b8726ad4152a7427ee422267ba29bc7f91354
parent93bcb04349eb500781747a542ececc7a8ba3bd95
Fix "set enum-command value junk"

With enum commands, we currently fail to notice junk after the value.

Currently:

  (gdb) set print entry-values compact foo
  (gdb) show print entry-values foo
  Printing of function arguments at function entry is "compact".

After this fix:

 (gdb) set print entry-values compact foo
  Junk after item "compact": foo

gdb/ChangeLog:
2019-06-13  Pedro Alves  <palves@redhat.com>

* cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
after item.
gdb/ChangeLog
gdb/cli/cli-setshow.c