diff for duplicates of <4DAD1F6B.2050006@windriver.com> diff --git a/a/1.txt b/N1/1.txt index 3a67e8b..53a57ed 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -69,17 +69,17 @@ Acked-by: Dongdong Deng <dongdong.deng@windriver.com> > - v2printk("Stopped at IP: %lx\n", instruction_pointer(&kgdbts_regs)); > -#ifdef CONFIG_X86 > - /* On x86 a breakpoint stop requires it to be decremented */ -> - if (addr + 1 = kgdbts_regs.ip) +> - if (addr + 1 == kgdbts_regs.ip) > - offset = -1; > -#elif defined(CONFIG_SUPERH) > - /* On SUPERH a breakpoint stop requires it to be decremented */ -> - if (addr + 2 = kgdbts_regs.pc) +> - if (addr + 2 == kgdbts_regs.pc) > - offset = -2; > + ip = instruction_pointer(&kgdbts_regs); > + v2printk("Stopped at IP: %lx\n", ip); > +#ifdef GDB_ADJUSTS_BREAK_OFFSET > + /* On some arches, a breakpoint stop requires it to be decremented */ -> + if (addr + BREAK_INSTR_SIZE = ip) +> + if (addr + BREAK_INSTR_SIZE == ip) > + offset = -BREAK_INSTR_SIZE; > #endif > - if (strcmp(arg, "silent") && diff --git a/a/content_digest b/N1/content_digest index 04bf8a8..778c434 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,17 +1,17 @@ "ref\01302760895-13459-1-git-send-email-vapier@gentoo.org\0" "ref\01302760895-13459-6-git-send-email-vapier@gentoo.org\0" "From\0DDD <dongdong.deng@windriver.com>\0" - "Subject\0Re: [Kgdb-bugreport] [PATCH 5/5] kgdbts: unify/generalize gdb\tbreakpoint\0" - "Date\0Tue, 19 Apr 2011 05:36:43 +0000\0" + "Subject\0Re: [Kgdb-bugreport] [PATCH 5/5] kgdbts: unify/generalize gdb\tbreakpoint adjustment\0" + "Date\0Tue, 19 Apr 2011 13:36:43 +0800\0" "To\0Mike Frysinger <vapier@gentoo.org>\0" "Cc\0Roland McGrath <roland@redhat.com>" Oleg Nesterov <oleg@redhat.com> - linux-kernel@vger.kernel.org - kgdb-bugreport@lists.sourceforge.net + <linux-kernel@vger.kernel.org> + <kgdb-bugreport@lists.sourceforge.net> Jason Wessel <jason.wessel@windriver.com> Andrew Morton <akpm@linux-foundation.org> - linux-sh@vger.kernel.org - x86@kernel.org + <linux-sh@vger.kernel.org> + <x86@kernel.org> Paul Mundt <lethal@linux-sh.org> H. Peter Anvin <hpa@zytor.com> Thomas Gleixner <tglx@linutronix.de> @@ -89,17 +89,17 @@ "> -\tv2printk(\"Stopped at IP: %lx\\n\", instruction_pointer(&kgdbts_regs));\n" "> -#ifdef CONFIG_X86\n" "> -\t/* On x86 a breakpoint stop requires it to be decremented */\n" - "> -\tif (addr + 1 = kgdbts_regs.ip)\n" + "> -\tif (addr + 1 == kgdbts_regs.ip)\n" "> -\t\toffset = -1;\n" "> -#elif defined(CONFIG_SUPERH)\n" "> -\t/* On SUPERH a breakpoint stop requires it to be decremented */\n" - "> -\tif (addr + 2 = kgdbts_regs.pc)\n" + "> -\tif (addr + 2 == kgdbts_regs.pc)\n" "> -\t\toffset = -2;\n" "> +\tip = instruction_pointer(&kgdbts_regs);\n" "> +\tv2printk(\"Stopped at IP: %lx\\n\", ip);\n" "> +#ifdef GDB_ADJUSTS_BREAK_OFFSET\n" "> +\t/* On some arches, a breakpoint stop requires it to be decremented */\n" - "> +\tif (addr + BREAK_INSTR_SIZE = ip)\n" + "> +\tif (addr + BREAK_INSTR_SIZE == ip)\n" "> +\t\toffset = -BREAK_INSTR_SIZE;\n" "> #endif\n" "> -\tif (strcmp(arg, \"silent\") &&\n" @@ -122,4 +122,4 @@ "> }\n" > -2c0a9f3af25551f8b0efeb5ebbbcffcf8bcb523f85341ed60ed90f93cedd58b5 +3a60d45c95d38becbcd8a4619a6dd65f8720142a89ee0b463e510f36d81330f0
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.