summaryrefslogtreecommitdiff
path: root/ddb
AgeCommit message (Collapse)Author
2013-11-21ddb/db_sym.c: move assignment outside ifMarin Ramesa
* ddb/db_sym.c: Move assignment outside of if. (db_lookup): New variable.
2013-11-21ddb/db_break.c: fix implicit declaration of functionsMarin Ramesa
* ddb/db_break.c: Include machine/db_interface.h.
2013-11-20Fix implicit declaration of functionMarin Ramesa
* 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.
2013-11-20ddb/db_variables.c: fix initializations from incompatible pointer typeMarin Ramesa
* ddb/db_variables.c (db_set_default_thread, db_get_task_thread, db_arg_variable, fcn): Declare long return type.
2013-11-20ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEPMarin Ramesa
* ddb/db_run.c (brpc): Move declaration into SOFTWARE_SSTEP code.
2013-11-20ddb/db_run.c: trivial stylistic fix for consistencyMarin Ramesa
* ddb/db_run.c: Trivial stylistic fix for consistency.
2013-11-20ddb/db_run.c: remove set but unused variableMarin Ramesa
* ddb/db_run.c (ins): Remove variable.
2013-11-20ddb: fix implicit declaration of functionMarin Ramesa
* ddb/db_variables.c (db_read_write_variable): Remove forward declaration. * ddb/db_variables.h (db_read_write_variable): Add prototype.
2013-11-20ddb/db_examine.c: add missing castMarin Ramesa
ddb/db_examine.c (addr, count): Cast to (db_expr_t *).
2013-11-20Add commentMarin Ramesa
* ddb/db_command.c [DB_MACHINE_COMMANDS]: Add comment after endif.
2013-11-20ddb/db_break.c: quiet GCC warning about uninitialized variableMarin Ramesa
* ddb/db_break.c (bkpt): Initialize.
2013-11-19Add copyrightMarin Ramesa
* ddb/db_write_cmd.h: Add copyright. * ipc/ipc_print.h: Likewise. * vm/vm_print.h: Likewise.
2013-11-17ddb/stab.h: add ifndefMarin Ramesa
* ddb/stab.h: Add ifndef.
2013-11-17ddb/db_write_cmd.c: remove register qualifiersMarin Ramesa
* ddb/db_write_cmd.c: Remove register qualifiers.
2013-11-17ddb/db_watch.c: remove register qualifiersMarin Ramesa
* ddb/db_watch.c: Remove register qualifiers.
2013-11-17ddb/db_variables.c: remove register qualifiersMarin Ramesa
* ddb/db_variables.c: Remove register qualifiers.
2013-11-17ddb/db_task_thread.c: remove register qualifiersMarin Ramesa
* ddb/db_task_thread.c: Remove register qualifiers.
2013-11-17ddb/db_sym.h: add comment after endifMarin Ramesa
* ddb/db_sym.h: Add comment after endif.
2013-11-17ddb/db_sym.c: remove register qualifiersMarin Ramesa
* ddb/db_sym.c: Remove register qualifiers.
2013-11-17ddb/db_run.h: add ifndefMarin Ramesa
* ddb/db_run.h: Add ifndef.
2013-11-17ddb/db_run.c: remove register qualifiersMarin Ramesa
* ddb/db_run.c: Remove register qualifiers.
2013-11-17ddb/db_print.c: remove register qualifiersMarin Ramesa
* ddb/db_print.c: Remove register qualifiers.
2013-11-17ddb/db_output.h: add ifndefMarin Ramesa
* ddb/db_output.h: Add ifndef.
2013-11-17ddb/db_output.c: remove register qualifiersMarin Ramesa
* ddb/db_output.c: Remove register qualifiers.
2013-11-17ddb/db_mp.c: remove register qualifierMarin Ramesa
* ddb/db_mp.c: Remove register qualifier.
2013-11-17ddb/db_macro.c: remove register qualifiersMarin Ramesa
* ddb/db_macro.c: Remove register qualifiers.
2013-11-17ddb/db_lex.h: add ifndefMarin Ramesa
* ddb/db_lex.h: Add ifndef.
2013-11-17ddb/db_lex.c: remove register qualifiersMarin Ramesa
* ddb/db_lex.c: Remove register qualifiers.
2013-11-17ddb/db_input.c: remove register qualifiersMarin Ramesa
* ddb/db_input.c: Remove register qualifiers.
2013-11-17ddb/db_expr.c: remove register qualifierMarin Ramesa
* ddb/db_expr.c: Remove register qualifier.
2013-11-17ddb/db_examine.c: remove register qualifiersMarin Ramesa
* ddb/db_examine.c: Remove register qualifiers.
2013-11-17ddb/db_cond.c: remove register qualifiersMarin Ramesa
* ddb/db_cond.c: Remove register qualifiers.
2013-11-17ddb/db_command.h: add ifndefMarin Ramesa
* ddb/db_command.h: Add ifndef.
2013-11-17ddb/db_command.c: remove register qualifiersMarin Ramesa
* ddb/db_command.c: Remove register qualifiers.
2013-11-17ddb/db_break.c: remove register qualifiersMarin Ramesa
* ddb/db_break.c: Remove register qualifiers.
2013-11-17ddb/db_aout.c: remove register qualifiersMarin Ramesa
* ddb/db_aout.c: Remove register qualifiers.
2013-11-17ddb/db_access.h: add ifndefMarin Ramesa
* ddb/db_access.h: Add ifndef.
2013-11-17ddb/db_access.c: remove register qualifiersMarin Ramesa
* ddb/db_access.c: Remove register qualifiers.
2013-07-18ddb: cleanup db_command.cMarin Ramesa
* ddb/db_command.c (_longjmp): Remove prototype. (vm_map_print): Likewise. (vm_object_print): Likewise. (vm_page_print): Likewise. (vm_map_copy_print): Likewise. (ipc_port_print): Likewise. (ipc_pset_print): Likewise. (db_show_all_slocks): Likewise. (ipc_kmsg_print): Likewise. (ipc_msg_print): Likewise. Include <vm/vm_print.h>. Include <ipc/ipc_print.h>. Include <kern/lock.h>. * i386/i386/setjmp.h [__GNUC__] (_longjmp): Add prototype.
2013-07-07fix implicit declarationsMarin Ramesa
* ddb/db_trap.c: Include <machine/setjmp.h>. * i386/i386/setjmp.h (_setjmp): Add prototype.
2013-07-07Restore db_help_cmdSamuel Thibault
* ddb/db_command.c (db_help_cmd): Restore function.
2013-07-06ddb: cleanup db_command.cMarin Ramesa
* ddb/db_write_cmd.h: New file. (db_write_cmd): Add prototype. Include <mach/boolean.h>. Include <machine/db_machdep.h>. * ddb/db_break.h (db_listbreak_cmd): Add prototype. (db_delete_cmd): Likewise. (db_breakpoint_cmd): Likewise. * ddb/db_watch.h (db_listwatch_cmd): Likewise. (db_deletewatch_cmd): Likewise. (db_watchpoint_cmd): Likewise. * ddb/db_print.h (db_show_one_thread): Likewise. (db_show_all_threads): Likewise. * ddb/db_examine.h (db_print_cmd): Likewise. (db_examine_forward): Likewise. (db_examine_backward): Likewise. (db_search_cmd): Likewise. * ddb/db_variables.h (db_set_cmd): Likewise. * ddb/db_run.h (db_trace_until_call_cmd): Likewise. (db_trace_until_matching_cmd): Likewise. (db_continue_cmd): Likewise. * ddb/db_command.h (db_fncall): Likewise. * ddb/db_command.c: Include <ddb/db_break.h>. Include <ddb/db_watch.h>. Include <ddb/db_variables.h>. Include <ddb/db_write_cmd.h>. Include <ddb/db_run.h>. Include <ddb/db_cond.h>. (db_listbreak_cmd): Remove prototype. (db_listwatch_cmd): Likewise. (db_show_one_thread): Likewise. (db_show_all_threads): Likewise. (db_show_macro): Likewise. (db_show_help): Likewise. (db_print_cmd): Likewise. (db_examine_cmd): Likewise. (db_set_cmd): Likewise. (db_examine_forward): Likewise. (db_examine_backward): Likewise. (db_search_cmd): Likewise. (db_write_cmd): Likewise. (db_delete_cmd): Likewise. (db_breakpoint_cmd): Likewise. (db_deletewatch_cmd): Likewise. (db_watchpoint_cmd): Likewise. (db_single_step_cmd): Likewise. (db_trace_until_call_cmd): Likewise. (db_trace_until_matching_cmd): Likewise. (db_continue_cmd): Likewise. (db_cond_cmd): Likewise. (db_help_cmd): Likewise. (db_def_macro_cmd): Likewise. (db_del_macro_cmd): Likewise. (db_fncall): Likewise.
2013-07-05ddb: use and cleanup db_print.hMarin Ramesa
* ddb/db_command.c: Include db_print.h. Remove extern db_show_regs(). Remove extern db_show_one_task(). Remove extern db_show_port_id(). * ddb/db_print.c: Include db_print.h * ddb/db_print.h (db_show_all_acts): Remove prototype. (db_show_one_act): Likewise. (db_show_shuttle): Likewise. (db_show_one_task_vm): Likewise. (db_show_all_task_vm): Likewise. (db_show_one_space): Likewise. (db_show_all_spaces): Likewise. (db_sys): Likewise. (db_port_kmsg_count): Likewise. (db_show_one_simple_lock): Likewise. (db_show_one_mutex): Likewise. (db_show_subsystem): Likewise. (db_show_runq): Likewise.
2013-07-04ddb: fix implicit declarationsMarin Ramesa
* ddb/db_break.c: Include ddb/db_access.h. * ddb/db_examine.h (db_xcdump): Add prototype. * ddb/db_ext_symtab.c: Include vm/vm_user.h. * ddb/db_input.c: Include device/cons.h. * ddb/db_output.c: Likewise.
2013-02-04Include machine/db_interface instead of hardcoding function prototypesSamuel Thibault
* ddb/db_access.c: Include <machine/db_interface.h>. (db_read_bytes, db_write_bytes): Remove functions prototypes. (db_get_task_value): Fix calling db_read_bytes. (db_put_task_value): Fix calling db_write_bytes. * ddb/db_watch.c: Include <machine/db_interface.h>. (db_set_hw_watchpoint, db_clear_hw_watchpoint): Remove functions prototypes.
2013-02-04Plug hw debug register support into kdbSamuel Thibault
Make the `watch' command use hw debug registers whenever possible. * ddb/db_watch.c (db_set_hw_watchpoint, db_clear_hw_watchpoint): Add functions prototypes. (db_set_watchpoints): Try to call db_set_hw_watchpoint. (db_clear_watchpoints): Call db_clear_hw_watchpoint. * i386/i386/db_interface.c: Include <ddb/db_watch.h> (db_set_hw_watchpoint): Take a db_watchpoint_t WATCH parameter instead of its content. Remove support for clearing a debug register. (db_clear_hw_watchpoint): Add function. * i386/i386/db_interface.h: Include <ddb/db_watch.h>. (db_set_hw_watchpoint): Fix function prototype. (db_clear_hw_watchpoint): Add function prototype. * i386/i386/db_machdep.h: Do not include <machine/db_interface.h>
2013-01-04Fix compilation warning implicit function declaration kdbprintfDavid Höppner
When kernel debugger support is requested ipc and vm need the prototype for the debugger function kdbprintf. * ddb/db_output.h: Add prototype for kdbprintf. * ipc/ipc_object.c: Add include file ddb/db_output.h * ipc/ipc_port.c: Likewise. * ipc/ipc_pset.c: Likewise. * vm/vm_map.c: Likewise. * vm/vm_object.c: Likewise. * vm/vm_resident.c: Likewise.
2012-04-06Do not take address of va_list variableSamuel Thibault
This breaks on x86_64, where it is an array and thus gets bogus results. * ddb/db_output.c (db_printf, kdbprintf): Pass copy of va_list variable instead of its address. * kern/debug.c (panic, log): Likewise. * kern/printf.c (vprintf, iprintf, sprintf, vsnprintf): Likewise. (_doprnt): Take va_list instead of va_list *, fix usage and comment accordingly. * kern/printf.h (_doprnt): Take va_list instead of va_list *.
2012-03-20Use long typesSamuel Thibault
* ddb/db_examine.c (db_xcdump): Do not cast addr before passing to db_read_bytes. * ddb/db_macro.c (db_arg_variable): Return long. * ddb/db_macro.h (db_arg_variable): Likewise. * ddb/db_sym.c (db_maxoff): Set type to unsigned long. * ddb/db_task_thread.c (db_set_default_thread, db_get_task_thread): Return long. * ddb/db_variables.h (db_variable): Make fcn function field to return long. (FCN_NULL): Make function type return long. * i386/i386/db_interface.c (int_regs): Set field sizes to long. * i386/i386/db_machdep.h (db_expr_t): Set type to long. * i386/i386/db_trace.c (db_i386_reg_value): Return long. Use long types. (i386_frame, i386_kregs, interrupt_frame, db_nextframe): Set field sizes to long. (db_regs, i386_kregs): Use long * pointers. (db_lookup_i386_kreg): Return long *. (db_numargs, db_nextframe, db_stack_trace_cmd, db_i386_stack_trace): Use long types. * i386/i386/debug_i386.c (dump_ss): Fix format. * i386/i386/ktss.c (ktss_init): Use long type. * i386/i386/pcb.c (set_user_regs): Likewise. * i386/i386/thread.h (i386_saved_state, v86_segs, i386_kernel_state, i386_interrupt_state): Set field sizes to long. * i386/i386/trap.c (kernel_trap, user_trap): Fix formats. * kern/ast.h (ast_t): Set type to long. * kern/boot_script.c (create_task, resume_task, prompt_resume_task, boot_script_set_variable): Use long types. * kern/boot_script.h (boot_script_set_variable): Use long type. * kern/bootstrap.c (bootstrap_create): Pass long type. * kern/lock.c (simple_lock, simple_lock_try): Use long type. * linux/dev/kernel/softirq.c (linux_soft_intr): Fix format.
2009-06-182008-07-18 Andrei Barbu <andrei@0xab.com>Samuel Thibault
* (ddb/db_sym.h): Add _DDB_DB_SYM_H_ header protection. (db_find_sym_and_offset, db_find_xtrn_sym_and_offset, db_find_task_sym_and_offset, db_find_xtrn_task_sym_and_offset): Call db_free_symbol. (db_free_symbol): New declaration. (db_sym_switch): New `free_symbol' member. (X_db_free_symbol): New macro. * ddb/db_sym.c (db_value_of_name, db_lookup, db_name_is_ambiguous, db_search_task_symbol, db_search_in_task_symbol, db_task_printsym): Call db_free_symbol. (db_free_symbol): New function. (dummy_db_free_symbol): New empty function. (x_db): Initialize `free_symbol' memberi with dummy_db_free_symbol. * i386/i386/db_trace.c (db_i386_stack_trace): Call db_free_symbol. * kern/lock_mon.c (print_lock_info): Likewise.