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