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