diff options
| author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2018-07-05 20:10:57 +0530 |
|---|---|---|
| committer | Alistair Popple <alistair@popple.id.au> | 2018-07-12 14:34:30 +1000 |
| commit | 6e9481c7155ee696d8b743cfa0fe598f575fb062 (patch) | |
| tree | 27d27f1392c19f073e12eba0c1cb367bcea16988 | |
| parent | ca56cd36d6cafc9314e19dc23657d97fa142d060 (diff) | |
| download | pdbg-6e9481c7155ee696d8b743cfa0fe598f575fb062.tar.gz pdbg-6e9481c7155ee696d8b743cfa0fe598f575fb062.zip | |
probe: Validate target class
Make sure target class is not NULL before comparision.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -661,6 +661,10 @@ void print_target(struct pdbg_target *target, int level) if (target) { char c = 0; + + if (!pdbg_target_class_name(target)) + return; + if (!strcmp(pdbg_target_class_name(target), "pib")) c = 'p'; else if (!strcmp(pdbg_target_class_name(target), "core")) |

