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