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