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