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