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