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