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