X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Frecord.c;h=ff54a8bd0da659e1360c8b8d9b68051b4cd195fb;hb=5aa03310cef09e8c41aaa05152d9570dfe62ba81;hp=d8e1098fd72a173d903d0c04692876e4e737f6f3;hpb=c6cd7c02d1b67aafe4c791e2828c58733c68c03d;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/record.c b/gdb/record.c index d8e1098..ff54a8b 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -114,8 +114,7 @@ record_stop (struct target_ops *t) { DEBUG ("stop %s", t->to_shortname); - if (t->to_stop_recording != NULL) - t->to_stop_recording (t); + t->to_stop_recording (t); } /* Unpush the record target. */ @@ -131,7 +130,7 @@ record_unpush (struct target_ops *t) /* See record.h. */ void -record_disconnect (struct target_ops *t, char *args, int from_tty) +record_disconnect (struct target_ops *t, const char *args, int from_tty) { gdb_assert (t->to_stratum == record_stratum); @@ -286,8 +285,7 @@ info_record_command (char *args, int from_tty) } printf_filtered (_("Active record target: %s\n"), t->to_shortname); - if (t->to_info_record != NULL) - t->to_info_record (); + t->to_info_record (t); } /* The "record save" command. */ @@ -312,13 +310,10 @@ cmd_record_save (char *args, int from_tty) target_save_record (recfilename); } -/* "record goto" command. Argument is an instruction number, - as given by "info record". - - Rewinds the recording (forward or backward) to the given instruction. */ +/* See record.h. */ void -cmd_record_goto (char *arg, int from_tty) +record_goto (const char *arg) { ULONGEST insn; @@ -331,6 +326,17 @@ cmd_record_goto (char *arg, int from_tty) target_goto_record (insn); } +/* "record goto" command. Argument is an instruction number, + as given by "info record". + + Rewinds the recording (forward or backward) to the given instruction. */ + +static void +cmd_record_goto (char *arg, int from_tty) +{ + record_goto (arg); +} + /* The "record goto begin" command. */ static void