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