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