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