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