daily update
[binutils-gdb.git] / gdb / ChangeLog
1 2005-01-13 Andrew Cagney <cagney@gnu.org>
2
3 * breakpoint.c (gdb_breakpoint_query): Update, use
4 catch_exceptions_with_msg.
5 (do_captured_breakpoint): Add uiout parameter.
6 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
7 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
8 gdb_thread_select. Return MI_CMD_ERROR instead of
9 MI_CMD_CAUGHT_ERROR.
10 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
11 (enum captured_mi_execute_command_actions): Delete
12 EXECUTE_COMMAND_DISPLAY_ERROR.
13 (captured_mi_execute_command): Delete code handling
14 MI_CMD_CAUGHT_ERROR.
15 (mi_execute_command): Don't check for
16 EXECUTE_COMMAND_DISPLAY_ERROR.
17 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
18 gdb_breakpoint_query.
19 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
20 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
21 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
22 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
23 parameter.
24 * thread.c (thread_command): Update call.
25 (gdb_thread_select, gdb_list_thread_ids): Update, call
26 catch_exceptions_with_msg.
27
28 * mi/mi-main.c (mi_execute_command): Use catch_exception,
29 eliminate call to error_last_message.
30 (captured_mi_execute_command): Change return type to void.
31
32 2005-01-12 Andrew Cagney <cagney@gnu.org>
33
34 * exceptions.c (exception_none): New variable.
35 * Makefile.in: Update dependencies.
36 * interps.c: Include "exceptions.h".
37 (interpreter_exec_cmd, interp_exec): Update to return "struct
38 exception"
39 * exceptions.h (no_exception): Declare.
40 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
41 * mi/mi-interp.c: Include "exceptions.h".
42 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
43 'struct exception".
44 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
45 (do_captured_execute_command): Update to use catch_exception.
46 * interps.h: Include "exceptions.h".
47 (interp_exec_ftype, interp_exec): Return "struct exception".
48
49 * exceptions.h (throw_reason): Rename throw_exception.
50 (enum errors, struct exception): Define.
51 (catch_exception_ftype): Define.
52 (catch_exception, throw_exception): Declare.
53 * exceptions.c (throw_exception): Rewrite.
54 (throw_reason): New function.
55 (struct catcher, catcher_state_machine): Replace "reason" with
56 "exception", delete "gdberrmsg".
57 (catch_exception): New function.
58 (catcher_init): Replace "gdberrmsg" parameter with "exception".
59 (catch_errors, catch_exceptions_with_msg): Re-implement passing
60 exception to catcher_init.
61 * utils.c (error_silent, error_stream_1): Use throw_reason.
62 (internal_verror, quit): Ditto.
63 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
64 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
65 * remote.c (remote_open_1, interrupt_query): Ditto.
66
67 2005-01-12 Mark Kettenis <kettenis@gnu.org>
68
69 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
70 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
71 (i386fbsd_jmp_buf_reg_offset): New variable.
72 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
73 functions.
74 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
75 * Makefile.in (i386fbsd-tdep.o): Update dependency.
76 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
77
78 * bsd-uthread.h: New file.
79 * bsd-uthread.c: New file.
80 * Makefile.in (bsd_uthread_h): New variable.
81 (ALLDEPFILES): Add bsd-uthread.c.
82 (bsd-uthread.o): New dependency.
83
84 * solib.h Update copyright year.
85 (struct so_list): Forward declaration.
86 (solib_read_symbols): New prototype.
87 * solib.c (solib_read_symbols): New function.
88 (solib_add): Call solib_read_symbols to read in symbols.
89 (update_solib_list): Call observer_notify_solib_loaded.
90
91 * i386bsd-nat.c: Update copyright year. Don't include
92 <sys/param.h> and <sys/user.h>.
93 (register_u_addr, kernel_u_size): Remove functions.
94 * config/i386/obsd.mh (NAT_FILE): Remove.
95 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
96 * config/i386/nm-obsd.h: Remove file.
97
98 2005-01-12 Andrew Cagney <cagney@gnu.org>
99
100 * exceptions.c: Include "gdb_string.h".
101 (enum catcher_state, struct catcher): Define.
102 (current_catcher): New global, replaces catch_return;
103 (catch_return): Delete.
104 (throw_exception): Use current_catcher->buf;
105 (catcher_init, catcher_pop, catcher_state_machine): New functions.
106 (catcher): Delete.
107 (struct catch_errors_args): Delete.
108 (do_catch_errors): Delete.
109 (catch_exceptions): Replace body with call to
110 catch_exceptions_with_msg.
111 (catcher): Delete.
112 (catch_exceptions_with_msg, catch_errors): Re-implement using
113 catcher_state_machine.
114
115 * exceptions.h (enum return_reason, RETURN_MASK)
116 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
117 (return_mask, throw_exception, catch_exceptions_ftype)
118 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
119 (catch_command_errors_ftype, catch_command_errors): Move to
120 exceptions.h.
121 * exceptions.c, exceptions.h: New files.
122 * top.c: Do not include <setjmp.h>.
123 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
124 (throw_exception, catcher, catch_exceptions)
125 (catch_exceptions_with_msg, struct catch_errors_args)
126 (do_catch_errors, catch_errors, struct captured_command_args)
127 (do_captured_command, catch_command_errors): Move to exceptions.c.
128 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
129 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
130 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
131 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
132 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
133 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
134 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
135 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
136 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
137 * ada-valprint.c, ada-lang.c: Ditto.
138 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
139 exceptions.o. Update all dependencies.
140
141 2005-01-11 Mark Kettenis <kettenis@gnu.org>
142
143 * config/i386/nm-fbsd.h: Update copyright year.
144 Don't include "config/nm-bsd.h".
145 (KERNEL_U_SIZE): Remove macro.
146 (kernel_u_size): Remove prototype.
147
148 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
149 * config/vax/nm-nbsdaout.h: Remove file.
150
151 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
152
153 * MAINTAINERS: Remove self from sh/sh64 maintainership.
154
155 2005-01-10 Andrew Cagney <cagney@gnu.org>
156
157 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
158 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
159 maintainer.
160
161 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
162 changes to CRIS.
163
164 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
165 COMMIT means can approve).
166
167 2005-01-10 Mark Kettenis <kettenis@gnu.org>
168
169 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
170 (vax_register_u_offset): Make statuc.
171 (_initialize_vax_nat): Construct and add target vector.
172 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
173 inftarg.o. Add inf-ptrace.o.
174 * Makefile.in (vax-nat.o): Update dependencies.
175
176 * inf-ptrace.h: Update copyright year. Sync comment with
177 inf-ptrace.c.
178 (inf_ptrace_trad_target): New prototype.
179 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
180 "gdb_assert.h"
181 (inf_ptrace_target): Add comment.
182 (inf_ptrace+register_u_offset): New variable.
183 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
184 (inf_ptrace_store_register, inf_ptrace_store_registers)
185 (inf_ptrace_trad_target): New functions.
186 * Makefile.in (inf-ptrace.o): Update dependencies.
187
188 2005-01-09 Mark Kettenis <kettenis@gnu.org>
189
190 * configure.ac: Provide prerequisite headers when checking
191 <link.h>, <sys/proc.h> and <sys/user.h>.
192 * configure: Regenerate.
193
194 2005-01-08 Mark Kettenis <kettenis@gnu.org>
195
196 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
197 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
198
199 2005-01-07 Mark Kettenis <kettenis@gnu.org>
200
201 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
202 Don't include "tm-ia64.h".
203 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
204 * config/ia64/tm-ia64.h: Remove. Move contents ...
205 * ia64-tdep.h: ... here. Update copyright year.
206
207 2005-01-07 Andrew Cagney <cagney@gnu.org>
208
209 * configure.ac: Rename configure.in, require autoconf 2.59.
210 * configure: Re-generate.
211
212 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
213 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
214 to configdirs.
215
216 * configure.in: Replace configdirs with multiple references to
217 AC_CONFIG_SUBDIRS.
218 * configure: Re-generate.
219
220 2005-01-05 Andreas Schwab <schwab@suse.de>
221
222 * ia64-tdep.c: Include "osabi.h".
223 (native_find_global_pointer): Delete.
224 (ia64_find_global_pointer): Renamed from
225 generic_elf_find_global_pointer.
226 (FIND_GLOBAL_POINTER): Delete. Change all users to call
227 ia64_find_global_pointer instead.
228 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
229 to ia64_linux_sigcontext_register_address and
230 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
231 (_initialize_ia64_tdep): Call gdbarch_register instead of
232 deprecated register_gdbarch_init.
233 (struct gdbarch_tdep): Remove find_global_pointer field and move
234 to ...
235 * ia64-tdep.h (struct gdbarch_tdep): ... here.
236 (ia64_linux_sigcontext_register_address): Remove declaration.
237 (ia64_linux_getunwind_table): Likewise.
238 (ia64_linux_write_pc): Likewise.
239 * ia64-linux-tdep.c: Include "osabi.h".
240 (ia64_linux_sigcontext_register_address): Make static.
241 (ia64_linux_write_pc): Likewise.
242 (ia64_linux_init_abi): New.
243 (_initialize_ia64_linux_tdep): New.
244 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
245 $(osabi_h).
246
247 2005-01-05 Kevin Buettner <kevinb@redhat.com>
248
249 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
250 functions in ia64-aix-tdep.c.
251 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
252 function defined in ia64-aix-tdep.c.
253 * ia64-aix-tdep.c: Remove file.
254 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
255 this list.
256 * Makefile.in (ia64-aix-tdep.o): Delete.
257
258 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
259
260 Committed by Andrew Cagney.
261 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
262 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
263 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
264 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
265 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
266 * aix-thread.c (_initialize_aix_thread): Get rid of the
267 deprecated_add_show_from_set call.
268 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
269 * arm-tdep.c (_initialize_arm_tdep): Ditto.
270 * command.h (add_setshow_enum_cmd): Add arguments for returning
271 new list elements.
272 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
273 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
274 add_setshow_enum_cmd.
275
276 2005-01-04 Mark Kettenis <kettenis@gnu.org>
277
278 * configure.host (ia64-*-aix*): Remove.
279 * configure.tgt (ia64-*-aix*): Remove.
280 * config/ia64/aix.mh: Remove file.
281 * config/ia64/aix.mt: Remove file.
282 * config/ia64/tm-aix.h: Remove file.
283 * ia64-aix-nat.c: Remove file.
284 * Makefile.in (ia64-aix-nat.o): Remove dependency.
285
286 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
287 Add back inf-ptrace.o.
288
289 2005-01-04 Andrew Cagney <cagney@gnu.org>
290
291 * version.in: Change format from 6.3.50_2005-01-04-cvs to
292 6.3.50.20050104-cvs.
293
294 2005-01-04 Andreas Schwab <schwab@suse.de>
295
296 * breakpoint.c (break_command_1): Always free err_msg before
297 returning when an exception was caught.
298
299 2005-01-01 Joel Brobecker <brobecker@gnat.com>
300
301 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
302 in register number for addil instruction.
303
304 For older changes see ChangeLog-2004.
305 \f
306 Local Variables:
307 mode: change-log
308 left-margin: 8
309 fill-column: 74
310 version-control: never
311 End: