This is the mail archive of the gdb-patches@sources.redhat.com 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] |
So something like:
if (have symbol) { return (symbol matches __sigtramp.*); } else { return (mem[pc] == magic && mem[pc+1] == magic && ...); }
if (have symbol) -- new code return symbol matches __sigtramp.* else if (!find_pc_section) -- old code, sigtramps do not exist in a section return (mem[pc] == magic && mem[pc+1] == magic && ...)
Is it possible to add an extra guard to the else clause so that memory is only examined when there's a reasonable likelyhood of it being a sigtramp?
--- Begin Message ---
--- End Message ---
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |