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