8f4d1768a99fe510c45d5654a000da88451f2517
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2005-02-14 Andrew Cagney <cagney@gnu.org>
2
3 Mark up add_setshow functions, replace "PRINT:" comment prefix
4 with "FIXME: i18n:".
5 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
6 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
7 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
8 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
9 * target.c, cli/cli-logging.c: Update.
10
11 * utils.c (paddress): New function.
12 * defs.h (paddress): Declare.
13 * printcmd.c (deprecated_print_address_numeric): Rename
14 print_address_numeric, call paddress.
15 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
16 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
17 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
18 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
19 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
20 * ada-valprint.c: Update.
21
22 2005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
23
24 * MAINTAINERS: Add myself to "Write After Approval".
25
26 2005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
27
28 Restore h8300 support.
29 * configure.tgt: Add h8300-*-*
30 * h8300-tdep.c: New file. Rewrite new frame code.
31 * config/h8300/h8300.mt: New file. Restored Rev 1.3
32 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
33
34 * MAINTAINERS: Add myself to "Write After Approval".
35
36 2005-02-11 Andrew Cagney <cagney@gnu.org>
37
38 Mark up some of printf_filtered and printf_unfiltered.
39 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
40 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
41 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
42 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
43 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
44 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
45 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
46 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
47 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
48 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
49 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
50 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
51 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
52 * tui/tui-regs.c, tui/tui-win.c: Update.
53
54 Mark up error_no_arg, query, perror_with_name, complaint, and
55 internal_error.
56 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
57 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
58 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
59 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
60 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
61 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
62 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
63 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
64 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
65 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
66 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
67 * interps.c, language.c, linespec.c, linux-nat.c: Update.
68 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
69 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
70 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
71 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
72 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
73 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
74 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
75 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
76 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
77 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
78 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
79 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
80 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
81 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
82 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
83 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
84 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
85 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
86 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
87 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
88 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
89 * tui/tui-file.c, tui/tui-interp.c: Update.
90
91 2005-02-10 Andrew Cagney <cagney@gnu.org>
92
93 Mark up all error and warning messages.
94 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
95 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
96 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
97 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
98 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
99 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
100 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
101 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
102 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
103 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
104 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
105 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
106 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
107 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
108 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
109 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
110 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
111 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
112 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
113 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
114 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
115 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
116 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
117 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
118 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
119 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
120 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
121 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
122 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
123 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
124 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
125 * remote-utils.c, remote-utils.h, remote.c: Update.
126 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
127 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
128 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
129 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
130 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
131 * somread.c, somsolib.c, source.c, stabsread.c: Update.
132 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
133 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
134 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
135 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
136 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
137 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
138 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
139 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
140 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
141 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
142 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
143 * tui/tui-win.c: Update.
144
145 2005-02-10 Ian Lance Taylor <ian@airs.com>
146
147 * MAINTAINERS: Update my e-mail address.
148
149 2005-02-10 Daniel Jacobowitz <dan@debian.org>
150
151 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
152 PR exp/1821
153 * cp-valprint.c: Include "language.h".
154 (cp_print_value_fields): Pass the current language to
155 fprintf_symbol_filtered.
156 * Makefile.in (cp-valprint.o): Update dependencies.
157
158 2005-02-10 Andrew Cagney <cagney@gnu.org>
159
160 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
161 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
162 (add_setshow_filename_cmd, add_setshow_string_cmd)
163 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
164 print string parameter with fprint_setshow function.
165 * command.h (fprint_setshow_ftype): Define. Update declarations.
166 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
167 available, use that.
168 * cli/cli-decode.h (struct cmd_list_element): Add field
169 fprint_setshow.
170 * complaints.c (fprint_setshow_complaints): New function.
171 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
172 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
173 with NULL.
174 * mips-tdep.c (_initialize_mips_tdep): Ditto.
175 * m32r-rom.c (_initialize_m32r_rom): Ditto.
176 * cris-tdep.c (_initialize_cris_tdep): Ditto.
177 * arm-tdep.c (_initialize_arm_tdep): Ditto.
178 * remote-rdi.c (_initialize_remote_rdi): Ditto.
179 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
180 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
181 * frame.c (_initialize_frame): Ditto.
182 * target.c (initialize_targets): Ditto.
183 * maint.c (_initialize_maint_cmds): Ditto.
184 * observer.c (_initialize_observer): Ditto.
185 * infcall.c (_initialize_infcall): Ditto.
186 * breakpoint.c (_initialize_breakpoint): Ditto.
187 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
188 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
189
190 * cli/cli-setshow.c (do_setshow_command): Move code printing the
191 value to the end of the function. Handle MI and non-MI output
192 differently.
193
194 2005-02-09 Andrew Cagney <cagney@gnu.org>
195
196 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
197 show_result parameters.
198 * mips-tdep.c (_initialize_mips_tdep): Update calls.
199 * command.h: Update declaration.
200 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
201 calls.
202
203 * NEWS: Mention removed commands.
204 * m68hc11-tdep.c (show_regs): Delete, unused.
205 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
206 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
207 eventdebug" commands.
208 * gdb-events.c: Regenerate.
209 * gdbarch.sh: Delete deprecated "set archdebug" and "show
210 archdebug" commands.
211 * gdbarch.c: Regenerate.
212 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
213 remotedebug" and "show remotedebug".
214 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
215 disassembly-flavor", "show arm disassembly-flavor", and
216 "othernames" commands.
217 (arm_othernames): Delete unused function.
218
219 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
220 (convert_code_addr_to_desc_addr): Convert any function code
221 address to the corresponding function's descriptor.
222 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
223 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
224 writing, convert any function code address to the corresponding
225 descriptor.
226
227 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
228 * config/powerpc/linux.mt (TDEPFILES): Ditto.
229 * config/pa/linux.mt (TDEPFILES): Ditto.
230 * config/mips/linux.mt (TDEPFILES): Ditto.
231 * config/m68k/linux.mt (TDEPFILES): Ditto.
232 * config/m32r/linux.mt (TDEPFILES): Ditto.
233 * config/ia64/linux.mt (TDEPFILES): Ditto.
234 * config/arm/linux.mt (TDEPFILES): Ditto.
235
236 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
237
238 * symmisc.c: Include gdb_stat.h.
239 (maintenance_print_msymbols): Use inode numbers to compare files.
240
241 2005-02-08 Andrew Cagney <cagney@gnu.org>
242
243 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
244 (METHOD_PTR_TO_VOFFSET): Move from here ...
245 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
246 (METHOD_PTR_TO_VOFFSET): ... to here.
247 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
248 * Makefile.in: Update dependencies.
249
250 * exceptions.c: Do not include <setjmp.h>.
251 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
252 (catch_exception, catch_exceptions_with_msg, catch_errors)
253 (catch_command_errors): Use TRY_CATCH.
254 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
255 (exceptions_state_mc_init): Rename catcher_init.
256 (exceptions_state_mc): Rename catcher_state_machine.
257 (exceptions_state_mc_action_iter)
258 (exceptions_state_mc_action_iter_1): New functions.
259 * exceptions.h: Include <setjmp.h>.
260 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
261 (EXCEPTIONS_SIGLONGJMP): Define.
262 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
263 (exceptions_state_mc_action_iter_1): Declare.
264 (TRY_CATCH): Define.
265
266 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
267 no longer needed.
268
269 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
270 PT_FPSCR breakage.
271
272 * value.c (struct value): Move to here ...
273 * value.h (struct value): ... from here. Copy comments to
274 corresponding function declarations, re-order.
275
276 2005-02-07 Andrew Cagney <cagney@gnu.org>
277
278 * value.c (set_value_bitpos, set_value_bitsize): Define.
279 * value.h (set_value_bitpos, set_value_bitsize): Declare.
280 * ada-lang.c, valarith.c: Update.
281
282 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
283 value_contents_writeable, include note that there are problems.
284 * breakpoint.c, infcall.c: Use VALUE_LVAL.
285
286 * value.h (set_value_offset): Declare.
287 * value.c (set_value_offset): Declare.
288 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
289 * findvar.c: Update.
290
291 * value.h (value_next): Declare.
292 * value.c (value_next): Define.
293 * breakpoint.c: Update.
294
295 * value.h (deprecated_set_value_modifiable)
296 (deprecated_value_modifiable): Declare.
297 * value.c (deprecated_set_value_modifiable): Define.
298 (deprecated_value_modifiable): Define.
299 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
300
301 * value.h (deprecated_set_value_type): Declare.
302 * value.c (deprecated_set_value_type): Define.
303 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
304 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
305 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
306 * ax-gdb.c, tracepoint.c: Update.
307
308 * value.h (deprecated_value_lval_hack)
309 (deprecated_value_address_hack)
310 (deprecated_value_internalvar_hack)
311 (deprecated_value_regnum_hack): Declare.
312 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
313 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
314 * value.c (deprecated_value_lval_hack)
315 (deprecated_value_address_hack)
316 (deprecated_value_internalvar_hack)
317 (deprecated_value_regnum_hack): Define.
318
319 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
320 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
321 * value.c (set_value_pointed_to_offset): Define
322 (value_pointed_to_offset): Define.
323 * valops.c: Update.
324
325 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
326 (value_embedded_offset, set_value_embedded_offset): Declare.
327 * value.c (value_embedded_offset): Define.
328 (set_value_embedded_offset): Define.
329 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
330 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
331 * cp-abi.h: Update.
332
333 * value.h (VALUE_LAZY): Delete
334 (set_value_lazy): Declare.
335 * value.c (set_value_lazy): Define.
336 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
337 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
338
339 2005-02-06 Andrew Cagney <cagney@gnu.org>
340
341 * value.h (VALUE_OPTIMIZED_OUT): Delete.
342 (value_optimized_out, set_value_optimized_out): Declare.
343 * value.c (set_value_optimized_out, value_optimized_out): Define.
344 * valprint.c, findvar.c, dwarf2loc.c: Update.
345
346 * value.c (value_contents, value_contents_writeable): New
347 functions.
348 * value.h (VALUE_CONTENTS): Delete macro.
349 (value_contents, value_contents_writeable): Declare.
350 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
351 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
352 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
353 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
354 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
355 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
356 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
357 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
358 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
359 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
360 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
361 * ada-valprint.c, ada-lang.c: Update.
362
363 2005-02-03 Andrew Cagney <cagney@gnu.org>
364
365 * utils.c (xzalloc): New function.
366 * defs.h (XZALLOC): Use xzalloc.
367 (xzalloc): Declare.
368 * value.c (allocate_value): Allocate a zeroed buffer.
369 * mdebugread.c (xzalloc): Delete.
370
371 2005-02-02 Andrew Cagney <cagney@gnu.org>
372
373 * value.h (value_lazy): Declare.
374 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
375 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
376
377 * value.h (VALUE_CONTENTS_ALL): Delete.
378 (value_contents_all): Declare.
379 * value.c (value_contents_all): New function.
380 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
381 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
382
383 * value.c (value_enclosing_type): New function.
384 * value.h (VALUE_ENCLOSING_TYPE): Delete.
385 (value_enclosing_type): Declare.
386 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
387 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
388
389 * value.c (value_contents_all_raw)
390 (value_contents_raw): New functions.
391 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
392 (value_contents_raw, value_contents_all_raw): Declare functions.
393 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
394 * std-regs.c, valarith.c, valops.c, eval.c: Update.
395 * tracepoint.c, findvar.c: Update.
396
397 2005-02-01 Orjan Friberg <orjanf@axis.com>
398
399 * regformats/reg-cris.dat: New file with register definitions for CRIS.
400 * regformats/reg-crisv32.dat: Ditto for CRISv32.
401
402 2005-01-31 Andrew Cagney <cagney@gnu.org>
403
404 * configure: Regenerate to track ../gettext.m4.
405
406 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
407
408 * MAINTAINERS: Add myself to "Write After Approval".
409
410 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
411 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
412 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
413
414 2005-01-29 Mark Kettenis <kettenis@gnu.org>
415
416 * configure.ac: Remove extra check for ranlib.
417 * configure: Regenerated.
418
419 2005-01-28 Andrew Cagney <cagney@gnu.org>
420
421 * language.h (struct language_defn): Make la_val_print's buffer
422 parameter a const bfd_byte.
423 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
424 * ada-lang.c (ada_aligned_value_addr)
425 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
426 * valprint.c (val_print_array_elements): Update.
427 * valprint.h (val_print_array_elements): Update.
428 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
429 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
430 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
431 (ada_val_print_1, ada_print_floating, printable_val_type)
432 (print_record, val_print_packed_array_elements)
433 (print_field_values, print_variant_part): Update.
434 * c-lang.h (c_val_print, cp_print_value_fields): Update.
435 * c-valprint.c (c_val_print): Update.
436 * f-lang.h (f_val_print): Update.
437 * f-valprint.c (f_val_print, f77_print_array_1)
438 (f77_print_array): Update.
439 * jv-lang.h (java_val_print): Update.
440 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
441 * language.c (unk_lang_val_print): Update.
442 * m2-lang.h (m2_val_print): Update.
443 * m2-valprint.c (m2_val_print): Update.
444 * p-lang.h (pascal_val_print): Update.
445 (pascal_object_print_value_fields): Update.
446 * p-valprint.c (pascal_val_print)
447 (pascal_object_print_value_fields, pascal_object_print_value)
448 (pascal_object_print_value): Update.
449 * scm-lang.h (scm_val_print): Update.
450 * scm-valprint.c (scm_val_print): Update.
451 * value.h (val_print): Update.
452
453 * p-lang.h (pascal_object_print_class_member)
454 (pascal_object_print_class_method): Make buffer a const bfd_byte.
455 * p-valprint.c (pascal_object_print_class_method)
456 (pascal_object_print_class_method): Ditto.
457
458 * language.h (struct language_defn): Make la_printstr's buffer
459 parameter a const bfd_byte.
460 * p-lang.h (pascal_printstr): Update function to match.
461 * ada-valprint.c (ada_printstr): Update function to match.
462 * scm-lang.c (scm_printstr): Update function to match.
463 * p-lang.c (pascal_printstr): Update function to match.
464 * ada-lang.h (ada_printstr): Update function to match.
465 * m2-lang.c (m2_printstr): Update function to match.
466 * objc-lang.c (objc_printstr): Update function to match.
467 * c-lang.h (c_printstr): Update function to match.
468 * f-lang.c (f_printstr): Update function to match.
469 * c-lang.c (c_printstr): Update function to match.
470 * language.c (unk_lang_printstr): Update function to match.
471
472 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
473 * valprint.h (val_print_type_code_int): Ditto.
474
475 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
476
477 * cp-valprint.c (cp_print_class_method)
478 (cp_print_class_member): Make buffer a const bfd_byte.
479 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
480
481 * ada-lang.c (value_from_contents_and_address)
482 (to_record_with_fixed_variant_part)
483 (value_tag_from_contents_and_address, ada_to_fixed_type)
484 (to_fixed_variant_branch_type, to_fixed_record_type)
485 (ada_template_to_fixed_record_type, cond_offset_host)
486 (ada_template_to_fixed_record_type_1): Make buffer a const
487 bfd_byte.
488 * ada-lang.h (ada_template_to_fixed_record_type_1)
489 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
490
491 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
492
493 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
494 * printcmd.c (print_scalar_formatted): Update.
495
496 * value.h (value_bit_index, print_floating)
497 (find_rt_vbase_offset): Make buffer a const bfd_byte.
498 * valprint.c (print_floating): Update.
499 * valarith.c (value_bit_index): Update.
500 * valops.c (find_rt_vbase_offset): Update.
501
502 * valprint.h (print_octal_chars, print_char_chars)
503 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
504 buffer a const bfd_byte.
505 * valprint.c (print_binary_chars, print_octal_chars)
506 (print_decimal_chars, print_hex_chars, print_char_chars): Make
507 "valaddr"buffer a const bfd_byte, ditto for local variables
508 referencing that buffer.
509
510 * m2-valprint.c: Include "c-lang.h".
511 (c_val_print): Delete extern declaration.
512 * scm-valprint.c: Include "c-lang.h".
513 (c_val_print): Delete extern declaration.
514 Makefile.in: Update dependencies.
515
516 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
517 bfd_byte.
518 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
519 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
520 bfd_byte.
521 * cp-abi.c (baseclass_offset): Update.
522 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
523
524 * gnu-v2-abi.h: New file.
525 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
526 (gnuv2_baseclass_offset): Delete declaration.
527 * hpacc-abi.c: Include "gnu-v2-abi.h".
528 (gnuv2_baseclass_offset): Delete extern declaration.
529 * Makefile.in: Update dependencies.
530
531 * doublest.c (floatformat_is_negative, floatformat_is_nan)
532 (floatformat_mantissa, get_field): Make the buffer a const
533 bfd_byte, simplify.
534
535 2005-01-27 Andrew Cagney <cagney@gnu.org>
536
537 * value.h (struct value): Change type of contents to bfd_byte.
538 (VALUE_CONTENTS_RAW): Simplify.
539
540 * gdbarch.sh (integer_to_address): Change buf parameter to a const
541 bfd_byte, make pure-multi-arch.
542 * gdbarch.h, gdbarch.c: Regenerate.
543 * mips-tdep.c (mips_integer_to_address): Update.
544 * value.c (value_as_address): Update.
545
546 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
547 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
548 parameters const, change buf to a const bfd_byte.
549 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
550 parameters const.
551
552 * corefile.c (write_memory): Update, make a copy of the read-only
553 buffer.
554 * target.c (target_read_memory): Update.
555 (target_write_memory): Update, make a copy of the read-only
556 buffer.
557 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
558 const.
559 * target.h (target_read_memory, target_write_memory): Change
560 buffer type to bfd_byte; for write_memory, make it const.
561 * symfile-mem.c (do_target_read_memory): New function.
562 (symbol_file_add_from_memory): Pass do_target_read_memory to
563 bfd_elf_bfd_from_remote_memory.
564
565 * value.h: Indent using gdb_indent.sh.
566
567 * configure: Regenerate to track ../gettext.m4 change.
568
569 2005-01-26 Andrew Cagney <cagney@gnu.org>
570
571 * rs6000-tdep.c: Include "reggroups.h".
572 (rs6000_gdbarch_init): Set register_reggroup_p.
573 (rs6000_register_reggroup_p): New function.
574
575 2005-01-26 Orjan Friberg <orjanf@axis.com>
576
577 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
578 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
579 CRISv32.
580 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
581 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
582 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
583 (crisv32_register_type, cris_special_register_name)
584 (crisv32_register_name): New functions.
585 (cris_spec_reg_applicable): Recognize more versions.
586 (cris_register_name): Update with call to cris_special_register_name.
587 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
588 warning when unable to find step target.
589 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
590 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
591 CRISv32.
592 (fetch_core_registers): Update for CRISv32.
593 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
594 register_name, cannot_store_register, cannot_fetch_register,
595 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
596
597 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
598
599 * interps.c (interpreter_exec_cmd): Use condition,
600 e.reason < 0, to raise an error.
601
602 2005-01-25 Andrew Cagney <cagney@gnu.org>
603
604 * ppc-linux-tdep.c: Include "tramp-frame.h"
605 (struct ppc_linux_sigtramp_cache)
606 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
607 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
608 (ppc_linux_sigtramp_cache): Delete.
609 (ppc32_linux_sigaction_cache_init)
610 (ppc64_linux_sigaction_cache_init)
611 (ppc32_linux_sighandler_cache_init)
612 (ppc64_linux_sighandler_cache_init)
613 (ppc32_linux_sigaction_tramp_frame)
614 (ppc64_linux_sigaction_tramp_frame)
615 (ppc32_linux_sighandler_tramp_frame)
616 (ppc64_linux_sighandler_tramp_frame)
617 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
618 64-bit, sigaction and siginfo tramp-frame unwinders.
619
620 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
621 long_double_bit to 8.
622
623 2005-01-24 Andrew Cagney <cagney@gnu.org>
624
625 * infrun.c (handle_inferior_event): Handle back-to-back and nested
626 signals where the step_resume_breakpoint may have already been
627 inserted.
628
629 2005-01-24 Andrew Cagney <cagney@gnu.org>
630
631 * configure: Regenerate, ../gettext.m4 was updated.
632
633 2005-01-23 Mark Kettenis <kettenis@gnu.org>
634
635 * NEWS: Mention new BSD user-level threads support.
636
637 * i386obsd-tdep.c: Update copyright year. Include
638 "bsd-uthread.h".
639 (i386obsd_uthread_reg_offset): New variable.
640 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
641 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
642 functions.
643 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
644 * Makefile.in (i386obsd-tdep.o): Update dependencies.
645 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
646
647 2005-01-23 Christopher Faylor <cgf@timesys.com>
648
649 * win32-nat.c: Update copyright year.
650 (child_init_thread_list): Set thread linked list point to NULL so that
651 it won't be reused after clearing.
652
653 2005-01-21 Mark Kettenis <kettenis@gnu.org>
654
655 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
656 undefs.
657 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
658 thread' has a td_pcb member and whether `struct reg' has r_fs and
659 r_gs members.
660 * configure, config.in: Regenerate.
661
662 2005-01-21 Mark Kettenis <kettenis@gnu.org>
663
664 * configure.ac: Remove ia64-*-aix* junk.
665 * configure: Regenerate.
666
667 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
668 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
669 is necessary.
670 * configure, config.in: Regenerate.
671 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
672 BFD_NEED_DECLARATION. Never provide a prototype for
673 caninicalize_file_name.
674 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
675 BFD_NEED_DECLARATION.
676
677 * configure.ac (targ_archs): Use standard autoconf check for
678 "struct stat.st_blocks" instead of rolling our own.
679 * configure: Regenerated.
680 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
681 * config.in: Regenerated.
682
683 2005-01-21 Mark Kettenis <kettenis@gnu.org>
684
685 * configure.ac: Modernize checks for `long long' and `long double'
686 support.
687 * configure: Regenerated.
688 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
689 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
690 * config.in: Regenerated.
691
692 2005-01-20 Mark Kettenis <kettenis@gnu.org>
693
694 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
695 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
696 * configure.ac: Remove checks for HP-UX save_state structure.
697 * configure: Regenerated.
698
699 2005-01-19 Andrew Cagney <cagney@gnu.org>
700
701 * utils.c (quit): Simplify, call fatal.
702 * exceptions.c: Include "serial.h"
703 (print_flush): Mimic flush code found in utils.c:quit.
704 * Makefile.in: Update dependencies.
705
706 2005-01-19 Jim Blandy <jimb@redhat.com>
707
708 * configure.tgt: Set build_rdi_share to "yes" on those targets
709 that use that debugging protocol.
710 Set build_nlm to yes to build NLM stub for Netware targets.
711 * configure.ac: If build_rdi_share is "yes", then configure the
712 rdi-share subdirectory.
713 If build_nlm is "yes", the configure the "nlm" subdirectory.
714 * configure: Regenerated.
715
716 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
717 autoconf 2.59 and automake 1.9.3.
718
719 2005-01-19 Andrew Cagney <cagney@gnu.org>
720
721 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
722 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
723 * utils.c (internal_verror, quit): Update.
724 * remote-sds.c (interrupt_query): Update.
725 * remote-mips.c (mips_error, mips_kill): Update.
726 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
727 * remote.c (interrupt_query): Update.
728 * ocd.c (interrupt_query): Update.
729 * nto-procfs.c (interrupt_query): Update.
730 * monitor.c (monitor_interrupt_query): Update.
731 * breakpoint.c (break_command_1): Update.
732
733 * infrun.c: (resume, proceed, wait_for_inferior)
734 (handle_inferior_event, stop_stepping)
735 (prepare_to_wait): Write debug output to gdb_stdlog.
736
737 2005-01-19 Mark Kettenis <kettenis@gnu.org>
738
739 * inf-ptrace.c (inf_ptrace_prepare_to_store)
740 (inf_ptrace_post_startup_inferior)
741 (inf_ptrace_acknowledge_created_inferior)
742 (inf_ptrace_insert_fork_catchpoint)
743 (inf_ptrace_remove_fork_catchpoint)
744 (inf_ptrace_insert_vfork_catchpoint):
745 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
746 (inf_ptrace_insert_exec_catchpoint)
747 (inf_ptrace_remove_exec_catchpoint): Remove functions.
748 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
749 (inf_ptrace_target): Don't set to_prepare_to_store,
750 to_post_startup_inferior, to_acknowledge_created_inferior,
751 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
752 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
753 to_follow_fork, to_insert_exec_catchpoint,
754 to_remove_exec_catchpoint.
755
756 2005-01-18 Andrew Cagney <cagney@gnu.org>
757
758 * target.h (struct target_ops): Change return type of
759 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
760 to_insert_exec_catchpoint to void.
761 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
762 (child_insert_exec_catchpoint): Change return type to void.
763 * target.c (update_current_target): Update.
764 (debug_to_insert_fork_catchpoint)
765 (debug_to_insert_vfork_catchpoint)
766 (debug_to_insert_exec_catchpoint): Update.
767 * inf-child.c (inf_child_insert_fork_catchpoint)
768 (inf_child_insert_vfork_catchpoint)
769 (inf_child_insert_exec_catchpoint): Update.
770 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
771 * linux-nat.c (child_insert_fork_catchpoint)
772 (child_insert_vfork_catchpoint)
773 (child_insert_exec_catchpoint): Update.
774 * inftarg.c (child_insert_fork_catchpoint)
775 (child_insert_vfork_catchpoint,)
776 (child_insert_exec_catchpoint): Update.
777
778 * remote.c (remote_open_1): Use throw_exception.
779
780 2005-01-17 Michael Snyder <msnyder@redhat.com>
781
782 * mips-linux-tdep.c: Whitespace tweaks.
783
784 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
785
786 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
787
788 2005-01-17 Andrew Cagney <cagney@gnu.org>
789
790 * top.h (source_error, source_pre_error): Delete declaration.
791 * cli/cli-script.c (source_error_allocated, source_error): Delete.
792 (script_from_file, source_cleanup_lines): Do not manipulate
793 source_error_allocated, error_pre_print and source_error.
794 (struct source_cleanup_lines_args): Delete fields old_pre_error,
795 and old_error_pre_print.
796 * top.c (source_error_allocated, source_error)
797 (source_pre_error): Delete.
798 (command_line_input): Do not set error_pre_print.
799 * event-top.c (command_line_handler): Do not set error_pre_print.
800
801 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
802
803 * MAINTAINERS: Update my email address.
804
805 2005-01-16 Mark Kettenis <kettenis@gnu.org>
806
807 * configure.ac: Provide prerequisite headers when checking
808 <term.h>.
809 * configure: Regenerate.
810
811 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
812 and "bsd-uthread.h".
813 (amd64fbsd_jmp_buf_reg_offset): New variable.
814 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
815 functions.
816 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
817 * i386fbsd-tdep.c: Fix typo.
818 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
819 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
820
821 2005-01-16 Andrew Cagney <cagney@gnu.org>
822
823 * cli/cli-script.c: Include "exceptions.h".
824 (struct wrapped_read_command_file_args): Define.
825 (wrapped_read_command_file): New function.
826 (script_from_file): Replace direct call to read_command_file by
827 one wrapped by an exception handler.
828 * exceptions.c (throw_it): Free the old message after creating the
829 new.
830 * Makefile.in: Update dependencies.
831
832 2005-01-16 Mark Kettenis <kettenis@gnu.org>
833
834 * sparc64fbsd-tdep.c: Update copyright year.
835 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
836 functions.
837 (sparc64fbsd_init_abi): Create register sets with collect
838 functions.
839
840 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
841 (_initialize_sparc64fbsd_nat): Add some extra features to the
842 generic SPARC target.
843 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
844 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
845 (NAT_FILE): Set to solib.h.
846 * config/sparc/nm-fbsd.h: Remove file.
847
848 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
849
850 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
851
852 2005-01-16 Andrew Cagney <cagney@gnu.org>
853
854 * exceptions.c (struct catcher): Delete saved_error_pre_print and
855 saved_quit_pre_print.
856 (catcher_init): Delete parameter errstring, do not override the
857 pre_print strings.
858 (catcher_pop): Do not restore the pre_print strings.
859 (catch_exception, catch_exceptions_with_msg, catch_errors)
860 (catch_command_errors): Update catch_init calls.
861
862 2005-01-16 Mark Kettenis <kettenis@gnu.org>
863
864 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
865 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
866
867 2005-01-15 Andrew Cagney <cagney@gnu.org>
868
869 * acinclude.m4: Include ../bfd/bfd.m4 instead of
870 ../bfd/acinclude.m4. Include ../gettext.m4.
871 * aclocal.m4, configure: Re-generate.
872
873 * exceptions.c (do_captured_command)
874 (struct captured_command_args): Delete.
875 (catch_command_errors): Simplify by inlining call to catch_errors.
876
877 * exceptions.c (struct catcher): Delete field print_message.
878 (catcher_init): Delete print_message parameter.
879 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
880 (throw_it): Delete prefix parameter.
881 (throw_verror, throw_vfatal, throw_error): Update.
882
883 2005-01-14 Andrew Cagney <cagney@gnu.org>
884
885 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
886 (throw_reason): Leave the exception's message field blank.
887 (throw_it): New function, create the exception and throw it.
888 (throw_verror, throw_vfatal, throw_error): Call throw_it.
889 (print_any_exception): New function.
890 (catch_errors, catch_exceptions_with_msg): Call
891 print_any_exception.
892 (throw_exception): Move code calling annotate_error and
893 annotate_quit from here ...
894 (print_exception): ... to here.
895
896 * exceptions.c (exception_fprintf, exception_print): Move printing
897 of \n from here ...
898 (print_exception): ... to here.
899 (print_flush): New function.
900 (exception_print, exception_fprintf): Replace duplicated flush and
901 wrap code with call to print_flush.
902 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
903 and print_exception.
904 (do_write): Delete.
905
906 * remote-sds.c (interrupt_query): Call throw_reason instead of
907 throw_exception.
908 * remote-mips.c (mips_error, mips_kill): Ditto
909 * ocd.c (interrupt_query): Ditto.
910 * nto-procfs.c (interrupt_query): Ditto.
911 * monitor.c (monitor_interrupt_query): Ditto.
912
913 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
914
915 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
916
917 2005-01-14 Andrew Cagney <cagney@gnu.org>
918
919 * exceptions.h (catch_exceptions): Delete errstring parameter.
920 (catch_exceptions_with_msg): Ditto.
921 * exceptions.c (catch_exceptions_with_msg): Update.
922 (catch_exceptions): Update.
923 * symfile-mem.c (add_vsyscall_page): Update.
924 * frame.c (get_current_frame): Update.
925 * wrapper.c (gdb_value_struct_elt): Update.
926 * exceptions.c (catch_exceptions): Update.
927 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
928 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
929 * remote-fileio.c (remote_fileio_request): Update.
930
931 * exceptions.h (exception_fprintf): Declare.
932 (exception_print): Drop pre_print parameter.
933 * mi/mi-main.c (mi_execute_command): Update exception_print call.
934 * cli/cli-interp.c (safe_execute_command): Update exception_print
935 call.
936 * remote.c (remote_open_1): Instead of passing an error prefix to
937 catch_exceptions, use catch_exceptions and exception_fprintf.
938 (remote_start_remote): Change return type to void.
939 * breakpoint.c (insert_bp_location): Instead of passing an error
940 prefix to catch_exceptions, use catch_exceptions and
941 exception_fprintf.
942 (insert_catchpoint): Change return type to void.
943 (break_command_1): Update exception_print call.
944 * exceptions.c (exception_fprintf): New function.
945 (print_exception): New function.
946 (exception_print): Use print_exception.
947
948 * utils.c (error_output_message): Delete function.
949 * defs.h (error_output_message): Delete declaration.
950
951 * linespec.c (symtab_from_filename, decode_variable): Use
952 throw_error instead of error_silent.
953 * breakpoint.c (do_captured_parse_breakpoint): Change return type
954 to void.
955 (break_command_1): Use catch_exception and check the error return
956 status.
957 * exceptions.c (throw_error): New function.
958 (throw_vsilent): Delete function.
959 * exceptions.h (throw_error): Declare.
960 (throw_vsilent): Delete declaration.
961 * utils.c (error_silent): Delete function.
962 * defs.h (error_silent): Delete declaration.
963
964 * mi/mi-main.c (mi_execute_command): Print the exception.
965 * cli/cli-interp.c (safe_execute_command): Print the exception.
966 * exceptions.h (exception_print): Declare.
967 * exceptions.c (struct catcher): Add field print_message.
968 (catcher_init): Add parameter print_message, store in the catcher
969 struct.
970 (print_and_throw): Only print the message when print_message.
971 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
972 catcher_init.
973 (catch_exception): Pass print_message=0 to catcher_init.
974
975 * varobj.c (varobj_create): Add missing \n.
976
977 2005-01-13 Michael Snyder <msnyder@redhat.com>
978
979 * cli/cli-decode.h: Whitespace tweaks.
980 * wince.c: Whitespace tweaks.
981 * uw-thread.c: Whitespace tweaks.
982 * utils.c: Whitespace tweaks.
983 * tracepoint.[ch]: Whitespace tweaks.
984 * solist.h: Whitespace tweaks.
985
986 2005-01-13 Andrew Cagney <cagney@gnu.org>
987
988 * exceptions.h (struct exception): Make message const.
989 * mi/mi-main.c (mi_execute_command): Pass result.message directly
990 to fputstr_unfiltered.
991
992 2005-01-13 Michael Snyder <msnyder@redhat.com>
993
994 * stack.c: Whitespace tweaks.
995 * somsolib.[ch]: Whitespace tweaks.
996 * solib-aix.c: Whitespace tweaks.
997 * solib.c: Whitespace tweaks.
998 * solib-frv.c: Whitespace tweaks.
999 * solib.h: Whitespace tweaks.
1000 * solib-irix.c: Whitespace tweaks.
1001 * solib-som.c: Whitespace tweaks.
1002 * solib-sunos.c: Whitespace tweaks.
1003 * solib-svr4.[ch]: Whitespace tweaks.
1004 * ser-tcp.c: Whitespace tweaks.
1005 * ser-unix.c: Whitespace tweaks.
1006 * serial.h: Whitespace tweaks.
1007 * scm-valprint.c: Whitespace tweaks.
1008 * rs6000-tdep.c: Whitespace tweaks.
1009 * rs6000-nat.c: Whitespace tweaks.
1010 * remote.c: Whitespace tweaks.
1011
1012 2005-01-13 Andrew Cagney <cagney@gnu.org>
1013
1014 * defs.h (error_last_message, error_init): Delete declaration.
1015 * utils.c (fatal, vfatal): Call throw_vfatal.
1016 (error, verror): Call throw_verror;
1017 (do_write, error_stream_1): Delete function.
1018 (error_stream): Simplify, call error.
1019 (error_last_message, error_init, gdb_lasterr): Delete.
1020 (error_silent): Simplify, call throw_vsilent.
1021 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
1022 * main.c (captured_main): Delete call to error_init.
1023 * exceptions.c (throw_verror, throw_verror)
1024 (throw_vsilent): New functions.
1025 (do_write, print_and_throw): New functions.
1026 (last_message): New global.
1027 (throw_reason): Replace error_last_message with last_message.
1028 (catch_exceptions_with_msg): Dup the message.
1029 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
1030 Declare.
1031
1032 2005-01-13 Michael Snyder <msnyder@redhat.com>
1033
1034 * remote-st.c: Whitespace tweaks.
1035 * remote-sim.c: Whitespace tweaks.
1036 * remote-mips.c: Whitespace tweaks.
1037 * pa64solib.[ch]: Whitespace tweaks.
1038 * mdebugread.c: Whitespace tweaks.
1039 * main.c: Whitespace tweaks.
1040 * interps.c: Whitespace tweaks.
1041 * infrun.c: Whitespace tweaks.
1042 * infcmd.c: Whitespace tweaks.
1043 * hpux-thread.c: Whitespace tweaks.
1044 * hppa-hpux-tdep.c: Whitespace tweaks.
1045 * gdbcore.h: Whitespace tweaks.
1046 * gdbcmd.h: Whitespace tweaks.
1047 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
1048 * corefile.c: Whitespace tweaks.
1049 * completer.c: Whitespace tweaks.
1050 * coff-solib.c: Whitespace tweaks.
1051 * coff-solib.h: Whitespace tweaks.
1052 * cli-out.c: Whitespace tweaks.
1053 * breakpoint.c: Whitespace tweaks.
1054 * cli/cli-interp.c: Tweak comments, per coding standard.
1055
1056 2005-01-13 Andrew Cagney <cagney@gnu.org>
1057
1058 * breakpoint.c (gdb_breakpoint_query): Update, use
1059 catch_exceptions_with_msg.
1060 (do_captured_breakpoint): Add uiout parameter.
1061 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
1062 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
1063 gdb_thread_select. Return MI_CMD_ERROR instead of
1064 MI_CMD_CAUGHT_ERROR.
1065 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
1066 (enum captured_mi_execute_command_actions): Delete
1067 EXECUTE_COMMAND_DISPLAY_ERROR.
1068 (captured_mi_execute_command): Delete code handling
1069 MI_CMD_CAUGHT_ERROR.
1070 (mi_execute_command): Don't check for
1071 EXECUTE_COMMAND_DISPLAY_ERROR.
1072 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
1073 gdb_breakpoint_query.
1074 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
1075 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
1076 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
1077 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
1078 parameter.
1079 * thread.c (thread_command): Update call.
1080 (gdb_thread_select, gdb_list_thread_ids): Update, call
1081 catch_exceptions_with_msg.
1082
1083 * mi/mi-main.c (mi_execute_command): Use catch_exception,
1084 eliminate call to error_last_message.
1085 (captured_mi_execute_command): Change return type to void.
1086
1087 2005-01-12 Andrew Cagney <cagney@gnu.org>
1088
1089 * exceptions.c (exception_none): New variable.
1090 * Makefile.in: Update dependencies.
1091 * interps.c: Include "exceptions.h".
1092 (interpreter_exec_cmd, interp_exec): Update to return "struct
1093 exception"
1094 * exceptions.h (no_exception): Declare.
1095 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
1096 * mi/mi-interp.c: Include "exceptions.h".
1097 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
1098 'struct exception".
1099 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
1100 (do_captured_execute_command): Update to use catch_exception.
1101 * interps.h: Include "exceptions.h".
1102 (interp_exec_ftype, interp_exec): Return "struct exception".
1103
1104 * exceptions.h (throw_reason): Rename throw_exception.
1105 (enum errors, struct exception): Define.
1106 (catch_exception_ftype): Define.
1107 (catch_exception, throw_exception): Declare.
1108 * exceptions.c (throw_exception): Rewrite.
1109 (throw_reason): New function.
1110 (struct catcher, catcher_state_machine): Replace "reason" with
1111 "exception", delete "gdberrmsg".
1112 (catch_exception): New function.
1113 (catcher_init): Replace "gdberrmsg" parameter with "exception".
1114 (catch_errors, catch_exceptions_with_msg): Re-implement passing
1115 exception to catcher_init.
1116 * utils.c (error_silent, error_stream_1): Use throw_reason.
1117 (internal_verror, quit): Ditto.
1118 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
1119 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
1120 * remote.c (remote_open_1, interrupt_query): Ditto.
1121
1122 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1123
1124 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
1125 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
1126 (i386fbsd_jmp_buf_reg_offset): New variable.
1127 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
1128 functions.
1129 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
1130 * Makefile.in (i386fbsd-tdep.o): Update dependency.
1131 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
1132
1133 * bsd-uthread.h: New file.
1134 * bsd-uthread.c: New file.
1135 * Makefile.in (bsd_uthread_h): New variable.
1136 (ALLDEPFILES): Add bsd-uthread.c.
1137 (bsd-uthread.o): New dependency.
1138
1139 * solib.h Update copyright year.
1140 (struct so_list): Forward declaration.
1141 (solib_read_symbols): New prototype.
1142 * solib.c (solib_read_symbols): New function.
1143 (solib_add): Call solib_read_symbols to read in symbols.
1144 (update_solib_list): Call observer_notify_solib_loaded.
1145
1146 * i386bsd-nat.c: Update copyright year. Don't include
1147 <sys/param.h> and <sys/user.h>.
1148 (register_u_addr, kernel_u_size): Remove functions.
1149 * config/i386/obsd.mh (NAT_FILE): Remove.
1150 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
1151 * config/i386/nm-obsd.h: Remove file.
1152
1153 2005-01-12 Andrew Cagney <cagney@gnu.org>
1154
1155 * exceptions.c: Include "gdb_string.h".
1156 (enum catcher_state, struct catcher): Define.
1157 (current_catcher): New global, replaces catch_return;
1158 (catch_return): Delete.
1159 (throw_exception): Use current_catcher->buf;
1160 (catcher_init, catcher_pop, catcher_state_machine): New functions.
1161 (catcher): Delete.
1162 (struct catch_errors_args): Delete.
1163 (do_catch_errors): Delete.
1164 (catch_exceptions): Replace body with call to
1165 catch_exceptions_with_msg.
1166 (catcher): Delete.
1167 (catch_exceptions_with_msg, catch_errors): Re-implement using
1168 catcher_state_machine.
1169
1170 * exceptions.h (enum return_reason, RETURN_MASK)
1171 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
1172 (return_mask, throw_exception, catch_exceptions_ftype)
1173 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
1174 (catch_command_errors_ftype, catch_command_errors): Move to
1175 exceptions.h.
1176 * exceptions.c, exceptions.h: New files.
1177 * top.c: Do not include <setjmp.h>.
1178 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
1179 (throw_exception, catcher, catch_exceptions)
1180 (catch_exceptions_with_msg, struct catch_errors_args)
1181 (do_catch_errors, catch_errors, struct captured_command_args)
1182 (do_captured_command, catch_command_errors): Move to exceptions.c.
1183 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
1184 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
1185 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
1186 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
1187 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
1188 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
1189 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
1190 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
1191 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
1192 * ada-valprint.c, ada-lang.c: Ditto.
1193 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
1194 exceptions.o. Update all dependencies.
1195
1196 2005-01-11 Mark Kettenis <kettenis@gnu.org>
1197
1198 * config/i386/nm-fbsd.h: Update copyright year.
1199 Don't include "config/nm-bsd.h".
1200 (KERNEL_U_SIZE): Remove macro.
1201 (kernel_u_size): Remove prototype.
1202
1203 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
1204 * config/vax/nm-nbsdaout.h: Remove file.
1205
1206 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
1207
1208 * MAINTAINERS: Remove self from sh/sh64 maintainership.
1209
1210 2005-01-10 Andrew Cagney <cagney@gnu.org>
1211
1212 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
1213 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
1214 maintainer.
1215
1216 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
1217 changes to CRIS.
1218
1219 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
1220 COMMIT means can approve).
1221
1222 2005-01-10 Mark Kettenis <kettenis@gnu.org>
1223
1224 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
1225 (vax_register_u_offset): Make statuc.
1226 (_initialize_vax_nat): Construct and add target vector.
1227 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
1228 inftarg.o. Add inf-ptrace.o.
1229 * Makefile.in (vax-nat.o): Update dependencies.
1230
1231 * inf-ptrace.h: Update copyright year. Sync comment with
1232 inf-ptrace.c.
1233 (inf_ptrace_trad_target): New prototype.
1234 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
1235 "gdb_assert.h"
1236 (inf_ptrace_target): Add comment.
1237 (inf_ptrace+register_u_offset): New variable.
1238 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1239 (inf_ptrace_store_register, inf_ptrace_store_registers)
1240 (inf_ptrace_trad_target): New functions.
1241 * Makefile.in (inf-ptrace.o): Update dependencies.
1242
1243 2005-01-09 Mark Kettenis <kettenis@gnu.org>
1244
1245 * configure.ac: Provide prerequisite headers when checking
1246 <link.h>, <sys/proc.h> and <sys/user.h>.
1247 * configure: Regenerate.
1248
1249 2005-01-08 Mark Kettenis <kettenis@gnu.org>
1250
1251 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
1252 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
1253
1254 2005-01-07 Mark Kettenis <kettenis@gnu.org>
1255
1256 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
1257 Don't include "tm-ia64.h".
1258 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
1259 * config/ia64/tm-ia64.h: Remove. Move contents ...
1260 * ia64-tdep.h: ... here. Update copyright year.
1261
1262 2005-01-07 Andrew Cagney <cagney@gnu.org>
1263
1264 * configure.ac: Rename configure.in, require autoconf 2.59.
1265 * configure: Re-generate.
1266
1267 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
1268 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
1269 to configdirs.
1270
1271 * configure.in: Replace configdirs with multiple references to
1272 AC_CONFIG_SUBDIRS.
1273 * configure: Re-generate.
1274
1275 2005-01-05 Andreas Schwab <schwab@suse.de>
1276
1277 * ia64-tdep.c: Include "osabi.h".
1278 (native_find_global_pointer): Delete.
1279 (ia64_find_global_pointer): Renamed from
1280 generic_elf_find_global_pointer.
1281 (FIND_GLOBAL_POINTER): Delete. Change all users to call
1282 ia64_find_global_pointer instead.
1283 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
1284 to ia64_linux_sigcontext_register_address and
1285 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
1286 (_initialize_ia64_tdep): Call gdbarch_register instead of
1287 deprecated register_gdbarch_init.
1288 (struct gdbarch_tdep): Remove find_global_pointer field and move
1289 to ...
1290 * ia64-tdep.h (struct gdbarch_tdep): ... here.
1291 (ia64_linux_sigcontext_register_address): Remove declaration.
1292 (ia64_linux_getunwind_table): Likewise.
1293 (ia64_linux_write_pc): Likewise.
1294 * ia64-linux-tdep.c: Include "osabi.h".
1295 (ia64_linux_sigcontext_register_address): Make static.
1296 (ia64_linux_write_pc): Likewise.
1297 (ia64_linux_init_abi): New.
1298 (_initialize_ia64_linux_tdep): New.
1299 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
1300 $(osabi_h).
1301
1302 2005-01-05 Kevin Buettner <kevinb@redhat.com>
1303
1304 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
1305 functions in ia64-aix-tdep.c.
1306 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
1307 function defined in ia64-aix-tdep.c.
1308 * ia64-aix-tdep.c: Remove file.
1309 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
1310 this list.
1311 * Makefile.in (ia64-aix-tdep.o): Delete.
1312
1313 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1314
1315 Committed by Andrew Cagney.
1316 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
1317 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
1318 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
1319 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
1320 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
1321 * aix-thread.c (_initialize_aix_thread): Get rid of the
1322 deprecated_add_show_from_set call.
1323 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1324 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1325 * command.h (add_setshow_enum_cmd): Add arguments for returning
1326 new list elements.
1327 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
1328 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
1329 add_setshow_enum_cmd.
1330
1331 2005-01-04 Mark Kettenis <kettenis@gnu.org>
1332
1333 * configure.host (ia64-*-aix*): Remove.
1334 * configure.tgt (ia64-*-aix*): Remove.
1335 * config/ia64/aix.mh: Remove file.
1336 * config/ia64/aix.mt: Remove file.
1337 * config/ia64/tm-aix.h: Remove file.
1338 * ia64-aix-nat.c: Remove file.
1339 * Makefile.in (ia64-aix-nat.o): Remove dependency.
1340
1341 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
1342 Add back inf-ptrace.o.
1343
1344 2005-01-04 Andrew Cagney <cagney@gnu.org>
1345
1346 * version.in: Change format from 6.3.50_2005-01-04-cvs to
1347 6.3.50.20050104-cvs.
1348
1349 2005-01-04 Andreas Schwab <schwab@suse.de>
1350
1351 * breakpoint.c (break_command_1): Always free err_msg before
1352 returning when an exception was caught.
1353
1354 2005-01-01 Joel Brobecker <brobecker@gnat.com>
1355
1356 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
1357 in register number for addil instruction.
1358
1359 For older changes see ChangeLog-2004.
1360 \f
1361 Local Variables:
1362 mode: change-log
1363 left-margin: 8
1364 fill-column: 74
1365 version-control: never
1366 End:
This page took 0.0625 seconds and 3 git commands to generate.