aboutsummaryrefslogtreecommitdiff
path: root/ddb
Commit message (Collapse)AuthorAgeFilesLines
* ddb/db_output.c: remove duplicate functionMarin Ramesa2013-12-082-13/+2
| | | | | | | | | Function kdbprintf() and db_printf() are the same function. Remove kdbprintf() and define kdbprintf to db_printf. * ddb/db_output.c (kdbprintf): Remove function. * ddb/db_output.h: Define kdbprintf to db_printf. (kdbprintf): Remove prototype.
* ddb/db_output.c: remove call to nonexistent db_printf_enter()Marin Ramesa2013-12-081-3/+0
| | | | * ddb/db_output.c [db_printf_enter] (db_printf_enter): Remove call to nonexistent function.
* ddb/db_command.h: remove duplicate variable declarationMarin Ramesa2013-12-081-2/+0
| | | | * ddb/db_command.h (db_recover): Remove duplicate variable declaration.
* ddb/db_command.c: remove forward declarationMarin Ramesa2013-12-081-2/+0
| | | | * ddb/db_command.c (db_skip_to_eol): Remove forward declaration.
* Add missing includeSamuel Thibault2013-12-051-0/+1
| | | | * ddb/db_variables.h: Include <machine/db_machdep.h>.
* ddb/db_variables.c: fix near initializationMarin Ramesa2013-12-052-2/+4
| | | | | * ddb/db_task_thread.c (db_set_default_thread): New parameter. * ddb/db_task_thread.h (db_set_default_thread): Likewise.
* ddb/db_variables.c: remove forward declarationsMarin Ramesa2013-12-052-3/+16
| | | | | | | * ddb/db_task_thread.h: Include ddb/db_variables.h. (db_set_default_thread, db_get_task_thread): Add prototypes. * ddb/db_variables: Include ddb/db_macro.h. (db_set_default_thread, db_get_task_thread, db_arg_variable): Remove forward declarations.
* ddb/db_trap.c: remove forward declarationsMarin Ramesa2013-12-052-3/+11
| | | | | | * ddb/db_run.h (db_restart_at_pc, db_stop_at_pc): Add prototypes. * ddb/db_trap.c (db_restart_at_pc, db_stop_at_pc): Remove forward declarations. Include ddb/db_run.h.
* ddb/db_command.c: remove useless forward declaration without definitionMarin Ramesa2013-12-051-5/+0
| | | | | * ddb/db_command.c (ddb_display): Remove forward declaration. Remove ddb_display call.
* ddb/db_command.c: remove forward declarationMarin Ramesa2013-12-051-2/+0
| | | | | | * ddb/db_command.c (db_reset_cpu): Remove forward declaration. * i386/i386/db_interface.h (db_reset_cpu): Add prototype. * i386/i386at/model_dep.c: Include i386/db_interface.h.
* ddb/db_sym.c: fix argument listMarin Ramesa2013-12-051-1/+1
| | | | * ddb/db_sym.c (dummy_db_free_symbol): Fix argument list.
* ddb/db_sym.c: remove useless forward declarations without definitionsMarin Ramesa2013-12-051-9/+0
| | | | | * ddb/db_sym.c (coff_db_sym_init, coff_db_line_at_pc, db_sym_t coff_db_lookup, coff_db_search_symbol, coff_db_symbol_values): Remove forward declarations. (x_db): Modify field definition.
* ddb: new header file db_aout.hMarin Ramesa2013-12-054-7/+61
| | | | | | | | | | | | | | * Makefrag.am: Include ddb/db_aout.h. * ddb/db_aout.c: Include ddb/db_aout.h. * ddb/db_aout.h: New file. Add copyright. [_DDB_DB_AOUT_H_]: Add ifndef. Include ddb/db_sym.h. Include machine/db_machdep.h. (aout_db_line_at_pc, aout_db_lookup, aout_db_search_symbol, aout_db_symbol_values): Add prototypes. * ddb/db_sym.c: Include ddb/db_aout.h. (db_search_in_task_symbol, aout_db_line_at_pc, aout_db_lookup, aout_db_search_symbol, aout_db_symbol_values): Remove forward declarations. * ddb/db_sym.h (db_search_in_task_symbol): Add prototype.
* ddb/db_aout.c: trivial stylistic fix for consistencyMarin Ramesa2013-12-051-1/+1
| | | | * ddb/db_aout.c: Trivial stylistic fix for consistency.
* ddb/db_run.c: add comment after endifMarin Ramesa2013-12-051-1/+1
| | | | * ddb/db_run.c [FIXUP_PC_AFTER_BREAK]: Add comment after endif.
* ddb/db_mp.c: add comment after else and endifMarin Ramesa2013-12-051-3/+3
| | | | * ddb/db_mp.c [CONSOLE_ON_MASTER]: Add comment after else and endif.
* ddb/db_input.c: add comment after endifMarin Ramesa2013-12-051-3/+3
| | | | * ddb/db_input.c [DB_HISTORY_SIZE]: Add comment after endif.
* ddb/db_command.c: remove forward declarationsMarin Ramesa2013-12-052-2/+3
| | | | | | | * ddb/db_command.c: Include machine/db_interface.h. (db_help_cmd, db_stack_trace_cmd): Remove forward declarations. * ddb/db_command.h (db_help_cmd): Add prototype. * i386/i386/db_interface.h (db_stack_trace_cmd): Add prototype.
* Modify struct db_variableMarin Ramesa2013-11-245-15/+15
| | | | | | | | | | | | * ddb/db_macro.c (db_arg_variable): Make function void. * ddb/db_macro.h (db_arg_variable): Declare void return. * ddb/db_task_thread.c (db_set_default_thread): Make function void. (db_get_task_thread): Make function void. * ddb/db_variables.c (db_set_default_thread, db_get_task_thread, db_arg_variable): Declare void return. (db_read_write_variable): Use void in initialization. * ddb/db_variables.h (db_variable): Make third member return void. [FCN_NULL]: Define void. * i386/i386/db_trace.c (db_i386_reg_value): Make function void.
* ddb/db_examine.c: trivial stylistic fix for consistencyMarin Ramesa2013-11-241-1/+1
| | | | * ddb/db_examine.c: Trivial stylistic fix for consistency.
* ddb: move forward declarations into a header fileMarin Ramesa2013-11-242-6/+16
| | | | | * ddb/db_examine.c (db_disasm, db_search): Remove forward declarations. * ddb/db_examine.h (db_disasm, db_search): Add prototypes.
* ddb: move forward declaration into a header fileMarin Ramesa2013-11-242-2/+2
| | | | | * ddb/db_sym.c (db_lookup): Remove forward declaration. * ddb/db_sym.h (db_lookup): Add prototype.
* ddb: create new header file db_mp.hMarin Ramesa2013-11-242-5/+27
| | | | | | | | | * Makefrag.am: Include ddb/db_mp.h. * ddb/db_mp.c (remote_db, lock_db, unlock_db): Remove forward declarations. * ddb/db_mp.h: New file. Add copyright. [_DDB_DB_MP_H_]: Add ifndef. (remote_db, lock_db, unlock_db): Add prototypes.
* ddb: move forward declarations into a header fileMarin Ramesa2013-11-242-11/+11
| | | | | * ddb/db_run.c (db_set_task_single_step, db_clear_task_single_step): Remove forward declarations. * ddb/db_run.h (db_set_task_single_step, db_clear_task_single_step): Add prototypes.
* Simplify testSamuel Thibault2013-11-241-4/+2
| | | | | * ddb/db_sym.c (db_name_is_ambiguous): Simplify test for value returned by X_db_lookup.
* Remove leftover register qualifiersMarin Ramesa2013-11-241-1/+1
| | | | | | | | | | | | | | | * ddb/db_break.c: Remove register qualifiers. * i386/i386/pcb.c: Likewise. * i386/i386at/com.c: Likewise. * i386/i386at/lpr.c: Likewise. * i386/intel/pmap.c: Likewise. * kern/machine.c: Likewise. * kern/queue.h: Likewise. * kern/sched_prim.c: Likewise. * kern/sched_prim.h: Likewise. * kern/timer.c: Likewise. * vm/vm_fault.c: Likewise. * vm/vm_resident.h: Likewise.
* ddb/db_break.c: remove duplicate includeMarin Ramesa2013-11-221-1/+0
| | | | * ddb/db_break.c: Don't include ddb/db_access.h.
* ddb/db_sym.c: move assignment outside ifMarin Ramesa2013-11-211-1/+3
| | | | | * ddb/db_sym.c: Move assignment outside of if. (db_lookup): New variable.
* ddb/db_break.c: fix implicit declaration of functionsMarin Ramesa2013-11-211-0/+1
| | | | * ddb/db_break.c: Include machine/db_interface.h.
* Fix implicit declaration of functionMarin Ramesa2013-11-202-1/+7
| | | | | | | | * ddb/db_sym.c (aout_db_sym_init): Remove forward declaration. * ddb/db_sym.h (aout_db_sym_init): Add prototype. * i386/i386at/model_dep.c (aout_db_sym_init): Fix call. [MACH_KDB]: Include ddb/db_sym.h. [MACH_KDB]: Add comment after else and endif.
* ddb/db_variables.c: fix initializations from incompatible pointer typeMarin Ramesa2013-11-201-4/+4
| | | | * ddb/db_variables.c (db_set_default_thread, db_get_task_thread, db_arg_variable, fcn): Declare long return type.
* ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEPMarin Ramesa2013-11-201-1/+2
| | | | * ddb/db_run.c (brpc): Move declaration into SOFTWARE_SSTEP code.
* ddb/db_run.c: trivial stylistic fix for consistencyMarin Ramesa2013-11-201-1/+1
| | | | * ddb/db_run.c: Trivial stylistic fix for consistency.
* ddb/db_run.c: remove set but unused variableMarin Ramesa2013-11-201-3/+2
| | | | * ddb/db_run.c (ins): Remove variable.
* ddb: fix implicit declaration of functionMarin Ramesa2013-11-202-3/+2
| | | | | * ddb/db_variables.c (db_read_write_variable): Remove forward declaration. * ddb/db_variables.h (db_read_write_variable): Add prototype.
* ddb/db_examine.c: add missing castMarin Ramesa2013-11-201-2/+2
| | | | ddb/db_examine.c (addr, count): Cast to (db_expr_t *).
* Add commentMarin Ramesa2013-11-201-1/+1
| | | | * ddb/db_command.c [DB_MACHINE_COMMANDS]: Add comment after endif.
* ddb/db_break.c: quiet GCC warning about uninitialized variableMarin Ramesa2013-11-201-1/+1
| | | | * ddb/db_break.c (bkpt): Initialize.
* Add copyrightMarin Ramesa2013-11-191-0/+18
| | | | | | * ddb/db_write_cmd.h: Add copyright. * ipc/ipc_print.h: Likewise. * vm/vm_print.h: Likewise.
* ddb/stab.h: add ifndefMarin Ramesa2013-11-171-0/+4
| | | | * ddb/stab.h: Add ifndef.
* ddb/db_write_cmd.c: remove register qualifiersMarin Ramesa2013-11-171-3/+3
| | | | * ddb/db_write_cmd.c: Remove register qualifiers.
* ddb/db_watch.c: remove register qualifiersMarin Ramesa2013-11-171-11/+11
| | | | * ddb/db_watch.c: Remove register qualifiers.
* ddb/db_variables.c: remove register qualifiersMarin Ramesa2013-11-171-5/+5
| | | | * ddb/db_variables.c: Remove register qualifiers.
* ddb/db_task_thread.c: remove register qualifiersMarin Ramesa2013-11-171-18/+18
| | | | * ddb/db_task_thread.c: Remove register qualifiers.
* ddb/db_sym.h: add comment after endifMarin Ramesa2013-11-171-1/+1
| | | | * ddb/db_sym.h: Add comment after endif.
* ddb/db_sym.c: remove register qualifiersMarin Ramesa2013-11-171-13/+12
| | | | * ddb/db_sym.c: Remove register qualifiers.
* ddb/db_run.h: add ifndefMarin Ramesa2013-11-171-0/+5
| | | | * ddb/db_run.h: Add ifndef.
* ddb/db_run.c: remove register qualifiersMarin Ramesa2013-11-171-7/+7
| | | | * ddb/db_run.c: Remove register qualifiers.
* ddb/db_print.c: remove register qualifiersMarin Ramesa2013-11-171-6/+6
| | | | * ddb/db_print.c: Remove register qualifiers.
* ddb/db_output.h: add ifndefMarin Ramesa2013-11-171-0/+5
| | | | * ddb/db_output.h: Add ifndef.