Commit graph

71 commits

Author SHA1 Message Date
Daniel Jacobowitz
e88c90f2c5 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.

        * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
        (make_symbol_completion_list): Likewise.
        (make_symbol_overload_list): Likewise.
        * buildsym.c (finish_block): Likewise.
        * breakpoint.c (get_catch_sals):  Likewise.
        * mdebugread.c (mylookup_symbol): Likewise.
        * objfiles.c (objfile_relocate): Likewise.
        * printcmd.c (print_frame_args): Likewise.
        * stack.c (print_block_frame_locals): Likewise.
        (print_block_frame_labels): Likewise.
        (print_frame_arg_vars): Likewise.
        * symmisc.c (dump_symtab): Likewise.
        * tracepoint.c (add_local_symbols): Likewise.
        (scope_info): Likewise.

2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.

2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS.
        * generic/gdbtk-stack.c (gdb_block_vars): Likewise.
        (gdb_get_blocks): Likewise.
        (gdb_get_vars_command): Likewise.
5~
2001-10-12 23:51:30 +00:00
Andrew Cagney
2b65245ef4 Add ui_out parameter to libgdb functions. 2001-09-18 05:00:51 +00:00
Keith Seitz
4309c8f23f * mi-cmd-var.c (varobj_update_one): Update call to
varobj_update to reflect recent api change.
2001-08-17 19:01:22 +00:00
Andrew Cagney
5b7f31a409 Move libgdb library functions to gdb.h (new file).
Update everything related to this.
2001-07-28 19:48:15 +00:00
Andrew Cagney
a433f9e473 * mi-main.c (mi_execute_command): Flush output after ``(gdb)''
prompt.  Bug reported by David Whedon.
(mi_execute_async_cli_command): Ditto.
(mi_exec_async_cli_cmd_continuation): Ditto.
(mi_command_loop): Ditto.
2001-07-12 05:54:48 +00:00
Mark Kettenis
bf702e7ee8 * mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
created `struct ui_out_data'.
2001-07-09 22:19:50 +00:00
Kevin Buettner
d8bf3afa18 Fix memory leak and compilation problems using AIX 5 native compiler. 2001-07-09 16:53:03 +00:00
Andrew Cagney
96052a95b1 * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
with `struct value *'.
2001-07-09 14:50:37 +00:00
Kevin Buettner
4671219147 Make function declarators match function declarations. 2001-07-09 05:53:44 +00:00
Andrew Cagney
9dc5e2a936 Replace:
if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0)
with:
  if (ui_out_is_mi_like_p (uiout))
2001-07-06 03:53:11 +00:00
Andrew Cagney
cff22675c6 For MI>0, output full breakpoint table header information. Output the
breakpoint table body as a list.
2001-06-27 17:27:08 +00:00
Andrew Cagney
8eb6914741 delete reference to query output 2001-06-26 19:11:48 +00:00
Andrew Cagney
dc61bc6d40 * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
"locals" entries.
* gdbmi.texinfo (stack-list-locals, stack-list-arguments)
(exec-interrupt, target-select, thread-select): Update
documentation.
* mi-stack.exp: Update.  Output for args=... and
locals=... changed to a list.
2001-06-26 18:50:51 +00:00
Andrew Cagney
d5e5643b98 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
"stack" entries.
(mi_cmd_stack_list_args): Ditto for "stack-args".
* gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
documentation.
(GDB/MI Stack Manipulation Commands): Fix section title.  Was
Stack Manipulation Commands in GDB/MI.
* mi-stack.exp: Update. Output for stack=..., args=... and
stack-args=... changed to a list.
2001-06-26 18:13:46 +00:00
Andrew Cagney
42a74a599a Unscramble two merged patches. This puts memory lists back to normal. 2001-06-26 05:12:37 +00:00
Andrew Cagney
68c81b5495 * stack.c (print_frame): For ui_out, output a list of arguments.
Update all tests.  Update doco.
2001-06-26 04:48:49 +00:00
Andrew Cagney
45399be4ec Update data-read-memory so that it outputs lists. 2001-06-25 21:05:11 +00:00
Andrew Cagney
80f43b40c5 For data-list-register-values output a list of register values. 2001-06-25 20:08:53 +00:00
Andrew Cagney
173d689456 Output register-names as a list. 2001-06-25 19:02:18 +00:00
Andrew Cagney
40d5d7e983 data-list-changed-registers outputs a list of registers. 2001-06-25 18:34:25 +00:00
Andrew Cagney
70242e8df5 Change mi/data-disassemble command output to a list ([]) instead of
({}).
2001-06-23 20:43:56 +00:00
Andrew Cagney
76fe6b98e8 * mi-out.c (struct ui_out_data): Replace field first_header with
suppress_output.
(mi_begin, mi_end): Check suppress_header.
(mi_field_int, mi_field_skip): Ditto.
(mi_field_string, mi_field_fmt): Ditto.
(mi_table_begin): When nr_rows is zero, set suppress_header else,
output the start of the header.
(mi_table_body): Clear suppress header.
2001-06-21 19:27:50 +00:00
Andrew Cagney
a7c14aa534 Output ``[]'' when a list. 2001-06-21 16:15:20 +00:00
Andrew Cagney
b25959ec59 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
(table_header_ftype): Ditto.
* cli-out.c (cli_table_header): Update.
* ui-out.c (ui_out_table_header): Update.
(uo_table_header): Update.
(default_table_header): Update.
(append_header_to_list): Update.
(struct ui_out_header): Add field ``col_name''.
(append_header_to_list): Use xstrdup.  Initialize col_name.
* breakpoint.c (breakpoint_1): Pass COL_NAME to
ui_out_table_header.
2001-06-21 15:39:54 +00:00
Andrew Cagney
d63f1d40c6 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
(default_table_begin): Ditto.
* breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
ui_out_table_begin.
Update everything.
2001-06-19 16:19:16 +00:00
Andrew Cagney
b30bf9ee99 Recognize -i=mi0, -i=mi1 and -i=mi. 2001-06-18 17:57:43 +00:00
Andrew Cagney
163e6d2d75 * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
syntax.
(GDB/MI Draft Changes to Output Syntax): Delete section.
2001-06-16 18:57:56 +00:00
Andrew Cagney
59807497db s/supress/suppress/ 2001-06-11 21:54:04 +00:00
Andrew Cagney
c42644305e Oops (again), missed a comment. 2001-06-10 01:20:21 +00:00
Andrew Cagney
d5e8ba6212 Move supress_field_separator logic into mi_open() and mi_close(). 2001-06-10 01:16:14 +00:00
Andrew Cagney
5e173cfd82 Oops. Clean up changelog entry. 2001-06-10 00:56:06 +00:00
Andrew Cagney
e2e11a4195 Make char *, const char *. 2001-06-10 00:22:41 +00:00
Andrew Cagney
5a9aa5dc6f Output ``[...]'' when a list. 2001-05-14 16:59:49 +00:00
Andrew Cagney
666547aa9e s/ui_out_list/ui_out_tupple/ 2001-05-12 04:08:24 +00:00
Andrew Cagney
9a0f0643ee Pass the tupple/list parameter. 2001-05-10 22:32:26 +00:00
Andrew Cagney
6311b07d72 Fix -Werror problem with mi-main.c. 2001-05-10 20:31:46 +00:00
Andrew Cagney
631ec795c9 Replace ui_out_list_{begin,end}() with ui_out_{begin,end}(). 2001-05-09 01:33:10 +00:00
Andrew Cagney
2e94c45304 * config/pa/xm-hppah.h (malloc): Really delete declaration
(MALLOC_INCOMPATIBLE): Really delete macro.
* cli/cli-cmds.c (apropos_command): Use xcalloc.
2001-03-28 23:21:43 +00:00
Eli Zaretskii
e9c75b65b1 * gdbint.texinfo: Change Permissions to GFDL. Update Copyright.
* gdbgui.texinfo: Change Permissions to GFDL.  Update Copyright.
	Replace "GDB" with "@value{GDBN}".  Fix markup.

	* annotate.texi: Change Permissions to GFDL.  Update Copyright.

	* gdb.texinfo: Change Permissions to GFDL.  Update Copyright.

	* gdbmi.texinfo: Update copyright.  Change Permissions to GFDL.
2001-03-26 11:51:50 +00:00
Andrew Cagney
8e2eec6299 Zap -Wuninitialized warnings. 2001-03-20 17:19:04 +00:00
Andrew Cagney
cf4eee44fd Zap __STDC__ references. 2001-03-19 23:31:41 +00:00
Andrew Cagney
a728f04251 Eliminate ARCH_NUM_REGS. 2001-03-13 23:31:14 +00:00
Kevin Buettner
b6ba6518e9 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
Andrew Cagney
4e052eda91 Create new file regcache.h. Update all uses. 2001-03-01 01:39:22 +00:00
Andrew Cagney
8e65ff28b0 Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
2001-02-08 06:03:54 +00:00
David Smith
27b82ed26e 2001-01-31 David Smith <dsmith@redhat.com>
* event-loop.c: Change inclusion of string.h to gdb_string.h and
	updated the copyright notice.
	* ser-pipe.c: Ditto.
	* mi/mi-cmds.c: Ditto.
	* mi/mi-console.c: Ditto.
	* mi/mi-getopt.c: Ditto.
	* mi/mi-parse.c: Ditto.
2001-01-31 15:46:36 +00:00
Fernando Nasser
80ee4fd53b 2001-01-27 Fernando Nasser <fnasser@redhat.com>
From Momchil Velikov  <velco@fadata.bg>
	* mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory
	attributes argument in the call to `xfer_memory'.
2001-01-27 22:18:15 +00:00
Kevin Buettner
e7b044d683 Removed (tui and mi) directory prefixes from ChangeLog comments that I
added in last commit.
2000-12-15 03:00:38 +00:00
Kevin Buettner
46c6187fb5 Put mi and tui comments for free -> xfree change in proper ChangeLogs. 2000-12-15 02:56:42 +00:00
Kevin Buettner
b8c9b27d1e Replace free() with xfree(). 2000-12-15 01:01:51 +00:00