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