2005-05-27 Orjan Friberg <orjanf@axis.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e2a2a3e8
OF
12005-05-27 Orjan Friberg <orjanf@axis.com>
2
3 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
4 (cris_frame_prev_register, cris_sigtramp_frame_prev_register)
5 (cris_return_value): Use gdb_byte for byte buffers.
6 (struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
7
79524e05
CD
82005-05-26 Chris Demetriou <cgd@netbsd.org>
9
10 * MAINTAINERS (Write After Approval): Remove myself.
11
c68a6671
AC
122005-05-27 Andrew Cagney <cagney@gnu.org>
13
14 * jv-lang.c (get_java_utf8_name): Add cast.
15 (evaluate_subexp_java): Use gdb_byte for buffers.
16 * jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
17 for buffers.
18 * scm-lang.c (scm_get_field, scm_unpack)
19 (scm_evaluate_string): Use gdb_byte for buffers.
20 (scm_lookup_name): Add cast.
21 * scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
22 gdb_byte for buffers.
23 * tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
24 * tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
25 * value.h (check_field): Change "name" to a string.
26 * valops.c (check_field): Change "name" to a string.
27 * scm-lang.h (scm_parse): Use gdb_byte for buffers.
28 * source.c (get_current_source_symtab_and_line)
29 (set_current_source_symtab_and_line): Initialize all fields of sal
30 structures.
31 * cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
32
47b667de
AC
332005-05-26 Andrew Cagney <cagney@gnu.org>
34
35 * command.h (add_setshow_integer_cmd): Make VAR an integer.
36 * cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
37 * valops.c (value_string): Add a cast.
38 * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
39 * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
40 byte buffers.
41 * target.h (struct target_ops): For to_insert_hw_breakpoint and
42 to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
43 * breakpoint.h (struct bp_location): Make shadow_contents a
44 gdb_byte buffer.
45 * cli/cli-setshow.c (do_setshow_command): Fix cast.
46 * cli/cli-dump.c (restore_section_callback)
47 (restore_binary_file): Use gdb_byte for byte buffers.
48 * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
49 (ps_xfer_memory): Use gdb_byte for byte buffers.
50 * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
51 for string buffers.
52 * ser-tcp.c (net_open): Make len a socklen_t.
53
50fd1280
AC
542005-05-24 Andrew Cagney <cagney@gnu.org>
55
56 * rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte
57 for byte buffers.
58 (rs6000_fetch_pointer_argument): Use get_frame_register_unsigned.
59 (rs6000_software_single_step, sstep_breaks, skip_prologue)
60 (rs6000_push_dummy_call, rs6000_push_dummy_call)
61 (rs6000_push_dummy_call, rs6000_push_dummy_call)
62 (rs6000_register_to_value, e500_pseudo_register_read)
63 (rs6000_store_return_value, e500_pseudo_register_write)
64 (rs6000_frame_prev_register, rs6000_extract_return_value): Ditto.
65 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
66 (ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value)
67 (do_ppc_sysv_return_value, ppc_sysv_abi_return_value)
68 (ppc_sysv_abi_broken_return_value)
69 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call)
70 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value)
71 (ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto.
72 * ppc-linux-tdep.c (ppc_linux_in_sigtramp)
73 (ppc_linux_at_sigtramp_return_path)
74 (ppc_linux_skip_trampoline_code)
75 (ppc_linux_memory_remove_breakpoint, ppc_linux_return_value):
76 * rs6000-tdep.c (rs6000_value_to_register)
77 (rs6000_register_to_value): Ditto.
78 * ppc-tdep.h (ppc_sysv_abi_return_value)
79 (ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value)
80 (ppc_linux_memory_remove_breakpoint): Ditto.
81
f127898a
UW
822005-05-24 Ulrich Weigand <uweigand@de.ibm.com>
83
84 * s390-tdep.c (s390_frame_prev_register): Change type of last
85 argument to 'gdb_byte *'.
86 (s390_stub_frame_prev_register): Likewise.
87 (s390_sigtramp_frame_prev_register): Likewise.
88
42d99eab
KW
892005-05-24 Kris Warkentin <kewarken@qnx.com>
90
91 * config/i386/nto.mt: Remove remote-nto.o.
92
cc1285c7
OF
932005-05-24 Orjan Friberg <orjanf@axis.com>
94
95 * config/djgpp/fnchange.lst: Add mappings for
96 gdbserver/linux-cris-low.c and gdbserver/linux-crisv32-low.c.
97
2e14c2ea
MS
982005-05-23 Michael Snyder <msnyder@redhat.com>
99 From Nora Pan <qpan@mvista.com>
100 * linux-nat.c (read_mapping): Don't stumble over entries in
101 mapping that have name but zero inode.
102
36aa5e41
AC
1032005-05-23 Andrew Cagney <cagney@gnu.org>
104
6c932e54
AC
105 * target.h (child_xfer_memory): Use gdb_byte for byte buffer
106 parameters.
107 * inftarg.c (child_xfer_partial): Update.
108 * wince.c (child_xfer_memory): Update.
109 * win32-nat.c (child_xfer_memory): Update.
110 * rs6000-nat.c (child_xfer_memory): Update.
111 * infptrace.c (child_xfer_memory): Update.
112 * dcache.c (struct dcache_block): Use gdb_byte for the byte
113 buffers.
114 (dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
115 (dcache_peek_byte, dcache_write_line): Ditto.
116
36aa5e41
AC
117 * auxv.h (target_auxv_read, procfs_xfer_auxv)
118 (target_auxv_parse): Use gdb_byte for byte buffer parameters.
119 * auxv.c (target_auxv_read, procfs_xfer_auxv, target_auxv_parse)
120 (target_auxv_search, fprint_target_auxv): Update.
121
41922353
OF
1222005-05-23 Orjan Friberg <orjanf@axis.com>
123
64c5f205 124 * cris-tdep.c: Tweak values for cris-mode.
41922353 125
1f9872de
JB
1262004-05-23 Joel Brobecker <brobecker@adacore.com>
127
128 * mdebugread.c (record_minimal_symbol): New procedure.
129 (parse_partial_symbols): Use record_minimal_symbol to record
130 the new minimal symbols instead of prim_record_minimal_symbol
131 and prim_record_minimal_symbol_and_info.
132
872544e5
MK
1332005-05-22 Mark Kettenis <kettenis@gnu.org>
134
02a677ac
MK
135 * NEWS: Mention OpenBSD/arm as a new native configuration.
136
2b73aeb1
MK
137 * armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
138 Reorder includes. Don't require FETCH_INFERIOR_REGISTERS to be
139 defined.
140 (armnbsd_fetch_registers): Rename from armnbsd_fetch_registers.
141 Make static.
142 (armnbsd_store_registers): Rename from armnbsd_store_registers.
143 Make static.
144 (_initialize_arm_netbsd_nat): Construct and add target vector.
145 * Makefile.in (armnbsd-nat.o): Update dependencies.
146 * config/arm/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
147 intarg.o, add inf-ptrace.o.
148 (NAT_FILE): Set to solib.h.
149 * config/arm/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
150 inftarg.o, add inf-ptrace.o.
151 (NAT_FILE): Remove.
152
5238cf52
MK
153 * arm-tdep.c (arm_extract_return_value, arm_store_return_value):
154 Change type of last argument to `gdb_byte *'.
155
872544e5
MK
156 * configure.host: Add arm*-*-openbsd*.
157 * configure.tgt: Add arm*-*-openbsd*.
158
10c42a71
AC
1592005-05-22 Andrew Cagney <cagney@gnu.org>
160
161 * frame.h (frame_register_unwind, frame_unwind_register)
162 (get_frame_register, frame_register, put_frame_register)
163 (get_frame_memory, safe_frame_unwind_memory)
164 (frame_register_read): Use gdb_byte for byte buffer parameters.
165 * trad-frame.h (trad_frame_get_register)
166 (frame_get_prev_register): Ditto.
167 * frame-unwind.h (frame_prev_register_ftype): Ditto.
168 * frame.c (frame_pop, frame_register, frame_unwind_register)
169 (get_frame_register, frame_unwind_register_signed)
170 (frame_unwind_register_unsigned, frame_unwind_unsigned_register)
171 (frame_register_read, get_frame_memory): Update.
172 * trad-frame.c (trad_frame_get_prev_register): Update.
173 (trad_frame_get_register): Update.
174 * gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
175 * breakpoint.c (deprecated_read_memory_nobpt): Update.
176 * corefile.c (read_memory): Update.
177 * tramp-frame.c (tramp_frame_prev_register): Update.
178 * valops.c (value_assign): Update.
179 * sentinel-frame.c (sentinel_frame_prev_register): Update.
180 * std-regs.c (value_of_builtin_frame_fp_reg)
181 (value_of_builtin_frame_pc_reg): Update.
182 * infcmd.c (default_print_registers_info): Update
183 * dummy-frame.c (dummy_frame_prev_register): Update.
184 * findvar.c (value_of_register, value_from_register): Update.
185 * tui/tui-regs.c (tui_register_format, tui_get_register): Update.
186 * mi/mi-main.c (register_changed_p, get_register): Update.
187
194134a1
EZ
1882005-05-20 Eli Zaretskii <eliz@gnu.org>
189
ba1e897e
EZ
190 * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS. Fix
191 bad description of _MSE_INT_H that caused each word in config.in
192 to be enclosed in [].
41721137 193 * configure, config.in: Regenerate.
194134a1 194
0de94d4b
JB
1952005-05-20 Joel Brobecker <brobecker@adacore.com>
196
197 * alpha-tdep.c (fp_register_zero_p): New function.
198 (fp_register_sign_bit): New function.
199 (alpha_next_pc): Add support for floating-point control instructions.
200
2d522557
AC
2012005-05-19 Andrew Cagney <cagney@gnu.org>
202
0d509538
AC
203 * defs.h (extract_signed_integer, extract_unsigned_integer)
204 (extract_long_unsigned_integer, extract_typed_address)
205 (store_signed_integer, store_unsigned_integer)
206 (store_typed_address): Use gdb_byte for byte buffer parameters.
207 (push_bytes, push_word): Delete declaration.
208 * valops.c (push_bytes, push_word): Delete function.
209 * findvar.c (extract_signed_integer, extract_unsigned_integer)
210 (extract_typed_address, store_signed_integer)
211 (store_unsigned_integer): Update.
212
2d522557
AC
213 * regcache.h (regcache_raw_read, regcache_raw_write)
214 (regcache_raw_read_part, regcache_raw_write_part)
215 (regcache_cooked_read_part, regcache_cooked_write_part)
216 (regcache_cooked_read, regcache_cooked_write)
217 (regcache_raw_supply, regcache_raw_collect)
218 (regcache_cooked_read_ftype, regcache_save, regcache_restore)
219 (deprecated_read_register_gen, deprecated_write_register_gen)
220 (deprecated_read_register_bytes, deprecated_write_register_bytes)
221 (deprecated_grub_regcache_for_registers): Use gdb_byte for byte
222 buffer parameters.
223 * ia64-tdep.c (ia64_extract_return_value): Update.
224 * frame.c (do_frame_register_read): Update.
225 * regcache.c (deprecated_grub_regcache_for_registers)
226 (struct regcache, regcache_save, regcache_restore, regcache_cpy)
227 (do_cooked_read, regcache_xmalloc, register_buffer)
228 (deprecated_read_register_bytes, regcache_raw_read)
229 (regcache_raw_read_signed, regcache_raw_read_unsigned)
230 (deprecated_read_register_gen, regcache_cooked_read)
231 (regcache_cooked_read_signed, regcache_cooked_read_unsigned)
232 (deprecated_write_register_gen, regcache_cooked_write)
233 (deprecated_write_register_bytes, regcache_raw_read_part)
234 (regcache_raw_write_part, regcache_cooked_read_part)
235 (regcache_cooked_write_part, read_register, regcache_raw_supply):
236
181124bc
CV
2372005-05-17 Corinna Vinschen <vinschen@redhat.com>
238
239 * MAINTAINERS: Undelete v850.
240 * Makefile.in: Re-add v850-tdep.o dependencies.
241 * configure.tgt: Re-add v850.
242 * v850-tdep.c: Reorder code slightly. Add register number enumerator.
243 (struct v850_frame_cache): New structure.
244 (v850_processor_type_table): Remove. Move functionality into
245 v850_register_name, v850e_register_name and v850_gdbarch_init.
246 (v850_register_name): New function.
247 (v850e_register_name): New function.
248 (struct prologue_info): Remove definition.
249 (v850_register_type): New function.
250 (v850_type_is_scalar): New function.
251 (v850_use_struct_convention): Align to gcc behaviour.
252 (v850_handle_prepare): Renamed from handle_prepare. Change third
253 parameter to struct v850_frame_cache *.
254 (v850_handle_pushm): Renamed from handle_pushm. Change third parameter
255 to struct v850_frame_cache *.
256 (v850_is_save_register): New function to evaluate if a register is
257 caller-save.
258 (v850_analyze_prologue): Replace v850_scan_prologue. Change to support
259 new frame code.
260 (v850_init_extra_frame_info): Remove.
261 (v850_frame_chain): Remove.
262 (v850_find_callers_reg): Remove.
263 (v850_skip_prologue): Make static.
264 (v850_pop_frame): Remove.
265 (v850_frame_align): New function.
266 (v850_push_dummy_call): Replace v850_push_arguments.
267 (v850_push_return_address): Remove.
268 (v850_extract_return_value): New function.
269 (v850_store_return_value): New function.
270 (v850_return_value): New function.
271 (v850_frame_saved_pc): Remove.
272 (v850_breakpoint_from_pc): New function.
273 (v850_alloc_frame_cache): New function.
274 (v850_fix_call_dummy): Remove.
275 (v850_frame_cache): New function.
276 (v850_target_architecture_hook): Remove.
277 (v850_frame_prev_register): New function.
278 (v850_frame_this_id): New function.
279 (v850_frame_unwind): New structure.
280 (v850_frame_sniffer): New function.
281 (v850_unwind_sp): New function.
282 (v850_unwind_pc): New function.
283 (v850_unwind_dummy_id): New function.
284 (v850_frame_base_address): New function.
285 (v850_frame_base): New structure.
286 (v850_gdbarch_init): New function.
287 * config/v850/v850.mt: Undelete. Drop TM_FILE.
288
76ff342d
DJ
2892005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
290 Dennis Brueni <dennis@slickedit.com>
291
292 * stack.c (print_frame): In MI mode, output a fullname attribute
293 with the stack frame.
294
d01e66a5
MK
2952005-05-16 Mark Kettenis <kettenis@gnu.org>
296
961cb7b5
MK
297 * corelow.c (core_xfer_partial): Change type of readbuf and
298 writebuf to `gdb_byte *'.
299 * sparc-nat.c (sparc_xfer_wcookie, sparc_xfer_partial): Change
300 type of readbuf and writebuf to `gdb_byte *'.
301 * bsd-uthread.c (bsd_uthread_xfer_partial): Change type of readbuf
302 and writebuf to `gdb_byte *'.
303 * inf-ptrace.c (inf_ptrace_xfer_partial): Change type of readbuf
304 and writebuf to `gdb_byte *'.
305 * bsd-kvm.c (bsd_kvm_xfer_memory): Replace.
306 (bsd_kvm_xfer_partial): New function.
307 (bsd_kvm_add_target): Set to_xfer_partial instead of
308 to_xfer_memory.
309 * bfd-target.c (target_bfd_xfer_partial): Change type of readbuf
310 and writebuf to `gdb_byte *'.
311 * target.c (deprecated_debug_xfer_memory): Remove prototype.
312 (deprecated_debug_xfer_memory): Change type of second argument to
313 `gdb_byte *'.
314 * remote.c (remote_xfer_memory): Remove prototype.
315 (remote_xfer_memory): Change type of second argument to `gdb_byte
316 *'.
317 (remote_xfer_partial): Change type of readbuf and writebuf to
318 `gdb_byte *'.
319
d01e66a5
MK
320 * config/sparc/fbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
321 * config/sparc/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
322 and solib-legacy.o.
323 (NAT_FILE): Remove.
324
43af2100
UW
3252005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
326
327 * s390-tdep.c (s390_return_value): Remove unnecessary casts.
328 (s390_breakpoint_from_pc): Change type of return value and
329 'breakpoint' to const gdb_byte *.
330
2e82d168
UW
3312005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
332
333 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write):
334 Change type of 'buf' argument to gdb_byte *.
335 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
336 (s390_register_to_value): Change type of 'out' to gdb_byte *, change
337 type of 'in' to gdb_byte [].
338 (s390_value_to_register): Change type of 'in' to gdb_byte *, change
339 type of 'out' to gdb_byte [].
340 (s390_return_value): Change type of 'out' and 'in' to gdb_byte *.
341
1b0ba102
AC
3422005-05-16 Andrew Cagney <cagney@gnu.org>
343
344 * target.h (target_read_partial, target_write_partial)
345 (do_xfer_memory, xfer_memory, target_read, target_write)
346 (get_target_memory): For buffers, change "void*" to gdb_byte.
347 (struct target_ops): Ditto for to_xfer_partial and
348 deprecated_xfer_memory.
349 * dcache.h (dcache_xfer_memory): Ditto.
350 * target.c (default_xfer_partial, target_read_partial)
351 (target_write_partial, target_read, target_write)
352 (do_xfer_memory, update_current_target, get_target_memory): Update.
353 (target_read_string): Change buf to a gdb_byte.
354 * dcache.c (dcache_xfer_memory): Update.
355 * exec.c (xfer_memory): Make buffer type to gdb_byte.
356 * mem-break.c (default_memory_insert_breakpoint): Remove cast.
357 * disasm.c (dis_asm_read_memory): Remove cast, use gdb_byte.
358
f3e25dcb
MK
3592005-05-16 Mark Kettenis <kettenis@gnu.org>
360
65a19707
MK
361 * sol-thread.c (ignore): Change last argument to `gdb_byte.'
362
9aa6bcd8
MK
363 * config/i386/fbsd.mt (DEPRECATED_TM_FILE): Remove.
364 * config/i386/fbsd64.mt (DEPRECATED_TM_FILE): Remove.
365 * config/i386/nbsd.mt (DEPRECATED_TM_FILE): Remove.
366 * config/i386/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
367 * config/sparc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
368 * config/sparc/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
369
f3e25dcb
MK
370 * observer.sh: Quote $DJGPP.
371
42ecbf5e
DJ
3722005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
373
374 * Makefile.in (.y.c): Update ylwrap invocation.
375
58aecb61
DJ
3762005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
377
378 * linux-nat.c (child_follow_fork, linux_handle_extended_wait)
379 (lin_lwp_attach_lwp, linux_nat_attach, wait_lwp, child_wait)
380 (linux_nat_wait, kill_wait_callback): Use my_waitpid.
381 (_initialize_linux_nat, lin_thread_get_thread_signals): Use
382 SA_RESTART.
383
42835c2b
MK
3842005-05-14 Mark Kettenis <kettenis@gnu.org>
385
a5bf92c5
MK
386 * configure.tgt (vax-*-openbsd*): Set gdb_target to obsd.
387 * config/vax/obsd.mt (TDEPFILES): New file.
388
156cdbee
MK
389 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset): Use
390 gdb_byte instead of bfd_byte.
391
47a35522
MK
392 * mips-tdep.c (mips_pseudo_register_read)
393 (mips_pseudo_register_write): Change type of last argument to
394 `gdb_byte *'.
395 (mips_register_to_value, mips_value_to_register): Change type of
396 last argument to `gdb_byte *'. Remove casts that are no longer
397 needed.
398 (mips_fetch_instruction, fetch_mips_16): Use gdb_byte for buf.
399 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
400 (mips_o32_push_dummy_call, mips_o32_return_value): Use `const
401 gdb_byte *' for val and gdb_byte for valbuf. Remove casts that
402 are no longer needed.
403 (mips_eabi_return_value, mips_n32n64_return_value)
404 (mips_o32_return_value, mips_o64_return_value): Change type of
405 readbuf and writebuf arguments to `gdb_byte *'.
406 (mips_read_fp_register_single): Change type of last argument to
407 `gdb_byte *'. Use `gdb_byte *' for raw_buffer.
408 (mips_read_fp_register_double): Change type of last argument to
409 `gdb_byte *'.
410 (mips_print_fp_register): Use `gdb_byte *' for raw_buffer. Remove
411 casts that are no longer needed.
412 (mips_print_register, print_gp_register_row): Use gdb_byte for
413 raw_buffer. Remove casts that are no longer needed.
414 (mips_single_step_through_delay): Use gdb_byte for buf.
415 (mips_breakpoint_from_pc): Change return type to `const gdb_byte
416 *'. Use gdb_byte for mips16_big_breakpoint, big_breakpoint,
417 pmon_big_breakpoint, idt_big_breakpoint, mips16_little_breakpoint,
418 little_breakpoint, pmon_little_breakpoint and
419 idt_little_breakpoint.
420 (mips_integer_to_address): Use `gdb_byte *' for tmp.
421
c872b717
MK
422 * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
423 * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
424 * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
425 * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
426 * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
427 * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
428
e1613aba
MK
429 * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
430 gdb_byte for buf.
431 (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
432 Change type of last argument to `gdb_byte *'. Remove casts that
433 are no longer needed.
434 (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
435 for buf.
436 (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
437 *'. Use gdb_byte for break_insn.
438 (sparc32_extract_return_value, sparc32_store_return_value): Change
439 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
440 (sparc32_return_value): Change type of readbuf and writebuf
441 arguments to `gdb_byte *'.
442 (sparc_software_single_step): Use gdb_byte for npc_save and
443 nnpc_save.
444 (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
445 buf.
446 (sparc32_supply_gregset, sparc32_collect_gregset)
447 (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
448 *' for regs.
449 * sparc64-tdep.c (sparc64_pseudo_register_read)
450 (sparc64_pseudo_register_write): Change type of last argument to
451 `gdb_byte *'. Remove casts that are no longer needed.
452 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
453 Change type of valbuf argument to `gfd_byte *'.
454 (sparc64_store_arguments): Use `gdb_byte *' for valbuf. use
455 gdb_byte for buf.
456 (sparc64_extract_return_value, sparc64_store_return_value): Change
457 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
458 (sparc64_return_value): Change type of readbuf and writebuf
459 arguments to `gdb_byte *'.
460 (sparc64_supply_gregset, sparc64_collect_gregset)
461 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
462 *' for regs.
463
f5cf7aa1
MK
464 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
465 to `const gdb_byte *'. Use gdb_byte for break_insn.
466 (m68k_register_to_value): Change type of last argument to
467 `gdb_byte *'. Use gdb_byte for from.
468 (m68k_value_to_register): Change type of last argument to
469 `gdb_byte *'. Use gdb_byte for to.
470 (m68k_extract_return_value): Change type of last argument to
471 `gdb_byte *'. Use gdb_byte for buf. Remove unnecessary cast.
472 (m68k_svr4_extract_return_value): Change type of last argument to
473 `gdb_byte *'. Use gdb_byte for buf.
474 (m68k_store_return_value): Change type of last argument to
475 `gdb_byte *'. Remove unnecessary cast.
476 (m68k_svr4_store_return_value): Change type of last argument to
477 `gdb_byte *'. Use gdb_byte for buf.
478 (m68k_return_value, m68k_svr4_return_value): Change type of
479 readbuf and writebuf arguments to `gdb_byte *'.
480 (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
481 (m68k_unwind_dummy_id): Use gdb_byte for buf.
482 (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
483 * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
484 (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
485
8dccaca3
MK
486 * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
487 `const gdb_byte *'. Use gdb_byte for break_insn.
488 (m88k_return_value): Change type of readbuf and
489 writebuf arguments to `gdb_byte *'. Use gdb_byte for buf.
490 (m88k_supply_gregset): Use `gdb_byte *' for regs.
491
459f20b9
MK
492 * vax-tdep.c (vax_return_value): Change type of readbuf and
493 writebuf arguments to `gdb_byte *'.
494
42835c2b
MK
495 * amd64-tdep.c (amd64_return_value): Change type of readbuf and
496 writebuf arguments to `gdb_byte *'. Remove now redundant casts.
497 * i386-tdep.c (i386_return_value): Change type of readbuf and
498 writebuf arguments to `gdb_byte *'.
499 (i386_pseudo_register_read, i386_pseudo_register_write): Change
500 type of last argument to `gdb_byte *'.
501 (i386_register_to_value, i386_value_to_register): Change type of
502 last argument to `gdb_byte *'. Simplify function a bit.
503 * i387-tdep.h (i387_value_to_register, i387_register_to_value):
504 Change type of last argument to `gdb_byte *'.
505 * i387-tdep.c: Likewise.
506
b60c417a
AC
5072005-05-13 Andrew Cagney <cagney@gnu.org>
508
509 * gdbarch.sh (pseudo_register_read, pseudo_register_write)
510 (value_to_register, register_to_value, pointer_to_address)
511 (address_to_pointer, return_value, extract_return_value)
512 (store_return_value): Instead of a void pointer, use gdb_byte.
513 * gdbarch.h, gdbarch.c: Regenerate.
514 * inferior.h (unsigned_address_to_pointer)
515 (signed_pointer_to_address, address_to_signed_pointer)
516 (unsigned_pointer_to_address): Update.
517 * arch-utils.h (legacy_return_value):
518 * arch-utils.c (legacy_extract_return_value)
519 (legacy_return_value): Update.
520 * findvar.c (unsigned_pointer_to_address)
521 (signed_pointer_to_address, unsigned_address_to_pointer)
522 (address_to_signed_pointer): Update.
523
bdd56253
OF
5242005-05-13 Orjan Friberg <orjanf@axis.com>
525
526 * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
527 cris-version, cris-mode, and cris-dwarf2-cfi settings.
528
0e6bdb31
OF
5292005-05-13 Orjan Friberg <orjanf@axis.com>
530
531 * cris-tdep.c (usr_cmd_cris_version): Change type to int.
532 (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
533 (struct gdbarch_tdep): Change type of cris_version to int. Add
534 cris_mode.
535 (cris_mode, set_cris_mode): New functions.
536 (crisv32_single_step_through_delay): Read from NRP register instead
537 of ERP register in guru mode.
538 (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
539 Add break15_insn, returned in guru mode.
540 (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
541 cris-mode setting.
542 (cris_dump_tdep): Add dump of cris_mode.
543 (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
544 Register the sigtramp frame sniffer only if not in guru mode.
545
1e872def
EZ
5462005-05-13 Eli Zaretskii <eliz@gnu.org>
547
548 * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
549
550 * go32-nat.c: Include top.h. Update copyright years.
551 (init_go32_ops): Override the default value of gdbinit[] with
552 "gdb.ini".
553
554 * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
555 (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
556 string GDBINIT_FILENAME.
557
558 * top.c (PATH_MAX): Define if not defined.
559 (gdbinit): Declare with a constant size PATH_MAX.
560
561 * config/i386/go32.mh (XM_FILE): Remove.
562
563 * config/i386/xm-go32.h: Remove file.
564
e0ecbda1
MK
5652005-05-12 Mark Kettenis <kettenis@gnu.org>
566
d45b6f32
MK
567 * sol-thread.c: Include "solib.h".
568 (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
569 * Makefile.in (sol-thread.o): Update dependencies.
570
e0ecbda1
MK
571 * NEWS: Mention OpenBSD/mips64 as a new native configuration.
572
5711a8b0
EZ
5732005-05-12 Eli Zaretskii <eliz@gnu.org>
574
575 * observer.sh (texi) [DJGPP]: If the file name includes a colon,
576 convert it to the /dev/x/ form.
577
a77053c2
MK
5782005-05-12 Mark Kettenis <kettenis@gnu.org>
579
580 * solib.h (CLEAR_SOLIB, SOLIB_ADD)
581 (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
582 (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
583 (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
584 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
585 comments.
586 * breakpoint.c: Include "solib.h".
587 (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
588 solib_address.
589 (remove_solib_event_breakpoints, create_solib_event_breakpoint)
590 (disable_breakpoints_in_shlibs)
591 (disable_breakpoints_in_unloaded_shlib)
592 (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
593 defined. If PC_SOLIB isn't defined, call solib_address.
594 (_initialize_breakpoint): Unconditionally install observer.
595 * corelow.c: Include "solib.h".
596 [SOLIB_ADD] (solib_add_stub): Remove prototype.
597 (core_close) [!CLEAR_SOLIB]: Call clear_solib.
598 (solib_add_stub) [!SOLIB_ADD] Call solib_add.
599 (core_open): Unconditionally call solib_add_stub.
600 * fork-child.c: Include "solib.h".
601 (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
602 solib_create_inferior_hook.
603 * infcmd.c: Include "solib.h".
604 (attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
605 call re_enable_breakpoints_in_shlibs.
606 * infrun.c: Include "solib.h".
607 (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
608 defined.
609 (stop_on_solib_events, show_stop_on_solib_events): Include
610 unconditionally.
611 (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
612 solib_create_inferior_hook.
613 (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
614 [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
615 (_initialize_infrun): Unconditionally add "stop_on_solib-events"
616 command.
617 * remote.c: Include "solib.h".
618 (remote_open_1): Unconditionally call no_shared_libraries.
619 [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
620 * stack.c: Include "solib.h".
621 (print_frame) [!PC_SOLIB] Call shlib_for_pc.
622 * xcoffsolib.c (no_shared_libraries): Remove function.
623 * Makefile.in (SFILES): Add solib.c.
624 (ALLDEPFILES): Remove solib.c.
625 (COMMON_OBS): Add solib.o.
626 (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
627 (remote.o, stack.o): Update dependencies.
628
847f5ce8
DJ
6292005-05-12 Daniel Jacobowitz <dan@codesourcery.com>
630
631 * cp-names.y: Renamed to ...
632 * cp-name-parser.y: ... this.
633 * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
634 cp-name-parser.y.
635 (test-cp-names.o): Renamed to test-cp-name-parser.o.
636 (test-cp-names): Renamed to test-cp-name-parser.
637 (clean, local-maintainer-clean): Update.
638 (cp-names.o): Renamed to cp-name-parser.o.
639
b41cde44
EZ
6402005-05-12 Eli Zaretskii <eliz@gnu.org>
641
15c3c5c6
EZ
642 * observer.sh: Use observer.tmp instead of observer.inc-tmp which
643 on 8+3 filesystems overwrites observer.inc. Update copyright year
644 of the resultant file.
645
358777b0
EZ
646 * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
647 is_gnu_v3_mangled_ctor to avoid compiler warnings.
648
b41cde44
EZ
649 * config/djgpp/config.sed: Adapt to latest Autoconf.
650
651 * config/djgpp/djconfig.sh: Add -Wpointer-arith and
652 -Wuninitialized to the build warnings.
653
0d4fc997
EZ
6542005-05-11 Eli Zaretskii <eliz@gnu.org>
655
6791e1b1
EZ
656 * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
657 ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
658 Fix mappings for hilo-hazard-?.s.
659
0d4fc997
EZ
660 * config/djgpp/README: Update GDB versions and my email address.
661
fc1a4b47
AC
6622005-05-09 Andrew Cagney <cagney@gnu.org>
663
664 Use gdb_byte in preference to bfd_byte.
665 * gdbarch.sh: Update.
666 * gdbarch.h, gdbarch.c: Re-generate.
667 * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
668 * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
669 * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
670 * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
671 * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
672 * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
673 * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
674 * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
675 * valprint.h, value.c, value.h: Update.
676
8b04f8b6
MK
6772005-05-09 Mark Kettenis <kettenis@gnu.org>
678
8cc49c48
MK
679 * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
680 Use `gdb_byte *' for regs.
681 * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
682 (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
683 gdb_byte for buf.
684 (vax_breakpoint_from_pc): Change return type to `const gdb_byte
685 *'. Use gdb_byte for break_insn.
686 (vax_skip_prologue): Use gdb_byte for op.
687
8142f7cb
MK
688 * i387-tdep.c: Remove outdated comments.
689
8b04f8b6
MK
690 * defs.h: Unconditionally include <sys/types.h>.
691
979b38e0
DJ
6922005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
693
694 * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
695 section like .plt.
696
9cedd1a6 6972005-05-08 Mark Kettenis <kettenis@gnu.org>
d8de1ef7 698
4252dc94
MK
699 * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
700 Change type to `static const gdb_byte'.
701 (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
702 (i386_linux_sigcontext_addr): Use gdb_byte for buf.
703 * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
704 const gdb_byte'.
705 (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
706 gdb_byte for buf.
707 * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
708 (amd64fbsd_collect_uthread): Use gdb_byte for buf.
709
d46bfb5c
MK
710 * config/ia64/nm-aix.h: Remove file.
711
d8de1ef7
MK
712 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
713 (amd64_push_arguments): Use gdb_byte instead of bfd_byte. Use
714 gdb_byte for buf.
715 (amd64_push_dummy_call): Use gdb_byte for buf.
716 (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
717 (amd64_frame_cache, amd64_sigtramp_frame_cache)
718 (amd64_unwind_dummy_id): Use gdb_byte for buf.
719 (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
720 regs.
721 * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
722 casts.
723 (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
724 *' for buf,
9cedd1a6 725
63c0089f
MK
726 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
727 `const gdb_byte *'. Use gdb_byte for break_insn.
728 (i386_follow_jump): Use gdb_byte for op.
729 (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
730 and op.
731 (i386_skip_probe): Use gdb_byte for buf and op.
732 (struct i386_insn): Use gdb_byte for insn and mask.
733 (i386_match_insn, i386_analyze_frame_setup)
734 (i386_analyze_register_saves): Use gdb_byte for op.
735 (i386_skip_prologue): Use gdb_byte for pic_pat and op;
736 (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
737 (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
738 buf.
739 (i386_extract_return_value, i386_store_return_value): Use
e447028c 740 `gdb_byte *' instead of `void *' for valbuf argument. Remove now
63c0089f
MK
741 redundant cast.
742 (i386_pseudo_register_read, i386_pseudo_register_write): Use
743 gdb_byte for mmx_buf.
744 (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
745 instead of `char *' for buf.
746 (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
747 instead of `char *' for regs.
748 (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
749 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
750 sigreturn and `gdb_byte *' for buf.
751 (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
752 (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
753 for buf.
754 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
755
b57b6c2e
MK
756 * defs.h (gdb_byte): New typedef. Tweak comments.
757
9cedd1a6
MK
758 * target.h (target_link): Remove prototype.
759 * target.c (target_link): Remove function.
760 * symfile.c: Remove comment about rombug.
761
f8736ddf
MK
7622005-05-04 Mark Kettenis <kettenis@gnu.org>
763
764 * config/i386/cygwin.mh (XM_FILE): Remove variable.
765 * config/i386/xm-cygwin.h: Remove file.
766
8bbde302
BE
7672005-05-03 Ben Elliston <bje@au.ibm.com>
768
769 * infrun.c (handle_inferior_event): Update the comment about users
770 of stepped_after_stopped_by_watchpoint.
771
079c8cd0
CV
7722005-05-02 Corinna Vinschen <vinschen@redhat.com>
773
774 * MAINTAINERS: Remove hint that sh64 doesn't build.
775 * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
776 (sh64_do_fp_register): make raw_buffer unsigned.
777 (sh64_do_register): Ditto.
778
5ebc08b0
MK
7792005-05-02 Mark Kettenis <kettenis@gnu.org>
780
781 * bsd-uthread.c: Include "solib.h".
782 * Makefile.in (bsd-uthread.o): Update dependencies.
783
5dbe23a3
DJ
7842005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
785
786 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
787 cached frames when changing gdbarch.
788 * gdbarch.c: Regenerated.
789
5a168c78
AC
7902005-05-01 Andrew Cagney <cagney@gnu.org>
791
87d088f5
AC
792 * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
793 do not build.
794
5a168c78
AC
795 * gdbarch.sh (deprecated_extract_return_value)
796 (breakpoint_from_pc, deprecated_store_return_value)
797 (memory_insert_breakpoint, memory_remove_breakpoint): Change type
798 of buffer to a bfd_byte pointer.
799 * gdbarch.h, gdbarch.c: Re-generate.
800 * mem-break.c (memory_insert_breakpoint)
801 (memory_remove_breakpoint, default_memory_insert_breakpoint)
802 (default_memory_remove_breakpoint): Update.
803 * target.h (memory_insert_breakpoint)
804 (memory_remove_breakpoint, default_memory_insert_breakpoint)
805 (default_memory_remove_breakpoint): Update declarations.
806 (struct target_ops): Update to_insert_breakpoint and
807 to_remove_breakpoint.
808 * target.c (debug_to_remove_breakpoint)
809 (debug_to_insert_breakpoint): Update.
810 * remote-m32r-sdi.c (m32r_remove_breakpoint)
811 (m32r_insert_breakpoint): Update.
812 * m32r-tdep.c (m32r_memory_insert_breakpoint)
813 (m32r_memory_remove_breakpoint): Update.
814 * remote-e7000.c (e7000_insert_breakpoint)
815 (e7000_remove_breakpoint): Update.
816 * remote-rdi.c (arm_rdi_insert_breakpoint)
817 (arm_rdi_remove_breakpoint): Update.
818 * remote-sim.c (gdbsim_insert_breakpoint)
819 (gdbsim_remove_breakpoint): Update.
820 * exec.c (ignore): Update.
821 * rs6000-tdep.c (rs6000_extract_return_value): Update.
822 * ia64-tdep.c (ia64_memory_insert_breakpoint)
823 (ia64_memory_remove_breakpoint): Update.
824 * remote-rdp.c (remote_rdp_insert_breakpoint)
825 (remote_rdp_remove_breakpoint): Update.
826
68b9939a
MK
8272005-05-01 Mark Kettenis <kettenis@gnu.org>
828
e908eab4
MK
829 * somsolib.c, somsolib.h: Remove files.
830 * Makefile.in (somsolib_h): Remove.
831 (somsolib.o): Remove dependency.
832
68b9939a
MK
833 * fbsd-nat.c: Include <sys/sysctl.h>.
834 (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
835 available. Plug memory leak. Fixes PR gdb/1922.
836
66aba65d
MK
8372005-04-29 Mark Kettenis <kettenis@gnu.org>
838
839 * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
840 (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
841 (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
842 (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
843 * solib.c (solib_data): New variable.
844 (solib_init, solib_ops): New functions.
845 (solib_open, solib_map_sections, free_so, update_solib_list)
846 (solib_add, clear_solib, solib_create_inferior_hook)
847 (in_solib_dynsym_resolve_code): Call architecture-dependent code
848 using solib_ops.
849 (_initialize_solib): Register SOLIB_DATA.
850
35e08e03
KB
8512005-04-29 Kevin Buettner <kevinb@redhat.com>
852
853 * frv-tdep.c (find_func_descr): Verify that entry point can be
854 found in symbol table prior to looking up its function descriptor.
855 * solib-frv.c (find_canonical_descriptor_in_load_object): Add
856 test for non-NULL link map.
857
862ba188
CV
8582005-04-29 Corinna Vinschen <vinschen@redhat.com>
859
860 * MAINTAINERS: Revert h8300 state to un-deleted.
861 * Makefile.in: Re-add h8300-tdep.o dependencies.
862 * h8300-tdep.c: Slightly rearrange type definitions and functions.
863 (struct frame_extra_info): Remove.
864 (struct h8300_frame_cache): Replace locals with differently defined
865 uses_fp member.
866 (h8300_unwind_pc): Simplify.
867 (h8300_unwind_sp): New function.
868 (h8300_unwind_dummy_id): Simplify.
869 (h8300_init_frame_cache): New function.
870 (h8300_is_argument_spill): Use reworked defines for opcode scanning.
871 (h8300_skip_prologue): Rewrite.
872 (h8300_alloc_frame_cache): Remove.
873 (h8300_analyze_frame_setup): Remove.
874 (h8300_analyze_register_saves): Remove.
875 (h8300_analyze_prologue): Rewrite.
876 (h8300_frame_cache): Use h8300_init_frame_cache instead of
877 h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
878 accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
879 (h8300_frame_this_id): Correctly calculate this_id using saved stack
880 pointer instead of base.
881 (h8300_frame_prev_register): Drop needless braces.
882 (h8300_frame_base_address): New function.
883 (h8300_frame_base): New frame_base.
884 (h8300_push_dummy_call): Return correct CFA value.
885 (h8300h_extract_return_value): Fix 8 byte value handling.
886 (h8300_use_struct_convention): New function.
887 (h8300h_use_struct_convention): New function.
888 (h8300h_store_return_value): Fix 8 byte value handling.
889 (h8300_return_value): New function.
890 (h8300h_return_value): New function.
891 (h8300_extract_struct_value_address): Remove deprecated functionality.
892 (h8300_push_dummy_code): Remove.
893 (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
894 set_gdbarch_store_return_value calls by set_gdbarch_return_value.
895 Remove calls to set_gdbarch_deprecated_fp_regnum,
896 set_gdbarch_deprecated_extract_struct_value_address,
897 set_gdbarch_deprecated_use_struct_convention and
898 set_gdbarch_push_dummy_code.
899 Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
900 Slightly rearrange code.
901
3a913e29
JB
9022005-04-28 Jim Blandy <jimb@redhat.com>
903
904 * parse.c (namecopy): Change allocation conventions.
905 (namecopy_size): New variable.
906 (copy_name): Allocate namecopy using xrealloc, instead of assuming
907 it has adequate space allocated to it.
908 (parse_exp_1): Don't try to allocate space for namecopy here.
909
a955ca71
EZ
9102005-04-28 Eli Zaretskii <eliz@gnu.org>
911
912 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
913 set, use symtab_to_fullname, instead of trying to do its job. Use
914 xstrprintf instead of malloc and sprintf.
915
46845f5e
KB
9162005-04-28 Kevin Buettner <kevinb@redhat.com>
917
918 * remote.c (init_remote_state): Eliminate use of
919 deprecated_register_bytes().
920
8929e59d
AC
9212005-04-28 Andrew Cagney <cagney@gnu.org>
922
923 * valops.c (check_field): Make buffer a bfd_byte.
924 * value.c (unpack_long, unpack_double, unpack_pointer)
925 (unpack_field_as_long, modify_field): Ditto.
926 * value.h: Update declarations.
927
cade9e54
PB
9282005-04-28 Paul Brook <paul@codesourcery.com>
929
930 * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
931
4b188b9f
MK
9322005-04-27 Mark Kettenis <kettenis@gnu.org>
933
ab576d85
MK
934 * solib-svr4.c (_initialize_svr4_solib)
935 [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
936 svr4_legacy_fetch_link_map_offsets.
937
ccf00f21
MK
938 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
939 (sh_gdbarch_init): Remove redundant prototype.
940 * sh-linux-tdep.c: New file.
941 * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
942 Remove prototype.
943 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
944 * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
945 solib-legacy.o.
946 * Makefile.in (sh-linux-tdep.o): New.
947
4b188b9f
MK
948 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
949 (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
950 defined.
951 (legacy_fetch_link_map_offsets): Remove prototype.
952 (fetch_link_map_offsets_gdbarch_data): Remove.
953 (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
954 (first_link_map_member, open_symbol_file_object, svr4_current_sos)
955 (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
956 instead of SVR4_FETCH_LINK_MAP_OFFSETS.
957 (solib_svr4_data): New variable.
958 (struct solib_svr4_ops): New.
959 (solib_svr4_init): New fynction.
960 (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
961 Remove functions.
962 (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
963 using the new `struct solib_svr4_ops'.
964 (_initialize_svr4_solib): Replace registration of per-architecture
965 data. Add temporary hack to set
966 svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
967 is set.
968 * Makefile.in (solib-svr4.o): Update dependencies.
969
4fabe3d5
MK
9702005-04-26 Mark Kettenis <kettenis@gnu.org>
971
972 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
973 GDB_OSABI_FREEBSD_ELF. Partial fix for PR gdb/1922.
974
109c3e39
AC
9752005-04-26 Andrew Cagney <cagney@gnu.org>
976
977 * remote.c (remote_open_1): Move "ex"'s declaration to where it is
978 used.
979 (remote_get_thread_local_address): Use throw_error, include a
980 printed string.
981 * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
982 * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
983 * cli/cli-script.c (script_from_file): Mark up throw_error message.
984 * linespec.c (symtab_from_filename, decode_variable): Ditto.
985
71fff37b
AC
9862005-04-26 Andrew Cagney <cagney@gnu.org>
987
988 Rename 'struct exception' to 'struct gdb_exception'.
989 * wrapper.c: Update.
990 * varobj.c: Update.
991 * tui/tui-interp.c: Update.
992 * remote.c: Update.
993 * mi/mi-main.c: Update.
994 * mi/mi-interp.c: Update.
995 * linux-thread-db.c: Update.
996 * interps.h: Update.
997 * interps.c: Update.
998 * exceptions.h: Update.
999 * exceptions.c: Update.
1000 * dwarf2loc.c: Update.
1001 * cli/cli-interp.c: Update.
1002 * cli/cli-script.c: Update.
1003 * breakpoint.c: Update.
1004
011825f0
MM
10052005-04-25 Mark Mitchell <mark@codesourcery.com>
1006
3aa6b2ca
MM
1007 * event-loop.c (gdb_select): Program defensively.
1008
011825f0
MM
1009 * event-loop.c (gdb_assert.h): Include.
1010 (<windows.h>): Include under Windows.
1011 (<io.h>): Likeiwse.
1012 (gdb_select): New function.
1013 (gdb_wait_for_event): Use it.
1014 * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
1015
02a71ae8
MK
10162005-04-23 Mark Kettenis <kettenis@gnu.org>
1017
1018 * sparc64-tdep.c: Include "dwarf2-frame.h".
1019 (sparc64_dwarf2_frame_init_reg): New function.
1020 * Makefile.in (sparc64-tdep.o): Update dependencies.
1021
20338726
DM
10222005-04-22 David S. Miller <davem@davemloft.net>
1023
1024 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
1025 sparc64_init_abi().
1026
a07ff70c
MK
10272005-04-22 Mark Kettenis <kettenis@gnu.org>
1028
1029 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
1030
248697b2
MM
10312005-04-22 Mark Mitchell <mark@codesourcery.com>
1032
1033 * ser-base.c (<sys/time.h>): Include.
1034
a33e488c
MK
10352005-04-22 Mark Kettenis <kettenis@gnu.org>
1036
a86c5ab2
MK
1037 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
1038
70f1dc74
MK
1039 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
1040 (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
1041 (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
1042 macros.
1043 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
1044 instructions.
1045 * sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
1046 (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
1047 macros.
1048 (sparc64_linux_rt_sigframe): Hardcode instructions.
1049 * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
1050 dependencies.
1051
a33e488c
MK
1052 * sparc-linux-tdep.c: Update copyright year.
1053 (sparc32_linux_init_abi): Set skip_trampoline_code and
1054 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
1055 Don't set software_single_step and don't call
1056 sparc32_sol2_init_abi.
1057 * sparc64-linux-tdep.c: Update copyright year.
1058 (sparc64_linux_init_abi): Set skip_trampoline_code and
1059 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
1060 Don't set software_single_step and don't call
1061 sparc64_sol2_init_abi.
1062
24ec834b
EZ
10632005-04-22 Eli Zaretskii <eliz@gnu.org>
1064
1065 * remote-st.c (_initialize_remote_st2000): Remove the extraneous
1066 "<command>" string from the call to add_com.
1067
1068 * remote-sim.c (_initialize_remote_sim): Ditto.
1069
1070 * remote-utils.c (_initialize_sr_support): Ditto.
1071
1072 * remote-mips.c (_initialize_remote_mips): Ditto.
1073
81f726ab
DM
10742005-04-21 David S. Miller <davem@davemloft.net>
1075
1076 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
1077 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
1078 (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
1079 sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
1080 sparc32_linux_sigtramp_frame_cache,
1081 sparc32_linux_sigtramp_frame_this_id,
1082 sparc32_linux_sigtramp_frame_prev_register,
1083 sparc32_linux_sigtramp_frame_unwind,
1084 sparc32_linux_sigtramp_frame_sniffer): Delete.
1085 (sparc32_linux_init_abi): Register new tramp unwinders. Kill
1086 register of old sigtramp sniffer.
1087 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
1088 function.
1089 (sparc64_linux_rt_sigframe): New tramp frame.
1090 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
1091 sparc64_linux_sigtramp_frame_cache,
1092 sparc64_linux_sigtramp_frame_this_id,
1093 sparc64_linux_sigtramp_frame_prev_register,
1094 sparc64_linux_sigtramp_frame_unwind,
1095 sparc64_linux_sigtramp_frame_sniffer): Delete.
1096 (sparc64_linux_init_abi): Register new tramp unwinders. Kill
1097 register of old sigtramp sniffer.
1098 Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1099 (sparc-linux-tdep.o): Likewise.
1100
401e7faf
MK
11012005-04-21 Mark Kettenis <kettenis@gnu.org>
1102
1103 * ser-base.c: Include "gdb_string.h".
1104 * Makefile.in (ser-base.o): Update dependencies.
1105
78a0fd57
DM
11062005-04-20 David S. Miller <davem@davemloft.net>
1107
1108 * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
1109 signal return stub symbol names, __restore and __restore_rt are
1110 the i386 symbol names not the sparc ones.
1111 (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
1112 as where the offsets were obtained from.
1113 * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
1114 LINUX64_RT_SIGTRAMP_INSN1): New defines.
1115 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
1116 sparc64_linux_sigtramp_frame_cache,
1117 sparc64_linux_sigtramp_frame_this_id,
1118 sparc64_linux_sigtramp_frame_prev_register,
1119 sparc64_linux_sigtramp_frame_sniffer): New functions.
1120 (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
1121 (sparc64_linux_init_abi): Register sigtramp frame sniffer.
1122 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1123
b4505029
MM
11242005-04-20 Mark Mitchell <mark@codesourcery.com>
1125
1126 * configure.ac: On MinGW, define USE_WIN32API and link with
1127 -lws2_32.
1128 * ser-tcp.c (<winsock2.h>): Include, for Windows.
1129 (ETIMEDOUT): Define, for Windows.
1130 (ioctl): Likewise.
1131 (closesocket): Define, for POSIX.
1132 (net_open): Adjust for differences in socket functions between
1133 Windows and UNIX.
1134 (net_close): Likweise.
1135 (net_read_prim): New function.
1136 (net_write_prim): Likewise.
1137 (_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
1138 write_prim.
1139 * ser-unix.h (ser_unix_readcchar): Remove.
1140 (ser_unix_read_prim): Declare.
1141 (ser_unix_write_prim): Likewise.
1142 * ser-unix.c (generic_readchar): Move to ser-base.c.
1143 (ser_unix_wait_for): Likewise.
1144 (do_unix_readchar): Likewise.
1145 (ser_unix_readchar): Likewise.
1146 (_initialize_ser_hardwire): Initialize read_prim and write_prim.
1147 (ser_unix_read_prim): New function.
1148 (ser_unix_write_prim): Likewise.
1149 * ser-base.h (generic_readchar): Declare.
1150 (ser_base_readchar): Likewise.
1151 * ser-base.c (<winsock2.h>): Include, for windows.
1152 (fd_event): Use the read primitive specified by the serial
1153 interface.
1154 (ser_base_wait_for): Moved from ser-unix.c
1155 (do_ser_base_read_char): Likewise.
1156 (generic_readchar): Likewise.
1157 (ser_base_readchar): Likewise.
1158 (ser_base_write): Use the write primitive specified by the serial
1159 interface.
1160 * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
1161 ser_unix_readchar. Initialize read_prim and write_prim.
1162 * serial.c (struct serial_ops): Add read_prim and write_prim.
1163 * configure: Regenerate.
1164
8470e927
BE
11652005-04-19 Ben Elliston <bje@au.ibm.com>
1166
1167 * c-lang.c (c_create_fundamental_type): Comment fix.
1168
9cacebf5
MS
11692005-04-18 Michael Snyder <msnyder@redhat.com>
1170
1171 * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
1172 * mn10300-prologue.c: Remove.
1173 * mn10300-tdep.h: Add enums from mn10300-prologue.c.
1174 Remove prototypes.
1175 * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
1176
7166c4a9
MS
11772005-04-18 Michael Snyder <msnyder@redhat.com>
1178
0cc748c0 1179 * config/mn10300/mn10300.mt: Add mn10300-prologue module.
7166c4a9
MS
1180 * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
1181
57cd0b54
MK
11822005-04-18 Mark Kettenis <kettenis@gnu.org>
1183
235c4ffd
MK
1184 * config/nm-bsd.h: Remove file.
1185
57cd0b54
MK
1186 * hppabsd-nat.c: Update copyright year. Include "target.h" and
1187 "inf-ptrace.h".
1188 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
1189 made static.
1190 (hppabsd_store_registers): Renamed from store_inferior_registers;
1191 made static.
1192 (_initialize_hppabsd_nat): New function and prototype.
1193 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
1194 inftarg.o. Add inf-ptrace.o.
1195 (NAT_FILE): Remove.
1196 * Makefile.in (hppabsd-nat.o): Update dependencies.
1197
f17882ad
MK
11982005-04-17 Mark Kettenis <kettenis@gnu.org>
1199
1200 * pa64solib.c, pa64solib.h: Remove files.
1201 * Makefile.in (pa64solib_h): Remove variable
1202 (pa64solib.o): Remove dependency.
1203
5d6210f0
MK
12042005-04-16 Mark Kettenis <kettenis@gnu.org>
1205
65d034bc
MK
1206 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
1207 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
1208 made static.
1209 (ppcobsd_store_registers): Renamed from store_inferior_registers;
1210 made static.
1211 (_initialize_ppcobsd_nat): Construct and add target vector.
1212 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
1213 inftarg.o. Add inf-ptrace.o.
1214 (NAT_FILE): Remove.
1215 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1216
5a49dfd0
MK
1217 * ppcobsd-tdep.c: Include "floatformat.h".
1218 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
1219 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
1220
5d6210f0
MK
1221 * ppcobsd-tdep.c: Fix typo in comment.
1222 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
1223 bfd_arch_rs6000 too.
1224
571dd617
KB
12252005-04-15 Kevin Buettner <kevinb@redhat.com>
1226
1227 * remote.c (remote_get_thread_local_address): Throw a more
1228 meaningful exception when remote target doesn't have support
1229 for the qGetTLSAddr packet.
1230
38691318
KB
12312005-04-15 Kevin Buettner <kevinb@redhat.com>
1232
1233 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
1234 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1235 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1236 (remote_get_thread_local_address): New functions.
1237 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
1238 variable.
1239 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
1240 target vector.
1241 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
1242 (_initialize_remote): Register the following commands:
1243 "set remote get-thread-local-storage-address-packet" and
1244 "show remote get-thread-local-address-packet".
1245
3ed07be4
KB
12462005-04-15 Kevin Buettner <kevinb@redhat.com>
1247
1248 * remote.c (add_packet_config_cmd): Delete unused variables.
1249
c9365369
KB
12502005-04-15 Kevin Buettner <kevinb@redhat.com>
1251
1252 * remote.c (show_remote_protocol_vcont_packet_cmd )
1253 (show_remote_protocol_qSymbol_packet_cmd)
1254 (show_remote_protocol_P_packet_cmd)
1255 (show_remote_protocol_Z_software_bp_packet_cmd)
1256 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1257 (show_remote_protocol_Z_write_wp_packet_cmd)
1258 (show_remote_protocol_Z_read_wp_packet_cmd)
1259 (show_remote_protocol_Z_access_wp_packet_cmd)
1260 (show_remote_protocol_binary_download_cmd)
1261 (show_remote_protocol_qPart_auxv_packet_cmd)
1262 (show_remote_protocol_p_packet_cmd ): Delete calls to
1263 deprecated_show_value_hack().
1264
c30dc700
CV
12652005-04-15 Corinna VInschen <vinschen@redhat.com>
1266
1267 * MAINTAINERS: Change sh64-elf state to non-broken.
1268 * Makefile.in: Fix dependencies for sh64-tdep.o.
1269 * configure.tgt: Add sh64-*-elf case.
1270 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
1271 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
1272 modern methods.
1273 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1274 * config/sh/sh64.mt: Resurrect.
1275
86fc41d1
KI
12762005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
1277
1278 * regformats/reg-m32r.dat: New file.
1279
28e97307
DJ
12802005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1281
1282 * arm-tdep.c (fp_model_strings): Add terminating NULL.
1283 (arm_abi_strings, arm_abi_global, arm_abi_string): New
1284 variables.
1285 (arm_extract_return_value, arm_store_return_value): Don't use
1286 arm_get_fp_model.
1287 (arm_get_fp_model, arm_set_fp): Delete.
1288 (arm_update_current_architecture): New function.
1289 (set_fp_model_sfunc): Call arm_update_current_architecture.
1290 (show_fp_model): Update output messages.
1291 (arm_set_abi, arm_show_abi): New functions.
1292 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
1293 (arm_gdbarch_init): Infer the object's ABI separately from its
1294 OSABI. Search for a matching architecture. Honor the global
1295 ABI and FPU settings. Set floating point format based on the
1296 architecture.
1297 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
1298 Delete.
1299 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
1300 Create "arm set abi" command.
1301 * arm-tdep.h (arm_get_fp_model): Delete prototype.
1302 (enum arm_abi_kind): New type.
1303 (struct gdbarch_tdep): Add arm_abi field.
1304 * arm-linux-tdep.c (arm_linux_init_abi): Only override
1305 tdep->fp_model if it is ARM_FLOAT_AUTO.
1306 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
1307 (arm_netbsd_elf_init_abi): Likewise.
1308 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
1309 * osabi.c (gdb_osabi_name): Likewise.
1310
9494c6a5
DJ
13112005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
1312
1313 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
1314
bdbcb8b4
MK
13152005-04-10 Mark Kettenis <kettenis@gnu.org>
1316
1317 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
1318 floating-point registers.
1319 (ppc_collect_fpregset): Likewise. Fix collection of registers.
1320
18b2ae85
MK
13212005-04-09 Mark Kettenis <kettenis@gnu.org>
1322
1323 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
1324 and "tramp-frame.h".
1325 (ppcobsd_sigtramp_cache_init): New function.
1326 (ppcobsd_sigtramp): New variable.
1327 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
1328 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
1329
06e819e3
AC
13302005-04-08 Andrew Cagney <cagney@gnu.org>
1331
1332 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
1333 Nasser have decided to step back from GDB/MI.
1334
6f8eac0e
DJ
13352005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
1336
1337 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
1338
0228dfb9
DJ
13392005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
1340
1341 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
1342 undefined_retaddr.
1343 (dwarf2_frame_cache): Initialize undefined_retaddr.
1344 (dwarf2_frame_this_id): Return an invalid frame ID if
1345 undefined_retaddr.
1346
21b4b2f2
JB
13472005-04-05 Jim Blandy <jimb@redhat.com>
1348
1349 Move construction of IA-32 vector types to i386-tdep.c.
1350 * gdbtypes.c (build_builtin_type_vec64i,
1351 build_builtin_type_vec128i): Delete functions.
1352 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
1353 (build_gdbtypes): Don't initialize them.
1354 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
1355 them.
1356 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
1357 declarations.
1358 (builtin_type_v2_float, builtin_type_v2_int32,
1359 builtin_type_v4_int16, builtin_type_v8_int8,
1360 builtin_type_v2_double, builtin_type_v4_float,
1361 builtin_type_v2_int64, builtin_type_v4_int32,
1362 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
1363 declarations.
1364 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
1365 (i386_build_mmx_type, i386_build_sse_type): New functions.
1366 (i386_register_type): Call them, rather than referring to
1367 builtin_type_vec64i and builtin_type_vec128i.
1368
37c4d197
DJ
13692005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
1370
1371 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
1372 big-endian correction code to not offset 32-bit registers.
1373 Locate floating point registers correctly.
1374
7509373f
MK
13752005-04-02 Mark Kettenis <kettenis@gnu.org>
1376
1377 * main.c: Update copyright year.
02dfa7de 1378 (captured_main): Avoid using strcpy and strcat.
7509373f 1379
9b3c083c
MS
13802005-04-01 Michael Snyder <msnyder@redhat.com>
1381
0c98cc2b
MS
1382 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
1383 computing this_id if there are no dummy frames on the stack.
1384
1fb1ca27
MS
1385 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
1386 find_partial_func instead of unwind_pc to identify frame.
1387 (mn10300_push_dummy_call): Handle struct args, struct_return.
1388
9b3c083c
MS
1389 * mn10300-prologue.c (set_movm_offsets): Don't test variable
1390 before setting it.
1391 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
1392 instead of skip_prologue_using_sal.
1393
186993b4
KB
13942005-03-31 Kevin Buettner <kevinb@redhat.com>
1395
1396 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
1397 (main_lm_addr): New static global.
1398 (frv_current_sos): Retain the link map address for each entry.
1399 (frv_clear_solib): Clear main_lm_addr.
1400 (frv_fetch_objfile_link_map): New function.
1401 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
1402 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
1403
b2756930
KB
14042005-03-31 Kevin Buettner <kevinb@redhat.com>
1405
1406 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
1407 * gdbarch.c, gdbarch.h: Regenerate.
1408 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
1409 address and pass this address, instead of the objfile address, to
1410 target_get_thread_local_address().
1411 * linux-thread-db.c (thread_db_get_thread_local_address): Change
1412 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
1413 not call svr4_fetch_objfile_link_map() to fetch the load module
1414 address.
1415 * target.h (struct target_ops): Change second parameter of
1416 ``to_get_thread_local_address'' from ``struct objfile *'' to
1417 ``CORE_ADDR''.
1418 * alpha-linux-tdep.c (solib-svr4.h): Include.
1419 (alpha_linux_init_abi): Register TLS load module fetcher.
1420 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1421 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
1422 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1423 * ia64-linux-tdep.c (solib-svr4.h): Include.
1424 (ia64_linux_init_abi): Register TLS load module fetcher.
1425 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
1426 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1427 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1428 * s390-tdep.c (s390_gdbarch_init): Likewise.
1429 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1430 * sparc64-linux-tdep.c (solib-svr4.h): Include.
1431 (sparc64_linux_init_abi): Register TLS load module fetcher.
1432 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
1433 (sparc-linux-tdep.o): Update dependencies.
1434
88750304
DJ
14352005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1436
1437 * c-valprint.c (c_value_print): Fix up some formatting. Use
1438 check_typedef.
1439
adb8a87c
DJ
14402005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1441
1442 * arm-linux-nat.c (store_register, store_regs): Handle
1443 ARM_PS_REGNUM.
1444
498b1f87
DJ
14452005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1446
1447 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
1448 (arm_linux_thumb_le_breakpoint): New. Update comments.
1449 (arm_linux_init_abi): Set Thumb breakpoints also.
1450
842e1f1e
DJ
14512005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1452
1453 * Makefile.in (arm-tdep.o): Update dependencies.
1454 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
1455 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
1456
6d1eba4c
JB
14572005-03-28 Joel Brobecker <brobecker@adacore.com>
1458
1459 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
1460 register value to be incorrectly written in the regcache.
1461 (fill_fpregset): Fix bug that caused the FSR register value
1462 to be incorrectly read from the regcache.
1463
fce5e386
DJ
14642005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1465
1466 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
1467 arm_pc_is_thumb_dummy.
1468
f700a364
MK
14692005-03-28 Mark Kettenis <kettenis@gnu.org>
1470
8391b9b1
MK
1471 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
1472 StackGhost.
1473
f700a364
MK
1474 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1475 Handle StackGhost in 64-bit code.
1476 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
1477
8da8e0b3
CF
14782005-03-27 Christopher Faylor <cgf@timesys.com>
1479
1480 * win32-nat.c (handle_exception): Treat win32 routines which check for
1481 valid addresses as "special" and don't stop when a SEGV is detected.
1482 (get_child_debug_event): Properly flag exception as unhandled.
1483
5e5100cb
DJ
14842005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
1485
1486 * cp-support.c (cp_class_name_from_physname): Rewrite.
1487 (unqualified_name_from_comp): New function, broken out from
1488 method_name_from_physname. Correct handling for typed names
1489 and templates.
1490 (method_name_from_physname): Use unqualified_name_from_comp.
1491 (cp_func_name, remove_params): Move earlier in the file. Add
1492 better comments. Use the component tree to parse the name.
1493 (_initialize_cp_support): Remove stray whitespace.
1494
a77f4086
MK
14952005-03-26 Mark Kettenis <kettenis@gnu.org>
1496
dc6a2ca4
MK
1497 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
1498
59bb1042
MK
1499 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
1500 Callapse HAVE_TERMIO and HAVE_SGTTY.
1501
a77f4086
MK
1502 * dwarf2-frame.c (execute_cfa_program): Implement
1503 DW_CFA_GNU_window_save.
1504
4d6c7108
MK
15052005-03-25 Mark Kettenis <kettenis@gnu.org>
1506
bac6b012
MK
1507 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
1508
4d6c7108
MK
1509 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
1510
4bf7064c
DJ
15112005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
1512
1513 * arm-tdep.c (target_is_thumb, caller_is_thumb)
1514 (arm_pc_is_thumb_dummy): Remove.
1515 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
1516
170cd118
AG
15172005-03-25 Anthony Green <green@redhat.com>
1518
1519 * remote.c (remote_store_registers): Fix memset usage.
1520 * std-regs.c (value_of_builtin_frame_reg): Ditto.
1521 (value_of_builtin_frame_fp_reg): Ditto.
1522 (value_of_builtin_frame_reg): Ditto.
1523
3eb25fda
MM
15242005-03-25 Mark Mitchell <mark@codesourcery.com>
1525
dd5da072
MM
1526 * ser-base.c (ser_unix_write): Rename to ...
1527 (ser_base_write): ... this.
1528 (ser_unix_nop_flush_output): Rename to ...
1529 (ser_base_flush_output): ... this.
1530 (ser_unix_flush_input): Rename to ...
1531 (ser_base_flush_input): ... this.
1532 (ser_unix_nop_send_break): Rename to ...
1533 (ser_base_send_break): ... this.
1534 (ser_unix_nop_drain_output): Rename to ...
1535 (ser_base_drain_output): ... this.
1536 (ser_unix_nop_raw): Rename to ...
1537 (ser_base_raw): ... this.
1538 (ser_unix_nop_get_tty_state): Rename to ...
1539 (ser_base_set_tty_state): ... this.
1540 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1541 (ser_base_noflush_set_tty_state): ... this.
1542 (ser_unix_nop_print_tty_state): Rename to ...
1543 (ser_base_print_tty_state): ... this.
1544 (ser_unix_nop_setbaudrate): Rename to ...
1545 (ser_base_setbaudrate): ... this.
1546 (ser_unix_nop_setstopbits): Rename to ...
1547 (ser_base_setstopbits): ... this.
1548 (ser_unix_async): Rename to ...
1549 (ser_base_async): ... this.
1550 * ser-base.h (ser_unix_write): Rename to ...
1551 (ser_base_write): ... this.
1552 (ser_unix_nop_flush_output): Rename to ...
1553 (ser_base_flush_output): ... this.
1554 (ser_unix_flush_input): Rename to ...
1555 (ser_base_flush_input): ... this.
1556 (ser_unix_nop_send_break): Rename to ...
1557 (ser_base_send_break): ... this.
1558 (ser_unix_nop_drain_output): Rename to ...
1559 (ser_base_drain_output): ... this.
1560 (ser_unix_nop_raw): Rename to ...
1561 (ser_base_raw): ... this.
1562 (ser_unix_nop_get_tty_state): Rename to ...
1563 (ser_base_set_tty_state): ... this.
1564 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1565 (ser_base_noflush_set_tty_state): ... this.
1566 (ser_unix_nop_print_tty_state): Rename to ...
1567 (ser_base_print_tty_state): ... this.
1568 (ser_unix_nop_setbaudrate): Rename to ...
1569 (ser_base_setbaudrate): ... this.
1570 (ser_unix_nop_setstopbits): Rename to ...
1571 (ser_base_setstopbits): ... this.
1572 (ser_unix_async): Rename to ...
1573 (ser_base_async): ... this.
1574 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
1575 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1576 * ser-unix.c (hardwire_flush_input): Likewise.
1577 (_initializer_ser_hardwire): Likewise.
1578
3eb25fda
MM
1579 * Makefile.in (SFILES): Add ser-base.c.
1580 (ser_base_h): New variable.
1581 (ser-base.o): New target.
1582 (ser-pipe.o): Depend on $(ser_base_h).
1583 (ser-tcp.o): Likewise.
1584 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
1585 * configure.ac (SER_HARDWIRE): Include ser-base.o where
1586 appropriate.
1587 * ser-base.c: New file.
1588 (push_event): Move from ser-unix.c.
1589 (fd_event): Likewise.
1590 (reschedule): Likewise.
1591 (ser_unix_write): Likewise.
1592 (ser_unix_nop_flush_output): Likewise.
1593 (ser_unix_flush_input): Likewise.
1594 (ser_unix_nop_send_break): Likewise.
1595 (ser_unix_nop_drain_output): Likewise.
1596 (ser_unix_nop_raw): Likewise.
1597 (ser_unix_nop_get_tty_state): Likewise.
1598 (ser_unix_nop_set_tty_state): Likewise.
1599 (ser_unix_nop_noflush_set_tty_state): Likewise.
1600 (ser_unix_nop_print_tty_state): Likewise.
1601 (ser_unix_nop_setbaudrate): Likewise.
1602 (ser_unix_nop_setstopbits): Likewise.
1603 (ser_unix_async): Likewise.
1604 * ser-base.h: New file.
1605 * ser-pipe.c (ser-base.h): Include it.
1606 * ser-tcp.c (ser-base.h): Likewise.
1607 * ser-unix.h (ser_unix_nop_flush_output): Remove.
1608 (ser_unix_flush_input): Likewise.
1609 (ser_unix_nop_send_break): Likewise.
1610 (ser_unix_nop_raw): Likewise.
1611 (ser_unix_nop_get_tty_state): Likewise.
1612 (ser_unix_nop_set_tty_state): Likewise.
1613 (ser_unix_nop_print_tty_state): Likewise.
1614 (ser_unix_nop_noflush_set_tty_state): Likewise.
1615 (ser_unix_nop_setbaudrate): Likewise.
1616 (ser_unix_nop_setstopbits): Likewise.
1617 (ser_unix_nop_drain_output): Likewise.
1618 (ser_unix_wait_for): Likewise.
1619 (ser_unix_write): Likewise.
1620 (ser_unix_async): Likewise.
1621 * ser-unix.c (event-loop.h): Do not include it.
1622 (push_event): Move to ser-base.c.
1623 (fd_event): Likewise.
1624 (reschedule): Likewise.
1625 (ser_unix_write): Likewise.
1626 (ser_unix_nop_flush_output): Likewise.
1627 (ser_unix_flush_input): Likewise.
1628 (ser_unix_nop_send_break): Likewise.
1629 (ser_unix_nop_drain_output): Likewise.
1630 (ser_unix_nop_raw): Likewise.
1631 (ser_unix_nop_get_tty_state): Likewise.
1632 (ser_unix_nop_set_tty_state): Likewise.
1633 (ser_unix_nop_noflush_set_tty_state): Likewise.
1634 (ser_unix_nop_print_tty_state): Likewise.
1635 (ser_unix_nop_setbaudrate): Likewise.
1636 (ser_unix_nop_setstopbits): Likewise.
1637 (ser_unix_async): Likewise.
1638 (ser_unix_wait_for): Make it static.
1639 * configure: Regenerated.
1640
8d5a9abc
MK
16412005-03-25 Mark Kettenis <kettenis@gnu.org>
1642
1643 * dwarf2-frame.h: Update copyrigh year.
1644 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
1645 * dwarf2-frame.c: Update copyright year.
1646 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
1647 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
1648 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
1649
b3041f52
MH
16502005-03-23 Martin Hunt <hunt@redhat.com>
1651
1652 * configure.ac: Remove -fwritable-strings from CFLAGS.
1653 * configure: Regenerate.
1654
6a069e57
MS
16552005-03-21 Michael Snyder <msnyder@redhat.com>
1656
1657 * mn10300-prologue.c (fix_frame_pointer): Delete.
1658 (set_movm_offsets) Don't return just because movm_args is
1659 zero -- still need to save pc and sp in saved_regs.
1660 (mn10300_analyze_prologue): Don't return prematurely without
1661 calling set_movm_offsets (for pc and sp at minimum).
1662
d3ea6809
MM
16632005-03-21 Mark Mitchell <mark@codesourcery.com>
1664
1665 * configure.ac (stat.st_blksize): Check for it.
1666 (getuid): Likewise.
1667 (getgid): Likewise.
1668 * configure: Regenerated.
1669 * config.in: Likewise.
1670 * remote-fileio.c (remote_fileio_to_fio_stat): Check
1671 HAVE_STRUCT_STAT_ST_BLKSIZE.
1672
d460b7f5
CF
16732005-03-21 Christopher Faylor <cgf@timesys.com>
1674
1675 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
1676 here.
1677 (do_initial_child_stuff): Move clearing of thread list to a place
1678 before a thread ould be created.
1679 (child_attach): Ditto.
1680
342ee437
MS
16812005-03-21 Michael Snyder <msnyder@redhat.com>
1682
1683 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
1684 instead of pc addr for frame_id. Otherwise "until" won't work.
1685
4f0d78e0
KB
16862005-03-21 Kevin Buettner <kevinb@redhat.com>
1687
1688 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
1689 comment.
1690
80d9c592
MK
16912005-03-20 Mark Kettenis <kettenis@gnu.org>
1692
4dd04433
MK
1693 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
1694 * varobj.c (my_value_equal): Mark val2 as volatile.
1695
ee426e0f 1696 * cp-names.y: Add prototype for yyparse.
80d9c592 1697
96ce45ca
DJ
16982005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
1699
1700 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
1701 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
1702 VALADDR.
1703
93ad78a7
KB
17042005-03-18 Kevin Buettner <kevinb@redhat.com>
1705
1706 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
1707 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
1708 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
1709 New error/exception enums.
1710 * dwarf2loc.c (exceptions.h): Include.
1711 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
1712 via TRY_CATCH mechanism. Print error messages for TLS related
1713 exceptions.
1714 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
1715 exceptions instead of printing errors.
1716
8cf46f62
MK
17172005-03-18 Mark Kettenis <kettenis@gnu.org>
1718
1719 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
1720 (decimal2str, octal2str): Change to return a string allocated by
1721 get_cell. Use xsnprint instead of snprintf.
1722 (paddr_u, paddr_d): Adjust for changed calling convention of
1723 decimal2str.
1724 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
1725 (int_string): Likewise. Adjust for changed calling convention of
1726 decimal2str and octal2str.
1727
f79d2c3c
KB
17282005-03-18 Kevin Buettner <kevinb@redhat.com>
1729
1730 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
1731 Adjust incorrectly computed constant for realtime signal frame.
1732
8cf46f62 17332005-03-18 Mark Kettenis <kettenis@gnu.org>
eb308878
MK
1734
1735 From Ralf Corsepius <ralf.corsepius@rtems.org>
1736 * configure.tgt: Add m68*-*-rtems*.
1737
06648491
MK
17382005-03-17 Mark Kettenis <kettenis@gnu.org>
1739
bde2058d
MK
1740 * defs.h (xsnprintf): New prototype.
1741 * utils.c (xsnprintf): New function.
1742
3ecda457
MK
1743 * corelow.c (get_core_register_section): Replace usage of sprintf
1744 and strcpy with xstrprintf and xstrdup.
1745
06648491
MK
1746 * mips-tdep.c (mips_single_step_through_delay): Put back check for
1747 breakpoint lost with the introduction of this function.
1748
16aff9a6
PB
17492005-03-17 Paul Brook <paul@codesourcery.com>
1750
1751 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
1752 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
1753
6d318c73
MM
17542005-03-16 Mark Mitchell <mark@codesourcery.com>
1755
ec442778
MM
1756 * event-top.c (handle_sigquit): Do not define for systems without
1757 SIGQUIT.
1758 (sigquit_token): Likewise.
1759 (async_init_signals): Allow for systems that do not
6d318c73
MM
1760 define SIGQUIT.
1761 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
1762
9b265ec2
MM
17632005-03-15 Mark Mitchell <mark@codesourcery.com>
1764
1765 * utils.c (internal_vproblem): Guard call to fork with
1766 HAVE_WORKING_FORK.
1767 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
1768 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
1769
1770 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
1771 S_IRGRP and related macros.
1772 (remote_fileio_mode_to_target): Likewise.
1773
3ae642fd
BE
17742005-03-14 Ben Elliston <bje@au.ibm.com>
1775
1776 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
1777 more primitive library.
1778
80d9c592 17792005-03-13 Mark Kettenis <kettenis@gnu.org>
fd0a2a6f
MK
1780
1781 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
1782 sprintf.
1783 * target.c (normal_pid_to_str): Likewise.
1784 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
1785 Change capitalization of "thread". Use ptid_get_pid instead of
1786 GETPID.
049742da
MK
1787
1788 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
1789 a combination of xmalloc and sprintf.
1790
ca231fcc
JB
17912005-03-13 Jim Blandy <jimb@redhat.com>
1792
1793 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
1794 * configure: Regenerated.
1795
b80b83f3
MS
17962005-03-11 Michael Snyder <msnyder@redhat.com>
1797
1798 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
1799 stub fn with real implementatin mn10300_unwind_dummy_id.
1800 (mn10300_push_dummy_call): Implement. Bare bones version,
1801 does not handle structs or floats.
1802
1f8ca57c
JB
18032005-03-11 Jim Blandy <jimb@redhat.com>
1804
a3b362c4
JB
1805 Avoid warnings due to the use of -Wuninitialized without -O.
1806 * configure.ac (build_warnings): Include -Wuninitialized only if
1807 CFLAGS is unset at configure time, or CFLAGS is set and includes
1808 some -O option other than -O0.
1809 * configure: Regenerated.
1810
1f8ca57c
JB
1811 * mips-tdep.c (show_mips_abi): Change calling conventions to match
1812 those expected by add_setshow_enum_cmd. Use 'file' argument as
1813 appropriate.
1814
fb4c6eba
DJ
18152005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1816
1817 * Makefile.in (SFILES): Add cp-names.y.
1818 (libiberty_h, safe_ctype_h): New.
1819 (YYFILES): Add cp-names.c.
1820 (YYOBJ): Add cp-names.o.
1821 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
1822 (clean): Remove test-cp-names$(EXEEXT).
1823 (local-maintainer-clean): Remove cp-names.c.
1824 * cp-names.y: New file.
1825 * cp-support.c (find_last_component): Delete.
1826 (d_left, d_right): Define.
1827 (cp_canonicalize_string, mangled_name_to_comp): New functions.
1828 (cp_class_name_from_physname, method_name_from_physname): Rewrite
1829 to use mangled_name_to_comp.
1830 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
1831 (cp_comp_to_string): New prototypes.
1832 * config/djgpp/fnchange.lst: Add cp-names.c.
1833
5b93de64
BR
18342005-03-10 Bob Rossi <bob@brasko.net>
1835
fb4c6eba 1836 * main.c (print_gdb_help): Remove the --[no]async help message.
5b93de64 1837
54433e38
MK
18382005-03-10 Mark Kettenis <kettenis@gnu.org>
1839
1840 * proc-api.c: Update copyright year.
1841 (_initialize_proc_api): Revert previous patch, removing spurious
1842 space instead.
1843
d2f0b918
JB
18442005-03-09 Joel Brobecker <brobecker@adacore.com>
1845
1846 * regcache.c: Fix typo in comment.
1847
e9274dd8
DL
18482005-03-09 David Lecomber <david@lecomber.net>
1849
1850 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
1851 i18n text.
1852
5b2d44a0
MK
18532005-03-09 Mark Kettenis <kettenis@gnu.org>
1854
1855 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
1856 address for 64-bit code.
1857 (sparc_unwind_dummy_id): Likewise.
1858 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
1859 frame base address convention.
1860 (sparc64_push_dummy_call): Likewise.
1861 * sparc64nbsd-tdep.c: Update copyright year.
1862 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
1863 address for 64-bit code.
1864 (sparc64nbsd_init_abi): Tweak comment.
1865 * sparc64obsd-tdep.c: Update copyright year.
1866 (sparc64obsd_frame_cache): Adjust cached frame base address for
1867 64-bit code.
1868 (sparc64obsd_init_abi): Tweak comment.
1869
8d19ca47 18702005-03-09 Corinna Vinschen <vinschen@redhat.com>
5b5464ad 1871
8d19ca47
CV
1872 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
1873
18742005-03-09 Joel Brobecker <brobecker@adacore.com>
1875
1876 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
1877 when creating include psymtabs.
5b5464ad 1878
1bf1958d
MM
18792005-03-08 Mark Mitchell <mark@codesourcery.com>
1880
1881 * environ.h (struct environ): Rename to ...
1882 (struct gdb_environ): ... this.
1883 (make_environ): Update prototype.
1884 (free_environ): Likewise.
1885 (init_environ): Likewise.
1886 (get_in_environ): Likewise.
1887 (set_in_environ): Likewise.
1888 (unset_in_environ): Likewise.
1889 (environ_vector): Likewise.
1890 * environ.c (make_environ): Replace "struct environ" with "struct
1891 gdb_environ".
1892 (free_environ): Likewise.
1893 (init_environ): Likewise.
1894 (environ_vector): Likewise.
1895 (get_in_environ): Likewise.
1896 (set_in_environ): Likewise.
1897 (unset_in_environ): Likewise.
1898 * infcmd.c (inferior_environ): Likewise.
1899 * inferior.h (inferior_environ): Likewise.
1900
f67a969f
JB
19012005-03-08 Joel Brobecker <brobecker@adacore.com>
1902
1903 * infcmd.c (run_command_1): New function, extracted from
1904 run_command.
1905 (run_command): Replace implementation by call to run_command_1.
1906 (start_command): Use run_command_1 to insert the temporary
1907 breakpoint and run the program. Remove code that's no longer
1908 needed, as already done at the proper time by run_command_1.
1909
c0501be5
DJ
19102005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1911
1912 * symfile.c (clear_symtab_users): Call
1913 clear_current_source_symtab_and_line first.
1914
549678da
NS
19152005-03-08 Nathan Sidwell <nathan@codesourcery.com>
1916
36e9969c
NS
1917 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
1918 * c-exp.y (exp): Add unary plus.
1919 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
1920 * valarith.c (value_x_unop): Add UNOP_PLUS case.
1921 (value_pos): New.
1922 * value.h (value_pos): Declare.
1923
3de11b2e
NS
1924 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
1925 (remote_fetch_registers): Allow uppercase hex when resyncing.
1926 (remote_write_bytes): Only call get_memory_write_packet_size once.
1927 Robustify packet size calculation for very small packets. Check
1928 that at least one byte will be written.
1929
549678da
NS
1930 * tracepoint.c (target_is_remote): Allow extended-remote.
1931 (struct collection_list): Allow 256 registers, like the comment
1932 said.
1933 (add_memrange): Fix comment.
1934 (read_actions): Turn EOF into 'end'.
1935
20be272b
CV
19362005-03-08 Corinna Vinschen <vinschen@redhat.com>
1937
1938 * Makefile.in: Add dependencies for iq2000-tdep.o.
1939 * configure.tgt: Add iq2000-*-* target.
1940 * iq2000-tdep.c: New file.
1941 * config/iq2000/iq2000.mt: New file.
1942
ea53e89f
JB
19432005-03-07 Joel Brobecker <brobecker@adacore.com>
1944
1945 * doc/observer.texi (executable_changed): New observer.
1946 * symtab.c: Include "observer.h".
1947 (find_main_name): New function.
1948 (main_name): If name_of_main is unset, then compute it
1949 using find_main_name.
1950 (symtab_observer_executable_changed): New function.
1951 (_initialize_symtab): Attach executable_changed observer.
1952 * exec.c: Include "observer.h".
1953 (exec_file_attach): Emit executable_changed notification.
1954 * symfile.c: Include "observer.h".
1955 (reread_symbols): Send an executable_changed if appropriate.
1956 * Makefile.in (exec.o): Add dependency on observer.h.
1957 (symfile.o): Likewise.
1958 (symtab.o): Likewise.
1959
bb044262
DJ
19602005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
1961
1962 * findvar.c (read_var_value): Don't allocate V when it will not
1963 be used. Add missing break for LOC_INDIRECT.
1964
9e07977b
MK
19652005-03-06 Mark Kettenis <kettenis@gnu.org>
1966
1967 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
1968 (sparc64fbsd_init_abi): Set skip_trampoline_code and
1969 solib_svr4_fetch_link_map_offsets.
1970 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
1971
88d7a738 19722005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
f75c00e4
DJ
1973
1974 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
1975 printing output. Use fprintf_unfiltered. Only print output when
1976 debugging.
1977
e5a8e242 19782005-03-05 Mark Kettenis <kettenis@gnu.org>
e219d7ce
MK
1979
1980 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
1981 argument.
1982 (sparc64_store_arguments): Constify.
1983
dda5f19a
MK
19842005-03-05 Mark Kettenis <kettenis@gnu.org>
1985
0d6e4ad7
MK
1986 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
1987 (alphabsd_fetch_inferior_registers): Rename from
1988 fetch_inferior_registers. Make static.
1989 (alphabsd_store_inferior_registers): Rename from
1990 store_inferior_registers. Make static.
1991 (_initialize_alphabsd_nat): New function.
1992 * Makefile.in (alphabsd-nat.o): Update dependencies.
1993 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
1994 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
1995 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
1996 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1997 alphabsd-nat.o.
1998 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
1999 "config/nm-bsd.h" and "elf/common.h".
2000 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
2001 "config/nm-nbsd.h".
2002
dda5f19a
MK
2003 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
2004 software_single_step.
2005
aac71672
MS
20062005-03-04 Michael Snyder <msnyder@redhat.com>
2007
2008 * mn10300-prologue.c: New file. Prologue analysis.
2009 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
2010 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
2011 until after analyze_prologue, and don't call trad_frame_set_base
2012 at all (let analyze_prologue do it).
2013
61e784e7
MS
20142005-03-04 Michael Snyder <msnyder@redhat.com>
2015
2016 * trad-frame.c (trad_frame_set_reg_value): New function.
2017 * trad-frame.h (trad_frame_set_reg_value): Export.
2018
6867ae3e
DJ
20192005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2020
2021 * Makefile.in (remote.o): Update dependencies.
2022 * remote.c: Include "observer.h".
2023
f90221d3
DJ
20242005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2025
2026 * target.c (target_read_memory_partial): Always initialize
2027 ERR.
2028 (target_write_memory_partial): Likewise.
2029
e20b4638
DJ
20302005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2031
2032 * remote.c (remote_open_1): Call observer_notify_inferior_created.
2033
909cf6ea
DJ
20342005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2035
2036 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
2037 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
2038 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
2039
d3587048
DJ
20402005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2041
2042 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
2043 Use LWP IDs.
2044
806048c6
DJ
20452005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2046
2047 * dwarf2loc.c (loclist_read_variable): Set optimized_out
2048 instead of reporting an error.
2049 * valprint.c (value_check_printable): New function.
2050 (common_val_print): New function. Use value_check_printable.
2051 (value_print): Use value_check_printable.
2052 * value.h (common_val_print): Add prototype.
2053
2054 * c-valprint.c (c_val_print): Use common_val_print.
2055 * cp-valprint.c (cp_print_value_fields): Likewise.
2056 (cp_print_hpacc_virtual_table_entries): Likewise.
2057 * f-valprint.c (f_val_print): Likewise.
2058 * jv-valprint.c (java_value_print, java_print_value_fields):
2059 Likewise.
2060 * scm-valprint.c (scm_value_print): Likewise.
2061 * stack.c (print_frame_args): Likewise.
2062 * varobj.c (c_value_of_variable): Likewise.
2063 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
2064 (pascal_object_print_value_fields): Likewise. Update call to
2065 pascal_object_print_static_field.
2066 (pascal_object_print_static_field): Remove TYPE argument. Use
2067 common_val_print.
2068
dd373385
EZ
20692005-02-25 Mark Kettenis <kettenis@gnu.org>
2070
2071 Committed by Elena Zannoni <ezannoni@redhat.com>
2072
2073 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
2074 info_ptr before building psymtabs for included files.
2075 (create_all_comp_units): Initailize initial length size of
2076 compilation header to zero.
2077 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
2078 sections are encountered within the same compilation header.
2079 (dwarf_decode_line_header): Pass compilation header in call to
2080 read_initial_length.
2081
920d2a44
AC
20822005-02-24 Andrew Cagney <cagney@gnu.org>
2083
2084 Add show_VARIABLE functions, update add_setshow call.
2085 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
2086 * valprint.c (_initialize_valprint, show_print_max)
2087 (show_stop_print_at_null, show_repeat_count_threshold)
2088 (show_prettyprint_structs, show_unionprint)
2089 (show_prettyprint_arrays, show_addressprint, show_input_radix)
2090 (show_output_radix): Ditto.
2091 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
2092 * utils.c (initialize_utils, show_chars_per_line)
2093 (show_lines_per_page, show_demangle, show_pagination_enabled)
2094 (show_sevenbit_strings, show_asm_demangle): Ditto
2095 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
2096 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
2097 * top.c (init_main, show_new_async_prompt)
2098 (show_async_command_editing_p, show_write_history_p)
2099 (show_history_size, show_history_filename, show_caution)
2100 (show_annotation_level, init_main): Ditto.
2101 * target.c (initialize_targets, show_targetdebug)
2102 (show_trust_readonly): Ditto.
2103 * symfile.c (_initialize_symfile, show_symbol_reloading)
2104 (show_ext_args, show_download_write_size)
2105 (show_debug_file_directory): Ditto.
2106 * source.c (_initialize_source, show_lines_to_list): Ditto.
2107 * solib.c (_initialize_solib, show_auto_solib_add)
2108 (show_solib_search_path): Ditto.
2109 * p-valprint.c (_initialize_pascal_valprint)
2110 (show_pascal_static_field_print): Ditto.
2111 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
2112 (show_print_symbol_filename): Add and update.
2113 * parse.c (_initialize_parse, show_expressiondebug): Dito.
2114 * observer.c (_initialize_observer, show_observer_debug): Dito.
2115 * maint.c (_initialize_maint_cmds, show_watchdog)
2116 (show_maintenance_profile_p): Dito.
2117 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
2118 * infrun.c (_initialize_infrun, show_debug_infrun)
2119 (show_stop_on_solib_events, show_follow_fork_mode_string)
2120 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
2121 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
2122 (show_unwind_on_signal_p): Ditto.
2123 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
2124 (_initialize_gdbtypes, show_overload_debug): Ditto.
2125 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
2126 (show_gdb_events_debug): Ditto.
2127 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
2128 (_initialize_gdbarch): Ditto.
2129 * frame.c (_initialize_frame, show_backtrace_past_main)
2130 (show_backtrace_past_entry, show_backtrace_limit)
2131 (show_frame_debug): Ditto.
2132 * exec.c (_initialize_exec, show_write_files): Ditto.
2133 * dwarf2read.c (_initialize_dwarf2_read)
2134 (show_dwarf2_max_cache_age): Ditto.
2135 * demangle.c (_initialize_demangler)
2136 (show_demangling_style_names): Ditto.
2137 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
2138 * cp-valprint.c (show_static_field_print)
2139 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
2140 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
2141 * cli/cli-logging.c (_initialize_cli_logging)
2142 (show_logging_overwrite, show_logging_redirect)
2143 (show_logging_filename): Ditto.
2144 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
2145 (init_cli_cmds, show_baud_rate, show_remote_debug)
2146 (show_remote_timeout, show_max_user_call_depth): Ditto.
2147 * charset.c (show_host_charset_name, show_target_charset_name)
2148 (initialize_charset): Ditto.
2149 * breakpoint.c (show_can_use_hw_watchpoints)
2150 (show_pending_break_support, _initialize_breakpoint): Ditto.
2151
2877b4cc
JB
21522005-02-23 Jim Blandy <jimb@redhat.com>
2153
2154 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
2155
e9c55a7b
AC
21562005-02-23 Andrew Cagney <cagney@gnu.org>
2157
2158 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
2159 SEC_XXX flags.
2160
04ac69aa
AC
21612005-02-22 Andrew Cagney <cagney@gnu.org>
2162
2163 * configure.ac: Only enaable insight when itcl is present.
2164 * configure: Re-generate.
2165
3470a02f
AC
21662005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2167
2168 Committed by Andrew Cagney.
2169 * infptrace.c (store_register): Fix typo.
2170
b66df561
AC
21712005-02-21 Andrew Cagney <cagney@gnu.org>
2172
2173 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
2174 * cli/cli-decode.h (add_set_cmd): Delete declaration.
2175 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
2176 * i386-nat.c (_initialize_i386_nat): Update call.
2177 * valprint.c (_initialize_valprint): Update comment.
2178 * gnu-nat.c (_initialize_gnu_nat): Update call.
2179
85e3476f
AM
21802005-02-21 Alan Modra <amodra@bigpond.net.au>
2181
2182 * elfread.c (elf_symtab_read): Discard section syms.
2183
4d28ad1e
AC
21842005-02-21 Andrew Cagney <cagney@gnu.org>
2185
eefe576e
AC
2186 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
2187 (deprecated_add_show_from_set): Delete function.
2188 * command.h (add_set_enum_cmd): Delete declaration.
2189 (deprecated_add_show_from_set): Delete declaration.
2190 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
2191 (deprecated_add_show_from_set): Delete declaration.
2192 * arm-tdep.c (_initialize_arm_tdep): Update comment.
2193 * kod.c (kod_set_os): Simplify.
2194 * infrun.c (set_schedlock_func): Simplify.
2195 * cli/cli-dump.c (add_dump_command): Update comment.
2196
525226b5
AC
2197 Replace string variables with a filename completer with
2198 add_setshow_optional_filename_cmd.
2199 * solib.c, symfile.c: Update.
2200 * cli/cli-setshow.c: Do not tidle expand the file.
2201
4d28ad1e
AC
2202 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
2203 and add_setshow_string_noescape_cmd.
2204 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
2205 NULL command's value.
2206 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
2207 * remote-sds.c, remote.c, symfile.c, top.c: Update.
2208
942fd9fe
AC
22092005-02-20 Andrew Cagney <cagney@gnu.org>
2210
7ab04401
AC
2211 Use add_setshow_enum_cmd through out.
2212 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
2213 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
2214
78f5381d
AC
2215 * mi/mi-main.c (captured_mi_execute_command): Use
2216 mi_cmd_interpreter_exec.
2217
b4b4ac0b
AC
2218 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
2219 function.
2220 * cli/cli-setshow.c (deprecated_show_value_hack)
2221 (do_setshow_command): Handle var_optional_filename.
2222 * command.h (enum var_types): Add var_optional_filename.
2223 (add_setshow_optional_filename_cmd): Declare.
2224 * infcmd.c (notice_args_read): Use.
2225
942fd9fe
AC
2226 * symfile-mem.c (symbol_file_add_from_memory): Pass
2227 target_read_memory to bfd_elf_bfd_from_remote_memory.
2228 (do_target_read_memory): Delete.
2229
a6c442d8
MK
22302005-02-16 Mark Kettenis <kettenis@gnu.org>
2231
2232 * value.h (value_contents_equal): New prototype.
2233 * value.c (value_contents_equal): New function.
2234 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
2235 include <math.h>.
2236 (varobj_set_value): Initialize error to zero.
2237 (varobj_update): Rename error2 to error and initialize it to zero.
2238 Slightly change the wording of some comments.
2239 (my_value_equal): Reimplement using TRY_CATCH and
2240 value_contents_equal.
2241
5bf193a2
AC
22422005-02-18 Andrew Cagney <cagney@gnu.org>
2243
c0d88b1b
AC
2244 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
2245 * command.h (add_setshow_integer_cmd): Declare.
2246 * cli/cli-cmds.c: Update.
2247
35096d9d
AC
2248 Use add_setshow_uinteger_cmd through out.
2249 * printcmd.c, source.c, utils.c, valprint.c: Update.
2250
85c07804
AC
2251 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
2252 and gdbarch.c.
2253 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
2254 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
2255 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
2256 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
2257 * varobj.c, cli/cli-cmds.c: Update.
2258 * gdbarch.c, gdb-events.c: Regenerate.
2259
5bf193a2
AC
2260 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
2261 code adding set/show boolean commands.
2262 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
2263 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
2264 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
2265 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
2266 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
2267 * cli/cli-cmds.c: Update.
2268
2c5b56ce
AC
22692005-02-17 Andrew Cagney <cagney@gnu.org>
2270
f397e303
AC
2271 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
2272 to filename_completer.
2273 * solib.c (_initialize_solib, reload_shared_libraries): Use
2274 add_setshow_filename_cmd.
2275 * serial.c (_initialize_serial): Ditto.
2276 * remote-utils.c (_initialize_sr_support): Ditto.
2277
26c41df3
AC
2278 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
2279 * command.h (add_setshow_string_noescape_cmd): Declare.
2280 * wince.c (_initialize_wince): Use.
2281 * symfile.c (_initialize_symfile): Use.
2282 (set_ext_lang_command): Update declaration.
2283 * corefile.c (_initialize_core): Use.
2284
2c5b56ce
AC
2285 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
2286 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2287 (add_setshow_filename_cmd, add_setshow_string_cmd)
2288 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
2289 fprint_setshow parameter.
2290 * command.h (fprint_setshow_ftype): Delete.
2291 (add_setshow_cmd_full, add_setshow_enum_cmd)
2292 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2293 (add_setshow_filename_cmd, add_setshow_string_cmd)
2294 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
2295 fprint_setshow parameter.
2296 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
2297 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
2298 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
2299 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
2300 * remote.c, target.c, cli/cli-logging.c: Update.
2301
08546159
AC
23022005-02-16 Andrew Cagney <cagney@gnu.org>
2303
2304 Merge setshow print and show parameters.
2305 * command.h (show_value_ftype): Define.
2306 (deprecated_show_value_hack): Declare.
2307 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2308 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2309 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
2310 (add_setshow_zinteger_cmd): Change type of show_func to
2311 show_value_ftype.
2312 * cli/cli-decode.h (struct cmd_list_element): Replace
2313 fprint_setshow with show_value_func.
2314 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
2315 parameter. Set show_value_func. Do not set cmd_sfunc.
2316 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2317 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2318 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
2319 (add_setshow_zinteger_cmd): Update.
2320 * complaints.c (complaints_show_value): Replace
2321 fprint_setshow_complaints.
2322 (_initialize_complaints): Update.
2323 * mips-tdep.c (show_mask_address): Update.
2324 * arm-tdep.c (show_fp_model): Update.
2325 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
2326 instead of fprint_setshow. Use deprecated_show_value_hack.
2327 (deprecated_show_value_hack): New function.
2328 * remote.c (add_packet_config_cmd, show_remote_cmd):
2329 (show_remote_protocol_P_packet_cmd)
2330 (show_remote_protocol_P_packet_cmd)
2331 (show_remote_protocol_Z_access_wp_packet_cmd)
2332 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2333 (show_remote_protocol_Z_packet_cmd)
2334 (show_remote_protocol_Z_read_wp_packet_cmd)
2335 (show_remote_protocol_Z_software_bp_packet_cmd)
2336 (show_remote_protocol_Z_write_wp_packet_cmd)
2337 (show_remote_protocol_binary_download_cmd)
2338 (show_remote_protocol_p_packet_cmd)
2339 (show_remote_protocol_qPart_auxv_packet_cmd)
2340 (show_remote_protocol_qSymbol_packet_cmd)
2341 (show_remote_protocol_vcont_packet_cmd): Update.
2342
1c7b1e5a
MK
23432005-02-16 Mark Kettenis <kettenis@gnu.org>
2344
2345 * wrapper.h: Update copyright year. Properly wrap a few
2346 prototypes.
2347 (struct gdb_wrapper_arguments): Remove forward declaration.
2348 * wrapper.c: Update copyright year. Include "ui-out.h".
2349 (struct gdb_wrapper_arguments): Remove.
2350 (struct captured_value_struct_elt_args): Remove.
2351 (wrapper_parse_exp_1, wrap_evaluate_expression)
2352 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
2353 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
2354 (do_captured_value_struct_elf): Remove functions.
2355 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
2356 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
2357 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
2358 Re-implement using TRY_CATCH.
2359
7124f6fb
YS
23602005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
2361
2362 * remote-e7000.c: unuse TM_FILE defined macro.
2363 (e7000_fetch_registers)
2364 (e7000_store_registers)
2365 (e7000_wait): delete NUM_REALREGS.
2366 * remote-hms.c: move TM_FILE macro.
2367 (CCR_REGNO): move define from tm-h8300.h.
2368
55e5a6d0
MK
23692005-02-15 Mark Kettenis <kettenis@gnu.org>
2370
2371 * amd64-linux-tdep.c: Update copyright year.
a348ae87
MK
2372 (amd64_linux_sigtramp_start): Use sizeof operator instead of
2373 LINUX_SIGTRAMP_LEN.
55e5a6d0 2374
77ef991d
JB
23752004-02-15 Joel Brobecker <brobecker@gnat.com>
2376
2377 From Paul Hilfinger <hilfinger@gnat.com>
2378 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
2379 SYMBOL_NATURAL_NAME to set type names.
2380
1bedd215
AC
23812005-02-15 Andrew Cagney <cagney@gnu.org>
2382
2383 Mark up add_com, add_info and add_prefix_cmd.
2384 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
2385 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
2386 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2387 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
2388 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
2389 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
2390 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
2391 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
2392 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
2393 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
2394 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
2395 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
2396 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
2397 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
2398 * tui/tui-stack.c, tui/tui-win.c: Update.
2399
66bf4b3a
AC
24002005-02-14 Andrew Cagney <cagney@gnu.org>
2401
3f325092
AC
2402 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
2403 * config/h8300/tm-h8300.h: Delete file.
2404
1a966eab
AC
2405 Mark up add_cmd.
2406 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
2407 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
2408 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
2409 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
2410 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
2411 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
2412 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
2413 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
2414 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
2415 * cli/cli-logging.c, tui/tui-regs.c: Update.
2416
7915a72c
AC
2417 Mark up add_setshow functions, replace "PRINT:" comment prefix
2418 with "FIXME: i18n:".
2419 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
2420 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
2421 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
2422 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
2423 * target.c, cli/cli-logging.c: Update.
2424
66bf4b3a
AC
2425 * utils.c (paddress): New function.
2426 * defs.h (paddress): Declare.
2427 * printcmd.c (deprecated_print_address_numeric): Rename
2428 print_address_numeric, call paddress.
2429 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
2430 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
2431 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
2432 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
2433 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
2434 * ada-valprint.c: Update.
2435
33e6b12b
RR
24362005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2437
2438 * MAINTAINERS: Add myself to "Write After Approval".
2439
f0bdd87d
YS
24402005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
2441
2442 Restore h8300 support.
2443 * configure.tgt: Add h8300-*-*
ba0e80db
YS
2444 * h8300-tdep.c: New file. Rewrite new frame code.
2445 * config/h8300/h8300.mt: New file. Restored Rev 1.3
2446 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
2447
2448 * MAINTAINERS: Add myself to "Write After Approval".
f0bdd87d 2449
e2e0b3e5
AC
24502005-02-11 Andrew Cagney <cagney@gnu.org>
2451
a3f17187
AC
2452 Mark up some of printf_filtered and printf_unfiltered.
2453 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
2454 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
2455 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
2456 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
2457 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
2458 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
2459 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
2460 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
2461 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
2462 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
2463 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
2464 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
2465 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
2466 * tui/tui-regs.c, tui/tui-win.c: Update.
2467
e2e0b3e5
AC
2468 Mark up error_no_arg, query, perror_with_name, complaint, and
2469 internal_error.
2470 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
2471 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
2472 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
2473 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
2474 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
2475 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
2476 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
2477 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
2478 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
2479 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
2480 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
2481 * interps.c, language.c, linespec.c, linux-nat.c: Update.
2482 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
2483 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
2484 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
2485 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
2486 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
2487 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
2488 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
2489 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
2490 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
2491 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
2492 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
2493 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
2494 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
2495 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
2496 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
2497 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
2498 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
2499 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
2500 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
2501 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
2502 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
2503 * tui/tui-file.c, tui/tui-interp.c: Update.
8a3fe4f8 2504
e2e0b3e5
AC
25052005-02-10 Andrew Cagney <cagney@gnu.org>
2506
8a3fe4f8
AC
2507 Mark up all error and warning messages.
2508 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
2509 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
2510 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
2511 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
2512 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
2513 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
2514 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
2515 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
2516 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
2517 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
2518 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
2519 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
2520 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
2521 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
2522 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
2523 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
2524 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
2525 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2526 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
2527 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
2528 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
2529 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
2530 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
2531 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
2532 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
2533 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
2534 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
2535 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
2536 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
2537 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
2538 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
2539 * remote-utils.c, remote-utils.h, remote.c: Update.
2540 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
2541 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
2542 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
2543 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
2544 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
2545 * somread.c, somsolib.c, source.c, stabsread.c: Update.
2546 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
2547 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
2548 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
2549 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
2550 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
2551 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
2552 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
2553 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
2554 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
2555 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
2556 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
2557 * tui/tui-win.c: Update.
2558
3517749c
ILT
25592005-02-10 Ian Lance Taylor <ian@airs.com>
2560
2561 * MAINTAINERS: Update my e-mail address.
2562
cf309262
DJ
25632005-02-10 Daniel Jacobowitz <dan@debian.org>
2564
2565 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
2566 PR exp/1821
2567 * cp-valprint.c: Include "language.h".
2568 (cp_print_value_fields): Pass the current language to
2569 fprintf_symbol_filtered.
2570 * Makefile.in (cp-valprint.o): Update dependencies.
2571
899506a8
AC
25722005-02-10 Andrew Cagney <cagney@gnu.org>
2573
335cca0d
AC
2574 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
2575 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2576 (add_setshow_filename_cmd, add_setshow_string_cmd)
2577 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
2578 print string parameter with fprint_setshow function.
2579 * command.h (fprint_setshow_ftype): Define. Update declarations.
2580 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
2581 available, use that.
2582 * cli/cli-decode.h (struct cmd_list_element): Add field
2583 fprint_setshow.
2584 * complaints.c (fprint_setshow_complaints): New function.
2585 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
2586 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
2587 with NULL.
2588 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2589 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2590 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2591 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2592 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2593 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2594 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
2595 * frame.c (_initialize_frame): Ditto.
2596 * target.c (initialize_targets): Ditto.
2597 * maint.c (_initialize_maint_cmds): Ditto.
2598 * observer.c (_initialize_observer): Ditto.
2599 * infcall.c (_initialize_infcall): Ditto.
2600 * breakpoint.c (_initialize_breakpoint): Ditto.
2601 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2602 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2603
899506a8
AC
2604 * cli/cli-setshow.c (do_setshow_command): Move code printing the
2605 value to the end of the function. Handle MI and non-MI output
2606 differently.
2607
59c58d08
AC
26082005-02-09 Andrew Cagney <cagney@gnu.org>
2609
7376b4c2
AC
2610 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
2611 show_result parameters.
2612 * mips-tdep.c (_initialize_mips_tdep): Update calls.
2613 * command.h: Update declaration.
2614 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
2615 calls.
2616
11dced61
AC
2617 * NEWS: Mention removed commands.
2618 * m68hc11-tdep.c (show_regs): Delete, unused.
2619 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
2620 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
2621 eventdebug" commands.
2622 * gdb-events.c: Regenerate.
2623 * gdbarch.sh: Delete deprecated "set archdebug" and "show
2624 archdebug" commands.
2625 * gdbarch.c: Regenerate.
2626 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
2627 remotedebug" and "show remotedebug".
2628 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
2629 disassembly-flavor", "show arm disassembly-flavor", and
2630 "othernames" commands.
2631 (arm_othernames): Delete unused function.
2632
b6e1c027
AC
2633 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
2634 (convert_code_addr_to_desc_addr): Convert any function code
2635 address to the corresponding function's descriptor.
2636 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
2637 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
2638 writing, convert any function code address to the corresponding
2639 descriptor.
2640
59c58d08
AC
2641 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
2642 * config/powerpc/linux.mt (TDEPFILES): Ditto.
2643 * config/pa/linux.mt (TDEPFILES): Ditto.
2644 * config/mips/linux.mt (TDEPFILES): Ditto.
2645 * config/m68k/linux.mt (TDEPFILES): Ditto.
2646 * config/m32r/linux.mt (TDEPFILES): Ditto.
2647 * config/ia64/linux.mt (TDEPFILES): Ditto.
2648 * config/arm/linux.mt (TDEPFILES): Ditto.
2649
b6e1c027
AC
26502005-02-09 Corinna Vinschen <vinschen@redhat.com>
2651
2652 * symmisc.c: Include gdb_stat.h.
2653 (maintenance_print_msymbols): Use inode numbers to compare files.
2654
91294c83
AC
26552005-02-08 Andrew Cagney <cagney@gnu.org>
2656
d3cbe7ef
AC
2657 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2658 (METHOD_PTR_TO_VOFFSET): Move from here ...
2659 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2660 (METHOD_PTR_TO_VOFFSET): ... to here.
2661 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
2662 * Makefile.in: Update dependencies.
2663
6941d02a
AC
2664 * exceptions.c: Do not include <setjmp.h>.
2665 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
2666 (catch_exception, catch_exceptions_with_msg, catch_errors)
2667 (catch_command_errors): Use TRY_CATCH.
2668 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
2669 (exceptions_state_mc_init): Rename catcher_init.
2670 (exceptions_state_mc): Rename catcher_state_machine.
2671 (exceptions_state_mc_action_iter)
2672 (exceptions_state_mc_action_iter_1): New functions.
2673 * exceptions.h: Include <setjmp.h>.
2674 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
2675 (EXCEPTIONS_SIGLONGJMP): Define.
2676 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
2677 (exceptions_state_mc_action_iter_1): Declare.
2678 (TRY_CATCH): Define.
2679
179f02be
AC
2680 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
2681 no longer needed.
2682
8f135812
AC
2683 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
2684 PT_FPSCR breakage.
2685
91294c83
AC
2686 * value.c (struct value): Move to here ...
2687 * value.h (struct value): ... from here. Copy comments to
2688 corresponding function declarations, re-order.
2689
dfa52d88
AC
26902005-02-07 Andrew Cagney <cagney@gnu.org>
2691
9bbda503
AC
2692 * value.c (set_value_bitpos, set_value_bitsize): Define.
2693 * value.h (set_value_bitpos, set_value_bitsize): Declare.
2694 * ada-lang.c, valarith.c: Update.
2695
5086187c
AC
2696 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
2697 value_contents_writeable, include note that there are problems.
2698 * breakpoint.c, infcall.c: Use VALUE_LVAL.
2699
f5cf64a7
AC
2700 * value.h (set_value_offset): Declare.
2701 * value.c (set_value_offset): Declare.
2702 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
2703 * findvar.c: Update.
2704
17cf0ecd
AC
2705 * value.h (value_next): Declare.
2706 * value.c (value_next): Define.
2707 * breakpoint.c: Update.
2708
88e3b34b
AC
2709 * value.h (deprecated_set_value_modifiable)
2710 (deprecated_value_modifiable): Declare.
2711 * value.c (deprecated_set_value_modifiable): Define.
2712 (deprecated_value_modifiable): Define.
2713 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
2714
04624583
AC
2715 * value.h (deprecated_set_value_type): Declare.
2716 * value.c (deprecated_set_value_type): Define.
2717 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
2718 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
2719 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
2720 * ax-gdb.c, tracepoint.c: Update.
2721
13bb5560
AC
2722 * value.h (deprecated_value_lval_hack)
2723 (deprecated_value_address_hack)
7d71e29c 2724 (deprecated_value_internalvar_hack)
13bb5560
AC
2725 (deprecated_value_regnum_hack): Declare.
2726 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
2727 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
2728 * value.c (deprecated_value_lval_hack)
2729 (deprecated_value_address_hack)
7d71e29c 2730 (deprecated_value_internalvar_hack)
13bb5560
AC
2731 (deprecated_value_regnum_hack): Define.
2732
b44d461b
AC
2733 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
2734 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
2735 * value.c (set_value_pointed_to_offset): Define
2736 (value_pointed_to_offset): Define.
2737 * valops.c: Update.
2738
caadb61d
AC
2739 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
2740 (value_embedded_offset, set_value_embedded_offset): Declare.
13c3b5f5 2741 * value.c (value_embedded_offset): Define.
caadb61d 2742 (set_value_embedded_offset): Define.
13c3b5f5
AC
2743 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
2744 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
2745 * cp-abi.h: Update.
2746
dfa52d88
AC
2747 * value.h (VALUE_LAZY): Delete
2748 (set_value_lazy): Declare.
2749 * value.c (set_value_lazy): Define.
2750 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
2751 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
2752
0fd88904
AC
27532005-02-06 Andrew Cagney <cagney@gnu.org>
2754
feb13ab0
AC
2755 * value.h (VALUE_OPTIMIZED_OUT): Delete.
2756 (value_optimized_out, set_value_optimized_out): Declare.
2757 * value.c (set_value_optimized_out, value_optimized_out): Define.
2758 * valprint.c, findvar.c, dwarf2loc.c: Update.
2759
0fd88904
AC
2760 * value.c (value_contents, value_contents_writeable): New
2761 functions.
2762 * value.h (VALUE_CONTENTS): Delete macro.
2763 (value_contents, value_contents_writeable): Declare.
2764 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
2765 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
2766 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
2767 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
2768 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
2769 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
2770 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
2771 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
2772 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
2773 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
2774 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
2775 * ada-valprint.c, ada-lang.c: Update.
2776
5b90c7b5
AC
27772005-02-03 Andrew Cagney <cagney@gnu.org>
2778
2779 * utils.c (xzalloc): New function.
2780 * defs.h (XZALLOC): Use xzalloc.
2781 (xzalloc): Declare.
2782 * value.c (allocate_value): Allocate a zeroed buffer.
2783 * mdebugread.c (xzalloc): Delete.
2784
4754a64e
AC
27852005-02-02 Andrew Cagney <cagney@gnu.org>
2786
d69fe07e
AC
2787 * value.h (value_lazy): Declare.
2788 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
2789 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
2790
46615f07
AC
2791 * value.h (VALUE_CONTENTS_ALL): Delete.
2792 (value_contents_all): Declare.
2793 * value.c (value_contents_all): New function.
2794 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
2795 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
2796
4754a64e
AC
2797 * value.c (value_enclosing_type): New function.
2798 * value.h (VALUE_ENCLOSING_TYPE): Delete.
2799 (value_enclosing_type): Declare.
2800 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
2801 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
2802
990a07ab
AC
2803 * value.c (value_contents_all_raw)
2804 (value_contents_raw): New functions.
2805 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
2806 (value_contents_raw, value_contents_all_raw): Declare functions.
2807 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
2808 * std-regs.c, valarith.c, valops.c, eval.c: Update.
2809 * tracepoint.c, findvar.c: Update.
2810
ff2c3e5d
OF
28112005-02-01 Orjan Friberg <orjanf@axis.com>
2812
2813 * regformats/reg-cris.dat: New file with register definitions for CRIS.
2814 * regformats/reg-crisv32.dat: Ditto for CRISv32.
2815
c46f8c51
AC
28162005-01-31 Andrew Cagney <cagney@gnu.org>
2817
2818 * configure: Regenerate to track ../gettext.m4.
2819
a80493b8
BI
28202005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
2821
2822 * MAINTAINERS: Add myself to "Write After Approval".
2823
3d263c1d
BI
2824 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
2825 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
2826 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
2827
c21a4eee
MK
28282005-01-29 Mark Kettenis <kettenis@gnu.org>
2829
2830 * configure.ac: Remove extra check for ranlib.
2831 * configure: Regenerated.
2832
108d6ead
AC
28332005-01-28 Andrew Cagney <cagney@gnu.org>
2834
a2bd3dcd
AC
2835 * language.h (struct language_defn): Make la_val_print's buffer
2836 parameter a const bfd_byte.
2837 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
2838 * ada-lang.c (ada_aligned_value_addr)
2839 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2840 * valprint.c (val_print_array_elements): Update.
2841 * valprint.h (val_print_array_elements): Update.
2842 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
2843 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2844 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
2845 (ada_val_print_1, ada_print_floating, printable_val_type)
2846 (print_record, val_print_packed_array_elements)
2847 (print_field_values, print_variant_part): Update.
2848 * c-lang.h (c_val_print, cp_print_value_fields): Update.
2849 * c-valprint.c (c_val_print): Update.
2850 * f-lang.h (f_val_print): Update.
2851 * f-valprint.c (f_val_print, f77_print_array_1)
2852 (f77_print_array): Update.
2853 * jv-lang.h (java_val_print): Update.
2854 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
2855 * language.c (unk_lang_val_print): Update.
2856 * m2-lang.h (m2_val_print): Update.
2857 * m2-valprint.c (m2_val_print): Update.
2858 * p-lang.h (pascal_val_print): Update.
2859 (pascal_object_print_value_fields): Update.
2860 * p-valprint.c (pascal_val_print)
2861 (pascal_object_print_value_fields, pascal_object_print_value)
2862 (pascal_object_print_value): Update.
2863 * scm-lang.h (scm_val_print): Update.
2864 * scm-valprint.c (scm_val_print): Update.
2865 * value.h (val_print): Update.
2866
5bcca90b
AC
2867 * p-lang.h (pascal_object_print_class_member)
2868 (pascal_object_print_class_method): Make buffer a const bfd_byte.
2869 * p-valprint.c (pascal_object_print_class_method)
2870 (pascal_object_print_class_method): Ditto.
2871
ce27fb25
AC
2872 * language.h (struct language_defn): Make la_printstr's buffer
2873 parameter a const bfd_byte.
2874 * p-lang.h (pascal_printstr): Update function to match.
2875 * ada-valprint.c (ada_printstr): Update function to match.
2876 * scm-lang.c (scm_printstr): Update function to match.
2877 * p-lang.c (pascal_printstr): Update function to match.
2878 * ada-lang.h (ada_printstr): Update function to match.
2879 * m2-lang.c (m2_printstr): Update function to match.
2880 * objc-lang.c (objc_printstr): Update function to match.
2881 * c-lang.h (c_printstr): Update function to match.
2882 * f-lang.c (f_printstr): Update function to match.
2883 * c-lang.c (c_printstr): Update function to match.
2884 * language.c (unk_lang_printstr): Update function to match.
2885
5f547748
AC
2886 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
2887 * valprint.h (val_print_type_code_int): Ditto.
2888
bbb4b9db
AC
2889 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
2890
9519ccd5
AC
2891 * cp-valprint.c (cp_print_class_method)
2892 (cp_print_class_member): Make buffer a const bfd_byte.
2893 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
2894
10a2c479
AC
2895 * ada-lang.c (value_from_contents_and_address)
2896 (to_record_with_fixed_variant_part)
2897 (value_tag_from_contents_and_address, ada_to_fixed_type)
2898 (to_fixed_variant_branch_type, to_fixed_record_type)
2899 (ada_template_to_fixed_record_type, cond_offset_host)
2900 (ada_template_to_fixed_record_type_1): Make buffer a const
2901 bfd_byte.
2902 * ada-lang.h (ada_template_to_fixed_record_type_1)
2903 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
2904
d56612af
AC
2905 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
2906
366b1cbf 2907 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
d56612af 2908 * printcmd.c (print_scalar_formatted): Update.
366b1cbf 2909
c84141d6
AC
2910 * value.h (value_bit_index, print_floating)
2911 (find_rt_vbase_offset): Make buffer a const bfd_byte.
2912 * valprint.c (print_floating): Update.
2913 * valarith.c (value_bit_index): Update.
2914 * valops.c (find_rt_vbase_offset): Update.
2915
6c403953
AC
2916 * valprint.h (print_octal_chars, print_char_chars)
2917 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
2918 buffer a const bfd_byte.
2919 * valprint.c (print_binary_chars, print_octal_chars)
2920 (print_decimal_chars, print_hex_chars, print_char_chars): Make
2921 "valaddr"buffer a const bfd_byte, ditto for local variables
2922 referencing that buffer.
2923
a8d6eb4a
AC
2924 * m2-valprint.c: Include "c-lang.h".
2925 (c_val_print): Delete extern declaration.
2926 * scm-valprint.c: Include "c-lang.h".
2927 (c_val_print): Delete extern declaration.
2928 Makefile.in: Update dependencies.
2929
06c4d4dc
AC
2930 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
2931 bfd_byte.
2932 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
2933 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
2934 bfd_byte.
2935 * cp-abi.c (baseclass_offset): Update.
2936 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
2937
6b08edad
AC
2938 * gnu-v2-abi.h: New file.
2939 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
2940 (gnuv2_baseclass_offset): Delete declaration.
2941 * hpacc-abi.c: Include "gnu-v2-abi.h".
2942 (gnuv2_baseclass_offset): Delete extern declaration.
2943 * Makefile.in: Update dependencies.
2944
108d6ead
AC
2945 * doublest.c (floatformat_is_negative, floatformat_is_nan)
2946 (floatformat_mantissa, get_field): Make the buffer a const
2947 bfd_byte, simplify.
2948
a53bf506
AC
29492005-01-27 Andrew Cagney <cagney@gnu.org>
2950
8cc2524a
AC
2951 * value.h (struct value): Change type of contents to bfd_byte.
2952 (VALUE_CONTENTS_RAW): Simplify.
2953
79dd2d24
AC
2954 * gdbarch.sh (integer_to_address): Change buf parameter to a const
2955 bfd_byte, make pure-multi-arch.
2956 * gdbarch.h, gdbarch.c: Regenerate.
2957 * mips-tdep.c (mips_integer_to_address): Update.
2958 * value.c (value_as_address): Update.
2959
c26b8e3b
AC
2960 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
2961 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
2962 parameters const, change buf to a const bfd_byte.
2963 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
2964 parameters const.
2965
10e2d419
AC
2966 * corefile.c (write_memory): Update, make a copy of the read-only
2967 buffer.
2968 * target.c (target_read_memory): Update.
2969 (target_write_memory): Update, make a copy of the read-only
2970 buffer.
2971 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
2972 const.
2973 * target.h (target_read_memory, target_write_memory): Change
2974 buffer type to bfd_byte; for write_memory, make it const.
2975 * symfile-mem.c (do_target_read_memory): New function.
2976 (symbol_file_add_from_memory): Pass do_target_read_memory to
2977 bfd_elf_bfd_from_remote_memory.
2978
89f5065b
AC
2979 * value.h: Indent using gdb_indent.sh.
2980
a53bf506
AC
2981 * configure: Regenerate to track ../gettext.m4 change.
2982
c44ca51c
AC
29832005-01-26 Andrew Cagney <cagney@gnu.org>
2984
2985 * rs6000-tdep.c: Include "reggroups.h".
2986 (rs6000_gdbarch_init): Set register_reggroup_p.
2987 (rs6000_register_reggroup_p): New function.
2988
c600d464
OF
29892005-01-26 Orjan Friberg <orjanf@axis.com>
2990
2991 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
2992 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
2993 CRISv32.
2994 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
2995 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
2996 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
2997 (crisv32_register_type, cris_special_register_name)
2998 (crisv32_register_name): New functions.
2999 (cris_spec_reg_applicable): Recognize more versions.
3000 (cris_register_name): Update with call to cris_special_register_name.
3001 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
3002 warning when unable to find step target.
3003 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
3004 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
3005 CRISv32.
3006 (fetch_core_registers): Update for CRISv32.
3007 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
3008 register_name, cannot_store_register, cannot_fetch_register,
3009 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
3010
82c94ed0
NR
30112005-01-26 Nick Roberts <nickrob@snap.net.nz>
3012
3013 * interps.c (interpreter_exec_cmd): Use condition,
3014 e.reason < 0, to raise an error.
3015
0598a43c
AC
30162005-01-25 Andrew Cagney <cagney@gnu.org>
3017
a8f60bfc
AC
3018 * ppc-linux-tdep.c: Include "tramp-frame.h"
3019 (struct ppc_linux_sigtramp_cache)
3020 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3021 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3022 (ppc_linux_sigtramp_cache): Delete.
3023 (ppc32_linux_sigaction_cache_init)
3024 (ppc64_linux_sigaction_cache_init)
3025 (ppc32_linux_sighandler_cache_init)
3026 (ppc64_linux_sighandler_cache_init)
3027 (ppc32_linux_sigaction_tramp_frame)
3028 (ppc64_linux_sigaction_tramp_frame)
3029 (ppc32_linux_sighandler_tramp_frame)
3030 (ppc64_linux_sighandler_tramp_frame)
3031 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
3032 64-bit, sigaction and siginfo tramp-frame unwinders.
3033
0598a43c
AC
3034 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
3035 long_double_bit to 8.
3036
9d799f85
AC
30372005-01-24 Andrew Cagney <cagney@gnu.org>
3038
3039 * infrun.c (handle_inferior_event): Handle back-to-back and nested
3040 signals where the step_resume_breakpoint may have already been
3041 inserted.
3042
45181ed1
AC
30432005-01-24 Andrew Cagney <cagney@gnu.org>
3044
3045 * configure: Regenerate, ../gettext.m4 was updated.
3046
a28109e0
MK
30472005-01-23 Mark Kettenis <kettenis@gnu.org>
3048
6fe85783
MK
3049 * NEWS: Mention new BSD user-level threads support.
3050
a28109e0
MK
3051 * i386obsd-tdep.c: Update copyright year. Include
3052 "bsd-uthread.h".
3053 (i386obsd_uthread_reg_offset): New variable.
3054 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
3055 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
3056 functions.
3057 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
3058 * Makefile.in (i386obsd-tdep.o): Update dependencies.
3059 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
3060
059198c1
CF
30612005-01-23 Christopher Faylor <cgf@timesys.com>
3062
3063 * win32-nat.c: Update copyright year.
3064 (child_init_thread_list): Set thread linked list point to NULL so that
3065 it won't be reused after clearing.
3066
5c45e068
MK
30672005-01-21 Mark Kettenis <kettenis@gnu.org>
3068
3069 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
3070 undefs.
3071 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
3072 thread' has a td_pcb member and whether `struct reg' has r_fs and
3073 r_gs members.
3074 * configure, config.in: Regenerate.
3075
666ec76f
MK
30762005-01-21 Mark Kettenis <kettenis@gnu.org>
3077
b8667b61
MK
3078 * configure.ac: Remove ia64-*-aix* junk.
3079 * configure: Regenerate.
3080
a3828db0
MK
3081 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
3082 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
3083 is necessary.
3084 * configure, config.in: Regenerate.
3085 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
3086 BFD_NEED_DECLARATION. Never provide a prototype for
3087 caninicalize_file_name.
3088 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
3089 BFD_NEED_DECLARATION.
3090
666ec76f
MK
3091 * configure.ac (targ_archs): Use standard autoconf check for
3092 "struct stat.st_blocks" instead of rolling our own.
3093 * configure: Regenerated.
3094 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
3095 * config.in: Regenerated.
3096
bc8bcb4b
MK
30972005-01-21 Mark Kettenis <kettenis@gnu.org>
3098
3099 * configure.ac: Modernize checks for `long long' and `long double'
3100 support.
3101 * configure: Regenerated.
3102 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
3103 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
3104 * config.in: Regenerated.
3105
30adeb3a
MK
31062005-01-20 Mark Kettenis <kettenis@gnu.org>
3107
3108 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
3109 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
3110 * configure.ac: Remove checks for HP-UX save_state structure.
3111 * configure: Regenerated.
3112
e06e2353
AC
31132005-01-19 Andrew Cagney <cagney@gnu.org>
3114
3115 * utils.c (quit): Simplify, call fatal.
3116 * exceptions.c: Include "serial.h"
3117 (print_flush): Mimic flush code found in utils.c:quit.
3118 * Makefile.in: Update dependencies.
3119
1c44323f
JB
31202005-01-19 Jim Blandy <jimb@redhat.com>
3121
065a1afc
JB
3122 * configure.tgt: Set build_rdi_share to "yes" on those targets
3123 that use that debugging protocol.
3124 Set build_nlm to yes to build NLM stub for Netware targets.
3125 * configure.ac: If build_rdi_share is "yes", then configure the
3126 rdi-share subdirectory.
3127 If build_nlm is "yes", the configure the "nlm" subdirectory.
3128 * configure: Regenerated.
3129
1c44323f
JB
3130 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
3131 autoconf 2.59 and automake 1.9.3.
3132
8a9de0e4
AC
31332005-01-19 Andrew Cagney <cagney@gnu.org>
3134
315a522e
AC
3135 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
3136 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
3137 * utils.c (internal_verror, quit): Update.
3138 * remote-sds.c (interrupt_query): Update.
3139 * remote-mips.c (mips_error, mips_kill): Update.
3140 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
3141 * remote.c (interrupt_query): Update.
3142 * ocd.c (interrupt_query): Update.
3143 * nto-procfs.c (interrupt_query): Update.
3144 * monitor.c (monitor_interrupt_query): Update.
3145 * breakpoint.c (break_command_1): Update.
3146
8a9de0e4
AC
3147 * infrun.c: (resume, proceed, wait_for_inferior)
3148 (handle_inferior_event, stop_stepping)
3149 (prepare_to_wait): Write debug output to gdb_stdlog.
3150
53283f86
MK
31512005-01-19 Mark Kettenis <kettenis@gnu.org>
3152
3153 * inf-ptrace.c (inf_ptrace_prepare_to_store)
3154 (inf_ptrace_post_startup_inferior)
3155 (inf_ptrace_acknowledge_created_inferior)
3156 (inf_ptrace_insert_fork_catchpoint)
3157 (inf_ptrace_remove_fork_catchpoint)
3158 (inf_ptrace_insert_vfork_catchpoint):
3159 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
3160 (inf_ptrace_insert_exec_catchpoint)
3161 (inf_ptrace_remove_exec_catchpoint): Remove functions.
3162 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
3163 (inf_ptrace_target): Don't set to_prepare_to_store,
3164 to_post_startup_inferior, to_acknowledge_created_inferior,
3165 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
3166 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3167 to_follow_fork, to_insert_exec_catchpoint,
3168 to_remove_exec_catchpoint.
3169
9ee907e0
AC
31702005-01-18 Andrew Cagney <cagney@gnu.org>
3171
fa113d1a
AC
3172 * target.h (struct target_ops): Change return type of
3173 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
3174 to_insert_exec_catchpoint to void.
3175 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
3176 (child_insert_exec_catchpoint): Change return type to void.
3177 * target.c (update_current_target): Update.
3178 (debug_to_insert_fork_catchpoint)
3179 (debug_to_insert_vfork_catchpoint)
3180 (debug_to_insert_exec_catchpoint): Update.
3181 * inf-child.c (inf_child_insert_fork_catchpoint)
3182 (inf_child_insert_vfork_catchpoint)
3183 (inf_child_insert_exec_catchpoint): Update.
3184 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
3185 * linux-nat.c (child_insert_fork_catchpoint)
3186 (child_insert_vfork_catchpoint)
3187 (child_insert_exec_catchpoint): Update.
3188 * inftarg.c (child_insert_fork_catchpoint)
3189 (child_insert_vfork_catchpoint,)
3190 (child_insert_exec_catchpoint): Update.
3191
9ee907e0
AC
3192 * remote.c (remote_open_1): Use throw_exception.
3193
295093a4
MS
31942005-01-17 Michael Snyder <msnyder@redhat.com>
3195
3196 * mips-linux-tdep.c: Whitespace tweaks.
3197
4bcff7eb
CV
31982005-01-17 Corinna Vinschen <vinschen@redhat.com>
3199
3200 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
3201
637537d0
AC
32022005-01-17 Andrew Cagney <cagney@gnu.org>
3203
3204 * top.h (source_error, source_pre_error): Delete declaration.
3205 * cli/cli-script.c (source_error_allocated, source_error): Delete.
3206 (script_from_file, source_cleanup_lines): Do not manipulate
3207 source_error_allocated, error_pre_print and source_error.
3208 (struct source_cleanup_lines_args): Delete fields old_pre_error,
3209 and old_error_pre_print.
3210 * top.c (source_error_allocated, source_error)
3211 (source_pre_error): Delete.
3212 (command_line_input): Do not set error_pre_print.
3213 * event-top.c (command_line_handler): Do not set error_pre_print.
3214
12b21d12
JT
32152005-01-16 Jason Thorpe <thorpej@netbsd.org>
3216
3217 * MAINTAINERS: Update my email address.
3218
1c02b2a5
MK
32192005-01-16 Mark Kettenis <kettenis@gnu.org>
3220
c401b55a
MK
3221 * configure.ac: Provide prerequisite headers when checking
3222 <term.h>.
3223 * configure: Regenerate.
3224
1c02b2a5
MK
3225 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
3226 and "bsd-uthread.h".
3227 (amd64fbsd_jmp_buf_reg_offset): New variable.
3228 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
3229 functions.
3230 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
3231 * i386fbsd-tdep.c: Fix typo.
3232 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
3233 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
3234
17d92a02
AC
32352005-01-16 Andrew Cagney <cagney@gnu.org>
3236
3237 * cli/cli-script.c: Include "exceptions.h".
3238 (struct wrapped_read_command_file_args): Define.
3239 (wrapped_read_command_file): New function.
3240 (script_from_file): Replace direct call to read_command_file by
3241 one wrapped by an exception handler.
3242 * exceptions.c (throw_it): Free the old message after creating the
3243 new.
3244 * Makefile.in: Update dependencies.
3245
80ad1639
MK
32462005-01-16 Mark Kettenis <kettenis@gnu.org>
3247
ae036357
MK
3248 * sparc64fbsd-tdep.c: Update copyright year.
3249 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
3250 functions.
3251 (sparc64fbsd_init_abi): Create register sets with collect
3252 functions.
3253
ca5807d9
MK
3254 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
3255 (_initialize_sparc64fbsd_nat): Add some extra features to the
3256 generic SPARC target.
3257 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
3258 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
3259 (NAT_FILE): Set to solib.h.
3260 * config/sparc/nm-fbsd.h: Remove file.
3261
c4f2d4d7
MK
3262 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
3263
80ad1639
MK
3264 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
3265
6212a5e9
AC
32662005-01-16 Andrew Cagney <cagney@gnu.org>
3267
3268 * exceptions.c (struct catcher): Delete saved_error_pre_print and
3269 saved_quit_pre_print.
3270 (catcher_init): Delete parameter errstring, do not override the
3271 pre_print strings.
3272 (catcher_pop): Do not restore the pre_print strings.
3273 (catch_exception, catch_exceptions_with_msg, catch_errors)
3274 (catch_command_errors): Update catch_init calls.
3275
936df4b3
MK
32762005-01-16 Mark Kettenis <kettenis@gnu.org>
3277
3278 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
3279 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
3280
3af1e0e3
AC
32812005-01-15 Andrew Cagney <cagney@gnu.org>
3282
85981d60
AC
3283 * acinclude.m4: Include ../bfd/bfd.m4 instead of
3284 ../bfd/acinclude.m4. Include ../gettext.m4.
3285 * aclocal.m4, configure: Re-generate.
3286
5a14cc1a
AC
3287 * exceptions.c (do_captured_command)
3288 (struct captured_command_args): Delete.
3289 (catch_command_errors): Simplify by inlining call to catch_errors.
3290
3af1e0e3
AC
3291 * exceptions.c (struct catcher): Delete field print_message.
3292 (catcher_init): Delete print_message parameter.
3293 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
3294 (throw_it): Delete prefix parameter.
3295 (throw_verror, throw_vfatal, throw_error): Update.
3296
d0555901
AC
32972005-01-14 Andrew Cagney <cagney@gnu.org>
3298
e48f5bee
AC
3299 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
3300 (throw_reason): Leave the exception's message field blank.
3301 (throw_it): New function, create the exception and throw it.
3302 (throw_verror, throw_vfatal, throw_error): Call throw_it.
3303 (print_any_exception): New function.
3304 (catch_errors, catch_exceptions_with_msg): Call
3305 print_any_exception.
3306 (throw_exception): Move code calling annotate_error and
3307 annotate_quit from here ...
3308 (print_exception): ... to here.
3309
c6da7a6d
AC
3310 * exceptions.c (exception_fprintf, exception_print): Move printing
3311 of \n from here ...
3312 (print_exception): ... to here.
3313 (print_flush): New function.
3314 (exception_print, exception_fprintf): Replace duplicated flush and
3315 wrap code with call to print_flush.
3316 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
3317 and print_exception.
3318 (do_write): Delete.
3319
d0555901
AC
3320 * remote-sds.c (interrupt_query): Call throw_reason instead of
3321 throw_exception.
3322 * remote-mips.c (mips_error, mips_kill): Ditto
3323 * ocd.c (interrupt_query): Ditto.
3324 * nto-procfs.c (interrupt_query): Ditto.
3325 * monitor.c (monitor_interrupt_query): Ditto.
3326
949df321
JJ
33272005-01-14 Jeff Johnston <jjohnstn@redhat.com>
3328
3329 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
3330
bc8332bb
AC
33312005-01-14 Andrew Cagney <cagney@gnu.org>
3332
1c3c7ee7
AC
3333 * exceptions.h (catch_exceptions): Delete errstring parameter.
3334 (catch_exceptions_with_msg): Ditto.
3335 * exceptions.c (catch_exceptions_with_msg): Update.
3336 (catch_exceptions): Update.
3337 * symfile-mem.c (add_vsyscall_page): Update.
3338 * frame.c (get_current_frame): Update.
3339 * wrapper.c (gdb_value_struct_elt): Update.
3340 * exceptions.c (catch_exceptions): Update.
3341 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
3342 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
3343 * remote-fileio.c (remote_fileio_request): Update.
3344
9cbc821d
AC
3345 * exceptions.h (exception_fprintf): Declare.
3346 (exception_print): Drop pre_print parameter.
3347 * mi/mi-main.c (mi_execute_command): Update exception_print call.
3348 * cli/cli-interp.c (safe_execute_command): Update exception_print
3349 call.
3350 * remote.c (remote_open_1): Instead of passing an error prefix to
3351 catch_exceptions, use catch_exceptions and exception_fprintf.
3352 (remote_start_remote): Change return type to void.
3353 * breakpoint.c (insert_bp_location): Instead of passing an error
3354 prefix to catch_exceptions, use catch_exceptions and
3355 exception_fprintf.
3356 (insert_catchpoint): Change return type to void.
3357 (break_command_1): Update exception_print call.
3358 * exceptions.c (exception_fprintf): New function.
3359 (print_exception): New function.
3360 (exception_print): Use print_exception.
3361
22e9b0f1
AC
3362 * utils.c (error_output_message): Delete function.
3363 * defs.h (error_output_message): Delete declaration.
3364
05ff989b
AC
3365 * linespec.c (symtab_from_filename, decode_variable): Use
3366 throw_error instead of error_silent.
3367 * breakpoint.c (do_captured_parse_breakpoint): Change return type
3368 to void.
3369 (break_command_1): Use catch_exception and check the error return
3370 status.
3371 * exceptions.c (throw_error): New function.
3372 (throw_vsilent): Delete function.
3373 * exceptions.h (throw_error): Declare.
3374 (throw_vsilent): Delete declaration.
3375 * utils.c (error_silent): Delete function.
3376 * defs.h (error_silent): Delete declaration.
3377
8a076db9
AC
3378 * mi/mi-main.c (mi_execute_command): Print the exception.
3379 * cli/cli-interp.c (safe_execute_command): Print the exception.
3380 * exceptions.h (exception_print): Declare.
3381 * exceptions.c (struct catcher): Add field print_message.
3382 (catcher_init): Add parameter print_message, store in the catcher
3383 struct.
3384 (print_and_throw): Only print the message when print_message.
3385 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
3386 catcher_init.
3387 (catch_exception): Pass print_message=0 to catcher_init.
3388
bc8332bb
AC
3389 * varobj.c (varobj_create): Add missing \n.
3390
d183932d
MS
33912005-01-13 Michael Snyder <msnyder@redhat.com>
3392
4e18e2de 3393 * cli/cli-decode.h: Whitespace tweaks.
ca0b4d12 3394 * wince.c: Whitespace tweaks.
887a3a14 3395 * uw-thread.c: Whitespace tweaks.
0a4a0819 3396 * utils.c: Whitespace tweaks.
d183932d
MS
3397 * tracepoint.[ch]: Whitespace tweaks.
3398 * solist.h: Whitespace tweaks.
3399
6b1b7650
AC
34002005-01-13 Andrew Cagney <cagney@gnu.org>
3401
b315da38
AC
3402 * exceptions.h (struct exception): Make message const.
3403 * mi/mi-main.c (mi_execute_command): Pass result.message directly
3404 to fputstr_unfiltered.
3405
79e714b4
AC
34062005-01-13 Michael Snyder <msnyder@redhat.com>
3407
3408 * stack.c: Whitespace tweaks.
3409 * somsolib.[ch]: Whitespace tweaks.
3410 * solib-aix.c: Whitespace tweaks.
3411 * solib.c: Whitespace tweaks.
3412 * solib-frv.c: Whitespace tweaks.
3413 * solib.h: Whitespace tweaks.
3414 * solib-irix.c: Whitespace tweaks.
3415 * solib-som.c: Whitespace tweaks.
3416 * solib-sunos.c: Whitespace tweaks.
3417 * solib-svr4.[ch]: Whitespace tweaks.
3418 * ser-tcp.c: Whitespace tweaks.
3419 * ser-unix.c: Whitespace tweaks.
3420 * serial.h: Whitespace tweaks.
3421 * scm-valprint.c: Whitespace tweaks.
3422 * rs6000-tdep.c: Whitespace tweaks.
3423 * rs6000-nat.c: Whitespace tweaks.
3424 * remote.c: Whitespace tweaks.
3425
34262005-01-13 Andrew Cagney <cagney@gnu.org>
3427
6b1b7650
AC
3428 * defs.h (error_last_message, error_init): Delete declaration.
3429 * utils.c (fatal, vfatal): Call throw_vfatal.
3430 (error, verror): Call throw_verror;
3431 (do_write, error_stream_1): Delete function.
3432 (error_stream): Simplify, call error.
3433 (error_last_message, error_init, gdb_lasterr): Delete.
3434 (error_silent): Simplify, call throw_vsilent.
3435 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
3436 * main.c (captured_main): Delete call to error_init.
3437 * exceptions.c (throw_verror, throw_verror)
3438 (throw_vsilent): New functions.
3439 (do_write, print_and_throw): New functions.
3440 (last_message): New global.
3441 (throw_reason): Replace error_last_message with last_message.
3442 (catch_exceptions_with_msg): Dup the message.
3443 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
3444 Declare.
3445
4791eb66
MS
34462005-01-13 Michael Snyder <msnyder@redhat.com>
3447
90c065fb 3448 * remote-st.c: Whitespace tweaks.
8a0ce09a 3449 * remote-sim.c: Whitespace tweaks.
1fa79fac 3450 * remote-mips.c: Whitespace tweaks.
beda9597 3451 * pa64solib.[ch]: Whitespace tweaks.
28397f59 3452 * mdebugread.c: Whitespace tweaks.
ba5e7e8d 3453 * main.c: Whitespace tweaks.
907d819a 3454 * interps.c: Whitespace tweaks.
9d1ff73f 3455 * infrun.c: Whitespace tweaks.
1f5d0fc9 3456 * infcmd.c: Whitespace tweaks.
d9788fe8 3457 * hpux-thread.c: Whitespace tweaks.
3b951200 3458 * hppa-hpux-tdep.c: Whitespace tweaks.
3a9a986f 3459 * gdbcore.h: Whitespace tweaks.
d3f17821 3460 * gdbcmd.h: Whitespace tweaks.
30867156 3461 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
de6854b5 3462 * corefile.c: Whitespace tweaks.
03717487 3463 * completer.c: Whitespace tweaks.
9b5c5aad
MS
3464 * coff-solib.c: Whitespace tweaks.
3465 * coff-solib.h: Whitespace tweaks.
30fdc99f 3466 * cli-out.c: Whitespace tweaks.
1272ad14 3467 * breakpoint.c: Whitespace tweaks.
4791eb66
MS
3468 * cli/cli-interp.c: Tweak comments, per coding standard.
3469
f30f06b8
AC
34702005-01-13 Andrew Cagney <cagney@gnu.org>
3471
ce43223b
AC
3472 * breakpoint.c (gdb_breakpoint_query): Update, use
3473 catch_exceptions_with_msg.
3474 (do_captured_breakpoint): Add uiout parameter.
3475 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
3476 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
3477 gdb_thread_select. Return MI_CMD_ERROR instead of
3478 MI_CMD_CAUGHT_ERROR.
3479 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
3480 (enum captured_mi_execute_command_actions): Delete
3481 EXECUTE_COMMAND_DISPLAY_ERROR.
3482 (captured_mi_execute_command): Delete code handling
3483 MI_CMD_CAUGHT_ERROR.
3484 (mi_execute_command): Don't check for
3485 EXECUTE_COMMAND_DISPLAY_ERROR.
3486 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
3487 gdb_breakpoint_query.
3488 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
3489 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
3490 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
3491 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
3492 parameter.
3493 * thread.c (thread_command): Update call.
3494 (gdb_thread_select, gdb_list_thread_ids): Update, call
3495 catch_exceptions_with_msg.
3496
f30f06b8
AC
3497 * mi/mi-main.c (mi_execute_command): Use catch_exception,
3498 eliminate call to error_last_message.
3499 (captured_mi_execute_command): Change return type to void.
3500
2a78bfb5
AC
35012005-01-12 Andrew Cagney <cagney@gnu.org>
3502
c1043fc2
AC
3503 * exceptions.c (exception_none): New variable.
3504 * Makefile.in: Update dependencies.
3505 * interps.c: Include "exceptions.h".
3506 (interpreter_exec_cmd, interp_exec): Update to return "struct
3507 exception"
3508 * exceptions.h (no_exception): Declare.
3509 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
3510 * mi/mi-interp.c: Include "exceptions.h".
3511 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
3512 'struct exception".
3513 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
3514 (do_captured_execute_command): Update to use catch_exception.
3515 * interps.h: Include "exceptions.h".
3516 (interp_exec_ftype, interp_exec): Return "struct exception".
3517
2a78bfb5
AC
3518 * exceptions.h (throw_reason): Rename throw_exception.
3519 (enum errors, struct exception): Define.
3520 (catch_exception_ftype): Define.
3521 (catch_exception, throw_exception): Declare.
3522 * exceptions.c (throw_exception): Rewrite.
3523 (throw_reason): New function.
3524 (struct catcher, catcher_state_machine): Replace "reason" with
3525 "exception", delete "gdberrmsg".
3526 (catch_exception): New function.
3527 (catcher_init): Replace "gdberrmsg" parameter with "exception".
3528 (catch_errors, catch_exceptions_with_msg): Re-implement passing
3529 exception to catcher_init.
3530 * utils.c (error_silent, error_stream_1): Use throw_reason.
3531 (internal_verror, quit): Ditto.
3532 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
3533 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
3534 * remote.c (remote_open_1, interrupt_query): Ditto.
3535
8b1ca062
MK
35362005-01-12 Mark Kettenis <kettenis@gnu.org>
3537
fa565c2b
MK
3538 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
3539 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
3540 (i386fbsd_jmp_buf_reg_offset): New variable.
3541 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
3542 functions.
3543 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
3544 * Makefile.in (i386fbsd-tdep.o): Update dependency.
3545 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
3546
82f5c14f
MK
3547 * bsd-uthread.h: New file.
3548 * bsd-uthread.c: New file.
3549 * Makefile.in (bsd_uthread_h): New variable.
3550 (ALLDEPFILES): Add bsd-uthread.c.
3551 (bsd-uthread.o): New dependency.
3552
42a6e6a0
MK
3553 * solib.h Update copyright year.
3554 (struct so_list): Forward declaration.
3555 (solib_read_symbols): New prototype.
3556 * solib.c (solib_read_symbols): New function.
3557 (solib_add): Call solib_read_symbols to read in symbols.
3558 (update_solib_list): Call observer_notify_solib_loaded.
3559
8b1ca062
MK
3560 * i386bsd-nat.c: Update copyright year. Don't include
3561 <sys/param.h> and <sys/user.h>.
3562 (register_u_addr, kernel_u_size): Remove functions.
3563 * config/i386/obsd.mh (NAT_FILE): Remove.
3564 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
3565 * config/i386/nm-obsd.h: Remove file.
3566
60250e8b
AC
35672005-01-12 Andrew Cagney <cagney@gnu.org>
3568
db5f402d
AC
3569 * exceptions.c: Include "gdb_string.h".
3570 (enum catcher_state, struct catcher): Define.
3571 (current_catcher): New global, replaces catch_return;
3572 (catch_return): Delete.
3573 (throw_exception): Use current_catcher->buf;
3574 (catcher_init, catcher_pop, catcher_state_machine): New functions.
3575 (catcher): Delete.
3576 (struct catch_errors_args): Delete.
3577 (do_catch_errors): Delete.
3578 (catch_exceptions): Replace body with call to
3579 catch_exceptions_with_msg.
3580 (catcher): Delete.
3581 (catch_exceptions_with_msg, catch_errors): Re-implement using
3582 catcher_state_machine.
3583
60250e8b
AC
3584 * exceptions.h (enum return_reason, RETURN_MASK)
3585 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
3586 (return_mask, throw_exception, catch_exceptions_ftype)
3587 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
3588 (catch_command_errors_ftype, catch_command_errors): Move to
3589 exceptions.h.
3590 * exceptions.c, exceptions.h: New files.
3591 * top.c: Do not include <setjmp.h>.
3592 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
3593 (throw_exception, catcher, catch_exceptions)
3594 (catch_exceptions_with_msg, struct catch_errors_args)
3595 (do_catch_errors, catch_errors, struct captured_command_args)
3596 (do_captured_command, catch_command_errors): Move to exceptions.c.
3597 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
3598 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
3599 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
3600 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
3601 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
3602 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
3603 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
3604 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
3605 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
3606 * ada-valprint.c, ada-lang.c: Ditto.
3607 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
3608 exceptions.o. Update all dependencies.
3609
ca14ead7
MK
36102005-01-11 Mark Kettenis <kettenis@gnu.org>
3611
eafc7eea
MK
3612 * config/i386/nm-fbsd.h: Update copyright year.
3613 Don't include "config/nm-bsd.h".
3614 (KERNEL_U_SIZE): Remove macro.
3615 (kernel_u_size): Remove prototype.
3616
ca14ead7
MK
3617 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
3618 * config/vax/nm-nbsdaout.h: Remove file.
3619
4a39d934
EZ
36202005-01-10 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * MAINTAINERS: Remove self from sh/sh64 maintainership.
3623
93f0f986
AC
36242005-01-10 Andrew Cagney <cagney@gnu.org>
3625
c4f9e2bf
AC
3626 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
3627 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
3628 maintainer.
3629
6b71dd74
AC
3630 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
3631 changes to CRIS.
3632
93f0f986
AC
3633 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
3634 COMMIT means can approve).
3635
8785ced0
MK
36362005-01-10 Mark Kettenis <kettenis@gnu.org>
3637
2a2de4ce
MK
3638 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
3639 (vax_register_u_offset): Make statuc.
3640 (_initialize_vax_nat): Construct and add target vector.
3641 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
3642 inftarg.o. Add inf-ptrace.o.
3643 * Makefile.in (vax-nat.o): Update dependencies.
3644
8785ced0
MK
3645 * inf-ptrace.h: Update copyright year. Sync comment with
3646 inf-ptrace.c.
3647 (inf_ptrace_trad_target): New prototype.
3648 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
3649 "gdb_assert.h"
3650 (inf_ptrace_target): Add comment.
3651 (inf_ptrace+register_u_offset): New variable.
3652 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3653 (inf_ptrace_store_register, inf_ptrace_store_registers)
3654 (inf_ptrace_trad_target): New functions.
3655 * Makefile.in (inf-ptrace.o): Update dependencies.
3656
7cb9022a
MK
36572005-01-09 Mark Kettenis <kettenis@gnu.org>
3658
3659 * configure.ac: Provide prerequisite headers when checking
3660 <link.h>, <sys/proc.h> and <sys/user.h>.
3661 * configure: Regenerate.
3662
c534d641
MK
36632005-01-08 Mark Kettenis <kettenis@gnu.org>
3664
3665 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
3666 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
3667
4b48ac22
MK
36682005-01-07 Mark Kettenis <kettenis@gnu.org>
3669
3670 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
3671 Don't include "tm-ia64.h".
3672 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
3673 * config/ia64/tm-ia64.h: Remove. Move contents ...
3674 * ia64-tdep.h: ... here. Update copyright year.
3675
3ace7edb
AC
36762005-01-07 Andrew Cagney <cagney@gnu.org>
3677
bec39cab
AC
3678 * configure.ac: Rename configure.in, require autoconf 2.59.
3679 * configure: Re-generate.
3680
e14ecb8f
AC
3681 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
3682 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
3683 to configdirs.
3684
3ace7edb
AC
3685 * configure.in: Replace configdirs with multiple references to
3686 AC_CONFIG_SUBDIRS.
3687 * configure: Re-generate.
3688
b33e8514
AS
36892005-01-05 Andreas Schwab <schwab@suse.de>
3690
3691 * ia64-tdep.c: Include "osabi.h".
3692 (native_find_global_pointer): Delete.
3693 (ia64_find_global_pointer): Renamed from
3694 generic_elf_find_global_pointer.
3695 (FIND_GLOBAL_POINTER): Delete. Change all users to call
3696 ia64_find_global_pointer instead.
3697 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
3698 to ia64_linux_sigcontext_register_address and
3699 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
3700 (_initialize_ia64_tdep): Call gdbarch_register instead of
3701 deprecated register_gdbarch_init.
3702 (struct gdbarch_tdep): Remove find_global_pointer field and move
3703 to ...
3704 * ia64-tdep.h (struct gdbarch_tdep): ... here.
3705 (ia64_linux_sigcontext_register_address): Remove declaration.
3706 (ia64_linux_getunwind_table): Likewise.
3707 (ia64_linux_write_pc): Likewise.
3708 * ia64-linux-tdep.c: Include "osabi.h".
3709 (ia64_linux_sigcontext_register_address): Make static.
3710 (ia64_linux_write_pc): Likewise.
3711 (ia64_linux_init_abi): New.
3712 (_initialize_ia64_linux_tdep): New.
3713 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
3714 $(osabi_h).
3715
0ea390ed
KB
37162005-01-05 Kevin Buettner <kevinb@redhat.com>
3717
3718 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
3719 functions in ia64-aix-tdep.c.
3720 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
3721 function defined in ia64-aix-tdep.c.
3722 * ia64-aix-tdep.c: Remove file.
3723 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
3724 this list.
3725 * Makefile.in (ia64-aix-tdep.o): Delete.
3726
edefbb7c
AC
37272005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3728
3729 Committed by Andrew Cagney.
3730 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
3731 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
3732 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
3733 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
3734 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
3735 * aix-thread.c (_initialize_aix_thread): Get rid of the
3736 deprecated_add_show_from_set call.
3737 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3738 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3739 * command.h (add_setshow_enum_cmd): Add arguments for returning
3740 new list elements.
3741 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
3742 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
3743 add_setshow_enum_cmd.
3744
a260932f
MK
37452005-01-04 Mark Kettenis <kettenis@gnu.org>
3746
34cf1994
MK
3747 * configure.host (ia64-*-aix*): Remove.
3748 * configure.tgt (ia64-*-aix*): Remove.
3749 * config/ia64/aix.mh: Remove file.
3750 * config/ia64/aix.mt: Remove file.
3751 * config/ia64/tm-aix.h: Remove file.
3752 * ia64-aix-nat.c: Remove file.
3753 * Makefile.in (ia64-aix-nat.o): Remove dependency.
3754
a260932f
MK
3755 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
3756 Add back inf-ptrace.o.
3757
5ed102a1
AC
37582005-01-04 Andrew Cagney <cagney@gnu.org>
3759
3760 * version.in: Change format from 6.3.50_2005-01-04-cvs to
3761 6.3.50.20050104-cvs.
3762
3a63c4b7
AS
37632005-01-04 Andreas Schwab <schwab@suse.de>
3764
3765 * breakpoint.c (break_command_1): Always free err_msg before
3766 returning when an exception was caught.
3767
e22b26cb
JB
37682005-01-01 Joel Brobecker <brobecker@gnat.com>
3769
3770 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
3771 in register number for addil instruction.
3772
151c5df6 3773For older changes see ChangeLog-2004.
c906108c
SS
3774\f
3775Local Variables:
3776mode: change-log
3777left-margin: 8
3778fill-column: 74
3779version-control: never
3780End:
This page took 1.165124 seconds and 4 git commands to generate.