freebsd-dev/sys/ddb
Marcel Moolenaar a2aeb24eff Implement functions calls from within DDB on ia64. On ia64 a function
pointer doesn't point to the first instruction of that function, but
rather to a descriptor. The descriptor has the address of the first
instruction, as well as the value of the global pointer. The symbol
table doesn't know anything about descriptors, so if you lookup the
name of a function you get the address of the first instruction. The
cast from the address, which is the result of the symbol lookup, to a
function pointer as is done in db_fncall is therefore invalid.
Abstract this detail behind the DB_CALL macro. By default DB_CALL is
defined as db_fncall_generic, which yields the old behaviour. On ia64
the macro is defined as db_fncall_ia64, in which a descriptor is
constructed to yield a valid function pointer.

While here, introduce DB_MAXARGS. DB_MAXARGS replaces the existing
(local) MAXARGS. The DB_MAXARGS macro can be defined by platforms to
create a convenient maximum. By default this will be the legacy 10.
On ia64 we define this macro to be 8, for 8 is the maximum number of
arguments that can be passed in registers. This avoids having to
implement spilling of arguments on the memory stack.

Approved by: re (dwhite)
2005-07-02 23:52:37 +00:00
..
db_access.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_access.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_break.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_break.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_command.c Implement functions calls from within DDB on ia64. On ia64 a function 2005-07-02 23:52:37 +00:00
db_command.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_examine.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_expr.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_input.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_lex.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_lex.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_main.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_output.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_output.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_print.c rev 1.54 of i386/include/pcb.h depended on sys/proc.h. The prerequisite 2005-04-14 05:25:40 +00:00
db_ps.c Remove the uarea column from the DDB 'ps' display, and from grog's gdb 2004-11-20 02:32:42 +00:00
db_run.c rev 1.54 of i386/include/pcb.h depended on sys/proc.h. The prerequisite 2005-04-14 05:25:40 +00:00
db_sym.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_sym.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_thread.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_variables.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_variables.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_watch.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_watch.h Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
db_write_cmd.c Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
ddb.h Implement functions calls from within DDB on ia64. On ia64 a function 2005-07-02 23:52:37 +00:00