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