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] |
On Fri, Jul 25, 2003 at 05:26:12PM -0700, Michael Snyder wrote:
Andrea Michelotti wrote:
>----------------------- >Andrea Michelotti >HW/SW Co-Design Manager >IPITEC (ATMEL)
I think it can be approved. Do you have an FSF copyright assignment?
I'd want to ping Andrew about this first before scattering NULL pointer checks - Andrew, does "there is always a frame" include when the inferior does not exist yet?
Also, I think a better solution to this actual crash is for info threads to bail out early if we don't have an inferior. Probably target_has_registers ().
info_threads_command (char *arg, int from_tty) { struct thread_info *tp; ptid_t current_ptid; struct frame_info *cur_frame; int saved_frame_level = frame_relative_level (deprecated_selected_frame); int counter; char *extra_info;
/* Avoid coredumps which would happen if we tried to access a NULL deprecated_selected_frame. */ if (!target_has_stack) error ("No stack.");
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |