Respond to qOffsets gdb packet (for debugging bFLT binaries).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1986 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
pbrook 2006-06-17 18:30:42 +00:00
parent e6de1bad46
commit 978efd6aac
4 changed files with 21 additions and 0 deletions

View file

@ -783,6 +783,9 @@ int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
info->start_brk = libinfo[0].start_brk;
info->start_stack = sp;
info->entry = start_addr;
info->code_offset = info->start_code;
info->data_offset = info->start_data - libinfo[0].text_len;
DBG_FLT("start_thread(entry=0x%x, start_stack=0x%x)\n",
(int)info->entry, (int)info->start_stack);