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