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