aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-06-08 16:58:25 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2017-06-08 16:58:25 -0400
commit2f91880f3afb3cc521111dfcc99b214c77aa97a1 (patch)
tree391c988b824f89e6689b02900761edd70aed838b /gdb/ChangeLog
parente3d1d4088ad3b4d0fed39df62ad295ed60707807 (diff)
downloadgdb-2f91880f3afb3cc521111dfcc99b214c77aa97a1.zip
gdb-2f91880f3afb3cc521111dfcc99b214c77aa97a1.tar.gz
gdb-2f91880f3afb3cc521111dfcc99b214c77aa97a1.tar.bz2
Fix possible bug when no args have been provided to the executable
Hi, This bug is related to: <https://sourceware.org/ml/gdb-patches/2017-06/msg00216.html> On stringify_argv, we have to check if args[0] is not NULL before stringifying anything, otherwise we might do the wrong thing when trimming the "ret" string in the end. args[0] will be NULL when no arguments are passed to the inferior that will be started. Checked in as obvious. gdb/ChangeLog: 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> * common/common-utils.c (stringify_argv): Check for "arg[0] != NULL".
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 993fabe..5ebc7f8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * common/common-utils.c (stringify_argv): Check for "arg[0] !=
+ NULL".
+
2017-06-08 Alan Hayward <alan.hayward@arm.com>
* mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.