diff options
author | Michael Snyder <msnyder@specifix.com> | 2010-05-13 23:53:31 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2010-05-13 23:53:31 +0000 |
commit | 65d22948e1ee7d60c1bc24175e7378f933e8d72c (patch) | |
tree | b8b5f403d49e27a57c591fd9bbcdd281eb77dd24 /gdb/corelow.c | |
parent | 4c4cb03d0f9e6ff0c36847a01967538b21764770 (diff) | |
download | gdb-65d22948e1ee7d60c1bc24175e7378f933e8d72c.tar.gz |
2010-05-13 Michael Snyder <msnyder@vmware.com>
* charset.c: White space.
* c-lang.c: White space.
* cli-out.c: White space.
* coffread.c: White space.
* complaints.c: White space.
* completer.c: White space.
* corefile.c: White space.
* corelow.c: White space.
* cp-abi.c: White space.
* cp-namespace.c: White space.
* cp-support.c: White space.
* cp-valprint.c: White space.
* c-typeprint.c: White space.
* c-valprint.c: White space.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r-- | gdb/corelow.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c index 0bbe48129f0..9523f327319 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -418,6 +418,7 @@ core_open (char *filename, int from_tty) usually happen, but we're dealing with input here, which can always be broken in different ways. */ struct thread_info *thread = first_thread_of_process (-1); + if (thread == NULL) { inferior_appeared (current_inferior (), CORELOW_PID); @@ -764,8 +765,8 @@ core_xfer_partial (struct target_ops *ops, enum target_object object, struct bfd_section *section; bfd_size_type size; - char sectionstr[100]; + xsnprintf (sectionstr, sizeof sectionstr, "SPU/%s", annex); section = bfd_get_section_by_name (core_bfd, sectionstr); @@ -792,6 +793,7 @@ core_xfer_partial (struct target_ops *ops, enum target_object object, { /* NULL annex requests list of all present spuids. */ struct spuid_list list; + list.buf = readbuf; list.offset = offset; list.len = len; @@ -856,6 +858,7 @@ core_pid_to_str (struct target_ops *ops, ptid_t ptid) && gdbarch_core_pid_to_str_p (core_gdbarch)) { char *ret = gdbarch_core_pid_to_str (core_gdbarch, ptid); + if (ret != NULL) return ret; } |