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