Luis Machado
4dac951e11
Fixup gdb.python/py-value.exp for bare-metal aarch64-elf
...
I noticed that testing aarch64-elf gdb with a physical board
ran into issues with gdb.python/py-value.exp. Further investigation showed
that we were actually trying to dereference a NULL pointer (argv) when trying
to access argv[0].
Being bare-metal, argv is not guaranteed to be valid. So we need to make sure
argv is sane before accessing argv[0].
The following patch fixes up the test program to check for a NULL argv and also
improves the testcase a bit so it doesn't have to work with a hardcoded argc
value.
Regression-tested on x86-64 Ubuntu 16.04.
gdb/testsuite/ChangeLog:
2016-10-12 Luis Machado <lgustavo@codesourcery.com >
* gdb.python/py-value.c (main): Check if argv is NULL before using it.
* gdb.python/py-value.exp (test_value_in_inferior): Don't use hardcoded
argc values.
Add 1 to argc so we guarantee distinct initial/modified argc values.
2016-10-12 10:10:03 -05:00
..
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-03-10 17:12:30 -05:00
2016-03-10 17:12:30 -05:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-27 12:11:25 +02:00
2016-06-27 12:11:25 +02:00
2016-06-27 12:11:25 +02:00
2016-01-01 08:43:22 +04:00
2016-07-13 13:59:55 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-04-27 18:09:14 -04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-08-03 09:04:08 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-29 10:18:38 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-12 01:12:38 +00:00
2016-01-13 11:00:54 +00:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-10-06 10:10:40 -06:00
2016-06-21 01:11:43 +01:00
2016-03-31 15:32:38 +03:00
2016-06-21 01:11:43 +01:00
2016-04-06 09:39:16 +03:00
2016-01-01 08:43:22 +04:00
2016-04-06 09:39:16 +03:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-05-23 10:08:34 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-20 13:44:33 -05:00
2016-01-20 13:44:33 -05:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-05-23 10:08:34 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-08-24 14:22:30 -07:00
2016-09-05 18:41:38 +01:00
2016-08-24 14:22:30 -07:00
2016-01-18 14:30:23 +00:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-02 13:18:42 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-09-05 18:41:38 +01:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-07-20 16:17:04 +02:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-10-12 10:10:03 -05:00
2016-10-12 10:10:03 -05:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-10-07 09:02:56 +02:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00