This is the mail archive of the gdb@sourceware.org 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]

Re: how to add a new command in the gdb


s88 <dave.tw@gmail.com> writes:
>    If I want to add a new command in the gdb, such as "info TLB" or
> some special operations. What should I do?
> I'm using a RSP to communicate a target simulator. So, it is remote debugging!

Each .c file in the GDB sources ends with a function named
_initialize_foo.  Those call functions like 'add_cmd'.  I'm afraid
you'll need to look at the definitions of add_cmd and its companions
for the details.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]