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