diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-06-17 18:30:42 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-06-17 18:30:42 +0000 |
commit | 978efd6aac65bc1e025472859eb738839425318b (patch) | |
tree | a1aaafb0c7f76db35adbc561da300525c635a6ae /linux-user/flatload.c | |
parent | e6de1bad4619dbbc40938449a53c4c27c418fdc6 (diff) |
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
Diffstat (limited to 'linux-user/flatload.c')
-rw-r--r-- | linux-user/flatload.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 1e2634b5a2..bf55be2b7d 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -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); |