[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-bugs
Subject:    Re: GDB m68k debug multi-thread application fails: capability not available [PATCH 2/2] gdb-6.6-UPAG
From:       lars71dk () gmail ! com
Date:       2013-05-31 13:06:30
Message-ID: 9f8fc279-7d20-4bf8-b403-6e51980ef381 () googlegroups ! com
[Download RAW message or body]

diff -rupaN gdb-6.6-orig/bfd/hosts/m68klinux.h gdb-6.6/bfd/hosts/m68klinux.h
--- gdb-6.6-orig/bfd/hosts/m68klinux.h	2010-08-09 13:28:14.000000000 +0800
+++ gdb-6.6/bfd/hosts/m68klinux.h	2010-08-09 13:30:28.000000000 +0800
@@ -20,6 +20,12 @@
 /* Linux dumps "struct task_struct" at the end of the core-file.  This
    structure is currently 2512 bytes long, but we allow up to 4096
    bytes to allow for some future growth.  */
+
+#define NBPG 4096
+#define UPAGES 1
+#define HOST_TEXT_START_ADDR (u.start_code)
+#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
+
 #define TRAD_CORE_EXTRA_SIZE_ALLOWED		4096
 #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \
   ((abfd)->tdata.trad_core_data->u.signal)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic