daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3470a02f
AC
12005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2
3 Committed by Andrew Cagney.
4 * infptrace.c (store_register): Fix typo.
5
b66df561
AC
62005-02-21 Andrew Cagney <cagney@gnu.org>
7
8 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
9 * cli/cli-decode.h (add_set_cmd): Delete declaration.
10 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
11 * i386-nat.c (_initialize_i386_nat): Update call.
12 * valprint.c (_initialize_valprint): Update comment.
13 * gnu-nat.c (_initialize_gnu_nat): Update call.
14
85e3476f
AM
152005-02-21 Alan Modra <amodra@bigpond.net.au>
16
17 * elfread.c (elf_symtab_read): Discard section syms.
18
4d28ad1e
AC
192005-02-21 Andrew Cagney <cagney@gnu.org>
20
eefe576e
AC
21 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
22 (deprecated_add_show_from_set): Delete function.
23 * command.h (add_set_enum_cmd): Delete declaration.
24 (deprecated_add_show_from_set): Delete declaration.
25 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
26 (deprecated_add_show_from_set): Delete declaration.
27 * arm-tdep.c (_initialize_arm_tdep): Update comment.
28 * kod.c (kod_set_os): Simplify.
29 * infrun.c (set_schedlock_func): Simplify.
30 * cli/cli-dump.c (add_dump_command): Update comment.
31
525226b5
AC
32 Replace string variables with a filename completer with
33 add_setshow_optional_filename_cmd.
34 * solib.c, symfile.c: Update.
35 * cli/cli-setshow.c: Do not tidle expand the file.
36
4d28ad1e
AC
37 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
38 and add_setshow_string_noescape_cmd.
39 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
40 NULL command's value.
41 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
42 * remote-sds.c, remote.c, symfile.c, top.c: Update.
43
942fd9fe
AC
442005-02-20 Andrew Cagney <cagney@gnu.org>
45
7ab04401
AC
46 Use add_setshow_enum_cmd through out.
47 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
48 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
49
78f5381d
AC
50 * mi/mi-main.c (captured_mi_execute_command): Use
51 mi_cmd_interpreter_exec.
52
b4b4ac0b
AC
53 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
54 function.
55 * cli/cli-setshow.c (deprecated_show_value_hack)
56 (do_setshow_command): Handle var_optional_filename.
57 * command.h (enum var_types): Add var_optional_filename.
58 (add_setshow_optional_filename_cmd): Declare.
59 * infcmd.c (notice_args_read): Use.
60
942fd9fe
AC
61 * symfile-mem.c (symbol_file_add_from_memory): Pass
62 target_read_memory to bfd_elf_bfd_from_remote_memory.
63 (do_target_read_memory): Delete.
64
a6c442d8
MK
652005-02-16 Mark Kettenis <kettenis@gnu.org>
66
67 * value.h (value_contents_equal): New prototype.
68 * value.c (value_contents_equal): New function.
69 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
70 include <math.h>.
71 (varobj_set_value): Initialize error to zero.
72 (varobj_update): Rename error2 to error and initialize it to zero.
73 Slightly change the wording of some comments.
74 (my_value_equal): Reimplement using TRY_CATCH and
75 value_contents_equal.
76
5bf193a2
AC
772005-02-18 Andrew Cagney <cagney@gnu.org>
78
c0d88b1b
AC
79 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
80 * command.h (add_setshow_integer_cmd): Declare.
81 * cli/cli-cmds.c: Update.
82
35096d9d
AC
83 Use add_setshow_uinteger_cmd through out.
84 * printcmd.c, source.c, utils.c, valprint.c: Update.
85
85c07804
AC
86 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
87 and gdbarch.c.
88 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
89 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
90 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
91 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
92 * varobj.c, cli/cli-cmds.c: Update.
93 * gdbarch.c, gdb-events.c: Regenerate.
94
5bf193a2
AC
95 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
96 code adding set/show boolean commands.
97 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
98 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
99 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
100 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
101 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
102 * cli/cli-cmds.c: Update.
103
2c5b56ce
AC
1042005-02-17 Andrew Cagney <cagney@gnu.org>
105
f397e303
AC
106 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
107 to filename_completer.
108 * solib.c (_initialize_solib, reload_shared_libraries): Use
109 add_setshow_filename_cmd.
110 * serial.c (_initialize_serial): Ditto.
111 * remote-utils.c (_initialize_sr_support): Ditto.
112
26c41df3
AC
113 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
114 * command.h (add_setshow_string_noescape_cmd): Declare.
115 * wince.c (_initialize_wince): Use.
116 * symfile.c (_initialize_symfile): Use.
117 (set_ext_lang_command): Update declaration.
118 * corefile.c (_initialize_core): Use.
119
2c5b56ce
AC
120 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
121 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
122 (add_setshow_filename_cmd, add_setshow_string_cmd)
123 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
124 fprint_setshow parameter.
125 * command.h (fprint_setshow_ftype): Delete.
126 (add_setshow_cmd_full, add_setshow_enum_cmd)
127 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
128 (add_setshow_filename_cmd, add_setshow_string_cmd)
129 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
130 fprint_setshow parameter.
131 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
132 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
133 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
134 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
135 * remote.c, target.c, cli/cli-logging.c: Update.
136
08546159
AC
1372005-02-16 Andrew Cagney <cagney@gnu.org>
138
139 Merge setshow print and show parameters.
140 * command.h (show_value_ftype): Define.
141 (deprecated_show_value_hack): Declare.
142 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
143 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
144 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
145 (add_setshow_zinteger_cmd): Change type of show_func to
146 show_value_ftype.
147 * cli/cli-decode.h (struct cmd_list_element): Replace
148 fprint_setshow with show_value_func.
149 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
150 parameter. Set show_value_func. Do not set cmd_sfunc.
151 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
152 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
153 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
154 (add_setshow_zinteger_cmd): Update.
155 * complaints.c (complaints_show_value): Replace
156 fprint_setshow_complaints.
157 (_initialize_complaints): Update.
158 * mips-tdep.c (show_mask_address): Update.
159 * arm-tdep.c (show_fp_model): Update.
160 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
161 instead of fprint_setshow. Use deprecated_show_value_hack.
162 (deprecated_show_value_hack): New function.
163 * remote.c (add_packet_config_cmd, show_remote_cmd):
164 (show_remote_protocol_P_packet_cmd)
165 (show_remote_protocol_P_packet_cmd)
166 (show_remote_protocol_Z_access_wp_packet_cmd)
167 (show_remote_protocol_Z_hardware_bp_packet_cmd)
168 (show_remote_protocol_Z_packet_cmd)
169 (show_remote_protocol_Z_read_wp_packet_cmd)
170 (show_remote_protocol_Z_software_bp_packet_cmd)
171 (show_remote_protocol_Z_write_wp_packet_cmd)
172 (show_remote_protocol_binary_download_cmd)
173 (show_remote_protocol_p_packet_cmd)
174 (show_remote_protocol_qPart_auxv_packet_cmd)
175 (show_remote_protocol_qSymbol_packet_cmd)
176 (show_remote_protocol_vcont_packet_cmd): Update.
177
1c7b1e5a
MK
1782005-02-16 Mark Kettenis <kettenis@gnu.org>
179
180 * wrapper.h: Update copyright year. Properly wrap a few
181 prototypes.
182 (struct gdb_wrapper_arguments): Remove forward declaration.
183 * wrapper.c: Update copyright year. Include "ui-out.h".
184 (struct gdb_wrapper_arguments): Remove.
185 (struct captured_value_struct_elt_args): Remove.
186 (wrapper_parse_exp_1, wrap_evaluate_expression)
187 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
188 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
189 (do_captured_value_struct_elf): Remove functions.
190 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
191 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
192 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
193 Re-implement using TRY_CATCH.
194
7124f6fb
YS
1952005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
196
197 * remote-e7000.c: unuse TM_FILE defined macro.
198 (e7000_fetch_registers)
199 (e7000_store_registers)
200 (e7000_wait): delete NUM_REALREGS.
201 * remote-hms.c: move TM_FILE macro.
202 (CCR_REGNO): move define from tm-h8300.h.
203
55e5a6d0
MK
2042005-02-15 Mark Kettenis <kettenis@gnu.org>
205
206 * amd64-linux-tdep.c: Update copyright year.
a348ae87
MK
207 (amd64_linux_sigtramp_start): Use sizeof operator instead of
208 LINUX_SIGTRAMP_LEN.
55e5a6d0 209
77ef991d
JB
2102004-02-15 Joel Brobecker <brobecker@gnat.com>
211
212 From Paul Hilfinger <hilfinger@gnat.com>
213 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
214 SYMBOL_NATURAL_NAME to set type names.
215
1bedd215
AC
2162005-02-15 Andrew Cagney <cagney@gnu.org>
217
218 Mark up add_com, add_info and add_prefix_cmd.
219 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
220 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
221 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
222 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
223 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
224 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
225 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
226 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
227 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
228 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
229 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
230 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
231 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
232 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
233 * tui/tui-stack.c, tui/tui-win.c: Update.
234
66bf4b3a
AC
2352005-02-14 Andrew Cagney <cagney@gnu.org>
236
3f325092
AC
237 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
238 * config/h8300/tm-h8300.h: Delete file.
239
1a966eab
AC
240 Mark up add_cmd.
241 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
242 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
243 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
244 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
245 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
246 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
247 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
248 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
249 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
250 * cli/cli-logging.c, tui/tui-regs.c: Update.
251
7915a72c
AC
252 Mark up add_setshow functions, replace "PRINT:" comment prefix
253 with "FIXME: i18n:".
254 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
255 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
256 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
257 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
258 * target.c, cli/cli-logging.c: Update.
259
66bf4b3a
AC
260 * utils.c (paddress): New function.
261 * defs.h (paddress): Declare.
262 * printcmd.c (deprecated_print_address_numeric): Rename
263 print_address_numeric, call paddress.
264 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
265 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
266 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
267 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
268 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
269 * ada-valprint.c: Update.
270
33e6b12b
RR
2712005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
272
273 * MAINTAINERS: Add myself to "Write After Approval".
274
f0bdd87d
YS
2752005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
276
277 Restore h8300 support.
278 * configure.tgt: Add h8300-*-*
ba0e80db
YS
279 * h8300-tdep.c: New file. Rewrite new frame code.
280 * config/h8300/h8300.mt: New file. Restored Rev 1.3
281 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
282
283 * MAINTAINERS: Add myself to "Write After Approval".
f0bdd87d 284
e2e0b3e5
AC
2852005-02-11 Andrew Cagney <cagney@gnu.org>
286
a3f17187
AC
287 Mark up some of printf_filtered and printf_unfiltered.
288 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
289 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
290 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
291 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
292 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
293 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
294 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
295 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
296 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
297 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
298 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
299 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
300 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
301 * tui/tui-regs.c, tui/tui-win.c: Update.
302
e2e0b3e5
AC
303 Mark up error_no_arg, query, perror_with_name, complaint, and
304 internal_error.
305 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
306 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
307 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
308 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
309 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
310 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
311 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
312 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
313 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
314 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
315 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
316 * interps.c, language.c, linespec.c, linux-nat.c: Update.
317 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
318 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
319 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
320 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
321 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
322 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
323 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
324 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
325 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
326 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
327 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
328 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
329 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
330 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
331 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
332 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
333 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
334 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
335 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
336 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
337 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
338 * tui/tui-file.c, tui/tui-interp.c: Update.
8a3fe4f8 339
e2e0b3e5
AC
3402005-02-10 Andrew Cagney <cagney@gnu.org>
341
8a3fe4f8
AC
342 Mark up all error and warning messages.
343 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
344 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
345 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
346 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
347 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
348 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
349 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
350 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
351 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
352 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
353 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
354 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
355 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
356 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
357 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
358 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
359 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
360 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
361 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
362 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
363 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
364 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
365 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
366 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
367 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
368 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
369 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
370 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
371 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
372 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
373 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
374 * remote-utils.c, remote-utils.h, remote.c: Update.
375 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
376 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
377 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
378 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
379 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
380 * somread.c, somsolib.c, source.c, stabsread.c: Update.
381 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
382 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
383 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
384 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
385 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
386 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
387 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
388 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
389 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
390 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
391 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
392 * tui/tui-win.c: Update.
393
3517749c
ILT
3942005-02-10 Ian Lance Taylor <ian@airs.com>
395
396 * MAINTAINERS: Update my e-mail address.
397
cf309262
DJ
3982005-02-10 Daniel Jacobowitz <dan@debian.org>
399
400 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
401 PR exp/1821
402 * cp-valprint.c: Include "language.h".
403 (cp_print_value_fields): Pass the current language to
404 fprintf_symbol_filtered.
405 * Makefile.in (cp-valprint.o): Update dependencies.
406
899506a8
AC
4072005-02-10 Andrew Cagney <cagney@gnu.org>
408
335cca0d
AC
409 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
410 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
411 (add_setshow_filename_cmd, add_setshow_string_cmd)
412 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
413 print string parameter with fprint_setshow function.
414 * command.h (fprint_setshow_ftype): Define. Update declarations.
415 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
416 available, use that.
417 * cli/cli-decode.h (struct cmd_list_element): Add field
418 fprint_setshow.
419 * complaints.c (fprint_setshow_complaints): New function.
420 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
421 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
422 with NULL.
423 * mips-tdep.c (_initialize_mips_tdep): Ditto.
424 * m32r-rom.c (_initialize_m32r_rom): Ditto.
425 * cris-tdep.c (_initialize_cris_tdep): Ditto.
426 * arm-tdep.c (_initialize_arm_tdep): Ditto.
427 * remote-rdi.c (_initialize_remote_rdi): Ditto.
428 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
429 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
430 * frame.c (_initialize_frame): Ditto.
431 * target.c (initialize_targets): Ditto.
432 * maint.c (_initialize_maint_cmds): Ditto.
433 * observer.c (_initialize_observer): Ditto.
434 * infcall.c (_initialize_infcall): Ditto.
435 * breakpoint.c (_initialize_breakpoint): Ditto.
436 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
437 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
438
899506a8
AC
439 * cli/cli-setshow.c (do_setshow_command): Move code printing the
440 value to the end of the function. Handle MI and non-MI output
441 differently.
442
59c58d08
AC
4432005-02-09 Andrew Cagney <cagney@gnu.org>
444
7376b4c2
AC
445 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
446 show_result parameters.
447 * mips-tdep.c (_initialize_mips_tdep): Update calls.
448 * command.h: Update declaration.
449 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
450 calls.
451
11dced61
AC
452 * NEWS: Mention removed commands.
453 * m68hc11-tdep.c (show_regs): Delete, unused.
454 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
455 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
456 eventdebug" commands.
457 * gdb-events.c: Regenerate.
458 * gdbarch.sh: Delete deprecated "set archdebug" and "show
459 archdebug" commands.
460 * gdbarch.c: Regenerate.
461 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
462 remotedebug" and "show remotedebug".
463 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
464 disassembly-flavor", "show arm disassembly-flavor", and
465 "othernames" commands.
466 (arm_othernames): Delete unused function.
467
b6e1c027
AC
468 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
469 (convert_code_addr_to_desc_addr): Convert any function code
470 address to the corresponding function's descriptor.
471 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
472 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
473 writing, convert any function code address to the corresponding
474 descriptor.
475
59c58d08
AC
476 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
477 * config/powerpc/linux.mt (TDEPFILES): Ditto.
478 * config/pa/linux.mt (TDEPFILES): Ditto.
479 * config/mips/linux.mt (TDEPFILES): Ditto.
480 * config/m68k/linux.mt (TDEPFILES): Ditto.
481 * config/m32r/linux.mt (TDEPFILES): Ditto.
482 * config/ia64/linux.mt (TDEPFILES): Ditto.
483 * config/arm/linux.mt (TDEPFILES): Ditto.
484
b6e1c027
AC
4852005-02-09 Corinna Vinschen <vinschen@redhat.com>
486
487 * symmisc.c: Include gdb_stat.h.
488 (maintenance_print_msymbols): Use inode numbers to compare files.
489
91294c83
AC
4902005-02-08 Andrew Cagney <cagney@gnu.org>
491
d3cbe7ef
AC
492 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
493 (METHOD_PTR_TO_VOFFSET): Move from here ...
494 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
495 (METHOD_PTR_TO_VOFFSET): ... to here.
496 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
497 * Makefile.in: Update dependencies.
498
6941d02a
AC
499 * exceptions.c: Do not include <setjmp.h>.
500 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
501 (catch_exception, catch_exceptions_with_msg, catch_errors)
502 (catch_command_errors): Use TRY_CATCH.
503 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
504 (exceptions_state_mc_init): Rename catcher_init.
505 (exceptions_state_mc): Rename catcher_state_machine.
506 (exceptions_state_mc_action_iter)
507 (exceptions_state_mc_action_iter_1): New functions.
508 * exceptions.h: Include <setjmp.h>.
509 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
510 (EXCEPTIONS_SIGLONGJMP): Define.
511 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
512 (exceptions_state_mc_action_iter_1): Declare.
513 (TRY_CATCH): Define.
514
179f02be
AC
515 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
516 no longer needed.
517
8f135812
AC
518 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
519 PT_FPSCR breakage.
520
91294c83
AC
521 * value.c (struct value): Move to here ...
522 * value.h (struct value): ... from here. Copy comments to
523 corresponding function declarations, re-order.
524
dfa52d88
AC
5252005-02-07 Andrew Cagney <cagney@gnu.org>
526
9bbda503
AC
527 * value.c (set_value_bitpos, set_value_bitsize): Define.
528 * value.h (set_value_bitpos, set_value_bitsize): Declare.
529 * ada-lang.c, valarith.c: Update.
530
5086187c
AC
531 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
532 value_contents_writeable, include note that there are problems.
533 * breakpoint.c, infcall.c: Use VALUE_LVAL.
534
f5cf64a7
AC
535 * value.h (set_value_offset): Declare.
536 * value.c (set_value_offset): Declare.
537 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
538 * findvar.c: Update.
539
17cf0ecd
AC
540 * value.h (value_next): Declare.
541 * value.c (value_next): Define.
542 * breakpoint.c: Update.
543
88e3b34b
AC
544 * value.h (deprecated_set_value_modifiable)
545 (deprecated_value_modifiable): Declare.
546 * value.c (deprecated_set_value_modifiable): Define.
547 (deprecated_value_modifiable): Define.
548 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
549
04624583
AC
550 * value.h (deprecated_set_value_type): Declare.
551 * value.c (deprecated_set_value_type): Define.
552 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
553 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
554 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
555 * ax-gdb.c, tracepoint.c: Update.
556
13bb5560
AC
557 * value.h (deprecated_value_lval_hack)
558 (deprecated_value_address_hack)
7d71e29c 559 (deprecated_value_internalvar_hack)
13bb5560
AC
560 (deprecated_value_regnum_hack): Declare.
561 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
562 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
563 * value.c (deprecated_value_lval_hack)
564 (deprecated_value_address_hack)
7d71e29c 565 (deprecated_value_internalvar_hack)
13bb5560
AC
566 (deprecated_value_regnum_hack): Define.
567
b44d461b
AC
568 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
569 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
570 * value.c (set_value_pointed_to_offset): Define
571 (value_pointed_to_offset): Define.
572 * valops.c: Update.
573
caadb61d
AC
574 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
575 (value_embedded_offset, set_value_embedded_offset): Declare.
13c3b5f5 576 * value.c (value_embedded_offset): Define.
caadb61d 577 (set_value_embedded_offset): Define.
13c3b5f5
AC
578 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
579 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
580 * cp-abi.h: Update.
581
dfa52d88
AC
582 * value.h (VALUE_LAZY): Delete
583 (set_value_lazy): Declare.
584 * value.c (set_value_lazy): Define.
585 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
586 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
587
0fd88904
AC
5882005-02-06 Andrew Cagney <cagney@gnu.org>
589
feb13ab0
AC
590 * value.h (VALUE_OPTIMIZED_OUT): Delete.
591 (value_optimized_out, set_value_optimized_out): Declare.
592 * value.c (set_value_optimized_out, value_optimized_out): Define.
593 * valprint.c, findvar.c, dwarf2loc.c: Update.
594
0fd88904
AC
595 * value.c (value_contents, value_contents_writeable): New
596 functions.
597 * value.h (VALUE_CONTENTS): Delete macro.
598 (value_contents, value_contents_writeable): Declare.
599 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
600 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
601 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
602 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
603 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
604 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
605 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
606 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
607 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
608 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
609 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
610 * ada-valprint.c, ada-lang.c: Update.
611
5b90c7b5
AC
6122005-02-03 Andrew Cagney <cagney@gnu.org>
613
614 * utils.c (xzalloc): New function.
615 * defs.h (XZALLOC): Use xzalloc.
616 (xzalloc): Declare.
617 * value.c (allocate_value): Allocate a zeroed buffer.
618 * mdebugread.c (xzalloc): Delete.
619
4754a64e
AC
6202005-02-02 Andrew Cagney <cagney@gnu.org>
621
d69fe07e
AC
622 * value.h (value_lazy): Declare.
623 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
624 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
625
46615f07
AC
626 * value.h (VALUE_CONTENTS_ALL): Delete.
627 (value_contents_all): Declare.
628 * value.c (value_contents_all): New function.
629 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
630 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
631
4754a64e
AC
632 * value.c (value_enclosing_type): New function.
633 * value.h (VALUE_ENCLOSING_TYPE): Delete.
634 (value_enclosing_type): Declare.
635 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
636 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
637
990a07ab
AC
638 * value.c (value_contents_all_raw)
639 (value_contents_raw): New functions.
640 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
641 (value_contents_raw, value_contents_all_raw): Declare functions.
642 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
643 * std-regs.c, valarith.c, valops.c, eval.c: Update.
644 * tracepoint.c, findvar.c: Update.
645
ff2c3e5d
OF
6462005-02-01 Orjan Friberg <orjanf@axis.com>
647
648 * regformats/reg-cris.dat: New file with register definitions for CRIS.
649 * regformats/reg-crisv32.dat: Ditto for CRISv32.
650
c46f8c51
AC
6512005-01-31 Andrew Cagney <cagney@gnu.org>
652
653 * configure: Regenerate to track ../gettext.m4.
654
a80493b8
BI
6552005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
656
657 * MAINTAINERS: Add myself to "Write After Approval".
658
3d263c1d
BI
659 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
660 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
661 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
662
c21a4eee
MK
6632005-01-29 Mark Kettenis <kettenis@gnu.org>
664
665 * configure.ac: Remove extra check for ranlib.
666 * configure: Regenerated.
667
108d6ead
AC
6682005-01-28 Andrew Cagney <cagney@gnu.org>
669
a2bd3dcd
AC
670 * language.h (struct language_defn): Make la_val_print's buffer
671 parameter a const bfd_byte.
672 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
673 * ada-lang.c (ada_aligned_value_addr)
674 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
675 * valprint.c (val_print_array_elements): Update.
676 * valprint.h (val_print_array_elements): Update.
677 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
678 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
679 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
680 (ada_val_print_1, ada_print_floating, printable_val_type)
681 (print_record, val_print_packed_array_elements)
682 (print_field_values, print_variant_part): Update.
683 * c-lang.h (c_val_print, cp_print_value_fields): Update.
684 * c-valprint.c (c_val_print): Update.
685 * f-lang.h (f_val_print): Update.
686 * f-valprint.c (f_val_print, f77_print_array_1)
687 (f77_print_array): Update.
688 * jv-lang.h (java_val_print): Update.
689 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
690 * language.c (unk_lang_val_print): Update.
691 * m2-lang.h (m2_val_print): Update.
692 * m2-valprint.c (m2_val_print): Update.
693 * p-lang.h (pascal_val_print): Update.
694 (pascal_object_print_value_fields): Update.
695 * p-valprint.c (pascal_val_print)
696 (pascal_object_print_value_fields, pascal_object_print_value)
697 (pascal_object_print_value): Update.
698 * scm-lang.h (scm_val_print): Update.
699 * scm-valprint.c (scm_val_print): Update.
700 * value.h (val_print): Update.
701
5bcca90b
AC
702 * p-lang.h (pascal_object_print_class_member)
703 (pascal_object_print_class_method): Make buffer a const bfd_byte.
704 * p-valprint.c (pascal_object_print_class_method)
705 (pascal_object_print_class_method): Ditto.
706
ce27fb25
AC
707 * language.h (struct language_defn): Make la_printstr's buffer
708 parameter a const bfd_byte.
709 * p-lang.h (pascal_printstr): Update function to match.
710 * ada-valprint.c (ada_printstr): Update function to match.
711 * scm-lang.c (scm_printstr): Update function to match.
712 * p-lang.c (pascal_printstr): Update function to match.
713 * ada-lang.h (ada_printstr): Update function to match.
714 * m2-lang.c (m2_printstr): Update function to match.
715 * objc-lang.c (objc_printstr): Update function to match.
716 * c-lang.h (c_printstr): Update function to match.
717 * f-lang.c (f_printstr): Update function to match.
718 * c-lang.c (c_printstr): Update function to match.
719 * language.c (unk_lang_printstr): Update function to match.
720
5f547748
AC
721 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
722 * valprint.h (val_print_type_code_int): Ditto.
723
bbb4b9db
AC
724 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
725
9519ccd5
AC
726 * cp-valprint.c (cp_print_class_method)
727 (cp_print_class_member): Make buffer a const bfd_byte.
728 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
729
10a2c479
AC
730 * ada-lang.c (value_from_contents_and_address)
731 (to_record_with_fixed_variant_part)
732 (value_tag_from_contents_and_address, ada_to_fixed_type)
733 (to_fixed_variant_branch_type, to_fixed_record_type)
734 (ada_template_to_fixed_record_type, cond_offset_host)
735 (ada_template_to_fixed_record_type_1): Make buffer a const
736 bfd_byte.
737 * ada-lang.h (ada_template_to_fixed_record_type_1)
738 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
739
d56612af
AC
740 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
741
366b1cbf 742 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
d56612af 743 * printcmd.c (print_scalar_formatted): Update.
366b1cbf 744
c84141d6
AC
745 * value.h (value_bit_index, print_floating)
746 (find_rt_vbase_offset): Make buffer a const bfd_byte.
747 * valprint.c (print_floating): Update.
748 * valarith.c (value_bit_index): Update.
749 * valops.c (find_rt_vbase_offset): Update.
750
6c403953
AC
751 * valprint.h (print_octal_chars, print_char_chars)
752 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
753 buffer a const bfd_byte.
754 * valprint.c (print_binary_chars, print_octal_chars)
755 (print_decimal_chars, print_hex_chars, print_char_chars): Make
756 "valaddr"buffer a const bfd_byte, ditto for local variables
757 referencing that buffer.
758
a8d6eb4a
AC
759 * m2-valprint.c: Include "c-lang.h".
760 (c_val_print): Delete extern declaration.
761 * scm-valprint.c: Include "c-lang.h".
762 (c_val_print): Delete extern declaration.
763 Makefile.in: Update dependencies.
764
06c4d4dc
AC
765 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
766 bfd_byte.
767 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
768 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
769 bfd_byte.
770 * cp-abi.c (baseclass_offset): Update.
771 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
772
6b08edad
AC
773 * gnu-v2-abi.h: New file.
774 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
775 (gnuv2_baseclass_offset): Delete declaration.
776 * hpacc-abi.c: Include "gnu-v2-abi.h".
777 (gnuv2_baseclass_offset): Delete extern declaration.
778 * Makefile.in: Update dependencies.
779
108d6ead
AC
780 * doublest.c (floatformat_is_negative, floatformat_is_nan)
781 (floatformat_mantissa, get_field): Make the buffer a const
782 bfd_byte, simplify.
783
a53bf506
AC
7842005-01-27 Andrew Cagney <cagney@gnu.org>
785
8cc2524a
AC
786 * value.h (struct value): Change type of contents to bfd_byte.
787 (VALUE_CONTENTS_RAW): Simplify.
788
79dd2d24
AC
789 * gdbarch.sh (integer_to_address): Change buf parameter to a const
790 bfd_byte, make pure-multi-arch.
791 * gdbarch.h, gdbarch.c: Regenerate.
792 * mips-tdep.c (mips_integer_to_address): Update.
793 * value.c (value_as_address): Update.
794
c26b8e3b
AC
795 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
796 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
797 parameters const, change buf to a const bfd_byte.
798 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
799 parameters const.
800
10e2d419
AC
801 * corefile.c (write_memory): Update, make a copy of the read-only
802 buffer.
803 * target.c (target_read_memory): Update.
804 (target_write_memory): Update, make a copy of the read-only
805 buffer.
806 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
807 const.
808 * target.h (target_read_memory, target_write_memory): Change
809 buffer type to bfd_byte; for write_memory, make it const.
810 * symfile-mem.c (do_target_read_memory): New function.
811 (symbol_file_add_from_memory): Pass do_target_read_memory to
812 bfd_elf_bfd_from_remote_memory.
813
89f5065b
AC
814 * value.h: Indent using gdb_indent.sh.
815
a53bf506
AC
816 * configure: Regenerate to track ../gettext.m4 change.
817
c44ca51c
AC
8182005-01-26 Andrew Cagney <cagney@gnu.org>
819
820 * rs6000-tdep.c: Include "reggroups.h".
821 (rs6000_gdbarch_init): Set register_reggroup_p.
822 (rs6000_register_reggroup_p): New function.
823
c600d464
OF
8242005-01-26 Orjan Friberg <orjanf@axis.com>
825
826 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
827 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
828 CRISv32.
829 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
830 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
831 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
832 (crisv32_register_type, cris_special_register_name)
833 (crisv32_register_name): New functions.
834 (cris_spec_reg_applicable): Recognize more versions.
835 (cris_register_name): Update with call to cris_special_register_name.
836 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
837 warning when unable to find step target.
838 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
839 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
840 CRISv32.
841 (fetch_core_registers): Update for CRISv32.
842 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
843 register_name, cannot_store_register, cannot_fetch_register,
844 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
845
82c94ed0
NR
8462005-01-26 Nick Roberts <nickrob@snap.net.nz>
847
848 * interps.c (interpreter_exec_cmd): Use condition,
849 e.reason < 0, to raise an error.
850
0598a43c
AC
8512005-01-25 Andrew Cagney <cagney@gnu.org>
852
a8f60bfc
AC
853 * ppc-linux-tdep.c: Include "tramp-frame.h"
854 (struct ppc_linux_sigtramp_cache)
855 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
856 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
857 (ppc_linux_sigtramp_cache): Delete.
858 (ppc32_linux_sigaction_cache_init)
859 (ppc64_linux_sigaction_cache_init)
860 (ppc32_linux_sighandler_cache_init)
861 (ppc64_linux_sighandler_cache_init)
862 (ppc32_linux_sigaction_tramp_frame)
863 (ppc64_linux_sigaction_tramp_frame)
864 (ppc32_linux_sighandler_tramp_frame)
865 (ppc64_linux_sighandler_tramp_frame)
866 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
867 64-bit, sigaction and siginfo tramp-frame unwinders.
868
0598a43c
AC
869 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
870 long_double_bit to 8.
871
9d799f85
AC
8722005-01-24 Andrew Cagney <cagney@gnu.org>
873
874 * infrun.c (handle_inferior_event): Handle back-to-back and nested
875 signals where the step_resume_breakpoint may have already been
876 inserted.
877
45181ed1
AC
8782005-01-24 Andrew Cagney <cagney@gnu.org>
879
880 * configure: Regenerate, ../gettext.m4 was updated.
881
a28109e0
MK
8822005-01-23 Mark Kettenis <kettenis@gnu.org>
883
6fe85783
MK
884 * NEWS: Mention new BSD user-level threads support.
885
a28109e0
MK
886 * i386obsd-tdep.c: Update copyright year. Include
887 "bsd-uthread.h".
888 (i386obsd_uthread_reg_offset): New variable.
889 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
890 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
891 functions.
892 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
893 * Makefile.in (i386obsd-tdep.o): Update dependencies.
894 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
895
059198c1
CF
8962005-01-23 Christopher Faylor <cgf@timesys.com>
897
898 * win32-nat.c: Update copyright year.
899 (child_init_thread_list): Set thread linked list point to NULL so that
900 it won't be reused after clearing.
901
5c45e068
MK
9022005-01-21 Mark Kettenis <kettenis@gnu.org>
903
904 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
905 undefs.
906 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
907 thread' has a td_pcb member and whether `struct reg' has r_fs and
908 r_gs members.
909 * configure, config.in: Regenerate.
910
666ec76f
MK
9112005-01-21 Mark Kettenis <kettenis@gnu.org>
912
b8667b61
MK
913 * configure.ac: Remove ia64-*-aix* junk.
914 * configure: Regenerate.
915
a3828db0
MK
916 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
917 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
918 is necessary.
919 * configure, config.in: Regenerate.
920 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
921 BFD_NEED_DECLARATION. Never provide a prototype for
922 caninicalize_file_name.
923 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
924 BFD_NEED_DECLARATION.
925
666ec76f
MK
926 * configure.ac (targ_archs): Use standard autoconf check for
927 "struct stat.st_blocks" instead of rolling our own.
928 * configure: Regenerated.
929 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
930 * config.in: Regenerated.
931
bc8bcb4b
MK
9322005-01-21 Mark Kettenis <kettenis@gnu.org>
933
934 * configure.ac: Modernize checks for `long long' and `long double'
935 support.
936 * configure: Regenerated.
937 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
938 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
939 * config.in: Regenerated.
940
30adeb3a
MK
9412005-01-20 Mark Kettenis <kettenis@gnu.org>
942
943 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
944 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
945 * configure.ac: Remove checks for HP-UX save_state structure.
946 * configure: Regenerated.
947
e06e2353
AC
9482005-01-19 Andrew Cagney <cagney@gnu.org>
949
950 * utils.c (quit): Simplify, call fatal.
951 * exceptions.c: Include "serial.h"
952 (print_flush): Mimic flush code found in utils.c:quit.
953 * Makefile.in: Update dependencies.
954
1c44323f
JB
9552005-01-19 Jim Blandy <jimb@redhat.com>
956
065a1afc
JB
957 * configure.tgt: Set build_rdi_share to "yes" on those targets
958 that use that debugging protocol.
959 Set build_nlm to yes to build NLM stub for Netware targets.
960 * configure.ac: If build_rdi_share is "yes", then configure the
961 rdi-share subdirectory.
962 If build_nlm is "yes", the configure the "nlm" subdirectory.
963 * configure: Regenerated.
964
1c44323f
JB
965 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
966 autoconf 2.59 and automake 1.9.3.
967
8a9de0e4
AC
9682005-01-19 Andrew Cagney <cagney@gnu.org>
969
315a522e
AC
970 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
971 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
972 * utils.c (internal_verror, quit): Update.
973 * remote-sds.c (interrupt_query): Update.
974 * remote-mips.c (mips_error, mips_kill): Update.
975 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
976 * remote.c (interrupt_query): Update.
977 * ocd.c (interrupt_query): Update.
978 * nto-procfs.c (interrupt_query): Update.
979 * monitor.c (monitor_interrupt_query): Update.
980 * breakpoint.c (break_command_1): Update.
981
8a9de0e4
AC
982 * infrun.c: (resume, proceed, wait_for_inferior)
983 (handle_inferior_event, stop_stepping)
984 (prepare_to_wait): Write debug output to gdb_stdlog.
985
53283f86
MK
9862005-01-19 Mark Kettenis <kettenis@gnu.org>
987
988 * inf-ptrace.c (inf_ptrace_prepare_to_store)
989 (inf_ptrace_post_startup_inferior)
990 (inf_ptrace_acknowledge_created_inferior)
991 (inf_ptrace_insert_fork_catchpoint)
992 (inf_ptrace_remove_fork_catchpoint)
993 (inf_ptrace_insert_vfork_catchpoint):
994 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
995 (inf_ptrace_insert_exec_catchpoint)
996 (inf_ptrace_remove_exec_catchpoint): Remove functions.
997 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
998 (inf_ptrace_target): Don't set to_prepare_to_store,
999 to_post_startup_inferior, to_acknowledge_created_inferior,
1000 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
1001 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1002 to_follow_fork, to_insert_exec_catchpoint,
1003 to_remove_exec_catchpoint.
1004
9ee907e0
AC
10052005-01-18 Andrew Cagney <cagney@gnu.org>
1006
fa113d1a
AC
1007 * target.h (struct target_ops): Change return type of
1008 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
1009 to_insert_exec_catchpoint to void.
1010 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
1011 (child_insert_exec_catchpoint): Change return type to void.
1012 * target.c (update_current_target): Update.
1013 (debug_to_insert_fork_catchpoint)
1014 (debug_to_insert_vfork_catchpoint)
1015 (debug_to_insert_exec_catchpoint): Update.
1016 * inf-child.c (inf_child_insert_fork_catchpoint)
1017 (inf_child_insert_vfork_catchpoint)
1018 (inf_child_insert_exec_catchpoint): Update.
1019 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
1020 * linux-nat.c (child_insert_fork_catchpoint)
1021 (child_insert_vfork_catchpoint)
1022 (child_insert_exec_catchpoint): Update.
1023 * inftarg.c (child_insert_fork_catchpoint)
1024 (child_insert_vfork_catchpoint,)
1025 (child_insert_exec_catchpoint): Update.
1026
9ee907e0
AC
1027 * remote.c (remote_open_1): Use throw_exception.
1028
295093a4
MS
10292005-01-17 Michael Snyder <msnyder@redhat.com>
1030
1031 * mips-linux-tdep.c: Whitespace tweaks.
1032
4bcff7eb
CV
10332005-01-17 Corinna Vinschen <vinschen@redhat.com>
1034
1035 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
1036
637537d0
AC
10372005-01-17 Andrew Cagney <cagney@gnu.org>
1038
1039 * top.h (source_error, source_pre_error): Delete declaration.
1040 * cli/cli-script.c (source_error_allocated, source_error): Delete.
1041 (script_from_file, source_cleanup_lines): Do not manipulate
1042 source_error_allocated, error_pre_print and source_error.
1043 (struct source_cleanup_lines_args): Delete fields old_pre_error,
1044 and old_error_pre_print.
1045 * top.c (source_error_allocated, source_error)
1046 (source_pre_error): Delete.
1047 (command_line_input): Do not set error_pre_print.
1048 * event-top.c (command_line_handler): Do not set error_pre_print.
1049
12b21d12
JT
10502005-01-16 Jason Thorpe <thorpej@netbsd.org>
1051
1052 * MAINTAINERS: Update my email address.
1053
1c02b2a5
MK
10542005-01-16 Mark Kettenis <kettenis@gnu.org>
1055
c401b55a
MK
1056 * configure.ac: Provide prerequisite headers when checking
1057 <term.h>.
1058 * configure: Regenerate.
1059
1c02b2a5
MK
1060 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
1061 and "bsd-uthread.h".
1062 (amd64fbsd_jmp_buf_reg_offset): New variable.
1063 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
1064 functions.
1065 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
1066 * i386fbsd-tdep.c: Fix typo.
1067 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
1068 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
1069
17d92a02
AC
10702005-01-16 Andrew Cagney <cagney@gnu.org>
1071
1072 * cli/cli-script.c: Include "exceptions.h".
1073 (struct wrapped_read_command_file_args): Define.
1074 (wrapped_read_command_file): New function.
1075 (script_from_file): Replace direct call to read_command_file by
1076 one wrapped by an exception handler.
1077 * exceptions.c (throw_it): Free the old message after creating the
1078 new.
1079 * Makefile.in: Update dependencies.
1080
80ad1639
MK
10812005-01-16 Mark Kettenis <kettenis@gnu.org>
1082
ae036357
MK
1083 * sparc64fbsd-tdep.c: Update copyright year.
1084 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
1085 functions.
1086 (sparc64fbsd_init_abi): Create register sets with collect
1087 functions.
1088
ca5807d9
MK
1089 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
1090 (_initialize_sparc64fbsd_nat): Add some extra features to the
1091 generic SPARC target.
1092 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
1093 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
1094 (NAT_FILE): Set to solib.h.
1095 * config/sparc/nm-fbsd.h: Remove file.
1096
c4f2d4d7
MK
1097 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
1098
80ad1639
MK
1099 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
1100
6212a5e9
AC
11012005-01-16 Andrew Cagney <cagney@gnu.org>
1102
1103 * exceptions.c (struct catcher): Delete saved_error_pre_print and
1104 saved_quit_pre_print.
1105 (catcher_init): Delete parameter errstring, do not override the
1106 pre_print strings.
1107 (catcher_pop): Do not restore the pre_print strings.
1108 (catch_exception, catch_exceptions_with_msg, catch_errors)
1109 (catch_command_errors): Update catch_init calls.
1110
936df4b3
MK
11112005-01-16 Mark Kettenis <kettenis@gnu.org>
1112
1113 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
1114 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
1115
3af1e0e3
AC
11162005-01-15 Andrew Cagney <cagney@gnu.org>
1117
85981d60
AC
1118 * acinclude.m4: Include ../bfd/bfd.m4 instead of
1119 ../bfd/acinclude.m4. Include ../gettext.m4.
1120 * aclocal.m4, configure: Re-generate.
1121
5a14cc1a
AC
1122 * exceptions.c (do_captured_command)
1123 (struct captured_command_args): Delete.
1124 (catch_command_errors): Simplify by inlining call to catch_errors.
1125
3af1e0e3
AC
1126 * exceptions.c (struct catcher): Delete field print_message.
1127 (catcher_init): Delete print_message parameter.
1128 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
1129 (throw_it): Delete prefix parameter.
1130 (throw_verror, throw_vfatal, throw_error): Update.
1131
d0555901
AC
11322005-01-14 Andrew Cagney <cagney@gnu.org>
1133
e48f5bee
AC
1134 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
1135 (throw_reason): Leave the exception's message field blank.
1136 (throw_it): New function, create the exception and throw it.
1137 (throw_verror, throw_vfatal, throw_error): Call throw_it.
1138 (print_any_exception): New function.
1139 (catch_errors, catch_exceptions_with_msg): Call
1140 print_any_exception.
1141 (throw_exception): Move code calling annotate_error and
1142 annotate_quit from here ...
1143 (print_exception): ... to here.
1144
c6da7a6d
AC
1145 * exceptions.c (exception_fprintf, exception_print): Move printing
1146 of \n from here ...
1147 (print_exception): ... to here.
1148 (print_flush): New function.
1149 (exception_print, exception_fprintf): Replace duplicated flush and
1150 wrap code with call to print_flush.
1151 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
1152 and print_exception.
1153 (do_write): Delete.
1154
d0555901
AC
1155 * remote-sds.c (interrupt_query): Call throw_reason instead of
1156 throw_exception.
1157 * remote-mips.c (mips_error, mips_kill): Ditto
1158 * ocd.c (interrupt_query): Ditto.
1159 * nto-procfs.c (interrupt_query): Ditto.
1160 * monitor.c (monitor_interrupt_query): Ditto.
1161
949df321
JJ
11622005-01-14 Jeff Johnston <jjohnstn@redhat.com>
1163
1164 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
1165
bc8332bb
AC
11662005-01-14 Andrew Cagney <cagney@gnu.org>
1167
1c3c7ee7
AC
1168 * exceptions.h (catch_exceptions): Delete errstring parameter.
1169 (catch_exceptions_with_msg): Ditto.
1170 * exceptions.c (catch_exceptions_with_msg): Update.
1171 (catch_exceptions): Update.
1172 * symfile-mem.c (add_vsyscall_page): Update.
1173 * frame.c (get_current_frame): Update.
1174 * wrapper.c (gdb_value_struct_elt): Update.
1175 * exceptions.c (catch_exceptions): Update.
1176 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
1177 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
1178 * remote-fileio.c (remote_fileio_request): Update.
1179
9cbc821d
AC
1180 * exceptions.h (exception_fprintf): Declare.
1181 (exception_print): Drop pre_print parameter.
1182 * mi/mi-main.c (mi_execute_command): Update exception_print call.
1183 * cli/cli-interp.c (safe_execute_command): Update exception_print
1184 call.
1185 * remote.c (remote_open_1): Instead of passing an error prefix to
1186 catch_exceptions, use catch_exceptions and exception_fprintf.
1187 (remote_start_remote): Change return type to void.
1188 * breakpoint.c (insert_bp_location): Instead of passing an error
1189 prefix to catch_exceptions, use catch_exceptions and
1190 exception_fprintf.
1191 (insert_catchpoint): Change return type to void.
1192 (break_command_1): Update exception_print call.
1193 * exceptions.c (exception_fprintf): New function.
1194 (print_exception): New function.
1195 (exception_print): Use print_exception.
1196
22e9b0f1
AC
1197 * utils.c (error_output_message): Delete function.
1198 * defs.h (error_output_message): Delete declaration.
1199
05ff989b
AC
1200 * linespec.c (symtab_from_filename, decode_variable): Use
1201 throw_error instead of error_silent.
1202 * breakpoint.c (do_captured_parse_breakpoint): Change return type
1203 to void.
1204 (break_command_1): Use catch_exception and check the error return
1205 status.
1206 * exceptions.c (throw_error): New function.
1207 (throw_vsilent): Delete function.
1208 * exceptions.h (throw_error): Declare.
1209 (throw_vsilent): Delete declaration.
1210 * utils.c (error_silent): Delete function.
1211 * defs.h (error_silent): Delete declaration.
1212
8a076db9
AC
1213 * mi/mi-main.c (mi_execute_command): Print the exception.
1214 * cli/cli-interp.c (safe_execute_command): Print the exception.
1215 * exceptions.h (exception_print): Declare.
1216 * exceptions.c (struct catcher): Add field print_message.
1217 (catcher_init): Add parameter print_message, store in the catcher
1218 struct.
1219 (print_and_throw): Only print the message when print_message.
1220 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
1221 catcher_init.
1222 (catch_exception): Pass print_message=0 to catcher_init.
1223
bc8332bb
AC
1224 * varobj.c (varobj_create): Add missing \n.
1225
d183932d
MS
12262005-01-13 Michael Snyder <msnyder@redhat.com>
1227
4e18e2de 1228 * cli/cli-decode.h: Whitespace tweaks.
ca0b4d12 1229 * wince.c: Whitespace tweaks.
887a3a14 1230 * uw-thread.c: Whitespace tweaks.
0a4a0819 1231 * utils.c: Whitespace tweaks.
d183932d
MS
1232 * tracepoint.[ch]: Whitespace tweaks.
1233 * solist.h: Whitespace tweaks.
1234
6b1b7650
AC
12352005-01-13 Andrew Cagney <cagney@gnu.org>
1236
b315da38
AC
1237 * exceptions.h (struct exception): Make message const.
1238 * mi/mi-main.c (mi_execute_command): Pass result.message directly
1239 to fputstr_unfiltered.
1240
79e714b4
AC
12412005-01-13 Michael Snyder <msnyder@redhat.com>
1242
1243 * stack.c: Whitespace tweaks.
1244 * somsolib.[ch]: Whitespace tweaks.
1245 * solib-aix.c: Whitespace tweaks.
1246 * solib.c: Whitespace tweaks.
1247 * solib-frv.c: Whitespace tweaks.
1248 * solib.h: Whitespace tweaks.
1249 * solib-irix.c: Whitespace tweaks.
1250 * solib-som.c: Whitespace tweaks.
1251 * solib-sunos.c: Whitespace tweaks.
1252 * solib-svr4.[ch]: Whitespace tweaks.
1253 * ser-tcp.c: Whitespace tweaks.
1254 * ser-unix.c: Whitespace tweaks.
1255 * serial.h: Whitespace tweaks.
1256 * scm-valprint.c: Whitespace tweaks.
1257 * rs6000-tdep.c: Whitespace tweaks.
1258 * rs6000-nat.c: Whitespace tweaks.
1259 * remote.c: Whitespace tweaks.
1260
12612005-01-13 Andrew Cagney <cagney@gnu.org>
1262
6b1b7650
AC
1263 * defs.h (error_last_message, error_init): Delete declaration.
1264 * utils.c (fatal, vfatal): Call throw_vfatal.
1265 (error, verror): Call throw_verror;
1266 (do_write, error_stream_1): Delete function.
1267 (error_stream): Simplify, call error.
1268 (error_last_message, error_init, gdb_lasterr): Delete.
1269 (error_silent): Simplify, call throw_vsilent.
1270 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
1271 * main.c (captured_main): Delete call to error_init.
1272 * exceptions.c (throw_verror, throw_verror)
1273 (throw_vsilent): New functions.
1274 (do_write, print_and_throw): New functions.
1275 (last_message): New global.
1276 (throw_reason): Replace error_last_message with last_message.
1277 (catch_exceptions_with_msg): Dup the message.
1278 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
1279 Declare.
1280
4791eb66
MS
12812005-01-13 Michael Snyder <msnyder@redhat.com>
1282
90c065fb 1283 * remote-st.c: Whitespace tweaks.
8a0ce09a 1284 * remote-sim.c: Whitespace tweaks.
1fa79fac 1285 * remote-mips.c: Whitespace tweaks.
beda9597 1286 * pa64solib.[ch]: Whitespace tweaks.
28397f59 1287 * mdebugread.c: Whitespace tweaks.
ba5e7e8d 1288 * main.c: Whitespace tweaks.
907d819a 1289 * interps.c: Whitespace tweaks.
9d1ff73f 1290 * infrun.c: Whitespace tweaks.
1f5d0fc9 1291 * infcmd.c: Whitespace tweaks.
d9788fe8 1292 * hpux-thread.c: Whitespace tweaks.
3b951200 1293 * hppa-hpux-tdep.c: Whitespace tweaks.
3a9a986f 1294 * gdbcore.h: Whitespace tweaks.
d3f17821 1295 * gdbcmd.h: Whitespace tweaks.
30867156 1296 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
de6854b5 1297 * corefile.c: Whitespace tweaks.
03717487 1298 * completer.c: Whitespace tweaks.
9b5c5aad
MS
1299 * coff-solib.c: Whitespace tweaks.
1300 * coff-solib.h: Whitespace tweaks.
30fdc99f 1301 * cli-out.c: Whitespace tweaks.
1272ad14 1302 * breakpoint.c: Whitespace tweaks.
4791eb66
MS
1303 * cli/cli-interp.c: Tweak comments, per coding standard.
1304
f30f06b8
AC
13052005-01-13 Andrew Cagney <cagney@gnu.org>
1306
ce43223b
AC
1307 * breakpoint.c (gdb_breakpoint_query): Update, use
1308 catch_exceptions_with_msg.
1309 (do_captured_breakpoint): Add uiout parameter.
1310 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
1311 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
1312 gdb_thread_select. Return MI_CMD_ERROR instead of
1313 MI_CMD_CAUGHT_ERROR.
1314 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
1315 (enum captured_mi_execute_command_actions): Delete
1316 EXECUTE_COMMAND_DISPLAY_ERROR.
1317 (captured_mi_execute_command): Delete code handling
1318 MI_CMD_CAUGHT_ERROR.
1319 (mi_execute_command): Don't check for
1320 EXECUTE_COMMAND_DISPLAY_ERROR.
1321 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
1322 gdb_breakpoint_query.
1323 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
1324 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
1325 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
1326 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
1327 parameter.
1328 * thread.c (thread_command): Update call.
1329 (gdb_thread_select, gdb_list_thread_ids): Update, call
1330 catch_exceptions_with_msg.
1331
f30f06b8
AC
1332 * mi/mi-main.c (mi_execute_command): Use catch_exception,
1333 eliminate call to error_last_message.
1334 (captured_mi_execute_command): Change return type to void.
1335
2a78bfb5
AC
13362005-01-12 Andrew Cagney <cagney@gnu.org>
1337
c1043fc2
AC
1338 * exceptions.c (exception_none): New variable.
1339 * Makefile.in: Update dependencies.
1340 * interps.c: Include "exceptions.h".
1341 (interpreter_exec_cmd, interp_exec): Update to return "struct
1342 exception"
1343 * exceptions.h (no_exception): Declare.
1344 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
1345 * mi/mi-interp.c: Include "exceptions.h".
1346 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
1347 'struct exception".
1348 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
1349 (do_captured_execute_command): Update to use catch_exception.
1350 * interps.h: Include "exceptions.h".
1351 (interp_exec_ftype, interp_exec): Return "struct exception".
1352
2a78bfb5
AC
1353 * exceptions.h (throw_reason): Rename throw_exception.
1354 (enum errors, struct exception): Define.
1355 (catch_exception_ftype): Define.
1356 (catch_exception, throw_exception): Declare.
1357 * exceptions.c (throw_exception): Rewrite.
1358 (throw_reason): New function.
1359 (struct catcher, catcher_state_machine): Replace "reason" with
1360 "exception", delete "gdberrmsg".
1361 (catch_exception): New function.
1362 (catcher_init): Replace "gdberrmsg" parameter with "exception".
1363 (catch_errors, catch_exceptions_with_msg): Re-implement passing
1364 exception to catcher_init.
1365 * utils.c (error_silent, error_stream_1): Use throw_reason.
1366 (internal_verror, quit): Ditto.
1367 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
1368 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
1369 * remote.c (remote_open_1, interrupt_query): Ditto.
1370
8b1ca062
MK
13712005-01-12 Mark Kettenis <kettenis@gnu.org>
1372
fa565c2b
MK
1373 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
1374 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
1375 (i386fbsd_jmp_buf_reg_offset): New variable.
1376 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
1377 functions.
1378 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
1379 * Makefile.in (i386fbsd-tdep.o): Update dependency.
1380 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
1381
82f5c14f
MK
1382 * bsd-uthread.h: New file.
1383 * bsd-uthread.c: New file.
1384 * Makefile.in (bsd_uthread_h): New variable.
1385 (ALLDEPFILES): Add bsd-uthread.c.
1386 (bsd-uthread.o): New dependency.
1387
42a6e6a0
MK
1388 * solib.h Update copyright year.
1389 (struct so_list): Forward declaration.
1390 (solib_read_symbols): New prototype.
1391 * solib.c (solib_read_symbols): New function.
1392 (solib_add): Call solib_read_symbols to read in symbols.
1393 (update_solib_list): Call observer_notify_solib_loaded.
1394
8b1ca062
MK
1395 * i386bsd-nat.c: Update copyright year. Don't include
1396 <sys/param.h> and <sys/user.h>.
1397 (register_u_addr, kernel_u_size): Remove functions.
1398 * config/i386/obsd.mh (NAT_FILE): Remove.
1399 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
1400 * config/i386/nm-obsd.h: Remove file.
1401
60250e8b
AC
14022005-01-12 Andrew Cagney <cagney@gnu.org>
1403
db5f402d
AC
1404 * exceptions.c: Include "gdb_string.h".
1405 (enum catcher_state, struct catcher): Define.
1406 (current_catcher): New global, replaces catch_return;
1407 (catch_return): Delete.
1408 (throw_exception): Use current_catcher->buf;
1409 (catcher_init, catcher_pop, catcher_state_machine): New functions.
1410 (catcher): Delete.
1411 (struct catch_errors_args): Delete.
1412 (do_catch_errors): Delete.
1413 (catch_exceptions): Replace body with call to
1414 catch_exceptions_with_msg.
1415 (catcher): Delete.
1416 (catch_exceptions_with_msg, catch_errors): Re-implement using
1417 catcher_state_machine.
1418
60250e8b
AC
1419 * exceptions.h (enum return_reason, RETURN_MASK)
1420 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
1421 (return_mask, throw_exception, catch_exceptions_ftype)
1422 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
1423 (catch_command_errors_ftype, catch_command_errors): Move to
1424 exceptions.h.
1425 * exceptions.c, exceptions.h: New files.
1426 * top.c: Do not include <setjmp.h>.
1427 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
1428 (throw_exception, catcher, catch_exceptions)
1429 (catch_exceptions_with_msg, struct catch_errors_args)
1430 (do_catch_errors, catch_errors, struct captured_command_args)
1431 (do_captured_command, catch_command_errors): Move to exceptions.c.
1432 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
1433 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
1434 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
1435 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
1436 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
1437 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
1438 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
1439 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
1440 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
1441 * ada-valprint.c, ada-lang.c: Ditto.
1442 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
1443 exceptions.o. Update all dependencies.
1444
ca14ead7
MK
14452005-01-11 Mark Kettenis <kettenis@gnu.org>
1446
eafc7eea
MK
1447 * config/i386/nm-fbsd.h: Update copyright year.
1448 Don't include "config/nm-bsd.h".
1449 (KERNEL_U_SIZE): Remove macro.
1450 (kernel_u_size): Remove prototype.
1451
ca14ead7
MK
1452 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
1453 * config/vax/nm-nbsdaout.h: Remove file.
1454
4a39d934
EZ
14552005-01-10 Elena Zannoni <ezannoni@redhat.com>
1456
1457 * MAINTAINERS: Remove self from sh/sh64 maintainership.
1458
93f0f986
AC
14592005-01-10 Andrew Cagney <cagney@gnu.org>
1460
c4f9e2bf
AC
1461 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
1462 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
1463 maintainer.
1464
6b71dd74
AC
1465 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
1466 changes to CRIS.
1467
93f0f986
AC
1468 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
1469 COMMIT means can approve).
1470
8785ced0
MK
14712005-01-10 Mark Kettenis <kettenis@gnu.org>
1472
2a2de4ce
MK
1473 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
1474 (vax_register_u_offset): Make statuc.
1475 (_initialize_vax_nat): Construct and add target vector.
1476 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
1477 inftarg.o. Add inf-ptrace.o.
1478 * Makefile.in (vax-nat.o): Update dependencies.
1479
8785ced0
MK
1480 * inf-ptrace.h: Update copyright year. Sync comment with
1481 inf-ptrace.c.
1482 (inf_ptrace_trad_target): New prototype.
1483 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
1484 "gdb_assert.h"
1485 (inf_ptrace_target): Add comment.
1486 (inf_ptrace+register_u_offset): New variable.
1487 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1488 (inf_ptrace_store_register, inf_ptrace_store_registers)
1489 (inf_ptrace_trad_target): New functions.
1490 * Makefile.in (inf-ptrace.o): Update dependencies.
1491
7cb9022a
MK
14922005-01-09 Mark Kettenis <kettenis@gnu.org>
1493
1494 * configure.ac: Provide prerequisite headers when checking
1495 <link.h>, <sys/proc.h> and <sys/user.h>.
1496 * configure: Regenerate.
1497
c534d641
MK
14982005-01-08 Mark Kettenis <kettenis@gnu.org>
1499
1500 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
1501 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
1502
4b48ac22
MK
15032005-01-07 Mark Kettenis <kettenis@gnu.org>
1504
1505 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
1506 Don't include "tm-ia64.h".
1507 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
1508 * config/ia64/tm-ia64.h: Remove. Move contents ...
1509 * ia64-tdep.h: ... here. Update copyright year.
1510
3ace7edb
AC
15112005-01-07 Andrew Cagney <cagney@gnu.org>
1512
bec39cab
AC
1513 * configure.ac: Rename configure.in, require autoconf 2.59.
1514 * configure: Re-generate.
1515
e14ecb8f
AC
1516 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
1517 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
1518 to configdirs.
1519
3ace7edb
AC
1520 * configure.in: Replace configdirs with multiple references to
1521 AC_CONFIG_SUBDIRS.
1522 * configure: Re-generate.
1523
b33e8514
AS
15242005-01-05 Andreas Schwab <schwab@suse.de>
1525
1526 * ia64-tdep.c: Include "osabi.h".
1527 (native_find_global_pointer): Delete.
1528 (ia64_find_global_pointer): Renamed from
1529 generic_elf_find_global_pointer.
1530 (FIND_GLOBAL_POINTER): Delete. Change all users to call
1531 ia64_find_global_pointer instead.
1532 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
1533 to ia64_linux_sigcontext_register_address and
1534 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
1535 (_initialize_ia64_tdep): Call gdbarch_register instead of
1536 deprecated register_gdbarch_init.
1537 (struct gdbarch_tdep): Remove find_global_pointer field and move
1538 to ...
1539 * ia64-tdep.h (struct gdbarch_tdep): ... here.
1540 (ia64_linux_sigcontext_register_address): Remove declaration.
1541 (ia64_linux_getunwind_table): Likewise.
1542 (ia64_linux_write_pc): Likewise.
1543 * ia64-linux-tdep.c: Include "osabi.h".
1544 (ia64_linux_sigcontext_register_address): Make static.
1545 (ia64_linux_write_pc): Likewise.
1546 (ia64_linux_init_abi): New.
1547 (_initialize_ia64_linux_tdep): New.
1548 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
1549 $(osabi_h).
1550
0ea390ed
KB
15512005-01-05 Kevin Buettner <kevinb@redhat.com>
1552
1553 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
1554 functions in ia64-aix-tdep.c.
1555 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
1556 function defined in ia64-aix-tdep.c.
1557 * ia64-aix-tdep.c: Remove file.
1558 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
1559 this list.
1560 * Makefile.in (ia64-aix-tdep.o): Delete.
1561
edefbb7c
AC
15622005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1563
1564 Committed by Andrew Cagney.
1565 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
1566 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
1567 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
1568 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
1569 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
1570 * aix-thread.c (_initialize_aix_thread): Get rid of the
1571 deprecated_add_show_from_set call.
1572 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1573 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1574 * command.h (add_setshow_enum_cmd): Add arguments for returning
1575 new list elements.
1576 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
1577 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
1578 add_setshow_enum_cmd.
1579
a260932f
MK
15802005-01-04 Mark Kettenis <kettenis@gnu.org>
1581
34cf1994
MK
1582 * configure.host (ia64-*-aix*): Remove.
1583 * configure.tgt (ia64-*-aix*): Remove.
1584 * config/ia64/aix.mh: Remove file.
1585 * config/ia64/aix.mt: Remove file.
1586 * config/ia64/tm-aix.h: Remove file.
1587 * ia64-aix-nat.c: Remove file.
1588 * Makefile.in (ia64-aix-nat.o): Remove dependency.
1589
a260932f
MK
1590 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
1591 Add back inf-ptrace.o.
1592
5ed102a1
AC
15932005-01-04 Andrew Cagney <cagney@gnu.org>
1594
1595 * version.in: Change format from 6.3.50_2005-01-04-cvs to
1596 6.3.50.20050104-cvs.
1597
3a63c4b7
AS
15982005-01-04 Andreas Schwab <schwab@suse.de>
1599
1600 * breakpoint.c (break_command_1): Always free err_msg before
1601 returning when an exception was caught.
1602
e22b26cb
JB
16032005-01-01 Joel Brobecker <brobecker@gnat.com>
1604
1605 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
1606 in register number for addil instruction.
1607
151c5df6 1608For older changes see ChangeLog-2004.
c906108c
SS
1609\f
1610Local Variables:
1611mode: change-log
1612left-margin: 8
1613fill-column: 74
1614version-control: never
1615End:
This page took 0.736986 seconds and 4 git commands to generate.