This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
- if (alignlen & 0x4) - stack_dest -= 4; + stack_dest = (stack_dest + 7) & ~0x7;
Your can use function 'align_up'.
/* Now write data to the stack. The stack grows downwards. */ stack_dest -= typelen + slacklen; write_memory (stack_dest, val, typelen + slacklen); - do_cleanups (back_to);
alloca is unsafe, and we prefer to use xmalloc/cleanup+xfree.
+ if (status == 0) {
+ /* fix gdb.base/gdb1250
+ * breakpoint is set before dynamic library loaded, thus gdb
+ * does a partial symbol name finding and sets the breakpoint
+ * in the plt stub. our 32-bundle prefetch window is too large
+ * for this situation to cause a memory access error.
+ * For plt stub, we just need to return directly.
+ *
+ * x86 does not have this problem, because the first instruction
+ * in their plt stub is jump, which ends the analysis also.
+ */
The comment style is not gnu style.
The problems looks about plt. I find tilegx port doesn't have a plt stub unwinder. I am not sure creating a plt stub unwinder can fix this problem,
but it should fix other fails in testsuite.
--- Regards, Jiong. Wang Tilera Corporation
-- Regards, Salad
office: +86-010-82825915, ext:653 cell: +86-13810021970
Attachment:
fix-glitches.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |