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