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