c5cd75a664b0796faf48885263e67eb2e6d99d93
[binutils-gdb.git] / gdb / ChangeLog
1 2005-04-18 Mark Kettenis <kettenis@gnu.org>
2
3 * hppabsd-nat.c: Update copyright year. Include "target.h" and
4 "inf-ptrace.h".
5 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
6 made static.
7 (hppabsd_store_registers): Renamed from store_inferior_registers;
8 made static.
9 (_initialize_hppabsd_nat): New function and prototype.
10 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
11 inftarg.o. Add inf-ptrace.o.
12 (NAT_FILE): Remove.
13 * Makefile.in (hppabsd-nat.o): Update dependencies.
14
15 2005-04-17 Mark Kettenis <kettenis@gnu.org>
16
17 * pa64solib.c, pa64solib.h: Remove files.
18 * Makefile.in (pa64solib_h): Remove variable
19 (pa64solib.o): Remove dependency.
20
21 2005-04-16 Mark Kettenis <kettenis@gnu.org>
22
23 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
24 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
25 made static.
26 (ppcobsd_store_registers): Renamed from store_inferior_registers;
27 made static.
28 (_initialize_ppcobsd_nat): Construct and add target vector.
29 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
30 inftarg.o. Add inf-ptrace.o.
31 (NAT_FILE): Remove.
32 * Makefile.in (ppcobsd-nat.o): Update dependencies.
33
34 * ppcobsd-tdep.c: Include "floatformat.h".
35 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
36 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
37
38 * ppcobsd-tdep.c: Fix typo in comment.
39 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
40 bfd_arch_rs6000 too.
41
42 2005-04-15 Kevin Buettner <kevinb@redhat.com>
43
44 * remote.c (remote_get_thread_local_address): Throw a more
45 meaningful exception when remote target doesn't have support
46 for the qGetTLSAddr packet.
47
48 2005-04-15 Kevin Buettner <kevinb@redhat.com>
49
50 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
51 (set_remote_protocol_qGetTLSAddr_packet_cmd)
52 (show_remote_protocol_qGetTLSAddr_packet_cmd)
53 (remote_get_thread_local_address): New functions.
54 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
55 variable.
56 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
57 target vector.
58 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
59 (_initialize_remote): Register the following commands:
60 "set remote get-thread-local-storage-address-packet" and
61 "show remote get-thread-local-address-packet".
62
63 2005-04-15 Kevin Buettner <kevinb@redhat.com>
64
65 * remote.c (add_packet_config_cmd): Delete unused variables.
66
67 2005-04-15 Kevin Buettner <kevinb@redhat.com>
68
69 * remote.c (show_remote_protocol_vcont_packet_cmd )
70 (show_remote_protocol_qSymbol_packet_cmd)
71 (show_remote_protocol_P_packet_cmd)
72 (show_remote_protocol_Z_software_bp_packet_cmd)
73 (show_remote_protocol_Z_hardware_bp_packet_cmd)
74 (show_remote_protocol_Z_write_wp_packet_cmd)
75 (show_remote_protocol_Z_read_wp_packet_cmd)
76 (show_remote_protocol_Z_access_wp_packet_cmd)
77 (show_remote_protocol_binary_download_cmd)
78 (show_remote_protocol_qPart_auxv_packet_cmd)
79 (show_remote_protocol_p_packet_cmd ): Delete calls to
80 deprecated_show_value_hack().
81
82 2005-04-15 Corinna VInschen <vinschen@redhat.com>
83
84 * MAINTAINERS: Change sh64-elf state to non-broken.
85 * Makefile.in: Fix dependencies for sh64-tdep.o.
86 * configure.tgt: Add sh64-*-elf case.
87 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
88 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
89 modern methods.
90 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
91 * config/sh/sh64.mt: Resurrect.
92
93 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
94
95 * regformats/reg-m32r.dat: New file.
96
97 2005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
98
99 * arm-tdep.c (fp_model_strings): Add terminating NULL.
100 (arm_abi_strings, arm_abi_global, arm_abi_string): New
101 variables.
102 (arm_extract_return_value, arm_store_return_value): Don't use
103 arm_get_fp_model.
104 (arm_get_fp_model, arm_set_fp): Delete.
105 (arm_update_current_architecture): New function.
106 (set_fp_model_sfunc): Call arm_update_current_architecture.
107 (show_fp_model): Update output messages.
108 (arm_set_abi, arm_show_abi): New functions.
109 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
110 (arm_gdbarch_init): Infer the object's ABI separately from its
111 OSABI. Search for a matching architecture. Honor the global
112 ABI and FPU settings. Set floating point format based on the
113 architecture.
114 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
115 Delete.
116 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
117 Create "arm set abi" command.
118 * arm-tdep.h (arm_get_fp_model): Delete prototype.
119 (enum arm_abi_kind): New type.
120 (struct gdbarch_tdep): Add arm_abi field.
121 * arm-linux-tdep.c (arm_linux_init_abi): Only override
122 tdep->fp_model if it is ARM_FLOAT_AUTO.
123 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
124 (arm_netbsd_elf_init_abi): Likewise.
125 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
126 * osabi.c (gdb_osabi_name): Likewise.
127
128 2005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
131
132 2005-04-10 Mark Kettenis <kettenis@gnu.org>
133
134 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
135 floating-point registers.
136 (ppc_collect_fpregset): Likewise. Fix collection of registers.
137
138 2005-04-09 Mark Kettenis <kettenis@gnu.org>
139
140 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
141 and "tramp-frame.h".
142 (ppcobsd_sigtramp_cache_init): New function.
143 (ppcobsd_sigtramp): New variable.
144 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
145 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
146
147 2005-04-08 Andrew Cagney <cagney@gnu.org>
148
149 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
150 Nasser have decided to step back from GDB/MI.
151
152 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
153
154 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
155
156 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
157
158 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
159 undefined_retaddr.
160 (dwarf2_frame_cache): Initialize undefined_retaddr.
161 (dwarf2_frame_this_id): Return an invalid frame ID if
162 undefined_retaddr.
163
164 2005-04-05 Jim Blandy <jimb@redhat.com>
165
166 Move construction of IA-32 vector types to i386-tdep.c.
167 * gdbtypes.c (build_builtin_type_vec64i,
168 build_builtin_type_vec128i): Delete functions.
169 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
170 (build_gdbtypes): Don't initialize them.
171 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
172 them.
173 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
174 declarations.
175 (builtin_type_v2_float, builtin_type_v2_int32,
176 builtin_type_v4_int16, builtin_type_v8_int8,
177 builtin_type_v2_double, builtin_type_v4_float,
178 builtin_type_v2_int64, builtin_type_v4_int32,
179 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
180 declarations.
181 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
182 (i386_build_mmx_type, i386_build_sse_type): New functions.
183 (i386_register_type): Call them, rather than referring to
184 builtin_type_vec64i and builtin_type_vec128i.
185
186 2005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
189 big-endian correction code to not offset 32-bit registers.
190 Locate floating point registers correctly.
191
192 2005-04-02 Mark Kettenis <kettenis@gnu.org>
193
194 * main.c: Update copyright year.
195 (captured_main): Avoid using strcpy and strcat.
196
197 2005-04-01 Michael Snyder <msnyder@redhat.com>
198
199 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
200 computing this_id if there are no dummy frames on the stack.
201
202 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
203 find_partial_func instead of unwind_pc to identify frame.
204 (mn10300_push_dummy_call): Handle struct args, struct_return.
205
206 * mn10300-prologue.c (set_movm_offsets): Don't test variable
207 before setting it.
208 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
209 instead of skip_prologue_using_sal.
210
211 2005-03-31 Kevin Buettner <kevinb@redhat.com>
212
213 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
214 (main_lm_addr): New static global.
215 (frv_current_sos): Retain the link map address for each entry.
216 (frv_clear_solib): Clear main_lm_addr.
217 (frv_fetch_objfile_link_map): New function.
218 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
219 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
220
221 2005-03-31 Kevin Buettner <kevinb@redhat.com>
222
223 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
224 * gdbarch.c, gdbarch.h: Regenerate.
225 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
226 address and pass this address, instead of the objfile address, to
227 target_get_thread_local_address().
228 * linux-thread-db.c (thread_db_get_thread_local_address): Change
229 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
230 not call svr4_fetch_objfile_link_map() to fetch the load module
231 address.
232 * target.h (struct target_ops): Change second parameter of
233 ``to_get_thread_local_address'' from ``struct objfile *'' to
234 ``CORE_ADDR''.
235 * alpha-linux-tdep.c (solib-svr4.h): Include.
236 (alpha_linux_init_abi): Register TLS load module fetcher.
237 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
238 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
239 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
240 * ia64-linux-tdep.c (solib-svr4.h): Include.
241 (ia64_linux_init_abi): Register TLS load module fetcher.
242 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
243 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
244 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
245 * s390-tdep.c (s390_gdbarch_init): Likewise.
246 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
247 * sparc64-linux-tdep.c (solib-svr4.h): Include.
248 (sparc64_linux_init_abi): Register TLS load module fetcher.
249 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
250 (sparc-linux-tdep.o): Update dependencies.
251
252 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
253
254 * c-valprint.c (c_value_print): Fix up some formatting. Use
255 check_typedef.
256
257 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * arm-linux-nat.c (store_register, store_regs): Handle
260 ARM_PS_REGNUM.
261
262 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
263
264 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
265 (arm_linux_thumb_le_breakpoint): New. Update comments.
266 (arm_linux_init_abi): Set Thumb breakpoints also.
267
268 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
269
270 * Makefile.in (arm-tdep.o): Update dependencies.
271 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
272 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
273
274 2005-03-28 Joel Brobecker <brobecker@adacore.com>
275
276 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
277 register value to be incorrectly written in the regcache.
278 (fill_fpregset): Fix bug that caused the FSR register value
279 to be incorrectly read from the regcache.
280
281 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
282
283 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
284 arm_pc_is_thumb_dummy.
285
286 2005-03-28 Mark Kettenis <kettenis@gnu.org>
287
288 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
289 StackGhost.
290
291 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
292 Handle StackGhost in 64-bit code.
293 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
294
295 2005-03-27 Christopher Faylor <cgf@timesys.com>
296
297 * win32-nat.c (handle_exception): Treat win32 routines which check for
298 valid addresses as "special" and don't stop when a SEGV is detected.
299 (get_child_debug_event): Properly flag exception as unhandled.
300
301 2005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
302
303 * cp-support.c (cp_class_name_from_physname): Rewrite.
304 (unqualified_name_from_comp): New function, broken out from
305 method_name_from_physname. Correct handling for typed names
306 and templates.
307 (method_name_from_physname): Use unqualified_name_from_comp.
308 (cp_func_name, remove_params): Move earlier in the file. Add
309 better comments. Use the component tree to parse the name.
310 (_initialize_cp_support): Remove stray whitespace.
311
312 2005-03-26 Mark Kettenis <kettenis@gnu.org>
313
314 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
315
316 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
317 Callapse HAVE_TERMIO and HAVE_SGTTY.
318
319 * dwarf2-frame.c (execute_cfa_program): Implement
320 DW_CFA_GNU_window_save.
321
322 2005-03-25 Mark Kettenis <kettenis@gnu.org>
323
324 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
325
326 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
327
328 2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
329
330 * arm-tdep.c (target_is_thumb, caller_is_thumb)
331 (arm_pc_is_thumb_dummy): Remove.
332 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
333
334 2005-03-25 Anthony Green <green@redhat.com>
335
336 * remote.c (remote_store_registers): Fix memset usage.
337 * std-regs.c (value_of_builtin_frame_reg): Ditto.
338 (value_of_builtin_frame_fp_reg): Ditto.
339 (value_of_builtin_frame_reg): Ditto.
340
341 2005-03-25 Mark Mitchell <mark@codesourcery.com>
342
343 * ser-base.c (ser_unix_write): Rename to ...
344 (ser_base_write): ... this.
345 (ser_unix_nop_flush_output): Rename to ...
346 (ser_base_flush_output): ... this.
347 (ser_unix_flush_input): Rename to ...
348 (ser_base_flush_input): ... this.
349 (ser_unix_nop_send_break): Rename to ...
350 (ser_base_send_break): ... this.
351 (ser_unix_nop_drain_output): Rename to ...
352 (ser_base_drain_output): ... this.
353 (ser_unix_nop_raw): Rename to ...
354 (ser_base_raw): ... this.
355 (ser_unix_nop_get_tty_state): Rename to ...
356 (ser_base_set_tty_state): ... this.
357 (ser_unix_nop_noflush_set_tty_state): Rename to ...
358 (ser_base_noflush_set_tty_state): ... this.
359 (ser_unix_nop_print_tty_state): Rename to ...
360 (ser_base_print_tty_state): ... this.
361 (ser_unix_nop_setbaudrate): Rename to ...
362 (ser_base_setbaudrate): ... this.
363 (ser_unix_nop_setstopbits): Rename to ...
364 (ser_base_setstopbits): ... this.
365 (ser_unix_async): Rename to ...
366 (ser_base_async): ... this.
367 * ser-base.h (ser_unix_write): Rename to ...
368 (ser_base_write): ... this.
369 (ser_unix_nop_flush_output): Rename to ...
370 (ser_base_flush_output): ... this.
371 (ser_unix_flush_input): Rename to ...
372 (ser_base_flush_input): ... this.
373 (ser_unix_nop_send_break): Rename to ...
374 (ser_base_send_break): ... this.
375 (ser_unix_nop_drain_output): Rename to ...
376 (ser_base_drain_output): ... this.
377 (ser_unix_nop_raw): Rename to ...
378 (ser_base_raw): ... this.
379 (ser_unix_nop_get_tty_state): Rename to ...
380 (ser_base_set_tty_state): ... this.
381 (ser_unix_nop_noflush_set_tty_state): Rename to ...
382 (ser_base_noflush_set_tty_state): ... this.
383 (ser_unix_nop_print_tty_state): Rename to ...
384 (ser_base_print_tty_state): ... this.
385 (ser_unix_nop_setbaudrate): Rename to ...
386 (ser_base_setbaudrate): ... this.
387 (ser_unix_nop_setstopbits): Rename to ...
388 (ser_base_setstopbits): ... this.
389 (ser_unix_async): Rename to ...
390 (ser_base_async): ... this.
391 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
392 * ser-tcp.c (_initialize_ser_tcp): Likewise.
393 * ser-unix.c (hardwire_flush_input): Likewise.
394 (_initializer_ser_hardwire): Likewise.
395
396 * Makefile.in (SFILES): Add ser-base.c.
397 (ser_base_h): New variable.
398 (ser-base.o): New target.
399 (ser-pipe.o): Depend on $(ser_base_h).
400 (ser-tcp.o): Likewise.
401 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
402 * configure.ac (SER_HARDWIRE): Include ser-base.o where
403 appropriate.
404 * ser-base.c: New file.
405 (push_event): Move from ser-unix.c.
406 (fd_event): Likewise.
407 (reschedule): Likewise.
408 (ser_unix_write): Likewise.
409 (ser_unix_nop_flush_output): Likewise.
410 (ser_unix_flush_input): Likewise.
411 (ser_unix_nop_send_break): Likewise.
412 (ser_unix_nop_drain_output): Likewise.
413 (ser_unix_nop_raw): Likewise.
414 (ser_unix_nop_get_tty_state): Likewise.
415 (ser_unix_nop_set_tty_state): Likewise.
416 (ser_unix_nop_noflush_set_tty_state): Likewise.
417 (ser_unix_nop_print_tty_state): Likewise.
418 (ser_unix_nop_setbaudrate): Likewise.
419 (ser_unix_nop_setstopbits): Likewise.
420 (ser_unix_async): Likewise.
421 * ser-base.h: New file.
422 * ser-pipe.c (ser-base.h): Include it.
423 * ser-tcp.c (ser-base.h): Likewise.
424 * ser-unix.h (ser_unix_nop_flush_output): Remove.
425 (ser_unix_flush_input): Likewise.
426 (ser_unix_nop_send_break): Likewise.
427 (ser_unix_nop_raw): Likewise.
428 (ser_unix_nop_get_tty_state): Likewise.
429 (ser_unix_nop_set_tty_state): Likewise.
430 (ser_unix_nop_print_tty_state): Likewise.
431 (ser_unix_nop_noflush_set_tty_state): Likewise.
432 (ser_unix_nop_setbaudrate): Likewise.
433 (ser_unix_nop_setstopbits): Likewise.
434 (ser_unix_nop_drain_output): Likewise.
435 (ser_unix_wait_for): Likewise.
436 (ser_unix_write): Likewise.
437 (ser_unix_async): Likewise.
438 * ser-unix.c (event-loop.h): Do not include it.
439 (push_event): Move to ser-base.c.
440 (fd_event): Likewise.
441 (reschedule): Likewise.
442 (ser_unix_write): Likewise.
443 (ser_unix_nop_flush_output): Likewise.
444 (ser_unix_flush_input): Likewise.
445 (ser_unix_nop_send_break): Likewise.
446 (ser_unix_nop_drain_output): Likewise.
447 (ser_unix_nop_raw): Likewise.
448 (ser_unix_nop_get_tty_state): Likewise.
449 (ser_unix_nop_set_tty_state): Likewise.
450 (ser_unix_nop_noflush_set_tty_state): Likewise.
451 (ser_unix_nop_print_tty_state): Likewise.
452 (ser_unix_nop_setbaudrate): Likewise.
453 (ser_unix_nop_setstopbits): Likewise.
454 (ser_unix_async): Likewise.
455 (ser_unix_wait_for): Make it static.
456 * configure: Regenerated.
457
458 2005-03-25 Mark Kettenis <kettenis@gnu.org>
459
460 * dwarf2-frame.h: Update copyrigh year.
461 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
462 * dwarf2-frame.c: Update copyright year.
463 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
464 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
465 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
466
467 2005-03-23 Martin Hunt <hunt@redhat.com>
468
469 * configure.ac: Remove -fwritable-strings from CFLAGS.
470 * configure: Regenerate.
471
472 2005-03-21 Michael Snyder <msnyder@redhat.com>
473
474 * mn10300-prologue.c (fix_frame_pointer): Delete.
475 (set_movm_offsets) Don't return just because movm_args is
476 zero -- still need to save pc and sp in saved_regs.
477 (mn10300_analyze_prologue): Don't return prematurely without
478 calling set_movm_offsets (for pc and sp at minimum).
479
480 2005-03-21 Mark Mitchell <mark@codesourcery.com>
481
482 * configure.ac (stat.st_blksize): Check for it.
483 (getuid): Likewise.
484 (getgid): Likewise.
485 * configure: Regenerated.
486 * config.in: Likewise.
487 * remote-fileio.c (remote_fileio_to_fio_stat): Check
488 HAVE_STRUCT_STAT_ST_BLKSIZE.
489
490 2005-03-21 Christopher Faylor <cgf@timesys.com>
491
492 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
493 here.
494 (do_initial_child_stuff): Move clearing of thread list to a place
495 before a thread ould be created.
496 (child_attach): Ditto.
497
498 2005-03-21 Michael Snyder <msnyder@redhat.com>
499
500 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
501 instead of pc addr for frame_id. Otherwise "until" won't work.
502
503 2005-03-21 Kevin Buettner <kevinb@redhat.com>
504
505 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
506 comment.
507
508 2005-03-20 Mark Kettenis <kettenis@gnu.org>
509
510 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
511 * varobj.c (my_value_equal): Mark val2 as volatile.
512
513 * cp-names.y: Add prototype for yyparse.
514
515 2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
516
517 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
518 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
519 VALADDR.
520
521 2005-03-18 Kevin Buettner <kevinb@redhat.com>
522
523 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
524 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
525 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
526 New error/exception enums.
527 * dwarf2loc.c (exceptions.h): Include.
528 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
529 via TRY_CATCH mechanism. Print error messages for TLS related
530 exceptions.
531 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
532 exceptions instead of printing errors.
533
534 2005-03-18 Mark Kettenis <kettenis@gnu.org>
535
536 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
537 (decimal2str, octal2str): Change to return a string allocated by
538 get_cell. Use xsnprint instead of snprintf.
539 (paddr_u, paddr_d): Adjust for changed calling convention of
540 decimal2str.
541 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
542 (int_string): Likewise. Adjust for changed calling convention of
543 decimal2str and octal2str.
544
545 2005-03-18 Kevin Buettner <kevinb@redhat.com>
546
547 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
548 Adjust incorrectly computed constant for realtime signal frame.
549
550 2005-03-18 Mark Kettenis <kettenis@gnu.org>
551
552 From Ralf Corsepius <ralf.corsepius@rtems.org>
553 * configure.tgt: Add m68*-*-rtems*.
554
555 2005-03-17 Mark Kettenis <kettenis@gnu.org>
556
557 * defs.h (xsnprintf): New prototype.
558 * utils.c (xsnprintf): New function.
559
560 * corelow.c (get_core_register_section): Replace usage of sprintf
561 and strcpy with xstrprintf and xstrdup.
562
563 * mips-tdep.c (mips_single_step_through_delay): Put back check for
564 breakpoint lost with the introduction of this function.
565
566 2005-03-17 Paul Brook <paul@codesourcery.com>
567
568 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
569 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
570
571 2005-03-16 Mark Mitchell <mark@codesourcery.com>
572
573 * event-top.c (handle_sigquit): Do not define for systems without
574 SIGQUIT.
575 (sigquit_token): Likewise.
576 (async_init_signals): Allow for systems that do not
577 define SIGQUIT.
578 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
579
580 2005-03-15 Mark Mitchell <mark@codesourcery.com>
581
582 * utils.c (internal_vproblem): Guard call to fork with
583 HAVE_WORKING_FORK.
584 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
585 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
586
587 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
588 S_IRGRP and related macros.
589 (remote_fileio_mode_to_target): Likewise.
590
591 2005-03-14 Ben Elliston <bje@au.ibm.com>
592
593 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
594 more primitive library.
595
596 2005-03-13 Mark Kettenis <kettenis@gnu.org>
597
598 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
599 sprintf.
600 * target.c (normal_pid_to_str): Likewise.
601 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
602 Change capitalization of "thread". Use ptid_get_pid instead of
603 GETPID.
604
605 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
606 a combination of xmalloc and sprintf.
607
608 2005-03-13 Jim Blandy <jimb@redhat.com>
609
610 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
611 * configure: Regenerated.
612
613 2005-03-11 Michael Snyder <msnyder@redhat.com>
614
615 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
616 stub fn with real implementatin mn10300_unwind_dummy_id.
617 (mn10300_push_dummy_call): Implement. Bare bones version,
618 does not handle structs or floats.
619
620 2005-03-11 Jim Blandy <jimb@redhat.com>
621
622 Avoid warnings due to the use of -Wuninitialized without -O.
623 * configure.ac (build_warnings): Include -Wuninitialized only if
624 CFLAGS is unset at configure time, or CFLAGS is set and includes
625 some -O option other than -O0.
626 * configure: Regenerated.
627
628 * mips-tdep.c (show_mips_abi): Change calling conventions to match
629 those expected by add_setshow_enum_cmd. Use 'file' argument as
630 appropriate.
631
632 2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
633
634 * Makefile.in (SFILES): Add cp-names.y.
635 (libiberty_h, safe_ctype_h): New.
636 (YYFILES): Add cp-names.c.
637 (YYOBJ): Add cp-names.o.
638 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
639 (clean): Remove test-cp-names$(EXEEXT).
640 (local-maintainer-clean): Remove cp-names.c.
641 * cp-names.y: New file.
642 * cp-support.c (find_last_component): Delete.
643 (d_left, d_right): Define.
644 (cp_canonicalize_string, mangled_name_to_comp): New functions.
645 (cp_class_name_from_physname, method_name_from_physname): Rewrite
646 to use mangled_name_to_comp.
647 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
648 (cp_comp_to_string): New prototypes.
649 * config/djgpp/fnchange.lst: Add cp-names.c.
650
651 2005-03-10 Bob Rossi <bob@brasko.net>
652
653 * main.c (print_gdb_help): Remove the --[no]async help message.
654
655 2005-03-10 Mark Kettenis <kettenis@gnu.org>
656
657 * proc-api.c: Update copyright year.
658 (_initialize_proc_api): Revert previous patch, removing spurious
659 space instead.
660
661 2005-03-09 Joel Brobecker <brobecker@adacore.com>
662
663 * regcache.c: Fix typo in comment.
664
665 2005-03-09 David Lecomber <david@lecomber.net>
666
667 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
668 i18n text.
669
670 2005-03-09 Mark Kettenis <kettenis@gnu.org>
671
672 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
673 address for 64-bit code.
674 (sparc_unwind_dummy_id): Likewise.
675 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
676 frame base address convention.
677 (sparc64_push_dummy_call): Likewise.
678 * sparc64nbsd-tdep.c: Update copyright year.
679 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
680 address for 64-bit code.
681 (sparc64nbsd_init_abi): Tweak comment.
682 * sparc64obsd-tdep.c: Update copyright year.
683 (sparc64obsd_frame_cache): Adjust cached frame base address for
684 64-bit code.
685 (sparc64obsd_init_abi): Tweak comment.
686
687 2005-03-09 Corinna Vinschen <vinschen@redhat.com>
688
689 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
690
691 2005-03-09 Joel Brobecker <brobecker@adacore.com>
692
693 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
694 when creating include psymtabs.
695
696 2005-03-08 Mark Mitchell <mark@codesourcery.com>
697
698 * environ.h (struct environ): Rename to ...
699 (struct gdb_environ): ... this.
700 (make_environ): Update prototype.
701 (free_environ): Likewise.
702 (init_environ): Likewise.
703 (get_in_environ): Likewise.
704 (set_in_environ): Likewise.
705 (unset_in_environ): Likewise.
706 (environ_vector): Likewise.
707 * environ.c (make_environ): Replace "struct environ" with "struct
708 gdb_environ".
709 (free_environ): Likewise.
710 (init_environ): Likewise.
711 (environ_vector): Likewise.
712 (get_in_environ): Likewise.
713 (set_in_environ): Likewise.
714 (unset_in_environ): Likewise.
715 * infcmd.c (inferior_environ): Likewise.
716 * inferior.h (inferior_environ): Likewise.
717
718 2005-03-08 Joel Brobecker <brobecker@adacore.com>
719
720 * infcmd.c (run_command_1): New function, extracted from
721 run_command.
722 (run_command): Replace implementation by call to run_command_1.
723 (start_command): Use run_command_1 to insert the temporary
724 breakpoint and run the program. Remove code that's no longer
725 needed, as already done at the proper time by run_command_1.
726
727 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
728
729 * symfile.c (clear_symtab_users): Call
730 clear_current_source_symtab_and_line first.
731
732 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
733
734 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
735 * c-exp.y (exp): Add unary plus.
736 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
737 * valarith.c (value_x_unop): Add UNOP_PLUS case.
738 (value_pos): New.
739 * value.h (value_pos): Declare.
740
741 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
742 (remote_fetch_registers): Allow uppercase hex when resyncing.
743 (remote_write_bytes): Only call get_memory_write_packet_size once.
744 Robustify packet size calculation for very small packets. Check
745 that at least one byte will be written.
746
747 * tracepoint.c (target_is_remote): Allow extended-remote.
748 (struct collection_list): Allow 256 registers, like the comment
749 said.
750 (add_memrange): Fix comment.
751 (read_actions): Turn EOF into 'end'.
752
753 2005-03-08 Corinna Vinschen <vinschen@redhat.com>
754
755 * Makefile.in: Add dependencies for iq2000-tdep.o.
756 * configure.tgt: Add iq2000-*-* target.
757 * iq2000-tdep.c: New file.
758 * config/iq2000/iq2000.mt: New file.
759
760 2005-03-07 Joel Brobecker <brobecker@adacore.com>
761
762 * doc/observer.texi (executable_changed): New observer.
763 * symtab.c: Include "observer.h".
764 (find_main_name): New function.
765 (main_name): If name_of_main is unset, then compute it
766 using find_main_name.
767 (symtab_observer_executable_changed): New function.
768 (_initialize_symtab): Attach executable_changed observer.
769 * exec.c: Include "observer.h".
770 (exec_file_attach): Emit executable_changed notification.
771 * symfile.c: Include "observer.h".
772 (reread_symbols): Send an executable_changed if appropriate.
773 * Makefile.in (exec.o): Add dependency on observer.h.
774 (symfile.o): Likewise.
775 (symtab.o): Likewise.
776
777 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
778
779 * findvar.c (read_var_value): Don't allocate V when it will not
780 be used. Add missing break for LOC_INDIRECT.
781
782 2005-03-06 Mark Kettenis <kettenis@gnu.org>
783
784 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
785 (sparc64fbsd_init_abi): Set skip_trampoline_code and
786 solib_svr4_fetch_link_map_offsets.
787 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
788
789 2005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
790
791 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
792 printing output. Use fprintf_unfiltered. Only print output when
793 debugging.
794
795 2005-03-05 Mark Kettenis <kettenis@gnu.org>
796
797 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
798 argument.
799 (sparc64_store_arguments): Constify.
800
801 2005-03-05 Mark Kettenis <kettenis@gnu.org>
802
803 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
804 (alphabsd_fetch_inferior_registers): Rename from
805 fetch_inferior_registers. Make static.
806 (alphabsd_store_inferior_registers): Rename from
807 store_inferior_registers. Make static.
808 (_initialize_alphabsd_nat): New function.
809 * Makefile.in (alphabsd-nat.o): Update dependencies.
810 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
811 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
812 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
813 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
814 alphabsd-nat.o.
815 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
816 "config/nm-bsd.h" and "elf/common.h".
817 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
818 "config/nm-nbsd.h".
819
820 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
821 software_single_step.
822
823 2005-03-04 Michael Snyder <msnyder@redhat.com>
824
825 * mn10300-prologue.c: New file. Prologue analysis.
826 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
827 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
828 until after analyze_prologue, and don't call trad_frame_set_base
829 at all (let analyze_prologue do it).
830
831 2005-03-04 Michael Snyder <msnyder@redhat.com>
832
833 * trad-frame.c (trad_frame_set_reg_value): New function.
834 * trad-frame.h (trad_frame_set_reg_value): Export.
835
836 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
837
838 * Makefile.in (remote.o): Update dependencies.
839 * remote.c: Include "observer.h".
840
841 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
842
843 * target.c (target_read_memory_partial): Always initialize
844 ERR.
845 (target_write_memory_partial): Likewise.
846
847 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
848
849 * remote.c (remote_open_1): Call observer_notify_inferior_created.
850
851 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
852
853 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
854 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
855 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
856
857 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
860 Use LWP IDs.
861
862 2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
863
864 * dwarf2loc.c (loclist_read_variable): Set optimized_out
865 instead of reporting an error.
866 * valprint.c (value_check_printable): New function.
867 (common_val_print): New function. Use value_check_printable.
868 (value_print): Use value_check_printable.
869 * value.h (common_val_print): Add prototype.
870
871 * c-valprint.c (c_val_print): Use common_val_print.
872 * cp-valprint.c (cp_print_value_fields): Likewise.
873 (cp_print_hpacc_virtual_table_entries): Likewise.
874 * f-valprint.c (f_val_print): Likewise.
875 * jv-valprint.c (java_value_print, java_print_value_fields):
876 Likewise.
877 * scm-valprint.c (scm_value_print): Likewise.
878 * stack.c (print_frame_args): Likewise.
879 * varobj.c (c_value_of_variable): Likewise.
880 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
881 (pascal_object_print_value_fields): Likewise. Update call to
882 pascal_object_print_static_field.
883 (pascal_object_print_static_field): Remove TYPE argument. Use
884 common_val_print.
885
886 2005-02-25 Mark Kettenis <kettenis@gnu.org>
887
888 Committed by Elena Zannoni <ezannoni@redhat.com>
889
890 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
891 info_ptr before building psymtabs for included files.
892 (create_all_comp_units): Initailize initial length size of
893 compilation header to zero.
894 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
895 sections are encountered within the same compilation header.
896 (dwarf_decode_line_header): Pass compilation header in call to
897 read_initial_length.
898
899 2005-02-24 Andrew Cagney <cagney@gnu.org>
900
901 Add show_VARIABLE functions, update add_setshow call.
902 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
903 * valprint.c (_initialize_valprint, show_print_max)
904 (show_stop_print_at_null, show_repeat_count_threshold)
905 (show_prettyprint_structs, show_unionprint)
906 (show_prettyprint_arrays, show_addressprint, show_input_radix)
907 (show_output_radix): Ditto.
908 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
909 * utils.c (initialize_utils, show_chars_per_line)
910 (show_lines_per_page, show_demangle, show_pagination_enabled)
911 (show_sevenbit_strings, show_asm_demangle): Ditto
912 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
913 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
914 * top.c (init_main, show_new_async_prompt)
915 (show_async_command_editing_p, show_write_history_p)
916 (show_history_size, show_history_filename, show_caution)
917 (show_annotation_level, init_main): Ditto.
918 * target.c (initialize_targets, show_targetdebug)
919 (show_trust_readonly): Ditto.
920 * symfile.c (_initialize_symfile, show_symbol_reloading)
921 (show_ext_args, show_download_write_size)
922 (show_debug_file_directory): Ditto.
923 * source.c (_initialize_source, show_lines_to_list): Ditto.
924 * solib.c (_initialize_solib, show_auto_solib_add)
925 (show_solib_search_path): Ditto.
926 * p-valprint.c (_initialize_pascal_valprint)
927 (show_pascal_static_field_print): Ditto.
928 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
929 (show_print_symbol_filename): Add and update.
930 * parse.c (_initialize_parse, show_expressiondebug): Dito.
931 * observer.c (_initialize_observer, show_observer_debug): Dito.
932 * maint.c (_initialize_maint_cmds, show_watchdog)
933 (show_maintenance_profile_p): Dito.
934 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
935 * infrun.c (_initialize_infrun, show_debug_infrun)
936 (show_stop_on_solib_events, show_follow_fork_mode_string)
937 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
938 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
939 (show_unwind_on_signal_p): Ditto.
940 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
941 (_initialize_gdbtypes, show_overload_debug): Ditto.
942 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
943 (show_gdb_events_debug): Ditto.
944 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
945 (_initialize_gdbarch): Ditto.
946 * frame.c (_initialize_frame, show_backtrace_past_main)
947 (show_backtrace_past_entry, show_backtrace_limit)
948 (show_frame_debug): Ditto.
949 * exec.c (_initialize_exec, show_write_files): Ditto.
950 * dwarf2read.c (_initialize_dwarf2_read)
951 (show_dwarf2_max_cache_age): Ditto.
952 * demangle.c (_initialize_demangler)
953 (show_demangling_style_names): Ditto.
954 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
955 * cp-valprint.c (show_static_field_print)
956 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
957 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
958 * cli/cli-logging.c (_initialize_cli_logging)
959 (show_logging_overwrite, show_logging_redirect)
960 (show_logging_filename): Ditto.
961 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
962 (init_cli_cmds, show_baud_rate, show_remote_debug)
963 (show_remote_timeout, show_max_user_call_depth): Ditto.
964 * charset.c (show_host_charset_name, show_target_charset_name)
965 (initialize_charset): Ditto.
966 * breakpoint.c (show_can_use_hw_watchpoints)
967 (show_pending_break_support, _initialize_breakpoint): Ditto.
968
969 2005-02-23 Jim Blandy <jimb@redhat.com>
970
971 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
972
973 2005-02-23 Andrew Cagney <cagney@gnu.org>
974
975 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
976 SEC_XXX flags.
977
978 2005-02-22 Andrew Cagney <cagney@gnu.org>
979
980 * configure.ac: Only enaable insight when itcl is present.
981 * configure: Re-generate.
982
983 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
984
985 Committed by Andrew Cagney.
986 * infptrace.c (store_register): Fix typo.
987
988 2005-02-21 Andrew Cagney <cagney@gnu.org>
989
990 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
991 * cli/cli-decode.h (add_set_cmd): Delete declaration.
992 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
993 * i386-nat.c (_initialize_i386_nat): Update call.
994 * valprint.c (_initialize_valprint): Update comment.
995 * gnu-nat.c (_initialize_gnu_nat): Update call.
996
997 2005-02-21 Alan Modra <amodra@bigpond.net.au>
998
999 * elfread.c (elf_symtab_read): Discard section syms.
1000
1001 2005-02-21 Andrew Cagney <cagney@gnu.org>
1002
1003 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
1004 (deprecated_add_show_from_set): Delete function.
1005 * command.h (add_set_enum_cmd): Delete declaration.
1006 (deprecated_add_show_from_set): Delete declaration.
1007 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
1008 (deprecated_add_show_from_set): Delete declaration.
1009 * arm-tdep.c (_initialize_arm_tdep): Update comment.
1010 * kod.c (kod_set_os): Simplify.
1011 * infrun.c (set_schedlock_func): Simplify.
1012 * cli/cli-dump.c (add_dump_command): Update comment.
1013
1014 Replace string variables with a filename completer with
1015 add_setshow_optional_filename_cmd.
1016 * solib.c, symfile.c: Update.
1017 * cli/cli-setshow.c: Do not tidle expand the file.
1018
1019 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
1020 and add_setshow_string_noescape_cmd.
1021 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
1022 NULL command's value.
1023 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
1024 * remote-sds.c, remote.c, symfile.c, top.c: Update.
1025
1026 2005-02-20 Andrew Cagney <cagney@gnu.org>
1027
1028 Use add_setshow_enum_cmd through out.
1029 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
1030 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
1031
1032 * mi/mi-main.c (captured_mi_execute_command): Use
1033 mi_cmd_interpreter_exec.
1034
1035 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
1036 function.
1037 * cli/cli-setshow.c (deprecated_show_value_hack)
1038 (do_setshow_command): Handle var_optional_filename.
1039 * command.h (enum var_types): Add var_optional_filename.
1040 (add_setshow_optional_filename_cmd): Declare.
1041 * infcmd.c (notice_args_read): Use.
1042
1043 * symfile-mem.c (symbol_file_add_from_memory): Pass
1044 target_read_memory to bfd_elf_bfd_from_remote_memory.
1045 (do_target_read_memory): Delete.
1046
1047 2005-02-16 Mark Kettenis <kettenis@gnu.org>
1048
1049 * value.h (value_contents_equal): New prototype.
1050 * value.c (value_contents_equal): New function.
1051 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
1052 include <math.h>.
1053 (varobj_set_value): Initialize error to zero.
1054 (varobj_update): Rename error2 to error and initialize it to zero.
1055 Slightly change the wording of some comments.
1056 (my_value_equal): Reimplement using TRY_CATCH and
1057 value_contents_equal.
1058
1059 2005-02-18 Andrew Cagney <cagney@gnu.org>
1060
1061 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
1062 * command.h (add_setshow_integer_cmd): Declare.
1063 * cli/cli-cmds.c: Update.
1064
1065 Use add_setshow_uinteger_cmd through out.
1066 * printcmd.c, source.c, utils.c, valprint.c: Update.
1067
1068 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
1069 and gdbarch.c.
1070 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
1071 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
1072 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
1073 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
1074 * varobj.c, cli/cli-cmds.c: Update.
1075 * gdbarch.c, gdb-events.c: Regenerate.
1076
1077 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
1078 code adding set/show boolean commands.
1079 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
1080 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
1081 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
1082 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
1083 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
1084 * cli/cli-cmds.c: Update.
1085
1086 2005-02-17 Andrew Cagney <cagney@gnu.org>
1087
1088 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
1089 to filename_completer.
1090 * solib.c (_initialize_solib, reload_shared_libraries): Use
1091 add_setshow_filename_cmd.
1092 * serial.c (_initialize_serial): Ditto.
1093 * remote-utils.c (_initialize_sr_support): Ditto.
1094
1095 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
1096 * command.h (add_setshow_string_noescape_cmd): Declare.
1097 * wince.c (_initialize_wince): Use.
1098 * symfile.c (_initialize_symfile): Use.
1099 (set_ext_lang_command): Update declaration.
1100 * corefile.c (_initialize_core): Use.
1101
1102 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
1103 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1104 (add_setshow_filename_cmd, add_setshow_string_cmd)
1105 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
1106 fprint_setshow parameter.
1107 * command.h (fprint_setshow_ftype): Delete.
1108 (add_setshow_cmd_full, add_setshow_enum_cmd)
1109 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1110 (add_setshow_filename_cmd, add_setshow_string_cmd)
1111 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
1112 fprint_setshow parameter.
1113 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
1114 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
1115 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
1116 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
1117 * remote.c, target.c, cli/cli-logging.c: Update.
1118
1119 2005-02-16 Andrew Cagney <cagney@gnu.org>
1120
1121 Merge setshow print and show parameters.
1122 * command.h (show_value_ftype): Define.
1123 (deprecated_show_value_hack): Declare.
1124 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1125 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1126 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
1127 (add_setshow_zinteger_cmd): Change type of show_func to
1128 show_value_ftype.
1129 * cli/cli-decode.h (struct cmd_list_element): Replace
1130 fprint_setshow with show_value_func.
1131 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
1132 parameter. Set show_value_func. Do not set cmd_sfunc.
1133 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1134 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1135 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
1136 (add_setshow_zinteger_cmd): Update.
1137 * complaints.c (complaints_show_value): Replace
1138 fprint_setshow_complaints.
1139 (_initialize_complaints): Update.
1140 * mips-tdep.c (show_mask_address): Update.
1141 * arm-tdep.c (show_fp_model): Update.
1142 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
1143 instead of fprint_setshow. Use deprecated_show_value_hack.
1144 (deprecated_show_value_hack): New function.
1145 * remote.c (add_packet_config_cmd, show_remote_cmd):
1146 (show_remote_protocol_P_packet_cmd)
1147 (show_remote_protocol_P_packet_cmd)
1148 (show_remote_protocol_Z_access_wp_packet_cmd)
1149 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1150 (show_remote_protocol_Z_packet_cmd)
1151 (show_remote_protocol_Z_read_wp_packet_cmd)
1152 (show_remote_protocol_Z_software_bp_packet_cmd)
1153 (show_remote_protocol_Z_write_wp_packet_cmd)
1154 (show_remote_protocol_binary_download_cmd)
1155 (show_remote_protocol_p_packet_cmd)
1156 (show_remote_protocol_qPart_auxv_packet_cmd)
1157 (show_remote_protocol_qSymbol_packet_cmd)
1158 (show_remote_protocol_vcont_packet_cmd): Update.
1159
1160 2005-02-16 Mark Kettenis <kettenis@gnu.org>
1161
1162 * wrapper.h: Update copyright year. Properly wrap a few
1163 prototypes.
1164 (struct gdb_wrapper_arguments): Remove forward declaration.
1165 * wrapper.c: Update copyright year. Include "ui-out.h".
1166 (struct gdb_wrapper_arguments): Remove.
1167 (struct captured_value_struct_elt_args): Remove.
1168 (wrapper_parse_exp_1, wrap_evaluate_expression)
1169 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
1170 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
1171 (do_captured_value_struct_elf): Remove functions.
1172 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
1173 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
1174 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
1175 Re-implement using TRY_CATCH.
1176
1177 2005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
1178
1179 * remote-e7000.c: unuse TM_FILE defined macro.
1180 (e7000_fetch_registers)
1181 (e7000_store_registers)
1182 (e7000_wait): delete NUM_REALREGS.
1183 * remote-hms.c: move TM_FILE macro.
1184 (CCR_REGNO): move define from tm-h8300.h.
1185
1186 2005-02-15 Mark Kettenis <kettenis@gnu.org>
1187
1188 * amd64-linux-tdep.c: Update copyright year.
1189 (amd64_linux_sigtramp_start): Use sizeof operator instead of
1190 LINUX_SIGTRAMP_LEN.
1191
1192 2004-02-15 Joel Brobecker <brobecker@gnat.com>
1193
1194 From Paul Hilfinger <hilfinger@gnat.com>
1195 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
1196 SYMBOL_NATURAL_NAME to set type names.
1197
1198 2005-02-15 Andrew Cagney <cagney@gnu.org>
1199
1200 Mark up add_com, add_info and add_prefix_cmd.
1201 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
1202 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
1203 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
1204 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
1205 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
1206 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
1207 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
1208 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
1209 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
1210 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
1211 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
1212 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
1213 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
1214 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
1215 * tui/tui-stack.c, tui/tui-win.c: Update.
1216
1217 2005-02-14 Andrew Cagney <cagney@gnu.org>
1218
1219 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
1220 * config/h8300/tm-h8300.h: Delete file.
1221
1222 Mark up add_cmd.
1223 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
1224 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
1225 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
1226 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
1227 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
1228 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
1229 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
1230 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
1231 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
1232 * cli/cli-logging.c, tui/tui-regs.c: Update.
1233
1234 Mark up add_setshow functions, replace "PRINT:" comment prefix
1235 with "FIXME: i18n:".
1236 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
1237 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
1238 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
1239 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
1240 * target.c, cli/cli-logging.c: Update.
1241
1242 * utils.c (paddress): New function.
1243 * defs.h (paddress): Declare.
1244 * printcmd.c (deprecated_print_address_numeric): Rename
1245 print_address_numeric, call paddress.
1246 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
1247 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
1248 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
1249 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
1250 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
1251 * ada-valprint.c: Update.
1252
1253 2005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1254
1255 * MAINTAINERS: Add myself to "Write After Approval".
1256
1257 2005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
1258
1259 Restore h8300 support.
1260 * configure.tgt: Add h8300-*-*
1261 * h8300-tdep.c: New file. Rewrite new frame code.
1262 * config/h8300/h8300.mt: New file. Restored Rev 1.3
1263 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
1264
1265 * MAINTAINERS: Add myself to "Write After Approval".
1266
1267 2005-02-11 Andrew Cagney <cagney@gnu.org>
1268
1269 Mark up some of printf_filtered and printf_unfiltered.
1270 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
1271 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
1272 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
1273 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
1274 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
1275 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
1276 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
1277 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
1278 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
1279 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
1280 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
1281 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
1282 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
1283 * tui/tui-regs.c, tui/tui-win.c: Update.
1284
1285 Mark up error_no_arg, query, perror_with_name, complaint, and
1286 internal_error.
1287 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
1288 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
1289 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
1290 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
1291 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
1292 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
1293 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
1294 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
1295 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
1296 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
1297 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
1298 * interps.c, language.c, linespec.c, linux-nat.c: Update.
1299 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
1300 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
1301 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
1302 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
1303 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
1304 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
1305 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
1306 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
1307 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
1308 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
1309 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
1310 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
1311 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
1312 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
1313 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
1314 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
1315 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
1316 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
1317 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
1318 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
1319 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
1320 * tui/tui-file.c, tui/tui-interp.c: Update.
1321
1322 2005-02-10 Andrew Cagney <cagney@gnu.org>
1323
1324 Mark up all error and warning messages.
1325 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
1326 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
1327 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
1328 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
1329 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
1330 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
1331 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
1332 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
1333 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
1334 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
1335 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
1336 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
1337 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
1338 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
1339 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
1340 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
1341 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
1342 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
1343 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
1344 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
1345 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
1346 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
1347 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
1348 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
1349 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
1350 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
1351 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
1352 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
1353 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
1354 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
1355 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
1356 * remote-utils.c, remote-utils.h, remote.c: Update.
1357 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
1358 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
1359 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
1360 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
1361 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
1362 * somread.c, somsolib.c, source.c, stabsread.c: Update.
1363 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
1364 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
1365 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
1366 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
1367 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
1368 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
1369 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
1370 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
1371 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
1372 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
1373 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
1374 * tui/tui-win.c: Update.
1375
1376 2005-02-10 Ian Lance Taylor <ian@airs.com>
1377
1378 * MAINTAINERS: Update my e-mail address.
1379
1380 2005-02-10 Daniel Jacobowitz <dan@debian.org>
1381
1382 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
1383 PR exp/1821
1384 * cp-valprint.c: Include "language.h".
1385 (cp_print_value_fields): Pass the current language to
1386 fprintf_symbol_filtered.
1387 * Makefile.in (cp-valprint.o): Update dependencies.
1388
1389 2005-02-10 Andrew Cagney <cagney@gnu.org>
1390
1391 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
1392 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1393 (add_setshow_filename_cmd, add_setshow_string_cmd)
1394 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
1395 print string parameter with fprint_setshow function.
1396 * command.h (fprint_setshow_ftype): Define. Update declarations.
1397 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
1398 available, use that.
1399 * cli/cli-decode.h (struct cmd_list_element): Add field
1400 fprint_setshow.
1401 * complaints.c (fprint_setshow_complaints): New function.
1402 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
1403 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
1404 with NULL.
1405 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1406 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1407 * cris-tdep.c (_initialize_cris_tdep): Ditto.
1408 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1409 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1410 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1411 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
1412 * frame.c (_initialize_frame): Ditto.
1413 * target.c (initialize_targets): Ditto.
1414 * maint.c (_initialize_maint_cmds): Ditto.
1415 * observer.c (_initialize_observer): Ditto.
1416 * infcall.c (_initialize_infcall): Ditto.
1417 * breakpoint.c (_initialize_breakpoint): Ditto.
1418 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1419 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1420
1421 * cli/cli-setshow.c (do_setshow_command): Move code printing the
1422 value to the end of the function. Handle MI and non-MI output
1423 differently.
1424
1425 2005-02-09 Andrew Cagney <cagney@gnu.org>
1426
1427 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
1428 show_result parameters.
1429 * mips-tdep.c (_initialize_mips_tdep): Update calls.
1430 * command.h: Update declaration.
1431 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
1432 calls.
1433
1434 * NEWS: Mention removed commands.
1435 * m68hc11-tdep.c (show_regs): Delete, unused.
1436 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
1437 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
1438 eventdebug" commands.
1439 * gdb-events.c: Regenerate.
1440 * gdbarch.sh: Delete deprecated "set archdebug" and "show
1441 archdebug" commands.
1442 * gdbarch.c: Regenerate.
1443 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
1444 remotedebug" and "show remotedebug".
1445 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
1446 disassembly-flavor", "show arm disassembly-flavor", and
1447 "othernames" commands.
1448 (arm_othernames): Delete unused function.
1449
1450 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
1451 (convert_code_addr_to_desc_addr): Convert any function code
1452 address to the corresponding function's descriptor.
1453 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
1454 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
1455 writing, convert any function code address to the corresponding
1456 descriptor.
1457
1458 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
1459 * config/powerpc/linux.mt (TDEPFILES): Ditto.
1460 * config/pa/linux.mt (TDEPFILES): Ditto.
1461 * config/mips/linux.mt (TDEPFILES): Ditto.
1462 * config/m68k/linux.mt (TDEPFILES): Ditto.
1463 * config/m32r/linux.mt (TDEPFILES): Ditto.
1464 * config/ia64/linux.mt (TDEPFILES): Ditto.
1465 * config/arm/linux.mt (TDEPFILES): Ditto.
1466
1467 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
1468
1469 * symmisc.c: Include gdb_stat.h.
1470 (maintenance_print_msymbols): Use inode numbers to compare files.
1471
1472 2005-02-08 Andrew Cagney <cagney@gnu.org>
1473
1474 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
1475 (METHOD_PTR_TO_VOFFSET): Move from here ...
1476 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
1477 (METHOD_PTR_TO_VOFFSET): ... to here.
1478 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
1479 * Makefile.in: Update dependencies.
1480
1481 * exceptions.c: Do not include <setjmp.h>.
1482 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
1483 (catch_exception, catch_exceptions_with_msg, catch_errors)
1484 (catch_command_errors): Use TRY_CATCH.
1485 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
1486 (exceptions_state_mc_init): Rename catcher_init.
1487 (exceptions_state_mc): Rename catcher_state_machine.
1488 (exceptions_state_mc_action_iter)
1489 (exceptions_state_mc_action_iter_1): New functions.
1490 * exceptions.h: Include <setjmp.h>.
1491 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
1492 (EXCEPTIONS_SIGLONGJMP): Define.
1493 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
1494 (exceptions_state_mc_action_iter_1): Declare.
1495 (TRY_CATCH): Define.
1496
1497 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
1498 no longer needed.
1499
1500 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
1501 PT_FPSCR breakage.
1502
1503 * value.c (struct value): Move to here ...
1504 * value.h (struct value): ... from here. Copy comments to
1505 corresponding function declarations, re-order.
1506
1507 2005-02-07 Andrew Cagney <cagney@gnu.org>
1508
1509 * value.c (set_value_bitpos, set_value_bitsize): Define.
1510 * value.h (set_value_bitpos, set_value_bitsize): Declare.
1511 * ada-lang.c, valarith.c: Update.
1512
1513 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
1514 value_contents_writeable, include note that there are problems.
1515 * breakpoint.c, infcall.c: Use VALUE_LVAL.
1516
1517 * value.h (set_value_offset): Declare.
1518 * value.c (set_value_offset): Declare.
1519 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
1520 * findvar.c: Update.
1521
1522 * value.h (value_next): Declare.
1523 * value.c (value_next): Define.
1524 * breakpoint.c: Update.
1525
1526 * value.h (deprecated_set_value_modifiable)
1527 (deprecated_value_modifiable): Declare.
1528 * value.c (deprecated_set_value_modifiable): Define.
1529 (deprecated_value_modifiable): Define.
1530 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
1531
1532 * value.h (deprecated_set_value_type): Declare.
1533 * value.c (deprecated_set_value_type): Define.
1534 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
1535 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
1536 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
1537 * ax-gdb.c, tracepoint.c: Update.
1538
1539 * value.h (deprecated_value_lval_hack)
1540 (deprecated_value_address_hack)
1541 (deprecated_value_internalvar_hack)
1542 (deprecated_value_regnum_hack): Declare.
1543 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
1544 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
1545 * value.c (deprecated_value_lval_hack)
1546 (deprecated_value_address_hack)
1547 (deprecated_value_internalvar_hack)
1548 (deprecated_value_regnum_hack): Define.
1549
1550 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
1551 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
1552 * value.c (set_value_pointed_to_offset): Define
1553 (value_pointed_to_offset): Define.
1554 * valops.c: Update.
1555
1556 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
1557 (value_embedded_offset, set_value_embedded_offset): Declare.
1558 * value.c (value_embedded_offset): Define.
1559 (set_value_embedded_offset): Define.
1560 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
1561 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
1562 * cp-abi.h: Update.
1563
1564 * value.h (VALUE_LAZY): Delete
1565 (set_value_lazy): Declare.
1566 * value.c (set_value_lazy): Define.
1567 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
1568 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
1569
1570 2005-02-06 Andrew Cagney <cagney@gnu.org>
1571
1572 * value.h (VALUE_OPTIMIZED_OUT): Delete.
1573 (value_optimized_out, set_value_optimized_out): Declare.
1574 * value.c (set_value_optimized_out, value_optimized_out): Define.
1575 * valprint.c, findvar.c, dwarf2loc.c: Update.
1576
1577 * value.c (value_contents, value_contents_writeable): New
1578 functions.
1579 * value.h (VALUE_CONTENTS): Delete macro.
1580 (value_contents, value_contents_writeable): Declare.
1581 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
1582 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
1583 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
1584 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
1585 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
1586 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
1587 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
1588 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
1589 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
1590 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
1591 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
1592 * ada-valprint.c, ada-lang.c: Update.
1593
1594 2005-02-03 Andrew Cagney <cagney@gnu.org>
1595
1596 * utils.c (xzalloc): New function.
1597 * defs.h (XZALLOC): Use xzalloc.
1598 (xzalloc): Declare.
1599 * value.c (allocate_value): Allocate a zeroed buffer.
1600 * mdebugread.c (xzalloc): Delete.
1601
1602 2005-02-02 Andrew Cagney <cagney@gnu.org>
1603
1604 * value.h (value_lazy): Declare.
1605 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
1606 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
1607
1608 * value.h (VALUE_CONTENTS_ALL): Delete.
1609 (value_contents_all): Declare.
1610 * value.c (value_contents_all): New function.
1611 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
1612 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
1613
1614 * value.c (value_enclosing_type): New function.
1615 * value.h (VALUE_ENCLOSING_TYPE): Delete.
1616 (value_enclosing_type): Declare.
1617 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
1618 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
1619
1620 * value.c (value_contents_all_raw)
1621 (value_contents_raw): New functions.
1622 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
1623 (value_contents_raw, value_contents_all_raw): Declare functions.
1624 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
1625 * std-regs.c, valarith.c, valops.c, eval.c: Update.
1626 * tracepoint.c, findvar.c: Update.
1627
1628 2005-02-01 Orjan Friberg <orjanf@axis.com>
1629
1630 * regformats/reg-cris.dat: New file with register definitions for CRIS.
1631 * regformats/reg-crisv32.dat: Ditto for CRISv32.
1632
1633 2005-01-31 Andrew Cagney <cagney@gnu.org>
1634
1635 * configure: Regenerate to track ../gettext.m4.
1636
1637 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
1638
1639 * MAINTAINERS: Add myself to "Write After Approval".
1640
1641 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
1642 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
1643 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
1644
1645 2005-01-29 Mark Kettenis <kettenis@gnu.org>
1646
1647 * configure.ac: Remove extra check for ranlib.
1648 * configure: Regenerated.
1649
1650 2005-01-28 Andrew Cagney <cagney@gnu.org>
1651
1652 * language.h (struct language_defn): Make la_val_print's buffer
1653 parameter a const bfd_byte.
1654 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
1655 * ada-lang.c (ada_aligned_value_addr)
1656 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
1657 * valprint.c (val_print_array_elements): Update.
1658 * valprint.h (val_print_array_elements): Update.
1659 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
1660 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
1661 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
1662 (ada_val_print_1, ada_print_floating, printable_val_type)
1663 (print_record, val_print_packed_array_elements)
1664 (print_field_values, print_variant_part): Update.
1665 * c-lang.h (c_val_print, cp_print_value_fields): Update.
1666 * c-valprint.c (c_val_print): Update.
1667 * f-lang.h (f_val_print): Update.
1668 * f-valprint.c (f_val_print, f77_print_array_1)
1669 (f77_print_array): Update.
1670 * jv-lang.h (java_val_print): Update.
1671 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
1672 * language.c (unk_lang_val_print): Update.
1673 * m2-lang.h (m2_val_print): Update.
1674 * m2-valprint.c (m2_val_print): Update.
1675 * p-lang.h (pascal_val_print): Update.
1676 (pascal_object_print_value_fields): Update.
1677 * p-valprint.c (pascal_val_print)
1678 (pascal_object_print_value_fields, pascal_object_print_value)
1679 (pascal_object_print_value): Update.
1680 * scm-lang.h (scm_val_print): Update.
1681 * scm-valprint.c (scm_val_print): Update.
1682 * value.h (val_print): Update.
1683
1684 * p-lang.h (pascal_object_print_class_member)
1685 (pascal_object_print_class_method): Make buffer a const bfd_byte.
1686 * p-valprint.c (pascal_object_print_class_method)
1687 (pascal_object_print_class_method): Ditto.
1688
1689 * language.h (struct language_defn): Make la_printstr's buffer
1690 parameter a const bfd_byte.
1691 * p-lang.h (pascal_printstr): Update function to match.
1692 * ada-valprint.c (ada_printstr): Update function to match.
1693 * scm-lang.c (scm_printstr): Update function to match.
1694 * p-lang.c (pascal_printstr): Update function to match.
1695 * ada-lang.h (ada_printstr): Update function to match.
1696 * m2-lang.c (m2_printstr): Update function to match.
1697 * objc-lang.c (objc_printstr): Update function to match.
1698 * c-lang.h (c_printstr): Update function to match.
1699 * f-lang.c (f_printstr): Update function to match.
1700 * c-lang.c (c_printstr): Update function to match.
1701 * language.c (unk_lang_printstr): Update function to match.
1702
1703 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
1704 * valprint.h (val_print_type_code_int): Ditto.
1705
1706 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
1707
1708 * cp-valprint.c (cp_print_class_method)
1709 (cp_print_class_member): Make buffer a const bfd_byte.
1710 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
1711
1712 * ada-lang.c (value_from_contents_and_address)
1713 (to_record_with_fixed_variant_part)
1714 (value_tag_from_contents_and_address, ada_to_fixed_type)
1715 (to_fixed_variant_branch_type, to_fixed_record_type)
1716 (ada_template_to_fixed_record_type, cond_offset_host)
1717 (ada_template_to_fixed_record_type_1): Make buffer a const
1718 bfd_byte.
1719 * ada-lang.h (ada_template_to_fixed_record_type_1)
1720 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
1721
1722 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
1723
1724 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
1725 * printcmd.c (print_scalar_formatted): Update.
1726
1727 * value.h (value_bit_index, print_floating)
1728 (find_rt_vbase_offset): Make buffer a const bfd_byte.
1729 * valprint.c (print_floating): Update.
1730 * valarith.c (value_bit_index): Update.
1731 * valops.c (find_rt_vbase_offset): Update.
1732
1733 * valprint.h (print_octal_chars, print_char_chars)
1734 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
1735 buffer a const bfd_byte.
1736 * valprint.c (print_binary_chars, print_octal_chars)
1737 (print_decimal_chars, print_hex_chars, print_char_chars): Make
1738 "valaddr"buffer a const bfd_byte, ditto for local variables
1739 referencing that buffer.
1740
1741 * m2-valprint.c: Include "c-lang.h".
1742 (c_val_print): Delete extern declaration.
1743 * scm-valprint.c: Include "c-lang.h".
1744 (c_val_print): Delete extern declaration.
1745 Makefile.in: Update dependencies.
1746
1747 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
1748 bfd_byte.
1749 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
1750 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
1751 bfd_byte.
1752 * cp-abi.c (baseclass_offset): Update.
1753 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
1754
1755 * gnu-v2-abi.h: New file.
1756 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
1757 (gnuv2_baseclass_offset): Delete declaration.
1758 * hpacc-abi.c: Include "gnu-v2-abi.h".
1759 (gnuv2_baseclass_offset): Delete extern declaration.
1760 * Makefile.in: Update dependencies.
1761
1762 * doublest.c (floatformat_is_negative, floatformat_is_nan)
1763 (floatformat_mantissa, get_field): Make the buffer a const
1764 bfd_byte, simplify.
1765
1766 2005-01-27 Andrew Cagney <cagney@gnu.org>
1767
1768 * value.h (struct value): Change type of contents to bfd_byte.
1769 (VALUE_CONTENTS_RAW): Simplify.
1770
1771 * gdbarch.sh (integer_to_address): Change buf parameter to a const
1772 bfd_byte, make pure-multi-arch.
1773 * gdbarch.h, gdbarch.c: Regenerate.
1774 * mips-tdep.c (mips_integer_to_address): Update.
1775 * value.c (value_as_address): Update.
1776
1777 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
1778 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
1779 parameters const, change buf to a const bfd_byte.
1780 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
1781 parameters const.
1782
1783 * corefile.c (write_memory): Update, make a copy of the read-only
1784 buffer.
1785 * target.c (target_read_memory): Update.
1786 (target_write_memory): Update, make a copy of the read-only
1787 buffer.
1788 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
1789 const.
1790 * target.h (target_read_memory, target_write_memory): Change
1791 buffer type to bfd_byte; for write_memory, make it const.
1792 * symfile-mem.c (do_target_read_memory): New function.
1793 (symbol_file_add_from_memory): Pass do_target_read_memory to
1794 bfd_elf_bfd_from_remote_memory.
1795
1796 * value.h: Indent using gdb_indent.sh.
1797
1798 * configure: Regenerate to track ../gettext.m4 change.
1799
1800 2005-01-26 Andrew Cagney <cagney@gnu.org>
1801
1802 * rs6000-tdep.c: Include "reggroups.h".
1803 (rs6000_gdbarch_init): Set register_reggroup_p.
1804 (rs6000_register_reggroup_p): New function.
1805
1806 2005-01-26 Orjan Friberg <orjanf@axis.com>
1807
1808 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
1809 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
1810 CRISv32.
1811 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
1812 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
1813 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
1814 (crisv32_register_type, cris_special_register_name)
1815 (crisv32_register_name): New functions.
1816 (cris_spec_reg_applicable): Recognize more versions.
1817 (cris_register_name): Update with call to cris_special_register_name.
1818 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
1819 warning when unable to find step target.
1820 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
1821 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
1822 CRISv32.
1823 (fetch_core_registers): Update for CRISv32.
1824 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
1825 register_name, cannot_store_register, cannot_fetch_register,
1826 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
1827
1828 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
1829
1830 * interps.c (interpreter_exec_cmd): Use condition,
1831 e.reason < 0, to raise an error.
1832
1833 2005-01-25 Andrew Cagney <cagney@gnu.org>
1834
1835 * ppc-linux-tdep.c: Include "tramp-frame.h"
1836 (struct ppc_linux_sigtramp_cache)
1837 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
1838 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
1839 (ppc_linux_sigtramp_cache): Delete.
1840 (ppc32_linux_sigaction_cache_init)
1841 (ppc64_linux_sigaction_cache_init)
1842 (ppc32_linux_sighandler_cache_init)
1843 (ppc64_linux_sighandler_cache_init)
1844 (ppc32_linux_sigaction_tramp_frame)
1845 (ppc64_linux_sigaction_tramp_frame)
1846 (ppc32_linux_sighandler_tramp_frame)
1847 (ppc64_linux_sighandler_tramp_frame)
1848 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
1849 64-bit, sigaction and siginfo tramp-frame unwinders.
1850
1851 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
1852 long_double_bit to 8.
1853
1854 2005-01-24 Andrew Cagney <cagney@gnu.org>
1855
1856 * infrun.c (handle_inferior_event): Handle back-to-back and nested
1857 signals where the step_resume_breakpoint may have already been
1858 inserted.
1859
1860 2005-01-24 Andrew Cagney <cagney@gnu.org>
1861
1862 * configure: Regenerate, ../gettext.m4 was updated.
1863
1864 2005-01-23 Mark Kettenis <kettenis@gnu.org>
1865
1866 * NEWS: Mention new BSD user-level threads support.
1867
1868 * i386obsd-tdep.c: Update copyright year. Include
1869 "bsd-uthread.h".
1870 (i386obsd_uthread_reg_offset): New variable.
1871 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
1872 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
1873 functions.
1874 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
1875 * Makefile.in (i386obsd-tdep.o): Update dependencies.
1876 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
1877
1878 2005-01-23 Christopher Faylor <cgf@timesys.com>
1879
1880 * win32-nat.c: Update copyright year.
1881 (child_init_thread_list): Set thread linked list point to NULL so that
1882 it won't be reused after clearing.
1883
1884 2005-01-21 Mark Kettenis <kettenis@gnu.org>
1885
1886 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
1887 undefs.
1888 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
1889 thread' has a td_pcb member and whether `struct reg' has r_fs and
1890 r_gs members.
1891 * configure, config.in: Regenerate.
1892
1893 2005-01-21 Mark Kettenis <kettenis@gnu.org>
1894
1895 * configure.ac: Remove ia64-*-aix* junk.
1896 * configure: Regenerate.
1897
1898 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
1899 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
1900 is necessary.
1901 * configure, config.in: Regenerate.
1902 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
1903 BFD_NEED_DECLARATION. Never provide a prototype for
1904 caninicalize_file_name.
1905 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
1906 BFD_NEED_DECLARATION.
1907
1908 * configure.ac (targ_archs): Use standard autoconf check for
1909 "struct stat.st_blocks" instead of rolling our own.
1910 * configure: Regenerated.
1911 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
1912 * config.in: Regenerated.
1913
1914 2005-01-21 Mark Kettenis <kettenis@gnu.org>
1915
1916 * configure.ac: Modernize checks for `long long' and `long double'
1917 support.
1918 * configure: Regenerated.
1919 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
1920 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
1921 * config.in: Regenerated.
1922
1923 2005-01-20 Mark Kettenis <kettenis@gnu.org>
1924
1925 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
1926 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
1927 * configure.ac: Remove checks for HP-UX save_state structure.
1928 * configure: Regenerated.
1929
1930 2005-01-19 Andrew Cagney <cagney@gnu.org>
1931
1932 * utils.c (quit): Simplify, call fatal.
1933 * exceptions.c: Include "serial.h"
1934 (print_flush): Mimic flush code found in utils.c:quit.
1935 * Makefile.in: Update dependencies.
1936
1937 2005-01-19 Jim Blandy <jimb@redhat.com>
1938
1939 * configure.tgt: Set build_rdi_share to "yes" on those targets
1940 that use that debugging protocol.
1941 Set build_nlm to yes to build NLM stub for Netware targets.
1942 * configure.ac: If build_rdi_share is "yes", then configure the
1943 rdi-share subdirectory.
1944 If build_nlm is "yes", the configure the "nlm" subdirectory.
1945 * configure: Regenerated.
1946
1947 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
1948 autoconf 2.59 and automake 1.9.3.
1949
1950 2005-01-19 Andrew Cagney <cagney@gnu.org>
1951
1952 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
1953 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
1954 * utils.c (internal_verror, quit): Update.
1955 * remote-sds.c (interrupt_query): Update.
1956 * remote-mips.c (mips_error, mips_kill): Update.
1957 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
1958 * remote.c (interrupt_query): Update.
1959 * ocd.c (interrupt_query): Update.
1960 * nto-procfs.c (interrupt_query): Update.
1961 * monitor.c (monitor_interrupt_query): Update.
1962 * breakpoint.c (break_command_1): Update.
1963
1964 * infrun.c: (resume, proceed, wait_for_inferior)
1965 (handle_inferior_event, stop_stepping)
1966 (prepare_to_wait): Write debug output to gdb_stdlog.
1967
1968 2005-01-19 Mark Kettenis <kettenis@gnu.org>
1969
1970 * inf-ptrace.c (inf_ptrace_prepare_to_store)
1971 (inf_ptrace_post_startup_inferior)
1972 (inf_ptrace_acknowledge_created_inferior)
1973 (inf_ptrace_insert_fork_catchpoint)
1974 (inf_ptrace_remove_fork_catchpoint)
1975 (inf_ptrace_insert_vfork_catchpoint):
1976 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
1977 (inf_ptrace_insert_exec_catchpoint)
1978 (inf_ptrace_remove_exec_catchpoint): Remove functions.
1979 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
1980 (inf_ptrace_target): Don't set to_prepare_to_store,
1981 to_post_startup_inferior, to_acknowledge_created_inferior,
1982 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
1983 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1984 to_follow_fork, to_insert_exec_catchpoint,
1985 to_remove_exec_catchpoint.
1986
1987 2005-01-18 Andrew Cagney <cagney@gnu.org>
1988
1989 * target.h (struct target_ops): Change return type of
1990 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
1991 to_insert_exec_catchpoint to void.
1992 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
1993 (child_insert_exec_catchpoint): Change return type to void.
1994 * target.c (update_current_target): Update.
1995 (debug_to_insert_fork_catchpoint)
1996 (debug_to_insert_vfork_catchpoint)
1997 (debug_to_insert_exec_catchpoint): Update.
1998 * inf-child.c (inf_child_insert_fork_catchpoint)
1999 (inf_child_insert_vfork_catchpoint)
2000 (inf_child_insert_exec_catchpoint): Update.
2001 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
2002 * linux-nat.c (child_insert_fork_catchpoint)
2003 (child_insert_vfork_catchpoint)
2004 (child_insert_exec_catchpoint): Update.
2005 * inftarg.c (child_insert_fork_catchpoint)
2006 (child_insert_vfork_catchpoint,)
2007 (child_insert_exec_catchpoint): Update.
2008
2009 * remote.c (remote_open_1): Use throw_exception.
2010
2011 2005-01-17 Michael Snyder <msnyder@redhat.com>
2012
2013 * mips-linux-tdep.c: Whitespace tweaks.
2014
2015 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
2016
2017 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
2018
2019 2005-01-17 Andrew Cagney <cagney@gnu.org>
2020
2021 * top.h (source_error, source_pre_error): Delete declaration.
2022 * cli/cli-script.c (source_error_allocated, source_error): Delete.
2023 (script_from_file, source_cleanup_lines): Do not manipulate
2024 source_error_allocated, error_pre_print and source_error.
2025 (struct source_cleanup_lines_args): Delete fields old_pre_error,
2026 and old_error_pre_print.
2027 * top.c (source_error_allocated, source_error)
2028 (source_pre_error): Delete.
2029 (command_line_input): Do not set error_pre_print.
2030 * event-top.c (command_line_handler): Do not set error_pre_print.
2031
2032 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
2033
2034 * MAINTAINERS: Update my email address.
2035
2036 2005-01-16 Mark Kettenis <kettenis@gnu.org>
2037
2038 * configure.ac: Provide prerequisite headers when checking
2039 <term.h>.
2040 * configure: Regenerate.
2041
2042 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
2043 and "bsd-uthread.h".
2044 (amd64fbsd_jmp_buf_reg_offset): New variable.
2045 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
2046 functions.
2047 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
2048 * i386fbsd-tdep.c: Fix typo.
2049 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
2050 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
2051
2052 2005-01-16 Andrew Cagney <cagney@gnu.org>
2053
2054 * cli/cli-script.c: Include "exceptions.h".
2055 (struct wrapped_read_command_file_args): Define.
2056 (wrapped_read_command_file): New function.
2057 (script_from_file): Replace direct call to read_command_file by
2058 one wrapped by an exception handler.
2059 * exceptions.c (throw_it): Free the old message after creating the
2060 new.
2061 * Makefile.in: Update dependencies.
2062
2063 2005-01-16 Mark Kettenis <kettenis@gnu.org>
2064
2065 * sparc64fbsd-tdep.c: Update copyright year.
2066 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
2067 functions.
2068 (sparc64fbsd_init_abi): Create register sets with collect
2069 functions.
2070
2071 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
2072 (_initialize_sparc64fbsd_nat): Add some extra features to the
2073 generic SPARC target.
2074 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2075 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
2076 (NAT_FILE): Set to solib.h.
2077 * config/sparc/nm-fbsd.h: Remove file.
2078
2079 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
2080
2081 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
2082
2083 2005-01-16 Andrew Cagney <cagney@gnu.org>
2084
2085 * exceptions.c (struct catcher): Delete saved_error_pre_print and
2086 saved_quit_pre_print.
2087 (catcher_init): Delete parameter errstring, do not override the
2088 pre_print strings.
2089 (catcher_pop): Do not restore the pre_print strings.
2090 (catch_exception, catch_exceptions_with_msg, catch_errors)
2091 (catch_command_errors): Update catch_init calls.
2092
2093 2005-01-16 Mark Kettenis <kettenis@gnu.org>
2094
2095 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2096 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
2097
2098 2005-01-15 Andrew Cagney <cagney@gnu.org>
2099
2100 * acinclude.m4: Include ../bfd/bfd.m4 instead of
2101 ../bfd/acinclude.m4. Include ../gettext.m4.
2102 * aclocal.m4, configure: Re-generate.
2103
2104 * exceptions.c (do_captured_command)
2105 (struct captured_command_args): Delete.
2106 (catch_command_errors): Simplify by inlining call to catch_errors.
2107
2108 * exceptions.c (struct catcher): Delete field print_message.
2109 (catcher_init): Delete print_message parameter.
2110 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
2111 (throw_it): Delete prefix parameter.
2112 (throw_verror, throw_vfatal, throw_error): Update.
2113
2114 2005-01-14 Andrew Cagney <cagney@gnu.org>
2115
2116 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
2117 (throw_reason): Leave the exception's message field blank.
2118 (throw_it): New function, create the exception and throw it.
2119 (throw_verror, throw_vfatal, throw_error): Call throw_it.
2120 (print_any_exception): New function.
2121 (catch_errors, catch_exceptions_with_msg): Call
2122 print_any_exception.
2123 (throw_exception): Move code calling annotate_error and
2124 annotate_quit from here ...
2125 (print_exception): ... to here.
2126
2127 * exceptions.c (exception_fprintf, exception_print): Move printing
2128 of \n from here ...
2129 (print_exception): ... to here.
2130 (print_flush): New function.
2131 (exception_print, exception_fprintf): Replace duplicated flush and
2132 wrap code with call to print_flush.
2133 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
2134 and print_exception.
2135 (do_write): Delete.
2136
2137 * remote-sds.c (interrupt_query): Call throw_reason instead of
2138 throw_exception.
2139 * remote-mips.c (mips_error, mips_kill): Ditto
2140 * ocd.c (interrupt_query): Ditto.
2141 * nto-procfs.c (interrupt_query): Ditto.
2142 * monitor.c (monitor_interrupt_query): Ditto.
2143
2144 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
2145
2146 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
2147
2148 2005-01-14 Andrew Cagney <cagney@gnu.org>
2149
2150 * exceptions.h (catch_exceptions): Delete errstring parameter.
2151 (catch_exceptions_with_msg): Ditto.
2152 * exceptions.c (catch_exceptions_with_msg): Update.
2153 (catch_exceptions): Update.
2154 * symfile-mem.c (add_vsyscall_page): Update.
2155 * frame.c (get_current_frame): Update.
2156 * wrapper.c (gdb_value_struct_elt): Update.
2157 * exceptions.c (catch_exceptions): Update.
2158 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
2159 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
2160 * remote-fileio.c (remote_fileio_request): Update.
2161
2162 * exceptions.h (exception_fprintf): Declare.
2163 (exception_print): Drop pre_print parameter.
2164 * mi/mi-main.c (mi_execute_command): Update exception_print call.
2165 * cli/cli-interp.c (safe_execute_command): Update exception_print
2166 call.
2167 * remote.c (remote_open_1): Instead of passing an error prefix to
2168 catch_exceptions, use catch_exceptions and exception_fprintf.
2169 (remote_start_remote): Change return type to void.
2170 * breakpoint.c (insert_bp_location): Instead of passing an error
2171 prefix to catch_exceptions, use catch_exceptions and
2172 exception_fprintf.
2173 (insert_catchpoint): Change return type to void.
2174 (break_command_1): Update exception_print call.
2175 * exceptions.c (exception_fprintf): New function.
2176 (print_exception): New function.
2177 (exception_print): Use print_exception.
2178
2179 * utils.c (error_output_message): Delete function.
2180 * defs.h (error_output_message): Delete declaration.
2181
2182 * linespec.c (symtab_from_filename, decode_variable): Use
2183 throw_error instead of error_silent.
2184 * breakpoint.c (do_captured_parse_breakpoint): Change return type
2185 to void.
2186 (break_command_1): Use catch_exception and check the error return
2187 status.
2188 * exceptions.c (throw_error): New function.
2189 (throw_vsilent): Delete function.
2190 * exceptions.h (throw_error): Declare.
2191 (throw_vsilent): Delete declaration.
2192 * utils.c (error_silent): Delete function.
2193 * defs.h (error_silent): Delete declaration.
2194
2195 * mi/mi-main.c (mi_execute_command): Print the exception.
2196 * cli/cli-interp.c (safe_execute_command): Print the exception.
2197 * exceptions.h (exception_print): Declare.
2198 * exceptions.c (struct catcher): Add field print_message.
2199 (catcher_init): Add parameter print_message, store in the catcher
2200 struct.
2201 (print_and_throw): Only print the message when print_message.
2202 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
2203 catcher_init.
2204 (catch_exception): Pass print_message=0 to catcher_init.
2205
2206 * varobj.c (varobj_create): Add missing \n.
2207
2208 2005-01-13 Michael Snyder <msnyder@redhat.com>
2209
2210 * cli/cli-decode.h: Whitespace tweaks.
2211 * wince.c: Whitespace tweaks.
2212 * uw-thread.c: Whitespace tweaks.
2213 * utils.c: Whitespace tweaks.
2214 * tracepoint.[ch]: Whitespace tweaks.
2215 * solist.h: Whitespace tweaks.
2216
2217 2005-01-13 Andrew Cagney <cagney@gnu.org>
2218
2219 * exceptions.h (struct exception): Make message const.
2220 * mi/mi-main.c (mi_execute_command): Pass result.message directly
2221 to fputstr_unfiltered.
2222
2223 2005-01-13 Michael Snyder <msnyder@redhat.com>
2224
2225 * stack.c: Whitespace tweaks.
2226 * somsolib.[ch]: Whitespace tweaks.
2227 * solib-aix.c: Whitespace tweaks.
2228 * solib.c: Whitespace tweaks.
2229 * solib-frv.c: Whitespace tweaks.
2230 * solib.h: Whitespace tweaks.
2231 * solib-irix.c: Whitespace tweaks.
2232 * solib-som.c: Whitespace tweaks.
2233 * solib-sunos.c: Whitespace tweaks.
2234 * solib-svr4.[ch]: Whitespace tweaks.
2235 * ser-tcp.c: Whitespace tweaks.
2236 * ser-unix.c: Whitespace tweaks.
2237 * serial.h: Whitespace tweaks.
2238 * scm-valprint.c: Whitespace tweaks.
2239 * rs6000-tdep.c: Whitespace tweaks.
2240 * rs6000-nat.c: Whitespace tweaks.
2241 * remote.c: Whitespace tweaks.
2242
2243 2005-01-13 Andrew Cagney <cagney@gnu.org>
2244
2245 * defs.h (error_last_message, error_init): Delete declaration.
2246 * utils.c (fatal, vfatal): Call throw_vfatal.
2247 (error, verror): Call throw_verror;
2248 (do_write, error_stream_1): Delete function.
2249 (error_stream): Simplify, call error.
2250 (error_last_message, error_init, gdb_lasterr): Delete.
2251 (error_silent): Simplify, call throw_vsilent.
2252 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
2253 * main.c (captured_main): Delete call to error_init.
2254 * exceptions.c (throw_verror, throw_verror)
2255 (throw_vsilent): New functions.
2256 (do_write, print_and_throw): New functions.
2257 (last_message): New global.
2258 (throw_reason): Replace error_last_message with last_message.
2259 (catch_exceptions_with_msg): Dup the message.
2260 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
2261 Declare.
2262
2263 2005-01-13 Michael Snyder <msnyder@redhat.com>
2264
2265 * remote-st.c: Whitespace tweaks.
2266 * remote-sim.c: Whitespace tweaks.
2267 * remote-mips.c: Whitespace tweaks.
2268 * pa64solib.[ch]: Whitespace tweaks.
2269 * mdebugread.c: Whitespace tweaks.
2270 * main.c: Whitespace tweaks.
2271 * interps.c: Whitespace tweaks.
2272 * infrun.c: Whitespace tweaks.
2273 * infcmd.c: Whitespace tweaks.
2274 * hpux-thread.c: Whitespace tweaks.
2275 * hppa-hpux-tdep.c: Whitespace tweaks.
2276 * gdbcore.h: Whitespace tweaks.
2277 * gdbcmd.h: Whitespace tweaks.
2278 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
2279 * corefile.c: Whitespace tweaks.
2280 * completer.c: Whitespace tweaks.
2281 * coff-solib.c: Whitespace tweaks.
2282 * coff-solib.h: Whitespace tweaks.
2283 * cli-out.c: Whitespace tweaks.
2284 * breakpoint.c: Whitespace tweaks.
2285 * cli/cli-interp.c: Tweak comments, per coding standard.
2286
2287 2005-01-13 Andrew Cagney <cagney@gnu.org>
2288
2289 * breakpoint.c (gdb_breakpoint_query): Update, use
2290 catch_exceptions_with_msg.
2291 (do_captured_breakpoint): Add uiout parameter.
2292 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
2293 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
2294 gdb_thread_select. Return MI_CMD_ERROR instead of
2295 MI_CMD_CAUGHT_ERROR.
2296 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
2297 (enum captured_mi_execute_command_actions): Delete
2298 EXECUTE_COMMAND_DISPLAY_ERROR.
2299 (captured_mi_execute_command): Delete code handling
2300 MI_CMD_CAUGHT_ERROR.
2301 (mi_execute_command): Don't check for
2302 EXECUTE_COMMAND_DISPLAY_ERROR.
2303 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
2304 gdb_breakpoint_query.
2305 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
2306 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
2307 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
2308 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
2309 parameter.
2310 * thread.c (thread_command): Update call.
2311 (gdb_thread_select, gdb_list_thread_ids): Update, call
2312 catch_exceptions_with_msg.
2313
2314 * mi/mi-main.c (mi_execute_command): Use catch_exception,
2315 eliminate call to error_last_message.
2316 (captured_mi_execute_command): Change return type to void.
2317
2318 2005-01-12 Andrew Cagney <cagney@gnu.org>
2319
2320 * exceptions.c (exception_none): New variable.
2321 * Makefile.in: Update dependencies.
2322 * interps.c: Include "exceptions.h".
2323 (interpreter_exec_cmd, interp_exec): Update to return "struct
2324 exception"
2325 * exceptions.h (no_exception): Declare.
2326 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
2327 * mi/mi-interp.c: Include "exceptions.h".
2328 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
2329 'struct exception".
2330 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
2331 (do_captured_execute_command): Update to use catch_exception.
2332 * interps.h: Include "exceptions.h".
2333 (interp_exec_ftype, interp_exec): Return "struct exception".
2334
2335 * exceptions.h (throw_reason): Rename throw_exception.
2336 (enum errors, struct exception): Define.
2337 (catch_exception_ftype): Define.
2338 (catch_exception, throw_exception): Declare.
2339 * exceptions.c (throw_exception): Rewrite.
2340 (throw_reason): New function.
2341 (struct catcher, catcher_state_machine): Replace "reason" with
2342 "exception", delete "gdberrmsg".
2343 (catch_exception): New function.
2344 (catcher_init): Replace "gdberrmsg" parameter with "exception".
2345 (catch_errors, catch_exceptions_with_msg): Re-implement passing
2346 exception to catcher_init.
2347 * utils.c (error_silent, error_stream_1): Use throw_reason.
2348 (internal_verror, quit): Ditto.
2349 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
2350 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
2351 * remote.c (remote_open_1, interrupt_query): Ditto.
2352
2353 2005-01-12 Mark Kettenis <kettenis@gnu.org>
2354
2355 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
2356 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
2357 (i386fbsd_jmp_buf_reg_offset): New variable.
2358 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
2359 functions.
2360 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
2361 * Makefile.in (i386fbsd-tdep.o): Update dependency.
2362 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
2363
2364 * bsd-uthread.h: New file.
2365 * bsd-uthread.c: New file.
2366 * Makefile.in (bsd_uthread_h): New variable.
2367 (ALLDEPFILES): Add bsd-uthread.c.
2368 (bsd-uthread.o): New dependency.
2369
2370 * solib.h Update copyright year.
2371 (struct so_list): Forward declaration.
2372 (solib_read_symbols): New prototype.
2373 * solib.c (solib_read_symbols): New function.
2374 (solib_add): Call solib_read_symbols to read in symbols.
2375 (update_solib_list): Call observer_notify_solib_loaded.
2376
2377 * i386bsd-nat.c: Update copyright year. Don't include
2378 <sys/param.h> and <sys/user.h>.
2379 (register_u_addr, kernel_u_size): Remove functions.
2380 * config/i386/obsd.mh (NAT_FILE): Remove.
2381 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
2382 * config/i386/nm-obsd.h: Remove file.
2383
2384 2005-01-12 Andrew Cagney <cagney@gnu.org>
2385
2386 * exceptions.c: Include "gdb_string.h".
2387 (enum catcher_state, struct catcher): Define.
2388 (current_catcher): New global, replaces catch_return;
2389 (catch_return): Delete.
2390 (throw_exception): Use current_catcher->buf;
2391 (catcher_init, catcher_pop, catcher_state_machine): New functions.
2392 (catcher): Delete.
2393 (struct catch_errors_args): Delete.
2394 (do_catch_errors): Delete.
2395 (catch_exceptions): Replace body with call to
2396 catch_exceptions_with_msg.
2397 (catcher): Delete.
2398 (catch_exceptions_with_msg, catch_errors): Re-implement using
2399 catcher_state_machine.
2400
2401 * exceptions.h (enum return_reason, RETURN_MASK)
2402 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
2403 (return_mask, throw_exception, catch_exceptions_ftype)
2404 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
2405 (catch_command_errors_ftype, catch_command_errors): Move to
2406 exceptions.h.
2407 * exceptions.c, exceptions.h: New files.
2408 * top.c: Do not include <setjmp.h>.
2409 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
2410 (throw_exception, catcher, catch_exceptions)
2411 (catch_exceptions_with_msg, struct catch_errors_args)
2412 (do_catch_errors, catch_errors, struct captured_command_args)
2413 (do_captured_command, catch_command_errors): Move to exceptions.c.
2414 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
2415 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
2416 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
2417 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
2418 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
2419 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
2420 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
2421 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
2422 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
2423 * ada-valprint.c, ada-lang.c: Ditto.
2424 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
2425 exceptions.o. Update all dependencies.
2426
2427 2005-01-11 Mark Kettenis <kettenis@gnu.org>
2428
2429 * config/i386/nm-fbsd.h: Update copyright year.
2430 Don't include "config/nm-bsd.h".
2431 (KERNEL_U_SIZE): Remove macro.
2432 (kernel_u_size): Remove prototype.
2433
2434 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
2435 * config/vax/nm-nbsdaout.h: Remove file.
2436
2437 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
2438
2439 * MAINTAINERS: Remove self from sh/sh64 maintainership.
2440
2441 2005-01-10 Andrew Cagney <cagney@gnu.org>
2442
2443 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
2444 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
2445 maintainer.
2446
2447 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
2448 changes to CRIS.
2449
2450 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
2451 COMMIT means can approve).
2452
2453 2005-01-10 Mark Kettenis <kettenis@gnu.org>
2454
2455 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
2456 (vax_register_u_offset): Make statuc.
2457 (_initialize_vax_nat): Construct and add target vector.
2458 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
2459 inftarg.o. Add inf-ptrace.o.
2460 * Makefile.in (vax-nat.o): Update dependencies.
2461
2462 * inf-ptrace.h: Update copyright year. Sync comment with
2463 inf-ptrace.c.
2464 (inf_ptrace_trad_target): New prototype.
2465 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
2466 "gdb_assert.h"
2467 (inf_ptrace_target): Add comment.
2468 (inf_ptrace+register_u_offset): New variable.
2469 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
2470 (inf_ptrace_store_register, inf_ptrace_store_registers)
2471 (inf_ptrace_trad_target): New functions.
2472 * Makefile.in (inf-ptrace.o): Update dependencies.
2473
2474 2005-01-09 Mark Kettenis <kettenis@gnu.org>
2475
2476 * configure.ac: Provide prerequisite headers when checking
2477 <link.h>, <sys/proc.h> and <sys/user.h>.
2478 * configure: Regenerate.
2479
2480 2005-01-08 Mark Kettenis <kettenis@gnu.org>
2481
2482 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
2483 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
2484
2485 2005-01-07 Mark Kettenis <kettenis@gnu.org>
2486
2487 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
2488 Don't include "tm-ia64.h".
2489 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
2490 * config/ia64/tm-ia64.h: Remove. Move contents ...
2491 * ia64-tdep.h: ... here. Update copyright year.
2492
2493 2005-01-07 Andrew Cagney <cagney@gnu.org>
2494
2495 * configure.ac: Rename configure.in, require autoconf 2.59.
2496 * configure: Re-generate.
2497
2498 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
2499 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
2500 to configdirs.
2501
2502 * configure.in: Replace configdirs with multiple references to
2503 AC_CONFIG_SUBDIRS.
2504 * configure: Re-generate.
2505
2506 2005-01-05 Andreas Schwab <schwab@suse.de>
2507
2508 * ia64-tdep.c: Include "osabi.h".
2509 (native_find_global_pointer): Delete.
2510 (ia64_find_global_pointer): Renamed from
2511 generic_elf_find_global_pointer.
2512 (FIND_GLOBAL_POINTER): Delete. Change all users to call
2513 ia64_find_global_pointer instead.
2514 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
2515 to ia64_linux_sigcontext_register_address and
2516 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
2517 (_initialize_ia64_tdep): Call gdbarch_register instead of
2518 deprecated register_gdbarch_init.
2519 (struct gdbarch_tdep): Remove find_global_pointer field and move
2520 to ...
2521 * ia64-tdep.h (struct gdbarch_tdep): ... here.
2522 (ia64_linux_sigcontext_register_address): Remove declaration.
2523 (ia64_linux_getunwind_table): Likewise.
2524 (ia64_linux_write_pc): Likewise.
2525 * ia64-linux-tdep.c: Include "osabi.h".
2526 (ia64_linux_sigcontext_register_address): Make static.
2527 (ia64_linux_write_pc): Likewise.
2528 (ia64_linux_init_abi): New.
2529 (_initialize_ia64_linux_tdep): New.
2530 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
2531 $(osabi_h).
2532
2533 2005-01-05 Kevin Buettner <kevinb@redhat.com>
2534
2535 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
2536 functions in ia64-aix-tdep.c.
2537 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
2538 function defined in ia64-aix-tdep.c.
2539 * ia64-aix-tdep.c: Remove file.
2540 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
2541 this list.
2542 * Makefile.in (ia64-aix-tdep.o): Delete.
2543
2544 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2545
2546 Committed by Andrew Cagney.
2547 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
2548 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
2549 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
2550 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
2551 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
2552 * aix-thread.c (_initialize_aix_thread): Get rid of the
2553 deprecated_add_show_from_set call.
2554 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2555 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2556 * command.h (add_setshow_enum_cmd): Add arguments for returning
2557 new list elements.
2558 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
2559 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
2560 add_setshow_enum_cmd.
2561
2562 2005-01-04 Mark Kettenis <kettenis@gnu.org>
2563
2564 * configure.host (ia64-*-aix*): Remove.
2565 * configure.tgt (ia64-*-aix*): Remove.
2566 * config/ia64/aix.mh: Remove file.
2567 * config/ia64/aix.mt: Remove file.
2568 * config/ia64/tm-aix.h: Remove file.
2569 * ia64-aix-nat.c: Remove file.
2570 * Makefile.in (ia64-aix-nat.o): Remove dependency.
2571
2572 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
2573 Add back inf-ptrace.o.
2574
2575 2005-01-04 Andrew Cagney <cagney@gnu.org>
2576
2577 * version.in: Change format from 6.3.50_2005-01-04-cvs to
2578 6.3.50.20050104-cvs.
2579
2580 2005-01-04 Andreas Schwab <schwab@suse.de>
2581
2582 * breakpoint.c (break_command_1): Always free err_msg before
2583 returning when an exception was caught.
2584
2585 2005-01-01 Joel Brobecker <brobecker@gnat.com>
2586
2587 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
2588 in register number for addil instruction.
2589
2590 For older changes see ChangeLog-2004.
2591 \f
2592 Local Variables:
2593 mode: change-log
2594 left-margin: 8
2595 fill-column: 74
2596 version-control: never
2597 End: