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