This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Make -e optional for -data-disassemble
Thanks for the feedback. I have downloaded the git repo and will
apply the patches to that.
>> + ?if (start_seen && !end_seen && !file_seen && !line_seen && !num_seen)
>> + ? ?{
>> + ? ? ?if (!find_pc_partial_function (low, NULL, NULL, &high))
>> + ? ? error (_("-data-disassemble: "
>> + ? ? ? ? ? ? ?"No function contains specified address"));
>
> Perhaps you could search the minimal symbols too? The above searches
> the functions for which debugging information is available. But if
> you want to disassemble a glibc function, for instance, debug info
> is likely not going to be available.
Is there a function that covers this situation?
Sincerely,
Brett Lee