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