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