* inftarg.c (child_create_inferior) [HPUXHPPA]: Remove code.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-12-25 Mark Kettenis <kettenis@gnu.org>
2
3 * inftarg.c (child_create_inferior) [HPUXHPPA]: Remove code.
4
5 2004-12-24 Mark Kettenis <kettenis@gnu.org>
6
7 * target.h (TARGET_DISABLE_HW_WATCHPOINTS)
8 (TARGET_ENABLE_HW_WATCHPOINTS): Remove macros.
9 * infrun.c (struct execution_control_state): Remove
10 enable_hw_watchpoints_after_wait member.
11 (number_of_threads_in_syscalls): Remove variable.
12 (init_wait_for_inferior): Don't initialize
13 number_of_threads_in_syscalls.
14 (init_execution_control_state): Don't initialize
15 ECS->enable_hw_watchpoints_after_wait.
16 (handle_inferior_event): Never invoke TARGET_ENABLE_HW_WATCHPOINTS
17 or TARGET_DISABLE_HW_WATCHPOINTS.
18
19 2004-12-23 Mark Kettenis <kettenis@gnu.org>
20
21 * i386-nto-tdep.c: Reorder include files.
22 (i386nto_svr4_fetch_link_map_offsets): Remove function.
23 (init_i386nto_ops, i386nto_init_abi): Use
24 svr4_ilp32_fetch_link_map_offsets instead of
25 i386nto_svr4_fetch_link_map_offsets.
26
27 2004-12-21 Mark Kettenis <kettenis@gnu.org>
28
29 * hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe.
30
31 2004-12-21 Mark Kettenis <kettenis@gnu.org>
32
33 * hppa-tdep.c (hppa64_return_value): Fix previous commit.
34
35 2004-12-21 Mark Kettenis <kettenis@gnu.org>
36
37 * hppa-tdep.c (hppa32_return_value): Move further down.
38 (hppa64_return_value): Re-implement.
39
40 2004-12-21 Jim Blandy <jimb@redhat.com>
41
42 * remote.c (fetch_register_using_p): Fix formatting.
43
44 2004-12-21 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
45
46 * ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
47 output.
48 * ada-typeprint.c (ada_typedef_print): Ditto.
49 (print_unchecked_union_type): Ditto.
50 (print_record_type): Ditto, and correct output for non-derived
51 types that was inadvertently left off during the markup.
52
53 2004-12-19 Mark Kettenis <kettenis@gnu.org>
54
55 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
56 whether the name returned by find_pc_partial_function is a null
57 pointer, not whether it is an empty string.
58
59 * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
60 HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
61 * hppa-tdep.c (hppa64_integral_or_pointer_p)
62 (hppa64_floating_p) New functions.
63 (hppa64_push_dummy_call): Re-implement.
64 (hppa32_register_type): Rename argument reg_nr to regnum.
65 (hppa64_register_type): Likewise. Use HPPA64_FP4_REGNUM instead
66 of HPPA_FP4_REGNUM.
67 (hppa32_cannot_store_register): Renamed from
68 hppa_cannot_store_register.
69 (hppa64_cannot_store_register): New function.
70 (hppa_gdbarch_init): Set cannot_store_register and
71 cannot_fetch_register to hppa32_cannot_store_register or
72 hppa64_cannot_store_register when appropriate.
73
74 2004-12-18 Mark Kettenis <kettenis@gnu.org>
75
76 * hppah-nat.c: Remove file.
77 * infttrace.h: Remove file.
78 * infttrace.c: Remove file.
79 * Makefile.in (ALLDEPFILES): Remove hppah-nat.c
80 (infttrace_h): Remove variable.
81 (hppah-nat.o, infttrace.o): Remove dependencies.
82 * configure.host (hppa*64*-*-hpux11*): Remove.
83 * config/pa/hpux11w.mh: Remove file.
84 * config/pa/nm-hppah.h: Remove file.
85 * config/pa/nm-hppah11.h: Remove file.
86
87 * config/djgpp/fnchange.lst: Resolve name clash between
88 ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
89 i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
90 testsuite/gdb.base/bitfields.c and
91 testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
92 and testsuite/gdb.base/bitfields2.exp. Remove entry for
93 config/m88k/xm-delta88v4.h.
94
95 * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
96 PA_SOM_ONLY isn't defined.
97
98 * somread.c: Include "solib-som.h".
99 (som_symfile_init, som_new_init, som_symfile_read,
100 som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
101 redudant prototypes.
102 * Makefile.in (somread.o): Update dependencies.
103
104 2004-12-17 Jim Blandy <jimb@redhat.com>
105
106 * remote.c (fetch_register_using_p): Indentation cleanup.
107
108 2004-12-17 Randolph Chung <tausq@debian.org>
109
110 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
111 (find_stub_with_shl_get): Make static.
112
113 2004-12-17 Randolph Chung <tausq@debian.org>
114
115 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
116 (in_opd_section): New.
117 (hppa32_hpux_find_global_pointer): Rename from
118 hppa_hpux_som_find_global_pointer.
119 (hppa64_hpux_find_global_pointer): New.
120 (ldsid_pattern): New.
121 (hppa_hpux_search_pattern): New.
122 (hppa32_hpux_search_dummy_call_sequence): New.
123 (hppa64_hpux_search_dummy_call_sequence): New.
124 (hppa_hpux_find_import_stub_for_addr): New.
125 (hppa_hpux_sr_for_addr): New.
126 (hppa_hpux_find_dummy_bpaddr): New.
127 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
128 (hppa_hpux_som_init_abi): Set find_global_pointer method to
129 hppa32_hpux_find_global_pointer instead of
130 hppa_hpux_som_find_global_pointer.
131 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
132 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
133 (read_unwind_info): Use function to initialize objfile-private data.
134 (hppa32_push_dummy_call): Don't automatically set the RP if there is
135 a push_dummy_code method.
136 (hppa64_push_dummy_call): Retrieve and set the global pointer.
137 Don't automatically set the RP if there is a push_dummy_code method.
138 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
139 dummy_call_sequence_addr members.
140 (hppa_init_objfile_priv_data): New prototype.
141
142 2004-12-17 Joel Brobecker <brobecker@gnat.com>
143
144 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
145 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
146 * solib-som.c (som_solib_create_inferior_hook): Replace stub
147 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
148 extends the search to all objfiles, not just shared libraries.
149 Remove unused variable.
150
151 2004-12-16 Michael Snyder <msnyder@redhat.com>
152
153 * MAINTAINERS: Add myself as maintainer for mn10300.
154 * NEWS: Mention mn10300.
155
156 2004-12-15 Kevin Buettner <kevinb@redhat.com>
157
158 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
159 frame cache.
160
161 2004-12-14 Randolph Chung <tausq@debian.org>
162
163 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
164 (hppa_gdbarch_init): Set in_epilogue_p method.
165
166 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
167
168 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
169 sh_default_extract_return_value.
170 (sh_extract_return_value_fpu): Rename from
171 sh3e_sh4_extract_return_value.
172 (sh_store_return_value_nofpu): Rename from
173 sh_default_store_return_value.
174 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
175 (sh_return_value_nofpu): Accomodate above changes.
176 (sh_return_value_fpu): Ditto.
177
178 2004-12-13 Jerome Guitton <guitton@gnat.com>
179
180 * stabsread.c (read_huge_number): Add support for reading octal
181 signed number in twos complement, based on the size of this
182 number.
183 (read_range_type): Add support for reading octal signed bounds
184 in twos complements, based on the size of the type.
185 (read_type_number, read_cpp_abbrev, read_member_functions,
186 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
187 read_struct_type, read_array_type, read_enum_type,
188 read_sun_builtin_type, read_sun_floating_type): Update calls to
189 read_huge_number.
190 (read_type): Update call to read_range_type.
191
192 2004-12-13 Randolph Chung <tausq@debian.org>
193
194 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
195 solib_get_solib_by_pc method through target vector.
196 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
197 method through target vector.
198
199 2004-12-13 Joel Brobecker <brobecker@gnat.com>
200
201 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
202 parameter name to make it clear that we already have a next
203 frame. Return the sigcontext from that next frame instead
204 of the frame following it.
205
206 2004-12-13 Randolph Chung <tausq@debian.org>
207
208 * Makefile.in (pa64solib_h, somsolib_h): Delete.
209 (solib_pa64_h, solib_som_h): New.
210 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
211 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
212 (pa64solib.o, somsolib.o): Delete.
213 (solib-pa64.o, solib-som.o): New.
214 * hppa-hpux-tdep.c: Include new solib interfaces.
215 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
216 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
217 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
218 is available, use it to determine the base of unwind records.
219 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
220 * hpread.c: Replace somsolib.h with solib-som.h.
221 (hpread_process_one_debug_symbol): Use target vector to get thread
222 start address.
223 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
224 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
225 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
226 * config/pa/tm-hppah.h: Use new solib interface.
227
228 2004-12-13 Randolph Chung <tausq@debian.org>
229
230 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
231 sections to be trampolines too.
232
233 2004-12-13 Ben Elliston <bje@au.ibm.com>
234
235 * f-exp.y (typename): Remove unused nonterminal.
236 (name): Likewise.
237
238 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
239
240 Committed by Andrew Cagney.
241 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
242 markup.
243
244 2004-12-12 Andrew Cagney <cagney@gnu.org>
245
246 * frame.c (get_prev_frame): When unwinding normal frames, check
247 that the PC isn't zero.
248 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
249 zero PC.
250
251 * MAINTAINERS: Reword description of what "Target Instruction Set
252 Architectures" covers.
253
254 2004-12-12 Mark Kettenis <kettenis@gnu.org>
255
256 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
257
258 2004-12-11 Mark Kettenis <kettenis@gnu.org>
259
260 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
261 (hppa_hpux_save_state_offset): New function, replacing variable
262 with the same name.
263 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
264 functions.
265 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
266 Use new hppa_hpux_save_state_offset function. Add special
267 handling for handling 64-bit "flags" register.
268 (hppa_hpux_store_register): Likewise.
269 (hppa_hpux_child_can_run): Tweak comment.
270
271 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
272 (inf_ttrace_attach): Likewise.
273 (inf_ttrace_resume_callback): New function.
274 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
275 lwps and call inf_ttrace_resume_callback instead.
276 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
277
278 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
279
280 2004-12-10 Michael Snyder <msnyder@redhat.com>
281
282 * mn10300-tdep.c: New file. This is a re-implementation of
283 the mn10300 target back-end using the new frame api etc.
284 * mn10300-tdep.h: New file.
285 * config/mn10300/mn10300.mt: New file (or replace old file).
286 * configure.tgt: Add mn10300 target.
287
288 2004-12-10 Mark Kettenis <kettenis@gnu.org>
289
290 * configure.host (hppa*-*-hpux11*): Remove.
291 * config/pa/hpux11.mh: Remove file.
292
293 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
294 typo.
295
296 2004-12-10 Kris Warkentin <kewarken@qnx.com>
297
298 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
299 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
300 function and nto_set_target function.
301 (struct nto_target_ops): Put comments inline with struct. Add osabi
302 sniffer hook. Redefine macros to permit testing/assignment. Remove
303 nto_ prefix from members.
304 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
305 dynamically to support arbitrary root paths. Check for basename of
306 lib in search path and then check for absolute.
307 (nto_in_dynsym_resolve_code): New function.
308 (nto_core_sniffer): New function.
309 (regset_core_fns): Register core sniffer.
310 (nto_initialize_signals): New function.
311 (_initialize_nto_tdep): Move signal initialization code to above to
312 avoid initialization race conditions.
313 (nto_set_target): New function.
314 * nto-procfs.c: Minor formatting/indenting changes.
315 (procfs_is_nto_target): New function.
316 (procfs_open): Set nto_is_nto_target.
317 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
318 initialization race conditions.
319 (procfs_create_inferior): Resume inferior after creation.
320 * i386-nto-tdep.c: Declare i386_nto_target.
321 (init_i386nto_ops): Initialize i386_nto_target instead of
322 current_nto_target.
323 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
324 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
325 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
326 sniffer.
327
328 2004-12-10 Mark Kettenis <kettenis@gnu.org>
329
330 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
331 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
332 (hppa_hpux_init_abi): Reformat long line.
333
334 2004-12-09 Mark Kettenis <kettenis@gnu.org>
335
336 * hppa-hpux-tdep.c: Include "regset.h".
337 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
338 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
339 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
340 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
341 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
342 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
343 functions.
344 (hppa_hpux_regset): New variable.
345 (hppa_hpux_regset_from_core_section): New function.
346 (hppa_hpux_init_abi): Set regset_from_core_section.
347 (hppa_hpux_core_osabi_sniffer): New function.
348 (_initialize_hppa_hpux_tdep): Register
349 hppa_hpux_core_osabi_sniffer.
350 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
351 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
352
353 2004-12-09 Randolph Chung <tausq@debian.org>
354
355 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
356 text and data sections.
357 (pa64_current_sos): Also include the dld in the list of current shared
358 objects.
359 (pa64_solib_get_solib_by_pc): Update comments.
360 (pa64_solib_get_text_base): New function.
361 (pa64_solib_select): Set solib_get_text_base method.
362
363 2004-12-08 Daniel Jacobowitz <dan@debian.org>
364
365 * linux-thread-db.c (BUILD_THREAD): Delete.
366 (thread_get_info_callback): Include LWP ID in thread ID.
367 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
368 (lwp_from_thread): Use the LWP ID from the thread ID.
369
370 2004-12-07 Randolph Chung <tausq@debian.org>
371
372 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
373 register for both 32- and 64-bit targets.
374
375 2004-12-07 Randolph Chung <tausq@debian.org>
376
377 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
378 are unwinding through a dummy frame.
379
380 2004-12-07 Randolph Chung <tausq@debian.org>
381
382 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
383 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
384 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
385 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
386 if defined.
387
388 2004-12-07 Randolph Chung <tausq@debian.org>
389
390 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
391 unwinding from a frame with pc == 0.
392 (hppa_stub_frame_this_id): Likewise.
393 (hppa_stub_frame_prev_register): Only provide real values if the frame
394 cache is not NULL.
395
396 2004-12-07 Randolph Chung <tausq@debian.org>
397
398 * solib-som.c: New file.
399 * solib-som.h: New file.
400 * solib-pa64.c: New file.
401 * solib-pa64.h: New file.
402
403 2004-12-07 Mark Kettenis <kettenis@gnu.org>
404
405 * Makefile.in (inf-ttrace.o): Fix typo.
406
407 2004-12-07 Jim Blandy <jimb@redhat.com>
408
409 * remote.c (remote_threads_info, remote_current_thread): Use
410 strtoul to parse thread ID numbers.
411
412 2004-12-07 Mark Kettenis <kettenis@gnu.org>
413
414 * inf-ttrace.c: Include "gdbthread.h".
415 (inf_ttrace_num_lwps): New variable.
416 (inf_ttrace_num_lwps_in_syscall): Renamed from
417 inf_ttrace_num_threads_in_syscall.
418 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
419 TTEVT_LWP_TERMINATE events.
420 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
421 zero.
422 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
423 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
424 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
425 events.
426 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
427 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
428 TTEVT_LWP_TERMINATE events.
429 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
430 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
431 * Makefile.in (inf-ttrace.o): Update dependencies.
432
433 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
434 prototypes.
435 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
436 Make global. Remove HP-UX specific code. Use
437 frame_unwind_register_unsigned instead of
438 frame_unwind_register_signed.
439 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
440 Remove HP-UX specific code.
441 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
442 (hppa_frame_prev_register_helper): Set "flags" register to zero
443 for all unwound frames.
444 (hppa_gdbarch_init): Adjust.
445 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
446 (hppa_hpux_read_pc, hppa_hpux_write_pc)
447 (hppa_hpux_unwind_pc): New functions.
448 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
449
450 2004-12-07 Andreas Schwab <schwab@suse.de>
451
452 * main.c (long_options): Add entry for "-l".
453 (print_gdb_help): Add line for -l option.
454 * NEWS: Mention it.
455
456 2004-12-05 Randolph Chung <tausq@debian.org>
457
458 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
459 DEPRECATED_REGISTER_BYTE.
460
461 2004-12-05 Randolph Chung <tausq@debian.org>
462
463 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
464 records.
465
466 2004-12-05 Mark Kettenis <kettenis@gnu.org>
467
468 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
469 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
470
471 * hppa-hpux-tdep.c: Update copyright notice and year.
472
473 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
474
475 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
476 (get_field, put_field): Assert that the format is one we can handle.
477 Simplify logic accordingly.
478 (floatformat_normalize_byteorder): New function.
479 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
480 to normalize and select modified byte order. Pass modified byte order
481 to get_field.
482 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
483 Likewise.
484 (convert_doublest_to_floatformat): Select an appropriate intermediate
485 byte order if necessary. Always convert to the final format before
486 returning.
487
488 2004-12-04 Daniel Jacobowitz <dan@debian.org>
489
490 PR tui/1703
491 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
492 Suggested by Joshua Neuheisel.
493
494 2004-12-03 Randolph Chung <tausq@debian.org>
495
496 * gdbarch.sh (instruction_nullified): Delete.
497 * gdbarch.c: Regenerate.
498 * gdbarch.h: Regenerate.
499 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
500 nullified.
501 (hppa_unwind_pc): Likewise.
502 (hppa_instruction_nullified): Delete.
503 (hppa_gdbarch_init): Don't set instruction_nullified method.
504 * infrun.c (infwait_states): Remove infwait_nullified_state.
505 (handle_inferior_event): Remove handling of infwait_nullified_state.
506 Remove handling of nullified instructions.
507
508 2004-12-03 Mark Kettenis <kettenis@gnu.org>
509
510 * inf-ttrace.c: Include <sys/mman.h>.
511 (struct inf_ttrace_page): New.
512 (struct inf_ttrace_page_dict): New.
513 (inf_ttrace_num_threads_in_syscall)
514 (inf_ttrace_reenable_page_protections): New variables.
515 (inf_ttrace_enable_syscall_events)
516 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
517 (inf_ttrace_add_page, inf_ttrace_insert_page)
518 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
519 (inf_ttrace_enable_page_protections)
520 (inf_ttrace_disable_page_protections)
521 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
522 (inf_ttrace_can_use_hw_breakpoint)
523 (inf_ttrace_region_size_ok_for_hw_watchpoint)
524 (inf_ttrace_stopped_by_watchpoint): New functions.
525 (inf_ttrace_him): Remove unsused varaible `tts'.
526 (inf_ttrace_create_inferior): Add assertionts.
527 (inf_ttrace_mourn_inferior): Clear page dictionary.
528 (inf_ttrace_attach): Set initial event mask.
529 (inf_ttrace_detach): Reset number of threads in system call.
530 (inf_ttrace_wait): Deal with system call events.
531 (inf_ttrace_target): Initialize "hardware" watchpoint-related
532 parts of the target vector.
533 (_initialize_inf_ttrace): New prototype and function.
534
535 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
536 type of `gp' variable.
537
538 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
539
540 * README: Remove config.if from directory listing.
541
542 2004-12-01 Joel Brobecker <brobecker@gnat.com>
543
544 * alpha-tdep.c (alpha_register_name): Add comment.
545 (alpha_cannot_fetch_register): Exclude registers numbers which
546 are no longer used from the list of registers that can be fetched.
547 (alpha_cannot_store_register): Exclude registers numbers which
548 are no longer used from the list of registers that can be stored.
549 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
550 core_reg_mapping array.
551
552 2004-12-01 Joel Brobecker <brobecker@gnat.com>
553
554 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
555 the register value from the correct frame.
556
557 2004-11-30 Randolph Chung <tausq@debian.org>
558
559 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
560 (hppa_linux_in_dyncall): Check that we are inside the range of
561 $$dyncall, not necessarily at the first insn.
562 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
563 even if the pc does not point to the first insn of the trampoline.
564
565 2004-11-30 Randolph Chung <tausq@debian.org>
566
567 * breakpoint.c (break_at_finish_command): Delete.
568 (break_at_finish_command_1): Delete.
569 (break_at_finish_at_depth_command): Delete.
570 (break_at_finish_at_depth_command_1): Delete.
571 (tbreak_at_finish_command): Delete.
572 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
573 and bx commands.
574
575 2004-11-30 Andrew Cagney <cagney@gnu.org>
576
577 * config/nm-gnu.h: Delete file.
578 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
579
580 * config/nm-sysv4.h: Delete file.
581 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
582 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
583 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
584 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
585 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
586
587 2004-11-29 Andrew Cagney <cagney@gnu.org>
588
589 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
590 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
591 as can-commit architecture developers.
592
593 2004-11-29 Mark Kettenis <kettenis@gnu.org>
594
595 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
596 (sparc32_skip_prologue): Skip instructions that store arguments in
597 registers into their corresponding stack slots.
598
599 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
600 tm-solib.h.
601 * config/m68k/obsd.mh (NAT_FILE): Likewise.
602
603 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
604 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
605 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
606 sparc32nbsd_elf_init_abi. Remove duplicate code.
607
608 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
609 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
610 * config/sparc/nm-nbsd.h: Remove file.
611 * config/sparc/nm-nbsdaout.h: Remove file.
612
613 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
614 (sparc_xfer_partial): New function.
615 (sparc_target): Save value of to_xfer_partial from ptrace vector.
616 Set to_xfer_partial.
617
618 * fork-child.c (fork_inferior): Fork instead of vfork if
619 PRE_TRACE_FUN is non-null.
620
621 2004-11-24 Fred Fish <fnf@specifixinc.com>
622
623 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
624 compiler generated function calls made as part of a prologue.
625
626 2004-11-23 Mark Kettenis <kettenis@gnu.org>
627
628 * inf-ttrace.c: New file.
629 * inf-ttrace.h: New file.
630 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
631 Include "inf-ttrace.h".
632 (ss_mpsfu_high): Define to ss_tlsp if necessary.
633 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
634 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
635 ptrace systems.
636 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
637 instead of inf_ptrace_target.
638 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
639 * Makefile.in (inf_ttrace_h): New variable.
640 (hppa-hpux-nat.o): Update dependency.
641 (inf-ttrace.o): New dependency.
642 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
643
644 2004-11-23 Randolph Chung <tausq@debian.org>
645
646 * arch-utils.c (generic_instruction_nullified): New.
647 * arch-utils.h (generic_instruction_nullified): New.
648 * gdbarch.sh (instruction_nullified): New method.
649 * gdbarch.c: Regenerate.
650 * gdbarch.h: Regenerate.
651 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
652 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
653 new gdbarch method.
654 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
655 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
656 static. Rewrite to work directly off the passed regcache.
657 (hppa_gdbarch_init): Set instruction_nullified method.
658
659 2004-11-23 Joel Brobecker <brobecker@gnat.com>
660
661 * sparc-tdep.c (sparc_is_unimp_insn): New function.
662 (sparc32_frame_cache): For functions where there is no debugging
663 information to help us determine whether it's a struct-return
664 function or not, fallback on checking whether the instruction
665 at the return address is an "unimp" instruction or not.
666
667 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
668
669 * MAINTAINERS: Add myself to write after approval section.
670
671 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
672 hpux-thread.c to suppress children from running.
673 (hppa_hpux_child_can_run): New function.
674 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
675 * hpux-thread.c: Include string.h and hppa-tdep.h.
676 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
677 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
678 (hpux_thread_store_registers): Replace deprecated_registers with
679 calls to regcache_raw_read.
680 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
681
682 2004-11-21 Mark Kettenis <kettenis@gnu.org>
683
684 * sparc64fbsd-nat.c: Update copyright year.
685 (_initialize_sparc64fbsd_nat): Construct and add target vector.
686 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
687 inftarg.o.
688
689 2004-11-21 Daniel Jacobowitz <dan@debian.org>
690
691 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
692
693 2004-11-21 Daniel Jacobowitz <dan@debian.org>
694
695 * linux-nat.c (my_waitpid): New function.
696 (linux_test_for_tracefork): Make more robust and verbose. Take
697 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
698 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
699 argument. Update calls to linux_test_for_tracefork.
700 (linux_enable_event_reporting, child_follow_fork)
701 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
702 (child_insert_exec_catchpoint): Update calls to
703 linux_supports_tracefork and linux_supports_tracevforkdone.
704
705 2004-11-21 Daniel Jacobowitz <dan@debian.org>
706
707 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
708 (value_subscripted_rvalue): Likewise.
709 * valops.c (search_struct_field, value_slice): Likewise.
710
711 2004-11-21 Mark Kettenis <kettenis@gnu.org>
712
713 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
714 Reorder includes a bit. Fix comment.
715 * Makefile.in (inf-ptrace.o): Update dependencies.
716
717 2004-11-21 Andreas Schwab <schwab@suse.de>
718
719 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
720 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
721 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
722 to glibc_skip_solib_resolver.
723 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
724 solib-legacy.o.
725 * Makefile.in (m68klinux-tdep.o): Update dependencies.
726
727 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
728
729 * infttrace.h (ttrace_write_reg_64): Add prototype.
730 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
731 expression.
732 (store_inferior_registers): Correct formatting. Replace uses of
733 deprecated_registers with calls to regcache_raw_read,
734 regcache_raw_write_part and regcache_raw_read_part.
735
736 2004-11-21 Mark Kettenis <kettenis@gnu.org>
737
738 * config/pa/hppahpux.mh: Remove file.
739 * config/pa/hpux1020.mh: Remove file.
740
741 2004-11-20 Andreas Schwab <schwab@suse.de>
742
743 * configure.host: Set host floatformat for m68k.
744
745 2004-11-20 Eli Zaretskii <eliz@gnu.org>
746
747 * config/djgpp/fnchange.lst: Resolve file-name clash between
748 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
749
750 2004-11-20 Mark Kettenis <kettenis@gnu.org>
751
752 * hppa-hpux-nat.c: New file.
753 * config/pa/hpux.mh (NATDEPFILES): New file.
754 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
755 (hppa-hpux-nat.o): New dependency.
756 * configure.host: Remove hppa*-*-hpux10.20.
757 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
758
759 * inf-ptrace.c: Fix coding style.
760
761 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
762 * infptrace.c (call_ptrace): Simply call ptrace with four
763 arguments.
764
765 * dbxread.c (process_one_symbol): Fix a few coding standard
766 issues. Improve code formatting.
767
768 * dbxread.c: Include "gdb_string.h".
769 (record_minimal_symbol, read_ofile_symtab): Replace
770 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
771 * Makefile.in (dbxread.o): Update dependencies.
772
773 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
774 of bytes read for aligned LEB128 encodings.
775
776 2004-11-19 Mark Kettenis <kettenis@gnu.org>
777
778 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
779 parse_and_eval_address to u_long before converting it to a pointer
780 type.
781 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
782 ps_strings from int to u_long.
783 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
784 u_long instead of CORE_ADDR.
785
786 2004-11-18 Mark Kettenis <kettenis@gnu.org>
787
788 * dbxread.c (process_one_symbol): Do not adjust address of first
789 N_SLINE stab for a function for code generated by non-GCC
790 compilers.
791
792 2004-11-18 Kevin Buettner <kevinb@redhat.com>
793
794 * solib-null.c: New file.
795
796 2004-11-17 Andrew Cagney <cagney@gnu.org>
797
798 * MAINTAINERS: Drop MIPS and remote.
799
800 2004-11-15 Andrew Cagney <cagney@gnu.org>
801
802 * findvar.c (value_of_register): Set the frame ID.
803 * value.c (value_primitive_field): Copy the frame ID.
804 * valops.c (value_assign): Simplify lval_register case, there's
805 always a frame.
806
807 2004-11-14 Daniel Jacobowitz <dan@debian.org>
808
809 * Makefile.in (mips-linux-tdep.o): Update dependencies.
810 * mips-linux-tdep.c: Include "regcache.h".
811 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
812
813 2004-11-14 Daniel Jacobowitz <dan@debian.org>
814
815 * Makefile.in (linux-thread-db.o): Fix typo in last change.
816
817 2004-11-14 Daniel Jacobowitz <dan@debian.org>
818
819 * linux-thread-db.c: New file, renamed from thread-db.c.
820 * thread-db.c: Remove.
821 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
822 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
823 to linux-thread-db.o.
824 * config/arm/linux.mh (NATDEPFILES): Likewise.
825 * config/i386/linux.mh (NATDEPFILES): Likewise.
826 * config/i386/linux64.mh (NATDEPFILES): Likewise.
827 * config/ia64/linux.mh (NATDEPFILES): Likewise.
828 * config/m32r/linux.mh (NATDEPFILES): Likewise.
829 * config/m68k/linux.mh (NATDEPFILES): Likewise.
830 * config/mips/linux.mh (NATDEPFILES): Likewise.
831 * config/pa/linux.mh (NATDEPFILES): Likewise.
832 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
833 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
834 * config/s390/s390.mh (NATDEPFILES): Likewise.
835 * config/sparc/linux.mh (NATDEPFILES): Likewise.
836 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
837
838 2004-11-13 Andrew Cagney <cagney@gnu.org>
839
840 * config/i386/i386lynx.mh: Delete file.
841 * config/i386/i386lynx.mt: Delete file.
842 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
843 * i386ly-tdep.c: Delete.
844
845 * config/tm-lynx.h: Delete, inline contents ...
846 * config/rs6000/tm-rs6000ly.h: ... here.
847
848 * config/tm-sysv4.h: Delete file, inlining contents.
849 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
850 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
851 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
852
853 * regcache.h (deprecated_register_valid): Delete.
854 (deprecated_registers): Delete.
855 * regcache.c (deprecated_register_valid): Delete.
856 (deprecated_registers): Delete.
857 (deprecated_read_register_byte, _initialize_regcache)
858 (deprecated_write_register_bytes, build_regcache): Update.
859 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
860 remote-sds.o.
861 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
862 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
863
864 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
865 v850-*-* under removed.
866 * configure.host: Delete ns32k-*-netbsd*.
867 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
868 ns32k-*-netbsd*, and v850*-*-*.
869 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
870 "Deleted"
871 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
872 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
873 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
874 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
875 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
876 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
877 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
878 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
879 * v850-tdep.c: Delete.
880
881 2004-11-13 Joel Brobecker <brobecker@gnat.com>
882
883 * irix5-nat.c (fetch_core_registers): Replace use of
884 deprecated_registers by equivalent code.
885
886 2004-11-13 Joel Brobecker <brobecker@gnat.com>
887
888 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
889 with equivalent code.
890 (fill_fpregset): Likewise.
891
892 2004-11-13 Andrew Cagney <cagney@gnu.org>
893
894 * MAINTAINERS: Do not list "Deleted" architectures.
895
896 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
897 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
898 sparc-*-vxworks*.
899 * NEWS: Mention that vxworks was deleted.
900 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
901 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
902 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
903 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
904 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
905 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
906 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
907 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
908 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
909 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
910 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
911 * remote-vxmips.c, remote-vx.c: Delete.
912 * remote-vx68.c: Delete.
913 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
914 * config/m68k/os68k.mt, ada-lang.h: Ditto.
915 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
916 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
917
918 2004-11-13 Eli Zaretskii <eliz@gnu.org>
919
920 * config/i386/xm-go32.h: Don't include fopen-bin.h.
921 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
922
923 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
924 branch that doesn't define CRLF_SOURCE_FILES; always use
925 binary-mode open.
926 (print_source_lines_base, forward_search_command)
927 (reverse_search_command): Enable the code that accepts DOS-style
928 CRLF line endings on all platforms (this removes the need for
929 CRLF_SOURCE_FILES).
930
931 * defs.h: Fix wording of the comment before FOPEN_RB.
932 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
933
934 * config/djgpp/fnchange.lst: Group renames for opcode directory
935 together.
936
937 * config/djgpp/djconfig.sh: Replace file names that don't exist
938 anymore with existing files, for checking the unpacked
939 distribution.
940
941 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
942 Export pre-cooked values in configure-* targets that begin with
943 "@test -f stage_last".
944
945 2004-11-12 Andrew Cagney <cagney@gnu.org>
946
947 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
948 * value.h (struct value): Update comment.
949 * valops.c (value_assign): Fold lval_reg_fame_relative into
950 lval_register.
951 * findvar.c (value_from_register, locate_var_value): Ditto.
952
953 2004-11-12 Randolph Chung <tausq@debian.org>
954
955 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
956 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
957 (write_exp_msymbol): Remove conditional check for symbols starting
958 with $. Update comments.
959
960 2004-11-12 Randolph Chung <tausq@debian.org>
961
962 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
963 so_lib_thread_start_addr.
964 * pa64solib.h (so_list): Forward declare.
965 (pa64_solib_thread_start_addr): Prototype.
966 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
967 (no_shared_libraries): Remove.
968 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
969 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
970 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
971 the elf solib handler to find the start address.
972
973 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
974 files to the target makefile.
975 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
976 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
977 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
978
979 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
980 files for symbol reading and shared library handling here.
981 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
982 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
983 without bringing in 64-bit support.
984
985 2004-11-12 Andrew Cagney <cagney@gnu.org>
986
987 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
988 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
989 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
990 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
991 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
992 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
993 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
994
995 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
996 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
997 (VALUE_REGNUM): Define.
998 (struct value): Delete location.regnum, rename "regno" to
999 "regnum".
1000 * value.c, valops.c, valarith.c, findvar.c: Update.
1001
1002 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
1003 (VALUE_BITPOS): Delete.
1004 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
1005 * value.c (value_type, value_offset, value_bitpos)
1006 (value_bitsize): New functions. Update references.
1007 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
1008 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
1009 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
1010 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
1011 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
1012 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
1013 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
1014 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
1015 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
1016
1017 2004-11-12 Andrew Cagney <cagney@gnu.org>
1018
1019 * cris-tdep.c (cris_register_offset): Delete, never called.
1020 (cris_spec_reg_applicable): Delete cris_ver_sim.
1021 * MAINTAINERS: List d10v as OBSOLETE.
1022 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
1023 FOPEN_WB et.al., defined by "fopen-bin.h".
1024
1025 2004-11-12 Randolph Chung <tausq@debian.org>
1026
1027 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
1028 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
1029 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
1030 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
1031
1032 2004-11-12 Mark Kettenis <kettenis@jive.nl>
1033
1034 * tui/tui-io.c: Don't include "terminal.h".
1035 * Makefile.in (tui-io.o): Update dependencies.
1036
1037 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
1038
1039 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
1040 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
1041 set_gdbarch_regset_from_core_section for core file support.
1042 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
1043 New functions.
1044
1045 2004-11-11 Randolph Chung <tausq@debian.org>
1046
1047 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
1048 stop_after_branch parameter and use it to determine if we should look
1049 at the delay slot of the first branch insn to find prologue insns.
1050 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
1051 (hppa_frame_cache): Likewise.
1052
1053 2004-11-11 Randolph Chung <tausq@debian.org>
1054
1055 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
1056 register so that it can be unwound from anywhere in the prologue.
1057
1058 2004-11-10 msnyder <msnyder@redhat.com>
1059
1060 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
1061 must invalidate lr_reg (so we don't try to save it again).
1062 Ditto for cr_offset and cr_reg.
1063
1064 2004-11-05 Jon Beniston <jon@beniston.com>
1065
1066 Committed by Andrew Cagney.
1067 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
1068 when an unexpected packet is received, as the target stubs
1069 continually retransmit the same packet until ACKed.
1070
1071 2004-11-10 Randolph Chung <tausq@debian.org>
1072
1073 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
1074 frame's type.
1075
1076 2004-11-10 Randolph Chung <tausq@debian.org>
1077
1078 * blockframe.c (inside_entry_func): Move to .....
1079 * frame.c (inside_entry_func): ... here, and make static.
1080 (backtrace_past_entry): New flag.
1081 (get_prev_frame): Stop backtrace at the entry function if enabled
1082 by flag. Update comments.
1083 (_initialize_frame): Add command to set backtrace_past_entry flag.
1084 * defs.h (inside_entry_func): Remove prototype.
1085
1086 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1087
1088 * dwarf2read.c: Fix formatting.
1089
1090 2004-11-10 Andrew Cagney <cagney@gnu.org>
1091
1092 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1093 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1094 macros with function declarations.
1095 * value.c (coerce_ref, coerce_array, coerce_number)
1096 (coerce_enum): New functions.
1097 (value_as_long, value_as_address): Update.
1098 * ada-lang.c (ada_coerce_ref, ada_value_binop)
1099 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1100 * jv-lang.c (evaluate_subexp_java): Update.
1101 * valarith.c (value_less, value_neg, value_complement)
1102 (value_binop, value_add, value_subscript, value_x_binop)
1103 (value_logical_not, value_sub): Update.
1104 * valops.c (check_field, value_struct_elt, value_ind)
1105 (value_find_oload_method_list, value_cast, value_assign): Update.
1106 * eval.c (evaluate_subexp_standard): Update.
1107
1108 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1109
1110 * mips-tdep.c (mips32_relative_offset): Change return type to
1111 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1112
1113 2004-11-10 Randolph Chung <tausq@debian.org>
1114
1115 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1116 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1117 (hppa_fetch_pointer_argument): Likewise.
1118 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1119 deprecated_read_memory_nobpt.
1120 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1121 add_set_cmd sequence with add_setshow_boolean_cmd.
1122
1123 2004-11-09 Andrew Cagney <cagney@gnu.org>
1124
1125 GDB 6.3 released from GDB 6.3 branch.
1126
1127 2004-11-09 Andrew Cagney <cagney@gnu.org>
1128
1129 * values.c: Rename to ...
1130 * value.c: ..., new file.
1131 * Makefile.in: Update.
1132
1133 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1134
1135 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1136 size.
1137
1138 2004-11-09 Andrew Cagney <cagney@gnu.org>
1139
1140 * TODO: Delete.
1141
1142 * value.h (struct value): Delete field bfd_section.
1143 (VALUE_BFD_SECTION): Delete macro.
1144 (COERCE_REF): Update.
1145 (value_at, value_at_lazy): Delete asection parameter.
1146 * printcmd.c (print_formatted, x_command): Update.
1147 (do_examine): Delete asection parameter.
1148 (next_section): Delete variable.
1149 * valops.c (value_cast, value_at, value_at_lazy)
1150 (value_coerce_function, value_addr, value_ind, value_string)
1151 (find_rt_vbase_offset, value_full_object): Update.
1152 * hpacc-abi.c (hpacc_virtual_fn_field)
1153 (hpacc_value_rtti_type): Update.
1154 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1155 (gnuv3_baseclass_offset): Update.
1156 * f-valprint.c (f_val_print): Update.
1157 * c-valprint.c (c_val_print): Update.
1158 * p-valprint.c (pascal_val_print): Update.
1159 * jv-valprint.c (java_value_print): Update.
1160 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1161 * ada-lang.c (ada_value_primitive_packed_val)
1162 (ada_evaluate_subexp): Update.
1163 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1164 * expprint.c (print_subexp_standard): Update.
1165 * infcall.c (call_function_by_hand): Update.
1166 * valarith.c (value_add): Update.
1167 * eval.c (evaluate_subexp_standard): Update.
1168 * values.c (allocate_value, value_copy, value_static_field): Update.
1169 * findvar.c (read_var_value, locate_var_value): Update.
1170
1171 2004-11-09 Andrew Cagney <cagney@gnu.org>
1172
1173 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1174 * Makefile.in: Update all dependencies.
1175
1176 2004-11-08 Andrew Cagney <cagney@gnu.org>
1177
1178 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1179 (sentinel_frame_unwinder): Add the prev_pc method.
1180 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1181 available. Do not handle the sentinel-frame case.
1182 * frame-unwind.h (frame_prev_register_ftype): Define.
1183 (struct frame_unwind): Add prev_pc;
1184
1185 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1186
1187 * configure.in: Check for ncurses/term.h.
1188 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1189 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1190 * tui/tui.c: Don't include term.h.
1191 * configure, config.in: Rebuilt.
1192
1193 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1194
1195 * m68kbsd-nat.c: Include "inf-ptrace.h".
1196 (_initialize_m68kbsd_nat): Fix pasto.
1197 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1198
1199 2004-11-08 Randolph Chung <tausq@debian.org>
1200
1201 * infrun.c (debug_infrun): New variable.
1202 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1203 (handle_inferior_event, keep_going): Likewise.
1204 (_initialize_infrun): Register "set debug infrun" command.
1205
1206 2004-11-08 Andreas Schwab <schwab@suse.de>
1207
1208 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1209 PTRACE_EVENT_VFORKDONE.
1210 (child_follow_fork): Adjust.
1211
1212 2004-11-08 Andrew Cagney <cagney@gnu.org>
1213
1214 * README: Refer to 6.3, not 6.2, update directory listing droppng
1215 references to intl/ and mmalloc/.
1216 * PROBLEMS: Refer to 6.3 not 6.2.
1217
1218 * PROBLEMS: Delete no-longer applicable problems.
1219
1220 2004-11-07 Andrew Cagney <cagney@redhat.com>
1221 Daniel Jacobowitz <dan@debian.org>
1222 Roland McGrath <roland@redhat.com>
1223
1224 * Makefile.in (symfile-mem.o): Update dependencies.
1225 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1226 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1227 * inf-ptrace.c (inf_ptrace_attach): Call
1228 observer_notify_inferior_created.
1229 * inftarg.c (child_attach): Likewise.
1230 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1231 (symbol_file_add_from_memory): Take NAME argument. Use it for
1232 the new BFD's filename.
1233 (add_symbol_file_from_memory_command): Update call to
1234 symbol_file_add_from_memory.
1235 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1236 (symbol_file_add_from_memory_wrapper): New.
1237 (_initialize_symfile_mem): Register add_vsyscall_page as an
1238 inferior_created observer.
1239
1240 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1241
1242 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1243 fetch_inferior_registers. Make static.
1244 (m68kbsd_store_inferior_registers): Rename from
1245 store_inferior_registers. Make static.
1246 (_initialize_m68kbsd_nat): Construct and add target vector.
1247 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1248 inftarg.o. Add inf-ptrace.o.
1249 (NAT_FILE): Set to tm-solib.h.
1250 (LOADLIBES): New variable.
1251 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1252 inftarg.o. Add inf-ptrace.o.
1253 (NAT_FILE): Delete variable.
1254 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1255 inftarg.o. Add inf-ptrace.o.
1256 (NAT_FILE): Set to tm-solib.h.
1257 * config/m68k/nm-nbsdaout.h: Remove file.
1258
1259 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1260
1261 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1262 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1263 (dwarf2_signal_frame_unwind): New.
1264 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1265 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1266
1267 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1268
1269 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1270
1271 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1272 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1273 to only include the structure members we actually need.
1274 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1275 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1276 only include the structure members we actually need.
1277 (mipsnbsd_init_abi): Update.
1278
1279 * mips64obsd-nat.c: Include "mips-tdep.h".
1280 (MIPS64OBSD_NUM_REGS): Remove define.
1281 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1282 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1283 floating-point registers correctly.
1284 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1285
1286 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1287 "gdb_assert.h".
1288 (mips64obsd_sigframe_init): New function.
1289 (mips64obsd_sigframe): New variable.
1290 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1291 unwinder.
1292 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1293
1294 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1295
1296 * alpha-mdebug-tdep.c: #include mdebugread.h.
1297 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1298 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1299
1300 2004-11-05 Andrew Cagney <cagney@gnu.org>
1301
1302 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1303 CFI and the init_reg method leave the register unspecified.
1304 Include the register name in the "Incomplete CFI data" complaint.
1305 Supress leading zeros in the address.
1306
1307 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1308
1309 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1310 skipping a personality routine in a CIE augmentation.
1311
1312 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1313
1314 * defs.h (fatal, vfatal): New function prototypes.
1315 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1316 via catch_errors.
1317 (backtrace_command): Change to call backtrace_command_stub via
1318 catch_errors instead of calling backtrace_command_1 directly.
1319 (backtrace_full_command): Ditto.
1320 * utils.c (error_stream_1): New static function.
1321 (verror): Change to call error_stream_1 instead of error_stream.
1322 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1323 (vfatal, fatal): New functions.
1324
1325 2004-11-05 Andrew Cagney <cagney@gnu.org>
1326
1327 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1328 when not using selected frame.
1329
1330 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1331
1332 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1333 personality routine in a CIE augmentation.
1334
1335 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1336
1337 * stack.c (set_current_sal_from_frame): New function.
1338 (print_args_stub): Use it.
1339 (print_frame_info): Don't set sal here.
1340
1341 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1342
1343 * dwarf2-frame.c (read_encoded_value): Change type of third
1344 argument to `unsigned char *'. Add support for LEB128 encodings.
1345
1346 2004-11-04 Jim Blandy <jimb@redhat.com>
1347
1348 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1349 prevent cross-objfile references.
1350 (make_cv_type): Doc fix. Don't create cross-objfile references,
1351 even for stub types.
1352 (replace_type): Add assertion to prevent cross-objfile references.
1353 (check_typedef): Never resolve a stub type by copying over a type
1354 from another file.
1355
1356 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1357
1358 * Makefile.in (m32r-tdep.o): Update dependencies.
1359 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1360 ABI-specific overrides.
1361
1362 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1363
1364 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1365 unnecessary parallel execution bit.
1366 (m32r_memory_remove_breakpoint): Ditto.
1367 (m32r_breakpoint_from_pc): Update.
1368
1369 2004-11-03 Randolph Chung <tausq@debian.org>
1370
1371 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1372 frame_func_unwind to locate the unwind entry.
1373 (hppa_frame_this_id): Likewise.
1374
1375 2004-11-03 Andrew Cagney <cagney@gnu.org>
1376
1377 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1378 packet, obsolete configurations, end-of-life deprecated_registers.
1379
1380 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1381
1382 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1383 encodings as well as unsigned encodings.
1384
1385 2004-11-02 Andrew Cagney <cagney@gnu.org>
1386
1387 * value.h (COERCE_VARYING_ARRAY): Delete.
1388 * valops.c (value_cast, value_slice): Delete use.
1389 * valarith.c (value_subscript, value_concat): Delete use.
1390
1391 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1392
1393 * NEWS: GDB understands GNAT Ada.
1394
1395 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1396
1397 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1398 (amd64-sol2-tdep.o): Add dependencies.
1399 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1400 config/i386/sol2-64.mt: New files.
1401 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1402 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1403 (supply_gregset): Correct order of arguments to
1404 amd64_supply_native_gregset.
1405 (fill_gregset): Correct order of arguments to
1406 amd64_collect_native_gregset.
1407 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1408 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1409 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1410 for definition of NEW_PROC_API.
1411 * configure: Regenerate.
1412
1413 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1414
1415 * MAINTAINERS (Write After Approval): Add myself.
1416
1417 2004-11-01 Andrew Cagney <cagney@gnu.org>
1418
1419 * configure.tgt: Mark d10v-*-* as obsolete.
1420 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1421
1422 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1423
1424 * values.c (modify_field): Correct handling of bit-fields that
1425 don't fit in 32 bits. Use unsigned operations throughout and
1426 simplify the code a bit. Document preconditions.
1427
1428 2004-10-31 Andrew Cagney <cagney@gnu.org>
1429
1430 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1431 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1432 (in_plt_section): Delete.
1433
1434 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1435 (mips_gdbarch_init): Do not set same.
1436
1437 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1438 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1439
1440 * gdbarch.sh (in_solib_call_trampoline): Delete.
1441 * gdbarch.h, gdbarch.c: Re-generate.
1442
1443 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1444 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1445 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1446 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1447 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1448
1449 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1450
1451 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1452 (mipsnbsd_fetch_inferior_registers): Rename from
1453 fetch_inferior_registers. Make static.
1454 (mipsnbsd_store_inferior_registers): Rename from
1455 store_inferior_registers. Make static.
1456 (_initialize_mipsnbsd_nat): New function and prototype.
1457 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1458 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1459 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1460 inf-ptrace.o.
1461
1462 2004-10-31 Andrew Cagney <cagney@gnu.org>
1463
1464 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1465 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1466 delete corresponding unused function.
1467 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1468 in_solib_call_trampoline.
1469 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1470 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1471 * config/mips/tm-nbsd.h: Ditto.
1472 * config/arm/tm-linux.h: Ditto.
1473 * config/mips/tm-linux.h: Ditto.
1474
1475 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1476 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1477 in_solib_call_trampoline, delete corresponding unused function.
1478 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1479 (vaxnbsd_aout_init_abi): Ditto.
1480 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1481 (sparc32nbsd_aout_init_abi): Ditto.
1482 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1483 (ppc_linux_init_abi): Ditto.
1484 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1485 (ns32knbsd_init_abi_aout): Ditto.
1486 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1487 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1488 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1489 (m68kbsd_aout_init_abi): Ditto.
1490 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1491 (i386_cygwin_init_abi): Ditto.
1492 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1493 (i386bsd_init_abi): Ditto.
1494
1495 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1496 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1497 isn't used by this architecture.
1498 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1499 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1500 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1501 * s390-tdep.c (s390_gdbarch_init): Ditto.
1502 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1503 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1504 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1505 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1506 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1507 * amd64-tdep.c (amd64_init_abi): Ditto.
1508
1509 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1510 in_solib_call_trampoline to its default value of
1511 generic_in_solib_call_trampoline.
1512 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1513 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1514 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1515 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1516 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1517 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1518
1519 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1520
1521 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1522
1523 * config/mips/tm-mips.h: Delete file.
1524 * remote-mips.c: Delete tm-mips.h from comment.
1525 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1526 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1527 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1528 * config/mips/tm-linux.h: Don't include tm-mips.h.
1529 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1530 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1531 * config/mips/tm-wince.h: Don't include.
1532
1533 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1534 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1535 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1536 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1537
1538 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1539 * mdebugread.c (ecoff_relocate_efi): Delete function.
1540 * objfiles.c (objfile_relocate): Delete #ifdef
1541 MDEBUG_EFI_SYMBOL_NAME code.
1542
1543 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1544 Andrew Cagney <cagney@gnu.org>
1545
1546 * gdbarch.sh (single_step_through_delay): Add.
1547 * gdbarch.h, gdbarch.c: Re-generate.
1548 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1549 (mips_step_skips_delay): Delete.
1550 * mips-tdep.c (mips_single_step_through_delay): Replace
1551 mips_step_skips_delay.
1552 (mips_gdbarch_init): Set single_step_through_delay.
1553 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1554
1555 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1556
1557 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1558 from TRAMP_FRAME frame type.
1559
1560 2004-10-31 Andrew Cagney <cagney@gnu.org>
1561
1562 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1563
1564 * mips-tdep.c (mips_ignore_helper): Delete.
1565 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1566 * infrun.c (handle_inferior_event): Delete #ifdef
1567 DEPRECATED_IGNORE_HELPER_CALL code.
1568
1569 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1570
1571 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1572
1573 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1574 (fill_fpregset): Do not compile for 64-bit systems.
1575 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1576 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1577 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1578
1579 2004-10-30 Andrew Cagney <cagney@gnu.org>
1580
1581 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1582 (struct mdebug_extra_func_info): Define.
1583 * config/alpha/tm-alpha.h: Delete same.
1584 * config/mips/tm-mips.h: Delete same.
1585 * mdebugread.c: Delete same.
1586 * Makefile.in: Update dependencies.
1587 * mips-mdebug-tdep.c: Include "mdebugread.h".
1588
1589 * objfiles.c: Include "mdebugread.h".
1590 * mdebugread.c: Include "mdebugread.h".
1591 (ecoff_relocate_cfi): Delete.
1592 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1593 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1594 * mdebugread.h (ecoff_relocate_efi): New file.
1595 * Makefile.in: Update dependencies.
1596
1597 * mips-tdep.c (struct frame_extra_info): Delete.
1598 (temp_proc_desc): Delete.
1599
1600 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1601 MIPS_EFI_SYMBOL_NAME.
1602 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1603 (struct mdebug_extra_func_info): Replace struct
1604 alpha_extra_func_info and alpha_extra_func_info_t.
1605 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1606 MIPS_EFI_SYMBOL_NAME.
1607 (struct mdebug_extra_func_info): Replace struct
1608 alpha_extra_func_info and alpha_extra_func_info_t.
1609 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1610 * mdebugread.c, alpha-mdebug-tdep.c:
1611
1612 Suggested by Mark Kettenis.
1613 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1614 fields frame_adjust and high_addr.
1615 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1616 (non_heuristic_proc_desc): Delete references.
1617
1618 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1619 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1620 * mips-tdep.c: Update.
1621
1622 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1623 (MIPS_LAST_EMBED_REGNUM): Add.
1624 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1625 (LAST_EMBED_REGNUM): Delete.
1626 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1627
1628 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1629 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1630 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1631 * mips-linux-nat.c: Update.
1632
1633 * mips-tdep.h: Add comments on registers.
1634 (MIPS_UNUSED_REGNUM): Define.
1635 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1636 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1637 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1638 * mips-linux-nat.c, remote-mips.c: Update.
1639
1640 * config/mips/tm-mips.h (t_insn): Delete.
1641 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1642 Replace t_insn with ULONGEST.
1643
1644 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1645
1646 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1647 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1648 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1649 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1650 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1651 (mipsnbsd_core_osabi_sniffer): New function.
1652 (mipsnbsd_init_abi): Set regset_from_core_section.
1653 (_initialize_mipsnbsd_tdep): Remove calls to
1654 deprecated_add_core_fns.
1655 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1656 (mipsnbsd_regset_from_core_section): New functions.
1657 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1658 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1659
1660 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1661 Remove optimization for DEPRECATED_FP_REGNUM.
1662
1663 2004-10-30 Andrew Cagney <cagney@gnu.org>
1664
1665 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1666 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1667 (alpha_setup_arbitrary_frame): Delete.
1668 * mips-tdep.c (setup_arbitrary_frame): Delete.
1669 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1670 (setup_arbitrary_frame): Delete.
1671 * stack.c (parse_frame_specification_1): When specified, call
1672 create_new_frame with two parameters. Delete #ifdef
1673 SETUP_ARBITRARY_FRAME.
1674
1675 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1676 (MIPS_INSTLEN): Delete.
1677 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1678 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1679 * remote-mips.c, mips-tdep.c: Update.
1680
1681 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1682 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1683 * mips-tdep.c (mips_mdebug_frame_cache)
1684 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1685 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1686 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1687 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1688 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1689 (mips_gdbarch_init): Do not append mdebug sniffers.
1690 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1691 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1692 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1693 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1694 * Makefile.in: Update dependencies.
1695
1696 * mips-tdep.h (mips_abi_regsize): Declare.
1697 * mips-tdep.c (mips_abi_regsize): Make non-static.
1698
1699 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1700 (make_mips16_addr): Delete.
1701
1702 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1703
1704 * i386-sol2-nat.c: New file.
1705 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1706 i386-sol2-tdep.c.
1707 (i386-sol2-nat.o): Update dependencies.
1708 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1709 i386-sol2-nat.o.
1710
1711 2004-10-30 Andrew Cagney <cagney@gnu.org>
1712
1713 Total breakage identified by Joel Brobecker.
1714 * mips-tdep.c (after_prologue): Delete.
1715 (mips_skip_prologue): Use skip_prologue_using_sal.
1716 (heuristic_proc_desc): Delete, unused.
1717
1718 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1719
1720 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1721 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1722 Cleanup coding style.
1723
1724 2004-10-30 Andrew Cagney <cagney@gnu.org>
1725
1726 * mips-tdep.h (mips_pc_is_mips16): Declare.
1727 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1728 non-static. Update calls.
1729
1730 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1731 * command.h (add_setshow_enum_cmd): Declare.
1732 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1733
1734 * mips-tdep.c (_initialize_mips_tdep): Use
1735 add_setshow_zinteger_cmd.
1736
1737 * mips-tdep.c (mips_eabi_extract_return_value)
1738 (mips_o64_extract_return_value, mips_o64_store_return_value)
1739 (return_value_location, mips_eabi_reg_struct_has_addr)
1740 (mips_eabi_use_struct_convention)
1741 (mips_eabi_store_return_value): Delete.
1742 (mips_eabi_store_return_value): New function.
1743 (mips_eabi_return_value): New function.
1744 (mips_gdbarch_init): For O64 and EABI, delete
1745 extract_return_value, store_return_value, use_struct_convention
1746 and reg_struct_has_addr, add return_value.
1747
1748 * mips-tdep.c (read_signed_register): Use
1749 regcache_cooked_read_signed.
1750
1751 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1752
1753 * mipsread.c: Cleanup coding style.
1754 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1755 (mipscoff_symfile_finish): Remove prototypes.
1756
1757 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1758
1759 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1760 (mips_mdebug_frame_cache, mips16_scan_prologue)
1761 (mips32_scan_prologue, mips_stub_frame_cache)
1762 (heuristic_proc_start, heuristic_proc_desc)
1763 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1764 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1765 (mips_o32_return_value, mips_o64_push_dummy_call)
1766 (mips_step_skips_delay, mips_skip_trampoline_code)
1767 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1768 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1769 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1770 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1771 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1772 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1773 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1774 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1775 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1776 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1777 ZERO_REGNUM.
1778 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1779 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1780 ZERO_REGNUM.
1781 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1782 A0_REGNUM.
1783 * mipsnbsd-nat.c: Include "mips-tdep.h".
1784 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1785 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1786
1787 2004-10-29 Andrew Cagney <cagney@gnu.org>
1788
1789 * stack.c (parse_frame_specification_1): New function based on
1790 parse_frame_specification. Add message and selected_frame_p
1791 paramters. Truely always return non-NULL.
1792 (parse_frame_specification): Call parse_frame_specification_1.
1793 (frame_info): Update. Eliminate target_has_stack check.
1794 (select_frame_command): Update.
1795
1796 2004-10-29 Andrew Cagney <cagney@gnu.org>
1797
1798 * frame.h (get_selected_frame): Add message parameter.
1799 * frame.c (get_selected_frame): Add and use message parameter.
1800 * stack.c (current_frame_command, return_command, locals_info)
1801 (catch_info, args_info, up_silently_base, down_silently_base): Use
1802 get_selected_frame with an explicit message.
1803 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1804 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1805 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1806 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1807 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1808 * breakpoint.c: Update.
1809
1810 2004-10-29 Andrew Cagney <cagney@gnu.org>
1811
1812 * trad-frame.c (trad_frame_get_prev_register): Use
1813 frame_unwind_register instead of frame_register_unwind, do not
1814 recurse the register's location.
1815 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1816 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1817 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1818 * sh-tdep.c (sh_frame_prev_register): Ditto.
1819 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1820 * i386-tdep.c (i386_frame_prev_register): Ditto.
1821 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1822 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1823
1824 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1825
1826 * proc-events.c: Fix several coding-style issues. Consistently
1827 use #ifdef instead of #if defined().
1828 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1829 ARRAY_SIZE.
1830 (_initialize_proc_events): New prototype.
1831
1832 * proc-why.c: Fix several coding-style issues.
1833 (proc_prettyfprint_why): Use ARRAY_SIZE.
1834
1835 2004-10-27 Jim Blandy <jimb@redhat.com>
1836
1837 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1838 manner independent of the host byte order.
1839
1840 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1841
1842 * mips-tdep.c (id_delayed): Remove prototype.
1843
1844 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1845
1846 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1847 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1848 to enum with register numbers.
1849 (enum mips_insn_size): New enum.
1850
1851 2004-10-26 Andrew Cagney <cagney@gnu.org>
1852
1853 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1854 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1855 (mips_gdbarch_init): Update.
1856 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1857
1858 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1859 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1860 IN_SOLIB_RETURN_TRAMPOLINE.
1861 * mips-tdep.c (mips_dump_tdep): Do not print
1862 IN_SOLIB_RETURN_TRAMPOLINE.
1863 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1864 (mips_gdbarch_init): Update.
1865
1866 * mips-tdep.h (mips_software_single_step): Move to here ...
1867 * config/mips/tm-mips.h: ... from here.
1868 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1869 (SOFTWARE_SINGLE_STEP): Delete.
1870 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1871
1872 2004-10-25 Andrew Cagney <cagney@gnu.org>
1873
1874 * NEWS: Add Changes since GDB 6.3 section.
1875
1876 2004-10-23 Andreas Schwab <schwab@suse.de>
1877
1878 * ada-lang.c (grow_vect): Return the new array instead of
1879 expecting pointer to pointer to avoid violation of aliasing rules.
1880 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1881
1882 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1883
1884 * s390-tdep.c (enum pv_boolean): Remove.
1885 (pv_is_array_ref): Remove.
1886 (s390_on_stack): Remove.
1887 (S390_NUM_SPILL_SLOTS): Remove.
1888 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1889 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1890 (s390_store): Track all stores of orginal incoming registers to the
1891 stack constant offsets relative to the CFA, instead of only tracking
1892 stores into specific spill slots.
1893 (s390_load): Likewise.
1894 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1895 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1896 defined as call-saved by the ABI.
1897 (s390_push_dummy_call): Use bottom of dummy call argument save area
1898 as return value, not the top. Do not store to the called function's
1899 register save area.
1900 (s390_unwind_dummy_id): Adapt accordingly.
1901
1902 2004-10-23 Andrew Cagney <cagney@gnu.org>
1903
1904 * objfiles.h (struct objfile): Rename obj_private to
1905 deprecated_obj_private, sym_private to deprecated_sym_private, and
1906 sym_stab_info to deprecated_sym_stab_info.
1907 * gdb-stabs.h: Update.
1908 * elfread.c: Update.
1909 * dbxread.c: Update.
1910 * coffread.c: Update.
1911 * xcoffread.c: Update.
1912 * symfile.c: Update.
1913 * somread.c: Update.
1914 * nlmread.c: Update.
1915 * mdebugread.c: Update.
1916 * hpread.c: Update.
1917 * coffread.c: Update.
1918
1919 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1920
1921 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1922 * configure.host: Add mips64*-*-openbsd*.
1923 * configure.tgt: Add mips64*-*-openbsd*.
1924 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1925 mips64obsd-tdep.c.
1926 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1927 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1928
1929 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1930
1931 * symtab.c (symbol_search_name): Minor reformatting.
1932
1933 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1934
1935 * symtab.h: Fix typo in comment.
1936
1937 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1938
1939 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1940 (dwarf_decode_line_header): Likewise.
1941
1942 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1943
1944 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1945
1946 2004-10-19 Andrew Cagney <cagney@gnu.org>
1947
1948 GDB 6.3 branch created.
1949 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1950
1951 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1952
1953 * dwarf2read.c (set_cu_language): Set language to Ada for
1954 DW_LANG_Ada83 and DW_LANG_Ada95.
1955
1956 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1957
1958 From Andreas Schwab <schwab@suse.de>:
1959 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1960 for xmalloc and xrealloc.
1961
1962 2004-10-15 Andrew Cagney <cagney@gnu.org>
1963
1964 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1965 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1966 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1967 Update dependencies.
1968
1969 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1970
1971 * ada-lang.c (ada_lookup_symbol): Correct comment.
1972 (ada_evaluate_subexp): Change error message for
1973 OP_FUNCALL case so as not to indicate an internal error.
1974
1975 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1976
1977 Committed by Paul Hilfinger.
1978 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1979 type sizes in XVE/XVU types, and emit a warning when that happens,
1980 instead of rounding up the size of the resulting type.
1981 Some minor reformatting.
1982 (ada_is_aligner_type): Do not consider a type as an aligner type
1983 if there is a corresponding XVS type as well.
1984 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1985 have several levels of pointer indirection to the array.
1986
1987 2004-10-15 Jerome Guitton <guitton@gnat.com>
1988
1989 Committed by Paul Hilfinger.
1990 * ada-lang.c (check_size): New function.
1991 (coerce_unspec_val_to_type): call check_size to make sure
1992 that the object size is reasonable.
1993 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1994 Implements the case when we get a reference when we evaluate
1995 the expression of one of the bounds of the slice.
1996 (ada_value_struct_elt): when a packed array field is
1997 a reference, use ada_coerce_ref to dereference it; use
1998 ada_value_ind only if it is a pointer.
1999
2000 2004-10-15 Joel Brobecker <brobecker@gnat.com>
2001
2002 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
2003 a bit to avoid the necessity of an advance declaration. Remove
2004 declaration.
2005 (set_reg_offset): Move implemenation up.
2006 (mips16_get_imm): Likewise.
2007 (mips16_scan_prologue): Likewise.
2008 (reset_saved_regs): Likewise.
2009 (mips32_scan_prologue): Likewise.
2010
2011 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2012
2013 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
2014 Remove sp as a parameter, compute it internally instead. Move
2015 prologue scanning limit from heuristic_proc_desc to here.
2016 (mips16_scan_prologue): Likewise.
2017 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
2018 by call to mips16_scan_prologue.
2019 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
2020 by call to mips32_scan_prologue.
2021 (heuristic_proc_desc): Remove code that's no longer necessary.
2022 Update calls to mips16_scan_prologue and mips32_scan_prologue.
2023 (mips_skip_prologue): Update calls to mips16_scan_prologue
2024 and mips32_scan_prologue.
2025
2026 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2027
2028 * mips-tdep.c (mips16_scan_prologue): Merge code from
2029 mips16_skip_prologue. Now return the address of the first
2030 instruction past the function prologue.
2031 (mips16_skip_prologue): Remove, no longer necessary.
2032 (mips_skip_prologue): Replace call to mips16_skip_prologue
2033 by call to mips16_scan_prologue.
2034
2035 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2036
2037 * mips-tdep.c (mips32_scan_prologue): Merge code from
2038 mips32_skip_prologue. Now return the address of the first
2039 instruction past the function prologue.
2040 (mips32_skip_prologue): Remove. No longer necessary.
2041 (mips16_skip_prologue): Add parameter end_pc instead of
2042 computing it.
2043 (mips_skip_prologue): Compute the upper limit for the
2044 prologue scanning. Update call to mips16_skip_prologue.
2045 Replace call to mips32_skip_prologue by call to
2046 mips32_scan_prologue.
2047
2048 2004-10-14 Mark Kettenis <kettenis@gnu.org>
2049
2050 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
2051 NetBSD system call stubs that store %rp in the ERP slot of the
2052 stack frame.
2053
2054 * source.c: Always define O_BINARY to 0 if not defined already.
2055 (openp): Unconditionally use O_BINARY.
2056
2057 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
2058 * event-top.c (gdb_readline2): Likewise.
2059
2060 2004-10-14 Orjan Friberg <orjanf@axis.com>
2061
2062 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
2063 deprecated_add_core_fns which was removed by mistake.
2064
2065 2004-10-13 Kevin Buettner <kevinb@redhat.com>
2066
2067 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
2068 references to deprecated_registers[] with equivalent code.
2069
2070 2004-10-13 Kevin Buettner <kevinb@redhat.com>
2071
2072 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
2073 ``deprecated_registers'' with equivalent code. Use gdb_assert()
2074 instead of explicit test and print statement.
2075
2076 2004-10-12 Mark Kettenis <kettenis@gnu.org>
2077
2078 * sparc-nat.c: Include "inf-ptrace.h".
2079 (sparc_target): New function.
2080 * sparc-nat.h: Update copyright year.
2081 (sparc_target): New prototype.
2082 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
2083 (_initialize_sparcnbsd_nat): Construct and add target vector.
2084 * sparc64nbsd-nat.c: Include "target.h".
2085 (_initialize_sparc64nbsd_nat): Construct and add target vector.
2086 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
2087 Update dependencies.
2088 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
2089 inftarg.o, add inf-ptrace.o.
2090 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2091 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2092 (NAT_FILE): Set to nm-bsd.h.
2093 (LOADLIBES): New variable.
2094 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2095 infarg.o, add inf-ptrace.o.
2096 * config/sparc/nm-nbsdaout.h: Remove file.
2097 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2098 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2099 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2100
2101 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2102 "fopen-same.h". Update comment.
2103
2104 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2105
2106 * i386gnu-nat.c: Include "gdb_string.h".
2107 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2108 registers when the floating-point state isn't initialized.
2109 * Makefile.in (i386gnu-nat.o): Update dependencies.
2110
2111 2004-10-11 David Anderson <davea@sgi.com>
2112
2113 * regcache.c (regcache_raw_read): Comment was missing "to".
2114 Extraneous ' removed.
2115 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2116 comment now describes use.
2117
2118 2004-10-11 Orjan Friberg <orjanf@axis.com>
2119
2120 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2121 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2122 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2123 (cris_sigtramp_frame_sniffer): New functions.
2124 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2125 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2126 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2127 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2128 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2129 command.
2130 (cris_version_update): Remove, replace with ...
2131 (set_cris_version): New function.
2132 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2133 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2134 (_initialize_cris_tdep): Remove CRIS mode command.
2135 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2136 cris-fpless-backtrace command.
2137 (cris_scan_prologue): Fix prologue scanning limit.
2138 (cris_register_type): Update to reflect actual registers.
2139 (cris_register_bytes_ok) Remove.
2140 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2141 Remove set_gdbarch_deprecated_register_size,
2142 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2143
2144 2004-10-10 Andrew Cagney <cagney@gnu.org>
2145
2146 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2147 comment.
2148
2149 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2150
2151 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2152
2153 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2154
2155 * mips-tdep.c (mips16_scan_prologue): Renames
2156 mips16_heuristic_proc_desc. Update comment.
2157 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2158 (heuristic_proc_desc): Update calls to the 2 functions above.
2159
2160 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2161
2162 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2163 Update comments. Also immediately return empty cache when the start
2164 address of our function could not be found.
2165 (mips_insn32_frame_cache): Likewise.
2166
2167 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2168
2169 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2170 (mips_insn16_frame_cache): Pass frame cache in call to
2171 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2172 Remove code that became redundant as a consequence.
2173 (mips32_heuristic_proc_desc): No longer compute a fake
2174 procedure descriptor. Compute the full frame cache instead.
2175 Some minor comment reformatting.
2176
2177 2004-10-10 Jim Blandy <jimb@redhat.com>
2178
2179 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2180 reader, tracing bytecode stuff): Remove self.
2181
2182 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2183
2184 * sparc64-linux-tdep.c: Update copyright year. Don't include
2185 "solib-svr4.h".
2186 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2187 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2188 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2189
2190 * sparc-linux-tdep.c: Update copyright year.
2191 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2192 to struct frame_info *. Use safe_frame_unwind_memory instead of
2193 deprecated_read_memory_nobpt.
2194 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2195 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2196 changed signature of sparc_linux_sigtramp_start.
2197 (sparc32_linux_pc_in_sigtramp): Remove function.
2198 (sparc32_linux_sigtramp_p): New function.
2199 (sparc32_linux_sigtramp_frame_sniffer): Use
2200 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2201
2202 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2203 Remove function.
2204 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2205
2206 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2207 (decode_packed_array_type, value_subscript_packed)
2208 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2209 argument in call to lim_warning.
2210
2211 * configure.in: Really disable the TUI if an enhanced curses
2212 library isn't found.
2213 * configure: Regenerate.
2214
2215 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2216
2217 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2218 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2219 * config/i386/nm-nbsdaout.h: Remove file.
2220 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2221 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2222 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2223 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2224 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2225 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2226 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2227 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2228 (ldd, ld_un, ld_2): Remove defines.
2229 * config/i386/nm-obsd.h: Likewise.
2230
2231 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2232
2233 * ada-lex.l: Remove useless rule whose right-context clause
2234 causes unreferenced static function warning for yyrealloc.
2235 (ada_flex_use): Remove the artificial reference to yyrealloc.
2236
2237 2004-10-08 Andrew Cagney <cagney@gnu.org>
2238
2239 * target.h (struct target_ops): Rename to_xfer_memory to
2240 deprecated_xfer_memory.
2241 * target.c: Update.
2242 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2243 * wince.c: Update.
2244 * win32-nat.c: Update.
2245 * v850ice.c: Update.
2246 * uw-thread.c: Update.
2247 * thread-db.c: Update.
2248 * sol-thread.c: Update.
2249 * remote.c: Update.
2250 * remote-vx.c: Update.
2251 * remote-st.c: Update.
2252 * remote-sim.c: Update.
2253 * remote-sds.c: Update.
2254 * remote-rdp.c: Update.
2255 * remote-rdi.c: Update.
2256 * remote-mips.c: Update.
2257 * remote-m32r-sdi.c: Update.
2258 * remote-e7000.c: Update.
2259 * procfs.c: Update.
2260 * ppc-bdm.c: Update.
2261 * nto-procfs.c: Update.
2262 * monitor.c: Update.
2263 * linux-nat.c: Update.
2264 * inftarg.c: Update.
2265 * hpux-thread.c: Update.
2266 * go32-nat.c: Update.
2267 * gnu-nat.c: Update.
2268 * exec.c: Update.
2269 * corelow.c: Update.
2270 * bsd-kvm.c: Update.
2271 * aix-thread.c: Update.
2272
2273 2004-10-08 Andrew Cagney <cagney@gnu.org>
2274
2275 * target.c (debug_target): Move to near start of file.
2276 (target_stopped_data_address_p): Re-org logic, add casts.
2277
2278 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2279
2280 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2281 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2282 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2283 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2284 New defines.
2285
2286 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2287
2288 * target.h (to_stopped_data_address): Change prototype to
2289 take a CORE_ADDR pointer and return an int.
2290 * target.c (update_current_target): Change to_stopped_data_address
2291 to match new prototype.
2292 (debug_to_stopped_data_address): Change appropriately.
2293 * breakpoint.c (bpstat_stop_status): Change call to
2294 target_stopped_data_address to use new prototype.
2295 * frv-tdep.c (frv_have_stopped_data_address): New function.
2296 (frv_stopped_data_address): Change to new prototype and
2297 functionality.
2298 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2299 prototype and functionality.
2300 (ia64_stopped_by_watchpoint): New function.
2301 * i386-nat.c (i386_stopped_data_address): Change to new
2302 prototype and functionality.
2303 (i386_stopped_by_watchpoint): New function.
2304 * remote.c (remote_stopped_data_address): Change to new prototype
2305 and functionality.
2306 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2307 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2308 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2309 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2310 new i386_stopped_by_watchpoint function.
2311 (i386_stopped_by_watchpoint): New prototype.
2312 (i386_stoppped_data_address): Change to new prototype.
2313 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2314 new ia64_stopped_by_watchpoint function.
2315 (ia64_stopped_by_watchpoint): New prototype.
2316 (ia64_stopped_data_address): Ditto.
2317
2318 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2319
2320 * ada-typeprint.c (ada_print_type): Use int_string for printing
2321 modulus of modular type.
2322 * ada-lang.h (ada_modulus): Change return type to unsigned.
2323 * ada-lang.c (ada_language_arch_info): Correct type of
2324 string_char_type.
2325 (ada_modulus): Return unsigned result.
2326 (ada_lookup_symbol): Remove user disambiguation and modify comment
2327 accordingly.
2328
2329 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2330
2331 Committed by Paul Hilfinger.
2332 * ada-lang.c (decode_packed_array): On big-endian targets,
2333 left-justify the value if it comes with a modular type.
2334
2335 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2336
2337 Committed by Paul Hilfinger.
2338 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2339 (is_name_suffix): Add support for "___JM" suffixes.
2340 (ada_check_typedef): Renames ada_completed_type.
2341 Update all users of CHECK_TYPEDEF, check_typedef, and
2342 ada_complete_type to call ada_check_typedef.
2343 * ada-typeprint.c: Likewise.
2344 * ada-valprint.c: Likewise.
2345
2346 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2347
2348 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2349
2350 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2351
2352 * MAINTAINERS: Update e-mail address.
2353
2354 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2355
2356 From Maciej W. Rozycki <macro@mips.com>:
2357 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2358 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2359
2360 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2361
2362 * m32r-tdep.c (decode_prologue): Support functions written
2363 in assembler language. Recognize trap instructions as the
2364 end of prologue.
2365 (m32r_frame_unwind_cache): Ditto.
2366 (m32r_skip_prologue): Extend search limit. Quit analyzing
2367 prologue if pc's location is not readable.
2368
2369 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2370
2371 * Makefile.in (.l.c): Do conversions of names of alloc and free
2372 functions that are done for .y.c files, plus special one
2373 for yy_flex_realloc. Also, correct missing-file tests here.
2374 * ada-lex.l (malloc, free): Remove macros.
2375 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2376 xrealloc.
2377 (ada_flex_use): Dummy definition to remove warnings about unused
2378 functions.
2379 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2380 to suppress warning.
2381
2382 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2383
2384 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2385 RETURN_VALUE.
2386 (sh_return_value_fpu): Ditto for CPUs with FPU.
2387 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2388 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2389 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2390 RETURN_VALUE functions.
2391
2392 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2393
2394 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2395 (sh_pseudo_register_write): Ditto.
2396
2397 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2398
2399 * sh-tdep.c (IS_MACL_STS): New define.
2400 (IS_MOVI20): Ditto.
2401 (IS_MACL_LDS): Ditto.
2402 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2403 instructions in prologue.
2404 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2405 instructions in epilogue.
2406
2407 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2408
2409 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2410 (sh_sh_register_name): Add eight empty register names.
2411 (sh_sh3_register_name): Ditto.
2412 (sh_sh3e_register_name): Ditto.
2413 (sh_sh2e_register_name): Ditto.
2414 (sh_sh2a_register_name): New function, defining SH2A register set.
2415 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2416 in nofpu case.
2417 (sh_sh_dsp_register_name): Add eight empty register names.
2418 (sh_sh3_dsp_register_name): Ditto.
2419 (sh_sh4_register_name): Ditto.
2420 (sh_sh4_nofpu_register_name): Ditto.
2421 (sh_sh4al_dsp_register_name): Ditto.
2422 (sh2a_show_regs): New function.
2423 (sh2a_nofpu_show_regs): New function.
2424 (sh_sh2a_register_type): New function.
2425 (do_bank_register_info): New function.
2426 (sh_print_pseudo_register): Call do_bank_register_info.
2427 Call sh_print_pseudo_register for valid "bank" register.
2428 (sh_sh2a_register_sim_regno): New function.
2429 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2430 Increment pseudo register count by one for all sh variants with
2431 pseudo registers to accomodate pseudo bank register.
2432 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2433 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2434 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2435 Increment pseudo register numbers.
2436
2437 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2438
2439 * dwarf2read.c (read_subroutine_type): Call make_function_type
2440 instead of lookup_function_type.
2441
2442 2004-10-05 Jim Blandy <jimb@redhat.com>
2443
2444 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2445 (Previous change missed some uses.)
2446
2447 2004-10-05 Andrew Cagney <cagney@gnu.org>
2448
2449 * target.h (deprecated_child_ops): Rename child_ops.
2450 * wince.c: Update copyright. Rename child_ops.
2451 * win32-nat.c: Rename child_ops.
2452 * target.c: Rename child_ops.
2453 * rs6000-nat.c: Rename child_ops.
2454 * linux-nat.c: Rename child_ops.
2455 * infttrace.c: Rename child_ops.
2456 * inftarg.c: Rename child_ops.
2457 * infptrace.c: Rename child_ops.
2458 * hppah-nat.c: Update copyright. Rename child_ops.
2459 * hpux-thread.c: Update copyright. Rename child_ops.
2460
2461 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2462
2463 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2464
2465 2004-10-05 Andrew Cagney <cagney@gnu.org>
2466
2467 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2468
2469 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2470
2471 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2472 (die_ref_table): Remove.
2473 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2474 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2475 the usage of this type.
2476 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2477 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2478 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2479 (dwarf2_create_include_psymtab): Update comment.
2480 (find_partial_die): Remove third argument. Remove unreachable call
2481 to error ().
2482 (dwarf2_find_containing_comp_unit): Update comments. Change one
2483 assertion to an error. Remove an unreachable error.
2484 (dwarf2_find_comp_unit): Update comments.
2485 (type_at_offset): Remove dead code.
2486 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2487 (store_in_ref_table): Add CU argument.
2488 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2489 inter-compilation-unit references.
2490 (load_full_comp_unit, process_full_comp_unit): New functions, based
2491 on psymtab_to_symtab_1.
2492 (psymtab_to_symtab_1): Use them.
2493 (dwarf2_add_dependence): New function.
2494 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2495 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2496 (partial_die_parent_scope, guess_structure_name): Update for changes
2497 to find_partial_die.
2498 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2499 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2500 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2501 (read_die_and_children): Update call to store_in_ref_table.
2502 (do_free_die_list_cleanup): Remove.
2503 (fixup_partial_die): Update for changes to find_partial_die.
2504 (read_full_die): Handle queueing absolute references.
2505 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2506 (dwarf2_attr, die_specification, die_type)
2507 (die_containing_type, dwarf2_extension): Update calls to
2508 follow_die_ref.
2509 (dump_die): Update DW_FORM_ref* handling.
2510 (dwarf2_get_ref_die_offset): Likewise.
2511 (free_one_comp_unit): Release the dies list.
2512 (dwarf2_mark_helper): New function.
2513 (dwarf2_mark): Use it.
2514
2515 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2516
2517 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2518 when writing to memory.
2519
2520 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2521
2522 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2523 (m32r_extract_struct_value_address): Delete function.
2524 (m32r_return_value): New function.
2525 (m32r_gdbarch_init): Instead of store_return_value,
2526 extract_return_value, deprecated_extract_struct_value_address
2527 and deprecated_use_struct_convention, set return_value.
2528
2529 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2530
2531 * dwarf2read.c (read_subrange_type): Add comment for variable
2532 sized arrays.
2533
2534 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2535
2536 * Makefile.in (.l.c): Modify rule for compatibility with recent
2537 versions of flex, and remove most command-line options.
2538 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2539 options.
2540
2541 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2542
2543 Turn on initial Ada support (mainly expression evaluation).
2544
2545 * Makefile.in (SFILES): Remove ada-tasks.c.
2546 (HFILES_NO_SRCDIR): Add ada-lang.h.
2547 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2548 (YYOBJ): Add ada-exp.o.
2549 (rule .l.c): Generalize to not mention ada.
2550 * symtab.c: Include ada-lang.h.
2551 (symbol_natural_name, symbol_demangled_name)
2552 (symbol_search_name): Add Ada case.
2553
2554 2004-10-01 Andrew Cagney <cagney@gnu.org>
2555
2556 * Makefile.in (COMMON_OBS): Add inf-child.o.
2557 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2558 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2559 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2560 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2561 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2562 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2563 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2564 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2565 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2566 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2567 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2568 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2569 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2570
2571 * target.c (xfer_using_stratum): Change return type to LONGEST.
2572 On each iteration offset, readbuf and writebuf.
2573 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2574 partial_length, and read/modify/write predicate, update comments.
2575 Pass buffer.word to ptrace write.
2576
2577 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2578
2579 * symfile.c (init_filename_language_table): Add extensions for
2580 Ada.
2581 * defs.h (enum language): Add language_ada.
2582 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2583 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2584 (add_symbols_from_enclosing_procs): Make a no-op for now.
2585 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2586 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2587 (find_line_in_linetable, find_next_line_in_linetable)
2588 (read_all_symtabs, is_plausible_func_for_line)
2589 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2590 (is_runtime_sym_defined, check_size): Remove declaration.
2591 (function_name_from_pc, ada_translate_error_message)
2592 (ada_lookup_minimal_symbol): Remove definition.
2593 (ada_add_block_symbols): Remove useless label.
2594 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2595 useless declaration.
2596 (ada_is_exception_sym): Likewise.
2597
2598 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2599
2600 Add m32r-linux support.
2601 * configure.tgt: Add m32r*-*-linux*.
2602 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2603 and m32r-linux-tdep.c.
2604 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2605 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2606 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2607 m32r-linux-tdep.c.
2608 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2609 config/m32r/linux.mh, config/m32r/linux.mt,
2610 config/m32r/nm-linux.h: New files.
2611
2612 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2613
2614 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2615 (mips32_fetch_instruction): Remove, unused.
2616
2617 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2618
2619 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2620 conditions that will always be true.
2621
2622 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2623
2624 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2625 (vaxbsd_fetch_inferior_registers): Rename from
2626 fetch_inferior_registers. Make static.
2627 (vaxbsd_store_inferior_registers): Rename from
2628 store_inferior_registers. Make static.
2629 (_initialize_vaxbsd_nat): Construct and add target vector.
2630 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2631 inftarg.o. Add inf-child.o and inf-ptrace.o.
2632 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2633 inftarg.o. Add inf-child.o and inf-ptrace.o.
2634 (NAT_FILE): Remove.
2635 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2636 inftarg.o. Add inf-child.o and inf-ptrace.o.
2637 (NAT_FILE): Remove.
2638 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2639
2640 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2641 (m88kbsd_fetch_inferior_registers): Rename from
2642 fetch_inferior_registers. Make static.
2643 (m88kbsd_store_inferior_registers): Rename from
2644 store_inferior_registers. Make static.
2645 (_initialize_m88kbsd_nat): New prototype and function.
2646 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2647 inftarg.o. Add inf-child.o and inf-ptrace.o.
2648 (NAT_FILE): Remove.
2649 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2650
2651 2004-09-30 Andrew Cagney <cagney@gnu.org>
2652
2653 * target.c (target_xfer_partial): New function.
2654 (target_read_memory_partial, target_write_memory_partial)
2655 (default_xfer_partial, target_read_partial, target_write_partial)
2656 (xfer_using_stratum): Use.
2657 (debug_to_xfer_partial): Delete function.
2658 (setup_target_debug): Do not override to_xfer_partial.
2659
2660 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2661
2662 * fork-child.c: Update copyright year. Fix coding style.
2663
2664 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2665
2666 * defs.h (msavestring, mstrsave): Remove prototypes.
2667 * utils.c (msavestring, mstrsave): Remove functions.
2668 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2669 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2670 of mstrsave.
2671 * source.c (find_and_open_source): Use xstrdup instead of
2672 mstrsave.
2673
2674 2004-09-30 Andrew Cagney <cagney@gnu.org>
2675
2676 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2677 (inf_ptrace_xfer_memory): Delete.
2678 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2679 (target_read_memory, target_write_memory): Use xfer_using_stratum
2680 when target_xfer_partial_p.
2681 (debug_target): Move to start of file.
2682 (target_read_memory_partial, target_write_memory_partial): Use
2683 to_xfer_partial when target_xfer_partial_p.
2684
2685 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2686 inf_ptrace_xfer_memory with equivalent code.
2687 * inftarg.c (child_xfer_partial): When performing a write, pass
2688 writebuf to child_xfer_memory.
2689
2690 * target.c (target_read_string): Use target_read_memory instead of
2691 target_xfer_memory.
2692
2693 2004-09-29 Andrew Cagney <cagney@gnu.org>
2694
2695 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2696 the address of status.
2697
2698 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2699 (kill_inferior): Inline ptrace_wait call.
2700 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2701 * inftarg.c (child_wait): Inline ptrace_wait call.
2702
2703 * target.h (struct target_ops): Delete field to_post_wait.
2704 (target_post_wait): Delete macro.
2705 (child_post_wait): Delete declaration.
2706 * target.c (update_current_target, update_current_target)
2707 (debug_to_post_wait, setup_target_debug): Delete functions and
2708 references.
2709 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2710 * inftarg.c (child_post_wait): Delete.
2711 (init_child_ops): Do not set to_post_wait.
2712 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2713 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2714 * inf-child.c (inf_child_post_wait): Delete.
2715 (inf_child_target): Do not set to_post_wait.
2716 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2717 (inf_ptrace_target): Do not set to_post_wait.
2718
2719 * wince.c (child_ops): Delete.
2720 * win32-nat.c (child_ops): Delete.
2721
2722 * inftarg.c (inftarg_set_find_memory_regions)
2723 (inftarg_set_make_corefile_notes): Delete functions.
2724 (_initialize_linux_nat): Inline calls.
2725
2726 * target.h (child_ops): Declare.
2727 * inftarg.c (child_ops): Move from here ...
2728 * target.c (child_ops): ... to here.
2729 * wince.c (child_ops): Delete extern declaration.
2730 * win32-nat.c (child_ops): Delete extern declaration.
2731 * linux-nat.c (child_ops): Delete extern declaration.
2732 * hpux-thread.c (child_ops): Delete extern declaration.
2733
2734 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2735
2736 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2737
2738 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2739
2740 * configure.in: Only set host_makefile_frag when building a native
2741 debugger.
2742 * configure: Regenerate.
2743
2744 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2745 for OpenBSD ELF.
2746
2747 2004-09-28 Andrew Cagney <cagney@gnu.org>
2748
2749 Problem identified by Paul Hilfinger.
2750 * Makefile.in (ada_lex_c): Define.
2751 (ada-lex.o): Delete rule.
2752
2753 * linux-proc.c: Delete file.
2754 * Makefile.in: Update.
2755 * config/sparc/linux64.mh (NATDEPFILES):
2756 * config/sparc/linux.mh (NATDEPFILES): Update.
2757 * config/s390/s390.mh (NATDEPFILES): Update.
2758 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2759 * config/powerpc/linux.mh (NATDEPFILES): Update.
2760 * config/pa/linux.mh (NATDEPFILES): Update.
2761 * config/mips/linux.mh (NATDEPFILES): Update.
2762 * config/m68k/linux.mh (NATDEPFILES): Update.
2763 * config/ia64/linux.mh (NATDEPFILES): Update.
2764 * config/i386/linux64.mh (NATDEPFILES): Update.
2765 * config/i386/linux.mh (NATDEPFILES): Update.
2766 * config/arm/linux.mh (NATDEPFILES): Update.
2767 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2768 * linux-nat.c: Update copyright. Include <sys/param.h>,
2769 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2770 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2771 (O_LARGEFILE): Possibly define.
2772 (_initialize_linux_nat, linux_proc_pending_signals)
2773 (add_line_to_sigset, linux_proc_xfer_memory)
2774 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2775 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2776 (struct linux_corefile_thread_data)
2777 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2778 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2779
2780 2004-09-16 Andrew Cagney <cagney@gnu.org>
2781
2782 * lin-lwp.c: Delete file.
2783 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2784 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2785 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2786 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2787 (linux_nat_attach, detach_callback, linux_nat_detach)
2788 (resume_callback, resume_clear_callback, linux_nat_resume)
2789 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2790 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2791 (status_callback, running_callback, count_events_callback)
2792 (select_singlestep_lwp_callback, select_event_lwp_callback)
2793 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2794 (child_wait, stop_and_resume_callback, linux_nat_wait)
2795 (kill_callback, kill_wait_callback, linux_nat_kill)
2796 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2797 (linux_nat_xfer_memory, linux_nat_thread_alive)
2798 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2799 (_initialize_linux_nat): New functions.
2800 * Makefile.in: Update all dependencies.
2801 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2802 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2803 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2804 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2805 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2806 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2807 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2808 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2809 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2810 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2811 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2812 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2813 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2814
2815 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2816
2817 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2818 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2819
2820 * configure.in: Don't comment out NATDEPFILES in the generated
2821 Makefile if NAT_FILE is unset.
2822 * configure: Regenerate.
2823
2824 2004-09-27 Andrew Cagney <cagney@gnu.org>
2825
2826 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2827 (insert_step_resume_breakpoint): Delete.
2828 (insert_step_resume_breakpoint_at_frame): New function.
2829 (insert_step_resume_breakpoint_at_sal): New function.
2830 (handle_inferior_event, step_into_function)
2831 (insert_step_resume_breakpoint): Simplify by using same.
2832
2833 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2834
2835 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2836
2837 * fbsd-proc.c: Remove file.
2838 * Makefile.in (fbsd-proc.o): Remove dependency.
2839
2840 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2841 code together.
2842
2843 * config/i386/nm-fbsd64.h: Remove file.
2844 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2845
2846 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2847
2848 * amd64-nat.h: Update copyright year.
2849 (amd64bsd_target): New prototype.
2850 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2851 (amd64bsd_target): New function.
2852 (amd64bsd_fetch_inferior_registers): Rename from
2853 fetch_inferior_registers. Make static.
2854 (amd64bsd_store_inferior_registers): Rename from
2855 store_inferior_registers. Make static.
2856 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2857 (_initialize_amd64fbsd_nat): Construct and add target vector.
2858 * amd64nbsd-nat.o: Include "target.h".
2859 (_initialize_amd64nbsd_nat): Construct and add target vector.
2860 * amd64obsd-nat.c: Include "target.h".
2861 (_initialize_amd64obsd_nat): Construct and add target vector.
2862 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2863 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2864 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2865 fbsd-nat.o.
2866 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2867 Remove infptrace.o and inftarg.o. Add inf-child.o and
2868 inf-ptrace.o.
2869 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2870 (amd64obsd-nat.o): Update dependencies.
2871
2872 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2873
2874 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2875 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2876 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2877 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2878 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2879
2880 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2881 Inline attach call.
2882 (inf_ptrace_detach): Inline detach call.
2883
2884 * configure.in: Check for waddstr instead of mvwaddstr when
2885 searching for curses library. Check for wborder.
2886 * configure, config.in: Regenerate.
2887 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2888 available.
2889
2890 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2891
2892 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2893
2894 Committed by Andrew Cagney.
2895 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2896 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2897 configuration.
2898 (fetch_register_using_p): Implement 'p' packet. Based on code by
2899 Fernando Nasser.
2900 (remote_fetch_registers): Call fetch_register_using_p.
2901 (init_all_packet_configs, show_remote_cmd)
2902 (_initialize_remote): Add p-packet.
2903
2904 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2905
2906 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2907 instead of call_ptrace. Call wait directly instead of
2908 ptrace_wait.
2909 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2910 (inf_ptrace_wait): Inline ptrace_wait call.
2911
2912 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2913
2914 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2915 rolled back instead.
2916
2917 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2918
2919 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2920 the new argument order.
2921
2922 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2923
2924 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2925 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2926 (struct gdbarch_tdep): Remove.
2927 (struct xstormy16_frame_cache): New frame cache structure.
2928 (xstormy16_register_byte, xstormy16_register_raw_size)
2929 (xstormy16_reg_virtual_type, xstormy16_register_type)
2930 (xstormy16_push_arguments, xstormy16_push_return_address)
2931 (xstormy16_pop_frame, xstormy16_store_struct_return)
2932 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2933 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2934 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2935 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2936 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2937 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2938 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2939 (xstormy16_extract_return_value, xstormy16_store_return_value):
2940 Regcachify. Drop useless struct convention handling.
2941 (xstormy16_register_type, xstormy16_return_value)
2942 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2943 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2944 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2945 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2946 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2947 (xstormy16_unwind_dummy_id) : New functions.
2948 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2949 of xstormy16_scan_prologue.
2950 (xstormy16_frame_unwind): New frame_unwind structure.
2951 (xstormy16_frame_base): New frame_base structure.
2952 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2953 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2954
2955 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2956
2957 * language.c (language_gdbarch_post_init): Fix off-by one error.
2958
2959 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2960
2961 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2962 (struct dwarf2_offset_and_type): New.
2963 (set_die_type, reset_die_and_siblings_types, get_die_type)
2964 (offset_and_type_hash, offset_and_type_eq): New functions.
2965 (read_structure_type, read_enumeration_type, read_array_type)
2966 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2967 (read_tag_reference_type, read_tag_const_type)
2968 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2969 (read_typedef, read_base_type, read_subrange_type): Use
2970 set_die_type.
2971
2972 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2973
2974 * Makefile.in (dwarf2read.o): Update dependencies.
2975 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2976 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2977 and read_in_chain.
2978 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2979 mark, and has_form_ref_addr.
2980 (struct dwarf2_per_cu_data): New.
2981 (dwarf2_max_cache_age): New.
2982 (dwarf2_build_psymtabs_hard): Free cached compilation units
2983 after loading. Create and manage the list of compilation units.
2984 Remove unnecessary NULL initialization. Fix indentation.
2985 (psymtab_to_symtab_1): Initialize all of CU.
2986 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2987 (find_partial_die): Use dwarf2_find_containing_comp_unit
2988 and load_comp_unit.
2989 (free_stack_comp_unit): Update comments. Clear the per-cu
2990 pointer. Handle aging.
2991 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2992 (age_cached_comp_units, free_one_cached_comp_unit)
2993 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2994 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2995 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2996 (show_dwarf2_cmd): New.
2997 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2998 and "maint show dwarf2 max-cache-age".
2999 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
3000 externs.
3001 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
3002 global.
3003
3004 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
3005
3006 * dwarf2read.c (typename_concat): Change prototype to accept obstack
3007 and dwarf2_cu struct pointer as arguments. Change function to use
3008 obstack if provided and use dwarf2_cu to determine language-specific
3009 separator.
3010 (partial_die_parent_scope): Change comment to include java. Use
3011 new version of typename_concat instead of obconcat.
3012 (partial_die_full_name): Use typename_concat.
3013 (read_namespace): Ditto.
3014 (read_enumeration_type): Use typename_concat instead of obconcat.
3015 (new_symbol): Ditto.
3016 (add_partial_symbol): Enhance tests for C++ to also test for Java.
3017 (guess_structure_name): Ditto.
3018 (read_subroutine_type): Ditto.
3019 (read_structure_type): Ditto.
3020 (is_vtable_name): Add Java support.
3021 (determine_class_name): Switch to new typename_concat call.
3022 (determine_prefix): Switch to new typename_concat call.
3023 * jv-exp.y (FuncStart): New pattern.
3024 (MethodInvocation): Add support for simple function calls. Change
3025 warning message for other forms of inferior call currently not
3026 supported.
3027 * valarith.c (value_subscript): Treat an array with upper-bound
3028 of -1 as unknown size.
3029
3030 2004-09-20 Daniel Jacobowitz <dan@debian.org>
3031
3032 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
3033 (lookup_partial_symtab): Use symtab_to_fullname.
3034
3035 2004-09-19 Jim Blandy <jimb@redhat.com>
3036
3037 * minsyms.c (lookup_minimal_symbol): Doc fix.
3038
3039 2004-09-20 Andrew Cagney <cagney@gnu.org>
3040
3041 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
3042 CHILD_RESUME.
3043 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
3044 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
3045 KILL_INFERIOR.
3046 * infptrace.c: Update.
3047
3048 2004-09-19 Daniel Jacobowitz <dan@debian.org>
3049
3050 * symtab.c (output_source_filename): Mark first argument as const.
3051 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
3052 for "info sources" output.
3053
3054 2004-09-20 Mark Kettenis <kettenis@gnu.org>
3055
3056 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
3057 <machine/vmparam.h>.
3058 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
3059 (register_u_addr): Remove prototype.
3060
3061 2004-09-19 Mark Kettenis <kettenis@gnu.org>
3062
3063 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
3064 (i386bsd_fetch_inferior_registers): Rename from
3065 fetch_inferior_registers. Make static.
3066 (i386bsd_store_inferior_registers): Rename from
3067 store_inferior_registers. Make static.
3068 (i386bsd_target): New function.
3069 * i386bsd-nat.h: New file.
3070 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
3071 "i386bsd-nat.h".
3072 (i386fbsd_resume): Rename from child_resume. Make static.
3073 (_initialize_i386fbsd_nat): Construct and add target vector.
3074 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
3075 (_initialize_i386nbsd_nat): Construct and add target vector.
3076 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
3077 Remove defines.
3078 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
3079 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
3080 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
3081 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
3082 (LOADLIBES): New variable.
3083 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
3084 inf-ptrace.o. Remove inftarg.o.
3085 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
3086 inf-ptrace.o. Remove inftarg.o.
3087 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
3088 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
3089 (LOADLIBES): New variable.
3090 * Makefile.in (i386bsd_nat_h): New variable.
3091 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3092 dependencies.
3093
3094 * sparc64nbsd-tdep.c: Include "objfiles.h".
3095 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3096 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3097 svr4_lp64_fetch_link_map_offsets.
3098 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
3099 "nbsd-tdep.h".
3100 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3101 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3102 svr4_lp64_fetch_link_map_offsets.
3103 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3104 dependencies.
3105
3106 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3107 * fbsd-nat.h: New file.
3108 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3109 (fbsd_nat_h): New variable.
3110 (fbsd-nat.o): New dependency.
3111
3112 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3113 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3114
3115 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3116 comment.
3117
3118 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3119
3120 * ada-exp.y (type_int): New function to add layer of abstraction
3121 around references to expression types.
3122 (type_long): Ditto.
3123 (type_long_long): Ditto.
3124 (type_float): Ditto.
3125 (type_double): Ditto.
3126 (type_long_double): Ditto.
3127 (type_char): Ditto.
3128 (type_system_address): Ditto.
3129 (simple_exp): Use type_* functions in place of builtin_*
3130 variables.
3131 (exp): Ditto.
3132 (write_var_from_name): Ditto.
3133 (write_object_renaming): Ditto.
3134 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3135 declaration.
3136 (build_ada_types): Remove, replacing with...
3137 (ada_language_arch_info): New function to initialize primitive
3138 type vector in language_arch_info.
3139 (ada_array_length): Remove use of builtin_type_ada_int.
3140 (value_pos_atr): Ditto.
3141 (ada_evaluate_subexp): Ditto.
3142 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3143 builtin_type_ada_long_long, builtin_type_ada_char,
3144 builtin_type_ada_float, builtin_type_ada_double,
3145 builtin_type_ada_long_double, builtin_type_ada_natural,
3146 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3147 (ada_builtin_types): Remove.
3148 (ada_language_defn): Remove entries for la_builtin_type_vector and
3149 string_char_type and use ada_language_arch_info.
3150 (_initialize_ada_language): Do type-vector initialization along
3151 the lines of c-lang.c.
3152 (ada_create_fundamental_type): Break up line.
3153 (ada_dump_symtab): Remove unused function.
3154 (enum ada_primitive_types): Define.
3155 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3156 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3157 builtin_type_ada_float, builtin_type_ada_double,
3158 builtin_type_ada_long_double, builtin_type_ada_natural,
3159 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3160 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3161 (processInt): Ditto.
3162 (processReal): Ditto.
3163 (name_lookup): Ditto.
3164 * ada-typeprint.c (print_range): Use builtin_type_int, not
3165 builtin_type_ada_int.
3166
3167 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3168
3169 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3170
3171 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3172 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3173 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3174 * configure.in: Improve checks for curses library by checking for
3175 mvwaddstr instead of initscr. Drop HP curses in favour of
3176 standard curses on HP-UX.
3177 * configure: Regenerated.
3178
3179 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3180
3181 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3182 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3183 Minor formatting changes.
3184 (empty_array): Slight rewrite for formatting.
3185 (emit_char,parse,ada_language_defn,build_ada_types,
3186 ada_is_exception_sym, _initialize_ada_language): Move
3187 definitions around.
3188 (ada_dump_symtab): Remove unused definition.
3189 (ada_maybe_exception_partial_symbol): Remove unused definition.
3190
3191 2004-09-16 Andrew Cagney <cagney@gnu.org>
3192
3193 * inf-child.c: Include "gdb_string.h".
3194 (inf_child_core_file_to_sym_file): Delete.
3195 (inf_child_target): Set to_fetch_registers and to_store_registers.
3196 * inf-ptrace.c: Include "gdb_string.h".
3197 * Makefile.in: Update all dependencies.
3198
3199 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3200 problem.
3201
3202 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3203
3204 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3205 call to heuristic_proc_desc. Remove code that became redundant
3206 as a consequence.
3207 (read_next_frame_reg): Remove special case for SP_REGNUM.
3208 (set_reg_offset): Fix small typo.
3209 (reset_saved_regs): New procedure.
3210 (mips32_heuristic_proc_desc): No longer compute a fake
3211 procedure descriptor. Compute the full frame cache instead.
3212 Some minor comment reformatting.
3213
3214 2004-09-14 Andrew Cagney <cagney@gnu.org>
3215
3216 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3217 maintainer.
3218
3219 * thread-db.c (thread_db_new_objfile): Assume that there is a
3220 child process.
3221
3222 2004-09-13 Jim Blandy <jimb@redhat.com>
3223
3224 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3225 so that its storage isn't referenced after its lifetime ends.
3226
3227 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3228 and never assigned to. Delete it, and the 'if (use_buffer)'
3229 clauses. Delete 'raw_buffer', since it is now unused.
3230
3231 2004-09-13 Andrew Cagney <cagney@gnu.org>
3232
3233 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3234 * configure: Re-generate.
3235 * nlm/Makefile.in (TAGS): Update.
3236 * Makefile.in (TAGS): Update.
3237 * config/vax/nbsd.mt (TM_FILE): Update.
3238 * config/sparc/vxworks.mt (TM_FILE): Update.
3239 * config/sparc/sol2.mt (TM_FILE): Update.
3240 * config/sparc/sol2-64.mt (TM_FILE): Update.
3241 * config/sparc/obsd64.mt (TM_FILE): Update.
3242 * config/sparc/obsd.mt (TM_FILE): Update.
3243 * config/sparc/nbsd64.mt (TM_FILE): Update.
3244 * config/sparc/nbsd.mt (TM_FILE): Update.
3245 * config/sparc/linux64.mt (TM_FILE): Update.
3246 * config/sparc/linux.mt (TM_FILE): Update.
3247 * config/sparc/fbsd.mt (TM_FILE): Update.
3248 * config/sh/wince.mt (TM_FILE): Update.
3249 * config/sh/nbsd.mt (TM_FILE): Update.
3250 * config/sh/linux.mt (TM_FILE): Update.
3251 * config/sh/embed.mt (TM_FILE): Update.
3252 * config/s390/s390.mt (TM_FILE): Update.
3253 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3254 * config/rs6000/rs6000.mt (TM_FILE): Update.
3255 * config/rs6000/aix4.mt (TM_FILE): Update.
3256 * config/powerpc/vxworks.mt (TM_FILE): Update.
3257 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3258 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3259 * config/powerpc/obsd.mt (TM_FILE): Update.
3260 * config/powerpc/nbsd.mt (TM_FILE): Update.
3261 * config/powerpc/linux.mt (TM_FILE): Update.
3262 * config/powerpc/aix.mt (TM_FILE): Update.
3263 * config/pa/obsd.mt (TM_FILE): Update.
3264 * config/pa/linux.mt (TM_FILE): Update.
3265 * config/pa/hppahpux.mt (TM_FILE): Update.
3266 * config/pa/hppa64.mt (TM_FILE): Update.
3267 * config/pa/hppa.mt (TM_FILE): Update.
3268 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3269 * config/mips/wince.mt (TM_FILE): Update.
3270 * config/mips/vxmips.mt (TM_FILE): Update.
3271 * config/mips/nbsd.mt (TM_FILE): Update.
3272 * config/mips/linux.mt (TM_FILE): Update.
3273 * config/mips/irix6.mt (TM_FILE): Update.
3274 * config/mips/irix5.mt (TM_FILE): Update.
3275 * config/mips/embed.mt (TM_FILE): Update.
3276 * config/m68k/vxworks68.mt (TM_FILE): Update.
3277 * config/m68k/st2000.mt (TM_FILE): Update.
3278 * config/m68k/os68k.mt (TM_FILE): Update.
3279 * config/m68k/obsd.mt (TM_FILE): Update.
3280 * config/m68k/nbsd.mt (TM_FILE): Update.
3281 * config/m68k/monitor.mt (TM_FILE): Update.
3282 * config/m68k/linux.mt (TM_FILE): Update.
3283 * config/m68k/cisco.mt (TM_FILE): Update.
3284 * config/ia64/linux.mt (TM_FILE): Update.
3285 * config/ia64/aix.mt (TM_FILE): Update.
3286 * config/ia64/ia64.mt (TM_FILE): Update.
3287 * config/i386/vxworks.mt (TM_FILE): Update.
3288 * config/i386/obsd64.mt (TM_FILE): Update.
3289 * config/i386/obsd.mt (TM_FILE): Update.
3290 * config/i386/nto.mt (TM_FILE): Update.
3291 * config/i386/nbsd64.mt (TM_FILE): Update.
3292 * config/i386/nbsd.mt (TM_FILE): Update.
3293 * config/i386/linux64.mt (TM_FILE): Update.
3294 * config/i386/linux.mt (TM_FILE): Update.
3295 * config/i386/i386sol2.mt (TM_FILE): Update.
3296 * config/i386/i386lynx.mt (TM_FILE): Update.
3297 * config/i386/fbsd64.mt (TM_FILE): Update.
3298 * config/i386/fbsd.mt (TM_FILE): Update.
3299 * config/i386/cygwin.mt (TM_FILE): Update.
3300 * config/h8300/h8300.mt (TM_FILE): Update.
3301 * config/frv/frv.mt (TM_FILE): Update.
3302 * config/cris/cris.mt (TM_FILE): Update.
3303 * config/arm/wince.mt (TM_FILE): Update.
3304 * config/arm/nbsd.mt (TM_FILE): Update.
3305 * config/arm/linux.mt (TM_FILE): Update.
3306 * config/arm/embed.mt (TM_FILE): Update.
3307 * config/alpha/nbsd.mt (TM_FILE): Update.
3308 * config/alpha/fbsd.mt (TM_FILE): Update.
3309 * config/alpha/alpha.mt (TM_FILE): Update.
3310 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3311 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3312
3313 Eliminate event_loop_p, always has the value 1.
3314 * defs.h (event_loop_p): Delete macro.
3315 * breakpoint.c (until_break_command): Simplify.
3316 * utils.c (prompt_for_continue): Simplify.
3317 * tracepoint.c (read_actions): Simplify.
3318 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3319 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3320 (set_prompt, init_main): Simplify.
3321 (init_signals, disconnect): Delete, unused.
3322 * remote.c (remote_async_resume)
3323 (extended_remote_async_create_inferior): Simplify.
3324 * mi/mi-interp.c (mi_input): Delete, unused.
3325 (mi_interpreter_resume, mi_command_loop): Simplify.
3326 * interps.c (current_interp_command_loop): Simplify.
3327 * infrun.c (proceed): Simplify.
3328 * infcmd.c (run_command, continue_command, step_1, jump_command)
3329 (until_command, advance_command, finish_command)
3330 (interrupt_target_command): Simplify.
3331 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3332
3333 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3334 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3335 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3336 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3337 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3338 * mips-tdep.c (mips_dump_tdep): Do not print same.
3339
3340 2004-09-12 Andrew Cagney <cagney@gnu.org>
3341
3342 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3343 const.
3344 * Makefile.in (valprint.o): Delete explict rule.
3345
3346 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3347 reported by Dave Anderson.
3348
3349 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3350
3351 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3352
3353 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3354 Andrew Cagney <cagney@gnu.org>
3355
3356 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3357 (mi_cmd_data_list_register_values)
3358 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3359 the register number computation.
3360
3361 2004-09-12 Andrew Cagney <cagney@gnu.org>
3362
3363 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3364 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3365 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3366 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3367 target.
3368 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3369 inf-ptrace.o and inf-child.o.
3370 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3371 * Makefile.in: Update dependencies.
3372
3373 2004-09-11 Andrew Cagney <cagney@gnu.org>
3374
3375 * language.c (hex_string, hex_string_custom): Move from here ...
3376 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3377 (CELLSIZE): Increase to 50.
3378 * language.h (hex_string, hex_string_custom): Move from here ...
3379 * defs.h: ... to here.
3380 * Makefile.in: Update all dependencies.
3381
3382 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3383
3384 * language.c (local_hex_format_custom): Remove.
3385 (local_hex_string): Rename to hex_string, use C format, and move to
3386 utils.c
3387 (local_hex_string_custom): Rename to hex_string_custom and change
3388 interface. Now uses C format. Move to utils.c
3389 (local_octal_format_custom): Remove.
3390 (local_decimal_format_custom): Remove.
3391 (unknown_language_defn): Remove language-specific number
3392 formatting entries.
3393 (auto_language_defn): Ditto.
3394 (local_language_defn): Ditto.
3395 * language.h (struct language_format_info): Delete declaration.
3396 (struct language_defn): Remove language_format_info fields
3397 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3398 (local_binary_format): Remove macro.
3399 (local_binary_format_prefix): Remove macro.
3400 (local_binary_format_specifier): Remove macro.
3401 (local_binary_format_suffix): Remove macro.
3402 (local_octal_format): Remove macro.
3403 (local_octal_format_prefix): Remove macro.
3404 (local_octal_format_specifier): Remove macro.
3405 (local_octal_format_suffix): Remove macro.
3406 (local_decimal_format): Remove macro.
3407 (local_decimal_format_prefix): Remove macro.
3408 (local_decimal_format_specifier): Remove macro.
3409 (local_decimal_format_suffix): Remove macro.
3410 (local_hex_format): Remove macro.
3411 (local_hex_format_prefix): Remove macro.
3412 (local_hex_format_specifier): Remove macro.
3413 (local_hex_format_suffix): Remove macro.
3414 (local_decimal_format_custom): Remove.
3415 (local_octal_format_custom): Remove.
3416 (local_hex_format_custom): Remove.
3417 (local_hex_string): Rename to hex_string and move to defs.h.
3418 (local_hex_string_custom): Rename to hex_string_custom, change
3419 interface, and move to defs.h.
3420 * utils.c: (int_string): New function.
3421 (hex_string): New function (from language.c).
3422 (hex_string_custom): New function (from language.c).
3423 (octal2str): New function.
3424 (decimal2str): Add width parameter.
3425 (paddr_u): Use new decimal2str interface.
3426 (paddr_d): Ditto.
3427 * defs.h (hex_string): Declare.
3428 (hex_string_custom): Declare.
3429 (int_string): Declare.
3430 * printcmd.c (print_scalar_formatted): Remove localized binary
3431 formatting.
3432 * valprint.c (print_longest): Use int_string.
3433 (print_floating): Use C hex format.
3434 (print_hex_chars): Ditto.
3435 (print_binary_chars): Remove language-specific formatting.
3436 (print_octal_chars): Use C octal format.
3437 (print_decimal_chars): Delocalize format.
3438 (print_decimal): Remove.
3439 * ada-lang.c (ada_language_defn): Remove language-specific number
3440 formatting entries.
3441 * p-lang.c (pascal_language_defn): Ditto.
3442 * c-lang.c (c_language_defn): Ditto.
3443 (cplus_language_defn): Ditto.
3444 (asm_language_defn): Ditto.
3445 (minimal_language_defn): Ditto.
3446 * f-lang.c (f_language_defn): Ditto.
3447 * jv-lang.c (java_language_defn): Ditto.
3448 * m2-lang.c (m2_language_defn): Ditto.
3449 * scm-lang.c (scm_language_defn): Ditto.
3450 * objc-lang.c (objc_language_defn): Ditto.
3451 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3452 new interface.
3453 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3454 * ui-out.c (ui_out_field_core_addr): Ditto.
3455 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3456 * exec.c (print_section_info): Ditto.
3457 * i387-tdep.c (print_i387_status_word): Ditto.
3458 (print_i387_control_word): Ditto.
3459 (i387_print_float_info): Ditto.
3460 * maint.c (maint_print_section_info): Ditto.
3461 * solib.c (info_sharedlibrary_command): Ditto.
3462 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3463 * symtab.c (print_msymbol_info): Ditto.
3464 * tracepoint.c (tracepoints_info): Ditto.
3465 * solib-frv.c (lm_base): Ditto.
3466 (frv_current_sos): Ditto.
3467 (enable_break2): Ditto.
3468 (enable_break): Ditto.
3469 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3470 (process_one_symbol): Ditto.
3471 * infcmd.c (program_info): Ditto.
3472 * mdebugread.c (parse_partial_symbols): Ditto.
3473 * symfile.c (add_symbol_file_command): Ditto.
3474 * cli/cli-cmds.c (edit_command): Ditto.
3475 (list_command): Ditto.
3476 * infcall.c (call_function_by_hand): Ditto.
3477 * remote-vx.c (vx_run_files_info): Ditto.
3478 (vx_wait): Ditto.
3479 (vx_attach): Ditto.
3480 (vx_detach): Ditto.
3481 (vx_kill): Ditto.
3482 * aix-thread.c (pdc_symbol_addrs): Ditto.
3483 (pdc_read_regs): Ditto.
3484 (pdc_write_regs): Ditto.
3485 (pdc_read_data): Ditto.
3486 (pdc_write_data): Ditto.
3487 * d10v-tdep.c (display_trace): Ditto.
3488 * rs6000-nat.c (find_toc_address): Ditto.
3489 * aix-thread.c: Don't include language.h.
3490 * buildsym.c: Ditto.
3491 * dbxread.c: Ditto.
3492 * mdebugread.c: Ditto.
3493 * rs6000-nat.c: Ditto.
3494 * buildsym.c (make_blockvector): Use renamed hex_string.
3495
3496 2004-09-10 Jason Molenda (jmolenda@apple.com)
3497
3498 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3499 chars after 'if' or 'while' commands in user-defined commands.
3500
3501 2004-09-08 Jim Blandy <jimb@redhat.com>
3502
3503 Fix bug reported and analyzed by Olivier Crete:
3504 * symfile.c (copy_section_addr_info): New function.
3505 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3506 original set of address arguments, instead of handwritten code
3507 that uses one length to allocate and a different length to
3508 initialize. Use make_cleanup_free_section_addr_info.
3509 * symfile.h (copy_section_addr_info): New declaration.
3510 * utils.c: #include "symfile.h".
3511 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3512 New functions.
3513 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3514 * Makefile.in (utils.o): Update dependencies.
3515
3516 2004-09-08 Andrew Cagney <cagney@gnu.org>
3517
3518 * thread-db.c (keep_thread_db): Delete.
3519 (thread_db_new_objfile, thread_db_create_inferior)
3520 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3521
3522 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3523
3524 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3525 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3526 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3527 (i386_frameless_signal_p): Remove prototype.
3528 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3529 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3530 I386_SSE_NUM_REGS.
3531 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3532 instead of FP0_REGNUM.
3533 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3534 of FP0_REGNUM and FPC_REGNUM.
3535
3536 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3537 (sunos_solib_create_inferior_hook): Don't call
3538 sunos_relocate_main_executable.
3539
3540 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3541 solib_svr4_fetch_link_map_offsets to
3542 svr4_ilp32_fetch_link_map_offsets.
3543 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3544 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3545 svr4_ilp32_fetch_link_map_offsets.
3546 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3547
3548 2004-09-07 Jim Blandy <jimb@redhat.com>
3549
3550 * frame.h (frame_register): Doc fix.
3551
3552 2004-09-07 Andrew Cagney <cagney@gnu.org>
3553
3554 * vx-share/wait.h: Delete #ifdef USG.
3555 * utils.c (request_quit): Ditto.
3556 * tui/tui.c (tui_reset): Ditto.
3557 * remote.c: Ditto.
3558 * remote-sds.c: Ditto.
3559 * remote-rdi.c: Ditto.
3560 * mdebugread.c: Ditto.
3561 * m68klinux-nat.c: Ditto.
3562 * infttrace.c: Ditto.
3563 * infptrace.c: Ditto.
3564 * i386v-nat.c: Ditto.
3565 * exec.c: Ditto.
3566 * dbxread.c: Ditto.
3567 * core-aout.c: Ditto.
3568
3569 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3570
3571 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3572 heuristic_proc_desc.
3573 (mips_insn32_frame_cache): Likewise.
3574
3575 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3576
3577 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3578 left behind by error.
3579
3580 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3581
3582 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3583 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3584
3585 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3586
3587 * config/rs6000/xm-aix4.h: Remove this file.
3588 * config/rs6000/aix4.mh (XM_FILE): Delete.
3589
3590 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3591
3592 * config/rs6000/xm-rs6000.h: Remove this file.
3593 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3594
3595 2004-09-03 Andrew Cagney <cagney@gnu.org>
3596
3597 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3598 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3599 only use.
3600
3601 * mips-tdep.c (temp_saved_regs): Delete.
3602 (set_reg_offset): Replace saved_regs parameter with this_cache.
3603 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3604 (mips32_heuristic_proc_desc): Add this_cache parameter.
3605 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3606 (after_prologue): Pass a NULL this_cache.
3607
3608 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3609 non-kernel trap prologues.
3610
3611 * mips-tdep.c (find_proc_desc): Delete function.
3612 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3613 simplify.
3614 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3615 mips_insn32_frame_cache.
3616
3617 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3618 Simplify as NEXT_FRAME is NULL.
3619 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3620
3621 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3622 local variable.
3623 (mips_skip_prologue): Update.
3624
3625 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3626 "cur_frame" parameter.
3627 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3628 (mips_insn32_frame_cache, find_proc_desc): Update
3629
3630 * config/vax/nm-obsd.h: Delete file.
3631 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3632 * config/vax/nm-nbsd.h: Delete file.
3633 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3634 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3635 * config/sh/nm-nbsd.h: Delete file.
3636 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3637 * config/rs6000/nm-rs6000ly.h: Delete file.
3638 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3639 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3640 * config/powerpc/nm-obsd.h: Delete file.
3641 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3642 * config/powerpc/nm-nbsd.h: Delete file.
3643 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3644 * config/pa/nm-obsd.h: Delete file.
3645 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3646 * config/mips/nm-nbsd.h: Delete file.
3647 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3648 * config/m88k/nm-obsd.h: Delete file.
3649 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3650 * config/m68k/nm-nbsd.h: Delete file.
3651 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3652 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3653 * config/i386/nm-nbsd.h: Delete file.
3654 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3655 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3656 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3657 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3658 * config/i386/nm-i386lynx.h: Delete file.
3659 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3660 * config/arm/nm-nbsd.h: Delete file.
3661 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3662 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3663
3664 * config/i386/tm-fbsd.h: Delete file.
3665 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3666 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3667
3668 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3669 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3670 * config/rs6000/aix4.mt (TM_FILE): Set to
3671 config/rs6000/tm-rs6000.h.
3672 * config/powerpc/tm-ppc-aix.h: Delete file.
3673 * config/powerpc/aix.mt (TM_FILE): Set to
3674 config/rs6000/tm-rs6000.h.
3675 * config/m68k/tm-linux.h: Delete file.
3676 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3677 * config/i386/tm-linux64.h: Delete file.
3678 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3679 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3680
3681 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3682 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3683 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3684 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3685 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3686 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3687 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3688 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3689 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3690
3691 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3692 gdb_host_cpu.
3693
3694 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3695
3696 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3697 Minor reformatting. Some code factoring.
3698
3699 2004-09-02 Andrew Cagney <cagney@gnu.org>
3700
3701 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3702 * config/vax/tm-nbsd.h: Delete file.
3703 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3704 * config/sparc/tm-vxworks.h: Delete file.
3705 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3706 * config/sparc/tm-nbsd.h: Delete file.
3707 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3708 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3709 * config/sparc/tm-linux.h: Delete file.
3710 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3711 * config/s390/tm-linux.h: Delete file.
3712 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3713 * config/pa/tm-bsd.h: Delete file.
3714 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3715 * config/m68k/tm-obsd.h: Delete file.
3716 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3717 * config/m68k/tm-nbsd.h: Delete file.
3718 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3719 * config/i386/tm-vxworks.h: Delete file.
3720 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3721 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3722 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3723 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3724 * config/i386/tm-nbsd.h: Delete file.
3725 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3726 * config/i386/tm-i386lynx.h: Delete file.
3727 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3728 * config/cris/tm-cris.h: Delete file.
3729
3730 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3731 * configure: Re-generate.
3732 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3733 * config/arm/tm-nbsd.h: Delete file.
3734
3735 * config/powerpc/tm-ppcle-sim.h: Delete.
3736 * config/powerpc/tm-ppcle-eabi.h: Delete.
3737 * config/powerpc/tm-nbsd.h: Delete.
3738 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3739 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3740 tm-ppcle-eabi.h.
3741
3742 * config/i386/nto.mh (NAT_FILE): Delete.
3743 * config/i386/nm-nto.h: Delete.
3744
3745 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3746 * config/m68k/tm-os68k.h: Ditto.
3747 * config/m68k/tm-monitor.h: Ditto.
3748 * config/m68k/tm-cisco.h: Ditto.
3749 * config/m68k/st2000.mt (TM_FILE): Delete.
3750 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3751 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3752 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3753 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3754
3755 * config/m68k/tm-st2000.h: Delete.
3756 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3757 * config/sparc/fbsd.mt (TM_FILE): Delete.
3758 * config/sparc/tm-fbsd.h: Delete.
3759
3760 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3761 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3762 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3763
3764 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3765 GDB_TM_FILE and GDB_XM_FILE.
3766 * gdbarch.c: Re-generate.
3767 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3768 quotes in macro definition.
3769 * configure.in: Re-generate.
3770
3771 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3772 validating architecture methods.
3773 * gdbarch.c: Re-generate.
3774
3775 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3776 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3777 GDB_MULTI_ARCH_PARTIAL.
3778 * gdbarch.h: Re-generate.
3779
3780 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3781 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3782 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3783 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3784 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3785 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3786 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3787 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3788 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3789 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3790 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3791 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3792
3793 2004-09-01 Andrew Cagney <cagney@gnu.org>
3794
3795 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3796 and main_func_highpc.
3797 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3798 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3799 * nlmread.c (nlm_symfile_read): Update.
3800
3801 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3802
3803 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3804 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3805 (find_proc_desc): Remove dead code.
3806
3807 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3808
3809 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3810
3811 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3812
3813 * observer.sh: Add struct so_list declaration.
3814 * Makefile.in: Add dependencies on observer.h for solib.c and
3815 breakpoint.c.
3816 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3817 function.
3818 (_initialize_breakpoint): Register
3819 disable_breakpoints_in_unloaded_shlib as an observer of the
3820 "solib unloaded" observation event.
3821 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3822 call decode_line_1 so unfound breakpoint errors are silent.
3823 * solib.c (update_solib_list): When a solib is discovered to have
3824 been unloaded by the program, notify all observers of the
3825 "solib unloaded" observation event.
3826
3827 2004-09-01 Andrew Cagney <cagney@gnu.org>
3828
3829 * frame.c: Include "objfiles.h".
3830 (inside_main_func): New function.
3831 (get_prev_frame): Use new inside_main_func.
3832 * Makefile.in (frame.o): Update dependencies.
3833 * defs.h (inside_main_func): Delete declaration.
3834 * blockframe.c (inside_main_func): Delete function.
3835
3836 2004-08-31 Jim Blandy <jimb@redhat.com>
3837
3838 * dwarf2read.c (is_vtable_name): New function, based on logic from
3839 read_structure_type, but passing the correct length to strncmp,
3840 and using 'sizeof' instead of 'strlen'.
3841 (read_structure_type): Call it.
3842
3843 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3844
3845 * config/powerpc/aix.mh: Add comment.
3846
3847 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3848
3849 * MAINTAINERS: Add self to Write-After-Approval.
3850
3851 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3852
3853 * MAINTAINERS: Add self to Write-After-Approval.
3854
3855 2004-08-30 Andrew Cagney <cagney@gnu.org>
3856
3857 Fix PR breakpoints/1757.
3858 * infrun.c (struct execution_control_state): Replace
3859 remove_breakpoints_on_following_step with
3860 step_after_step_resume_breakpoint.
3861 (init_execution_control_state): Update.
3862 (handle_inferior_event): For signals, when stepping off a
3863 breakpoint, set step_after_step_resume_breakpoint. When
3864 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3865 (keep_going): Delete code handling
3866 remove_breakpoints_on_following_step.
3867
3868 2004-08-29 David Lecomber <david@streamline-computing.com>
3869
3870 Fix PR gdb/648
3871 * language.h (enum array_ordering): New enum.
3872 * language.h (struct language_defn): New la_array_ordering
3873 attribute.
3874 * language.c (unknown_language_defn, auto_language_defn)
3875 (local_language_defn): Ditto.
3876 * ada-lang.c (ada_language_defn): Ditto.
3877 * c-lang.c (c_language_defn, cplus_language_defn)
3878 (asm_language_defn, minimal_language_defn): Ditto.
3879 * f-lang.c (f_language_defn): Ditto.
3880 * jv-lang.c (java_language_defn): Ditto.
3881 * m2-lang.c (f_language_defn): Ditto.
3882 * objc-lang.c (objc_language_defn): Ditto.
3883 * p-lang.c (pascal_language_defn): Ditto.
3884 * scm-lang.c (scm_language_defn): Ditto.
3885 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3886 oriented large to small in type structure.
3887 * dwarf2read.c (read_array_order): New function.
3888 (read_array_type): Use read_array_order to check row/column
3889 major ordering.
3890
3891 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3892
3893 * target.c (target_resize_to_sections): Check
3894 current_target.to_sections for an old value when updating.
3895
3896 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3897
3898 * procfs.c (dbx_link_bpt_addr): New static global variable.
3899 (dbx_link_shadow_contents): New static global variable.
3900 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3901 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3902 if we just hit it.
3903 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3904 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3905 from run to run.
3906 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3907 after the inferior has been forked.
3908 (remove_dbx_link_breakpoint): New function.
3909 (dbx_link_addr): New function.
3910 (insert_dbx_link_bpt_in_file): New function.
3911 (insert_dbx_link_bpt_in_region): New function.
3912 (insert_dbx_link_breakpoint): New function.
3913 (proc_trace_syscalls_1): New function, extracted from
3914 proc_trace_syscalls.
3915 (proc_trace_syscalls): Replace extract code by call to
3916 proc_trace_syscalls_1.
3917 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3918 is no longer valid.
3919
3920 2004-08-25 Jim Blandy <jimb@redhat.com>
3921
3922 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3923
3924 2004-08-25 Andrew Cagney <cagney@gnu.org>
3925
3926 * infrun.c (struct execution_control_state): Delete field
3927 "stepping_through_sigtramp".
3928 (init_execution_control_state): Do not set same.
3929 (context_switch): Do not pass same to save_infrun_state and
3930 load_infrun_state.
3931 * gdbthread.h (struct thread_info): Delete field
3932 stepping_through_sigtramp.
3933 (save_infrun_state, load_infrun_state): Delete parameter
3934 stepping_through_sigtramp.
3935 * thread.c (load_infrun_state, save_infrun_state): Update.
3936
3937 * infrun.c: Re-indent. Move expression operators to the beginning
3938 of the line. Remove long disabled #if 0 code.
3939
3940 2004-08-24 Andrew Cagney <cagney@gnu.org>
3941
3942 * doublest.h (floatformat_ieee_quad): Rename
3943 floatformat_ia64_quad.
3944 * doublest.c (floatformat_ieee_quad): Rename
3945 floatformat_ia64_quad.
3946 (_initialize_doublest): Update.
3947
3948 2004-08-24 Jim Blandy <jimb@redhat.com>
3949
3950 * dwarf2expr.h (struct dwarf_expr_context): New members
3951 'num_pieces' and 'pieces', for returning the result of an
3952 expression that uses DW_OP_piece.
3953 (struct dwarf_expr_piece): New struct type.
3954 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3955 pieces.
3956 (free_dwarf_expr_context): Free pieces, if any.
3957 (add_piece): New function.
3958 (execute_stack_op): Implement DW_OP_piece.
3959 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3960 expression is a list of pieces, print an error message.
3961 (dwarf2_loc_desc_needs_frame): If the expression yields
3962 pieces, and any piece is in a register, then we need a frame.
3963
3964 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3965 the stack until we've decided what sort of result the evaluation
3966 has produced. Use separate variables, with more specific names.
3967
3968 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3969
3970 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3971 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3972 (arm_netbsd_init_abi_common): Register them.
3973
3974 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3975
3976 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3977
3978 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3979 safe_frame_unwind_memory instead of target_read_memory.
3980
3981 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3982 Reorder includes.
3983 (fetch_register, store_register): Remove prototypes.
3984 (child_resume): Reorganize code and comments such that it is
3985 grouped a bit more logically.
3986 (attach): Explicitly compare errno against 0.
3987 (detach): Likewise. Use perror_with_name instead of
3988 print_sys_errmsg.
3989 * Makefile.in (infptrace.o): Update dependencies.
3990
3991 * ia64-linux-nat.c: Update copyright year.
3992 (fetch_debug_register, store_debug_register)
3993 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3994 PTRACE_TYPE_ARG3.
3995 * config/ia64/nm-linux.h: Update copyright year.
3996 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3997
3998 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3999 from CORE_ADDR to struct frame_info *. Use
4000 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
4001 (amd64_linux_sigtramp_p): Adjust for changed signature of
4002 and64_linux_sigtramp_start
4003
4004 * gdb_ptrace.h: GNU/Linux.
4005
4006 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
4007 Remove defines.
4008
4009 * infptrace.c: Include "gdb_assert.h".
4010 (PTRACE_XFER_TYPE): Remove define.
4011 (offsetof): Only define if U_REGS_OFFSET isn't defined.
4012 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
4013 Tweak comment.
4014 (fetch_inferior_registers, store_inferior_registers): Remove
4015 redundant culry braces. Tweak comment. s/regno/regnum.
4016 * Makefile.in (infptrace.o): Update dependencies.
4017
4018 * configure.in: Change test for return type of ptrace to default
4019 to `long' instead of `int'.
4020 * configure: Regenerate.
4021
4022 2004-08-21 Mark Kettenis <kettenis@gnu.org>
4023
4024 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
4025
4026 * configure.in: Check for ttrace function.
4027 * configure, config.in: Regenerate.
4028
4029 * gdb_ptrace.h: New file.
4030 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
4031 <sys/ptrace.h>.
4032 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
4033 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
4034 (attach): Don't define PT_ATTACH.
4035 (detach): Don't define PT_DETACH.
4036 * Makefile.in (gdb_ptrace_h): New variable.
4037 (infptrace.o): Update dependencies.
4038
4039 2004-08-16 Mark Kettenis <kettenis@gnu.org>
4040
4041 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
4042 instead of `int' if not already defined.
4043 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
4044 PTRACE_TYPE_ARG3.
4045 * infptrace.c (call_ptrace): Revert change that replaced
4046 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4047
4048 2004-08-15 Mark Kettenis <kettenis@gnu.org>
4049
4050 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
4051 Remove defines.
4052
4053 * linux-nat.c (kill_inferior): Add missing third and fourth
4054 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
4055
4056 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
4057 PTRACE_TYPE_RET.
4058
4059 * proc-why.c (proc_prettyfprint_why): Fix format string.
4060
4061 * solib-osf.c (osf_current_sos): Remove unsused label.
4062
4063 * configure.in: Add <ncurses/ncurses.h> to the list of possible
4064 curses headers.
4065 * configure, config.in: Regenerate.
4066 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
4067 <ncurses/ncurses.h>.
4068
4069 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
4070 * config/nm-nbsd.h: Update copyright year.
4071 (PTRACE_ARG3_TYPE): Remove define.
4072
4073 * sparc-nat.c (fetch_inferior_registers)
4074 (store_inferior_registers, sparc_xfer_wcookie):
4075 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4076
4077 * alphabsd-nat.c (fetch_inferior_registers):
4078 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4079 PTRACE_TYPE_ARG3.
4080 * amd64bsd-nat.c (fetch_inferior_registers)
4081 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4082 PTRACE_TYPE_ARG3.
4083 * armnbsd-nat.c: Update copyright year.
4084 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
4085 (store_register, store_regs, store_fp_register, store_fp_regs):
4086 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4087 * hppabsd-nat.c (fetch_inferior_registers)
4088 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4089 PTRACE_TYPE_ARG3.
4090 * i386bsd-nat.c (fetch_inferior_registers)
4091 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4092 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4093 * m68kbsd-nat.c (fetch_inferior_registers)
4094 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4095 PTRACE_TYPE_ARG3.
4096 * m88kbsd-nat.c (fetch_inferior_registers)
4097 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4098 PTRACE_TYPE_ARG3.
4099 * mipsnbsd-nat.c: Update copyright year.
4100 (fetch_inferior_registers, store_inferior_registers):
4101 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4102 * ns32knbsd-nat.c: Update copyright year.
4103 (fetch_inferior_registers, store_inferior_registers):
4104 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4105 * ppcnbsd-nat.c (fetch_inferior_registers):
4106 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4107 PTRACE_TYPE_ARG3.
4108 * ppcobsd-nat.c (fetch_inferior_registers):
4109 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4110 PTRACE_TYPE_ARG3.
4111 * shnbsd-nat.c: Update copyright year.
4112 (fetch_inferior_registers, store_inferior_registers):
4113 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4114 * vaxbsd-nat.c (fetch_inferior_registers)
4115 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4116 PTRACE_TYPE_ARG3.
4117
4118 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4119 PTRACE_TYPE_ARG3.
4120 * infptrace.c (call_ptrace, child_resume, attach, detach)
4121 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4122 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4123 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4124 PTRACE_TYPE_ARG3.
4125
4126 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4127
4128 * defs.h: Remove out-of-date comment.
4129 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4130 [!GETENV_PROVIDED] (getenv): Remove prototype.
4131
4132 * standalone.c: Remove file.
4133 * Makefile.in (standalone.o): Remove dependency.
4134
4135 * i386-linux-nat.c (dummy_sse_values): Remove function and
4136 prototype.
4137 (i386_linux_dr_get): Fix typo in comment.
4138 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4139
4140 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4141
4142 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4143 from declaration.
4144 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4145 from definition.
4146
4147 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4148
4149 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4150 parenthesis in definition.
4151 * configure: Regenerated.
4152
4153 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4154
4155 * PROBLEMS: Mention build/1411.
4156
4157 2004-08-09 Robert Millan <robertmh@gnu.org>
4158
4159 Committed by Nathanael Nerode.
4160 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4161 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4162
4163 2004-08-12 Andrew Cagney <cagney@gnu.org>
4164
4165 * NEWS: Mention fixes in GDB 6.2.1.
4166 * PROBLEMS: Remove mention of mips-irix.
4167
4168 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4169
4170 * config/powerpc/xm-aix.h: Delete.
4171 * config/powerpc/aix.mh (MH_FILE): Remove.
4172 * config/powerpc/aix432.mh (MH_FILE): Remove.
4173
4174 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4175
4176 * config/powerpc/aix.mh: Remove obsolete comment.
4177 * config/powerpc/aix432.mh: Likewise.
4178
4179 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4180
4181 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4182
4183 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4184
4185 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4186 this file is now empty.
4187 * config/xm-aix4.h: Remove, this file is no longer included
4188 anywhere.
4189
4190 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4191
4192 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4193 that file is now empty.
4194 (termdef): Remove prototype, function no longer used.
4195
4196 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4197
4198 * doc/gdbint.texinfo (Host Definition): Remove documentation
4199 for USE_O_NOCTTY, no longer used.
4200 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4201 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4202
4203 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4204
4205 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4206 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4207 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4208
4209 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4210
4211 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4212 instead of FIVE_ARG_PTRACE.
4213
4214 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4215 (new_tty): Use O_NOCTTY unconditionally.
4216
4217 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4218
4219 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4220 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4221 fflush on stdout.
4222
4223 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4224
4225 * xcoff_symfile_finish: Replace last call to xmfree by call
4226 to xfree.
4227
4228 2004-08-10 Andrew Cagney <cagney@gnu.org>
4229
4230 * main.c (captured_main): Delete call to init_malloc.
4231 * defs.h (init_malloc): Delete declaration.
4232 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4233 (init_malloc): Delete functions.
4234
4235 * defs.h (xmfree): Delete.
4236 * utils.c (xmfree): Delete function.
4237 (xfree): Inline calls to xmfree and mfree.
4238 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4239 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4240 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4241 * somread.c (som_symfile_finish): Ditto.
4242 * objfiles.c (allocate_objfile, free_objfile):
4243 * nlmread.c (nlm_symfile_finish): Ditto.
4244 * hpread.c (hpread_symfile_finish): Ditto.
4245 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4246 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4247 * coffread.c (coff_symfile_finish): Ditto.
4248
4249 * defs.h (xmcalloc): Delete declaration.
4250 * utils.c (xmcalloc): Delete.
4251 (xcalloc): Inline calls to xmcalloc and mcalloc.
4252 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4253 xcalloc and xfree.
4254 * symtab.c (create_demangled_names_hash): Ditto.
4255
4256 * defs.h (xmrealloc): Delete.
4257 * utils.c (xmrealloc): Delete.
4258 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4259 * symmisc.c (extend_psymbol_list): Use xrealloc.
4260 * source.c (find_source_lines): Ditto.
4261 * hpread.c (hpread_lookup_type): Ditto.
4262 * dbxread.c (add_bincl_to_list): Ditto.
4263
4264 * utils.c (xmmalloc): Delete.
4265 (xmalloc): Inline xmmalloc and mmalloc calls.
4266 (msavestring): Use xmalloc.
4267 * defs.h (xmmalloc): Delete declaration.
4268 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4269 xmmalloc.
4270 * symmisc.c (extend_psymbol_list): Ditto.
4271 * symfile.c (init_psymbol_list): Ditto.
4272 * source.c (find_source_lines): Ditto.
4273 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4274 * elfread.c (elf_symtab_read): Ditto.
4275 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4276 * coffread.c (coff_symfile_init): Ditto.
4277
4278 2004-08-10 David Carlton <carlton@bactrian.org>
4279
4280 * MAINTAINERS: Remove David Carlton from c++ testsuite
4281 maintainers.
4282
4283 2004-08-10 Jerome Guitton <guitton@gnat.com>
4284
4285 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4286 print a line feed before the prompt.
4287
4288 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4289
4290 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4291
4292 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4293
4294 General cleanup of the AIX xm include file:
4295 * config/xm-aix4.h (fd_set): Remove undefine.
4296 Remove include of <sys/select.h>.
4297 (HAVE_TERMIO): Remove define.
4298 (USG): Likewise.
4299 (NULL): Remove redefine.
4300 (alloca): Remove #pragma.
4301 (vfork): Remove define.
4302 (termdef): Remove.
4303 (SIGWINCH_HANDLER): Remove.
4304 (SIGWINCH_HANDLER_BODY): Remove.
4305
4306 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4307
4308 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4309 GDB_OSABI_OPENBSD_ELF.
4310
4311 2004-08-07 Robert Millan <robertmh@gnu.org>
4312
4313 * bsd-kvm.c: Check for nlist.h before including it.
4314
4315 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4316
4317 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4318 sigcontext' offset consistency checks for ancient BSD.
4319
4320 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4321
4322 * configure.in: Check for <sys/types.h>. Check return and
4323 argument types of ptrace.
4324 * configure, config.in: Regenerate.
4325
4326 2004-08-09 Jim Blandy <jimb@redhat.com>
4327
4328 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4329 rs6000_register_sim_regno): Doc fixes.
4330
4331 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4332
4333 * mips-tdep.c: Include "floatformat.h".
4334 (n32n64_floatformat_always_valid): New function.
4335 (floatformat_n32n64_long_double_big): New constant.
4336 (mips_gdbarch_init): Set size and format of long double
4337 for N32 and N64 ABIs.
4338 * Makefile.in (mips-tdep.o): Update dependencies.
4339
4340 2004-08-08 Andrew Cagney <cagney@gnu.org>
4341
4342 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4343 print. Improve script's error messages.
4344 * gdbarch.h: Re-generate.
4345
4346 * gdbarch.sh (pformat): New function.
4347 (float_format, double_format, long_double_format): List with bit
4348 members. Use pformat when printing.
4349 * gdbarch.c, gdbarch.h: Re-generate.
4350
4351 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4352
4353 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4354 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4355 (ppcnbsd_supply_pcb): New function.
4356 (_initialize_ppcnbsd_nat): New prototype and function.
4357 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4358 (LOADLIBES): New variable.
4359 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4360
4361 2004-08-08 Andrew Cagney <cagney@gnu.org>
4362
4363 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4364 (builtin_type_ieee_double, builtin_type_ia64_quad)
4365 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4366 BE/LE floating-point types.
4367 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4368 (builtin_type_ieee_double, builtin_type_ia64_quad)
4369 (builtin_type_ia64_spill): Declare.
4370 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4371 (floatformat_ieee_double, floatformat_arm_ext)
4372 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4373 of LE/BE floatformats.
4374 * doublest.h: (struct floatformat, floatformat_ieee_single)
4375 (floatformat_ieee_double, floatformat_arm_ext)
4376 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4377
4378 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4379
4380 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4381
4382 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4383 instead of regcache_raw_supply when storing the registers.
4384
4385 * i386gnu-nat.c: Update copyright year.
4386 (gnu_store_registers): Don't use deprecated_registers and
4387 deprecated_registers_valid. Use regcache_valid_p and
4388 regcache_raw_supply instead.
4389
4390 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4391 frame_pc_unwind.
4392
4393 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4394 variables. Incapitalized "process".
4395
4396 * configure.in: Add cursesX to the list of possible curses libs.
4397 Add cursesX.h to the list of possible curses headers.
4398 * configure, config.in: Regenerate.
4399
4400 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4401
4402 * configure.in: Test for struct lwp in <sys/lwp.h>.
4403 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4404 the offset of l_addr in struct lwp.
4405
4406 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4407
4408 * bsd-kvm.c: Include "gdbcore.h"
4409 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4410
4411 2004-08-07 Andrew Cagney <cagney@gnu.org>
4412
4413 * gdbtypes.c (build_flt, build_complex): New functions.
4414 (gdbtypes_post_init): Use.
4415
4416 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4417
4418 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4419 through to builtin_type_uint128.
4420
4421 * c-exp.y: Use builtin_type function to obtain builtin types.
4422
4423 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4424 builtin_uint128.
4425 * gdbtypes.c (gdbtypes_post_init): Update.
4426 (build_gdbtypes): Move initialization of builtin_type_int0
4427 through to builtin_type_uint128 from here ...
4428 (_initialize_gdbtypes): ... to here.
4429 * d10v-tdep.c (d10v_register_type): Update.
4430
4431 * doublest.c: Update copyright.
4432 (floatformat_from_length): Call error when floatformat is NULL.
4433 (extract_floating_by_length): Remove NULL fmt check.
4434 (store_floating_by_length): Ditto.
4435
4436 2004-08-07 Andrew Cagney <cagney@gnu.org>
4437
4438 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4439 that the register is valid.
4440
4441 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4442
4443 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4444 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4445 struct frame_info *. Use safe_frame_unwind_memory instead of
4446 deprecated_read_memory_nobpt.
4447 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4448 changed signature of i386_linux_sigtramp_start and
4449 i386_linux_rt_sigtramp_start.
4450
4451 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4452 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4453 instead of deprecated_read_memory_nobpt.
4454 (i386nbsd_sigtramp_p): Adjust for changed signature of
4455 i386nbsd_sigtramp_offset.
4456
4457 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4458 safe_frame_unwind_memory instead of target_read_memory.
4459
4460 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4461 !NO_SYS_FILE.
4462 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4463 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4464 (_initialize_kernel_u_addr): Remove prototype and function.
4465 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4466 !NO_SYS_FILE.
4467 * xcoffread.c: Likewise.
4468
4469 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4470
4471 * vax-nat.c: New file.
4472 * vaxbsd-nat.c: Tweak comment.
4473 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4474 vaxnbsd-tdep.c.
4475 (vax-nat.o): New dependency.
4476 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4477 (vax-*-ultrix2*): Remove.
4478 * config/vax/vax.mh: New file.
4479 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4480 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4481 (vax_register_u_addr): New prototype.
4482 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4483 * config/vax/vaxult2.mh: Remove file.
4484 * config/vax/vaxult.mh: Remove file.
4485 * config/vax/vaxbsd.mh: Remove file.
4486 * config/vax/vax.mt (TM_FILE): Remove.
4487 * config/vax/tm-vaxbsd.h: Remove file.
4488
4489 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4490
4491 * aix-thread.c (get_signaled_thread): New function.
4492 (iter_trap): Delete, no longer used.
4493 (iter_tid): New function.
4494 (pd_update): Find the thread that received the SIGTRAP signal
4495 by first locating the kernel thread, and then finding its
4496 associated thread.
4497
4498 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4499
4500 * lin-lwp.c (child_wait): Continue inferior after processing
4501 PTRACE_EVENT_CLONE event.
4502
4503 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4504
4505 * MAINTAINERS: Add self to Write-After-Approval.
4506
4507 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4508
4509 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4510 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4511
4512 2004-08-05 Andrew Cagney <cagney@gnu.org>
4513
4514 * config/xm-sysv4.h: Delete file.
4515 * config/mips/xm-irix5.h: Delete file.
4516 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4517 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4518 * config/ia64/xm-aix.h: Delete file.
4519 * config/ia64/aix.mh (XM_FILE): Delete.
4520 * config/pa/xm-hppah.h: Delete file.
4521 * config/pa/hpux11w.mh (XM_FILE): Delete.
4522 * config/pa/hpux11.mh (XM_FILE): Delete.
4523 * config/pa/hpux1020.mh (XM_FILE): Delete.
4524 * config/pa/hppahpux.mh (XM_FILE): Delete.
4525
4526 * config/alpha/xm-alphalinux.h: Delete file.
4527 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4528 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4529 * config/alpha/xm-alphaosf.h: Delete file.
4530 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4531 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4532 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4533 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4534
4535 * config/i386/xm-i386v.h: Delete file.
4536 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4537 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4538 * config/i386/xm-i386sco.h: Delete file.
4539 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4540 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4541 * config/i386/xm-i386v4.h: Delete file.
4542 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4543 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4544 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4545 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4546
4547 * config/vax/xm-vax.h: Delete file.
4548 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4549 * config/vax/xm-vaxult2.h: Delete file.
4550 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4551 * config/vax/vaxult2.mh (XM_FILE): Delete.
4552 * config/vax/xm-vaxult.h: Delete file.
4553 * config/vax/vaxult.mh (XM_FILE): Delete.
4554 * config/vax/xm-vaxbsd.h: Delete file.
4555 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4556
4557 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4558 * gdbarch.h, gdbarch.c: Re-generate.
4559 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4560 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4561 * frame.h: Delete deprecated_read_fp from comments.
4562 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4563 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4564
4565 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4566
4567 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4568 trampoline in OpenBSD 3.5-current.
4569
4570 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4571 SSE registers.
4572
4573 * Makefile.in: Remove embedded page breaks.
4574
4575 2004-08-04 Jim Blandy <jimb@redhat.com>
4576
4577 * regcache.c (regcache_raw_read): Assert that, after calling
4578 target_fetch_registers, the register we're reading is cached.
4579
4580 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4581 a call to 'internal_error', with a more helpful error message.
4582 * rs6000-tdep.c (e500_pseudo_register_read,
4583 e500_pseudo_register_write, rs6000_store_return_value): Same.
4584
4585 2004-08-04 Andrew Cagney <cagney@gnu.org>
4586
4587 * Makefile.in: Update dependencies.
4588
4589 2004-08-04 Jim Blandy <jimb@redhat.com>
4590
4591 Change the layout of the PowerPC E500 raw register cache to allow
4592 the lower 32-bit halves of the GPRS to be their own raw registers,
4593 not pseudoregisters.
4594 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4595 add ppc_ev0_upper_regnum flag.
4596 * rs6000-tdep.c: #include "reggroups.h".
4597 (spe_register_p): Recognize the ev upper half registers as SPE
4598 registers.
4599 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4600 registers.
4601 (e500_move_ev_register): New function.
4602 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4603 vector registers are the pseudo-registers now, formed by splicing
4604 together the gprs and the upper-half registers.
4605 (e500_register_reggroup_p): New function.
4606 (P): Macro deleted.
4607 (P8, A4): New macro.
4608 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4609 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4610 macros.
4611 (registers_e500): Rearrange register set so that the raw register
4612 set contains 32-bit GPRs and upper-half registers, and the SPE
4613 vector registers become pseudo-registers.
4614 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4615 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4616 register numbers are now the same for the E500 as they are for
4617 other PowerPC variants. Register e500_register_reggroup_p as the
4618 register group function for the E500.
4619 * Makefile.in (rs6000-tdep.o): Update dependencies.
4620
4621 Adapt PPC E500 native support to the new raw regcache layout.
4622 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4623 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4624 (fetch_spe_register, store_spe_register): Handle fetching/storing
4625 all the SPE registers at once, if regno == -1. These now take
4626 over the job of fetch_spe_registers and store_spe_registers.
4627 (fetch_spe_registers, store_spe_registers): Deleted.
4628 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4629 unconditionally; they're always raw. Fetch/store SPE upper half
4630 registers, if present, instead of ev registers.
4631 (fetch_register, store_register): Remove sanity checks: gprs are
4632 never pseudo-registers now, so we never need to even mention any
4633 registers that are ever pseudoregisters.
4634
4635 Use a fixed register numbering when communicating with the PowerPC
4636 simulator.
4637 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4638 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4639 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4640 New functions.
4641 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4642 init_sim_regno_table.
4643 * Makefile.in (gdb_sim_ppc_h): New variable.
4644 (rs6000-tdep.o): Update dependencies.
4645
4646 2004-08-02 Andrew Cagney <cagney@gnu.org>
4647
4648 * cris-tdep.c (cris_register_size): Restore function, still used
4649 locally.
4650
4651 * gdbarch.sh (deprecated_target_read_fp)
4652 (deprecated_frame_locals_address, deprecated_frame_args_address)
4653 (deprecated_frame_chain_valid, deprecated_frame_chain)
4654 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4655 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4656 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4657 * gdbarch.h, gdbarch.c: Re-generate.
4658 * regcache.c (deprecated_read_fp): Do not call
4659 DEPRECATED_TARGET_READ_FP_P.
4660 * infcmd.c (default_print_registers_info): Do not call
4661 DEPRECATED_DO_REGISTERS_INFO.
4662 * frame-base.c (default_frame_locals_address): Do not call
4663 DEPRECATED_FRAME_LOCALS_ADDRESS.
4664 (default_frame_args_address): Do not call
4665 DEPRECATED_FRAME_ARGS_ADDRESS.
4666
4667 * gdbarch.sh (deprecated_register_raw_size)
4668 (deprecated_register_virtual_size:int): Delete.
4669 * gdbarch.h, gdbarch.c: Re-generate.
4670 * cris-tdep.c (cris_register_size): Delete.
4671 (cris_gdbarch_init): Update.
4672 * alpha-tdep.c (alpha_register_raw_size)
4673 (alpha_register_virtual_size): Delete.
4674 (alpha_gdbarch_init): Update.
4675
4676 * gdbarch.sh (deprecated_register_virtual_type)
4677 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4678 (deprecated_dummy_write_sp): Delete.
4679 * gdbarch.h, gdbarch.c: Re-generate.
4680
4681 * gdbarch.sh (deprecated_register_bytes): Delete.
4682 * gdbarch.h, gdbarch.c: Re-generate.
4683 * regcache.c (deprecated_register_bytes): New function.
4684 * regcache.h (deprecated_register_bytes): Declare.
4685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4686 * v850-tdep.c (v850_gdbarch_init): Update.
4687 * sh64-tdep.c (sh64_gdbarch_init): Update.
4688 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4690 * mcore-tdep.c (mcore_gdbarch_init): Update.
4691 * cris-tdep.c (cris_gdbarch_init): Update.
4692 * arm-tdep.c (arm_gdbarch_init): Update.
4693 * remote.c (init_remote_state): Update.
4694 * remote-vx.c (vx_prepare_to_store): Update.
4695 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4696 * irix5-nat.c (fetch_core_registers): Update.
4697 * cris-tdep.c (cris_register_bytes_ok): Update.
4698 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4699
4700 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4701 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4702 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4703 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4704 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4705 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4706 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4707 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4708 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4709 with mips_insn16 and mips_insn32.
4710
4711 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4712 * rs6000-tdep.c (rs6000_push_dummy_call)
4713 (rs6000_extract_return_value): Use register_size.
4714 * xstormy16-tdep.c (xstormy16_get_saved_register)
4715 (xstormy16_extract_return_value): Ditto.
4716 * valops.c (value_assign): Ditto.
4717 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4718 * v850-tdep.c (v850_extract_return_value): Ditto.
4719 * tracepoint.c (collect_symbol): Ditto.
4720 * target.c (debug_print_register): Ditto.
4721 * stack.c (frame_info): Ditto.
4722 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4723 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4724 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4725 (store_register_using_P): Ditto.
4726 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4727 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4728 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4729 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4730 * regcache.c (deprecated_read_register_bytes)
4731 (deprecated_write_register_bytes, read_register)
4732 (write_register): Ditto.
4733 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4734 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4735 * monitor.c (monitor_supply_register, monitor_fetch_register)
4736 (monitor_store_register): Ditto.
4737 * mn10300-tdep.c (mn10300_pop_frame_regular)
4738 (mn10300_print_register): Ditto.
4739 * mipsv4-nat.c (fill_fpregset): Ditto.
4740 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4741 (mips64_fill_fpregset): Ditto.
4742 * mi/mi-main.c (register_changed_p, get_register)
4743 (mi_cmd_data_write_register_values): Ditto.
4744 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4745 * irix5-nat.c (fill_gregset, fetch_core_registers):
4746 * infrun.c (write_inferior_status_register): Ditto.
4747 * infptrace.c (fetch_register, store_register): Ditto.
4748 * infcmd.c (default_print_registers_info): Ditto.
4749 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4750 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4751 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4752 * hpux-thread.c (hpux_thread_fetch_registers)
4753 (hpux_thread_store_registers): Ditto.
4754 * hppah-nat.c (store_inferior_registers, fetch_register):
4755 * findvar.c (value_from_register): Ditto.
4756 * dve3900-rom.c (fetch_bitmapped_register):
4757 * cris-tdep.c (cris_gdbarch_init): Ditto.
4758 * alpha-tdep.h: Ditto.
4759 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4760
4761 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4762 DEPRECATED_REGISTER_RAW_SIZE from comments.
4763 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4764 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4765 DEPRECATED_REGISTER_RAW_SIZE.
4766 * findvar.c (value_of_register): Simplify by assuming that the
4767 registers raw and virtual sizes are identical.
4768 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4769 comment.
4770 * arch-utils.c (generic_register_size): Simplify by assuming
4771 register_type.
4772
4773 * regcache.c (legacy_read_register_gen, real_register)
4774 (legacy_write_register_gen): Delete, not used.
4775
4776 * regcache.c (struct regcache_descr): Delete legacy_p.
4777 (init_legacy_regcache_descr): Delete function.
4778 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4779 Do not use deprecated register functions.
4780 (regcache_raw_read, deprecated_write_register_gen):
4781 (deprecated_read_register_gen, regcache_raw_write): Delete code
4782 predicated on legacy_p.
4783 (register_size): Delete check against register raw size.
4784
4785 * cris-tdep.c (cris_register_type): Replace
4786 cris_register_virtual_type.
4787 (cris_gdbarch_init): Update, set register_type.
4788
4789 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4790 * gdbarch.h, gdbarch.c: Re-generate.
4791 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4792 (arm_gdbarch_init) Do not set frameless function invocation.
4793 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4794 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4795 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4796 (frv_gdbarch_init): Do not set frameless function invocation.
4797 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4798 * sh-tdep.c (sh_gdbarch_init): Ditto.
4799 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4800 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4801 * avr-tdep.c (avr_gdbarch_init): Ditto.
4802
4803 * blockframe.c (legacy_frame_chain_valid): Delete function.
4804
4805 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4806 and pc. Update comments.
4807 (pc_in_dummy_frame): Delete function.
4808 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4809 use the "id".
4810 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4811 call_hi, top and pc, use the id.
4812 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4813
4814 * dummy-frame.c: Include "gdb_string.h".
4815 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4816 (generic_save_dummy_frame_tos): Delete.
4817 (dummy_frame_push): New function, replaces above.
4818 * dummy-frame.h: Update copyright.
4819 (dummy_frame_push): Declare.
4820 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4821 (generic_save_call_dummy_addr): Delete declarations.
4822 * infcall.c: Include "dummy-frame.h".
4823 (call_function_by_hand): Add locals caller_regcache,
4824 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4825 with call to frame_save_as_regcache plus cleanup. Delete calls to
4826 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4827 Move clear_proceed_status to just before the resume, add call to
4828 dummy_frame_push (discard cleanup).
4829 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4830 (dummy-frame.o): Add $(gdb_string_h).
4831
4832 2004-08-01 Andrew Cagney <cagney@gnu.org>
4833
4834 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4835 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4836 * dummy-frame.c (find_dummy_frame): Delete.
4837 (struct dummy_frame_cache, dummy_frame_sniffer)
4838 (dummy_frame_prev_register, dummy_frame_this_id)
4839 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4840 frame unwinder using a dummy_frame_cache.
4841
4842 2004-08-01 Andrew Cagney <cagney@gnu.org>
4843
4844 * frame.h (frame_save_as_regcache): Declare.
4845 * frame.c (frame_save_as_regcache): New function.
4846 (do_frame_read_register): Replace do_frame_unwind_register.
4847 (frame_pop): Use frame_save_as_regcache.
4848 * dummy-frame.c (generic_push_dummy_frame): Use
4849 frame_save_as_regcache.
4850
4851 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4852
4853 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4854 file as included until we record the first line in the linetable.
4855
4856 2004-08-01 Andrew Cagney <cagney@gnu.org>
4857
4858 * frame.h (deprecated_pop_dummy_frame)
4859 (deprecated_read_register_dummy)
4860 (deprecated_generic_find_dummy_frame): Delete.
4861 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4862 (deprecated_read_register_dummy)
4863 (deprecated_find_dummy_frame_regcache)
4864 (discard_innermost_dummy)
4865 (deprecated_pop_dummy_frame): Delete.
4866 (dummy_frame_this_id): Simplify.
4867 (struct dummy_frame): Delete "fp" and "sp".
4868 (find_dummy_frame): Simplify.
4869 (generic_push_dummy_frame): Do not set "fp" or "sp".
4870 (fprint_dummy_frames): Do not print "fp" and "sp"
4871
4872 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4873
4874 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4875 (struct i386_insn): New structure.
4876 (i386_match_insn): New function.
4877 (i386_frame_setup_skip_insns): New variable.
4878 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4879 array i386_frame_setup_insns of instructions that should be
4880 skipped inside the frame setup sequence.
4881
4882 2004-08-01 Andrew Cagney <cagney@gnu.org>
4883
4884 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4885 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4886 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4887 * stack.c (frame_info): Delete references to
4888 DEPRECATED_FRAME_INIT_SAVED_REGS and
4889 deprecated_get_frame_saved_regs.
4890 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4891 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4892 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4893 (frame_unwind_register_signed)
4894 (frame_unwind_register_unsigned)
4895 (frame_unwind_unsigned_register): Use register_size.
4896 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4897 (deprecated_frame_xmalloc_with_cleanup)
4898 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4899 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4900
4901 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4902 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4903 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4904 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4905
4906 * infcall.c (call_function_by_hand): Do not use
4907 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4908 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4909 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4910 DEPRECATED_STACK_ALIGN.
4911
4912 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4913
4914 Committed by Andrew Cagney.
4915 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4916
4917 2004-08-01 Andrew Cagney <cagney@gnu.org>
4918
4919 * mips-tdep.c (mips16_frame_cache)
4920 (mips16_frame_this_id, mips16_frame_prev_register)
4921 (mips16_frame_unwind, mips16_frame_sniffer)
4922 (mips16_frame_base_address, mips16_frame_base)
4923 (mips16_frame_base_sniffer, mips32_frame_cache)
4924 (mips32_frame_this_id, mips32_frame_prev_register)
4925 (mips32_frame_unwind, mips32_frame_sniffer)
4926 (mips32_frame_base_address, mips32_frame_base)
4927 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4928 separate heuristic mips16 and mips32 unwinders.
4929 (mips_stub_frame_cache, mips_stub_frame_this_id)
4930 (mips_stub_frame_prev_register)
4931 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4932 (mips_stub_frame_base_address, mips_stub_frame_base)
4933 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4934 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4935 match true mdebug frames.
4936 (non_heuristic_proc_desc): Add forward declaration.
4937
4938 2004-08-01 Andrew Cagney <cagney@gnu.org>
4939
4940 * config/mips/tm-irix6.h: Delete file.
4941 * config/mips/tm-irix5.h: Delete file.
4942 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4943 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4944
4945 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4946 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4947 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4948 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4949 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4950 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4951 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4952 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4953 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4954 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4955 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4956 (TARGET_SIGNAL_RAW_VALUES): Delete.
4957 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4958 Delete.
4959 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4960 (TARGET_HW_WATCH_LIMIT): Delete.
4961 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4962 * minimon.h: Delete file.
4963
4964 * trad-frame.c (trad_frame_get_this_base)
4965 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4966 functions.
4967 * trad-frame.h (trad_frame_set_this_base)
4968 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4969
4970 2004-07-31 Andrew Cagney <cagney@gnu.org>
4971
4972 * trad-frame.c (trad_frame_get_prev_register): Rename
4973 trad_frame_get_prev_register.
4974 * vax-tdep.c (vax_frame_prev_register): Update.
4975 * trad-frame.h: Update.
4976 * trad-frame.c (trad_frame_get_register): Update.
4977 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4978 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4979 Update.
4980 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4981 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4982 Update.
4983 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4984 Update.
4985 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4986 Update.
4987 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4988 Update.
4989 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4990 Update.
4991 * s390-tdep.c (s390_frame_prev_register)
4992 (s390_stub_frame_prev_register)
4993 (s390_sigtramp_frame_prev_register): Update.
4994 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4995 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4996 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4997 * m88k-tdep.c (m88k_frame_prev_register)
4998 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4999 * m32r-tdep.c (m32r_frame_prev_register): Update.
5000 * hppa-tdep.c (hppa_frame_prev_register_helper)
5001 * frv-tdep.c (frv_frame_prev_register): Update.
5002 * d10v-tdep.c (d10v_frame_prev_register): Update.
5003 * cris-tdep.c (cris_frame_prev_register): Update.
5004 * avr-tdep.c (avr_frame_prev_register): Update.
5005 * arm-tdep.c (arm_prologue_prev_register)
5006 (arm_sigtramp_prev_register): Update.
5007
5008 2004-07-31 Andrew Cagney <cagney@gnu.org>
5009
5010 * frame.h (legacy_saved_regs_unwind)
5011 (legacy_frame_chain_valid, legacy_frame_p)
5012 (enum frame_type): Delete UNKNOWN_FRAME.
5013 * dummy-frame.c (dummy_frame_this_id): Simplify.
5014 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
5015 * frame.c (struct frame_info): Delete the field "type".
5016 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
5017 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
5018 (legacy_saved_regs_unwind, legacy_frame_p)
5019 (frame_type_from_pc): Delete.
5020 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
5021 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
5022
5023 2004-07-31 Mark Kettenis <kettenis@gnu.org>
5024
5025 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
5026 indentation.
5027
5028 * mips-nat.c: Remove file.
5029 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
5030 (mips-nat.o): Remove dependency.
5031
5032 * infptrace.c: Update copyright year.
5033 (fetch_register): Pass NULL in regcache_raw_supply call instead of
5034 explicitly setting the buffer to all zeroes.
5035
5036 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
5037 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
5038
5039 2004-07-30 Andrew Cagney <cagney@gnu.org>
5040
5041 * GDB 6.2 released from gdb_6_2-branch.
5042
5043 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
5044
5045 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
5046
5047 * exec.c (exec_file_attach):
5048 * nto-tdep.c (nto_find_and_open_solib):
5049 * pa64solib.c (pa64_solib_sizeof_symbol_table):
5050 * solib.c (solib_open):
5051 * somsolib.c (som_solib_sizeof_symbol_table):
5052 * source.c (is_regular_file, openp, open_source_file):
5053 * symfile.c (symfile_bfd_open):
5054 * wince.c (upload_to_device): Differentiate between the search for
5055 binary and source files.
5056
5057 2004-07-30 Andrew Cagney <cagney@gnu.org>
5058
5059 * complaints.c (_initialize_complaints): Pass NULL to
5060 add_setshow_zinteger_cmd for help_doc.
5061 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
5062
5063 2004-07-30 Andrew Cagney <cagney@gnu.org>
5064
5065 Fix PR i18n/761.
5066 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
5067 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
5068 $(PACKAGE).pot and update-po.
5069 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
5070 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
5071 (update-po): New rules.
5072 (localedir): Define using autoconf.
5073 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
5074 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
5075 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
5076 * configure.in: Generate CATALOGS and LINGUAS from contents of
5077 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
5078 * configure: Re-generate.
5079 * po/gdbtext: New file
5080
5081 2004-07-30 Jerome Guitton <guitton@gnat.com>
5082
5083 * MAINTAINERS: Reorder Write After Approval list in alphabetical
5084 order.
5085
5086 2004-07-30 David Lecomber <dsl@sources.redhat.com>
5087
5088 * dwarf2read.c (read_file_scope): Set producer if attribute
5089 present.
5090 (struct dwarf2_cu): Added new member producer.
5091
5092 2004-07-30 Jerome Guitton <guitton@gnat.com>
5093
5094 * inflow.c (kill_command): release file handles in BFD.
5095 * exec.c (exec_file_attach): Ditto.
5096 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5097
5098 2004-07-29 Andrew Cagney <cagney@gnu.org>
5099
5100 * PROBLEMS (mips-irix): Note that it is broken.
5101
5102 2004-07-29 Andrew Cagney <cagney@gnu.org>
5103
5104 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5105 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5106
5107 * config/xm-nbsd.h: Delete file.
5108 * config/arm/xm-nbsd.h: Delete file.
5109 * config/i386/xm-nbsd.h: Delete file.
5110 * config/ns32k/xm-nbsd.h: Delete file.
5111 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5112 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5113 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5114 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5115 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5116
5117 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5118 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5119 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5120 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5121 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5122 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5123
5124 * config/powerpc/xm-linux.h: Delete empty file.
5125 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5126 * config/powerpc/linux.mh (XM_FILE): Delete.
5127 * config/m68k/xm-linux.h: Delete empty file.
5128 * config/m68k/linux.mh (XM_FILE): Delete.
5129 * config/ia64/xm-linux.h: Delete empty file.
5130 * config/ia64/linux.mh (XM_FILE): Delete.
5131 * config/arm/xm-linux.h: Delete empty file.
5132 * config/arm/linux.mh (XM_FILE): Delete.
5133
5134 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5135 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5136 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5137 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5138 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5139 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5140 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5141 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5142
5143 * config/m68k/xm-m68k.h: Delete file.
5144 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5145 copyright.
5146 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5147 * config/pa/xm-linux.h: Delete empty file.
5148 * config/pa/linux.mh (XM_FILE): Delete.
5149 * config/i386/xm-i386.h: Delete empty file.
5150 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5151 "i386/xm-i386.h".
5152 * config/i386/obsdaout.mh (XM_FILE): Delete.
5153 * config/i386/obsd64.mh (XM_FILE): Delete.
5154 * config/i386/fbsd64.mh (XM_FILE): Delete.
5155 * config/i386/nto.mh (XM_FILE): Delete.
5156 * config/i386/obsd.mh (XM_FILE): Delete.
5157 * config/i386/linux64.mh (XM_FILE): Delete.
5158 * config/i386/linux.mh (XM_FILE): Delete.
5159 * config/i386/i386sol2.mh (XM_FILE): Delete.
5160 * config/i386/i386gnu.mh (XM_FILE): Delete.
5161 * config/i386/fbsd.mh (XM_FILE): Delete.
5162 * config/i386/nbsd64.mh (XM_FILE): Delete.
5163
5164 2004-07-29 Andrew Cagney <cagney@gnu.org>
5165
5166 * config/pa/xm-linux.h: Do not include "floatformat.h".
5167 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5168 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5169 * config/i386/xm-i386.h: Do not include "floatformat.h".
5170 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5171 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5172 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5173 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5174 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5175 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5176 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5177 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5178 * configure, config.in: Regenerate.
5179 * configure.host (gdb_host_float_format, gdb_host_double_format)
5180 (gdb_host_long_double_format): Set according to the host.
5181
5182 2004-07-29 Andrew Cagney <cagney@gnu.org>
5183
5184 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5185
5186 2004-07-28 Andrew Cagney <cagney@gnu.org>
5187
5188 * PROBLEMS: Mention threads/1650.
5189 * NEWS: Mention the NPTL fix.
5190
5191 2004-07-28 Andrew Cagney <cagney@gnu.org>
5192
5193 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5194 (add_setshow_cmd_full): Make static.
5195 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5196 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5197 * cli/cli-decode.c (add_setshow_filename_cmd)
5198 (add_setshow_string_cmd): New functions.
5199 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5200 * mips-tdep.c (_initialize_mips_tdep): Update.
5201 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5202 * cli/cli-logging.c (_initialize_cli_logging): Update.
5203 * complaints.c (_initialize_complaints): Update.
5204 * remote.c (_initialize_remote): Update.
5205
5206 2004-07-28 Andrew Cagney <cagney@gnu.org>
5207
5208 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5209 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5210 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5211 print parameters. Make string parameters constant.
5212 * command.h: Update. Update copyright.
5213 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5214 * observer.c (_initialize_observer): Ditto.
5215 * frame.c (_initialize_frame): Ditto.
5216 * complaints.c (_initialize_complaints): Ditto.
5217 * maint.c (_initialize_maint_cmds): Ditto.
5218 * target.c (initialize_targets): Ditto.
5219 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5220 * infcall.c (_initialize_infcall): Ditto.
5221 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5222 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5223 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5224 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5225 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5226
5227 2004-07-28 Andrew Cagney <cagney@gnu.org>
5228
5229 * gdbtypes.c (lookup_primitive_typename): Delete function.
5230 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5231 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5232 * gdbtypes.c (lookup_typename): Ditto.
5233 * f-exp.y (yylex): Ditto.
5234 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5235
5236 * scm-lang.c (c_builtin_types): Delete extern declaration.
5237 (scm_language_defn): Replace
5238 string_char_type and primitive_type_vector with
5239 la_language_arch_info.
5240 * jv-lang.c (java_language_defn): Replace
5241 string_char_type and primitive_type_vector with
5242 la_language_arch_info.
5243 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5244 c_builtin_types in comment.
5245 * c-lang.h (struct language_arch_info): Declare opaque.
5246 (c_language_arch_info): Declare.
5247 (c_builtin_types): Delete declaration.
5248 * c-lang.c (c_language_arch_info): Set string_char_type to
5249 builtin_char, not builtin_true_char. Make global.
5250 (c_builtin_types): Delete array.
5251 (asm_language_defn, minimal_language_defn): Replace
5252 string_char_type and primitive_type_vector with
5253 la_language_arch_info.
5254
5255 2004-07-28 Andrew Cagney <cagney@gnu.org>
5256
5257 * gdbtypes.h (struct builtin_type): Rename true_char to
5258 builtin_true_char.
5259 * gdbtypes.c (gdbtypes_post_init): Update.
5260 * c-lang.c (arch_info): New function.
5261 (enum c_primitive_types): New enum.
5262 (c_language_defn): Instead of string_char_type and
5263 primitive_type_vector set la_language_arch_info.
5264
5265 2004-07-28 Andrew Cagney <cagney@gnu.org>
5266
5267 * language.h (struct language_arch_info): Fix typo
5268 s/primative/primitive/.
5269 * gdbtypes.c (lookup_primitive_typename): Ditto.
5270 * language.c (language_lookup_primitive_type_by_name)
5271 (unknown_language_arch_info): Ditto.
5272
5273 2004-07-27 Andrew Cagney <cagney@gnu.org>
5274
5275 * defs.h (enum language): Add nr_languages.
5276 * language.h (struct language_arch_info): Define.
5277 (struct language_defn): Add la_language_arch_info.
5278 (language_lookup_primative_type_by_name): Declare.
5279 (language_string_char_type): Declare.
5280 * language.c (_initialize_language, language_gdbarch_post_init)
5281 (struct language_gdbarch, language_gdbarch_data): Implement
5282 per-architecture language information.
5283 (unknown_language_arch_info, language_string_char_type)
5284 (language_lookup_primative_type_by_name): New functions.
5285 (unknown_language_defn, auto_language_defn)
5286 (local_language_defn): Set la_language_arch_info to
5287 unknown_language_arch_info.
5288 (unknown_builtin_types): Delete.
5289 * gdbtypes.c (lookup_primitive_typename): Use
5290 language_lookup_primative_type_by_name.
5291 (create_string_type): Use language_string_char_type.
5292 * values.c (value_from_string): Use language_string_char_type.
5293 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5294 * p-lang.c (pascal_language_defn): Ditto.
5295 * m2-lang.c (m2_language_defn): Ditto.
5296 * jv-lang.c (java_language_defn): Ditto.
5297 * objc-lang.c (objc_language_defn): Ditto.
5298 * f-lang.c (f_language_defn): Ditto.
5299 * c-lang.c (c_language_defn, cplus_language_defn)
5300 (asm_language_defn, minimal_language_defn): Ditto.
5301
5302 2004-07-27 Andrew Cagney <cagney@gnu.org>
5303
5304 * gdbtypes.h (struct builtin_type): Declare.
5305 (builtin_type): Declare.
5306 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5307 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5308 (gdbtypes_post_init): New function.
5309 (builtin_type): New function.
5310
5311 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5312
5313 * remote-m32r-sdi.c: Fix breakpoint bug.
5314 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5315 recv_char_data, recv_long_data): New functions to replace communication
5316 sequences.
5317
5318 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5319
5320 Document PR threads/1650.
5321 * PROBLEMS (Threads): Document problem with many threads
5322
5323 2004-07-26 Andrew Cagney <cagney@gnu.org>
5324
5325 * gdb-mi.el: Move from here ...
5326 * mi/gdb-mi.el: ... to here.
5327
5328 2004-07-26 Andrew Cagney <cagney@gnu.org>
5329
5330 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5331 * main.c (captured_main): When in batch mode always detach.
5332
5333 2004-07-26 Andrew Cagney <cagney@gnu.org>
5334
5335 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5336 and h8300 as broken.
5337 * NEWS: END-OF-LIFE frame compatibility module.
5338 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5339 specific comments.
5340
5341 2004-07-26 Andrew Cagney <cagney@gnu.org>
5342
5343 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5344 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5345 * wince.c (_initialize_wince): Update.
5346 * win32-nat.c (_initialize_win32_nat): Update.
5347 * varobj.c (_initialize_varobj): Update.
5348 * valops.c (_initialize_valops): Update.
5349 * utils.c (initialize_utils, initialize_utils): Update.
5350 * tui/tui-win.c (_initialize_tui_win): Update.
5351 * top.c (init_main): Update.
5352 * symfile.c (_initialize_symfile): Update.
5353 * source.c (_initialize_source): Update.
5354 * somsolib.c (_initialize_som_solib): Update.
5355 * solib.c (_initialize_solib): Update.
5356 * solib-frv.c (_initialize_frv_solib): Update.
5357 * serial.c (_initialize_serial): Update.
5358 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5359 * remote.c (_initialize_remote, _initialize_remote): Update.
5360 * remote-vx.c (_initialize_vx): Update.
5361 * remote-utils.c (_initialize_sr_support): Update.
5362 * remote-sds.c (_initialize_remote_sds): Update.
5363 * remote-mips.c (_initialize_remote_mips): Update.
5364 * remote-e7000.c (_initialize_remote_e7000): Update.
5365 * proc-api.c (_initialize_proc_api): Update.
5366 * printcmd.c: Update.
5367 * parse.c (_initialize_parse): Update.
5368 * pa64solib.c (_initialize_pa64_solib): Update.
5369 * p-valprint.c (_initialize_pascal_valprint): Update.
5370 * monitor.c (_initialize_remote_monitors): Update.
5371 * mips-tdep.c (_initialize_mips_tdep): Update.
5372 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5373 * maint.c (_initialize_maint_cmds): Update.
5374 * lin-lwp.c (_initialize_lin_lwp): Update.
5375 * language.c (_initialize_language): Update.
5376 * kod.c (_initialize_kod): Update.
5377 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5378 * i386-tdep.c (_initialize_i386_tdep): Update.
5379 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5380 * gdbarch.sh: Update.
5381 * gdbarch.c: Re-generate.
5382 * gdb-events.sh: Update.
5383 * gdb-events.c: Re-generate.
5384 * frame.c (_initialize_frame): Update.
5385 * exec.c: Update.
5386 * demangle.c (_initialize_demangler): Update.
5387 * dcache.c (_initialize_dcache): Update.
5388 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5389 * cp-valprint.c (_initialize_cp_valprint): Update.
5390 * corefile.c (_initialize_core): Update.
5391 * command.h: Update.
5392 * cli/cli-decode.h: Update.
5393 * cli/cli-cmds.c (init_cli_cmds): Update.
5394 * charset.c (_initialize_charset): Update.
5395 * breakpoint.c (_initialize_breakpoint): Update.
5396 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5397 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5398 * aix-thread.c (_initialize_aix_thread): Update.
5399
5400 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5401
5402 Partial fix for PR backtrace/1718.
5403 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5404 that GCC migrates into the prolugue. Don't handle any
5405 instructions that clobber %ebx.
5406
5407 2004-07-23 Andrew Cagney <cagney@gnu.org>
5408
5409 Use regcache_raw_collect instead of regcache_collect.
5410 * regcache.h (regcache_collect): Delete declaration.
5411 * regcache.c (regcache_colect): Delete function.
5412 * win32-nat.c (do_child_store_inferior_registers): Update.
5413 * sol-thread.c (sol_thread_store_registers): Update.
5414 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5415 * rs6000-nat.c (store_register): Update.
5416 * remote.c (store_register_using_P, remote_store_registers): Update.
5417 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5418 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5419 (fill_vrregset, store_spe_registers, fill_gregset)
5420 (fill_gregset): Update.
5421 * nto-procfs.c (procfs_store_registers): Update.
5422 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5423 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5424 * m68klinux-nat.c (store_register, fill_gregset): Update.
5425 * m68k-tdep.c (fill_gregset): Update.
5426 * infptrace.c (store_register): Update.
5427 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5428 * i386-linux-nat.c (store_register, fill_gregset): Update.
5429 * hppa-linux-nat.c (fill_gregset): Update.
5430 * go32-nat.c (store_register): Update.
5431 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5432 (store_fp_regs): Update.
5433 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5434 (store_nwfpe_extended, store_fpregister, store_fpregs)
5435 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5436 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5437 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5438 (store_regs_user_thread, store_regs_kernel_thread): Update.
5439
5440 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5441
5442 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5443 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5444 encoding.
5445 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5446 member of `struct comp_unit'.
5447
5448 2004-07-23 Andrew Cagney <cagney@gnu.org>
5449
5450 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5451 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5452
5453 2004-07-23 Martin Hunt <hunt@redhat.com>
5454 Kevin Buettner <kevinb@redhat.com>
5455
5456 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5457 alignment was being added to the offset instead of multiplied.
5458
5459 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5460
5461 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5462 changed signal trampoline in OpenBSD 3.5-current.
5463
5464 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5465 <machine/pcb.h> and "bsd-kvm.h".
5466 (sparc64nbsd_supply_pcb): New function.
5467 (_initialize_sparc64nbsd_nat): Renamed from
5468 _initialize_sparcnbsd_nat. Enable libkvm interface.
5469 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5470 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5471 (LOADLIBES): New variable.
5472
5473 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5474
5475 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5476
5477 2004-07-21 Andrew Cagney <cagney@gnu.org>
5478
5479 Use regcache_raw_supply instead of supply_register.
5480 * regcache.h (supply_register): Delete declaration.
5481 * regcache.c (supply_register): Delete function.
5482 * wince.c (do_child_fetch_inferior_registers): Update.
5483 * win32-nat.c (do_child_fetch_inferior_registers)
5484 (fetch_elf_core_registers): Update.
5485 * v850ice.c (v850ice_fetch_registers): Update.
5486 * thread-db.c (thread_db_store_registers): Update.
5487 * sol-thread.c (sol_thread_store_registers): Update.
5488 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5489 * rs6000-nat.c (fetch_register): Update.
5490 * rom68k-rom.c (rom68k_supply_one_register): Update.
5491 * remote.c (remote_wait, remote_async_wait): Update.
5492 * remote-st.c (get_hex_regs): Update.
5493 * remote-sim.c (gdbsim_fetch_register): Update.
5494 * remote-sds.c (sds_fetch_registers): Update.
5495 * remote-rdp.c (remote_rdp_fetch_register): Update.
5496 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5497 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5498 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5499 * remote-hms.c (init_hms_cmds): Update.
5500 * remote-est.c (init_est_cmds): Update.
5501 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5502 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5503 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5504 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5505 (fetch_register, supply_vrregset, supply_vrregset)
5506 (fetch_spe_registers): Update.
5507 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5508 * monitor.c (monitor_supply_register): Update.
5509 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5510 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5511 (mipsnbsd_supply_fpreg): Update.
5512 * mips-nat.c (fetch_inferior_registers)
5513 (fetch_core_registers): Update.
5514 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5515 (supply_fpregset, mips64_supply_gregset)
5516 (mips64_supply_fpregset): Update.
5517 * m68klinux-nat.c (fetch_register, supply_gregset)
5518 (supply_fpregset): Update.
5519 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5520 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5521 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5522 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5523 * infptrace.c (fetch_register): Update.
5524 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5525 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5526 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5527 (gnu_fetch_registers, gnu_store_registers): Update.
5528 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5529 * i386-linux-nat.c (fetch_register, supply_gregset)
5530 (dummy_sse_values): Update.
5531 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5532 * hppah-nat.c (fetch_register): Update.
5533 * hppa-linux-nat.c (fetch_register, supply_gregset)
5534 (supply_fpregset): Update.
5535 * go32-nat.c (fetch_register): Update.
5536 * dve3900-rom.c (fetch_bitmapped_register)
5537 (_initialize_r3900_rom): Update.
5538 * cris-tdep.c (supply_gregset): Update.
5539 * abug-rom.c (init_abug_cmds): Update.
5540 * core-aout.c (fetch_core_registers): Update.
5541 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5542 (fetch_register, fetch_fp_register): Update.
5543 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5544 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5545 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5546 * alphanbsd-tdep.c (fetch_core_registers): Update.
5547 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5548 * alpha-nat.c (fetch_osf_core_registers)
5549 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5550 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5551 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5552
5553 2004-07-21 Andrew Cagney <cagney@gnu.org>
5554
5555 * PROBLEMS: Mention breakpoints/1702.
5556 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5557 that is known to work.
5558
5559 2004-07-21 Andrew Cagney <cagney@gnu.org>
5560
5561 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5562 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5563 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5564 (handle_inferior_event): Wrap call to deprecated
5565 IGNORE_HELPER_CALL in #ifdef.
5566 * config/mips/tm-nbsd.h: Update.
5567
5568 2004-07-20 Jim Blandy <jimb@redhat.com>
5569
5570 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5571 bfd_mach_ppc has no segment registers.
5572
5573 Include PowerPC SPR numbers for special-purpose registers.
5574 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5575 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5576 new member in initializer.
5577 (S, S4, SN4, S64): New macros for defining special-purpose
5578 registers.
5579 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5580 registers_403, registers_403GC, registers_505, registers_860,
5581 registers_601, registers_602, registers_603, registers_604,
5582 registers_750, registers_e500): Use them.
5583
5584 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5585 replace references with expression used to initialize variable.
5586
5587 2004-07-20 Andrew Cagney <cagney@gnu.org>
5588
5589 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5590 read_memory_nobpt.
5591 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5592 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5593 (s390_sigtramp_frame_sniffer): Update.
5594 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5595 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5596 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5597 (mips32_fetch_instruction): Update.
5598 * mcore-tdep.c (get_insn): Update.
5599 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5600 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5601 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5602 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5603 (i386_linux_rt_sigtramp_start): Update.
5604 * i386-linux-nat.c (child_resume): Update.
5605 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5606 * hppa-linux-tdep.c (insns_match_pattern): Update.
5607 * gdbcore.h: Update.
5608 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5609 * frame.c (safe_frame_unwind_memory): Update.
5610 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5611 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5612 * alpha-tdep.c (alpha_read_insn): Update.
5613
5614 2004-07-20 Andrew Cagney <cagney@gnu.org>
5615
5616 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5617 containing both bytes and mask. Add "frame_type".
5618 * tramp-frame.c (tramp_frame_start): Update.
5619 (tramp_frame_prepend_unwinder): Update.
5620 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5621 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5622 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5623 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5624
5625 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5626
5627 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5628 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5629 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5630 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5631
5632 2004-07-17 Andrew Cagney <cagney@gnu.org>
5633
5634 * NEWS, PROBLEMS: Update for 6.2.
5635
5636 * README: Update to 6.2.
5637
5638 * utils.c (xvasprintf): Call xstrvprintf.
5639
5640 * parse.c: Update copyright.
5641 (null_post_parser): Eliminate ARGSUSED.
5642
5643 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5644 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5645 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5646
5647 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5648 * ppc-linux-nat.c: Use "Linux kernel".
5649 * hppa-linux-tdep.c: Use GNU/Linux.
5650 * hppa-linux-nat.c: Use GNU/Linux.
5651 * dwarfread.c: Add [sic] to use of Linux.
5652
5653 * hppa-linux-nat.c: Do not include <string.h>.
5654 (supply_fpregset): Remove "register" attribute.
5655
5656 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5657
5658 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5659
5660 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5661 * configure, config.in: Regenerated.
5662
5663 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5664 "bsd-kvm.h".
5665 (vaxbsd_supply_pcb): New function.
5666 (_initialize_vaxbsd_nat): New prototype and function.
5667 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5668 solib-sunos.o.
5669 (LOADLIBES): New variable.
5670 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5671 (LOADLIBES): New variable.
5672 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5673 (LOADLIBES): New variable.
5674 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5675
5676 2004-07-16 Andrew Cagney <cagney@gnu.org>
5677
5678 * defs.h (event_loop_p): Replace variable declaration with macro,
5679 always 1.
5680 * main.c (captured_main): Delete options "-async" and "-noasync".
5681 (event_loop_p): Delete variable.
5682 * NEWS: Mention that "-async" and "-noasync" were removed.
5683
5684 2004-07-16 Andrew Cagney <cagney@gnu.org>
5685
5686 * remote-m32r-sdi.c: Re-indent.
5687
5688 2004-07-16 Jim Blandy <jimb@redhat.com>
5689
5690 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5691 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5692 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5693 missing MPC823 SPRs.
5694 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5695 incorrect. (This was corrected in GDB's register name tables on
5696 2004-07-14.)
5697
5698 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5699 should be "esasrr" ("ESA Save and Restore Register").
5700
5701 2004-07-16 Andrew Cagney <cagney@gnu.org>
5702
5703 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5704 calls, no longer applicable. Update comments and rename parameter
5705 "step_frame" to "return_frame".
5706
5707 2004-07-16 Andrew Cagney <cagney@gnu.org>
5708
5709 * frame.c (fprint_field): New function.
5710 (fprint_frame_id): Use fprint_field.
5711
5712 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5713
5714 * ada-lang.c (ada_language_defn): Remove commented out code.
5715
5716 2004-07-15 Jim Blandy <jimb@redhat.com>
5717
5718 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5719 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5720
5721 2004-07-14 Jim Blandy <jimb@redhat.com>
5722
5723 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5724
5725 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5726
5727 * ppc-tdep.h (ppc_num_srs): New enum constant.
5728
5729 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5730 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5731 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5732 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5733 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5734 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5735 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5736 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5737 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5738 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5739 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5740 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5741 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5742 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5743 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5744 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5745 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5746 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5747 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5748 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5749 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5750 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5751 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5752 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5753 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5754 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5755 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5756 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5757 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5758 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5759 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5760 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5761 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5762 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5763 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5764 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5765 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5766 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5767 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5768 special-purpose register numbers.
5769
5770 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5771 manual mentions 'md_twb', but many mention 'm_twb', and at that
5772 point in the register list.)
5773
5774 2004-07-14 Andrew Cagney <cagney@gnu.org>
5775
5776 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5777 instead of "internal-error".
5778
5779 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5780
5781 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5782 that was inserted inside a comment.
5783
5784 2004-07-10 Randolph Chung <tausq@debian.org>
5785
5786 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5787 function.
5788 (hppa_hpux_push_dummy_code): New function.
5789 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5790 Set find_global_pointer method.
5791
5792 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5793
5794 * NEWS: Mention BSD libkvm interface.
5795
5796 2004-07-10 Michael Snyder <msnyder@redhat.com>
5797
5798 * symfile.c (generic_load): Comment typo.
5799 * stack.c (get_selected_block): Ditto.
5800 * regcache.c (regcache_cooked_read): Ditto.
5801 * monitor.c (monitor_debug): Ditto.
5802 * mips-tdep.c (mips_read_pc): Ditto.
5803 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5804 * gdb_mbuild.sh: Ditto.
5805 * gdbarch.sh: Ditto.
5806 * gdbarch.h: Ditto.
5807
5808 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5809
5810 * ada-tasks.c: Remove file.
5811
5812 Remove ARI problems:
5813
5814 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5815 beginning of line.
5816
5817 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5818 Add comment.
5819 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5820 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5821 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5822 (UMIN_OF_SIZE): Remove.
5823 (max_of_type): New function to replace orphan macro in gdbtypes.h
5824 (min_of_type): Ditto.
5825 (discrete_type_high_bound): Use max_of_type.
5826 (discrete_type_low_bound): Use min_of_type.
5827 (possible_user_operator_p): Move operator to beginning of line.
5828 (ada_is_variant_part): Ditto.
5829 (ensure_lval): Rewrite to avoid deprecated operations.
5830 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5831 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5832 (ada_enum_name): Remove assignments in 'if' statements.
5833 (build_ada_types): Add gdbarch parameter.
5834 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5835 with gdbarch_data_register_post_init.
5836 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5837 add_show_from_set.
5838
5839 * ada-valprint.c (inspect_it): Remove declaration.
5840 (repeat_count_threshold): Remove declaration.
5841 (ada_print_floating): Remove assignments in 'if' statements.
5842 (print_str): Move operator to beginning of line.
5843
5844 2004-07-08 Jim Blandy <jimb@redhat.com>
5845
5846 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5847
5848 2004-07-08 Bob Rossi <bob@brasko.net>
5849
5850 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5851
5852 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5853
5854 * language.h (struct_language_defn): Add new function pointer:
5855 la_class_name_from_physname. Also add new prototype for
5856 language_class_name_from_physname.
5857 * language.c (language_class_name_from_physname): New function.
5858 (unk_lang_class_name): Ditto.
5859 (unknown_language_defn, auto_language_defn): Change
5860 to add unk_lang_class_name function pointer for
5861 la_class_name_from_physname.
5862 (local_language_defn): Ditto.
5863 * dwarf2read.c (guess_structure_name): Change to call
5864 language_class_name_from_physname.
5865 (determine_class_name): Ditto.
5866 * cp-support.c (class_name_from_physname): Renamed.
5867 (cp_class_name_from_physname): New name of function.
5868 * cp-support.h: Ditto.
5869 * c-lang.c (c_language_defn): Change to add NULL
5870 for class_name_from_physname function pointer.
5871 (cplus_language_defn): Change to add cp_class_name_from_physname.
5872 * jv-lang.c (java_class_name_physname): New function.
5873 (java_find_last_component): New static routine.
5874 (java_language_defn): Add java_class_name_from_physname pointer.
5875 * ada-lang.c (ada_language_defn): Change to add NULL
5876 for class_name_from_physname function pointer.
5877 * f-lang.c (f_language_defn): Ditto.
5878 * m2-lang.c (m2_language_defn): Ditto.
5879 * objc-lang.c (objc_language_defn): Ditto.
5880 * p-lang.c (pascal_language_defn): Ditto.
5881 * scm-lang.c (scm_language_defn): Ditto.
5882
5883 2004-07-06 Andrew Cagney <cagney@gnu.org>
5884
5885 Patch from Bart Robinson.
5886 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5887 (O_LARGEFILE): Define to 0, if not defined.
5888
5889 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5890
5891 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5892 <machine/pcb.h> and "bsd-kvm.h".
5893 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5894 (m68kbsd_supply_pcb): New function.
5895 (_initialize_m68kbsd_nat): New prototype and function.
5896 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5897 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5898 (LOADLIBES): New variable.
5899 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5900 (LOADLIBES): New variable.
5901
5902 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5903
5904 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5905
5906 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5907 <sys/proc.h>.
5908 (bsd_kvm_cmdlist): New variable.
5909 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5910 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5911 command and "kvm proc" command.
5912 * Makefile.in (bsd-kvm.o): Update dependencies.
5913
5914 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5915
5916 * osabi.c: Update copyright year.
5917 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5918 notes if EI_OSABI is set to ELFOSABI_HPUX.
5919
5920 2004-07-01 Michael Snyder <msnyder@redhat.com>
5921
5922 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5923 that seems to have gotten whacked out of line.
5924
5925 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5926
5927 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5928 code.
5929
5930 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5931
5932 * ada-lang.c (decode_packed_array): Minor change to comment.
5933 (ada_value_slice_ptr): New function.
5934 (ada_value_slice): New function.
5935 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5936 test. Don't know why it is there.
5937 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5938 to avoid dereferencing huge arrays from which one is slicing.
5939 (empty_array): Correct to return an array rather than
5940 a subrange value.
5941 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5942 on empty arrays (let'em use 'FIRST instead).
5943
5944 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5945
5946 Address complaints from gdb_ari.sh:
5947
5948 * ada-exp.y: Include gdb_string.h rather than string.h.
5949 (convert_char_literal): Reformat declaration.
5950 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5951 * ada-lex.l: Change use of free to xfree (the macro would do so
5952 anyway, but this is harmless).
5953 Include gdb_string.h rather than string.h.
5954 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5955
5956 * ada-lang.c (parse): Remove K&Rism in parameter list.
5957 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5958
5959 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5960
5961 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5962 dead code.
5963
5964 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5965
5966 * alphabsd-nat.c: Update copyright year.
5967 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5968
5969 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5970
5971 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5972 (i386_cygwin_in_solib_call_trampoline): New function.
5973 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5974 and skip_trampoline_code gdbarch methods.
5975
5976 2004-06-29 Jim Blandy <jimb@redhat.com>
5977
5978 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5979 name actually used in the dependency lists.
5980
5981 2004-06-29 Randolph Chung <tausq@debian.org>
5982
5983 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5984
5985 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5986
5987 * win32-nat.c (child_pid_to_exec_file): New function.
5988 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5989 functionality.
5990
5991 2004-06-28 Andrew Cagney <cagney@gnu.org>
5992
5993 * defs.h (xstrvprintf): Declare.
5994 * utils.c (xstrvprintf): New function.
5995 (internal_vproblem, xstrprintf, xasprintf)
5996 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5997 * serial.c (serial_printf): Ditto.
5998 * complaints.c (vcomplaint): Ditto.
5999
6000 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
6001
6002 * infcmd.c (attach_command): Move call to target_terminal_inferior
6003 behind loading symbol table.
6004
6005 2004-06-28 Andrew Cagney <cagney@gnu.org>
6006
6007 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
6008 change - add back extern deprecated_ui_loop_hook declaration.
6009
6010 2004-06-28 Andrew Cagney <cagney@gnu.org>
6011
6012 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
6013 xstrprintf.
6014 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
6015 (c_value_of_variable): Ditto.
6016 * utils.c (internal_vproblem): Ditto.
6017 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
6018 * remote.c (add_packet_config_cmd): Ditto.
6019 * remote-rdp.c (rdp_set_command_line): Ditto.
6020 * regcache.c (regcache_dump): Ditto.
6021 * frv-tdep.c (new_variant, new_variant): Ditto.
6022 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
6023 (fbsd_find_memory_regions): Ditto.
6024 * breakpoint.c (create_thread_event_breakpoint)
6025 (create_breakpoints): Ditto.
6026 * aix-thread.c (aix_thread_pid_to_str): Ditto.
6027 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
6028
6029 2004-06-28 Joel Brobecker <brobecker@gnat.com>
6030
6031 * ada-lang.c: Re-indent file, with some massaging to help indent
6032 a bit when the result is otherwise really too ugly.
6033
6034 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
6035
6036 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
6037 code_addr_p and special_addr_p to 'unsigned int'.
6038
6039 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6040
6041 * i386v4-nat.c: Update copyright year and tweak comment.
6042 (regmap): Remove trailing comma.
6043 (supply_gregset): Rename local variable i to regnum. Call
6044 regcache_raw_supply instead of supply_register.
6045 (fill_gregset): Rename argument regno to regnum. Call
6046 regcache_raw_collect instead of regcache_collect.
6047
6048 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
6049
6050 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
6051 and special_addr_p.
6052 (frame_id_build, frame_id_build_special): Update comments.
6053 (frame_id_build_wild): New prototype.
6054 * frame.c (frame_id_build, frame_id_build_special): Fill in new
6055 struct frame_id fields.
6056 (frame_id_build_wild): New function.
6057 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
6058
6059 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6060
6061 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
6062 hppabsd-tdep.c.
6063
6064 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6065
6066 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
6067
6068 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6069
6070 * ada-lang.c: Re-indent file.
6071
6072 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6073
6074 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
6075 (no_symtab_msg): Likewise.
6076
6077 2004-06-27 Andreas Schwab <schwab@suse.de>
6078
6079 * source.c: Fix whitespace.
6080
6081 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6082
6083 * configure.in: Include <sys/param.h> for td_pcb test.
6084 * configure: Regenerated.
6085
6086 * i386nbsd-nat.c: New file.
6087 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
6088 i386obsd-nat.c and i386obsd-tdep.c.
6089 (i386nbsd-nat.o): New dependency.
6090 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
6091 bsd-kvm.o.
6092 (LOADLIBES): New variable.
6093 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6094 bsd-kvm.o.
6095 (LOADLIBES): New variable.
6096
6097 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6098 (LOADLIBES): New variable.
6099
6100 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6101 fetching from BSD_KVM_PADDR. Correctly lookup address for
6102 "_thread0".
6103
6104 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6105 "bsd-kvm.h".
6106 (amd64fbsd_supply_pcb): New funcion.
6107 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6108
6109 2004-06-27 <david@streamline-computing.com>
6110
6111 Partial fix for PR cli/1056.
6112 * valarith.c: Check for zero in division and remainder
6113 evaluation.
6114
6115 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6116
6117 * i387-tdep.c: Remove excessive whitespace.
6118
6119 2004-06-26 Andrew Cagney <cagney@gnu.org>
6120
6121 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6122 * gdb-events.h, gdb-events.c: Re-generate.
6123 * tui/tui-hooks.c (tui_install_hooks): Update.
6124 (tui_remove_hooks): Update.
6125 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6126
6127 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6128
6129 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6130 (gregset_t, fpregset_t): Remove typedefs.
6131 (REG_OFFSET): Rename argument.
6132 (amd64bsd_r_reg_offset): Rename from reg_offset.
6133 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6134 Remove functions.
6135 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6136 of reg_offset.
6137 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6138
6139 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6140
6141 * vax-tdep.c: Tweak comment.
6142
6143 Add OpenBSD/hppa support.
6144 * NEWS (New native configurations): Mention OpenBSD/hppa.
6145 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6146 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6147 files.
6148 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6149 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6150 * configure.host: Add hppa*-*-openbsd*.
6151 * configure.tgt: Add hppa*-*-openbsd*.
6152
6153 2004-06-25 Andrew Cagney <cagney@gnu.org>
6154
6155 * defs.h (deprecated_ui_loop_hook): Deprecated.
6156 * wince.c (child_wait): Update.
6157 * win32-nat.c (child_wait): Update.
6158 * v850ice.c (v850ice_wait): Update.
6159 * top.c (deprecated_ui_loop_hook): Update.
6160 * serial.h: Update.
6161 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6162 (do_unix_readchar): Update.
6163 * ser-tcp.c (net_open): Update.
6164 * remote-sim.c (gdb_os_poll_quit): Update.
6165 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6166
6167 2004-06-24 Andrew Cagney <cagney@gnu.org>
6168
6169 * defs.h (deprecated_pre_add_symbol_hook)
6170 (deprecated_post_add_symbol_hook): Deprecated.
6171 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6172 (symbol_file_add_with_addrs_or_offsets): Update references.
6173
6174 2004-06-24 Andrew Cagney <cagney@gnu.org>
6175
6176 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6177 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6178 * wince.c (ui_loop_hook): Delete extern declaration.
6179 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6180 * v850ice.c (ui_loop_hook): Delete extern declaration..
6181 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6182 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6183 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6184 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6185 ui_loop_hook declaration.
6186
6187 2004-06-24 Andrew Cagney <cagney@gnu.org>
6188
6189 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6190 entry_func_highpc fields.
6191 * objfiles.c (init_entry_point_info): Do not clear
6192 entry_func_lowpc and entry_func_highpc.
6193 (objfile_relocate): Do not relocate entry_func_lowpc and
6194 entry_func_highpc.
6195 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6196 entry_func_highpc.
6197 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6198 entry_func_highpc.
6199 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6200 entry_func_lowpc and entry_func_highpc with call to
6201 inside_entry_func.
6202
6203 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6204
6205 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6206 quad-precision floating point arguments in registers.
6207
6208 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6209
6210 From Michael Mueller <m.mueller99@kay-mueller.de>:
6211 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6212 account.
6213
6214 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6215
6216 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6217 to -1.
6218 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6219 untriggered watchpoints to a separate if clause. Update function
6220 comment regarding STOPPED_BY_WATCHPOINT argument.
6221
6222 2004-06-22 Jim Blandy <jimb@redhat.com>
6223
6224 * gdbarch.sh: Doc fix.
6225
6226 2004-06-21 Martin Hunt <hunt@redhat.com>
6227 Kevin Buettner <kevinb@redhat.com>
6228
6229 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6230 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6231 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6232 to set_gdbarch_sp_regnum(). Use cooked register number.
6233 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6234
6235 2004-06-21 Andrew Cagney <cagney@gnu.org>
6236
6237 * gdbarch.sh: When the macro field is empty, do not generate a
6238 macro definition. When the macro field is "=", generate the macro
6239 name from the upper-case function name.
6240 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6241 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6242 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6243 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6244 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6245 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6246 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6247 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6248 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6249 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6250 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6251 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6252 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6253 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6254 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6255 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6256 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6257 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6258 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6259 (DEPRECATED_USE_STRUCT_CONVENTION)
6260 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6261 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6262 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6263 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6264 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6265 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6266 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6267 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6268 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6269 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6270 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6271 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6272 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6273 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6274 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6275 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6276 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6277 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6278
6279 2004-06-21 Andrew Cagney <cagney@gnu.org>
6280
6281 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6282 macro name, and the function rather than macro value. Only wrap
6283 macro print statements in #ifdef. Move format logic to where it
6284 is needed.
6285 * gdbarch.c: Re-generate.
6286
6287 * gdbarch.sh (read): Delete "print_p" and "description", add
6288 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6289 Delete references to print_p.
6290 (TARGET_ARCHITECTURE): Delete print predicate.
6291 * gdbarch.c: Re-generate.
6292
6293 * gdbarch.sh: Check that multi-arch methods do not provide a
6294 macro.
6295 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6296 (print_registers_info, print_float_info, print_vector_info)
6297 (adjust_breakpoint_address, remote_translate_xfer_address)
6298 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6299 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6300 name from the multi-arch definition.
6301
6302 2004-06-20 Andrew Cagney <cagney@gnu.org>
6303
6304 * gdbarch.sh: Sort by the function, instead of macro name.
6305 * gdbarch.c: Re-generate.
6306
6307 2004-06-20 Andrew Cagney <cagney@gnu.org>
6308
6309 * gdbarch.sh: Use the function, instead of macro name in
6310 errors and the log file.
6311 (return_value): Remove stray ":" in spec.
6312
6313 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6314 * gdbarch.h, gdbarch.c: Re-generate.
6315 * Makefile.in (arch-utils.o): Update dependencies.
6316 * values.c (using_struct_return): Move code calling
6317 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6318 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6319 to legacy_return_value, simplify.
6320 * infcmd.c (print_return_value): Move code calling
6321 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6322 to legacy_return_value, simplify.
6323 * infcall.c (call_function_by_hand): Move code calling
6324 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6325 * arch-utils.c: Update copyright. Include "gdbcore.h".
6326 (legacy_return_value): New function.
6327 * arch-utils.h: Update copyright.
6328 (legacy_return_value): Declare.
6329
6330 2004-06-20 Andrew Cagney <cagney@gnu.org>
6331
6332 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6333 * gdbarch.h, gdbarch.c: Re-generate.
6334 * values.c (using_struct_return): Update call.
6335 * mcore-tdep.c: Update comment.
6336 * infcall.c (call_function_by_hand): Update comment.
6337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6338 * arch-utils.h (always_use_struct_convention): Update.
6339 * v850-tdep.c (v850_gdbarch_init): Update.
6340 * sh64-tdep.c (sh64_gdbarch_init): Update.
6341 * sh-tdep.c (sh_gdbarch_init): Update.
6342 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6343 * mips-tdep.c (mips_gdbarch_init): Update.
6344 * mcore-tdep.c (mcore_gdbarch_init): Update.
6345 * m32r-tdep.c (m32r_gdbarch_init): Update.
6346 * ia64-tdep.c (ia64_gdbarch_init): Update.
6347 * h8300-tdep.c (h8300_gdbarch_init): Update.
6348 * frv-tdep.c (frv_gdbarch_init): Update.
6349 * cris-tdep.c (cris_gdbarch_init): Update.
6350 * arm-tdep.c (arm_gdbarch_init): Update.
6351 * alpha-tdep.c (alpha_gdbarch_init): Update.
6352
6353 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6354
6355 * PROBLEMS: Add more specific information, and a work-around,
6356 for PR gdb/1458.
6357
6358 2004-06-18 Andrew Cagney <cagney@gnu.org>
6359
6360 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6361 * gdbarch.h, gdbarch.c: Re-generate.
6362 * ada-lang.c (ada_finish_decode_line_1): Update.
6363 * infrun.c (handle_inferior_event): Update.
6364 * infcall.c (find_function_addr): Update.
6365 * linespec.c (minsym_found): Update.
6366 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6367 Update.
6368 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6369 * cli/cli-cmds.c (disassemble_command): Update.
6370 * vax-tdep.c (vax_gdbarch_init): Update.
6371
6372 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6373
6374 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6375
6376 2004-06-17 Andrew Cagney <cagney@gnu.org>
6377
6378 GDB 6.1.1 released from the GDB 6.1 branch.
6379 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6380 * PROBLEMS: Ditto.
6381
6382 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6383
6384 PR gdb/1658
6385 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6386 operation as a uleb128. Found by Michael Coulter.
6387
6388 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6389
6390 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6391 make it non-static.
6392 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6393 to ada-lang.h; this is needed to be able to implement the kill command
6394 in multi-task mode.
6395 (task_ptid): Ditto.
6396 (task_entry): Ditto.
6397 (task_list): Ditto.
6398 (ada_build_task_list): Ditto.
6399
6400 * ada-lang.c: Conditionalize routines and data structures related
6401 to breakpoints, exceptions, completion, and symbol caching on
6402 GNAT_GDB, since these are not yet used in the submitted public sources.
6403 (ada_main_name): Editorial: Move definition out of exception-related
6404 code.
6405
6406 2004-06-15 Andrew Cagney <cagney@gnu.org>
6407
6408 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6409 deprecated_pc_in_call_dummy.
6410
6411 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6412
6413 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6414 bfd_get_section_size_before_reloc or _raw_size.
6415 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6416 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6417 (dwarf2_read_section): Likewise.
6418 * elfread.c (elf_locate_sections): Likewise.
6419 * gcore.c (derive_heap_segment): Likewise.
6420 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6421 * remote-e7000.c (e7000_load): Likewise.
6422 * remote-m32r-sdi.c (m32r_load): Likewise.
6423 * remote-mips.c (mips_load_srec): Likewise.
6424 (pmon_load_fast): Likewise.
6425 * remote.c (compare_sections_command): Likewise.
6426 * symfile.c (add_section_size_callback): Likewise.
6427 (load_section_callback): Likewise.
6428 (pc_in_unmapped_range): Likewise.
6429 (pc_in_mapped_range): Likewise.
6430 (sections_overlap): Likewise.
6431 (list_overlays_command): Likewise.
6432 (simple_overlay_update_1): Likewise.
6433 (simple_overlay_update): Likewise.
6434 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6435 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6436
6437 2004-06-14 Randolph Chung <tausq@debian.org>
6438
6439 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6440 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6441 static.
6442 (hppa_hpux_inferior_created): New function.
6443 (hppa_hpux_init_abi): Register observer.
6444 * symfile.c (hp_cxx_exception_support_initialized)
6445 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6446 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6447
6448 2004-06-14 Randolph Chung <tausq@debian.org>
6449
6450 * MAINTAINERS (Write After Approval): Alphabetize my entry
6451 correctly.
6452
6453 2004-06-14 Andrew Cagney <cagney@gnu.org>
6454
6455 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6456 testsuite maintainer.
6457
6458 2004-06-13 Andrew Cagney <cagney@gnu.org>
6459
6460 * infcmd.c (print_return_value): Fix logic, allow
6461 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6462
6463 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6464 defining any macros.
6465 * gdbarch.h: Re-generate.
6466
6467 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6468 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6469 * gdbarch.h: Re-generate.
6470
6471 * values.c (generic_use_struct_convention): Don't check gcc_p.
6472
6473 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6474 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6475 * gdbarch.h, gdbarch.c: Regenerate.
6476 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6477 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6479 deprecated_max_register_raw_size and
6480 deprecated_max_register_virtual_size.
6481 * v850-tdep.c (v850_gdbarch_init): Ditto.
6482 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6483 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6484 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6485 * cris-tdep.c (cris_gdbarch_init): Ditto.
6486
6487 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6488 * gdbarch.h, gdbarch.c: Re-generate.
6489 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6490 (m68hc11_use_struct_convention): Delete function.
6491 (m68hc11_extract_struct_value_address): Delete function.
6492 (m68hc11_return_value): New function.
6493 (m68hc11_gdbarch_init): Instead of store_return_value,
6494 extract_return_value, return_value_on_stack,
6495 deprecated_extract_struct_value_address and use_struct_convention,
6496 set return_value.
6497 * values.c (using_struct_return): Do not call
6498 RETURN_VALUE_ON_STACK.
6499 * arch-utils.h (generic_return_value_on_stack_not): Delete
6500 declaration.
6501 * arch-utils.c (generic_return_value_on_stack_not): Delete
6502 function.
6503
6504 2004-06-12 Andrew Cagney <cagney@gnu.org>
6505
6506 * values.c (register_value_being_returned): Delete function.
6507 * infcmd.c (legacy_return_value): Delete function.
6508 * infcall.c (call_function_by_hand): Inline
6509 "register_value_being_returned", simplify.
6510 * values.c (using_struct_return): Update comment, refer to
6511 print_return_value instead of register_value_being_returned.
6512 * infcmd.c (print_return_value): Inline calls to
6513 register_value_being_returned and legacy_return_value. Simplify.
6514
6515 2004-06-11 Randolph Chung <tausq@debian.org>
6516
6517 * somread.c (som_symtab_read): Exclude gcc local symbols.
6518
6519 2004-06-11 Randolph Chung <tausq@debian.org>
6520
6521 * infrun.c (handle_inferior_event): Handle the case when a
6522 trampoline ends up in the runtime resolver, and if the trampoline
6523 has no name. Rearrange the code so that all the trampoline
6524 processing happens before other step-out-of-range handling.
6525
6526 2004-06-11 Martin Hunt <hunt@redhat.com>
6527
6528 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6529 has no fpu.
6530
6531 2004-06-10 Andrew Cagney <cagney@gnu.org>
6532
6533 * blockframe.c (legacy_inside_entry_func): Delete.
6534 (legacy_frame_chain_valid): Inline call to
6535 legacy_inside_entry_func, simplify.
6536
6537 2004-06-10 Bob Rossi <bob@brasko.net>
6538
6539 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6540 * dwarf2read.c (partial_die_info): Add dirname field.
6541 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6542 (read_partial_die): Save away DW_AT_comp_dir.
6543 * defs.h (symtab_to_filename): Removed.
6544 * source.c (find_and_open_source): Added.
6545 (open_source_file): Just calls find_and_open_source.
6546 (symtab_to_filename): Removed.
6547 (symtab_to_fullname, psymtab_to_fullname): Added.
6548 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6549 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6550 symtab_to_filename.
6551 * symtab.h (partial_symtab): Add dirname field.
6552 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6553 (mi_cmd_file_list_exec_source_file): Call new function
6554 symtab_to_fullname to find fullname.
6555 (mi_cmd_file_list_exec_source_files): Added.
6556 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6557 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6558
6559 2004-06-10 Andrew Cagney <cagney@gnu.org>
6560
6561 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6562 to generic_use_struct_convention, the default value.
6563
6564 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6565 of abort.
6566
6567 * ns32k-tdep.c (ns32k_push_arguments): New function.
6568 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6569 * infcall.c (call_function_by_hand): Call error instead of
6570 legacy_push_arguments.
6571 * value.h (legacy_push_arguments): Delete declaration.
6572 * valops.c (legacy_push_arguments): Delete function.
6573 (value_push): Delete function.
6574
6575 2004-06-10 Brian Ford <ford@vss.fsi.com>
6576
6577 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6578 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6579 info.
6580 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6581
6582 2004-06-10 Andrew Cagney <cagney@gnu.org>
6583
6584 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6585 * gdbarch.h, gdbarch.c: Re-generate.
6586 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6587 parameters.
6588 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6589 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6590 deprecated_pc_in_call_dummy instead of
6591 DEPRECATED_PC_IN_CALL_DUMMY.
6592 (arm_skip_prologue): Ditto.
6593 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6594 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6595 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6596 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6597 Ditto.
6598 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6599 (sh64_init_extra_frame_info, sh64_get_saved_register)
6600 (sh64_pop_frame): Ditto.
6601 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6602 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6603 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6604 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6605 (h8300_pop_frame): Ditto.
6606 * blockframe.c (legacy_inside_entry_func)
6607 (legacy_frame_chain_valid): Ditto.
6608 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6609 to deprecated_pc_in_call_dummy.
6610
6611 2004-06-09 Andrew Cagney <cagney@gnu.org>
6612
6613 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6614 provide a default value.
6615 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6616 * gdbarch.h, gdbarch.c: Re-generate.
6617 * arch-utils.c (generic_convert_register_p): Rename
6618 legacy_convert_register_p
6619 (legacy_register_to_value, legacy_value_to_register): Delete
6620 functions.
6621 * arch-utils.h (generic_convert_register_p): Rename
6622 legacy_convert_register_p.
6623 (legacy_register_to_value, legacy_value_to_register): Delete
6624 declarations.
6625
6626 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6627 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6628 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6629 * gdbarch.h, gdbarch.c: Re-generate.
6630 * infcmd.c (default_print_registers_info): Simplify.
6631 * findvar.c (value_of_register): Simplify.
6632 * mi/mi-main.c (get_register): Simplify.
6633 * arch-utils.c (legacy_convert_register_p): Always return 0.
6634 (legacy_register_to_value, legacy_value_to_register): Always call
6635 internal_error.
6636
6637 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6638 #ifdef CLEAR_INSN_CACHE code.
6639 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6640 Delete #ifdef CLEAR_DEFERRED_STORES code.
6641
6642 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6643
6644 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6645 copyright.
6646 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6647
6648 * config/mips/mipsv4.mh: Delete file.
6649
6650 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6651 unreferenced macro.
6652 (hpread_adjust_stack_address): Delete declaration.
6653
6654 2004-06-08 Andrew Cagney <cagney@gnu.org>
6655
6656 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6657 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6658 PTRACE_ATTACH / PTRACE_DETACH available call error.
6659 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6660 * infttrace.c (update_thread_state_after_attach, attach, detach):
6661 Remove #ifdef wrappers.
6662 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6663 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6664 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6665 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6666 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6667 * config/nm-linux.h (ATTACH_DETACH): Delete.
6668 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6669 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6670 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6671 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6672 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6673
6674 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6675
6676 * configure.in: Set $configdir to the right OS specific value.
6677 Use value when setting $tcldir and $tkdir.
6678 * configure: Regenerate.
6679
6680 2004-06-06 Paul Brook <paul@codesourcery.com>
6681
6682 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6683 records.
6684
6685 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6686
6687 * ada-lang.c (lookup_symbol_in_language): New function to allow
6688 re-use of another language's symbol lookup code. (Placed here
6689 temporarily while Ada support is being integrated into the public
6690 tree).
6691 (restore_language): New auxiliary function for
6692 lookup_symbol_in_language.
6693 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6694 temporarily while Ada support is being integrated into the public
6695 tree).
6696
6697 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6698
6699 * Makefile.in (check//%): New.
6700
6701 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6702 (mn10300_store_return_value): Rewrite.
6703 (mn10300_type_align): New.
6704 (mn10300_use_struct_convention): Rewrite.
6705 (mn10300_return_value): New, using all of the above.
6706 (mn10300_pop_frame_regular): Add saved_regs_size.
6707 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6708
6709 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6710 regs if PC is on movm.
6711
6712 2004-06-07 Jim Blandy <jimb@redhat.com>
6713
6714 Add native Linux support for the PowerPC E500.
6715 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6716 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6717 all architectures except the E500.
6718 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6719 #definitions.
6720 (struct gdb_evrregset_t): New type.
6721 (have_ptrace_getsetevrregs): New variable.
6722 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6723 fetch_spe_registers): New functions.
6724 (fetch_register): Call fetch_spe_register as appropriate.
6725 Assert that we're only passed raw register numbers.
6726 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6727 Don't fetch gprs if they're pseudoregisters.
6728 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6729 store_spe_registers): New functions.
6730 (store_register): Call store_spe_register as appropriate.
6731 Assert that we're only passed raw register numbers.
6732 (store_ppc_registers): Call store_spe_registers as appropriate.
6733 Don't store gprs if they're pseudoregisters.
6734
6735 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6736
6737 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6738 struct if one exists, even if we are dealing with a zombie thread.
6739
6740 2004-06-07 Andrew Cagney <cagney@gnu.org>
6741
6742 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6743 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6744 Rename PC_REQUIRES_RUN_BEFORE_USE.
6745 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6746 #ifdef.
6747
6748 2004-06-07 Randolph Chung <tausq@debian.org>
6749
6750 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6751 unwinding after sp has been saved to the stack but before the end
6752 of the prologue, and after the fp has been modified but before it has
6753 been saved to the stack.
6754 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6755 Remove superfluous definitions.
6756 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6757
6758 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6759
6760 Committed by Randolph Chung.
6761 * hppa-linux-nat.c: Include the correct version of the header file
6762 depending on the kernel version.
6763
6764 2004-06-06 Randolph Chung <tausq@debian.org>
6765
6766 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6767 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6768
6769 2004-06-06 Randolph Chung <tausq@debian.org>
6770
6771 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6772 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6773 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6774 * hppa-tdep.c (hppa_symbol_address): New function definition.
6775 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6776
6777 2004-06-06 Randolph Chung <tausq@debian.org>
6778
6779 * hppa-tdep.h (struct value): Forward declaration.
6780 (gdbarch_tdep): Define tdep find_global_pointer method.
6781 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6782 associated with the function we are trying to call, and write it
6783 to the gp register.
6784 (hppa32_convert_from_funct_ptr_addr): New function.
6785 (hppa_find_global_pointer): New function.
6786 (hppa_gdbarch_init): Set default find_global_pointer method; set
6787 convert_from_func_ptr_addr method.
6788 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6789 (hppa_linux_init_abi): Set find_global_pointer method.
6790 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6791
6792 2004-06-06 Randolph Chung <tausq@debian.org>
6793
6794 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6795 to struct value *function.
6796 * gdbarch.c: Regenerate.
6797 * gdbarch.h: Likewise.
6798 * infcall.c (call_function_by_hand): Pass entire function value
6799 to push_dummy_call.
6800
6801 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6802 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6803 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6804 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6805 * arm-tdep.c (arm_push_dummy_call): Likewise.
6806 * avr-tdep.c (avr_push_dummy_call): Likewise.
6807 * cris-tdep.c (cris_push_dummy_call): Likewise.
6808 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6809 * frv-tdep.c (frv_push_dummy_call): Likewise.
6810 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6811 * hppa-tdep.c (hppa32_push_dummy_call)
6812 (hppa64_push_dummy_call): Likewise.
6813 * i386-tdep.c (i386_push_dummy_call): Likewise.
6814 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6815 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6816 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6817 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6818 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6819 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6820 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6821 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6822 (ppc64_sysv_abi_push_dummy_call): Likewise.
6823 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6824 (ppc64_sysv_abi_push_dummy_call): Likewise.
6825 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6826 * s390-tdep.c (s390_push_dummy_call): Likewise.
6827 * sh-tdep.c (sh_push_dummy_call_fpu)
6828 (sh_push_dummy_call_nofpu): Likewise.
6829 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6830 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6831 * vax-tdep.c (vax_push_dummy_call): Likewise.
6832
6833 2004-06-04 Jim Blandy <jimb@redhat.com>
6834
6835 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6836 gdbarch argument to register_size.
6837
6838 * rs6000-tdep.c (rs6000_store_return_value): Use
6839 regcache_cooked_write_part instead of
6840 deprecated_write_register_bytes.
6841 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6842 not gdbarch_deprecated_store_return_value.
6843
6844 * ppc-linux-nat.c (store_register, fetch_register): Remove
6845 incorrect assertions. Simplify and generalize handling of
6846 transfers whose sizes are not multiples of, or less than, sizeof
6847 (PTRACE_XFER_TYPE).
6848
6849 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6850
6851 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6852 as a new thread event.
6853 * thread-db.c (thread_get_info_callback): If the thread is a
6854 zombie, return TD_THR_ZOMBIE.
6855 (thread_from_lwp): If thread_get_info_callback returns
6856 TD_THR_ZOMBIE, check if the thread is still on the thread list
6857 and return a -1 ptid if not found.
6858 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6859 change the status to TARGET_WAITKIND_SPURIOUS.
6860
6861 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6862
6863 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6864 double values in little endian mode.
6865
6866 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6867
6868 Committed by Andrew Cagney.
6869 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6870 after last enum constant to avoid error from IBM C
6871 compiler.
6872
6873 2004-06-02 Jim Blandy <jimb@redhat.com>
6874
6875 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6876 to 'message', and make it local to the lone block that uses it.
6877
6878 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6879
6880 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6881
6882 * ada-exp.y: Update copyright notice.
6883 Include block.h.
6884
6885 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6886 SPECIAL_VARIABLE and unify the treatment of these cases.
6887
6888 (write_attribute_call0): Remove.
6889 (write_attribute_call1): Remove.
6890 (write_attribute_calln): Remove.
6891 (save_qualifier): Add missing semicolon.
6892
6893 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6894 temporarily disabled to allow compilation with FSF head version.
6895
6896 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6897 use individual operators (OP_*) for all attributes.
6898 (exp syntax): Use write_int.
6899 Handle STRING literals with OP_STRING.
6900 (variable syntax): Add limit parameter to calls to
6901 write_object_renaming.
6902
6903 (temp_parse_space): New definition to hold entities that need
6904 only live until the next call to ada_parse.
6905 (string_to_operator): Rename fields of ada_opname_table entries.
6906
6907 (write_var_from_sym): Record block.
6908 (write_var_from_name): Minor reformatting.
6909 Make sure saved name is properly encoded in the case of multiple
6910 matches, and set its language to Ada.
6911 Update comment.
6912 Modify to indicate unresolved name as symbol in the UNRESOLVED
6913 namespace, allocated in temp_parse_space.
6914 (write_int): New function.
6915
6916 (write_object_renaming): Add max_depth parameter to limit
6917 chains of object renamings.
6918 Handle case where root of renaming expression is itself a renaming.
6919 Use temp_parse_space for temporary name buffer.
6920 Handle renamings to dereferenced pointers (___XEXA suffices).
6921
6922 (ada_parse, yyerror, string_to_operator,
6923 write_var_from_sym, write_var_from_name, write_attribute_call0,
6924 write_attribute_call1, write_attribute_calln,
6925 write_object_renaming): Protoize.
6926
6927 (_initialize_ada_exp): New function.
6928
6929 * ada-lang.c: Update copyright notice.
6930 General terminology change to conform to GNAT compiler usage:
6931 mangle => encode, demangle => decode
6932 Include gdb_obstack.h.
6933 Include gdb_regex.h
6934 Include frame.h
6935 Include hashtab.h
6936 Include completer.h
6937 Include gdb_stat.h
6938 Include block.h
6939 Include infcall.h
6940
6941 (ADA_RETAIN_DOTS): Make sure this is defined.
6942 (TRUNCATION_TOWARDS_ZERO): Define.
6943 (struct string_vector): Define.
6944 (unresolved_names): Remove definition.
6945 (xnew_string_vector): New function.
6946 (string_vector_append): New function.
6947 (extract_string): Make static.
6948 (ada_unqualified_name): New function.
6949 (add_angle_brackets): New function.
6950 (function_name_from_pc): New function.
6951 (place_on_stack): Rename to ensure_lval.
6952
6953 (ensure_lval): Renamed from place_on_stack.
6954 Make identity on lvals.
6955 Update comment.
6956 (is_nonfunction): New interface.
6957 Only symbols in LOC_CONST class can be enumerals.
6958 (fill_in_ada_prototype): Remove; now independent of language.
6959 (add_defn_to_vec): Add obstack and symtab arguments.
6960 Use obstack to hold collected definitions.
6961 (num_defns_collected): New function.
6962 (defns_collected): New function.
6963 (ada_resolve_subexp): Rename to resolve_subexp.
6964 (resolve_subexp): Renamed from ada_resolve_subexp.
6965 (ada_op_name): Return non-const result.
6966 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6967 other purposes.
6968
6969 (to_fixed_array_type): Add declaration.
6970 (coerce_unspec_val_to_type): Remove offset parameter.
6971 (find_sal_from_funcs_and_line): New interface.
6972 (find_line_in_linetable): Ditto.
6973
6974 (all_sals_for_line): Rename to ada_sals_for_line and make
6975 global.
6976 Add new parameter. When set, do not ask the user to choose the
6977 instance, but use the first one found instead.
6978 Use given line number in returned sals.
6979 Fix comment.
6980 Skip the prologue if funfirstline is set.
6981 Correct for memory leak when 0 lines found.
6982
6983 (value_pos_atr): Use pos_atr.
6984 (pos_atr): New function.
6985 (standard_lookup): Add block parameter.
6986
6987 (makeTimeStart): Remove declaration and uses.
6988 (makeTimeStop): Remove declaration and uses.
6989
6990 (ada_completer_word_break_characters): Allow for VMS.
6991 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6992 (raise_sym_name): New constant.
6993 (raise_unhandled_sym_name): New constant.
6994 (raise_assert_sym_name): New constant.
6995 (process_raise_exception_name): New constant.
6996 (longest_exception_template): New constant.
6997 (warning_limit): New variable to limit warnings during expression
6998 evaluation.
6999 (warnings_issued): New variable to keep track of warnings issued.
7000 (known_runtime_file_name_patterns): New constant.
7001 (known_auxiliary_function_name_patterns): New constant.
7002 (symbol_list_obstack): New variable.
7003
7004 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
7005 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
7006 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
7007 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
7008 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
7009 ada_variant_discrim_name, field_alignment, dynamic_template_type,
7010 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
7011 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
7012 and strcmp.
7013
7014 (ada_get_field_index): New function.
7015 (lim_warning): New function.
7016 (ada_translate_error_message): New function.
7017 (MAX_OF_SIZE): New function.
7018 (MIN_OF_SIZE): New function.
7019 (UMAX_OF_SIZE): New function.
7020 (UMIN_OF_SIZE): New function.
7021 (discrete_type_high_bound): New function.
7022 (discrete_type_low_bound): New function.
7023 (base_type): New function.
7024 (do_command): Remove.
7025
7026 (ada_update_initial_language): Use language_ada, not language_unknown.
7027 (ada_encode): Renamed from ada_mangle.
7028 Obey ADA_RETAIN_DOTS.
7029 (ada_decode): Renamed from ada_demangle.
7030 Update coding conventions.
7031 (decoded_names_store): New hash table.
7032 (ada_decode_symbol): New function.
7033 (ada_la_decode): New function.
7034
7035 (modify_general_field): Correct computations of offset and bit
7036 position.
7037 (desc_base_type): Handle ref types, too.
7038 (ada_is_direct_array_type): New function.
7039
7040 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7041 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7042 (ada_is_bogus_array_descriptor,ada_type_of_array,
7043 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
7044 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
7045 ada_is_array_descriptor_type.
7046
7047 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
7048 (ada_is_packed_array_type): Handle pointers or
7049 references to packed arrays as well.
7050 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
7051 (decode_packed_array_type): Search for the packed array type
7052 symbol in the currently selected block and associated
7053 superblocks too.
7054 Use lookup_symbol again.
7055
7056 (decode_packed_array): Handle pointers and references.
7057 Update call to coerce_unspec_val_to_type.
7058 (decode_packed_array_type,value_subscript_packed): Limit warnings.
7059 (ada_value_primitive_packed_val): Improve comment.
7060
7061 (ada_index_type): Substitute int type for "undefined".
7062 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
7063 ada_array_langth, ada_is_string_type): Use renamed
7064 ada_is_simple_array_type.
7065 (empty_array): New function.
7066
7067 (ada_resolve): Rename to resolve.
7068 (resolve): Make static.
7069 Call renamed resolve_subexp.
7070 Update comment.
7071 (ada_resolve_subexp): Rename to resolve_subexp.
7072 (resolve_subexp): Update comment.
7073 Decomment disabled code.
7074 Add LOC_COMPUTED* cases.
7075 Modify to use temporary struct symbols (marked as being in
7076 UNDEF_NAMESPACE) to indicate unresolved names, instead of
7077 OP_UNRESOLVED_VALUE.
7078 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
7079 Add OP_STRING case.
7080 Remove OP_ARRAY.
7081 Use SYMBOL_PRINT_NAME instead of ada_demangle.
7082 Use new ada_lookup_symbol_list interface.
7083 Use new ada_resolve_function interface.
7084 Remove OP_TYPE case.
7085
7086 (ada_args_match): Idiot proof against null actuals.
7087 Use intermediate variables to clarify.
7088 (ada_resolve_function): Update comment and interface.
7089 (mangled_ordered_before): Rename to encoded_ordered_before and
7090 update comment.
7091 (sort_choices): Update comment and interface.
7092 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7093 (user_select_syms): New interface.
7094 Use new sort_choices interface.
7095 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7096 (possible_user_operator_p): Idiot-proof against null values.
7097 (ada_simple_renamed_entity): Don't make cleanup; rely on
7098 caller to free result string.
7099 Remove const from return type.
7100 (make_array_descriptor): Rename uses of place_on_stack to
7101 ensure_lval.
7102 Make sure that arrays are on stack.
7103
7104 (HASH_SIZE): Define.
7105 (struct cache_entry): Define.
7106 (cache_space): Define.
7107 (cache): Define.
7108 (clear_ada_sym_cache): New function.
7109 (find_entry): New function.
7110 (lookup_cached_symbol): New function.
7111 (defn_vector_size): Define.
7112 (cache_symbol): New function.
7113 (defn_symbols): Remove.
7114
7115 (standard_lookup): Use lookup_symbol_in_language to get effect of
7116 C lookup.
7117 Cache results.
7118
7119 (symbol_completion_match): New function.
7120 (symbol_completion_add): New function.
7121 (ada_make_symbol_completion_list): New function.
7122
7123 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7124 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7125 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7126 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7127
7128 (ada_lookup_simple_minsym): New function.
7129 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7130
7131 (add_symbols_from_enclosing_procs): New interface.
7132 Conditionalize more helpfully.
7133 Don't bother if program isn't running.
7134 Use new interface to get_frame_block.
7135 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7136
7137 (remove_extra_symbols): New interface.
7138 (xget_renaming_scope): New function.
7139 (is_package_name): New function.
7140 (renaming_is_visible): New function.
7141 (remove_out_of_scope_renamings): New function.
7142
7143 (ada_lookup_symbol_list): New interface.
7144 Properly reinitialize the symbol list obstack.
7145 Don't call add_symbols_from_enclosing_procs if we start from a
7146 static or global block.
7147 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7148 add_symbols_from_enclosing_procs.
7149 Add symtab data to cached entries.
7150 Handle symbols prefixed with
7151 "standard__" specially; strip prefix and don't look in local symbols.
7152 Do not include out of scope renaming symbols in list of
7153 symbols returned.
7154 Add const to block parameter.
7155 Move check for non-local, non-global symbols earlier.
7156 Remove timing stuff.
7157 (ada_lookup_symbol): New interface.
7158 Find symtab as well.
7159 (ada_lookup_symbol_nonlocal): New function.
7160
7161 (is_name_suffix): Enhance suffix detection to recognize
7162 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7163 (is_dot_digits_suffix): New function.
7164 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7165
7166 (ada_add_block_symbols): New interface. Use obstack to return results
7167 in a vector of struct ada_symbol_infos. Add symtab argument.
7168 Use new interface to add_defn_to_vec.
7169 Remove calls to fill_in_ada_prototype.
7170 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7171
7172 (ada_finish_decode_line_1): Add const qualification to local to fix
7173 warning.
7174 Start looking in static block for functions to avoid attempts
7175 to search frame chain for up-level variables.
7176 Adapt to new ada_sals_for_line interface.
7177 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7178 Handle quoting of the function name inside the spec string.
7179 Skip prologue when funfirstline is set and update the
7180 function documentation to that effect.
7181
7182 (debug_print_lines, debug_print_block, debug_print_blocks,
7183 debug_print_symtab): Remove.
7184
7185 (ada_main_name): New function.
7186 (ada_exception_breakpoint_type): New function.
7187 (is_known_support_routine): New function.
7188 (ada_find_printable_frame): Renamed from find_printable_frame and made
7189 global.
7190 Remove level parameter.
7191 Use new interface to select_frame.
7192
7193 (begin_command): Remove.
7194 (ada_adjust_exception_stop): New function.
7195 (ada_print_exception_stop): New function.
7196 (exception_name_from_cond): New function.
7197 (ada_report_exception_break): Replace disabled code with
7198 conditionalization on GNAT_GDB.
7199 Get the exception name from the condition string.
7200 Remove and move functionality into new functions
7201 ada_print_exception_breakpoint_task and
7202 ada_print_exception_breakpoint_nontask.
7203 (error_breakpoint_runtime_sym_not_found): New function.
7204 (is_runtime_sym_defined): New function.
7205 (ada_breakpoint_rewrite): Uncomment suppressed code.
7206 Use symbolic error-message and runtime-symbol names.
7207 Surround runtime symbol names in quotes.
7208 Allow non-specific breakpoints on exceptions and assertions before
7209 program starts.
7210
7211 (ada_is_tagged_type): Add parameter.
7212 (ada_is_tag_type): New function.
7213 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7214 (ada_variant_discrim_type): Ditto.
7215 (value_tag_from_contents_and_address): New function.
7216 (type_from_tag): New function.
7217 (struct tag_args): New structure used to communicate with
7218 ada_tag_name_1.
7219 (ada_tag_name_1): New function.
7220 (ada_tag_name): New function.
7221
7222 (ada_scan_number): Update comment.
7223 (find_struct_field): New function.
7224 (ada_search_struct_field): Make static.
7225 (ada_value_struct_elt): New version that returns references when
7226 given pointers or references to structs.
7227 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7228 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7229 interface.
7230 (ada_value_ind): Use new ada_to_fixed_value interface.
7231 (ada_coerce_ref): Ditto.
7232 (field_offset): Remove.
7233
7234 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7235 (ada_find_renaming_symbol): New function.
7236 (ada_prefer_type): Prefer named types over unnamed ones.
7237 (variant_field_index): New function.
7238 (contains_variant_part): Removed: subsumed by variant_field_index.
7239 (ada_template_to_fixed_record_type): New function, mostly from
7240 template_to_fixed_record_type.
7241 (template_to_fixed_record_type):
7242 Do not scan the type fields beyond the last one; prevents a
7243 potential SEGV.
7244 Handle case where variant field is listed BEFORE discriminant it
7245 depends on.
7246 Fix calculation of record length when bit length is
7247 not evenly divisible by char length.
7248 Move code to ada_template_to_fixed_record_type and call it.
7249
7250 (template_to_static_fixed_type): Revise comment.
7251 Modify to work on ordinary record types as well as templates,
7252 so as to handle fields that use ___XVE or ___XVU encodings.
7253 (to_record_with_fixed_variant_part): Fill out comment.
7254 Initialize C++ stuff in right type.
7255 Allow case where DVAL is null.
7256 Handle case where variant field is not last.
7257 Fix typo concerning record length.
7258 (to_fixed_record_type): Decomment disabled code.
7259 (to_fixed_record_type): Use variant_field_index instead of
7260 contains_variant_part.
7261 (to_fixed_variant_branch_type): Ditto.
7262 (to_fixed_array_type): Decomment disabled code.
7263 (ada_to_fixed_type): Convert tagged types to the specific type.
7264 Deactivate the size-check for array types in order to avoid
7265 some false size alarms.
7266 (to_static_fixed_type): Decomment disabled code.
7267 Modify to call template_to_static_fixed_type
7268 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7269 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7270 Remove valaddr argument, as it is never really used.
7271 (ada_to_fixed_value): Change interface to act on single struct value*
7272 operand.
7273 (adjust_pc_past_prologue): New function.
7274 (ada_attribute_name): Modify to take enum exp_opcode argument.
7275
7276 (ada_enum_name): Recognize new homonym-distinguishing convention.
7277 Adjust local variable's type to remove compiler warning.
7278 Fix a small problem in the part that unqualifies the enumeration name.
7279 (ada_value_binop): New function.
7280 (ada_value_equal): New function.
7281
7282 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7283 Don't give error message when not doing normal evaluation
7284 and a tagged type doesn't seem to contain a structure member.
7285 Give error message for packed arrays.
7286 For indexing arrays, handle pointers to packed arrays correctly.
7287 Handle case of 'first and 'last attributes of bare integral type
7288 without encoded subtype info.
7289 Remove some unnecessary casts.
7290 Fix uninitialized value of type in computing 'first, 'last, or 'length
7291 of array object.
7292 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7293 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7294 calls.
7295 Attributes are now exp_opcode values.
7296 Correct treatment of 'modulus.
7297 Better error message for taking 'length of wrong kind of type;
7298 improve comment.
7299 Change EVAL_NORMAL to noside for consistency.
7300 Use ada_value_binop for DIV, MOD, REM.
7301 Make special case out of array of length 0, since an argument
7302 of 0 upsets some platforms' malloc.
7303 Use OP_STRING instead of OP_ARRAY.
7304 For slice, add check that we have an array type before extracting
7305 a slice out of it. Avoids a SEGV.
7306 When evaluating an array slice, if the array type is a reference to
7307 an aligner type, then replace the aligner type by the actual type.
7308 Decomment disabled code.
7309 Remove some dead code.
7310 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7311 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7312 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7313 and UNOP_MBR to UNOP_IN_RANGE.
7314 If an array type has a parallel ___XVE type, then use it.
7315 Turn arrays into pointers for lvalue arrays.
7316 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7317 bounds error and handle 0-length slices.
7318 Use lim_warning.
7319 When selecting fields, apply ada_to_fixed_value (because the fields
7320 might have ___XVU or ___XVE encodings even if not dynamic.)
7321 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7322 (ada_is_system_address_type): New function.
7323
7324 (get_var_value): Use new interface to ada_lookup_symbol_list.
7325 (get_int_var_value): New interface.
7326 (to_fixed_range_type): Allow unknown bound, with warning.
7327 (ada_is_modular_type): Decomment disabled code.
7328 (ADA_OPERATORS): New definition.
7329 (ada_operator_length): New function.
7330 (ada_expr_op_name): New function.
7331 (ada_forward_operator_length): New function.
7332 (ada_dump_subexp_body): New function.
7333 (ada_print_subexp): New function.
7334 (ada_exp_descriptor): New constant.
7335 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7336 (ada_language_defn): Add ada_exp_descriptor entry.
7337 Change ada_parse => parse.
7338 Add post-parser entry.
7339 Use ada-specific non-local symbol lookup.
7340 Don't use C-style arrays.
7341 String lower-bound is 1.
7342 Decomment disabled code.
7343 (parse): New function.
7344 New fields ada_translate_error_message, ada_lookup_symbol,
7345 ada_lookup_minimal_symbol.
7346
7347 * ada-lang.h: Update copyright dates.
7348 Replace the mangle/demangle terminology throughout by the
7349 more appropriate encode/decode one.
7350 Include breakpoint.h.
7351 Forward declare struct partial_symbol, struct block.
7352 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7353 (EXTRACT_ADDRESS): Remove.
7354 (EXTRACT_INT): Remove.
7355 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7356 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7357 (MAX_RENAMING_CHAIN_LENGTH): Define.
7358 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7359
7360 (enum task_states): Remove.
7361 ada_task_states: Remove.
7362 (fat_string): Remove.
7363 (struct entry_call): Remove.
7364 (struct task_fields): Remove.
7365 (struct task_entry): Remove.
7366
7367 (struct ada_symbol_info): Define.
7368 (enum ada_attribute): Remove.
7369 (enum ada_operator): Define.
7370
7371 (ada_get_field_index): Declare.
7372 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7373 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7374 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7375 (ada_lookup_symbol_list): New interface.
7376 (ada_decode_symbol): Declare.
7377 (ada_decode): Declare.
7378 (ada_lookup_symbol): New interface.
7379 (ada_update_initial_language): Declare.
7380 (ada_lookup_simple_minsym): Declare.
7381 (user_select_syms): New interface.
7382 (ada_sals_for_line): Declare.
7383 (ada_is_tagged_type): New interface.
7384 (ada_tag_name): Declare.
7385 (ada_lookup_struct_elt_type): Remove declaration.
7386 (ada_search_struct_field): Remove declaration.
7387 (ada_attribute_name): New interface.
7388 (ada_is_system_address_type): Declare.
7389 (ada_to_fixed_value): Remove declaration.
7390 (ada_template_to_fixed_record_type_1): Declare.
7391 (get_int_var_value): New interface.
7392 (ada_find_any_symbol): Declare.
7393 (ada_find_renaming_symbol): Declare.
7394 (ada_mangle): Rename to ada_encode.
7395 (ada_simple_renamed_entity): Remove const.
7396 (ada_main_name): Declare.
7397 (get_current_task): Rename to ada_get_current_task.
7398 (get_entry_number): Remove declaration.
7399 (ada_report_exception_break): Remove declaration.
7400 (ada_print_exception_breakpoint_nontask): Declare.
7401 (ada_print_exception_breakpoint_task): Declare.
7402 (ada_find_printable_frame): Declare.
7403
7404 * ada-lex.l: Update copyright notices.
7405 Use xmalloc and xfree instead of malloc and free.
7406 Use new interface to name_lookup.
7407 Use new interface to
7408 ada_mangle=>ada_encode.
7409 Redo handling of '$...' variable to parallel current treatment
7410 in c-exp.y.
7411 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7412 digit_to_int, strtoulst, processInt, processReal, processId,
7413 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7414 yywrap): Protoize.
7415
7416 (processInt): Use cast to remove harmless warning.
7417 (processReal): Modify to get rid of compiler warning on scan formats.
7418
7419 (processId): Replace xmalloc with obstack_alloc for name and remove
7420 call to ada_name_string_cleanup.
7421 Remove obsolete disabled code.
7422 (name_lookup): Ditto.
7423 New interface.
7424 Use obsavestring on temp_parse_space instead of savestring
7425 on name, and remove call to ada_name_string_cleanup.
7426 Free string returned from ada_simple_renamed_entity.
7427 Use new interface to ada_lookup_symbol_list.
7428 Decomment disabled code.
7429 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7430 not types.
7431 When a type name lookup succeeds as a result of
7432 lookup_primitive_typename, check for regular type entry that has not
7433 yet been read in.
7434 Limit length of chain of renamed symbols we are willing to follow.
7435 Do not break names beginning with "standard__" into segments.
7436 (block_lookup): Use new interface to ada_lookup_symbol_list.
7437
7438 * ada-typeprint.c: Update copyright notice.
7439 (demangled_type_name): Rename to decoded_type_name.
7440 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7441 (print_range_bound): Correct handling of negative
7442 bounds that make the index type looked unsigned under STABS.
7443 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7444 (print_range_type_named): Use the builtin int type if no type
7445 corresponding to the given type name could be found.
7446 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7447 Add some bullet-proofing.
7448 (print_variant_clauses): Allow for variant branches with ___XVU
7449 encodings that are not dynamic fields.
7450 Use new interface to ada_is_tagged_type.
7451 (print_record_type): Allow for fields with ___XVE encodings that
7452 are not dynamic fields.
7453 Use new interface to ada_is_tagged_type.
7454 (ada_print_type): ada_is_array_descriptor =>
7455 ada_is_array_descriptor_type.
7456
7457 * ada-valprint.c: Update copyright notice.
7458 Include gdb_string.h
7459 Include infcall.h
7460 (ui_memcpy): New function.
7461 (ada_print_floating): New function.
7462 (ada_print_str): Order arguments correctly.
7463 Correct handling of empty arrays and arrays of 0-length items.
7464 ada_is_array_descriptor => ada_is_array_descriptor_type
7465 Print values of type System.Address in hexadecimal format.
7466 Use ada_print_floating to print floating-point numbers in Ada format.
7467 Print class tag values with type names.
7468 No longer print the address of reference values. Avoids
7469 a potential confusion.
7470 (ada_value_print): Stop printing the object type for reference
7471 values, but preserve that behavior for access types. Avoids
7472 a potential confusion.
7473 Simplify one conditional expression, as the first part is now
7474 necessarily true.
7475 ada_is_array_descriptor => ada_is_array_descriptor_type
7476 Add check for arrays for null records, and print them by hand.
7477
7478 2004-06-01 Jim Blandy <jimb@redhat.com>
7479
7480 * ppc-tdep.h: Delete unused 'regoff' member.
7481 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7482
7483 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7484
7485 Fix PR symtab/1661.
7486 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7487 (hpread_read_struct_type): Likewise.
7488
7489 2004-06-01 Andrew Cagney <cagney@gnu.org>
7490
7491 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7492 instead of xasprintf.
7493 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7494 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7495 (mi_cmd_data_list_register_names)
7496 (mi_cmd_data_list_changed_registers)
7497 (mi_cmd_data_list_register_values)
7498 (get_register, mi_cmd_data_write_register_values)
7499 (mi_cmd_data_write_register_values)
7500 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7501 (mi_cmd_target_download, mi_cmd_target_select)
7502 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7503 (mi_execute_cli_command, mi_execute_async_cli_command)
7504 (mi_execute_async_cli_command): Ditto.
7505 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7506 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7507
7508 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7509 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7510 error_last_message instead of mi_error_last_message.
7511 * mi/mi-main.c (mi_error_last_message): Delete function.
7512
7513 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7514 "invalid number of columns" error. Delete redundant "out of
7515 memory" check.
7516
7517 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7518
7519 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7520 (gregset_t, fpregset_t): Remove typedefs.
7521 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7522 (REG_OFFSET): Rename argument.
7523 (i386bsd_r_reg_offset): Rename from reg_offset.
7524 (REG_ADDR): Remove macro.
7525 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7526 functions.
7527 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7528 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7529 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7530 instead of supply_gregset.
7531 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7532 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7533 instead of fill_gregset.
7534 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7535
7536 * i386bsd-nat.c: Don't include "gregset.h".
7537 (supply_gregset, fill_gregset): Make static.
7538 (supply_fpregset, fill_fpregset): Remove.
7539 * Makefile.in (i386bsd-nat.o): Update dependencies.
7540
7541 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7542
7543 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7544 "gdb_assert.h". Con't include "gregset.h".
7545 (fbsd_make_corefile_notes): Use regset-based core file support
7546 instead off fill_gregset and fill_fpregset.
7547 * Makefile.in (fbsd-proc.o): Update dependencies.
7548
7549 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7550 instructions.
7551 (m88k_frame_prev_register): Simplify code a bit.
7552
7553 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7554 (amd64_collect_fpregset): New function.
7555 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7556
7557 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7558
7559 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7560 (i386_collect_gregset): New function.
7561 (i386_supply_fpregset): Adjust comment.
7562 (i386_collect_fpregset): New function.
7563 (i386_regset_from_core_section): Use i386_collect_gregset and
7564 i386_collect_fpregset.
7565
7566 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7567 handle VALUEP being null.
7568
7569 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7570
7571 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7572
7573 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7574
7575 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7576 assembler in OpenBSD 3.5-current.
7577 (amd64obsd_sigcontext_addr): Likewise.
7578
7579 2004-05-28 Jim Blandy <jimb@redhat.com>
7580
7581 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7582 register set, so our regcache isn't declared "legacy" and our E500
7583 pseudoregister read and write functions aren't ignored.
7584 (rs6000_register_byte, rs6000_register_raw_size,
7585 rs6000_register_virtual_type, rs6000_register_convertible,
7586 rs6000_register_convert_to_virtual,
7587 rs6000_register_convert_to_raw): Deleted.
7588 (rs6000_register_type, rs6000_convert_register_p,
7589 rs6000_register_to_value, rs6000_value_to_register): New
7590 functions.
7591 (rs6000_gdbarch_init): Don't register
7592 gdbarch_deprecated_register_size,
7593 gdbarch_deprecated_register_bytes,
7594 gdbarch_deprecated_register_byte,
7595 gdbarch_deprecated_register_raw_size,
7596 gdbarch_deprecated_register_virtual_type,
7597 gdbarch_deprecated_register_convertible,
7598 gdbarch_deprecated_register_convert_to_virtual, or
7599 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7600 register gdbarch_register_type, gdbarch_convert_register_p,
7601 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7602
7603 2004-05-26 Jim Blandy <jimb@redhat.com>
7604
7605 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7606 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7607 functions, updated to match the register numberings used in GCC.
7608 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7609 rs6000_dwarf2_reg_to_regnum as register number conversions
7610 functions for STABS and Dwarf2.
7611
7612 2004-05-26 Randolph Chung <tausq@debian.org>
7613
7614 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7615 in header file.
7616
7617 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7618
7619 * NEWS: Document new "start" command.
7620
7621 2004-05-25 Randolph Chung <tausq@debian.org>
7622
7623 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7624 hppa-linux.
7625
7626 2004-05-25 Randolph Chung <tausq@debian.org>
7627
7628 * hppa-hpux-tdep.c (offsetof): Define.
7629 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7630 (hppa32_hpux_frame_base_before_sigtramp)
7631 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7632 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7633 (hppa64_hpux_frame_base_before_sigtramp)
7634 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7635 functions.
7636 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7637 (hppa_hpux_sigtramp_frame_unwind_cache)
7638 (hppa_hpux_sigtramp_frame_this_id)
7639 (hppa_hpux_sigtramp_frame_prev_register)
7640 (hppa_hpux_sigtramp_frame_unwind)
7641 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7642 (hppa_hpux_init_abi): Register sigtramp unwinder.
7643 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7644
7645 2004-05-25 Randolph Chung <tausq@debian.org>
7646
7647 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7648 and multiple stack unwinds.
7649 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7650
7651 2004-05-25 Andrew Cagney <cagney@gnu.org>
7652
7653 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7654 * symfile-mem.h: Delete file.
7655 * symfile-mem.c: Do not include "symfile-mem.h".
7656 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7657 "struct bfd_section". When an error do not bother returning NULL.
7658 (add_symbol_file_from_memory_command): Use "struct bfd" and
7659 "struct bfd_section".
7660 * Makefile.in (symfile_mem_h): Delete.
7661 (symfile-mem.o): Update dependencies.
7662
7663 2004-05-25 Nick Roberts <nickrob@gnu.org>
7664
7665 * gdb-mi.el: New file.
7666
7667 2004-05-25 Andrew Cagney <cagney@gnu.org>
7668
7669 * inftarg.c: Include "observer.h".
7670 (child_attach, child_create_inferior): Notify inferior_created.
7671 * corelow.c: Include "observer.h".
7672 (core_open): Notify inferior_created.
7673 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7674
7675 2004-05-25 Andrew Cagney <cagney@gnu.org>
7676
7677 * target.h (struct target_ops): Add from_tty to
7678 to_create_inferior.
7679 (target_create_inferior, find_default_create_inferior): Update.
7680 * infcmd.c (run_command): Update.
7681 * wince.c (child_create_inferior): Update.
7682 * win32-nat.c (child_create_inferior): Update.
7683 * uw-thread.c (uw_thread_create_inferior): Update.
7684 * thread-db.c (thread_db_create_inferior): Update.
7685 * target.c (debug_to_create_inferior)
7686 (find_default_create_inferior): Update.
7687 (maybe_kill_then_create_inferior): Update.
7688 * sol-thread.c (sol_thread_create_inferior): Update.
7689 * remote.c (extended_remote_async_create_inferior)
7690 (extended_remote_create_inferior): Update.
7691 * remote-vx.c (vx_create_inferior): Update.
7692 * remote-st.c (st2000_create_inferior): Update.
7693 * remote-sim.c (gdbsim_create_inferior): Update.
7694 * remote-sds.c (sds_create_inferior): Update.
7695 * remote-rdp.c (remote_rdp_create_inferior): Update.
7696 * remote-rdi.c (arm_rdi_create_inferior): Update.
7697 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7698 * remote-e7000.c (e7000_create_inferior): Update.
7699 * procfs.c (procfs_create_inferior): Update.
7700 * ocd.c (ocd_create_inferior): Update.
7701 * ocd.h (ocd_create_inferior): Update.
7702 * nto-procfs.c (procfs_create_inferior): Update.
7703 * monitor.c (monitor_create_inferior): Update.
7704 * lin-lwp.c (lin_lwp_create_inferior): Update.
7705 * inftarg.c (child_create_inferior): Update.
7706 * hpux-thread.c (hpux_thread_create_inferior): Update.
7707 * gnu-nat.c (gnu_create_inferior): Update.
7708
7709 2004-05-25 Andrew Cagney <cagney@gnu.com>
7710
7711 * MAINTAINERS: Update e-mail address.
7712
7713 2004-05-24 Randolph Chung <tausq@debian.org>
7714
7715 * thread.c (info_threads_command, thread_apply_all_command)
7716 (thread_apply_command, thread_command, do_captured_thread_select):
7717 Remove HPUXHPPA-specific code.
7718
7719 2004-05-24 Randolph Chung <tausq@debian.org>
7720
7721 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7722 unused symbols.
7723 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7724 references.
7725
7726 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7727
7728 * infcmd.c (kill_if_already_running): New function, extracted
7729 from run_command().
7730 (run_command): Replace extracted code by call to
7731 kill_if_already_running().
7732 (start_command): New function.
7733 (_initialize_infcmd): Add "start" command.
7734
7735 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7736
7737 Add OpenBSD/m88k support.
7738 * NEWS (New native configurations): Mention OpenBSD/m88k.
7739 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7740 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7741 * Makefile.in (m88k_tdep_h): New variable.
7742 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7743 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7744 * configure.host: Add m88*-*-openbsd*.
7745 * configure.tgt: Add m88*-*-openbsd*.
7746
7747 2004-05-24 Jim Blandy <jimb@redhat.com>
7748
7749 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7750 to approve changes.
7751
7752 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7753
7754 * symtab.c (fixup_section): Search section table when lookup by
7755 name fails.
7756
7757 2004-05-24 Randolph Chung <tausq@debian.org>
7758
7759 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7760 be "small_struct".
7761
7762 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7763
7764 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7765 register number in regcache_raw_collect call.
7766 (m68kbsd_collect_fpregset): Likewise.
7767 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7768
7769 * regset.h (struct regset): Add back `regset' member.
7770
7771 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7772
7773 * configure.in: Check for td_pcb in `struct thread'.
7774 * configure, config.in: Regenerated.
7775
7776 * dpx2-nat.c: Remove file.
7777 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7778 (dpx2-nat.o): Remove dependencies.
7779
7780 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7781 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7782 (amd64obsd_supply_pcb): New function.
7783 (_initialize_amd64obsd_nat): Enable libkvm interface.
7784 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7785 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7786 (LOADLIBES): New variable.
7787
7788 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7789 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7790 (sparc32nbsd_supply_pcb): New function.
7791 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7792 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7793 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7794 (LOADLIBES): New variable.
7795
7796 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7797
7798 * bsd-kvm.c, bsd-kvm.h: New files.
7799 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7800 "bsd-kvm.h".
7801 (i386fbsd_supply_pcb): New function.
7802 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7803 (i386fbsd-nat.o): Update dependencies.
7804 (bsd_kvm_h): New variable.
7805 (bsd-kvm.o): New dependency.
7806 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7807 (LOADLIBES): New variable.
7808
7809 * regset.c: Tweak comment.
7810 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7811 macro.
7812 * regset.h: Update copyright year.
7813 (struct regset): Remove `descr' member, add `gdbarch' member.
7814 (regset_alloc): Adjust prototype and comment.
7815 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7816 (i386_supply_fpregset): Likewise.
7817 (i386_regset_from_core_section): Update call to regset_alloc.
7818 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7819 REGSET->arch.
7820 (i386obsd_aout_regset_from_core_section): Update call to
7821 regset_alloc.
7822 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7823 REGSET->arch.
7824 (i386nbsd_aout_regset_from_core_section): Update call to
7825 regset_alloc.
7826 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7827 REGSET->arch.
7828 (amd64_regset_from_core_section): Update call to regset_alloc.
7829 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7830 REGSET->arch.
7831 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7832 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7833 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7834 (sparc32nbsd_init_abi): Update call to regset_alloc.
7835 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7836 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7837 (sparc64obsd_init_abi): Update call to regset_alloc.
7838 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7839 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7840 (sparc64nbsd_init_abi): Update call to regset_alloc.
7841 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7842 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7843 (sparc64fbsd_init_abi): Update call to regset_alloc.
7844
7845 2004-05-22 Jim Blandy <jimb@redhat.com>
7846
7847 * ppc-tdep.h (spe_register_p): New declaration.
7848 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7849 ppc_spefscr_regnum.
7850 * rs6000-tdep.c (spe_register_p): New function.
7851 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7852 spefscr.
7853 (rs6000_gdbarch_init): Initialize the new members of the tdep
7854 structure.
7855
7856 2004-05-21 Jim Blandy <jimb@redhat.com>
7857
7858 * ppc-linux-nat.c (fetch_register): Move code back to be next
7859 to the comment that describes it. (Moved code, instead of
7860 comment, for symmetry with store_register.)
7861
7862 Allocate regset structures in the gdbarch's obstack, not using
7863 xmalloc.
7864 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7865 Add 'arch' argument. Allocate the regset on arch's obstack, not
7866 using xmalloc.
7867 * regset.h (regset_alloc): Update declaration.
7868 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7869 gdbarch argument.
7870 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7871 * i386-tdep.c (i386_regset_from_core_section): Same.
7872 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7873 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7874 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7875 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7876 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7877 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7878
7879 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7880
7881 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7882
7883 2004-05-21 Jim Blandy <jimb@redhat.com>
7884
7885 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7886 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7887
7888 2004-05-20 Jim Blandy <jimb@redhat.com>
7889
7890 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7891
7892 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7893
7894 * regset.h: Make prototype const-correct.
7895 * regset.c (regset_xmalloc): Make const-correct.
7896
7897 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7898
7899 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7900 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7901 (symbol_search_name): Declare.
7902
7903 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7904 (iter_name_next_hashed): Ditto.
7905 (iter_name_next_linear): Ditto.
7906 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7907
7908 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7909 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7910 (symbol_search_name): New function.
7911
7912 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7913
7914 * minsyms.c (build_minimal_symbol_hash_tables): Change
7915 test for adding to demangled hash table to check for difference
7916 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7917
7918 2004-05-19 Jim Blandy <jimb@redhat.com>
7919
7920 Use a constructor function to create regset structures.
7921 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7922 (struct regset): Use supply_regset_ftype. Add new
7923 'collect_regset' member.
7924 (regset_xmalloc): New declaration.
7925 * regset.c: New file.
7926 * am64-tdep.c (amd64_regset_from_core_section): Use
7927 regset_xmalloc to construct regset structures.
7928 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7929 * i386-tdep.c (i386_regset_from_core_section): Same.
7930 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7931 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7932 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7933 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7934 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7935 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7936 * Makefile.in (COMMON_OBS): Add regset.o.
7937 (regset.o): New rule.
7938
7939 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7940
7941 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7942 and pthread_cond_wait.c.
7943
7944 2004-05-18 Jim Blandy <jimb@redhat.com>
7945
7946 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7947 before the mach-specific switch, and then let the individual cases
7948 override the defaults, rather than leaving them uninitialized
7949 until the switch and then setting them in each case.
7950
7951 2004-05-18 Randolph Chung <tausq@debian.org>
7952
7953 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7954 millicode functions.
7955
7956 2004-05-18 Randolph Chung <tausq@debian.org>
7957
7958 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7959 references to dld_flags_buffer consistent.
7960
7961 2004-05-18 Randolph Chung <tausq@debian.org>
7962
7963 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7964 it for unwinding the stack.
7965
7966 2004-05-18 Randolph Chung <tausq@debian.org>
7967
7968 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7969 Undefine these so we can overide them using gdbarch.
7970
7971 2004-05-18 Randolph Chung <tausq@debian.org>
7972
7973 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7974 handling for 64-bit HPUX (elf).
7975
7976 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7977
7978 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7979 constants.
7980 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7981 * ia64-tdep.c (examine_prologue): Likewise.
7982 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7983 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7984
7985 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7986
7987 * vax-tdep.c (vax_return_value): Implement
7988 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7989
7990 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7991
7992 * vax-tdep.c (vax_return_value): Fix typo.
7993
7994 2004-05-17 Andrew Cagney <cagney@redhat.com>
7995
7996 * MAINTAINERS: Mark Salter was also responsible for
7997 testsuite/config/
7998
7999 * NEWS: Mention signal fixes.
8000
8001 2004-05-17 Randolph Chung <tausq@debian.org>
8002
8003 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
8004 check to see if we are unwinding an export stub. Export stubs clobber
8005 the %rp in the call path and stores the original rp in a stack slot.
8006
8007 2004-05-17 Jim Blandy <jimb@redhat.com>
8008
8009 * MAINTAINERS: Update address for J.T. Conklin.
8010
8011 2004-05-17 Randolph Chung <tausq@debian.org>
8012
8013 * hppa-tdep.c: Remove superfluous #include's.
8014 * Makefile.in (hppa-tdep.o): Update dependencies.
8015
8016 2004-05-17 Randolph Chung <tausq@debian.org>
8017
8018 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
8019 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
8020 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
8021 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
8022 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
8023 Remove static function declarations.
8024
8025 2004-05-17 Mark Kettenis <kettenis@gnu.org>
8026
8027 * alphabsd-nat.c: Update copyright year.
8028 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
8029
8030 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
8031 and M68K_A2_REGNUM.
8032
8033 * m68k-tdep.c (m68k_svr4_return_value): Implement
8034 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8035
8036 2004-05-16 Mark Kettenis <kettenis@gnu.org>
8037
8038 * sol-thread.c Update copyright year. Fix various coding
8039 standards violations. Tweak a few comments.
8040 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
8041 Delete prototypes.
8042
8043 2004-05-15 Randolph Chung <tausq@debian.org>
8044
8045 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
8046 as pointer instead of array reference since HPUX compiler does
8047 not accept unsized array arguments.
8048 * somsolib.c (dld_flags_buffer): Use constant array size.
8049
8050 2004-05-15 Mark Kettenis <kettenis@gnu.org>
8051
8052 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
8053 offset with decimal offset.
8054 (amd64obsd_sigcontext_addr): Return correct address for entire
8055 signal trampoline.
8056
8057 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
8058 instead of get_frame_base.
8059
8060 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
8061 (fill_gregset): Use regcache_raw_collect.
8062
8063 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
8064 ppcobsd-tdep.c.
8065
8066 * config/sparc/tm-nbsd64.h: Remove file.
8067 * config/tm-sunos.h: Remove file.
8068
8069 2004-05-15 Joel Brobecker <brobecker@gnat.com>
8070
8071 * rs6000-tdep.c (store_param_on_stack_p): New function,
8072 an improved version of some code extracted from skip_prologue().
8073 (skip_prologue): Use store_param_on_stack_p() to detect
8074 instructions saving a parameter on the stack. Detect when r0
8075 is used to save a parameter.
8076 Do not mark "li rx, SIMM" instructions as part of the prologue,
8077 unless the following instruction is also part of the prologue.
8078
8079 2004-05-14 Andrew Cagney <cagney@redhat.com>
8080
8081 * infrun.c (handle_inferior_event): Simplify
8082 STEP_OVER_UNDEBUGGABLE.
8083
8084 * infrun.c (handle_step_into_function): Delete function.
8085 (handle_inferior_event): Inline calls to
8086 handle_step_into_function.
8087
8088 2004-05-14 Jerome Guitton <guitton@gnat.com>
8089
8090 * rs6000-nat.c: Fix a comment.
8091
8092 2004-05-12 David Anderson <davea@sgi.com>
8093
8094 Committed by Jim Blandy <jimb@redhat.com>:
8095 * regcache.c (struct regcache_descr): fix comment spelling.
8096
8097 2004-05-13 J. Brobecker <brobecker@gnat.com>
8098
8099 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8100 Fixes a link link failure.
8101
8102 2004-05-13 J. Brobecker <brobecker@gnat.com>
8103
8104 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8105 error that was causing the build to fail.
8106
8107 2004-05-13 J. Brobecker <brobecker@gnat.com>
8108
8109 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8110 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8111
8112 2004-05-13 Andrew Cagney <cagney@redhat.com>
8113
8114 * infrun.c (handle_inferior_event): Check for
8115 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8116 calls. Update comments.
8117
8118 2004-05-13 Jim Blandy <jimb@redhat.com>
8119
8120 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8121 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8122 (store_regs_user_thread, store_regs_kernel_thread): Use
8123 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8124 * ppc-linux-nat.c (fill_gregset): Same.
8125 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8126 (ppc_linux_sigtramp_cache): Same.
8127 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8128 (ppcnbsd_sigtramp_cache_init): Same.
8129 * rs6000-nat.c (fetch_core_registers): Same.
8130 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8131 (rs6000_frame_cache): Same.
8132
8133 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8134 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8135 of assuming that the gprs are numbered starting with zero.
8136 * ppc-linux-nat.c (fill_gregset): Same.
8137 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8138 * ppcnbsd-nat.c (getregs_supplies): Same.
8139 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8140 * rs6000-nat.c (fetch_core_registers): Same.
8141 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8142
8143 2004-05-07 Michael Snyder <msnyder@redhat.com>
8144
8145 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8146 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8147
8148 2004-05-13 Andrew Cagney <cagney@redhat.com>
8149
8150 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8151
8152 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8153
8154 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8155 base_address for shared libraries.
8156
8157 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8158
8159 * MAINTAINERS (write after approval): Add myself.
8160
8161 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8162
8163 * breakpoint.c (bpstat_stop_status): Add new argument
8164 STOPPED_BY_WATCHPOINT. Use it instead of testing
8165 target_stopped_data_address agaist 0 to check whether
8166 or not we stopped due to a hardware watchpoint.
8167 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8168 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8169 with new argument.
8170
8171 2004-05-12 Jim Blandy <jimb@redhat.com>
8172
8173 * configure.in: When checking whether we should use the -bbigtoc
8174 option, don't forget to restore the original value of LDFLAGS.
8175 * configure: Regenerated.
8176
8177 2004-05-12 Andrew Cagney <cagney@redhat.com>
8178
8179 * thread.c (load_infrun_state): Delete step_sp.
8180 * infrun.c (context_switch): Ditto.
8181 * inferior.h (step_sp): Ditto.
8182 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8183 * gdbthread.h (struct thread_info, save_infrun_state)
8184 (restore_infrun_state): Ditto.
8185
8186 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8187
8188 * MAINTAINERS (write after approval): Add myself.
8189
8190 2004-05-12 Andrew Cagney <cagney@redhat.com>
8191
8192 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8193 eliminate reference to step_sp.
8194 (struct execution_control_state, init_execution_control_state)
8195 (handle_inferior_event, keep_going): Delete update_step_sp and
8196 step_sp.
8197 * infcmd.c (step_sp): Note that variable is unused.
8198
8199 2004-05-11 Andrew Cagney <cagney@redhat.com>
8200
8201 * infrun.c (step_over_function): Delete function.
8202 (handle_step_into_function): Use insert_step_resume_breakpoint.
8203 (insert_step_resume_breakpoint): Fix assertion.
8204
8205 2004-05-11 Nick Roberts <nickrob@gnu.org>
8206
8207 * utils.c (defaulted_query): Just use the normal query input type
8208 when printing the annotations.
8209
8210 2004-05-11 Andrew Cagney <cagney@redhat.com>
8211
8212 * infrun.c (handle_inferior_event): Simplify code handling
8213 step-into or return-from a signal trampoline.
8214
8215 2004-05-11 Andrew Cagney <cagney@redhat.com>
8216
8217 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8218 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8219
8220 2004-05-10 Jim Blandy <jimb@redhat.com>
8221
8222 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8223 with a call to internal_error.
8224
8225 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8226 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8227 processor variant lacks those registers.
8228 (ppc_floating_point_unit_p): Change description to make it clear
8229 that this returns info about the ISA, not the ABI.
8230 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8231 return true or false by checking tdep->ppc_fp0_regnum and
8232 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8233 arch/mach switching done in rs6000_gdbarch_init; it's better to
8234 keep that logic there, and just check the results here.
8235 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8236 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8237 floating-point registers.
8238 (ppc_supply_fpregset, ppc_collect_fpregset)
8239 (rs6000_push_dummy_call, rs6000_extract_return_value)
8240 (rs6000_store_return_value): Assert that we have floating-point
8241 registers.
8242 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8243 (rs6000_frame_cache): Don't note the locations at which
8244 floating-point registers were saved if we have no fprs.
8245 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8246 registers.
8247 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8248 (store_regs_user_thread, store_regs_kernel_thread): Only call
8249 supply_fprs / fill_fprs if we actually have floating-point
8250 registers.
8251 (special_register_p): Check ppc_fpscr_regnum before matching
8252 against it.
8253 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8254 supply / collect fpscr if we don't have it.
8255 * ppc-bdm.c: #include "gdb_assert.h".
8256 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8257 have floating-point registers, since I can't test this code on
8258 FP-free systems to adapt it.
8259 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8260 fpscr and floating point register numbers if they don't exist.
8261 (fetch_register): Assert that we have floating-point registers
8262 before we reach the code that handles them.
8263 (store_register): Same. And use tdep instead of calling
8264 gdbarch_tdep again.
8265 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8266 don't have them.
8267 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8268 fprs and fpscr if we don't have them.
8269 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8270 don't have them.
8271 * ppcnbsd-nat.c: #include "gdb_assert.h".
8272 (getfpregs_supplies): Assert that we have floating-point registers.
8273 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8274 * ppcobsd-tdep.c: #include "gdb_assert.h".
8275 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8276 have floating-point registers.
8277 * rs6000-nat.c (regmap): Don't match against the fpscr and
8278 floating point register numbers if they don't exist.
8279 (fetch_inferior_registers, store_inferior_registers,
8280 fetch_core_registers): Only fetch / store / supply the
8281 floating-point registers and the fpscr if we have them.
8282 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8283 (ppcobsd-tdep.o): Update dependencies.
8284
8285 2004-05-10 Andrew Cagney <cagney@redhat.com>
8286
8287 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8288 (context_switch): Do not switch through_sigtramp_breakpoint.
8289 * gdbthread.h (save_infrun_state, load_infrun_state)
8290 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8291 and structure member.
8292 * thread.c (load_infrun_state, save_infrun_state): Update.
8293
8294 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8295
8296 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8297
8298 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8299
8300 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8301 throughout.
8302 * aclocal.m4: Regenerate.
8303
8304 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8305
8306 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8307
8308 2004-05-10 Andrew Cagney <cagney@redhat.com>
8309
8310 * infrun.c (check_sigtramp2): Delete function.
8311 (handle_inferior_event): When single stepping, and taking a
8312 signal, set a breakpoint at the signal return address. Delete
8313 redundant calls to check_sigtramp2.
8314 (insert_step_resume_breakpoint): New function.
8315 (through_sigtramp_breakpoint, handle_inferior_event)
8316 (follow_exec, wait_for_inferior, fetch_inferior_event)
8317 (currently_stepping, keep_going): Delete most uses of
8318 through_sigtramp_breakpoint, not that it should be deleted.
8319 (delete_breakpoint_current_contents): Delete function.
8320
8321 2004-05-10 Randolph Chung <tausq@debian.org>
8322
8323 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8324 target.
8325 * config/pa/tm-linux.h: New file.
8326
8327 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8328
8329 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8330 of prefixes. Don't print the prefix twice in the CLI.
8331
8332 2004-05-10 Jim Blandy <jimb@redhat.com>
8333
8334 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8335 collect all the gprs.
8336
8337 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8338 loop collecting gprs.
8339
8340 2004-05-09 Andrew Cagney <cagney@redhat.com>
8341
8342 * remote-vx.c (net_step): Delete step-range code.
8343 * remote.c (remote_resume, init_all_packet_configs)
8344 (set_remote_protocol_E_packet_cmd)
8345 (show_remote_protocol_E_packet_cmd)
8346 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8347 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8348 (show_remote_protocol_e_packet_cmd): Ditto.
8349
8350 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8351
8352 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8353
8354 * hppa-tdep.h: Update copyright year.
8355 (struct trad_frame_saved_reg): Add opaque declaration.
8356
8357 * amd64-tdep.c (amd64_return_value): Implement
8358 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8359
8360 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8361 (m68k_value_to_register): New functions.
8362 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8363 value_to_register.
8364
8365 * defs.h (enum return_value_convention): Add
8366 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8367 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8368 * infcmd.c (legacy_return_value): New function.
8369 (print_return_value): Rwerite to implement
8370 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8371 * values.c (using_struct_return): Check for inequality to
8372 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8373 RETURN_VALUE_STRUCT_CONVENTION.
8374 * i386-tdep.c (i386_return_value): Implement
8375 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8376
8377 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8378 include "symtab.h", "opcode/vax.h" and "inferior.h".
8379 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8380 to read_memory_unsigned_integer.
8381 (vax_gdbarch_init): Reorder.
8382 (_initialize_vax_tdep): Spell out prototype.
8383 * Makefile.in (vax-tdep.o): Update dependencies.
8384
8385 2004-05-08 Andrew Cagney <cagney@redhat.com>
8386
8387 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8388 * target.c (target_detach, target_disconnect): Ditto.
8389
8390 * infcall.c (call_function_by_hand): When no
8391 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8392 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8393 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8394 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8395 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8396
8397 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8398 * gdbarch.h, gdbarch.c: Re-generate.
8399 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8400 deprecated_fix_call_dummy.
8401 * v850-tdep.c (v850_gdbarch_init): Ditto.
8402 * infcall.c (call_function_by_hand): Do not call
8403 DEPRECATED_FIX_CALL_DUMMY.
8404
8405 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8406 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8407 * gdbarch.h, gdbarch.c: Re-generate.
8408 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8409 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8410 deprecated_sizeof_call_dummy_words.
8411 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8412 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8413 * v850-tdep.c (v850_gdbarch_init): Ditto.
8414 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8415 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8416 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8417 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8418 * arch-utils.h (legacy_call_dummy_words)
8419 (legacy_sizeof_call_dummy_words): Delete declarations.
8420 * arch-utils.c (legacy_call_dummy_words)
8421 (legacy_sizeof_call_dummy_words): Delete variables.
8422
8423 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8424 * gdbarch.h, gdbarch.c: Re-generate.
8425 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8426 * infcall.c (call_function_by_hand): Eliminate call to
8427 DEPRECATED_PUSH_DUMMY_FRAME.
8428 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8429 push_dummy_frame.
8430 (ns32k_push_dummy_frame): Delete function.
8431
8432 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8433 deprecated_call_dummy_breakpoint_offset or
8434 deprecated_call_dummy_start_offset.
8435 * dummy-frame.c, arm-tdep.c: Update comments.
8436 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8437 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8438 * gdbarch.h, gdbarch.c: Re-generate.
8439
8440 * infcall.c (legacy_push_dummy_code): Delete function.
8441 (push_dummy_code): Delete call.
8442
8443 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8444 * gdbarch.h, gdbarch.c: Re-generate.
8445 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8446 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8447 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8448 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8449
8450 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8451 (struct frame_info): Delete opaque declaration.
8452 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8453 * frame.c (get_frame_type): Delete call.
8454
8455 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8456 pc_in_call_dummy.
8457 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8458 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8459
8460 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8461
8462 * alphanbsd-tdep.c: Include "gdb_string.h".
8463 * armnbsd-tdep.c: Update copyright year.
8464 Include "gdb_string.h".
8465 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8466 dependencies.
8467
8468 * delta68-nat.c: Remove file.
8469 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8470 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8471 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8472 (delta68-nat.o): Remove dependency.
8473
8474 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8475 function.
8476 (m68k_gdbarch_init): Don't set
8477 deprecated_frameless_function_invocation.
8478
8479 2004-05-07 Randolph Chung <tausq@debian.org>
8480
8481 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8482 read_memory_nobpt for code reading when doing frame unwinding.
8483 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8484
8485 2004-05-07 Randolph Chung <tausq@debian.org>
8486
8487 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8488 instead of sp, handle sigaltstack case.
8489 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8490 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8491 signal handler and not that of the caller.
8492 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8493 hppa_linux_sigtramp_find_sigcontext.
8494
8495 2004-05-07 Randolph Chung <tausq@debian.org>
8496
8497 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8498 hppa-linux-nat.c.
8499 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8500 * hppa-linux-nat.c (fetch_register, store_register): Define.
8501 (fetch_inferior_registers, store_inferior_registers): Define.
8502 (supply_gregset): Add comment and clean up some unneeded code.
8503 (fill_gregset): Add comment and fix so that it saves registers in
8504 the right place in the gregset.
8505 (fill_fpregset): Fix buffer overrun problem.
8506 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8507
8508 2004-05-07 Randolph Chung <tausq@debian.org>
8509
8510 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8511 do common handling of the pcoqt register.
8512 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8513 to use helper function.
8514 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8515 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8516 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8517 generic fallback unwinder when all else fails.
8518 (hppa_gdbarch_init): Add fallback sniffer.
8519 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8520 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8521 to use helper function.
8522
8523 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8524
8525 * config/djgpp/fnchange.lst: Add translation rules for
8526 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8527
8528 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8529
8530 * frame.c (get_prev_frame_1): Work around GCC bug.
8531 * frame.h: Add comment about GCC bug.
8532
8533 2004-05-07 Andrew Cagney <cagney@redhat.com>
8534
8535 * observer.c: Include "commands.h" and "gdbcmd.h".
8536 (observer_debug, _initialize_observer): Add the
8537 command "set/show debug observer".
8538 * observer.sh: When observer debugging, log notify calls.
8539 * Makefile.in (observer.o): Update dependencies.
8540
8541 2004-05-07 Jason Molenda (jmolenda@apple.com)
8542
8543 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8544
8545 2004-05-07 Jim Blandy <jimb@redhat.com>
8546
8547 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8548 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8549 to recognize gpr regnums, instead of assuming that
8550 tdep->ppc_fp0_regnum marks the end of the general-purpose
8551 registers.
8552
8553 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8554 the given architecture has floating-point registers.
8555
8556 2004-05-07 Andrew Cagney <cagney@redhat.com>
8557
8558 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8559 macro defined to 1.
8560 * gdbarch.h, gdbarch.c: Re-generate.
8561 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8562 deprecated_use_generic_dummy_frames.
8563
8564 2004-05-07 Brian Ford <ford@vss.fsi.com>
8565
8566 * NEWS: Mention Cygwin DWARF 2 support.
8567
8568 2004-05-07 Andrew Cagney <cagney@redhat.com>
8569
8570 * objfiles.h (struct entry_info): Delete unused fields
8571 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8572 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8573 * mipsread.c (mipscoff_symfile_read): Update.
8574 * mdebugread.c (parse_partial_symbols): Update.
8575 * dwarfread.c (read_file_scope): Update.
8576 * dwarf2read.c (read_file_scope): Update.
8577 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8578 * coffread.c (complete_symtab): Update.
8579
8580 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8581
8582 * infcall.c (_initialize_infcall): Fix typo.
8583
8584 2004-05-07 Andrew Cagney <cagney@redhat.com>
8585
8586 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8587 * command.h (add_setshow_zinteger_cmd): Declare.
8588
8589 2004-05-06 Randolph Chung <tausq@debian.org>
8590
8591 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8592 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8593 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8594 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8595 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8596 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8597 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8598 definitions ...
8599 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8600 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8601 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8602 (hppa64_hpux_frame_find_saved_regs_in_sig)
8603 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8604 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8605 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8606 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8607 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8608 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8609 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8610 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8611 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8612 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8613 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8614 (hppa32_register_type, hppa_cannot_store_register)
8615 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8616 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8617 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8618 * pa64solib.c (pa64_solib_have_load_event)
8619 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8620 (pa64_solib_unloaded_library_pathname): Likewise.
8621 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8622 (som_solib_library_pathname): Likewise.
8623
8624 2004-05-05 Jim Ingham <jingham@apple.com>
8625
8626 * breakpoint.c (create_breakpoints): Copy the ignore count and
8627 thread id over from the pended breakpoint to the actual
8628 breakpoint.
8629
8630 2004-05-05 Andrew Cagney <cagney@redhat.com>
8631
8632 * gdbarch.sh (PARM_BOUNDARY): Delete.
8633 gdbarch.h, gdbarch.c: Re-generate.
8634 * valops.c (PARM_BOUNDARY): Delete macro.
8635 (value_push): Delete PARM_BOUNDARY code.
8636 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8637
8638 2004-05-04 Jim Blandy <jimb@redhat.com>
8639
8640 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8641 Don't assume that the gprs, fprs, and UISA sprs are
8642 contiguous, start at register number zero, and end with fpscr.
8643 Instead, use the numbers from the tdep structure.
8644
8645 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8646 should no longer be used in code specific to the RS6000 and its
8647 derivatives.
8648 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8649 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8650 tdep->ppc_fp0_regnum.
8651 (ppc_supply_fpregset, ppc_collect_fpregset)
8652 (rs6000_push_dummy_call, rs6000_extract_return_value)
8653 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8654 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8655 FP0_REGNUM.
8656 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8657 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8658 Same.
8659 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8660 bdm_ppc_store_registers): Same.
8661 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8662 (store_register, fill_fpregset): Same.
8663 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8664 (ppc_linux_supply_fpregset): Same.
8665 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8666 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8667 Same.
8668 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8669 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8670 ppc64_sysv_abi_return_value): Same.
8671 * rs6000-nat.c (regmap, fetch_inferior_registers)
8672 (store_inferior_registers, fetch_core_registers): Same.
8673
8674 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8675
8676 * m68knbsd-nat.c: Remove file.
8677 * m68knbsd-tdep.c: Remove file.
8678 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8679 dependencies.
8680 * configure.host: Add m68k-*-netbsdelf*.
8681 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8682 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8683 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8684 (XM_FILE): Remove.
8685 * config/m68k/nbsdelf.mh: New file.
8686 * config/m68k/nbsd.mt: New file.
8687 * config/m68k/nbsdaout.mt: Remove file.
8688 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8689 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8690 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8691 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8692 (use_struct_convention): Remove prototype.
8693 (USE_STRUCT_CONVENTION): Remove define.
8694 * config/m68k/xm-nbsd.h: Remove file.
8695
8696 2004-05-04 Michael Snyder <msnyder@redhat.com>
8697
8698 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8699 reg_struct_return method (as gcc usually does for cross targets).
8700
8701 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8702
8703 Committed by Andrew Cagney.
8704 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8705 alignment padding when accessing ucontext struct members.
8706
8707 2004-05-04 Jim Blandy <jimb@redhat.com>
8708
8709 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8710 'ppc_gplast_regnum' member.
8711 (ppc_num_gprs): New enum constant.
8712 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8713 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8714 * rs6000-nat.c (regmap, fetch_inferior_registers,
8715 store_inferior_registers): Same.
8716 * rs6000-tdep.c (e500_pseudo_register_read)
8717 (e500_pseudo_register_write): Same.
8718 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8719
8720 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8721 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8722 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8723 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8724 FPLAST_REGNUM.
8725 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8726 Same.
8727 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8728 * rs6000-nat.c (regmap, fetch_inferior_registers)
8729 (store_inferior_registers): Same.
8730
8731 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8732 with FPLAST_REGNUM.
8733
8734 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8735
8736 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8737 failure detected by recent versions of GCC.
8738 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8739 to be consistent with the usage in dwarf2_create_include_psymtab.
8740
8741 2004-05-03 Michael Snyder <msnyder@redhat.com>
8742
8743 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8744 (heuristic_proc_start): Whitespace cleanup.
8745
8746 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8747
8748 * sun3-nat.c: Remove file.
8749 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8750 dependencies.
8751 (ALLDEPFILES): Remove sun3-nat.c.
8752 (sun3-nat.o): Remove dependencies.
8753
8754 * i386-interix-nat.c, i386-interix-tdep.c,
8755 config/i386/nm-interix.h, config/i386/interix.mh,
8756 config/i386/interix.mt: Remove files.
8757 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8758 dependencies.
8759
8760 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8761
8762 * m68k-tdep.h (struct gdbarch_tdep): Add member
8763 struct_value_regnum.
8764 (m68k_svr4_init_abi): New prototype.
8765 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8766 different calling conventions.
8767 (m68k_extract_return_value): Remove code dealing with single-field
8768 structs.
8769 (m68k_store_return_value): Remove code dealing with single-field
8770 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8771 (m68k_extract_struct_value_address): Remove function.
8772 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8773 (m68k_reg_struct_return_p, m68k_return_value)
8774 (m68k_svr4_return_value): New functions.
8775 (m68k_use_struct_convention): Remove function.
8776 (m68k_push_dummy_call): Use new struct_value_regnum member of
8777 `struct gdbarch_tdep' instead of hardcoded register number to
8778 store STRUCT_ADDR.
8779 (m68k_svr4_init_abi): New function.
8780 (m68k_gdbarch_init): Don't set extract_return_value,
8781 store_return_values, deprecated_extract_struct_value_address and
8782 use_struct_convention. Set return_value instead. Initialize new
8783 struct_value_regnum member of `struct gdbarch_tdep'.
8784 * m68klinux-tdep.c: Update copyright year.
8785 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8786 (m68k_linux_extract_struct_value_address): Remove function.
8787 (m68k_linux_init_abi): Don't set extract_return_value,
8788 store_return_values, deprecated_extract_struct_value_address and
8789 use_struct_convention. Call m68k_svr4_init_abi but override the
8790 new struct_value_regnum member of `struct gdbarch_tdep'.
8791 * Makefile.in (m68k-tdep.o): Update dependencies.
8792
8793 2004-05-03 J. Brobecker <brobecker@gnat.com>
8794
8795 * dwarf2read.c (line_header): Add new included_p field in
8796 field file_names.
8797 (partial_die_info): New field has_stmt_list. New field line_offset.
8798 (dwarf2_create_include_psymtab): New function.
8799 (dwarf2_build_include_psymtabs): New function.
8800 (add_file_name): Add forward declaration. Initialize new field.
8801 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8802 to be able to determine the list of files included by the
8803 given unit, and build their associated psymtabs.
8804 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8805 files as well.
8806 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8807 (read_file_scope): Update call to dwarf_decode_lines.
8808 (read_partial_die): Handle DW_AT_stmt_list attributes.
8809
8810 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8811
8812 Unfix PR gdb/1626.
8813 * configure.in: Revert special case for osf5.*.
8814 * configure: Regenerate.
8815
8816 2004-05-02 Jim Blandy <jimb@redhat.com>
8817
8818 Move the symbol-file-from-memory functions into their own file.
8819 * symfile-mem.c, symfile-mem.h: New files.
8820 * symfile.c (symbol_file_add_from_bfd): New function.
8821 (symbol_file_add): Call symbol_file_add_from_bfd.
8822 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8823 Moved to symfile-mem.c.
8824 (_initialize_symfile): Move definition of
8825 add-symbol-file-from-memory command to symfile-mem.c.
8826 * symfile.h (symbol_file_add_from_bfd): New declaration.
8827 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8828 * config/powerpc/linux.mt (TDEPFILES): Same.
8829 * Makefile.in (SFILES): Add symfile-mem.c.
8830 (symfile_mem_h): New variable.
8831 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8832 (symfile-mem.o): New rule.
8833
8834 2004-05-01 Andrew Cagney <cagney@redhat.com>
8835
8836 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8837 frame_find_by_id instead of frame_relative_level.
8838 (do_enable_breakpoint): Ditto.
8839 * thread.c: Update copyright.
8840 (info_threads_command): Ditto, simplify.
8841
8842 * frame.c (deprecated_generic_get_saved_register): Delete
8843 function, moved to "xstormy16-tdep.c".
8844 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8845 deprecated_generic_get_saved_register from "frame.c".
8846 (xstormy16_frame_saved_register): Call
8847 xstormy16_get_saved_register.
8848 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8849 static.
8850 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8851 * frame.h (deprecated_generic_get_saved_register): Delete.
8852
8853 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8854
8855 * dwarfread.c: Update documentation on the state of dwarf-1.
8856
8857 2004-05-01 Andrew Cagney <cagney@redhat.com>
8858
8859 * stack.c (select_frame_command): Delete call to
8860 frame_relative_level.
8861 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8862 Delete #if0 code.
8863 (frame_info): Do not print FRAMELESS.
8864 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8865 (catch_info): Delete #if0 code.
8866
8867 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8868 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8869 of frame_relative_level.
8870 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8871 to SENTINEL_FRAME.
8872 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8873 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8874 frame_relative_level.
8875
8876 * frame.h (deprecated_set_frame_type): Delete declaration.
8877 * frame.c (deprecated_set_frame_type): Delete function, update
8878 comments.
8879
8880 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8881 * gdbarch.h, gdbarch.c: Re-generate.
8882 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8883 (shnbsd_pc_in_sigtramp): Delete.
8884 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8885 pc_in_sigtramp.
8886 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8887 pc_in_sigtramp.
8888 * frame.h: Update comments.
8889 * ppc-linux-tdep.c: Update comments.
8890 * breakpoint.c (bpstat_what): Update comments.
8891
8892 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8893 m68klinux-tdep.o's dependencies, were previously added to
8894 m68klinux-nat.o.
8895
8896 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8897 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8898 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8899 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8900 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8901
8902 * Makefile.in (m68klinux-nat.o): Update dependencies.
8903 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8904 (m68k_linux_sigtramp_frame_cache)
8905 (m68k_linux_sigtramp_frame_this_id)
8906 (m68k_linux_sigtramp_frame_prev_register)
8907 (m68k_linux_sigtramp_frame_unwind)
8908 (m68k_linux_sigtramp_frame_sniffer)
8909 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8910 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8911 names, use trad-frame.h.
8912 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8913 (struct m68k_sigtramp_info): Delete.
8914 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8915 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8916 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8917 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8918 "m68klinux-tdep.c".
8919
8920 * infrun.c (check_sigtramp2): Delete check for
8921 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8922
8923 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8924
8925 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8926
8927 2004-05-01 Andrew Cagney <cagney@redhat.com>
8928
8929 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8930 (frv_linux_sigtramp_frame_cache)
8931 (frv_linux_sigtramp_frame_this_id)
8932 (frv_linux_sigtramp_frame_prev_register)
8933 (frv_linux_sigtramp_frame_unwind)
8934 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8935 include "linux" in function and variable names, directly call
8936 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8937 the latest trad-frame code.
8938 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8939 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8940 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8941 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8942 * frv-tdep.c (frv_sigtramp_frame_cache)
8943 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8944 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8945 frv-linux-tdep.c.
8946 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8947 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8948 (frv_set_sigcontext_reg_addr): Delete function.
8949
8950 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8951 (DEPRECATED_SIGTRAMP_END): Delete.
8952 * gdbarch.h, gdbarch.c: Re-generate.
8953 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8954 * config/vax/tm-vaxbsd.h: Update copyright.
8955 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8956 (DEPRECATED_IN_SIGTRAMP): Define.
8957 * config/m68k/tm-nbsd.h: Update copyright.
8958 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8959 (DEPRECATED_IN_SIGTRAMP): Define.
8960
8961 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8962
8963 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8964 encondings. Fixes PR gdb/1628.
8965
8966 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8967 DW_CFA_restore state without a matching DW_CFA_remember_state
8968 instead of aborting. Fixes PR backtrace/1589.
8969
8970 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8971
8972 * MAINTAINERS: Add self as AIX maintainer.
8973 Update my e-mail address in write-after-approval section.
8974
8975 2004-04-30 Andrew Cagney <cagney@redhat.com>
8976
8977 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8978 (legacy_get_prev_frame): Ditto.
8979
8980 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8981 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8982 * mipsread.c (sigtramp_address): Delete extern variable.
8983 (mipscoff_new_init): Delete reference.
8984 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8985 (fixup_sigtramp): Delete function.
8986 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8987 (fixup_sigtramp): Delete declarations.
8988
8989 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8990 deprecated_pc_in_sigtramp.
8991 (ppcnbsd_pc_in_sigtramp): Delete function.
8992
8993 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8994
8995 * config/m68k/nm-nbsd.h: Tweak comments.
8996 * config/m68k/nm-nbsdaout.h: Likewise.
8997
8998 2004-04-30 Andrew Cagney <cagney@redhat.com>
8999
9000 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
9001 legacy_pc_in_sigtramp.
9002 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
9003
9004 2004-05-01 Mark Kettenis <kettenis@gnu.org>
9005
9006 Add OpenBSD/m68k support.
9007 * NEWS (New native configurations): Mention OpenBSD/m68k.
9008 * m68kbsd-tdep.c: New file.
9009 * m68kbsd-nat.c: New file.
9010 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
9011 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
9012 * configure.host: Add m68k-*-openbsd.
9013 * configure.tgt: Add m68k-*-openbsd.
9014 * config/m68k/tm-obsd.h: New file.
9015 * config/m68k/obsd.mt: New file.
9016 * config/m68k/obsd.mh: New file.
9017 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
9018 m68kbsd-tdep.c.
9019
9020 2004-04-30 Andrew Cagney <cagney@redhat.com>
9021
9022 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
9023 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
9024
9025 2004-04-30 Mark Kettenis <kettenis@gnu.org>
9026
9027 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
9028 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
9029
9030 2004-04-30 Brian Ford <ford@vss.fsi.com>
9031
9032 Revert 2004-04-16 change.
9033 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
9034 (i386_coff_init_abi): Remove.
9035 * i386-tdep.h (i386_coff_init_abi): Remove.
9036 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
9037
9038 2004-04-30 Andrew Cagney <cagney@redhat.com>
9039
9040 * blockframe.c (find_pc_partial_function): Delete use of
9041 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
9042 DEPRECATED_SIGTRAMP_END.
9043
9044 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
9045 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
9046 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
9047 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
9048 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
9049
9050 * defs.h (deprecated_inside_entry_file): Delete declaration.
9051 * blockframe.c (deprecated_inside_entry_file): Delete function.
9052 (legacy_frame_chain_valid): Delete call.
9053 * sh64-tdep.c (sh64_frame_chain): Delete call.
9054 * objfiles.h: Update comments.
9055 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
9056 call.
9057 * frame.c (get_prev_frame): Delete call, update comments.
9058
9059 2004-04-30 Brian Ford <ford@vss.fsi.com>
9060
9061 * MAINTAINERS (Write After Approval): Add myself.
9062
9063 2004-04-30 Andrew Cagney <cagney@redhat.com>
9064
9065 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
9066 * gdbarch.h, gdbarch.c: Re-generate.
9067 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
9068 code.
9069
9070 2004-04-30 Andrew Cagney <cagney@redhat.com>
9071
9072 * gdb-events.sh (selected_thread_changed)
9073 (selected_frame_level_changed, target_changed): Delete.
9074 * gdb-events.h, gdb-events.c: Re-generate.
9075 * valops.c (value_assign): Update.
9076 * stack.c (select_frame_command, up_silently_base)
9077 (down_silently_base): Update.
9078
9079 2004-04-29 Andrew Cagney <cagney@redhat.com>
9080
9081 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
9082 registers correctly.
9083 (print_gp_register_row, mips32_heuristic_proc_desc)
9084 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
9085 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
9086 references to mips_isa_regsize.
9087
9088 2004-04-29 Andrew Cagney <cagney@redhat.com>
9089
9090 * mips-tdep.c (struct gdbarch_tdep): Delete
9091 mips_fp_register_double.
9092 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9093 mips_abi_regsize.
9094 (mips_gdbarch_init): Do not set mips_fp_register_double.
9095 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9096
9097 2004-04-29 Joel Brobecker <brobecker@gnat.com>
9098
9099 Committed by Andrew Cagney.
9100 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9101 function calls.
9102
9103 2004-04-29 Andrew Cagney <cagney@redhat.com>
9104
9105 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9106 gdbarch, use mips_abi, update callers.
9107 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9108 mips_abi_regsize, update callers.
9109 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9110 mips_default_abi_regsize.
9111 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9112 mips_default_abi_regsize.
9113
9114 2004-04-29 Andrew Cagney <cagney@redhat.com>
9115
9116 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9117 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9118 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9119 mips_default_abi_regsize.
9120 (mips_isa_regsize): Rename mips_regisze.
9121 * mipsnbsd-tdep.c: Update.
9122 * mips-linux-tdep.c: Update.
9123 * irix5-nat.c: Update.
9124 * mips-tdep.h (mips_isa_regsize): Update.
9125
9126 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9127 Delete all disabled code.
9128 * gdb-events.h, gdb-events.c: Re-generate.
9129
9130 2004-04-19 Jerome Guitton <guitton@gnat.com>
9131 Mark Kettenis <kettenis@gnu.org>
9132
9133 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9134 the function begins with a branch instruction.
9135
9136 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9137
9138 * i386-tdep.c: Fix spelling mistakes.
9139
9140 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9141 Andrew Cagney <cagney@redhat.com>
9142
9143 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9144 <sys/proc.h>.
9145 * acconfig.h: Provide default _KMEMUSER value.
9146 * config.in, configure: Re-generate.
9147 * NEWS: Mention fix.
9148
9149 2004-04-24 Randolph Chung <tausq@debian.org>
9150
9151 * configure.host (hppa*-*-linux*): New target.
9152 * configure.tgt (hppa*-*-linux*): Likewise.
9153 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9154 gdbarch_init_osabi() call earlier so that osabi-specific frame
9155 unwinders can be registered first.
9156 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9157 hppa-linux-nat.c.
9158 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9159 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9160 * config/pa/linux.mh: New file.
9161 * config/pa/linux.mt: New file.
9162 * config/pa/nm-linux.h: New file.
9163 * config/pa/xm-linux.h: New file.
9164 * hppa-linux-nat.c: New file.
9165 * hppa-linux-tdep.c: New file.
9166
9167 2004-04-28 Randolph Chung <tausq@debian.org>
9168
9169 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9170 return values.
9171 (hppa32_push_dummy_call): Fix small struct and floating point argument
9172 passing, and make sure the stack frame is properly aligned.
9173
9174 2004-04-28 Andrew Cagney <cagney@redhat.com>
9175
9176 * stack.c (print_stack_frame): Fix description.
9177
9178 * NEWS: Mention gdb/gdbserver/configure execute permission
9179 changed. PR server/519.
9180
9181 2004-04-28 Andrew Cagney <cagney@redhat.com>
9182
9183 * stack.c (print_stack_frame_stub): Delete declaration.
9184 (struct print_stack_frame_args, print_stack_frame)
9185 (print_frame_info, print_frame): Replace "source" with print what.
9186 Replace "print" with "print_level". Replace "args" with
9187 "print_args".
9188 * frame.h (show_and_print_stack_frame, print_stack_frame)
9189 (print_frame_info): Update declarations.
9190 * stack.c (select_and_print_frame, frame_command)
9191 (current_frame_command, up_command, down_command): Update calls -
9192 use get_selected_frame, pass "enum print_what" for source, do not
9193 call frame_relative_level.
9194 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9195 * remote-rdp.c (remote_rdp_open): Ditto.
9196 * remote-mips.c (common_open): Ditto.
9197 * remote-e7000.c (e7000_start_remote): Ditto.
9198 * ocd.c (ocd_start_remote): Ditto.
9199 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9200 * infrun.c (normal_stop): Ditto.
9201 * inflow.c (kill_command): Ditto.
9202 * infcmd.c (finish_command): Ditto.
9203 * corelow.c (core_open): Ditto.
9204 * tracepoint.c (finish_tfind_command): Ditto.
9205 * thread.c (info_threads_command, info_threads_command)
9206 (restore_current_thread, do_captured_thread_select): Ditto.
9207 * ada-tasks.c (task_command): Ditto.
9208
9209 2004-04-26 Orjan Friberg <orjanf@axis.com>
9210
9211 * frame.c: Include "observer.h".
9212 (frame_observer_target_changed): New function.
9213 (_initialize_frame): Attach target_changed observer.
9214 * regcache.c: Include "observer.h".
9215 (regcache_observer_target_changed): New function.
9216 (_initialize_regcache): Attach target_changed observer.
9217 * valops.c: Include "observer.h".
9218 (value_assign): Notify target_changed event when modifying register.
9219 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9220
9221 2004-04-26 Orjan Friberg <orjanf@axis.com>
9222
9223 From Paul Koning <pkoning@equallogic.com>:
9224 * breakpoint.c (free_valchain): New function.
9225 (insert_bp_location, delete_breakpoint): Use free_valchain.
9226 (remove_breakpoint): Do not remove the valchain.
9227 (bpstat_stop_status): If not stopped by watchpoint, skip
9228 watchpoints when generating stop status list.
9229 * infrun.c (handle_inferior_event): Make
9230 stepped_after_stopped_by_watchpoint a global variable.
9231 * remote.c (remote_stopped_data_address): Return watch data
9232 address rather than zero if stepped_after_stopped_by_watchpoint is
9233 set.
9234
9235 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9236
9237 Fix PR gdb/1626.
9238 * configure.in: Check for curses after termcap.
9239 On osf5.*, do not check for ncurses.
9240 * configure: Regenerate.
9241
9242 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9243
9244 * ppcobsd-nat.c: Include "ppc-tdep.h".
9245 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9246
9247 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9248 Fixes PR tdep/1623 and PR tdep/1624.
9249
9250 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9251
9252 * xmodem.h, xmodem.c: Remove files.
9253 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9254
9255 2004-04-23 Randolph Chung <tausq@debian.org>
9256
9257 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9258 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9259 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9260 for handling stackless frames.
9261 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9262
9263 2004-04-23 Randolph Chung <tausq@debian.org>
9264
9265 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9266 starts at a pc before the frame is created.
9267
9268 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9269
9270 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9271
9272 2004-04-23 Jerome Guitton <guitton@gnat.com>
9273
9274 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9275 use convert_typed_floating to get the appropriate format.
9276
9277 2004-04-22 Randolph Chung <tausq@debian.org>
9278
9279 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9280 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9281 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9282 (hppa_sign_extend): Add prototype.
9283 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9284 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9285 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9286 hppa targets will also use these functions.
9287 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9288 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9289 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9290 (hppa_gdbarch_init): Remove gdbarch setting of
9291 skip_trampoline_code, in_solib_call_trampoline and
9292 in_solib_return_trampoline.
9293 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9294 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9295 hppa_in_solib_call_trampoline.
9296 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9297 Moved from hppa-tdep.c.
9298 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9299 in_solib_call_trampoline and in_solib_return_trampoline.
9300
9301 2004-04-22 Randolph Chung <tausq@debian.org>
9302
9303 * hppa-tdep.c (hppa_debug): New variable.
9304 (find_unwind_entry, hppa_frame_cache): Add debug output.
9305 (_initialize_hppa_tdep): Add command to set debug flag.
9306
9307 2004-04-22 Andrew Cagney <cagney@redhat.com>
9308
9309 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9310 "trad-frame.h".
9311 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9312 signal trampoline unwinder.
9313 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9314
9315 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9316
9317 Add OpenBSD/powerpc support.
9318 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9319 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9320 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9321 (ppc_collect_fpregset): New prototypes.
9322 * ppcobsd-nat.c: New file.
9323 * ppcobsd-tdep.c: New file.
9324 * ppcobsd-tdep.h: New file.
9325 * rs6000-tdep.c: Include "regset.h".
9326 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9327 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9328 New functions.
9329 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9330 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9331 (rs6000-tdep.o): Update dependencies.
9332 * configure.host: Add powerpc-*-openbsd.
9333 * configure.tgt: Add powerpc-*-openbsd.
9334 * config/powerpc/obsd.mh: New file.
9335 * config/powerpc/nm-obsd.h: New file.
9336 * config/powerpc/obsd.mt: New file.
9337
9338 2004-04-22 Andrew Cagney <cagney@redhat.com>
9339
9340 * frame.h (show_frame_info): Delete declaration.
9341
9342 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9343 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9344 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9345 * frv-tdep.c (frv_frame_this_id): Ditto.
9346 * avr-tdep.c (avr_frame_this_id): Ditto.
9347
9348 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9349
9350 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9351
9352 2004-04-22 Jim Blandy <jimb@redhat.com>
9353
9354 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9355 register number zero.
9356
9357 2004-04-21 Michael Snyder <msnyder@redhat.com>
9358
9359 * mips-tdep.c (heuristic_proc_start):
9360 Warning() already prefixes "Warning: ".
9361
9362 2004-04-21 Andrew Cagney <cagney@redhat.com>
9363
9364 * annotate.h (deprecated_annotate_starting_hook)
9365 (deprecated_annotate_stopped_hook)
9366 (deprecated_annotate_exited_hook)
9367 (deprecated_annotate_signal_hook)
9368 (deprecated_annotate_signalled_hook): Deprecate.
9369 * tracepoint.h (deprecated_create_tracepoint_hook)
9370 (deprecated_delete_tracepoint_hook)
9371 (deprecated_modify_tracepoint_hook)
9372 (deprecated_trace_find_hook)
9373 (deprecated_trace_start_stop_hook): Deprecate.
9374 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9375 * remote.h (deprecated_target_resume_hook)
9376 (deprecated_target_wait_loop_hook): Deprecate.
9377 * gdbcore.h (deprecated_exec_file_display_hook)
9378 (deprecated_file_changed_hook): Deprecate.
9379 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9380 * defs.h (deprecated_modify_breakpoint_hook)
9381 (deprecated_command_loop_hook, deprecated_show_load_progress)
9382 (deprecated_print_frame_info_listing_hook)
9383 (deprecated_query_hook, deprecated_warning_hook)
9384 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9385 (deprecated_delete_breakpoint_hook)
9386 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9387 (deprecated_readline_begin_hook, deprecated_readline_hook)
9388 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9389 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9390 (deprecated_context_hook, deprecated_target_wait_hook)
9391 (deprecated_attach_hook, deprecated_detach_hook)
9392 (deprecated_call_command_hook, deprecated_set_hook)
9393 (deprecated_error_hook, deprecated_error_begin_hook)
9394 (deprecated_ui_load_progress_hook): Deprecate.
9395 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9396 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9397 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9398 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9399 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9400 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9401 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9402 * annotate.c, aix-thread.c: Update.
9403
9404 2004-04-21 Andrew Cagney <cagney@redhat.com>
9405
9406 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9407 * vaxnbsd-tdep.c: Include "gdb_string.h".
9408
9409 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9410 (add_symbol_file_from_memory_command): #if 0 function body, call
9411 error instead.
9412
9413 2004-04-21 Andrew Cagney <cagney@redhat.com>
9414
9415 * gdbcore.h: Update copyright.
9416 (deprecated_add_core_fns): Rename add_core_fns.
9417 * win32-nat.c (_initialize_core_win32): Update.
9418 * sun3-nat.c (_initialize_core_sun3): Update.
9419 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9420 * rs6000-nat.c (_initialize_core_rs6000): Update.
9421 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9422 * nto-tdep.c (_initialize_nto_tdep): Update.
9423 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9424 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9425 * mips-nat.c (_initialize_core_mips): Update.
9426 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9427 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9428 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9429 * lynx-nat.c (_initialize_core_lynx): Update.
9430 * irix5-nat.c (_initialize_core_irix5): Update.
9431 * i386-interix-nat.c (_initialize_core_interix): Update.
9432 * cris-tdep.c (_initialize_cris_tdep): Update.
9433 * corelow.c (deprecated_add_core_fns): Update.
9434 * core-regset.c (_initialize_core_regset): Update.
9435 * core-aout.c (_initialize_core_aout): Update.
9436 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9437 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9438 * alpha-nat.c (_initialize_core_alpha): Update.
9439
9440 2004-04-21 Jim Blandy <jimb@redhat.com>
9441
9442 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9443
9444 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9445
9446 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9447 Delete.
9448 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9449 (read_attribute_value): Update calls to dwarf_alloc_block.
9450 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9451 dwarf2_tmp_obstack.
9452 (psymtab_to_symtab_1): Likewise. Clean up using
9453 free_stack_comp_unit.
9454 (add_to_cu_func_list): Use the comp_unit_obstack.
9455
9456 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9457
9458 * dwarf2read.c (dwarf2_flag_true_p): New function.
9459 (die_is_declaration): Use the function above. Add some comments.
9460
9461 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9462
9463 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9464 architecture when registering sparcnbsd_core_osabi_sniffer.
9465 Adjust comment.
9466
9467 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9468
9469 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9470 return value.
9471
9472 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9473 * i386-tdep.c: Correct register numbering scheme comments
9474 throughout.
9475 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9476 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9477 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9478 (i386_gdb_arch_init): Likewise.
9479
9480 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9481 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9482 ppcnbsd-tdep.o.
9483
9484 * m68k-tdep.h: Tweak comments.
9485 * m68k-tdep.c: Tweak comment.
9486
9487 2004-04-17 Randolph Chung <tausq@debian.org>
9488
9489 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9490 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9491 (hppa_hpux_som_init_abi): Set is_elf to 0.
9492 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9493 * hppa-tdep.c (low_text_segment_address): Remove global.
9494 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9495 section offset to calculate segment address.
9496 (internalize_unwinds): Define low_text_segment_address as local and
9497 pass to record_text_segment_lowaddr for ELF targets.
9498 (hppa_gdbarch_init): Zero fill tdep structure.
9499 (hppa_dump_tdep): Print tdep structure.
9500 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9501
9502 2004-04-17 Randolph Chung <tausq@debian.org>
9503
9504 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9505 (hppa_gdbarch_init): Set pseudo_register_read.
9506 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9507 * regcache.c (supply_register): Remove check for
9508 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9509
9510 2004-04-17 Randolph Chung <tausq@debian.org>
9511
9512 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9513 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9514 (hpread_adjust_stack_address): Move to hpread.c.
9515 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9516 obj_private_struct): Move from tm-hppa.h.
9517 * hpread.c (hppa-tdep.h): Include.
9518 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9519 (hpread_read_function_type, hpread_read_doc_function_type)
9520 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9521 directly.
9522 * pa64solib.c (hppa-tdep.h): Include.
9523 * somsolib.c (hppa-tdep.h): Include.
9524 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9525 inferior_status): Remove unused forward declarations.
9526 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9527 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9528 obj_private_struct): Move to hppa-tdep.h.
9529 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9530
9531 2004-04-17 Randolph Chung <tausq@debian.org>
9532
9533 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9534 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9535 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9536 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9537 Remove forward declaration and make static.
9538 (hppa_reg_struct_has_addr): Remove.
9539
9540 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9541
9542 * observer.sh: Move comments in sed command to first column.
9543
9544 2004-04-16 Jason Molenda (jmolenda@apple.com)
9545
9546 * frame.c: Minor typeo corrections in comments.
9547
9548 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9549
9550 * observer.c (observer_test_first_notification_function): Update
9551 function profile.
9552 (observer_test_second_notification_function): Likewise.
9553 (observer_test_third_notification_function): Likewise.
9554
9555 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9556
9557 From Brian Ford <ford@vss.fsi.com>:
9558 * i386-tdep.c (i386_coff_init_abi): New function.
9559 * i386-tdep.h (i386_coff_init_abi): New prototype.
9560 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9561 register number translation functions for DWARF and DWARF 2.
9562
9563 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9564
9565 * dwarf2read.c: Back out my previous change, it was incorrect.
9566
9567 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9568
9569 * dwarf2read.c: Include "hashtab.h".
9570 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9571 has_namespace_info.
9572 (struct partial_die_info): Add comments. Use bitfields to reduce
9573 memory footprint. Add scope, scope_set, has_specification,
9574 spec_offset, die_parent, die_child, and die_sibling.
9575 (peek_die_abbrev): Add prototype.
9576 (partial_read_comp_unit_head): New function, broken out from
9577 dwarf2_build_psymtabs_hard.
9578 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9579 Use partial_read_comp_unit_head. Initialize the CU and
9580 comp_unit_obstack. Update calls to read_partial_die and
9581 scan_partial_symbols. Use free_stack_comp_unit and
9582 load_partial_dies.
9583 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9584 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9585 Update calls to helper functions. Remove NAMESPACE argument.
9586 Update comments.
9587 (partial_die_parent_scope, partial_die_full_name): New functions.
9588 (add_partial_symbol): Remove namespace argument. Update call to
9589 pdi_needs_namespace. Use partial_die_full_name. Handle
9590 DW_TAG_namespace. Check has_namespace_info flag.
9591 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9592 tag. Handle namespaces.
9593 (add_partial_namespace, add_partial_enumeration): Simplify.
9594 (guess_structure_name): New function, derived from
9595 add_partial_structure.
9596 (add_partial_structure): Remove.
9597 (determine_class_name): Update comment.
9598 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9599 (is_type_tag_for_partial, load_partial_dies): New functions.
9600 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9601 Record specifications instead of following them immediately.
9602 (find_partial_die_in_comp_unit, find_partial_die)
9603 (fixup_partial_die, free_stack_comp_unit)
9604 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9605 (partial_die_hash, partial_die_eq): New functions.
9606 * Makefile.in (hashtab_h): Define.
9607 (dwarf2read.o): Update dependencies.
9608 (observer_inc, observer_h): Move to the correct section.
9609
9610 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9611
9612 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9613 (die_is_declaration): Use the function above. Add comment.
9614
9615 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9616
9617 * dwarf2read.c (read_structure_scope): Identify stub types
9618 using die_is_declaration() only.
9619
9620 2004-04-15 Roland McGrath <roland@redhat.com>
9621
9622 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9623 argument instead of NAME.
9624 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9625 in call to symbol_file_add_with_addrs_or_offsets.
9626 (build_addr_info): New function, helper for ...
9627 (symbol_file_add_from_memory): New function.
9628 (add_symbol_file_from_memory_command): New function using that.
9629 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9630 (pre_add_symbol_hook): Add const to argument type.
9631 * symfile.h (symbol_file_add_from_memory): Declare it.
9632
9633 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9634
9635 * NEWS (New native configurations): Mention OpenBSD/vax.
9636 * configure.host: Add vax-*-openbsd*.
9637 * config/vax/obsd.mh: New file.
9638 * config/vax/nm-obsd.h: New file.
9639
9640 * vax-tdep.c: Include "regset.h".
9641 (vax_supply_gregset): New function.
9642 (vax_gregset): New variable.
9643 (vax_regset_from_core_section): New function.
9644 (vax_gdbarch_init): Set regset_from_core_section.
9645 * Makefile.in (vax-tdep.o): Update dependencies.
9646
9647 2004-04-15 Andrew Cagney <cagney@redhat.com>
9648
9649 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9650 (observer_normal_stop_notification_stub)
9651 (observer_attach_normal_stop, observer_detach_normal_stop):
9652 Delete, replaced by #include "observer.inc".
9653 * infrun.c (normal_stop): Pass "stop_bpstat" to
9654 observer_notify_normal_stop.
9655 * Makefile.in (observer_inc): Define.
9656 (observer.o): Update dependencies.
9657 (observer.h, observer.inc): New rules.
9658 * observer.h: Delete file.
9659 * observer.sh: New file.
9660
9661 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9662
9663 * vax-tdep.c (vax_frame_cache): Fix typo.
9664
9665 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9666
9667 * NEWS (New native configurations): Mention NetBSD/vax.
9668 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9669 * config/vax/nbsdelf.mh: New file.
9670 * config/vax/nbsdaout.mh: New file.
9671 * config/vax/nm-nbsd.h: New file.
9672 * config/vax/nm-nbsdaout.h: New file.
9673
9674 * vaxnbsd-tdep.c: New file.
9675 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9676 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9677 * config/vax/nbsd.mt: New file.
9678 * config/vax/tm-nbsd.h: New file.
9679
9680 * Makefile.in (vaxbsd-nat.o): New dependency.
9681
9682 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9683 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9684 struct_addr arguments. Don't push return value address.
9685 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9686 arguments to vax_store_arguments. Store return value address in
9687 R1.
9688 (vax_store_struct_return, vax_extract_return_value)
9689 (vax_store_return_value): Remove functions.
9690 (vax_return_value): New function.
9691 (vax_gdbarch_init): Set return value. Don't set
9692 deprecated_store_struct_return, deprecated_extract_struct_return
9693 and deprecated_store_return_value.
9694
9695 2004-04-14 Andreas Schwab <schwab@suse.de>
9696
9697 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9698 value buffer.
9699 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9700
9701 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9702
9703 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9704 (vax_unwind_dummy_id): New functions.
9705 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9706 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9707 variables.
9708 (vax_fix_call_dummy): Remove function.
9709 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9710 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9711 call_dummy_location, deprecated_call_dummy_words,
9712 deprecated_sizeof_call_dummy_words,
9713 deprecated_call_dummy_breakpoint_offset,
9714 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9715 and deprecated_dummy_write_sp.
9716
9717 2004-04-13 David Carlton <carlton@kealia.com>
9718
9719 * MAINTAINERS: Move myself to "paper trail" section.
9720
9721 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9722
9723 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9724 "trad-frame.h".
9725 (vax_frame_init_saved_regs): Remove function.
9726 (vax_sigtramp_saved_pc): Remove function.
9727 (vax_frame_saved_pc): Remove function.
9728 (vax_frame_args_address): Remove function.
9729 (vax_frame_num_args): Rewrite.
9730 (vax_frame_chain): Remove function.
9731 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9732 VAX_FP_REGNUM.
9733 (vax_pop_frame): Likewise.
9734 (vax_saved_pc_after_call): Remove function.
9735 (struct vax_frame_cache): New structure.
9736 (vax_frame_cache): New function.
9737 (vax_frame_this_id): New function.
9738 (vax_frame_prev_register): New function.
9739 (vax_frame_unwind): New variable.
9740 (vax_frame_sniffer): New function.
9741 (vax_frame_base_address): New function.
9742 (vax_frame_args_address): New function.
9743 (vax_frame_base): New variable.
9744 (vax_unwind_pc): New function.
9745 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9746 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9747 deprecated_frame_chain, deprecated_frame_saved_pc,
9748 deprecated_frame_args_address and
9749 deprecated_frame_init_saved_regs.
9750 * Makefile.in (vax-tdep.o): Update dependencies.
9751
9752 * vaxbsd-nat.c: New file.
9753
9754 * vax-tdep.h: Update copyright year. Adjust comments.
9755 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9756 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9757 (vax_regnum): New enum. Replacing...
9758 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9759 (VAX_PS_REGNUM): ... these removed macros.
9760 * vax-tdep.c (vax_register_name): Remove prototype.
9761 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9762 (vax_register_byte, vax_register_raw_size,
9763 vax_register_virtual_size, vax_register_virtual_type): Remove
9764 functions.
9765 (vax_register_type): New function.
9766 (vax_breakpoint_from_pc): Reorganize.
9767 (vax_gdbarch_init): Set register_type. Don't set
9768 deprecated_register_size, deprecated_register_bytes,
9769 deprecated_register_byte, deprecated_register_raw_size,
9770 deprecated_max_register_raw_size,
9771 deprecated_register_virtual_size,
9772 deprecated_max_register_virtual_size and
9773 deprecated_register_virtual_type. Add comment on stack direction.
9774
9775 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9776
9777 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9778 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9779 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9780
9781 2004-04-10 Randolph Chung <tausq@debian.org>
9782
9783 * MAINTAINERS (write after approval): Add myself.
9784
9785 2004-04-07 Randolph Chung <tausq@debian.org>
9786
9787 * hppa-tdep.c (hppa_inner_than): Remove.
9788 (is_pa_2): Remove unused static variable.
9789 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9790
9791 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9792
9793 * language.h (language_defn): Add new la_post_parser field.
9794 * parser-defs.h (null_post_parser): New declaration (default for
9795 la_post_parser).
9796
9797 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9798 insert call to that function.
9799 (parse_exp_in_context): New function, including code formerly in
9800 parse_exp_1. Calls language-dependent post-parser after
9801 prefixification.
9802 (parse_expression_in_context): New exported function.
9803 (null_post_parser): New definition.
9804 * expression.h (parse_expression_in_context): Add declaration.
9805
9806 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9807 * c-lang.c (c_language_defn): Ditto.
9808 (cplus_language_defn): Ditto.
9809 (asm_language_defn): Ditto.
9810 (minimal_language_defn): Ditto.
9811 * f-lang.c (f_language_defn): Ditto.
9812 * jv-lang.c (java_language_defn): Ditto.
9813 * language.c (unknown_language_defn): Ditto.
9814 (auto_language_defn): Ditto.
9815 (local_language_defn): Ditto.
9816 * m2-lang.c (m2_language_defn): Ditto.
9817 * scm-lang.c (scm_language_defn): Ditto.
9818 * obj-lang.c (objc_language_defn): Ditto.
9819
9820 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9821
9822 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9823 (amd64nbsd_mcontext_addr): New function.
9824 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9825 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9826 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9827
9828 * corelow.c (core_xfer_partial): Fix coding standards violation.
9829 Add support for TARGET_OBJECT_WCOOKIE.
9830
9831 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9832 deprecated_pc_in_sigtramp.
9833 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9834 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9835 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9836 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9837 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9838 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9839 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9840
9841 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9842 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9843 Fix typo.
9844
9845 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9846 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9847 (amd64_collect_fxsave): Likewise.
9848
9849 * i386-sol2-tdep.c: Include "gdb_string.h".
9850 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9851 name.
9852 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9853
9854 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9855
9856 * i386-sol2-tdep.c: Include "solib-svr4.h".
9857 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9858 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9859 * config/i386/tm-i386sol2.h: Include :solib.h".
9860 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9861 solib-svr4.o and solib-legacy.o.
9862 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9863 solib-svr4.o.
9864
9865 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9866
9867 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9868 whether a register is supplied by PTRACE_GETFPREGS.
9869 (store_inferior_registers): Likewise.
9870 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9871 whether a register is supplied by PT_GETFPREGS.
9872 (store_inferior_registers): Likewise.
9873
9874 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9875 * config/i386/linux64.mt (TDEPFILES): Likewise.
9876
9877 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9878
9879 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9880 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9881 the program counter is in the range specified by `struct
9882 gdbarch_tdep'.
9883 * amd64-linux-tdep.c: Include "symtab.h".
9884 (amd64_linux_pc_in_sigtramp): Remove function.
9885 (amd64_linux_sigtramp_p): New function.
9886 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9887 deprecated_pc_in_sigtramp.
9888 * amd64nbsd-tdep.c: Include "symtab.h".
9889 (amd64nbsd_sigtramp_p): New function.
9890 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9891 deprecated_pc_in_sigtramp.
9892 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9893 few comments.
9894 (amd64obsd_pc_in_sigtramp): Remove function.
9895 (amd64obsd_sigtramp_p): New function.
9896 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9897 deprecated_pc_in_sigtramp.
9898 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9899 (i386bsd_pc_ins_sigtramp): Remove prototype.
9900 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9901 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9902 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9903 the program counter is in the range specified by `struct
9904 gdbarch_tdep'.
9905 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9906 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9907 (i386_go32_pc_in_sigtramp): Remove function.
9908 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9909 Initialize TDEP->sigtramp_p.
9910 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9911 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9912 deprecated_pc_in_sigtramp.
9913 * i386-linux-tdep.c: Adjust comments.
9914 (i386_linux_pc_in_sigtramp): Remove function.
9915 (i386_linux_sigtramp_p): New function.
9916 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9917 deprecated_pc_in_sigtramp.
9918 * i386-nto-tdep.c: Update copyright year.
9919 (i386nto_pc_in_sigtramp): Remove function.
9920 (i386nto_sigtramp_p): New function.
9921 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9922 SP_REGNUM.
9923 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9924 deprecated_pc_in_sigtramp.
9925 * i386-sol2-tdep.c: Update copyright year.
9926 (i386_sol2_pc_in_sigtramp): Remove function.
9927 (i386_sol2_sigtramp_p): New function.
9928 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9929 deprecated_pc_in_sigtramp.
9930 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9931 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9932 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9933 deprecated_sigtramp_start and deprecated_sigtramp_end.
9934 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9935 (i386nbsd_pc_in_sigtramp): Remove function.
9936 (i386nbsd_sigtramp_p): New function.
9937 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9938 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9939 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9940 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9941 (i386obsd_pc_in_sigtramp): Remove function.
9942 (i386obsd_sigtramp_p): New function.
9943 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9944 functions.
9945 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9946 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9947 TDEP->sigtramp_p.
9948 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9949 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9950 dependencies.
9951
9952 * config/i386/i386aout.mt: Remove file.
9953
9954 * configure.tgt: Remove i[34567]86-*-go32*,
9955 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9956 and i[34567]86-*-isc*. Set gdb_target to i386 for
9957 i[34567]86-*-netware* and i[34567]86-*-*.
9958 * config/i386/i386.mt: New file.
9959 * config/i386/embed.mt: Remove file.
9960 * config/i386/go32.mt: Remove file.
9961 * config/i386/i386nw.mt: Remove file.
9962 * config/i386/i386v.mt: Remove file.
9963 * config/i386/tm-go32.h: Remove file.
9964
9965 * tui/tui-hooks.c: Include "readline/readline.h" after
9966 "gdb_curses.h" instead of before.
9967 * tui/tui-io.c: Likewise.
9968
9969 * tui/tui.c: Fix typo in comment.
9970
9971 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9972
9973 2004-04-08 Andrew Cagney <cagney@redhat.com>
9974
9975 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9976 (deprecated_exception_support_initialized): Declare.
9977 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9978 (initialize_hp_cxx_exception_support)
9979 (child_enable_exception_callback): Update.
9980 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9981 (deprecated_exception_support_initialized): Rename
9982 deprecated_exception_catchpoints_are_fragile and
9983 deprecated_exception_support_initialized.
9984 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9985
9986 * symtab.c (deprecated_hp_som_som_object_present): Rename
9987 hp_som_som_object_present.
9988 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9989 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9990 Update. Delete extern declaration.
9991 * valops.c (hp_som_som_object_present): Ditto.
9992 * parse.c (deprecated_hp_som_som_object_present)
9993 (parse_nested_classes_for_hpacc): Ditto.
9994 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9995 * hppa-hpux-tdep.c (hp_som_som_object_present)
9996 (initialize_hp_cxx_exception_support): Ditto.
9997 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9998 * cp-valprint.c (hp_som_som_object_present)
9999 (cp_print_class_method): Ditto.
10000 * c-typeprint.c (hp_som_som_object_present):
10001 (c_type_print_base): Ditto.
10002 * c-exp.y (hp_som_som_object_present): Ditto.
10003
10004 2004-04-08 Andrew Cagney <cagney@redhat.com>
10005
10006 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
10007 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
10008 (frame_unwind_find_by_frame): Re-implement the unwind code so
10009 that it can both prepend and append sniffers. Replace
10010 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
10011 * tramp-frame.c (tramp_frame_append): Use
10012 frame_unwind_prepend_unwinder.
10013 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
10014 frame_unwind_register_unwinder.
10015 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
10016 tramp_frame_append.
10017 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
10018 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
10019 (mips_linux_init_abi): Update.
10020
10021 2004-04-08 Kevin Buettner <kevinb@redhat.com>
10022
10023 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
10024 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
10025 file support.
10026
10027 2004-04-07 Kevin Buettner <kevinb@redhat.com>
10028
10029 * ia64-tdep.c (elf.h): Don't include.
10030 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
10031
10032 2004-04-07 Jason Molenda (jmolenda@apple.com)
10033
10034 * frame.h: Typeo corrections in comments.
10035
10036 2004-04-07 Jim Blandy <jimb@redhat.com>
10037
10038 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
10039 %esp and %ebp
10040
10041 2004-04-07 Mark Kettenis <kettenis@gnu.org>
10042
10043 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
10044 * config/sparc/linux64.mt (TDEPFILES): Likewise.
10045 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10046 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
10047 and solib-legacy.o.
10048 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
10049 solib-svr4.o.
10050 * config/sparc/tm-sol2.h: Update copyright year. Include
10051 "solib.h".
10052
10053 * sparc-sol2-tdep.c: Update copyright year. Include
10054 "solib-svr4.h".
10055 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10056 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
10057 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10058 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
10059 dependencies.
10060
10061 2004-04-06 Andrew Cagney <cagney@redhat.com>
10062
10063 * infttrace.c: Include "infttrace.h".
10064 * infttrace.h: Include "target.h".
10065 * Makefile.in (infttrace_h): Update.
10066 (infttrace.o): Update.
10067
10068 2004-04-06 Andrew Cagney <cagney@redhat.com>
10069
10070 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
10071 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
10072 move extern declarations from here ...
10073 * infttrace.h: ... to here.
10074 * Makefile.in (hppah-nat.o): Update dependencies.
10075
10076 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
10077 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
10078 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
10079 (hppa_breakpoint_from_pc): Delete.
10080
10081 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
10082
10083 2004-04-05 Andrew Cagney <cagney@redhat.com>
10084
10085 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
10086 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
10087 <sys/file.h>.
10088
10089 2004-04-06 Randolph Chung <tausq@debian.org>
10090
10091 Committed by Andrew Cagney (mechanical change).
10092 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10093 exception_catchpoints_are_fragile, find_stub_with_shl_get,
10094 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10095 child_enable_exception_callback, current_ex_event,
10096 null_symtab_and_line, child_get_current_exception_event,
10097 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10098 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10099 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10100 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10101 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10102 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10103 Move hpux-specific definitions ...
10104 * hppa-hpux-tdep.c: ... to here.
10105
10106 2004-04-05 Andrew Cagney <cagney@redhat.com>
10107
10108 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10109 skip_prologue_using_sal.
10110
10111 2004-04-05 Andrew Cagney <cagney@redhat.com>
10112
10113 * config/i386/tm-i386.h: Delete file.
10114 * config/i386/tm-vxworks.h: Update copyright, do not include
10115 "tm-i386.h".
10116 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10117 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10118 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10119 * config/i386/ncr3000.mt (TM_FILE): Delete.
10120 * config/i386/interix.mt (TM_FILE): Delete.
10121 * config/i386/i386v.mt (TM_FILE): Delete.
10122 * config/i386/i386nw.mt (TM_FILE): Delete.
10123 * config/i386/i386gnu.mt (TM_FILE): Delete.
10124 * config/i386/i386aout.mt (TM_FILE): Delete.
10125 * config/i386/embed.mt (TM_FILE): Delete.
10126
10127 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10128
10129 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10130 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10131 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10132 (accg7_regnum): New constants.
10133 (last_spr_regnum, last_pseudo_regnum): Update.
10134 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10135 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10136 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10137 for accg registers.
10138 (frv_register_sim_regno): Update spr_map[].
10139
10140 2004-04-04 Andrew Cagney <cagney@redhat.com>
10141
10142 * config/mips/xm-riscos.h: Delete.
10143 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10144 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10145 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10146 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10147 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10148 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10149 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10150 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10151 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10152 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10153 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10154 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10155 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10156 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10157 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10158 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10159 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10160 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10161 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10162 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10163 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10164 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10165 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10166 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10167 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10168 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10169
10170 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10171 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10172 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10173 * configure.host: Remove m680[01]0-sun-sunos3*,
10174 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10175 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10176 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10177 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10178 mips-*-riscos*.
10179 * NEWS: Mention removed systems.
10180
10181 2004-04-04 Andrew Cagney <cagney@redhat.com>
10182
10183 GDB 6.1 release created from 6.1 branch.
10184
10185 2004-04-04 Andrew Cagney <cagney@redhat.com>
10186
10187 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10188 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10189 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10190
10191 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10192 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10193 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10194
10195 2004-04-03 Jim Blandy <jimb@redhat.com>
10196
10197 * MAINTAINERS: Chris Faylor has changed employers; add him to
10198 "paper trail" section, and update his E-mail address.
10199
10200 2004-04-03 Andrew Cagney <cagney@redhat.com>
10201
10202 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10203 generic dummy frames.
10204 * dummy-frame.c: Update copyright.
10205 (dummy_frame_sniffer): Delete check for generic dummy frames.
10206
10207 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10208 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10209 (REG_PARM_STACK_SPACE): Delete.
10210 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10211 Inline reference to REG_PARM_STACK_SPACE.
10212
10213 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10214 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10215 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10216 (FRAME_BASE_BEFORE_SIGTRAMP)
10217 (hppa32_hpux_frame_base_before_sigtramp)
10218 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10219 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10220 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10221 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10222 (FRAME_BASE_BEFORE_SIGTRAMP)
10223 (hppa64_hpux_frame_base_before_sigtramp)
10224 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10225
10226 2004-04-03 Andrew Cagney <cagney@redhat.com>
10227
10228 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10229
10230 2004-04-02 Andrew Cagney <cagney@redhat.com>
10231
10232 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10233 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10234 * dummy-frame.h: Delete out-of-date comments.
10235 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10236 * gdbarch.h, gdbarch.c: Re-generate.
10237
10238 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10239
10240 Committed by Andrew Cagney <cagney@redhat.com>.
10241 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10242 into account an instruction saving a register if we have already
10243 seen an earlier instruction saving that same register.
10244
10245 2004-04-02 Andrew Cagney <cagney@redhat.com>
10246
10247 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10248 * gdbarch.h, gdbarch.c: Re-generate.
10249 * frame.c (legacy_get_prev_frame): Delete references to
10250 DEPRECATED_INIT_FRAME_PC_FIRST.
10251
10252 * infrun.c (pc_in_sigtramp): Delete function.
10253 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10254 get_frame_type.
10255
10256 2004-04-02 Andrew Cagney <cagney@redhat.com>
10257
10258 * infrun.c (handle_step_into_function): Delete code conditional on
10259 legacy_frame_p.
10260 (handle_inferior_event, step_over_function): Ditto.
10261
10262 2004-04-02 Andrew Cagney <cagney@redhat.com>
10263
10264 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10265 "previous frame inner to this frame" test.
10266
10267 2004-04-02 Andrew Cagney <cagney@redhat.com>
10268
10269 * frame.c (safe_frame_unwind_memory): New function.
10270 * frame.h (safe_frame_unwind_memory): Declare. Update description
10271 of /safe_/ methods.
10272 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10273 "next_frame". Use safe_frame_unwind_memory.
10274 (tramp_frame_sniffer): Update call to tramp_frame_start.
10275
10276 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * dwarf2read.c (dwarf2_objfile_data_key): New.
10279 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10280 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10281 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10282 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10283 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10284 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10285 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10286 Remove variables.
10287 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10288 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10289 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10290 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10291 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10292 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10293 Remove macros.
10294 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10295 data.
10296 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10297 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10298 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10299 (read_partial_die, read_full_die, read_indirect_string)
10300 (dwarf_decode_line_header, dwarf_decode_macros)
10301 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10302 Update uses of removed variables.
10303 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10304 of removed macros.
10305 (_initialize_dwarf2_read): New function.
10306 * symfile.h (dwarf2_has_info): Update prototype.
10307 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10308 * elfread.c (elf_symfile_read): Likewise.
10309
10310 2004-04-01 Jim Blandy <jimb@redhat.com>
10311
10312 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10313 function for register numbers on all the rs6000-derived targets.
10314 (rs6000_gdbarch_init): Don't register a separate
10315 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10316 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10317 variants.
10318
10319 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10320 numbering.
10321
10322 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10323
10324 * valarith.c: Update copyright notice.
10325 (value_add): Handle range types.
10326 (value_sub): Ditto.
10327 (value_equal): Ditto.
10328 (value_less): Ditto.
10329 (value_neg): Ditto.
10330 (value_complement): Ditto.
10331 (value_binop): Simplify slightly by using is_integral_type and
10332 eliminiating unnecessary COERCE_ENUMs.
10333
10334 2004-03-31 Andrew Cagney <cagney@redhat.com>
10335
10336 * frame.h (frame_unwind_id): Declare.
10337 * frame.c (frame_unwind_id): New function.
10338 (get_prev_frame_1): New function.
10339 (frame_debug_got_null_frame): New function.
10340 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10341 code proper to prev_frame, update description.
10342 * infrun.c (step_over_function): Use frame_unwind_id.
10343
10344 2004-04-31 J. Brobecker <brobecker@gnat.com>
10345
10346 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10347 (hppa64_push_dummy_call): Likewise.
10348
10349 2004-03-30 Jim Blandy <jimb@redhat.com>
10350
10351 From Ulrich Weigand:
10352 * utils.c (query): Do not use a va_list variable multiple times.
10353
10354 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * Makefile.in (linux_nat_h): Update dependencies.
10357 * configure.in: Check for <gnu/libc-version.h>.
10358 * configure: Regenerate.
10359 * config.in: Regenerate.
10360 * linux-nat.h: Include "target.h". Add waitstatus field to
10361 struct lwp_info.
10362 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10363 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10364 to.
10365 (lin_lwp_handle_extended): New function. Handle clone events.
10366 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10367 thread exit events.
10368 (child_wait): Handle clone events.
10369 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10370 * linux-nat.c (linux_enable_event_reporting): Turn on
10371 PTRACE_O_TRACECLONE.
10372 (linux_handle_extended_wait): Handle clone events.
10373 * thread-db.c: Include <gnu/libc-version.h>.
10374 (struct private_thread_info): Add dying flag.
10375 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10376 higher.
10377 (attach_thread): Update comments. Handle dying threads.
10378 (detach_thread): Set the dying flag.
10379 (check_event): Always call attach_thread.
10380
10381 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10382
10383 * mips-tdep.c (mips_pdr_data): New.
10384 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10385 (_initialize_mips_tdep): Initialize mips_pdr_data.
10386
10387 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10388
10389 * minsyms.c (install_minimal_symbols): Move dropping leading
10390 char from linkage name from here...
10391 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10392 test for "__gnu_compiled*" symbols.
10393
10394 2004-03-28 Jim Blandy <jimb@redhat.com>
10395
10396 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10397 registers to temp register r0 and byte stores as prologue
10398 instructions.
10399
10400 2004-03-28 Andrew Cagney <cagney@redhat.com>
10401
10402 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10403 arm*-*-*.
10404
10405 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10406
10407 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10408 and switch the layout to force a display of register window.
10409
10410 2004-02-26 J. Brobecker <brobecker@gnat.com>
10411
10412 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10413 of the INTEGER class.
10414
10415 2004-03-26 Jim Blandy <jimb@redhat.com>
10416
10417 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10418 bytes long on PPC GNU/Linux.
10419
10420 2004-03-26 David Carlton <carlton@kealia.com>
10421
10422 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10423
10424 2004-03-25 Andrew Cagney <cagney@redhat.com>
10425
10426 * PROBLEMS: Add general section titles, remove references to
10427 specific releases.
10428
10429 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10430
10431 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10432 INT_REGISTER_SIZE.
10433 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10434 FP_REGISTER_VIRTUAL_SIZE.
10435 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10436 of DEPRECATED_REGISTER_RAW_SIZE.
10437 (arm_register_type): Add gdbarch argument.
10438 (arm_register_raw_size, arm_register_virtual_size): Delete.
10439 (arm_register_byte, arm_extract_return_value)
10440 (arm_store_return_value, arm_get_longjmp_target): Update references
10441 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10442 (arm_gdbarch_init): Likewise. Don't set
10443 deprecated_register_raw_size, deprecated_register_virtual_size,
10444 deprecated_max_register_raw_size,
10445 deprecated_max_register_virtual_size, or
10446 deprecated_max_register_virtual_type. Do set register_type.
10447 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10448 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10449 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10450 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10451 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10452 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10453 INT_REGISTER_SIZE.
10454 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10455 (remote_rdp_store_register): Likewise.
10456
10457 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10458
10459 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10460 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10461 to after osabi initialization.
10462 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10463 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10464 functions.
10465 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10466 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10467 variables.
10468 (mips_linux_init_abi): Append signal trampoline unwinders.
10469
10470 2004-03-24 Andrew Cagney <cagney@redhat.com>
10471
10472 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10473 * tramp-frame.c: Include "gdb_assert.h".
10474 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10475 correct sizeof.
10476 (tramp_frame_append): Validate the tramp frame's instructions.
10477 * Makefile.in (tramp-frame.o): Update dependencies.
10478
10479 2004-03-23 Andrew Cagney <cagney@redhat.com>
10480
10481 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10482
10483 2004-03-23 Andrew Cagney <cagney@redhat.com>
10484
10485 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10486 Nasser as past testsuite/lib/ (and other) maintainers.
10487
10488 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10489
10490 * infcmd.c (attach_command): Reread symbols if we already have
10491 an exec file.
10492
10493 2004-03-23 Andrew Cagney <cagney@redhat.com>
10494
10495 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10496
10497 2004-03-23 Andrew Cagney <cagney@redhat.com>
10498
10499 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10500 * gdbarch.h, gdbarch.c: Re-generate.
10501 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10502 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10503 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10504 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10505 (DEPRECATED_SIGTRAMP_START): Update.
10506 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10507 (DEPRECATED_SIGTRAMP_START): Update.
10508 * blockframe.c (find_pc_sect_partial_function): Update.
10509 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10510
10511 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10514 if necessary.
10515
10516 2004-03-23 Andrew Cagney <cagney@redhat.com>
10517
10518 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10519 predicate, deprecate.
10520 * gdbarch.h, gdbarch.c: Re-generate.
10521 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10522 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10523 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10524 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10525 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10526 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10527 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10528 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10529 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10530 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10531 * blockframe.c (find_pc_partial_function): Update.
10532 * breakpoint.c (bpstat_what): Update.
10533 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10534 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10535 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10536 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10537 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10538 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10539 * i386-nto-tdep.c (i386nto_init_abi): Update.
10540 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10541 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10542 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10543 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10544 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10545 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10546 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10547 * infrun.c (pc_in_sigtramp): Update.
10548 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10549 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10550 * mips-tdep.c (mips_gdbarch_init): Update.
10551 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10552 * ppc-linux-tdep.c: Update comment.
10553 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10554 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10555 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10556 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10557 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10558 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10559 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10560 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10561 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10562 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10563
10564 2004-03-23 Andrew Cagney <cagney@redhat.com>
10565
10566 * tramp-frame.h, tramp-frame.h: New files.
10567 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10568 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10569
10570 * Makefile.in: Update all dependencies.
10571
10572 2004-03-23 Andrew Cagney <cagney@redhat.com>
10573
10574 * Makefile.in (trad_frame_h): Add $(frame_h).
10575 * trad-frame.h: Update copyright. Include "frame.h".
10576 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10577 (trad_frame_set_id, trad_frame_get_id): Declare.
10578 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10579 * trad-frame.c: Update copyright.
10580 (struct trad_frame_cache): Define.
10581 (trad_frame_cache_zalloc): New function.
10582 (trad_frame_set_id, trad_frame_get_id): New functions.
10583 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10584
10585 2004-03-22 Andrew Cagney <cagney@redhat.com>
10586
10587 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10588 s390_pltstub_unwind_cache.
10589 (s390_stub_frame_unwind_cache): Rename
10590 s390_pltstub_frame_unwind_cache.
10591 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10592 (s390_stub_frame_prev_register): Rename
10593 s390_pltstub_frame_prev_register.
10594 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10595 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10596
10597 From Ulrich Weigand:
10598 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10599 pointer calls like PLT calls.
10600
10601 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10604 PC rather than the partial function start address. Use the start
10605 address to sanity check the found PDR.
10606
10607 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10610 linux_handle_extended_wait.
10611
10612 2004-03-22 Andrew Cagney <cagney@redhat.com>
10613
10614 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10615 function.
10616
10617 * frame.h (generic_pop_current_frame): Delete declaration.
10618 (deprecate_pop_dummy_frame): Deprecate
10619 generic_pop_dummy_frame.
10620 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10621 (generic_pop_current_frame): Delete function.
10622 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10623 generic_pop_current_frame.
10624 * v850-tdep.c (v850_pop_frame): Update.
10625 * mcore-tdep.c (mcore_pop_frame): Update.
10626 * sh64-tdep.c (sh64_pop_frame): Update.
10627 * h8300-tdep.c (h8300_pop_frame): Update.
10628
10629 2004-03-22 Andrew Cagney <cagney@redhat.com>
10630
10631 * frame.h (deprecated_pc_in_call_dummy): Rename
10632 generic_pc_in_call_dummy.
10633 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10634 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10635 generic_pc_in_call_dummy.
10636 (pc_in_dummy_frame): Make static.
10637 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10638 * gdbarch.h, gdbarch.c: Re-generate.
10639 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10640 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10641 (legacy_get_prev_frame): Ditto.
10642 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10643 comment.
10644
10645 2004-03-21 Andrew Cagney <cagney@redhat.com>
10646
10647 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10648 declaration and out-of-date comment.
10649 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10650 Delete function.
10651 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10652 deprecated_pc_in_call_dummy.
10653
10654 * infrun.c (handle_inferior_event): For non legacy frames, use the
10655 frame ID and frame type to identify a signal trampoline. Update
10656 comments.
10657
10658 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10659
10660 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10661 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10662
10663 2004-03-21 Andrew Cagney <cagney@redhat.com>
10664
10665 * frame-unwind.h: Update copyright.
10666 (struct frame_data): Add opaque declaration.
10667 (frame_sniffer_ftype): Declare.
10668 (struct frame_unwind): Add "unwind_data" and "sniffer".
10669 (frame_unwind_register_unwinder): Declare.
10670 (frame_unwind_find_by_frame): Add parameter "this_cache".
10671 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10672 (legacy_get_prev_frame, legacy_get_prev_frame)
10673 (get_frame_type): Pass the prologue_cache to
10674 frame_unwind_find_by_frame.
10675 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10676 "unwinder".
10677 (frame_unwind_register_unwinder): New function.
10678 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10679
10680 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10681
10682 * bcache.c (print_percentage): Use floating point to avoid
10683 incorrect results when portion*100 overflows.
10684
10685 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10686
10687 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10688 (ppc_linux_init_extra_frame_info)
10689 (ppc_linux_frameless_function_invocation)
10690 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10691 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10692 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10693 (rs6000_frame_chain): Delete declarations.
10694 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10695 (ppc_linux_init_extra_frame_info)
10696 (ppc_linux_frameless_function_invocation)
10697 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10698 (ppc_linux_init_abi): Remove registration of above deleted functions.
10699 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10700 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10701 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10702 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10703 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10704 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10705 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10706 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10707 frame management for all OSABIs.
10708
10709 2004-03-19 Andrew Cagney <cagney@redhat.com>
10710
10711 Committed by Kevin Buettner <kevinb@redhat.com>.
10712
10713 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10714 Update copyright.
10715 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10716 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10717 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10718 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10719 unwinders. #ifdef legacy frame code.
10720 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10721 "frame-base.h".
10722 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10723 (struct rs6000_frame_cache, rs6000_frame_cache)
10724 (rs6000_frame_this_id, rs6000_frame_prev_register)
10725 (rs6000_frame_sniffer, rs6000_frame_unwind)
10726 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10727 (rs6000_frame_base): Implement a traditional frame unwinder.
10728 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10729 frame unwinder.
10730
10731 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10732
10733 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10734 breakpoint address for watchpoints or the catch eventpoints.
10735 Add new paramter ``bptype''. Adjust all callers.
10736
10737 2004-03-19 Andrew Cagney <cagney@redhat.com>
10738
10739 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10740
10741 * PROBLEMS: Delete note that ARM does not use frame code, problem
10742 fixed.
10743
10744 2004-03-18 Andrew Cagney <cagney@redhat.com>
10745
10746 * stack.c (return_command): Delete code wrapped in #ifdef
10747 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10748
10749 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10750
10751 2004-03-18 Andrew Cagney <cagney@redhat.com>
10752
10753 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10754 DEPRECATED_IN_SIGTRAMP.
10755 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10756 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10757 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10758 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10759 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10760 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10761 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10762 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10763 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10764 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10765
10766 2004-03-18 Andrew Cagney <cagney@redhat.com>
10767
10768 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10769 (struct frame_base_table_entry): Define.
10770 (struct frame_base_table): Re-implement as a linked list.
10771 (frame_base_init): Re-implement.
10772 (frame_base_table): Delete function.
10773 (append_predicate): Delete function.
10774 (frame_base_append_sniffer): Update.
10775 (frame_base_set_default): Update.
10776 (frame_base_find_by_frame): Update.
10777 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10778 * Makefile.in (frame-base.o): Update dependencies.
10779
10780 2004-03-17 Andrew Cagney <cagney@redhat.com>
10781
10782 * frame.c (legacy_get_prev_frame): Pass correct frame to
10783 frame_unwind_find_by_frame.
10784
10785 2004-03-17 David Carlton <carlton@kealia.com>
10786
10787 * NEWS: Mention C++ nested types and namespaces
10788
10789 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10790
10791 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10792 and "Regressions since gdb 5.3.". Add known regressions since
10793 gdb 6.0.
10794
10795 2004-03-16 David Carlton <carlton@kealia.com>
10796
10797 * dwarf2read.c (process_structure_scope): Process children even
10798 when we're a declaration.
10799
10800 2004-03-16 Andrew Cagney <cagney@redhat.com>
10801
10802 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10803 * blockframe.c (find_pc_partial_function)
10804 (find_pc_sect_partial_function): Merge into a single
10805 find_pc_partial_function.
10806
10807 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10808
10809 * i386bsd-nat.c: s/regno/regnum/g.
10810 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10811 FP0_REGNUM.
10812 (store_inferior_registers): Likewise.
10813
10814 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10815
10816 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10817 of i387_fill_fsave.
10818 (store_inferior_registers): Call i387_collect_fsave and
10819 i387_collect_fxsave instead of i387_fill_fsave and
10820 i387_fill_fxsave.
10821
10822 2004-03-15 Andrew Cagney <cagney@redhat.com>
10823
10824 * Makefile.in (frame-unwind.o): Update dependencies.
10825 * frame-unwind.c: Include "gdb_obstack.h".
10826 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10827 parameter.
10828 (append_predicate): Delete function.
10829 (struct frame_unwind_table_entry): New structure.
10830 (struct frame_unwind_table): Replace "sniffer" with "head" and
10831 "tail".
10832 (frame_unwind_append_sniffer): Update.
10833 (frame_unwind_find_by_frame): Update.
10834 (_initialize_frame_unwind): Registe frame_unwind_init using
10835 gdbarch_data_register_pre_init.
10836
10837 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10838
10839 * i386bsd-nat.c: Update copyright year.
10840 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10841 define unconditionally.
10842
10843 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10844
10845 * i387-tdep.h (i387_collect_fsave): New prototype.
10846 * i387-tdep.c (i387_collect_fsave): New function containing most
10847 of the code from i387_fill_fsave.
10848 (i387_fill_fsave): Call i387_collect_fsave.
10849
10850 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10851
10852 * i386-linux-tdep.c: Update copyright year.
10853 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10854 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10855 svr4_ilp32_link_map_offsets instead of
10856 i386_linux_svr4_fetch_link_map_offsets.
10857
10858 2004-03-15 David Carlton <carlton@kealia.com>
10859
10860 Fix for PR c++/1553:
10861 * dwarf2read.c (read_structure_type): Determine type name by
10862 calling determine_class_name.
10863 (determine_class_name): New.
10864 (determine_prefix): Look at TYPE_TAG_NAME and call
10865 determine_class_name when appropriate.
10866 (determine_prefix_aux, class_name): Delete.
10867 (read_namespace): Set die->type.
10868
10869 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10870
10871 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10872 unused macro definition. The definition in target.h (or perhaps
10873 elsewhere) takes precedence.
10874
10875 2004-03-15 Andrew Cagney <cagney@redhat.com>
10876
10877 * ppc-tdep.h: Update copyright.
10878 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10879 function signatures to match "regsets.h".
10880 * ppc-linux-tdep.c: Include "regset.h".
10881 (ELF_GREGSET_SIZE): Delete.
10882 (right_supply_register): New function.
10883 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10884 using right_supply_register.
10885 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10886 functions.
10887 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10888 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10889 (_initialize_ppc_linux_tdep): Do not register
10890 ppc_linux_regset_core_fns.
10891 (ppc_linux_regset_from_core_section): Replace
10892 fetch_core_registers.
10893 (ppc_linux_regset_core_fns): Delete.
10894 * ppc-linux-nat.c: (right_fill_reg): New function.
10895 (supply_gregset): Update call to ppc_linux_supply_gregset.
10896 (fill_gregset): Clear the register set, use right_fill_reg.
10897 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10898 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10899
10900 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10901 unsigned.
10902
10903 2004-03-15 Andrew Cagney <cagney@redhat.com>
10904
10905 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10906 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10907 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10908 and register_gdbarch_data.
10909 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10910 (struct gdbarch_data): Replace "init" by "pre_init" and
10911 "post_init".
10912 * gdbarch.h, gdbarch.c: Re-generate.
10913 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10914 with"obstack", use OBSTACK_ZALLOC.
10915 (dwarf2_frame_ops): Delete.
10916 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10917 (dwarf2_frame_init_reg): Use gdbarch_data.
10918 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10919 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10920 (_initialize_svr4_solib): Update.
10921 * user-regs.c (_initialize_user_regs): Update.
10922 * reggroups.c (_initialize_reggroup): Update.
10923 * regcache.c (_initialize_regcache): Update.
10924 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10925 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10926 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10927 * frame-unwind.c (_initialize_frame_unwind): Update.
10928 * frame-base.c (_initialize_frame_base): Update.
10929 * user-regs.c (user_reg_add): Update.
10930 * reggroups.c (reggroup_add): Update.
10931 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10932 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10933 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10934 * frame-base.c (frame_base_table): Update.
10935 * remote.c (_initialize_remote): Update.
10936 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10937
10938 2004-03-15 Andrew Cagney <cagney@redhat.com>
10939
10940 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10941
10942 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10943
10944 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10945 * frv-linux-tdep.c: New file.
10946 * frv-tdep.c (struct gdbarch_tdep): Add new field
10947 ``sigcontext_reg_addr''.
10948 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10949 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10950 (frv_sigramp_frame_sniffer): New functions.
10951 (frv_sigtramp_frame_unwind): New static global.
10952 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10953 sniffers.
10954 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10955 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10956
10957 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10958
10959 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10960 but not via a call to error(), when unable to read memory.
10961
10962 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10963
10964 * frv-tdep.c (frv_call_dummy_words): Delete.
10965 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10966
10967 2004-03-15 Andrew Cagney <cagney@redhat.com>
10968
10969 * infrun.c (handle_step_into_function, step_over_function): Only
10970 update and use STEP_FRAME_ID when the system is using legacy
10971 frames. Update comments.
10972
10973 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10974
10975 * amd64-linux-tdep.h: Remove file.
10976 * amd64-linux-tdep.c: Don't include "inferior.h" and
10977 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10978 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10979 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10980 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10981 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10982 macros.
10983 (user_to_gdb_regmap): Remove variable.
10984 (amd64_linux_gregset_reg_offset): New variable.
10985 (amd64_core_fns): Remove variable.
10986 (fetch_core_registers): Remove function.
10987 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10988 functions.
10989 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10990 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10991 * Makefile.in (amd64_linux_tdep_h): Remove.
10992 (amd64-linux-nat.o): Update dependencies.
10993 (amd64-linux-tdep.o): Update dependencies.
10994
10995 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10996 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10997 functions.
10998 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10999
11000 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
11001 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
11002
11003 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * dwarf2read.c (read_structure_type): Rename from
11006 read_structure_scope. Don't create a symbol or call process_die.
11007 Return immediately if die->type is set. Call read_type_die before
11008 dwarf2_add_member_fn.
11009 (process_structure_scope): New function.
11010 (read_enumeration_type, process_enumeration_scope): New functions,
11011 broken out from read_enumeration. Don't create the enumeration
11012 type if it has already been created.
11013 (read_enumeration): Removed.
11014 (process_die): Call read_structure_type, process_structure_scope,
11015 read_enumeration_type, and process_enumeration_scope. Just call
11016 new_symbol for base and subrange types. Add a comment about other
11017 type dies.
11018 (read_type_die): Call read_enumeration_type.
11019 (add_partial_structure, new_symbol): Update comments.
11020
11021 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
11022
11023 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
11024
11025 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
11026
11027 * tui/tui-win.h (tui_get_cmd_list): Declare.
11028 * tui/tui-win.c (tui_command): New function.
11029 (tui_get_cmd_list): New function.
11030 (_initialize_tui_win): Moved initialization of tui command in
11031 tui_get_cmd_list.
11032
11033 * tui/tui-data.c (init_content_element): Setup new data members.
11034 (init_win_info): Likewise.
11035 (free_content_elements): Free it.
11036 * tui/tui-data.h (struct tui_data_element): Store the register
11037 content to print.
11038 (struct tui_data_info): Keep the current register group.
11039
11040 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
11041
11042 * tui/tui-regs.h (tui_show_registers): Update prototype.
11043 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
11044 (tui_resize_all): No need to calculate anything for register window.
11045 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
11046 (tui_set_register_element, tui_set_general_regs_content): Remove.
11047 (tui_set_special_regs_content): Remove.
11048 (tui_set_general_and_special_regs_content): Remove.
11049 (tui_set_float_regs_content): Remove.
11050 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
11051 (tui_set_regs_content): Remove.
11052 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
11053 (tui_v_show_registers_command_support): Remove.
11054 (tui_show_registers): Use a reggroup to specify the registers to show.
11055 (tui_show_register_group): New function.
11056 (tui_display_registers_from): Compute the layout of register window
11057 and refresh with new API; be sure to delete old register windows.
11058 (tui_check_register_values): Update to use tui_get_register and
11059 tui_display_data.
11060 (tui_display_register): Just refresh the register window part.
11061 (tui_register_format): Format registers and save in tui_data_element.
11062 (tui_get_register): New to combine tui_reg_value_has_changed and
11063 tui_get_register_raw_value; fix to use the new gdb API.
11064 (tui_show_float_command): Renamed tui_reg_float_command.
11065 (tui_show_general_command): Renamed tui_reg_general_command.
11066 (tui_show_special_command): Renamed tui_reg_system_command.
11067 (_initialize_tui_regs): Remove unused commands.
11068
11069 2004-03-13 Mark Kettenis <kettenis@gnu.org>
11070
11071 * NEWS (New native configurations): Mention OpenBSD/amd64.
11072
11073 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
11074 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
11075 Remove defines.
11076 * config/i386/nm-fbsd64.h: Likewise.
11077 * config/i386/nm-obsd.h: Likewise.
11078 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
11079 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
11080
11081 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11082
11083 * frv-tdep.c (set_variant_scratch_registers): New function.
11084 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
11085 New constants.
11086
11087 From Richard Sandiford <rsandifo@redhat.com>:
11088 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
11089
11090 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11091
11092 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
11093 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11094 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11095 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11096 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11097 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11098 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11099 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11100 definitions from frv-tdep.c to frv-tdep.h.
11101
11102 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11103
11104 Add shared library support for FR-V FDPIC ABI:
11105 * Makefile.in (solib-frv.o): Add dependencies.
11106 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11107 New functions.
11108 (frv_push_dummy_call): Add support for FDPIC ABI.
11109 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11110 for FDPIC ABI.
11111 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11112 (frv_fdpic_find_canonical_descriptor): Declare.
11113 * solib-frv.c: New file.
11114 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11115 * config/frv/tm-frv.h (solib.h): Include.
11116
11117 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11118
11119 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11120 (frv-tdep.o): Update dependencies.
11121 * frv-tdep.h: New file.
11122 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11123 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11124 constants.
11125 (struct gdbarch_tdep): Add new member ``frv_abi''.
11126 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11127 functions.
11128 (new_variant): Set ``frv_abi'' field.
11129 (gdb_arch_init): Detect FDPIC executables.
11130
11131 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11132
11133 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11134 wrapper.
11135
11136 2004-03-11 Andrew Cagney <cagney@redhat.com>
11137
11138 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11139
11140 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11141
11142 * solist.h (master_so_list): New function.
11143 * solib.c (master_so_list): Likewise.
11144 * solib-svr4.c (enable_break): Iterate over so_list entries
11145 obtained from master list instead of entries obtained directly
11146 via svr4_current_sos().
11147
11148 2004-03-10 Ben Elliston <bje@gnu.org>
11149
11150 * MAINTAINERS: Update my mail address.
11151
11152 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11153
11154 * remote-m32r-sdi.c: Support hardware watchpoint.
11155
11156 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11157
11158 * user-regs.c: Update copyright years.
11159 (struct user_regs): Rename to gdb_user_regs.
11160 (append_user_reg, builtin_user_regs, user_regs_init)
11161 (user_reg_add, user_reg_map_name_to_regnum)
11162 (usernum_to_user_reg): Update.
11163
11164 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11165
11166 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11167 (skip_children): New functions.
11168 (locate_pdi_sibling): Call skip_children.
11169
11170 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11171
11172 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11173 * gdbtypes.c (check_typedef): Update comments.
11174
11175 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11176
11177 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11178 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11179 pointer. Update comment about comp_unit_head.
11180 (struct abbrev_info): Shorten two int flags.
11181 (dwarf_alloc_abbrev): Take a CU argument.
11182 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11183 each time through the loop. Update cleanup argument.
11184 (psymtab_to_symtab_1): Update cleanup call.
11185 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11186 abbrev_obstack.
11187 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11188 Just call obstack_free and clear the pointer.
11189
11190 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11191
11192 * infrun.c (handle_inferior_event): Remove short-circuit code for
11193 events in a different thread.
11194
11195 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11196
11197 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11198 print the whole transfer.
11199 (initialize_targets): Update description of "set debug target".
11200
11201 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11202
11203 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11204
11205 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11206
11207 * MAINTAINERS (write after approval): Add myself.
11208
11209 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11210
11211 * sh-tdep.c (sh_print_registers_info): Use for loop.
11212 Don't skip multiple registers when a float register is encountered.
11213
11214 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11215
11216 Fix PR tdep/1291.
11217 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11218 to official SH documentation.
11219
11220 2004-03-07 Andrew Cagney <cagney@redhat.com>
11221
11222 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11223 unused function.
11224
11225 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11226
11227 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11228 (arm_get_next_pc): Handle BX and BLX.
11229
11230 2004-03-07 Andrew Cagney <cagney@redhat.com>
11231
11232 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11233 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11234 HPPA_SP_REGNUM.
11235 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11236 (hppa_target_read_fp): Delete.
11237 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11238 register_virtual_size, max_register_raw_size,
11239 max_register_virtual_size, register_byte, register_size,
11240 target_read_fp, fp_regnum, and register_bytes. Set register_type
11241 instead of register_virtual_type.
11242 (hppa32_register_type, hppa64_register_type): Replace
11243 hppa32_register_virtual_type and hppa64_register_virtual_type.
11244 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11245 (HPPA_FP_REGNUM): Define.
11246
11247 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11248
11249 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11250 (pa_do_registers_info): Delete.
11251 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11252 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11253 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11254
11255 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11256 GDB_TARGET_IS_HPPA code.
11257 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11258 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11259 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11260 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11261 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11262 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11263 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11264 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11265 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11266 (hppa_frameless_function_invocation, hppa64_store_return_value)
11267 (hppa_store_struct_return, hppa64_extract_return_value)
11268 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11269 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11270 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11271 (find_proc_framesize, deposit_21, restore_pc_queue)
11272 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11273 (rp_saved, pc_in_linker_stub): Delete.
11274
11275 Unconditionally enable 64-bit frame and ABI code.
11276 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11277 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11278 push_dummy_frame, fix_call_dummy, push_arguments,
11279 call_dummy_location, extract_return_value, use_struct_convention,
11280 store_return_value, store_struct_return, saved_pc_after_call,
11281 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11282 frame_chain, frame_chain_valid, frameless_function_invocation,
11283 frame_saved_pc, and pop_frame.
11284
11285 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11286 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11287 (hppa_gdbarch_init): Do not set PC_REGNUM.
11288
11289 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11290
11291 * config/alpha/tm-fbsd.h: Remove file.
11292 * config/alpha/fbsd.mt: Tweak comment.
11293 (TM_FILE): Set to tm-alpha.h.
11294
11295 2004-03-05 Andrew Cagney <cagney@redhat.com>
11296
11297 * infrun.c (step_over_function): When non-legacy code, and no
11298 step_frame_id, use the unwinder to get the caller's frame ID.
11299
11300 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11301
11302 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11303 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11304 bfd_arch_unknown. Adjust comment.
11305
11306 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11307 * i386obsd-tdep.c: Correct spelling in comment.
11308 * i386nbsd-tdep.c: Correct spelling in comment.
11309 * sparc-tdep.c: Correct spelling in comments.
11310
11311 2004-03-05 David Carlton <carlton@kealia.com>
11312
11313 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11314 bug.
11315
11316 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11317
11318 * sparc-tdep.c: Fix typo in comment.
11319
11320 2004-03-04 J. Brobecker <brobecker@gnat.com>
11321
11322 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11323
11324 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11325
11326 * dwarf2read.c: Add comment describing memory lifetimes.
11327 (struct dwarf2_pinfo): Update comment.
11328 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11329 (read_enumeration, new_symbol): Don't use obsavestring.
11330
11331 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11332
11333 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11334 instead of amd64_fill_fxsave.
11335 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11336 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11337
11338 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11339 Reorganize code a bit.
11340
11341 2004-03-04 Orjan Friberg <orjanf@axis.com>
11342
11343 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11344 when the frame pointer is pushed. Don't set the frame pointer's
11345 address on the stack unless it's actually located there.
11346 Set the SRP's address on the stack correctly when the PC is still in
11347 the prologue.
11348 (cris_return_value): New function.
11349 (cris_gdbarch_init): Clear deprecated store_return_value,
11350 extract_return_value.
11351
11352 2004-03-02 Jim Blandy <jimb@redhat.com>
11353
11354 * stabsread.c (reg_value_complaint): The maximum register number
11355 is one less than the number of registers.
11356
11357 2004-03-02 Andrew Cagney <cagney@redhat.com>
11358
11359 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11360 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11361 trailing comma and redundant assignment of I386_ST0_REGNUM.
11362 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11363 32-bit segment registers.
11364
11365 2004-03-01 Andrew Cagney <cagney@redhat.com>
11366
11367 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11368 use frame_relative_level and get_next_frame.
11369
11370 2004-02-29 Andrew Cagney <cagney@redhat.com>
11371
11372 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11373 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11374 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11375 Delete macro.
11376
11377 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11378
11379 * inflow.c (terminal_inferior): Don't give up the terminal if we
11380 previously couldn't get the inferior's terminal state.
11381
11382 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11385 PC_REGNUM.
11386
11387 2004-02-28 Andrew Cagney <cagney@redhat.com>
11388
11389 * NEWS: Refer to GDB 6.1.
11390 * README: Refer to GDB 6.1.
11391 * PROBLEMS: Refer to GDB 6.1.
11392
11393 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11394
11395 * thread-db.c (disable_thread_signals): Remove unused function.
11396
11397 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11398
11399 * amd64-nat.c: Include "gdb_string.h".
11400 (amd64_collect_native_gregset): Zero-extend the 32-bit
11401 general-purpose registers and %eip.
11402
11403 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11404 * amd64-tdep.c (amd64_collect_fxsave): New function.
11405 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11406
11407 * i387-tdep.h: Update copyright year.
11408 (i387_collect_fxsave): New prototype.
11409 * i387-tdep.c: Update copyright year.
11410 (i387_collect_fxsave): New function containing most of the code
11411 from i387_fill_fxsave.
11412 (i387_fill_fxsave): Call i387_collect_fxsave.
11413
11414 2004-02-28 Andrew Cagney <cagney@redhat.com>
11415
11416 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11417 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11418
11419 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11420
11421 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11422
11423 2004-02-28 Andrew Cagney <cagney@redhat.com>
11424
11425 * utils.c: Use "", instead of <>, to include readline.
11426 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11427 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11428 * source.c, solib.c, exec.c, event-top.c: Ditto.
11429 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11430 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11431 * Makefile.in: Update all dependencies.
11432 (readline_tilde_h, readline_history_h): Define.
11433 (readline_headers): Delete.
11434
11435 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11436
11437 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11438 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11439 "config/i386/tm-lx64.h".
11440
11441 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11442 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11443 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11444
11445 2004-02-28 Andrew Cagney <cagney@redhat.com>
11446
11447 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11448
11449 * breakpoint.c (_initialize_breakpoint): Use
11450 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11451 Add help to show command.
11452
11453 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11454
11455 * i386-nat.c: Reformat to be closer to coding standards.
11456 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11457 `retval'. Make variables `align' and `size' local to while-loop.
11458 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11459 (_initialize_i386_nat): New prototype.
11460
11461 * tui/tui.c: Include <readline/readline.h> instead of
11462 "readline/readline.h". Include it after <term.h> and
11463 "gdb_curses.h".
11464
11465 2004-02-27 Andrew Cagney <cagney@redhat.com>
11466
11467 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11468 the new frame unwind code.
11469 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11470 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11471 PCOQ_HEAD_REGNUM.
11472
11473 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11474 "return_value" and "push_dummy_call".
11475 (hppa32_use_struct_convention): Delete unused function.
11476 (hppa32_store_return_value): Delete unused function.
11477 (hppa32_extract_return_value): Delete unused function.
11478 (hppa32_stack_align): Delete function.
11479
11480 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11481
11482 * coffread.c (enter_linenos): Don't let rawptr reference memory
11483 outside linetab[]'s limits.
11484
11485 2004-02-27 Andrew Cagney <cagney@redhat.com>
11486
11487 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11488 inferior stack space - the stack needs to grow upwards.
11489 (hppa32_frame_align): New function.
11490 (hppa64_frame_align): Replace hppa_frame_align.
11491 (hppa_gdbarch_init): Update.
11492
11493 2004-02-26 Orjan Friberg <orjanf@axis.com>
11494
11495 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11496 (dwarf2-frame.h): Include.
11497 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11498 Remove static variables related to ABI setting.
11499 (struct gdbarch_tdep): Remove cris_abi member.
11500 (struct frame_extra_info): Remove.
11501 (cris_unwind_cache, stack_item): New structs.
11502 (cris_frame_unwind, cris_frame_base): New variables.
11503 (push_stack_item, pop_stack_item)
11504 (cris_frame_unwind_cache, cris_frame_this_id)
11505 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11506 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11507 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11508 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11509 (cris_reg_struct_has_addr): New functions.
11510 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11511 (cris_frame_saved_pc, cris_saved_pc_after_call,
11512 (cris_store_struct_return, cris_frameless_function_invocation)
11513 (cris_pop_frame, cris_skip_prologue_main)
11514 (cris_abi_original_store_return_value)
11515 (cris_abi_v2_store_return_value)
11516 (cris_abi_original_extract_return_value)
11517 (cris_abi_v2_extract_return_value)
11518 (cris_abi_original_reg_struct_has_addr)
11519 (cris_abi_v2_reg_struct_has_addr)
11520 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11521 (cris_push_return_address, cris_abi_update): Remove.
11522 (_initialize_cris_tdep): Remove ABI command.
11523 (cris_dump_tdep): Ditto.
11524 (cris_gdbarch_init): Remove ABI command.
11525 Set store_return_value, extract_return_value, push_dummy_code,
11526 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11527 frame_unwind_append_sniffer, frame_base_set_default.
11528 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11529 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11530 sizeof_call_dummy_words, get_saved_register, push_return_address,
11531 pop_frame, store_struct_return, frame_init_saved_regs,
11532 init_extra_frame_info, frameless_function_invocation, frame_chain,
11533 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11534 dummy_write_sp.
11535
11536 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11537
11538 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11539 * valprint.c (print_hex_chars): Change from static to external.
11540 (print_char_chars): New function.
11541 * printcmd.c (print_scalar_formatted): For integer and enum types
11542 that are longer than LONGEST, perform processing via appropriate
11543 print_*_chars routines.
11544
11545 2004-02-26 Andrew Cagney <cagney@redhat.com>
11546
11547 * Makefile.in: Update dependencies.
11548 Changes from Ulrich Weigand,
11549 * s390-tdep.c: Include "dwarf2-frame.h".
11550 (s390_dwarf2_frame_init_reg): New function.
11551 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11552 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11553
11554 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11555
11556 * breakpoint.c (pending_break_support): New setting variable.
11557 (break_command_1): Account for pending_break_support setting
11558 when creating pending breakpoints.
11559 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11560 (_initialize_breakpoint): Add "set breakpoint pending" and
11561 "show breakpoint pending" commands.
11562
11563 2004-02-26 Andrew Cagney <cagney@redhat.com>
11564
11565 Fix PR i18n/1570.
11566 * charset.c (backslashable, backslashed, represented): Remove 'e'
11567 from list of escaped characters, not part of ISO-C.
11568
11569 2004-02-25 J. Brobecker <brobecker@gnat.com>
11570
11571 From Peter Schauer <schauer@pdf.de>:
11572 * tui/tui.c: Move system header includes after local includes.
11573 Fixes a build failure on solaris systems.
11574
11575 2004-02-25 J. Brobecker <brobecker@gnat.com>
11576
11577 * configure.in: Refine the previous change.
11578 * configure: Regenerate.
11579
11580 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11581
11582 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11583 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11584 "amd64-tdep.h" instead of "x86-64-tdep.h".
11585 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11586 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11587 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11588 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11589 and "x86-64-tdep.c".
11590 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11591 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11592 and "x86-64-tdep.c".
11593 * amd64bsd-nat.c: Update copyright year.
11594 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11595 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11596 "x86-64-tdep.h".
11597 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11598 "x86-64-tdep.h".
11599 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11600 "x86-64-tdep.h".
11601 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11602 "x86-64-tdep.h".
11603 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11604 "x86-64-tdep.h".
11605 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11606 "x86-64-tdep.h".
11607 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11608 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11609 * Makefile.in (amd64_linux_tdep_h): Renamed from
11610 x86_64_linux_tdep_h.
11611 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11612 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11613 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11614 (amd64obsd-tdep.o): Update dependencies.
11615 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11616 dependencies.
11617 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11618 dependencies.
11619 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11620 amd64-linux-nat.c amd64-linux-tdep.c.
11621 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11622 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11623 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11624 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11625 amd64-tdep.o and amd64-linux-tdep.o.
11626 (TM_FILE): Set to tm-linux64.h.
11627 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11628 (NAT_FILE): Set to nm-linux64.h.
11629 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11630 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11631 amd64-tdep.o.
11632 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11633 amd64-tdep.o.
11634 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11635 amd64-tdep.o.
11636
11637 2004-02-25 Roland McGrath <roland@redhat.com>
11638
11639 * remote.c (remote_protocol_qPart_auxv): New variable.
11640 (init_all_packet_configs): Initialize it.
11641 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11642 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11643 (show_remote_cmd): Call it.
11644 (_initialize_remote): Initialize commands.
11645 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11646 service TARGET_OBJECT_AUXV requests.
11647
11648 2004-02-25 J. Brobecker <brobecker@gnat.com>
11649
11650 * configure.in: Make sure that the wborder function is available.
11651 Otherwise, search for it in the cur_colr library.
11652 * configure: Regenerate.
11653
11654 2004-02-25 Andrew Cagney <cagney@redhat.com>
11655
11656 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11657
11658 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11659
11660 * config/i386/tm-x86-64linux.h: Tweak comments.
11661
11662 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11663
11664 * MAINTAINERS: Add self to write-after-approval list.
11665
11666 2004-02-25 Andrew Cagney <cagney@redhat.com>
11667
11668 PR cli/1566. Problem found, and fix suggested by David Allan.
11669 * cli/cli-script.c (execute_control_command): Unconditionally
11670 install a cleanup. Default "ret" to "invalid_control". Use
11671 "break" instead of "return" to escape from the switch.
11672
11673 2004-02-24 J. Brobecker <brobecker@gnat.com>
11674
11675 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11676 with the lines macro defined in term.h on AiX.
11677 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11678 a collision with the label_width macro defined in term.h on AiX.
11679
11680 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11681
11682 Committed by Kevin Buettner <kevinb@redhat.com>.
11683
11684 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11685 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11686 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11687 instead of ia64_write_pc().
11688 * ia64-linux-tdep.c (regcache.h): Include.
11689 (ia64_linux_write_pc): New function.
11690
11691 2004-02-23 Roland McGrath <roland@redhat.com>
11692
11693 * auxv.c (info_auxv_command): Fix typos in error messages.
11694
11695 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11696
11697 * x86-64-tdep.h: Tweak comment.
11698 (enum amd64_regnum): New.
11699 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11700 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11701 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11702 (X86_64_XMM1_REGNUM): Removed.
11703 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11704 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11705 prototypes for renamed functions.
11706 * x86-64-tdep.c: Fix typo.
11707 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11708 register numbers.
11709 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11710 Use constants from `enum amd64_regnum' for register numbers.
11711 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11712 (amd64_analyze_prologue, amd64_frame_cache,
11713 amd64_sigtramp_frame_cache): Use constants from `enum
11714 amd64_regnum' for register numbers.
11715 (amd64_supply_fpregset): Adjust for renamed functions.
11716 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11717 `enum amd64_regnum' for register numbers.
11718 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11719 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11720 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11721 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11722 (amd64_linux_fill_gregset): Adjust for renamed macros.
11723 (fetch_core_registers): Adjust for renamed functions.
11724 (amd64_linux_init_abi): Adjust for renamed functions.
11725 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11726 renamed functions.
11727 * amd64-nat.c: Adjust for renamed macros.
11728 * amd64bsd-nat.c (fetch_inferior_registers)
11729 (store_inferior_registers): Use constants from `enum amd64_regnum'
11730 for register numbers. Adjust for renamed variables.
11731 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11732 renamed variables.
11733 (_initialize_amd64fbsd_nat): Use constants from `enum
11734 amd64_regnum' for register numbers.
11735 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11736 `enum amd64_regnum' for register numbers.
11737 (amd64fbsd_init_abi): Adjust for renamed functions.
11738 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11739 `enum amd64_regnum' for register numbers.
11740 (amd64nbsd_init_abi): Adjust for renamed functions.
11741 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11742 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11743 `enum amd64_regnum' for register numbers.
11744 (amd64obsd_init_abi): Adjust for renamed functions.
11745 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11746
11747 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11748
11749 * breakpoint.c (print_one_breakpoint): Do not output spaces
11750 after printing <PENDING> for a pending breakpoint.
11751
11752 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11753
11754 * printcmd.c (print_scalar_formatted): Initialize val_long
11755 to remove compiler warning message.
11756
11757 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11758
11759 * defs.h (nquery, yquery): New prototypes.
11760 * breakpoint.c (break_command_1): Use new nquery interface.
11761 * utils.c (defaulted_query, nquery, yquery): New functions.
11762
11763 2004-02-23 Andrew Cagney <cagney@redhat.com>
11764
11765 * hppa-tdep.c (hppa_frame_align): New function.
11766 (hppa32_push_dummy_call): New function.
11767 (hppa64_push_dummy_call): New function.
11768 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11769 disabled.
11770
11771 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11772 FIX_CALL_DUMMY when push_dummy_call is available.
11773 (call_function_by_hand, push_dummy_code): Ditto.
11774
11775 2004-02-22 Andrew Cagney <cagney@redhat.com>
11776
11777 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11778 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11779 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11780 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11781 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11782 call_dummy_location to ON_STACK.
11783
11784 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11785
11786 * x86-64-linux-tdep.c: Tweak comment.
11787 (amd64_linux_supply_gregset): Renamed from
11788 x86_64_linux_supply_gresget.
11789 (amd64_linux_fill_gregset): Renamed from
11790 x86_64_linux_fill_gregset.
11791 (fetch_core_registers): Adjust for renamed functions.
11792 (amd64_core_fns): Renamed from x86_64_core_fns.
11793 (amd64_linux_sigtramp_start): Renamed from
11794 x86_64_linux_sigtramp_start.
11795 (amd64_linux_pc_in_sigtramp): Renamed from
11796 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11797 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11798 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11799 (amd64_linux_sigcontext_addr): Renamed from
11800 x86_64_linux_sigcontext_addr.
11801 (amd64_linux_sc_reg_offset): Renamed from
11802 x86_64_linux_sc_reg_offset.
11803 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11804 Adjust for renamed functions and variables.
11805 (_initialize_amd64_linux_tdep): Renamed from
11806 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11807 variables.
11808 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11809 Adjust for renamed functions.
11810
11811 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11812 from x86_64_linux_gregset64_reg_offset.
11813 (amd64_linux_gregset32_reg_offset): Rename from
11814 x86_64_linux_gregset64_reg_offset.
11815 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11816 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11817 (amd64_linux_dr_set_control): Renamed from
11818 x86_64_linux_dr_set_control. Adjust for renamed functions.
11819 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11820 Adjust for renamed functions.
11821 (amd64_linux_dr_reset_addr): Renamed from
11822 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11823 (amd64_linux_dr_get_status): Renamed from
11824 x86_64_linux_dr_get_status. Adjust for renamed functions.
11825 (_initialize_amd64_linux_nat): Renamed from
11826 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11827 functions.
11828 * config/i386/nm-x86-64linux.h: Update copyright year.
11829 Adjust for renamed functions.
11830
11831 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11832 amd64fbsd_sigtramp_start.
11833 (amd64fbsd_sigtramp_end_addr): Renamed from
11834 amd64fbsd_sigtramp_end.
11835 (amd64fbsd_init_abi): Adjust for renamed variables.
11836 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11837 variables.
11838 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11839 amd64fbsd_sigtramp_start.
11840 (amd64fbsd_sigtramp_end_addr): Renamed from
11841 amd64fbsd_sigtramp_end.
11842
11843 2004-02-22 Andrew Cagney <cagney@redhat.com>
11844
11845 * hppa-tdep.c (hppa32_return_value): New function.
11846 (hppa64_return_value): New function.
11847 (hppa_gdbarch_init): Set return_value; keep disabled.
11848
11849 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11850 struct-return and inferior function call methods.
11851
11852 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11853 "frame-base.h".
11854 (struct hppa_frame_cache): Define.
11855 (hppa_frame_cache, hppa_frame_this_id): New functions.
11856 (hppa_frame_prev_register): New function.
11857 (hppa_frame_unwind, hppa_frame_base): New variables.
11858 (hppa_frame_unwind_sniffer): New function.
11859 (hppa_frame_base_address, hppa_unwind_pc): New function.
11860 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11861 sniffer, and frame base sniffer; keep disabled.
11862 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11863 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11864
11865 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11866 to predicates for "seriously old code".
11867
11868 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11869 runtime if(0).
11870
11871 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11872 unsigned.
11873 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11874
11875 * config/pa/tm-hppa.h: Update copyright.
11876 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11877 (deprecated_init_frame_pc_default): Delete declaration.
11878 (hppa_frame_init_saved_regs): Delete declaration.
11879 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11880 * hppa-tdep.c: Include "arch-utils.h".
11881 (hppa_gdbarch_init): Set deprecated init_frame_pc
11882 and deprecated frame_init_saved_regs.
11883 (hppa_frame_init_saved_regs): Make static.
11884
11885 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11886
11887 Remove old 386BSD support.
11888 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11889 * configure.host: Remove i[34567]86-*-bsd*.
11890 * configure.tgt: Remove i[34567]86-*-bsd*.
11891 * i386b-nat.c: Removed.
11892 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11893 (i386b-nat.o): Remove dependencies.
11894
11895 * config/i386/i386bsd.mh: Removed.
11896 * config/i386/i386bsd.mt: Removed.
11897 * config/i386/nm-i386bsd.h: Removed.
11898 * config/i386/tm-i386bsd.h: Removed.
11899 * config/i386/xm-i386bsd.h: Removed.
11900
11901 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11902
11903 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11904 (amd64fbsd_init_abi): Set link map offsets.
11905 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11906 (amd64nbsd_init_abi): Set link map offsets.
11907 * amd64obsd-tdep.c: Include "solib-svr4.h".
11908 (amd64obsd_init_abi): Set link map offsets.
11909 * i386fbsd-tdep.c: Include "solib-svr4.h".
11910 (i386fbsd_init_abi): Set link map offsets.
11911 * i386nbsd-tdep.c: Include "solib-svr4.h".
11912 (i386nbsdelf_init_abi): Set link map offsets.
11913 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11914 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11915 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11916 solib-legacy.o and core-aout.o. Reformat.
11917 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11918 solib-svr4.o, solib-legacy.o. Reformat.
11919 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11920 * config/i386/nbsdelf.mh: Reformat.
11921 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11922 solib-svr4.o, solib-legacy.o and corelow.o.
11923 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11924 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11925 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11926 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11927 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11928 (TM_FILE): Set to tm-fbsd.h.
11929 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11930 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11931 solib-svr4.o.
11932 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11933 solib-svr4.o.
11934 (TM_FILE): Set to nm-nbsd.h.
11935 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11936 Simplify shared library support. Don't include "elf/common.h".
11937 (SVR4_SHARED_LIBS): Don't define.
11938 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11939 "solib.h".
11940 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11941 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11942 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11943 Don't include "i386/tm-i386.h". Include "solib.h".
11944 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11945 Don't include "i386/tm-i386.h".
11946 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11947 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11948 Include "i386/xm-i386.h".
11949 (HOST_LONG_DOUBLE_FORMAT): Remove.
11950
11951 Fix OpenBSD/i386 sigtramp recognition.
11952 * i386-tdep.h: Update copyright year.
11953 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11954 (i386bsd_sigtramp_end): New prototypes.
11955 (i386fbsd_sigtramp_start_addr): Renamed from
11956 i386fbsd_sigtramp_start.
11957 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11958 (i386obsd_sigtramp_start_addr): Renamed from
11959 i386obsd_sigtramp_start.
11960 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11961 * i386bsd-tdep.c: Update copyright year.
11962 (i386bsd_pc_in_sigtramp): Make public.
11963 * i386fbsd-nat.c: Update copyright year.
11964 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11965 * i386fbsd-tdep.c: Update copyright year.
11966 (i386fbsd_sigtramp_start_addr): Renamed from
11967 i386fbsd_sigtramp_start.
11968 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11969 (i386fbsdaout_init_abi): Adjust for renamed variables.
11970 * i386obsd-nat.c: Update copyright year.
11971 (_initialize_i386obsd_nat): Adjust for renamed variables.
11972 * i386obsd-tdep.c: Include "target.h".
11973 (i386obsd_page_size): New variable.
11974 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11975 (i386obsd_sigtramp_end): New functions.
11976 (i386obsd_sigtramp_start_addr): Renamed from
11977 i386obsd_sigtramp_start.
11978 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11979 (i386obsd_init_abi): Adjust for renamed variables. Set
11980 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11981 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11982
11983 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11984 trampoline change in OpenBSD kernel.
11985
11986 * amd64-nat.c: Update copyright year.
11987 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11988 architecture from REGCACHE.
11989
11990 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11991 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11992
11993 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11994
11995 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11996 i[34567]86-*-openbsd3.[0-3].
11997 * config/i386/obsdaout.mh: New file.
11998
11999 * config/i386/obsd.mh (MH_FLAGS): Remove.
12000
12001 Fix PR build/1549.
12002 * i386obsd-tdep.c: Update copyright years. Include
12003 "solib-svr4.h".
12004 (i386obsd_init_abi): Don't set regset_from_core_section here.
12005 (i386obsd_aout_init_abi): New function. Set
12006 regset_from_core_section here.
12007 (i386obsd_elf_init_abi): New function.
12008 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
12009 * Makefile.in (i386obsd-tdep.o): Update dependecies.
12010 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
12011 (TM_FILE): Set to tm-nbsd.h.
12012
12013 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
12014 solib-sunos.o.
12015
12016 * solib-svr4.h: Update copyright year.
12017 (svr4_ilp32_fetch_link_map_offsets)
12018 (svr4_lp64_fetch_link_map_offsets): New prototype.
12019 * solib-svr4.c: Update copyright year.
12020 (svr4_ilp32_fetch_link_map_offsets)
12021 (svr4_lp64_fetch_link_map_offsets): New function.
12022
12023 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
12026 to the partial symbol table.
12027
12028 2004-02-20 J. brobecker <brobecker@gnat.com>
12029
12030 * PROBLEMS: Add description of problem documented under gdb/1560.
12031
12032 2004-02-20 Mark Kettenis <kettenis@gnu.org>
12033
12034 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
12035 comments.
12036 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
12037 functions.
12038 (amd64obsd_init_abi): Reorder initializations. Use
12039 amd64obsd_r_reg_offset to initialize the general-purpose register
12040 set details. Set regset_from_core_section.
12041 (_initialize_amd64obsd_tdep): Rename from
12042 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
12043 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
12044 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
12045
12046 * NEWS (New native configurations): Mention OpenBSD/alpha.
12047 * configure.tgt: Add alpha*-*-openbsd*.
12048 * configure.host: Add alpha*-*-openbsd*.
12049 * alphanbsd-tdep.c: Update copyright year.
12050 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
12051
12052 2004-02-20 Andrew Cagney <cagney@redhat.com>
12053
12054 Fix PR tdep/1372.
12055 * configure.tgt: Delete target "none-*-*".
12056 * configure.host: Delete host "none-*-*".
12057 * config/none/none.mh: Delete file.
12058 * config/none/none.mt: Delete file.
12059 * config/none/xm-none.h: Delete file.
12060 * config/none/tm-none.h: Delete file.
12061 * config/none/nm-none.h: Delete file.
12062
12063 2004-02-19 Fred Fish <fnf@redhat.com>
12064
12065 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
12066 cache->uses_fp prior to setting it.
12067
12068 2004-02-19 Fred Fish <fnf@redhat.com>
12069
12070 Fix for PR breakpoint/1558.
12071 * sh-tdep.c (IS_JSR): New macro.
12072 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
12073
12074 2004-02-19 Jim Blandy <jimb@redhat.com>
12075
12076 * findvar.c (value_from_register): Doc fix.
12077
12078 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
12079
12080 * printcmd.c (print_scalar_formatted): Do not check for sizeof
12081 type being greater than sizeof of host's LONGEST. Always use
12082 unpack_long() unless format 'f' chosen.
12083
12084 2004-02-19 Joel Brobecker <brobecker@gnat.com>
12085
12086 Committed by Elena Zannoni <ezannoni@redhat.com>
12087
12088 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
12089 contains a symbol wich is the best, non-exact match for the given
12090 pc. Update comments.
12091
12092 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
12093
12094 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12095 macro, which was part of the now removed Mach 3 port.
12096 * utils.c (request_quit): Ditto.
12097
12098 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12099
12100 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12101 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12102
12103 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12104
12105 Committed by Mark Kettenis <kettenis@gnu.org>.
12106
12107 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12108 Define.
12109
12110 2004-02-18 Andrew Cagney <cagney@redhat.com>
12111
12112 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12113 CONFIG_INSTALL and CONFIG_UNINSTALL.
12114 * configure: Re-generate.
12115 * interps.h (INTERP_TUI): Define.
12116 * Makefile.in: Update dependencies.
12117 (TUI): New macro.
12118 (tui-main.o): Specify dependencies.
12119 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12120 * tui/tui-main.c: New file.
12121
12122 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12123
12124 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12125 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12126 dependencies.
12127 * configure.host: Add x86_64-*-openbsd*.
12128 * configure.tgt: Add x86_64-*-openbsd*.
12129 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12130
12131 * tui/tui.c: Don't include <malloc.h>.
12132
12133 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12134 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12135 amd64nbsd-tdep.c.
12136
12137 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12138 static. Remove extraneous whitespace.
12139 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12140 static.
12141
12142 2004-02-17 Jim Blandy <jimb@redhat.com>
12143
12144 * findvar.c (value_from_register): Doc fix.
12145
12146 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12147
12148 Committed by Jim Blandy <jimb@redhat.com>.
12149
12150 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12151 CORE_ADDR as type for selectors. Correct types for GNU run time
12152 message lookup function to use double indirection.
12153 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12154 * objc-lang.h (lookup_child_selector): Adapt prototype.
12155
12156 * s390-nat.c (SUBOFF): New macro.
12157 (supply_gregset, fill_gregset): Use it to handle debugging
12158 of 32-bit exectuables running under a 64-bit kernel.
12159 * s390-tdep.c: Include "solib-svr4.h".
12160 (s390_svr4_fetch_link_map_offset): New function.
12161 (s390x_svr_fetch_link_map_offset): Likewise.
12162 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12163 * Makefile.in (s390-tdep.o): Update dependencies.
12164
12165 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12166 "frame-unwind.h".
12167 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12168 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12169 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12170 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12171 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12172 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12173 S390_SIGNAL_FRAMESIZE,
12174 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12175 (struct frame_extra_info): Remove.
12176 (s390_memset_extra_info): Remove.
12177 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12178 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12179 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12180 (is_rse): Renamed to ...
12181 (is_rsy): ... this. Support long displacements.
12182 (is_rxe): Renamed to ...
12183 (is_rxy): ... this. Support long displacements.
12184 (compute_x_addr): Support long displacements.
12185 (struct s390_prologue_data): New data type.
12186 (s390_on_stack): Change API to use struct s390_prologue_data.
12187 (s390_store): Reimplement.
12188 (s390_load): New function.
12189 (s390_get_signal_frame_info): Remove.
12190 (s390_get_frame_info): Remove, replace by ...
12191 (s390_analyze_prolog): ... this new function.
12192 (s390_check_function_end): Remove.
12193 (s390_function_start): Remove.
12194 (s390_frameless_function_invokation): Remove.
12195 (s390_is_sigreturn): Remove.
12196 (s390_init_frame_pc_first): Remove.
12197 (s390_init_frame_extra_info): Remove.
12198 (s390_frame_init_saved_regs): Remove.
12199 (s390_frame_saved_pc_nofix): Remove.
12200 (s390_frame_saved_pc): Remove.
12201 (s390_frame_chain): Remove.
12202 (s390_fp_regnum, s390_read_fp): Remove.
12203 (s390_pop_frame_regular, s390_pop_frame): Remove.
12204 (s390_saved_pc_after_call): Remove.
12205 (s390_skip_prologue): Reimplement.
12206 (s390_in_function_epilogue_p): Support long displacements.
12207 (struct s390_unwind_cache): New data structure.
12208 (s390_frame_unwind_cache): New function.
12209 (s390_prologue_frame_unwind_cache): Likewise.
12210 (s390_backchain_frame_unwind_cache): Likewise.
12211 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12212 (s390_frame_unwind): Define.
12213 (s390_frame_sniffer): New function.
12214 (struct s390_pltstub_unwind_cache): New data structure.
12215 (s390_pltstub_frame_unwind_cache): New function.
12216 (s390_pltstub_frame_this_id): Likewise.
12217 (s390_pltstub_frame_prev_register): Likewise.
12218 (s390_pltstub_frame_unwind): Define.
12219 (s390_pltstub_frame_sniffer): New function.
12220 (struct s390_sigtramp_unwind_cache): New data structure.
12221 (s390_sigtramp_frame_unwind_cache): New function.
12222 (s390_sigtramp_frame_this_id): Likewise.
12223 (s390_sigtramp_frame_prev_register): Likewise.
12224 (s390_sigtramp_frame_unwind): Define.
12225 (s390_sigtramp_frame_sniffer): New function.
12226 (s390_frame_base_address, s390_local_base_address): New functions.
12227 (s390_frame_base): Define.
12228 (s390_unwind_pc, s390_unwind_sp): New function.
12229 (s390_push_dummy_call): Use new frame base location.
12230 (s390_unwind_dummy_id): Likewise.
12231 (s390_gdbarch_init): Remove calls to:
12232 set_gdbarch_frameless_function_invocation,
12233 set_gdbarch_deprecated_init_frame_pc,
12234 set_gdbarch_deprecated_frame_chain,
12235 set_gdbarch_deprecated_frame_init_saved_regs,
12236 set_gdbarch_deprecated_pop_frame,
12237 set_gdbarch_deprecated_init_extra_frame_info,
12238 set_gdbarch_deprecated_init_frame_pc_first,
12239 set_gdbarch_deprecated_target_read_fp,
12240 set_gdbarch_deprecated_frame_saved_pc,
12241 set_gdbarch_deprecated_saved_pc_after_call,
12242 set_gdbarch_deprecated_fp_regnum.
12243 Add calls to:
12244 set_gdbarch_in_solib_call_trampoline,
12245 frame_unwind_append_sniffer,
12246 frame_base_set_default,
12247 set_gdbarch_unwind_pc,
12248 set_gdbarch_unwind_sp.
12249 * Makefile.in (s390-tdep.o): Update dependencies.
12250
12251 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12252 (S390_STACK_FRAME_OVERHEAD): Remove.
12253 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12254 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12255 (s390_promote_integer_argument): Remove.
12256 (s390_cannot_extract_struct_value_address): Remove.
12257 (s390_use_struct_convention, s390_store_struct_return): Remove.
12258 (s390_extract_return_value, s390_store_return_value): Remove.
12259 (s390_return_value_convention, s390_return_value): New functions.
12260 (is_float_singleton): Handle typedefs.
12261 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12262 Remove, replace by ...
12263 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12264 s390_function_arg_integer): ... these new functions.
12265 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12266 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12267 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12268 Fill in tdep->abi.
12269 Remove calls to:
12270 set_gdbarch_deprecated_store_struct_return,
12271 set_gdbarch_deprecated_extract_return_value,
12272 set_gdbarch_deprecated_store_return_value,
12273 set_gdbarch_use_struct_convention,
12274 set_gdbarch_extract_struct_value_address,
12275 set_gdbarch_deprecated_pc_in_call_dummy,
12276 set_gdbarch_deprecated_push_arguments,
12277 set_gdbarch_deprecated_save_dummy_frame_tos,
12278 set_gdbarch_deprecated_push_return_address,
12279 set_gdbarch_deprecated_sizeof_call_dummy_words,
12280 set_gdbarch_deprecated_call_dummy_words,
12281 set_gdbarch_deprecated_dummy_write_sp.
12282 Add calls to:
12283 set_gdbarch_push_dummy_call,
12284 set_gdbarch_unwind_dummy_id,
12285 set_gdbarch_return_value.
12286
12287 * config/s390/nm-linux.h: Update comments.
12288 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12289 (STOPPED_BY_WATCHPOINT): Redefine.
12290 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12291 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12292 (s390_stopped_by_watchpoint): Likewise.
12293 (watch_area_cnt): Remove.
12294 * s390-nat.c: Update comments.
12295 (watch_area): Remove typedef.
12296 Global replace watch_area by struct watch_area.
12297 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12298 (s390_stopped_by_watchpoint): Remove pid argument,
12299 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12300 (s390_fix_watch_points): Remove pid argument,
12301 use s390_inferior_tid. Recompute area spanned by watchpoints.
12302 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12303 argument. Reimplement.
12304
12305 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12306 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12307 (FETCH_INFERIOR_REGISTERS): Define.
12308 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12309 core-regset.o.
12310 * config/s390/s390x.mt: Remove.
12311 * config/s390/tm-s390.h: Remove.
12312 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12313 (TARGET_ELF64): Remove.
12314 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12315 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12316 s390*-*-* case; always set gdb_target to s390.
12317 * regformats/reg-s390.dat: Remove control registers.
12318 * regformats/reg-s390x.dat: Likewise.
12319 * s390-tdep.h: New file.
12320 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12321 Include "inferior.h" and "s390-tdep.h".
12322 Remove private definition of offsetof.
12323 (s390_register_u_addr): Remove.
12324 (regmap_gregset, regmap_fpregset): Define.
12325 (supply_gregset, fill_gregset): Reimplement.
12326 (supply_fpregset, fill_fpregset): Likewise.
12327 (s390_inferior_tid): New function.
12328 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12329 (fetch_inferior_registers, store_inferior_registers): Likewise.
12330 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12331 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12332 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12333 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12334 (struct gdbarch_tdep): Define.
12335 (struct s390_register_info): Define.
12336 (s390_register_info): New variable.
12337 (s390_register_name): Reimplement.
12338 (s390_register_type): New function.
12339 (s390_register_raw_size, s390x_register_raw_size): Remove.
12340 (s390_cannot_fetch_register): Remove.
12341 (s390_register_byte): Remove.
12342 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12343 (s390_dwarf_regmap): New variable.
12344 (s390_dwarf_reg_to_regnum): New function.
12345 (s390_stab_reg_to_regnum): Remove.
12346 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12347 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12348 (s390_convert_register_p): Likewise.
12349 (s390_register_to_value, s390_value_to_register): Likewise.
12350 (s390_register_reggroup_p): Likewise.
12351 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12352 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12353 (s390_supply_regset, s390_regset_from_core_section): New functions.
12354 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12355 (S390_FPR_SIZE): Likewise.
12356 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12357 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12358 (S390_NUM_GPRS): Move here from tm-s390.h.
12359 (S390_NUM_FPRS): Likewise.
12360 (s390_in_function_epilogue_p): New function.
12361 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12362 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12363 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12364 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12365 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12366 Remove calls to:
12367 set_gdbarch_deprecated_max_register_raw_size,
12368 set_gdbarch_deprecated_max_register_virtual_size,
12369 set_gdbarch_deprecated_register_byte,
12370 set_gdbarch_cannot_fetch_register,
12371 set_gdbarch_cannot_store_register,
12372 set_gdbarch_deprecated_register_size,
12373 set_gdbarch_deprecated_register_raw_size,
12374 set_gdbarch_deprecated_register_virtual_size,
12375 set_gdbarch_deprecated_register_virtual_type,
12376 set_gdbarch_deprecated_register_bytes.
12377 Add calls to:
12378 set_gdbarch_num_pseudo_regs,
12379 set_gdbarch_register_type,
12380 set_gdbarch_convert_register_p,
12381 set_gdbarch_register_to_value,
12382 set_gdbarch_value_to_register,
12383 set_gdbarch_register_reggroup_p,
12384 set_gdbarch_regset_from_core_section,
12385 set_gdbarch_pseudo_register_read,
12386 set_gdbarch_pseudo_register_write,
12387 set_gdbarch_in_function_epilogue_p.
12388 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12389 (s390_tdep_h): New variable.
12390
12391 2004-02-17 Jim Blandy <jimb@redhat.com>
12392
12393 * findvar.c (value_from_register): If the type has no length, just
12394 return an acceptable value --- don't report an internal error.
12395
12396 * stabsread.c (read_type): If we find any type numbers that are
12397 forward references, complain if the references aren't resolved by
12398 the time we're finished reading.
12399 (cleanup_undefined_types): Make error message more appropriate for
12400 a complaint.
12401
12402 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12403
12404 * Makefile.in (defs_h): Remove dependency on progress_h.
12405 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12406 progress.h.
12407 * main.c (captured_main): Delete use of START_PROGRESS and
12408 END_PROGRESS.
12409
12410 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12411
12412 * objfiles.c (terminate_minimal_symbol_table): Add back
12413 initialization of MSYMBOL_TYPE.
12414
12415 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12416
12417 Committed by Andrew Cagney.
12418 * Makefile.in (ia64_tdep_h): New macro.
12419 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12420 (ia64-tdep.o): Likewise.
12421 * ia64-tdep.h: New file.
12422 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12423 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12424 (ia64_aix_sigcontext_register_address): Likewise.
12425 (ia64_linux_getunwind_table): Delete declaration.
12426 * ia64-linux-tdep.c: Likewise.
12427
12428 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12429
12430 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12431 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12432 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12433
12434 2004-02-17 Andrew Cagney <cagney@redhat.com>
12435
12436 * symtab.c (skip_prologue_using_sal): New function.
12437 * symtab.h (skip_prologue_using_sal): Declare.
12438 * frv-tdep.c: Include "symtab.h".
12439 (skip_prologue_using_sal): Delete function.
12440 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12441 * rs6000-tdep.c (refine_prologue_limit): Mention
12442 skip_prologue_using_sal.
12443 * ia64-tdep.c (refine_prologue_limit): Ditto.
12444 * Makefile.in: Update dependencies.
12445
12446 2004-02-16 Andrew Cagney <cagney@redhat.com>
12447
12448 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12449 START_INFERIOR_TRAPS_EXPECTED.
12450 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12451 START_INFERIOR_TRAPS_EXPECTED.
12452 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12453 Delete macro.
12454 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12455 macro, moved to "nm-osf.h". Update copyright.
12456 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12457 update copyright.
12458
12459 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12460 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12461 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12462 frameless_look_for_prologue.
12463 * frame.h (legacy_frameless_look_for_prologue): Rename
12464 frameless_look_for_prologue.
12465 * gdbarch.h, gdbarch.c: Re-generate.
12466 * sh64-tdep.c (sh64_gdbarch_init): Update.
12467 * sh-tdep.c (sh_gdbarch_init): Update.
12468 * s390-tdep.c (s390_gdbarch_init): Update.
12469 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12470 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12471 * m68k-tdep.c (m68k_gdbarch_init): Update.
12472 (delta68_frame_args_address): Update.
12473 * m32r-tdep.c (m32r_gdbarch_init): Update.
12474 * hppa-tdep.c (hppa_gdbarch_init): Update.
12475 * h8300-tdep.c (h8300_gdbarch_init): Update.
12476 * frv-tdep.c (frv_gdbarch_init): Update.
12477 (frv_frameless_function_invocation): Update.
12478 * cris-tdep.c (cris_gdbarch_init): Update.
12479 (cris_frameless_function_invocation): Update.
12480 * avr-tdep.c (avr_gdbarch_init): Update.
12481 * arm-tdep.c (arm_gdbarch_init): Update.
12482 * stack.c (frame_info): Update, call predicate.
12483 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12484 * frame.c (legacy_get_prev_frame): Update, call predicate..
12485 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12486 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12487 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12488 invocation.
12489 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12490 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12491 * vax-tdep.c (vax_gdbarch_init): Ditto.
12492
12493 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12494 function.
12495
12496 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12497
12498 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12499 initializations.
12500
12501 2004-02-16 Andrew Cagney <cagney@redhat.com>
12502
12503 * tui/tui-windata.c: Include "gdb_string.h".
12504 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12505 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12506 * Makefile.in: Update dependencies.
12507
12508 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12509
12510 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12511 * infrun.c: Include "gdb_assert.h".
12512 (singlestep_ptid, saved_singlestep_ptid)
12513 (stepping_past_singlestep_breakpoint): New variables.
12514 (resume): Set singlestep_ptid. Check for singlestep thread
12515 hop.
12516 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12517 (handle_inferior_event): Handle singlestep thread hop.
12518
12519 2004-02-16 Andrew Cagney <cagney@redhat.com>
12520
12521 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12522 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12523 (dwarf2_frame_init_reg): Ditto.
12524
12525 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12526 suggested by Joshua Neuheisel
12527
12528 * configure.in: Always check for curses, including pdcurses.
12529 Warn, instead of error, when no curses are found. Enable TUI when
12530 curses is available.
12531 * configure: Re-generate.
12532
12533 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12534
12535 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12536 sh_sh4_register_convert_to_virtual.
12537 (sh_register_convert_to_raw): Rename from
12538 sh_sh4_register_convert_to_raw.
12539 (sh_pseudo_register_read): Accomodate above name change.
12540 (sh_pseudo_register_write): Ditto.
12541
12542 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12543
12544 * sh-tdep.c (sh_generic_register_name): Remove.
12545 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12546
12547 2004-02-15 Andrew Cagney <cagney@redhat.com>
12548
12549 * configure.in (build_warnings): Add -Wunused-function.
12550 * configure: Re-generate.
12551
12552 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12553 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12554
12555 * procfs.c (procfs_init_inferior): Assume that
12556 START_INFERIOR_TRAPS_EXPECTED is defined.
12557 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12558 * config/ns32k/tm-nbsd.h: Delete file,
12559 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12560
12561 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12562 * config/vax/tm-vax.h: Delete file.
12563
12564 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12565 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12566 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12567 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12568 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12569 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12570 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12571
12572 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12573
12574 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12575 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12576 (struct dwarf2_frame_ops): New.
12577 (dwarf2_frame_default_init_reg): New function, based on
12578 dwarf2_frame_init_reg.
12579 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12580 (dwarf2_frame_init_reg): Call architecture-specific function.
12581 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12582 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12583 instead of dwarf2_frame_data.
12584 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12585 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12586
12587 2004-02-15 Andrew Cagney <cagney@redhat.com>
12588
12589 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12590 register_gdbarch_swap.
12591 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12592 * f-lang.c (_initialize_f_language): Update, use
12593 DEPRECATED_REGISTER_GDBARCH_SWAP.
12594 * remote.c (_initialize_remote): Ditto.
12595 * regcache.c (_initialize_regcache): Ditto.
12596 * parse.c (_initialize_parse): Ditto.
12597 * infrun.c (_initialize_infrun): Ditto.
12598 * mi/mi-main.c (_initialize_mi_main): Ditto.
12599 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12600
12601 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12602 poking .cacheable directly.
12603 * symfile.c (symfile_bfd_open): Ditto.
12604
12605 * Makefile.in: Update all dependencies.
12606
12607 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12608 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12609 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12610 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12611 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12612
12613 2004-02-14 Andrew Cagney <cagney@redhat.com>
12614
12615 * arch-utils.c (legacy_convert_register_p): Check
12616 DEPRECATED_REGISTER_CONVERTIBLE_P.
12617 * findvar.c (value_of_register): Ditto.
12618
12619 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12620 * gdbarch.h, gdbarch.c: Re-generate.
12621 * arch-utils.c (deprecated_register_convertible_not): Delete.
12622 * arch-utils.h (deprecated_register_convertible_not): Delete.
12623 * mi/mi-main.c (get_register): Update. Update copyright.
12624 * infcmd.c (default_print_registers_info): Update.
12625
12626 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12627 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12628 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12629 * gdbarch.h, gdbarch.c: Re-generate.
12630 * frame.c (deprecated_get_next_frame_hack): Delete function.
12631 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12632 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12633 Update.
12634 * infcall.c (call_function_by_hand): Update.
12635
12636 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12637
12638 * symfile.c (init_entry_point_info, entry_point_address): Move
12639 from here...
12640 * objfiles.c (init_entry_point_info, entry_point_address):..to
12641 here.
12642 * symfile.h (init_entry_point_info, entry_point_address): Remove
12643 prototypes.
12644 * objfiles.h (init_entry_point_info, entry_point_address):Add
12645 prototypes.
12646 * cris-tdep.c: Remove include of symfile.h. Add include of
12647 objfiles.h.
12648 * infcall.c: Ditto.
12649 * mcore-tdep.c: Ditto.
12650 * mn10300-tdep.c: Ditto.
12651 * sh64-tdep.c: Ditto.
12652 * v850-tdep.c: Ditto.
12653 * arm-tdep.c: Remove include of symfile.h.
12654 * blockframe.c: Ditto.
12655 * coffread.c: Ditto.
12656 * dbxread.c: Ditto.
12657 * dwarf2read.c: Ditto.
12658 * dwarfread.c: Ditto.
12659 * frv-tdep.c: Ditto.
12660 * ia64-tdep.c: Ditto.
12661 * mdebugread.c: Ditto.
12662 * mipsread.c: Ditto.
12663 * rs6000-tdep.c: Ditto.
12664 * s390-tdep.c: Ditto.
12665 * sh-tdep.c: Ditto.
12666 * xstormy16-tdep.c: Ditto.
12667 * gdbarch.sh: Remove include of symfile.h.
12668 * gdbarch.c: Regenerate.
12669 * solib-irix.c (enable_break): Use entry_point_address().
12670 Add comment about include file.
12671 * xcoffread.c: Add comment about include file.
12672 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12673 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12674 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12675 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12676 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12677
12678 2004-02-13 Andrew Cagney <cagney@redhat.com>
12679
12680 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12681 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12682 copyright.
12683 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12684
12685 2004-02-12 Fred Fish <fnf@redhat.com>
12686
12687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12688 set_gdbarch_store_return_value.
12689
12690 2004-02-12 Andrew Cagney <cagney@redhat.com>
12691
12692 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12693 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12694 (interrupt_query): Ditto.
12695 (ofunc): Delete unused variable.
12696 * cris-tdep.c (cris_abi): Delete unused function.
12697 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12698 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12699 (cris_get_asr_quick_shift_steps): Ditto.
12700 (cris_skip_prologue_frameless_p): Ditto.
12701 * arm-tdep.c (arm_push_return_address): Delete unused function.
12702 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12703 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12704 * s390-tdep.c (s390_function_start): Delete unused function.
12705
12706 2004-02-12 Andrew Cagney <cagney@redhat.com>
12707
12708 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12709 gdbarch.h, gdbarch.c: Re-generate.
12710 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12711 to generic_prologue_frameless_p.
12712 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12713 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12714
12715 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12716
12717 * mips-linux-tdep.c: Include "frame.h".
12718 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12719 (mips_linux_skip_resolver): New functions.
12720 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12721 and set_gdbarch_in_solib_call_trampoline.
12722 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12723 to after set_gdbarch_in_solib_return_trampoline. Only set the
12724 solib hooks to mips16 functions if the OS ABI is unknown.
12725 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12726 including "config/tm-linux.h".
12727 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12728 * Makefile.in (mips-linux-tdep.o): Update.
12729
12730 2004-02-11 David Carlton <carlton@kealia.com>
12731
12732 * linespec.c (decode_compound): Only look for a class symbol when
12733 considering all but the rightmost component.
12734
12735 2004-02-11 Andrew Cagney <cagney@redhat.com>
12736
12737 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12738 abi code are are separatly grouped.
12739
12740 2004-02-11 Andrew Cagney <cagney@redhat.com>
12741
12742 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12743 * gdbarch.h, gdbarch.c: Re-generate.
12744 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12745 * v850-tdep.c (v850_gdbarch_init): Update.
12746 * sh64-tdep.c (sh64_gdbarch_init): Update.
12747 * sh-tdep.c (sh_gdbarch_init): Update.
12748 * s390-tdep.c (s390_gdbarch_init): Update.
12749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12750 * mips-tdep.c (mips_gdbarch_init): Update.
12751 * mcore-tdep.c (mcore_gdbarch_init): Update.
12752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12753 * m32r-tdep.c (m32r_gdbarch_init): Update.
12754 * ia64-tdep.c (ia64_gdbarch_init): Update.
12755 * hppa-tdep.c (hppa_gdbarch_init): Update.
12756 * h8300-tdep.c (h8300_gdbarch_init): Update.
12757 * frv-tdep.c (frv_gdbarch_init): Update.
12758 * d10v-tdep.c (d10v_gdbarch_init): Update.
12759 * cris-tdep.c (cris_gdbarch_init): Update.
12760 * avr-tdep.c (avr_gdbarch_init): Update.
12761 * arm-tdep.c (arm_gdbarch_init): Update.
12762 * alpha-tdep.c (alpha_gdbarch_init): Update.
12763
12764 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12765
12766 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12767 comma.
12768 (sh_sh4al_dsp_register_name): Ditto.
12769
12770 2004-02-10 Andrew Cagney <cagney@redhat.com>
12771
12772 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12773 (mips_init_frame_pc_first): Delete function.
12774 (mips_frame_saved_pc): Delete function.
12775 (mips_frame_chain): Delete function.
12776 (mips_init_extra_frame_info): Delete function.
12777 (mips_xfer_register): Delete unused variable "reg".
12778 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12779 (mips_n32n64_return_value): Delete unused variable "reg".
12780 (mips_n32n64_return_value): Delete unused variable "pos".
12781 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12782 (mips_o32_return_value): Delete unused variable "pos".
12783 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12784 (mips_print_fp_register): Delete unused variable "namelen"
12785 (mips_print_fp_register): Delete unused variable "flt2"
12786 (get_frame_pointer): Delete function.
12787 (cached_proc_desc): Delete static variable.
12788 (mips_pop_frame): Delete function.
12789 (mips_find_saved_regs): Delete function.
12790 (mips_get_saved_register): Delete function.
12791 (mips_saved_pc_after_call): Delete function.
12792 (SIGFRAME_BASE): Delete macro.
12793 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12794 (SIGFRAME_PC_OFF): Delete macro.
12795 (SIGFRAME_REGSAVE_OFF): Delete macro.
12796 (mips_dump_tdep): Do not print deleted macro definitions.
12797
12798 2004-02-10 Andrew Cagney <cagney@redhat.com>
12799
12800 * Makefile.in (SFILES): Remove explictly listed tui files.
12801 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12802
12803 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12804
12805 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12806 to use paddr functions to format ia64 addresses and long values.
12807 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12808 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12809 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12810 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12811 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12812
12813 2004-02-10 Andrew Cagney <cagney@redhat.com>
12814
12815 * defs.h: Do not include "tui.h".
12816 * gdb_curses.h: New file.
12817 * tui/tui-hooks.h: New file.
12818 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12819 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12820 (tui_initialize_io): Delete declaration.
12821 (tui_initialize_readline: Delete redundant declaration.
12822 (struct tui_point): Delete definition.
12823 * tui/tui-data.h (struct tui_point): Define.
12824 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12825 * utils.c: Include "tui/tui.h".
12826 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12827 * printcmd.c [TUI]: Include "tui/tui.h".
12828 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12829 * tui/tui-command.c: Include "gdb_curses.h".
12830 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12831 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12832 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12833 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12834 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12835 * Makefile.in: Update all dependencies.
12836 (tui_hooks_h, gdb_curses_h): Define.
12837 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12838
12839 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12840
12841 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12842 auxf2. Add comments about some other rarely used fields.
12843
12844 2004-02-10 Andrew Cagney <cagney@redhat.com>
12845
12846 * Makefile.in (init.c): Fix script removing duplicates. Problem
12847 reported by Peter Schauer.
12848
12849 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12850
12851 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12852 obstack_specify_allocation.
12853 * objfiles.c (allocate_objfile): Ditto.
12854 * solib-sunos.c (solib_add_common_symbols)
12855 (allocate_rt_common_objfile): Ditto.
12856 * symfile.c (reread_symbols): Ditto.
12857 * gdb_obstack.h: Add comment.
12858
12859 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12860
12861 * linespec.c (decode_line_1, locate_first_half)
12862 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12863 commented out code.
12864
12865 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12866
12867 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12868 obstack_free.
12869
12870 2004-02-09 Andrew Cagney <cagney@redhat.com>
12871
12872 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12873 fails, try find_pc_section. Fix PR c++/1267.
12874 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12875 instead of find_pc_mapped_section.
12876 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12877 not default to the section containing PC. Fix PR symtab/1519.
12878
12879 2004-02-09 Andrew Cagney <cagney@redhat.com>
12880
12881 * Makefile.in (mips-tdep.o): Update dependencies.
12882 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12883 "trad-frame.h".
12884 (mips_unwind_pc): Return the pseudo PC register.
12885 (mips_unwind_dummy_id): New function.
12886 (mips16_fetch_instruction): New function.
12887 (mips32_fetch_instruction): New function.
12888 (struct mips_frame_cache): Define.
12889 (mips_mdebug_frame_cache): New function.
12890 (mips_mdebug_frame_this_id): New function.
12891 (mips_mdebug_frame_prev_register): New function.
12892 (mips_mdebug_frame_unwind): Define.
12893 (mips_mdebug_frame_sniffer): New function.
12894 (mips_mdebug_frame_base_address): New function.
12895 (mips_mdebug_frame_base): Define.
12896 (mips_mdebug_frame_base_sniffer): New function.
12897 (mips_gdbarch_init): Append unwind and base sniffers. Set
12898 unwind_dummy_id.
12899
12900 2004-02-08 Andrew Cagney <cagney@redhat.com>
12901
12902 * frame.c: Print both the register number and name.
12903
12904 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12905 and a sed into a single sed. Make .c and .o patterns more robust.
12906 (OBS): Delete.
12907 (INIT_FILES): Replace OBS with COMMON_OBS.
12908 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12909
12910 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12911
12912 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12913 the PT_WCOOKIE request.
12914
12915 2004-02-08 Andrew Cagney <cagney@redhat.com>
12916
12917 * mips-tdep.c (mips_unwind_pc): New function.
12918 (mips_gdbarch_init): Set mips_unwind_pc.
12919
12920 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12921 (get_frame_id): Allow the UNKNOWN_FRAME.
12922 (frame_register_unwind, get_frame_type): Ditto.
12923
12924 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12925 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12926 unwind_dummy_id indicates a legacy frame.
12927
12928 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12929 * configure: Re-generate.
12930
12931 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12932 methods.
12933
12934 2004-02-08 Andrew Cagney <cagney@redhat.com>
12935
12936 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12937 makefile macro.
12938 * configure: Re-generate.
12939 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12940 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12941 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12942 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12943 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12944 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12945 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12946 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12947 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12948 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12949
12950 2004-02-07 Andrew Cagney <cagney@redhat.com>
12951
12952 * Makefile.in: Update all dependencies.
12953
12954 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12955 * configure: Re-generate.
12956 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12957 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12958 (COMMON_OBS): Add "main.o" and "annotate.o".
12959 (ANNOTATE_OBS): Delete.
12960 (OBS): Remove ANNOTATE_OBS.
12961 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12962 CONFIG_INITS.
12963 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12964 against CONFIG_OBS and "main.o".
12965 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12966 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12967
12968 * tui/tui-command.c: Include "gdb_string.h", delete register
12969 attribute, use ISO-C function signatures.
12970 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12971 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12972 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12973 * tui/tui.c: Ditto.
12974
12975 * tui/tui-command.c: Change variable and function names to lower
12976 case.
12977 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12978 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12979 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12980 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12981 * tui/tui-winsource.c, tui/tui.c: Ditto.
12982
12983 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12984
12985 * buildsym.c (free_pending_blocks, finish_block)
12986 (record_pending_block, make_blockvector, end_symtab): Replace
12987 symbol_obstack with objfile_obstack.
12988 * coffread.c (process_coff_symbol, coff_read_struct_type)
12989 (coff_read_enum_type): Ditto.
12990 * cp-namespace.c (initialize_namespace_symtab)
12991 (check_one_possible_namespace_symbol): Ditto.
12992 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12993 (dwarf2_symbol_mark_computed): Ditto.
12994 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12995 * elfread.c (elf_symtab_read): Ditto.
12996 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12997 (hpread_read_enum_type, hpread_read_function_type)
12998 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12999 Ditto.
13000 * jv-lang.c (get_java_class_symtab, add_class_symbol)
13001 (java_link_class_type): Ditto.
13002 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
13003 (new_symbol): Ditto.
13004 * minsyms.c (install_minimal_symbols): Ditto.
13005 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
13006 (terminate_minimal_symbol_table): Replace symbol_obstack with
13007 objfile_obstack.
13008 (free_objfile): Remove freeing of symbol_obstack.
13009 * objfiles.h: Remove symbol_obstack field.
13010 * pa64solib.c (add_to_solist): Replace symbol_obstack with
13011 objfile_obstack.
13012 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13013 symbol_obstack.
13014 (solib_add_common_symbols): Replace symbol_obstack with
13015 objfile_obstack.
13016 * somsolib.c (som_solib_add): Ditto.
13017 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
13018 (common_block_start, common_block_end): Ditto.
13019 * symfile.c (reread_symbols): Remove freeing and init of
13020 symbol_obstack.
13021 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
13022 * symfile.h: Update comment.
13023 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
13024 stats printing.
13025 * symtab.c (symbol_set_names): Replace symbol_obstack with
13026 objfile_obstack.
13027 * symtab.h (struct general_symbol_info, struct minimal_symbol):
13028 Update comments.
13029 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
13030 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
13031 objfile_obstack.
13032
13033 2004-02-07 Andrew Cagney <cagney@redhat.com>
13034
13035 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
13036 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
13037 fields and variables.
13038 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
13039 (m_beInvisible): Delete macro.
13040 * tui/tui-data.h: Fix case case fields and variables.
13041 (m_genWinPtrIsNull): Delete macro.
13042 (tui_win_list): Rename winList.
13043 (TUI_SRC_WIN): Rename srcWin.
13044 (TUI_DISASM_WIN): Rename disassemWin.
13045 (TUI_DATA_WIN): Rename dataWin.
13046 (TUI_CMD_WIN): Rename cmdWin.
13047 (m_genWinPtrNotNull): Delete macro.
13048 (m_winPtrIsNull): Delete macro.
13049 (m_winPtrNotNull): Delete macro.
13050 (tui_win_is_source_type): Replace m_winIsSourceType
13051 (tui_win_is_auxillary): Replace m_winIsAuzillary.
13052 (tui_win_has_locator): Replace m_hasLocator.
13053 (tui_set_win_highlight): Replace m_setWinHighlightOn and
13054 m_setWinHighlightOff.
13055 * tui/tui-data.c: Update references.
13056 (tui_win_is_source_type, tui_set_win_highlight): New functions.
13057 (tui_win_has_locator, tui_win_is_auxillary): New functions.
13058 * tui/tui-command.c, tui/tui-disasm.c: Update references.
13059 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
13060 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
13061 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13062 * tui/tui-winsource.c, tui/tui.c: Ditto.
13063
13064 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13065
13066 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
13067 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
13068 StackGhost.
13069
13070 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
13071 variable `i6' to `i7'.
13072 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13073
13074 2004-02-07 Andrew Cagney <cagney@redhat.com>
13075
13076 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
13077 (TuiPoint, TuiPointPtr): Ditto.
13078 (TuiStatus, TuiStatusPtr): Ditto.
13079 (TuiWinType, TuiWinTypePtr): Ditto.
13080 (struct tui_point): Rename _TuiPoint.
13081 (tui_get_low_disassembly_address): Rename
13082 tuiGetLowDisassemblyAddress.
13083 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
13084 (tuiFree): Delete declaration.
13085 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
13086 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
13087 * tui/tui.c (tuiFree): Delete function.
13088 * cli/cli-cmds.c (disassemble_command): Update references.
13089 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
13090 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
13091 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13092 * tui/tui-winsource.c: Ditto.
13093
13094 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13095
13096 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13097 coffstab_build_psymtabs, elfstab_build_psymtabs)
13098 (stabsect_build_psymtabs): Replace psymbol_obstack with
13099 objfile_obstack.
13100 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13101 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13102 Ditto.
13103 * dwarfread.c (scan_compilation_units): Ditto.
13104 * elfread.c (elfstab_offset_sections): Ditto.
13105 * hppa-tdep.c (read_unwind_info): Ditto.
13106 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13107 (hpread_end_psymtab): Ditto.
13108 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13109 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13110 Ditto.
13111 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13112 * objfiles.c (add_to_objfile_sections)
13113 (build_objfile_section_table): Ditto.
13114 (allocate_objfile): Remove init of psymbol_obstack.
13115 (free_objfile): Remove freeing of psymbol_obstack.
13116 * objfiles.h (struct objfile): Remove field
13117 psymbol_obstack. Update comments.
13118 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13119 psymbol_obstack with objfile_obstack.
13120 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13121 psymbol_obstack.
13122 * somread.c (som_symfile_offsets, init_import_symbols)
13123 (init_export_symbols): Replace psymbol_obstack with
13124 objfile_obstack.
13125 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13126 * symfile.c (default_symfile_offsets, syms_from_objfile)
13127 (reread_symbols): Remove freeing and init of psymbol_obstack.
13128 (cashier_psymtab): Update comment.
13129 * symmisc.c (print_objfile_statistics): Don't report stats for
13130 psymbol obstack.
13131 * symtab.h (struct general_symbol_info, struct partial_symtab):
13132 Update comments.
13133 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13134 (xcoff_symfile_offsets): Replace psymbol_obstack with
13135 objfile_obstack.
13136
13137 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13138
13139 * objfiles.h (struct objfile): Add objfile_obstack field.
13140 Remove type_obstack field.
13141
13142 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13143 read_structure_scope read_enumeration, new_symbol): Replace
13144 type_obstack with objfile_obstack.
13145 * dwarfread.c (struct_type, enum_type): Ditto.
13146 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13147 (lookup_fundamental_type): Ditto.
13148 * gdbtypes.h (TYPE_ALLOC): Ditto.
13149 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13150 (hpread_read_doc_function_type, hpread_read_struct_type)
13151 (fix_static_member_physnames, hpread_read_array_type)
13152 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13153 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13154 (java_link_class_type): Ditto.
13155 * mdebugread.c (parse_type): Ditto.
13156 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13157 * solib-sunos.c (solib_add_common_symbols): Ditto.
13158 * stabsread.c (define_symbol, read_type, read_member_functions,
13159 read_cpp_abbrev, read_one_struct_field): Ditto.
13160 * symfile.c (reread_symbols): Ditto.
13161 * symmisc.c (print_objfile_statistics): Ditto.
13162
13163 2004-02-07 Andrew Cagney <cagney@redhat.com>
13164
13165 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13166 (tui_exec_info_content): Rename TuiExecInfoContent.
13167 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13168 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13169 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13170 (TuiList, TuiListPtr): Ditto.
13171 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13172 (TuiDataType, TuiDataTypePtr): Ditto.
13173 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13174 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13175 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13176 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13177 (TuiDataElement, TuiDataElementPtr): Ditto.
13178 (TuiWinElement, TuiWinElementPtr): Ditto.
13179 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13180 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13181 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13182 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13183 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13184 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13185 * tui/tui-command.c, tui/tui-data.c: Update references.
13186 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13187 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13188 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13189 * tui/tui-winsource.c, tui/tui.c: Ditto.
13190
13191 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13192
13193 * dwarf2-frame.h: Update copyright.
13194 (enum dwarf2_frame_reg_rule): New.
13195 (struct dwarf2_frame_state_reg): New.
13196 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13197 * dwarf2-frame.c: Update copyright.
13198 (enum dwarf2_reg_rule): Remove.
13199 (struct dwarf2_frame_state): Remove defenition of `struct
13200 dwarf2_frame_state_reg'.
13201 (read_reg): Call get_frame_arch to get the architecture instead of
13202 using CURRENT_GDBARCH.
13203 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13204 DWARF2_FRAME_.
13205 (dwarf2_frame_init_reg): New function.
13206 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13207 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13208 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13209 tags with DWARF2_FRAME_.
13210 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13211 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13212 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13213
13214 2004-02-06 Andrew Cagney <cagney@redhat.com>
13215
13216 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13217 (enum tui_data_type): Rename _TuiDataType.
13218 (struct tui_layout_def): Rename _TuiLayoutDef.
13219 (struct tui_source_element): Rename _TuiSourceElement.
13220 (struct tui_data_element): Rename _TuiDataElement.
13221 (struct tui_command_element): Rename _TuiCommandElement.
13222 (struct tui_locator_element): Rename _TuiLocatorElement.
13223 (union tui_which_element): Define.
13224 (struct tui_win_element): Rename _TuiWinElement.
13225 (struct tui_data_info): Rename _TuiDataInfo.
13226 (struct tui_source_info): Rename _TuiSourceInfo.
13227 (struct tui_command_info): Rename _TuiCommandInfo.
13228 (tui_initialize_static_data): Rename initializeStaticData.
13229 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13230 (tui_alloc_win_info): Rename allocWinInfo.
13231 (tui_init_generic_part): Rename initGenericPart.
13232 (tui_init_win_info): Rename initWinInfo.
13233 (tui_alloc_content): Rename allocContent.
13234 (tui_add_content_elements): Rename addContentElements.
13235 (tui_init_content_element): Rename initContentElement.
13236 (tui_free_window): Rename freeWindow.
13237 (tui_free_win_content): Rename freeWinContent.
13238 (tui_free_data_content): Rename freeDataContent.
13239 (tui_free_all_source_wins_content): Rename
13240 freeAllSourceWinsContent.
13241 (tui_del_window): Rename tuiDelWindow.
13242 (tui_del_data_windows): Rename tuiDelDataWindows.
13243 (tui_partial_win_by_name): Rename partialWinByName.
13244 (tui_win_name): Rename winName.
13245 (tui_current_layout): Rename currentLayout.
13246 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13247 (tui_term_height): Rename termHeight.
13248 (tui_set_term_height_to): Rename setTermHeightTo.
13249 (tui_term_width): Rename termWidth.
13250 (tui_set_term_width_to): Rename setTermWidthTo.
13251 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13252 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13253 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13254 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13255 (tui_source_windows): Rename sourceWindows.
13256 (tui_clear_source_windows): Rename clearSourceWindows.
13257 (tui_clear_source_windows_detail): Rename
13258 clearSourceWindowsDetail.
13259 (tui_clear_win_detail): Rename clearWinDetail.
13260 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13261 (tui_default_tab_len): Rename tuiDefaultTabLen.
13262 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13263 (tui_win_with_focus): Rename tuiWinWithFocus.
13264 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13265 (tui_layout_def): Rename tuiLayoutDef.
13266 (tui_win_resized): Rename tuiWinResized.
13267 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13268 (tui_next_win): Rename tuiNextWin.
13269 (tui_prev_win): Rename tuiPrevWin.
13270 (tui_add_to_source_windows): Rename addToSourceWindows.
13271 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13272 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13273 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13274 * tui/tui.c, tui/tui-data.c: Ditto.
13275 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13276 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13277
13278 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13279 (struct symtab): Declare.
13280 (tui_set_source_content): Rename tuiSetSourceContent.
13281 (tui_show_symtab_source): Rename tuiShowSource.
13282 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13283 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13284 * tui/tui-source.c: Update copyright. Update references.
13285 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13286 * tui/tui-stack.c: Update references.
13287
13288 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13289 (struct tui_win_info): Declare.
13290 (tui_scroll_forward): Rename tuiScrollForward.
13291 (tui_scroll_backward): Rename tuiScrollBackward.
13292 (tui_scroll_left): Rename tuiScrollLeft.
13293 (tui_scroll_right): Rename tuiScrollRight.
13294 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13295 (tui_resize_all): Rename tuiResizeAll.
13296 (tui_refresh_all_win): Rename tuiRefreshAll.
13297 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13298 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13299 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13300 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13301
13302 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13303 (tui_erase_data_content): Rename tuiEraseDataContent.
13304 (tui_display_all_data): Rename tuiDisplayAllData.
13305 (tui_check_data_values): Rename tuiCheckDataValues.
13306 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13307 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13308 (tui_first_data_element_no_in_line): Rename
13309 tuiFirstDataElementNoInLine.
13310 (tui_delete_data_content_windows): Rename
13311 tuiDeleteDataContentWindows.
13312 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13313 (tui_display_data_from): Rename tuiDisplayDataFrom.
13314 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13315 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13316 * tui/tui-win.c, tui/tui-regs.c: Update references.
13317 * tui/tui-layout.c, tui/tui.c: Update references.
13318
13319 * tui/tui-wingeneral.h: Update copyright.
13320 (m_allBeVisible): Delete macro.
13321 (m_allBeInvisible): Delete macro.
13322 (struct tui_gen_win_info): Declare.
13323 (struct tui_win_info): Declare.
13324 (tui_unhighlight_win): Rename unhighlightWin.
13325 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13326 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13327 (tui_make_window): Rename makeWindow.
13328 (tui_copy_win): Rename copyWin.
13329 (tui_box_win): Rename boxWin.
13330 (tui_highlight_win): Rename highlightWin.
13331 (tui_check_and_display_highlight_if_needed): Rename
13332 checkAndDisplayHighlightIfNeeded.
13333 (tui_refresh_all): Rename refreshAll.
13334 (tui_delete_win): Rename tuiDelwin.
13335 (tui_refresh_win): Rename tuiRefreshWin.
13336 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13337 (tui_make_visible, tui_make_invisible): New functions.
13338 (tui_make_all_visible, tui_make_all_invisible): New functions.
13339 (make_all_visible): Rename makeAllVisible.
13340 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13341 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13342 * tui/tui-windata.c, tui/tui-win.c: Update references.
13343 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13344 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13345
13346 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13347
13348 * proc-api.c (write_with_trace): Initialize local variable to
13349 silence compiler warning.
13350
13351 2004-02-06 Andrew Cagney <cagney@redhat.com>
13352
13353 * tui/tui-source.h: Do not include "defs.h".
13354 (struct tui_win_info): Declare.
13355 (tui_set_source_content_nil): Declare.
13356 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13357 (union tui_line_or_address): Rename _TuiLineOrAddress.
13358 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13359 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13360 (tui_update_source_window_as_is): Rename
13361 tuiUpdateSourceWindowAsIs.
13362 (tui_update_source_windows_with_addr): Rename
13363 tuiUpdateSourceWindowsWithAddr.
13364 (tui_update_source_windows_with_line): Rename
13365 tuiUpdateSourceWindowsWithLine.
13366 (tui_clear_source_content): Rename tuiClearSourceContent.
13367 (tui_erase_source_content): Rename tuiEraseSourceContent.
13368 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13369 (tui_show_source_content): Rename tuiShowSourceContent.
13370 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13371 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13372 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13373 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13374 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13375 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13376 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13377 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13378 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13379 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13380 (struct tui_win_info): Declare.
13381 * tui/tui-stack.c: Update references.
13382 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13383 * tui/tui-win.c, tui/tui-source.c: Ditto.
13384 * tui/tui.c, tui/tui-disasm.c: Ditto.
13385
13386 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13387
13388 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13389 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13390
13391 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13392
13393 * infrun.c (handle_inferior_event): Allow for breakpoint
13394 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13395 and SIGEMT. Update comments.
13396 * NEWS (Revised SPARC target): Mention support for non-executable
13397 stack.
13398
13399 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13400
13401 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13402 * inftarg.c: Update copyright year.
13403 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13404 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13405 (sparc_xfer_wcookie): New function.
13406 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13407 * Makefile.in (sparc-nat.o): Update dependencies.
13408 * config/sparc/nm-nbsd.h: Include "target.h".
13409 (NATIVE_XFER_WCOOKIE): New define.
13410 (sparc_xfer_wcookie): New prototype.
13411
13412 2004-02-04 Andrew Cagney <cagney@redhat.com>
13413
13414 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13415 SYSCALL_TRAP function.
13416 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13417
13418 2004-02-04 Andrew Cagney <cagney@redhat.com>
13419 Daniel Jacobowitz <drow@mvista.com>
13420
13421 * objfiles.h: Delete comments refering to inside_entry_func and
13422 DEPRECATED_FRAME_CHAIN_VALID.
13423 * defs.h (inside_entry_func): Update prototype..
13424 * blockframe.c (inside_entry_func): Rename to
13425 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13426 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13427
13428 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13429
13430 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13431 outside of #ifdef SOLIB_ADD region.
13432 (do_restore_lang_radix_cleanup): Ditto.
13433 (resolve_pending_breakpoint): Ditto.
13434
13435 2004-02-03 Andrew Cagney <cagney@redhat.com>
13436
13437 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13438 (process_note_abi_tag_sections): Delete unused function.
13439 (ia64_read_fp): Delete unused function.
13440 (gdbarch_extract_struct_value_address): Delete declaration.
13441
13442 2004-02-02 Andrew Cagney <cagney@redhat.com>
13443
13444 * vax-tdep.c (vax_frame_chain): Delete call to
13445 deprecated_inside_entry_file.
13446 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13447
13448 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13449
13450 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13451 column that's "empty" or "same value" when eliminating REG_RA
13452 rules.
13453
13454 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13455
13456 * NEWS: Add information about new pending breakpoint support.
13457
13458 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13459
13460 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13461 and pending fields for pending breakpoint support.
13462 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13463 (condition_command): Only parse condition if not a pending
13464 breakpoint.
13465 (print_one_breakpoint): Add support for pending breakpoints.
13466 (describe_other_breakpoints): Add checks to verify we are not
13467 dealing with pending breakpoints.
13468 (check_duplicates): Don't check pending breakpoints.
13469 (set_raw_breakpoint): Initialize pending flag.
13470 (do_restore_lang_radix_cleanup): New cleanup routine.
13471 (resolve_pending_breakpoint): New function.
13472 (re_enable_breakpoints_in_shlibs): Try and resolve any
13473 pending breakpoints via resolve_pending_breakpoint.
13474 (mention): Add pending breakpoint support.
13475 (parse_breakpoint_sals): Add new parameter to pass to
13476 decode_line_1 to indicate silent errors when files or functions
13477 are not found. Change all callers.
13478 (do_captured_parse_breakpoint): New function.
13479 (break_command_1): Change prototype to return an rc value and to
13480 take an optional pending breakpoint pointer. Support creating
13481 a pending breakpoint if a "not found" form of error occurs when
13482 parsing the breakpoint. Also support resolving an existing pending
13483 breakpoint and be silent if the resolution fails.
13484 (create_breakpoints): Change prototype to take pending breakpoint
13485 pointer. When resolving a pending breakpoint, use the new pointer
13486 to provide a conditional or commands added by the end-user.
13487 (delete_breakpoint): Add appropriate check for pending.
13488 (breakpoint_re_set_one): Ditto.
13489 (do_enable_breakpoint): Ditto.
13490
13491 2004-02-02 David Carlton <carlton@kealia.com>
13492
13493 * valops.c (enum oload_classification): New.
13494 (find_overload_match): Break implementation into separate
13495 functions; delete #if 0'd code; look for symbols within
13496 namespaces.
13497 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13498 (find_oload_champ,oload_method_static,classify_oload_match): New.
13499 * cp-support.h: Add declaration for cp_func_name; update
13500 declaration for make_symbol_overload_list.
13501 * cp-support.c (cp_func_name): New.
13502 (overload_list_add_symbol): Fix comment, use
13503 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13504 (make_symbol_overload_list): Take a function name and a namespace
13505 instead of a symbol; change implementation.
13506 (make_symbol_overload_list_using): New.
13507 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13508
13509 2004-02-02 Fred Fish <fnf@redhat.com>
13510
13511 * main.c (gdb_stdtarg): Move definition to group with other
13512 gdb_stdtarg definitions and update copyright years.
13513 * remote-sim.c (gdb_os_write_stderr): Write output to
13514 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13515 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13516 gdb_stderr stream and update copyright years.
13517
13518 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13519
13520 * Makefile.in (mips-linux-nat.o): Update dependencies.
13521 * mips-linux-nat.c: Include mips-tdep.h.
13522
13523 2004-02-01 Roland McGrath <roland@redhat.com>
13524
13525 * sol-thread.c (sol_thread_xfer_partial): New function.
13526 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13527 (init_sol_core_ops): Likewise.
13528
13529 * procfs.c (procfs_xfer_partial): New function.
13530 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13531 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13532
13533 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13534 procfs_xfer_auxv function.
13535
13536 * procfs.c (procfs_make_note_section): If we can read
13537 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13538 * linux-proc.c (linux_make_note_section): Likewise.
13539
13540 * auxv.h: New file.
13541 * auxv.c: New file.
13542 * Makefile.in (auxv_h): New variable.
13543 (COMMON_OBS): Add auxv.o here.
13544 (auxv.o): New target.
13545
13546 * corelow.c (core_xfer_partial): New function.
13547 (init_core_ops): Use it for core_ops.to_xfer_partial.
13548
13549 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13550 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13551 macro if that is defined.
13552
13553 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13554
13555 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13556 and check the specified thread for each breakpoint.
13557 * breakpoint.h (bpstat_stop_status): Update prototype.
13558 * infrun.c (handle_inferior_event): Update calls to
13559 bpstat_stop_status.
13560
13561 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13562
13563 * Makefile.in (cli-cmds.o): Add $(readline_h).
13564
13565 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13566
13567 * cli/cli-cmds.c: Include readline.h.
13568 (complete_command): Pass the start of the last word to
13569 complete_line.
13570
13571 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13572
13573 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13574 argument, and change first argument to a CORE_ADDR.
13575 * breakpoint.h (bpstat_stop_status): Update prototype.
13576 * infrun.c (adjust_pc_after_break): Add a new comment.
13577 (handle_inferior_event): Update calls to bpstat_stop_status.
13578
13579 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13580
13581 * breakpoint.h: Update copyright years.
13582
13583 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13584
13585 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13586 (bpstat_stop_status): Don't decrement PC.
13587 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13588 prototype.
13589 * infrun.c (adjust_pc_after_break): New function.
13590 (handle_inferior_event): Call it, early. Remove later references
13591 to DECR_PC_AFTER_BREAK.
13592 (normal_stop): Add commentary.
13593
13594 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13595
13596 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13597 2004-01-27 double-free fix.
13598
13599 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13600
13601 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13602 (sparc32_frame_prev_register): Handle StackGhost.
13603 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13604
13605 2004-01-29 Roland McGrath <roland@redhat.com>
13606
13607 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13608 * configure: Regenerated.
13609
13610 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13611 * Makefile.in (procfs.o): Add dep.
13612
13613 2004-01-28 Andrew Cagney <cagney@redhat.com>
13614
13615 * tui/tui-stack.h: Update copyright.
13616 (struct frame_info): Add opaque declaration.
13617 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13618 (tui_show_locator_content): Rename tuiShowLocatorContent.
13619 (tui_show_frame_info): Rename tuiShowFrameInfo.
13620 * tui/tui-stack.c: Update copyright. Update references.
13621 * tui/tui-winsource.c: Update references.
13622 * tui/tui-win.c: Update references.
13623 * tui/tui-layout.c: Update references.
13624 * tui/tui-hooks.c: Update copyright, update references.
13625 * tui/tui.c: Update copyright, update references.
13626 * tui/tui-disasm.c: Update references.
13627
13628 2004-01-28 David Carlton <carlton@kealia.com>
13629
13630 * dwarf2read.c (add_partial_structure): Use demangled name if
13631 namespace equals "".
13632
13633 2004-01-27 Jim Blandy <jimb@redhat.com>
13634
13635 Clean up misapplied patch:
13636 * dwarf2read.c (determine_prefix): Change one of the two forward
13637 declarations for 'determine_prefix_aux' to a declaration for this.
13638 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13639 argument to 'die_specification'.
13640
13641 * dwarf2read.c (read_func_scope): Re-indent comment.
13642
13643 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13644
13645 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13646 b->exp to NULL after freeing so that error during re-parsing or
13647 evaluation of expressions associated with breakpoint don't
13648 eventually lead to re-freeing of storage.
13649 Committed by Andrew Cagney.
13650
13651 2004-01-27 Andrew Cagney <cagney@redhat.com>
13652
13653 * source.c (ambiguous_line_spec): Delete undefined declaration.
13654 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13655 (m32r_set_server_address, m32r_set_download_path): Ditto.
13656 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13657
13658 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13659
13660 * dwarf2read.c: Update calls to changed and renamed functions, and
13661 references to moved variables.
13662
13663 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13664 language, language_defn, list_in_scope, and ftypes members.
13665 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13666 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13667 (baseaddr): Remove globals.
13668
13669 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13670 (set_cu_language, die_is_declaration, die_specification)
13671 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13672 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13673 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13674 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13675
13676 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13677 cu.list_in_scope. Don't initialize cu_header_offset.
13678 (add_partial_symbol): Add local baseaddr.
13679 (psymtab_to_symtab_1): Add local baseaddr. Use
13680 objfile->section_offsets for consistency. Don't initialize
13681 cu_header_offset; do initialize cu.header.offset and
13682 cu.list_in_scope.
13683 (read_file_scope, read_func_scope, read_lexical_block_scope)
13684 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13685
13686 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13687
13688 * PROBLEMS: Add gdb/1516.
13689
13690 2003-12-29 Robert Millan <robertmh@gnu.org>
13691
13692 Patch committed by Andrw Cagney.
13693 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13694 * configure.tgt: Match knetbsd*-gnu.
13695
13696 2004-01-26 Andrew Cagney <cagney@redhat.com>
13697
13698 * breakpoint.c (catch_command_1): Delete #ifdef code.
13699 (catch_fork_command_1): Delete #ifdef wrapper.
13700 (catch_exec_command_1): Ditto.
13701 (catch_load_command_1): Ditto.
13702 (catch_unload_command_1): Ditto.
13703
13704 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13705 (catch_breakpoint): Delete #if0ed function.
13706 (disable_catch_breakpoint): Ditto.
13707 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13708 (disable_catch, enable_catch, delete_catch): Ditto.
13709
13710 2004-01-26 Andrew Cagney <cagney@redhat.com>
13711
13712 * remote.c (echo_check, quit_flag): Delete variables.
13713 (cisco_kernel_mode): Delete variable.
13714 (minitelnet_return, tty_input, escape_count): Delete variables.
13715 (remote_cisco_mode): Delete variable.
13716 (remote_cisco_open, remote_cisco_close): Delete function.
13717 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13718 (init_remote_cisco_ops): Delete function.
13719 (_initialize_remote): Do not install "remote cisco" code.
13720 (read_frame): Delete cisco specific code.
13721 (remote_info_process): Delete function.
13722 (remote_wait): Delete cisco specific code.
13723 (remote_cisco_section_offsets): Delete function.
13724 (remote_cisco_objfile_relocate): Delete function.
13725 (remote_async_wait): Delete cisco specific code.
13726 (minitelnet, readtty, readsocket): Delete function.
13727
13728 2004-01-26 Andrew Cagney <cagney@redhat.com>
13729
13730 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13731 comments mentioning extract_returned_value_address.
13732 * infcmd.c (print_return_value): Update. Add comments on
13733 extract_returned_value_address.
13734 * stack.c (return_command): Add comments on
13735 extract_returned_value_address.
13736 * values.c: Update comment.
13737 * m32r-tdep.c: Update comment.
13738 * sparc-tdep.c: Update comment.
13739 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13741 * sh64-tdep.c (sh64_gdbarch_init): Update.
13742 * sh-tdep.c (sh_gdbarch_init): Update.
13743 * s390-tdep.c (s390_gdbarch_init): Update.
13744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13745 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13746 * m68k-tdep.c (m68k_gdbarch_init): Update.
13747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13748 * m32r-tdep.c (m32r_gdbarch_init): Update.
13749 * ia64-tdep.c (ia64_gdbarch_init): Update.
13750 * h8300-tdep.c (h8300_gdbarch_init): Update.
13751 * frv-tdep.c (frv_gdbarch_init): Update.
13752 * arm-tdep.c (arm_gdbarch_init): Update.
13753 * alpha-tdep.c (alpha_gdbarch_init): Update.
13754
13755 2004-01-26 Andrew Cagney <cagney@redhat.com>
13756
13757 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13758 SYMBOL_LOCATION_FUNCS
13759 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13760 "struct symbol_ops".
13761 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13762 type to "struct symbol_ops".
13763 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13764 (struct symbol): Replace ".aux_value.loc.funcs" and
13765 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13766 (SYMBOL_OBJFILE): Delete macro.
13767 (SYMBOL_LOCATION_FUNCS): Delete macro.
13768 (SYMBOL_LOCATION_BATON): Update.
13769 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13770 intead of SYMBOL_LOCATION_FUNCS.
13771 * ax-gdb.c (gen_var_ref): Ditto.
13772 * printcmd.c (address_info): Ditto.
13773 * findvar.c (read_var_value): Ditto.
13774 (symbol_read_needs_frame): Ditto.
13775
13776 2004-01-26 Andrew Cagney <cagney@redhat.com>
13777
13778 * dwarf2read.c (read_func_scope): Document frame-base hack.
13779
13780 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13781
13782 * infcmd.c (print_return_value): Plug memory leak; delete
13783 ui_stream object. Rename argument `structure_return' to
13784 `struct_return'.
13785
13786 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13787
13788 * infcmd.c (print_return_value): Wrap long lines.
13789 (finish_command_continuation, finish_command): Remove unused
13790 variable `funcaddr'. Fix some coding-standards problems.
13791
13792 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13793 SECT_SIZE is large enough, not whether it's exactly the right size.
13794 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13795 TDEP->fpregset to zero.
13796
13797 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13798 floating-point registers for traditional NetBSD core files.
13799 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13800 TDEP->sizeof_fpregset here.
13801
13802 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13803
13804 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13805 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13806 function with code split out from
13807 sparc32nbsd_sigcontext_frame_cache.
13808 (sparc32nbsd_sigcontext_frame_cache): Use
13809 sparc32nbsd_sigcontext_saved_regs.
13810 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13811 OpenBSD.
13812 * sparcobsd-tdep.c: New file.
13813 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13814 (sparcobsd-tdep.o): New dependency.
13815 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13816 * config/sparc/obsd.mt: New file.
13817
13818 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13819 TDEP->fpregset to be initialized to enable core file register
13820 sets.
13821
13822 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13823
13824 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13825 Add opaque declarations.
13826 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13827 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13828 function with code split out from
13829 sparc64nbsd_sigcontext_frame_cache.
13830 (sparc64nbsd_sigcontext_frame_cache): Use
13831 sparc64nbsd_sigcontext_saved_regs.
13832 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13833 OpenBSD.
13834 * sparc64obsd-tdep.c: New file.
13835 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13836 (sparc64obsd-tdep.o): New dependency.
13837 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13838 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13839 * config/sparc/obsd64.mt: New file.
13840
13841 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13842 read the instruction at PC.
13843
13844 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13845 value of GDB_OSABI_DEFAULT.
13846 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13847 instead of GDB_OSABI_NETBSD_AOUT.
13848
13849 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13850
13851 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13852 copyright.
13853
13854 2004-01-23 Andrew Cagney <cagney@redhat.com>
13855
13856 * printcmd.c (display_command): Replace tui_set_display call with
13857 tui_set_layout_for_display_command.
13858 * tui/tui.h (enum tui_win_type): Define.
13859 (tui_set_layout): Delete declaration.
13860 (tui_set_layout_for_display_command): Rename set_tui_layout.
13861 * tui/tui-data.h (enum tui_layout_type): Define.
13862 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13863 "tui.h".
13864 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13865 (tui_default_win_height): Rename tuiDefaultWinHeight.
13866 (tui_default_win_viewport_height): Rename
13867 tuiDefaultWinViewportHeight.
13868 (tui_set_layout): RenametuiSetLayout.
13869 * tui/tui-layout.c: Update references.
13870 * tui/tui.c: Update references.
13871 * tui/tui-disasm.c: Update references.
13872
13873 2004-01-23 David Carlton <carlton@kealia.com>
13874
13875 Partial workaround for PR c++/1511:
13876 * cp-namespace.c: Include frame.h.
13877 (cp_lookup_transparent_type): New
13878 (cp_lookup_transparent_type_loop): New.
13879 * cp-support.h: Declare cp_lookup_transparent_type.
13880 * symtab.c (basic_lookup_transparent_type): Renamed from
13881 lookup_transparent_type.
13882 (lookup_transparent_type): Replace old body by a call to
13883 current_language->la_lookup_transparent_type.
13884 * symtab.h: Update copyright. Declare
13885 basic_lookup_transparent_type.
13886 * language.h: Update copyright.
13887 (struct language_defn): Add la_lookup_transparent_type.
13888 * language.c: Update copyright.
13889 (unknown_language_defn): Add basic_lookup_transparent_type.
13890 (auto_language_defn): Add basic_lookup_transparent_type.
13891 (local_language_defn): Add basic_lookup_transparent_type.
13892 * ada-lang.c: Update copyright.
13893 (ada_language_defn): Add basic_lookup_transparent_type.
13894 * c-lang.c: Update copyright.
13895 (c_language_defn): Add basic_lookup_transparent_type.
13896 (cplus_language_defn): Add basic_lookup_transparent_type.
13897 (asm_language_defn): Add basic_lookup_transparent_type.
13898 (minimal_language_defn): Add basic_lookup_transparent_type.
13899 * f-lang.c: Update copyright.
13900 (f_language_defn): Add basic_lookup_transparent_type.
13901 * jv-lang.c: Update copyright.
13902 (java_language_defn): Add basic_lookup_transparent_type.
13903 * m2-lang.c: Update copyright.
13904 (m2_language_defn): Add basic_lookup_transparent_type.
13905 * objc-lang.c: Update copyright.
13906 (objc_language_defn): Add basic_lookup_transparent_type.
13907 * p-lang.c: Update copyright.
13908 (p_language_defn): Add basic_lookup_transparent_type.
13909 * scm-lang.c: Update copyright.
13910 (scm_language_defn): Add basic_lookup_transparent_type.
13911 * Makefile.in (cp-namespace.o): Depend on frame.h.
13912
13913 2004-01-23 David Carlton <carlton@kealia.com>
13914
13915 Patch for PR c++/1520:
13916 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13917 properly if we have a specification die.
13918 (determine_prefix_aux): Rename from determine_prefix.
13919 (determine_prefix): Like the old determine_prefix, but never
13920 returns NULL.
13921
13922 2004-01-23 Theodore A. Roth <troth@openavr.org>
13923
13924 * avr-tdep.c: Update copyright.
13925 (avr_iaddr_p): Delete unused function.
13926 (avr_saddr_p): Delete unused function.
13927
13928 2004-01-23 David Carlton <carlton@kealia.com>
13929
13930 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13931 Fix for PR symtab/1534.
13932
13933 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13934
13935 * NEWS (New native configurations): Mention OpenBSD/sparc and
13936 OpenBSD/sparc64.
13937 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13938 * configure.host: Likewise.
13939 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13940 handler for OpenBSD.
13941 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13942
13943 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13944
13945 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13946 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13947
13948 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13949 * cli/cli-cmds.c (shell_escape): Likewise.
13950
13951 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13952 OpenBSD .note.openbsd.ident sections.
13953
13954 2004-01-22 David Carlton <carlton@kealia.com>
13955
13956 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13957 get_scope_pc_bounds.
13958 (read_file_scope): Ditto.
13959 (get_scope_pc_bounds): New function, produced by extracting code
13960 from the above two functions, consolidating it, and adding support
13961 for DW_TAG_namespace.
13962
13963 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13964
13965 * osabi.c (MAX_NOTESZ): New define.
13966 (check_note): New function.
13967 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13968 check_note.
13969
13970 2004-01-21 Roland McGrath <roland@redhat.com>
13971
13972 * MAINTAINERS (write after approval): Add myself.
13973
13974 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13975
13976 * utils.c (init_page_info): Move declarations of `rows' and
13977 `cols' before the __GO32__-specific code. Move the closing brace
13978 outside the #ifdef __GO32__..#endif block.
13979 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13980
13981 2004-01-21 Paul Brook <paul@codesourcery.com>
13982
13983 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13984 BPSTAT_WHAT_CHECK_SHLIBS.
13985
13986 2004-01-21 Paul Brook <paul@codesourcery.com>
13987
13988 * MAINTAINERS: Add myself to write-after-approval.
13989
13990 2004-01-20 Andrew Cagney <cagney@redhat.com>
13991
13992 * ax-gdb.c (print_axs_value): Delete unused function.
13993 * jv-lang.c (java_lookup_type): Delete unused function.
13994 * cli/cli-dump.c (dump_filetype): Delete unused function.
13995 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13996 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13997 (mips_getstring): Delete unused function.
13998 (pmon_insert_breakpoint): Delete #if0ed function.
13999 (PMON_MAX_BP): Delete #if0ed MACRO.
14000 (mips_pmon_bp_info): Delete #if0ed variable.
14001 (pmon_remove_breakpoint): Delete #if0ed function.
14002 * monitor.c (monitor_write_even_block): Delete unused function.
14003 (monitor_write_memory_block): Delete #if0ed code.
14004 * dink32-rom.c (dink32_load): Delete unused function.
14005 (_initialize_dink32_rom): Delete #if0ed code.
14006 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
14007
14008 * tui/tui-command.c: Update references.
14009 * tui/tui-io.c: Update references.
14010 * tui/tui-command.h: Update copyright.
14011 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
14012
14013 * source.c (ambiguous_line_spec): Delete never-defined function.
14014 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
14015 * gdbtypes.c (add_name, add_mangled_type): Ditto.
14016 * cli/cli-cmds.c (validate_comname): Ditto.
14017
14018 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
14019 "tui-data.h".
14020 (tui_set_disassem_content): Rename tuiSetDisassemContent.
14021 (tui_show_disassem): Rename tuiShowDisassem.
14022 (tui_show_disassem_and_update_source): Rename
14023 tuiVerticalDisassemScroll.
14024 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
14025 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
14026 * tui/tui.h: Update copyright.
14027 (enum tui_status): Define.
14028 * tui/tui-data.h (enum tui_scroll_direction): Define.
14029 * tui/tui-disasm.c: Update copyright. Update references.
14030 * tui/tui-winsource.c: Update copyright. Update references.
14031 * tui/tui-win.c: Update references.
14032 * tui/tui-layout.c: Update references.
14033
14034 2004-01-20 Andrew Cagney <cagney@redhat.com>
14035
14036 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
14037 sym2 to start of block.
14038
14039 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
14040
14041 * MAINTAINERS: Delete mmalloc.
14042 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
14043 * NEWS: Mention removal of --with-malloc.
14044 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
14045 * config.in: Regenerate.
14046 * configure: Regenerate.
14047 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
14048 USE_MMALLOC, MMCHECK_FORCE.
14049 * gdbinit.in: Remove mmalloc.
14050 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
14051 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
14052 * config/i386/go32.mh: Likewise.
14053 * config/i386/interix.mh: Likewise.
14054 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
14055
14056 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
14057
14058 * linespec.c (decode_variable, symtab_from_filename): Call
14059 error_silent with error message instead of throwing an exception
14060 directly.
14061 * defs.h (error_silent, error_output_message): Add prototypes.
14062 (catch_exceptions_with_msg): Ditto.
14063 * utils.c (error_silent, error_output_message): New functions.
14064 * top.c (catch_exceptions_with_msg): New function.
14065
14066 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
14067
14068 * mi/mi-cmds.h (enum print_values): Add definition.
14069
14070 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
14071 type and value for simple data types and just the name and type
14072 for complex ones, if required.
14073
14074 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
14075 children, if required.
14076
14077 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14078
14079 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
14080 unused declarations.
14081
14082 2004-01-19 Andrew Cagney <cagney@redhat.com>
14083
14084 * top.h (mapped_symbol_files): Delete declaration.
14085 * main.c (captured_main): Delete option "m" and "mapped".
14086 * objfiles.c (mapped_symbol_files): Delete variable.
14087 * symfile.c (symbol_file_command): Delete mmap code.
14088 (symbol_file_add_with_addrs_or_offsets): Ditto.
14089 (add_symbol_file_command, reread_separate_symbols): Ditto.
14090 * objfiles.h (OBJF_MAPPED): Delete.
14091 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14092 (free_objfile) [USE_MMALLOC]: Ditto.
14093 (open_existing_mapped_file): Delete function.
14094 (open_mapped_file): Delete function.
14095 (map_to_file): Delete function.
14096
14097 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14098
14099 * infrun.c (step_into_function): Account for possible breakpoint
14100 adjustment when computing ``stop_func_start''.
14101
14102 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14103
14104 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14105 the region size against the size of a pointer, not the size of
14106 a register as given by DEPRECATED_REGISTER_SIZE.
14107
14108 2004-01-19 Andrew Cagney <cagney@redhat.com>
14109
14110 * tui/tui-regs.h: Include "tui-data.h".
14111 (tuiFirstRegElementNoInLine): Delete declaration.
14112 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14113 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14114 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14115 (tui_calculate_regs_column_count): Rename
14116 tuiCalculateRegsColumnCount.
14117 (tui_check_register_values): Rename tuiCheckRegisterValues.
14118 (tui_show_registers): Rename tuiShowRegisters.
14119 (tui_display_registers_from_line): Rename
14120 tuiDisplayRegistersFromLine.
14121 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14122 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14123 (tui_first_reg_element_no_inline): Rename
14124 tuiFirstRegElementNoInLine.
14125 * tui/tui-data.h: Update copyright.
14126 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14127 * tui/tui-windata.c: Update copyright, update references.
14128 * tui/tui-regs.c: Update copyright, update references.
14129 * tui/tui-win.c: Update copyright, update references.
14130 * tui/tui-layout.c: Update copyright, update references.
14131
14132 2004-01-18 Andrew Cagney <cagney@redhat.com>
14133
14134 * tui/tui-io.c: Update copyright.
14135 (key_is_end_sequence, key_is_backspace): New functions.
14136 (key_is_command_char, key_is_start_sequence): New function.
14137 (tui_getc): Update references.
14138 * tui/tui-io.h: Update copyright.
14139 (m_tuiStartNewLine): Delete macro.
14140 (m_isBackspace, m_isDeleteChar): Delete macros.
14141 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14142 (m_isNextPage, m_isPrevPage): Delete macros.
14143 (m_isLeftArrow, m_isRightArrow): Delete macros.
14144 (m_isXdbStyleCommandChar): Delete macro.
14145 (key_is_start_sequence): Declare, replace m_isStartSequence.
14146 (key_is_end_sequence): Declare, replace m_isEndSequence.
14147 (key_is_backspace): Declare ,replace m_isBackspace.
14148 (key_is_command_char): Declare, replace m_isCommandChar.
14149 * tui/tui-command.c: Update copyright.
14150 (tuiDispatchCtrlChar): Update references.
14151
14152 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14153 tuiSourceWin.h.
14154
14155 * tui/tui-command.c: Rename tui/tuiCommand.c.
14156 * tui/tui-command.h: Rename tui/tuiCommand.h.
14157 * tui/tui-data.c: Rename tui/tuiData.c.
14158 * tui/tui-data.h: Rename tui/tuiData.h.
14159 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14160 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14161 * tui/tui-io.c: Rename tui/tuiIO.c.
14162 * tui/tui-io.h: Rename tui/tuiIO.h.
14163 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14164 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14165 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14166 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14167 * tui/tui-source.c: Rename tui/tuiSource.c.
14168 * tui/tui-source.h: Rename tui/tuiSource.h.
14169 * tui/tui-stack.c: Rename tui/tuiStack.c.
14170 * tui/tui-stack.h: Rename tui/tuiStack.h.
14171 * tui/tui-win.c: Rename tui/tuiWin.c.
14172 * tui/tui-win.h: Rename tui/tuiWin.h.
14173 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14174 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14175 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14176 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14177 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14178 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14179 * tui/tui-file.c: Update includes.
14180 * tui/tui-hooks.c: Update includes.
14181 * tui/tui-interp.c: Update includes.
14182 * tui/tui.c: Update includes.
14183 * Makefile.in: Update all tui/ dependencies.
14184 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14185
14186 * Makefile.in: Update copyright. Update dependencies.
14187
14188 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14189 problem.
14190
14191 2004-01-18 Andrew Cagney <cagney@redhat.com>
14192
14193 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14194 instead of register_gdbarch_init.
14195
14196 * remote-sds.c (tohex): Delete unused function. Update copyright.
14197 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14198 * v850-tdep.c (v850_register_virtual_size): Ditto.
14199 * target.c (normal_target_post_startup_inferior): Ditto.
14200 * source.c (ambiguous_line_spec): Ditto.
14201 * remote.c (adapt_remote_get_threadinfo): Ditto.
14202 * mi/mi-out.c (out_field_fmt): Ditto.
14203 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14204 (output_control_change_notification): Ditto.
14205 * m68k-tdep.c (m68k_register_byte): Ditto.
14206 (m68k_remote_breakpoint_from_pc): Ditto.
14207 * ui-out.c (init_ui_out_state): Delete unused declaration.
14208 * stabsread.c (search_value): Ditto.
14209 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14210 * maint.c (print_section_table): Ditto.
14211 * infrun.c (set_follow_fork_mode_command): Ditto.
14212
14213 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14214
14215 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14216 DW_CFA_def_cfa_exporession. Add support for
14217 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14218 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14219
14220 2004-01-18 Andrew Cagney <cagney@redhat.com>
14221
14222 * ocd.c: Update copyright.
14223 (bdm_read_register_command): Delete unused function.
14224 (_initialize_remote_ocd): Delete commented out reference.
14225 (get_quoted_char, reset_packet): Delete #if0ed function.
14226 (output_packet, put_quoted_char): Delete #if0ed function.
14227 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14228 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14229 (BDM_BREAKPOINT): Delete #if0ed macro.
14230 (remote_timeout): Delete #if0ed variable.
14231
14232 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14233
14234 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14235 (core-sol2.o): Remove dependency.
14236 * core-sol2.c: Remove file.
14237
14238 2004-01-17 Andrew Cagney <cagney@redhat.com>
14239
14240 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14241 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14242 enums.
14243
14244 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14245
14246 * remote.c: Update copyright years.
14247
14248 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14249
14250 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14251
14252 2004-01-17 Andrew Cagney <cagney@redhat.com>
14253
14254 * mdebugread.c: Update copyright.
14255 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14256 (parse_type, parse_procedure): Ditto.
14257 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14258
14259 * cris-tdep.c (cris_store_struct_return): Put back accidently
14260 deleted function.
14261
14262 * gdbarch.sh: Update copyright year.
14263 * gdbarch.h, gdbarch.c: Re-generate.
14264
14265 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14266
14267 Suggested by George Anzinger.
14268 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14269 correct stack offset. Include unknown opcode numbers in the error
14270 message.
14271
14272 2004-01-17 Andrew Cagney <cagney@redhat.com>
14273
14274 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14275 extract_struct_value_address, i386 does not set it.
14276 * sparc64-tdep.c (sparc64_init_abi): Do not set
14277 extract_struct_value_address, never called.
14278 (sparc64_extract_struct_value_address): Delete function.
14279 * m68hc11-tdep.c: Update copyright.
14280 (m68hc11_gdbarch_init): Delete redundant assignment of
14281 extract_struct_value_address.
14282 * i386-tdep.c: Update copyright.
14283 (i386_gdbarch_init): Do not set extract_struct_value_address,
14284 never called.
14285 (i386_extract_struct_value_address): Delete function.
14286 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14287 extract_struct_value_address, never called.
14288 (sparc32_extract_struct_value_address): #if 0 function. Add
14289 comments explaining its future.
14290
14291 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14292
14293 * arm-tdep.c (arm_write_pc): New function.
14294 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14295
14296 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14297
14298 * breakpoint.c (must_shift_inst_regs): Delete.
14299 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14300 and SHIFT_INST_REGS.
14301 * infcmd.c (step_1, step_1_continuation): Delete references to
14302 SHIFT_INST_REGS.
14303 * infrun.c (keep_going): Likewise.
14304 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14305 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14306
14307 2004-01-17 Andrew Cagney <cagney@redhat.com>
14308
14309 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14310 * gdbarch.h, gdbarch.c: Re-generate.
14311 * infcmd.c (print_return_value): Delete reference to
14312 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14313
14314 * cris-tdep.c (cris_gdbarch_init): Do not set
14315 deprecated_extract_struct_value_address.
14316
14317 * xstormy16-tdep.c: Update copyright.
14318 (xstormy16_extract_struct_value_address): Update to current
14319 extract struct value address interface.
14320 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14321 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14322 current extract struct value address interface.
14323 (sh64_gdbarch_init): Set extract_struct_value_address.
14324
14325 * cris-tdep.c: Update copyright.
14326 (cris_extract_struct_value_address): Delete function.
14327 (struct_return_address): Delete variable.
14328 (cris_store_struct_return): Do not set struct_return_address.
14329
14330 * mcore-tdep.c: Update copyright.
14331 (mcore_extract_struct_value_address): Delete function. Update
14332 comments.
14333 (mcore_gdbarch_init): Update.
14334 * mn10300-tdep.c: Update copyright.
14335 (mn10300_extract_struct_value_address): Delete function.
14336 (mn10300_gdbarch_init): Update.
14337 * v850-tdep.c: Update copyright.
14338 (v850_extract_struct_value_address): Delete.
14339 (v850_gdbarch_init): Update.
14340 * ns32k-tdep.c: Update copyright.
14341 (ns32k_extract_struct_value_address): Delete.
14342 (ns32k_gdbarch_init): Update.
14343 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14344 (hppa_gdbarch_init): Update.
14345 * vax-tdep.c: Update copyright.
14346 (vax_extract_struct_value_address): Delete.
14347 (vax_gdbarch_init): Update.
14348
14349 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14350 * gdbarch.h, gdbarch.c: Re-generate.
14351 * procfs.c (procfs_fetch_registers): Delete reference to
14352 DEPRECATED_NPC_REGNUM.
14353 (procfs_store_registers): Ditto.
14354 * regcache.c (generic_target_write_pc): Simplify.
14355 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14356
14357 * core-sol2.c (fetch_core_registers): Replace
14358 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14359
14360 * hppa-tdep.c: Update copyright year.
14361 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14362 NPC_REGNUM.
14363 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14364
14365 * mips-tdep.c (mips_write_pc): New function.
14366 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14367 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14368 (mips_find_saved_regs, mips_software_single_step: Ditto.
14369 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14370 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14371
14372 2004-01-17 Andrew Cagney <cagney@redhat.com>
14373
14374 * mips-tdep.c: Re-indent. Group functions by ABI.
14375
14376 2004-01-17 Andrew Cagney <cagney@redhat.com>
14377
14378 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14379 * gdbarch.c: Re-generate.
14380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14381 DECR_PC_AFTER_BREAK to zero.
14382 * vax-tdep.c (vax_gdbarch_init): Ditto.
14383 * v850-tdep.c (v850_gdbarch_init): Ditto.
14384 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14385 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14386 * sh-tdep.c (sh_gdbarch_init): Ditto.
14387 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14388 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14389 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14390 * mips-tdep.c (mips_gdbarch_init): Ditto.
14391 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14393 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14395 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14396 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14397 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14398 * frv-tdep.c (frv_gdbarch_init): Ditto.
14399 * cris-tdep.c (cris_gdbarch_init): Ditto.
14400 * avr-tdep.c (avr_gdbarch_init): Ditto.
14401 * arm-tdep.c (arm_gdbarch_init): Ditto.
14402 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14403
14404 2004-01-17 J. Brobecker <brobecker@gnat.com>
14405
14406 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14407 Delete, no longer used.
14408 (read_subrange_type): New function, mostly extracted from
14409 read_array_type().
14410 (read_array_type): Replace extracted code by call to
14411 read_subrange_type().
14412 (dwarf2_get_attr_constant_value): New function.
14413 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14414 (add_partial_symbol): Likewise.
14415 (process_die): Likewise.
14416 (new_symbol): Likewise.
14417 (read_type_die): Likewise.
14418
14419 2004-01-16 Andrew Cagney <cagney@redhat.com>
14420
14421 * symfile.c: Update copyright year.
14422 (compare_symbols): Delete unused function.
14423 * stabsread.c: Update copyright year.
14424 (lrs_general_complaint): Delete unused function.
14425 (ref_search_value): Ditto.
14426 (get_substring): Delete declaration.
14427 * sh64-tdep.c: Update copyright year.
14428 (sh64_get_gdb_regnum): Delete unused function.
14429 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14430 Delete unused function.
14431
14432 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14433
14434 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14435 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14436
14437 2004-01-16 Andrew Cagney <cagney@redhat.com>
14438
14439 Changes from Peter Schauer.
14440 * rs6000-tdep.c: Update copyright year.
14441 (rs6000_push_dummy_call): Update the stack pointer before
14442 accessing the corresponding stack region.
14443 * rs6000-nat.c: Update copyright year.
14444 (set_host_arch): Set "info.abfd" to "exec_bfd".
14445
14446 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14447
14448 * blockframe.c: Update copyright year.
14449 (inside_entry_func): Don't treat a zero PC specially.
14450
14451 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14452
14453 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14454 variable.
14455 (gcore_create_callback): Ditto. Skip any memory segment that has
14456 no permissions set.
14457
14458 2004-01-14 David Carlton <carlton@kealia.com>
14459
14460 Change symbols for C++ nested types to contain the fully qualified
14461 name, if possible. (At least in the DWARF-2 case.) Partial fix
14462 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14463 c++/895.
14464 * c-exp.y (qualified_type): Handle types nested within classes.
14465 * cp-namespace.c: Update comments.
14466 (cp_set_block_scope): Delete #if 0.
14467 (cp_lookup_nested_type): Handle types nested within classes.
14468 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14469 when appropriate.
14470 (add_partial_symbol): Add the name of the enclosing namespace to
14471 types.
14472 (pdi_needs_namespace): New.
14473 (add_partial_namespace): Tweak comment.
14474 (add_partial_structure): New.
14475 (psymtab_to_symtab_1): Initialize processing_current_prefix
14476 here...
14477 (process_die): instead of here.
14478 (read_structure_scope): Try to figure out the name of the class or
14479 namespace that the structure might be defined within.
14480 (read_enumeration): Generate fully-qualified names, if possible.
14481 (read_namespace): Don't set name to NULL.
14482 (die_specification): New.
14483 (new_symbol): Generate fully-qualified names for types.
14484 (read_type_die): Determine appropriate prefix.
14485 (determine_prefix): New.
14486 (typename_concat): New.
14487 (class_name): New.
14488 * valops.c (value_aggregate_elt): Pass NOSIDE to
14489 value_struct_elt_for_reference.
14490 (value_struct_elt_for_reference): Make static, add NOSIDE
14491 parameter, call value_maybe_namespace_elt as a last resort.
14492 (value_namespace_elt): Break out code into
14493 value_maybe_namespace_elt.
14494 (value_maybe_namespace_elt): New.
14495
14496 2004-01-12 Andrew Cagney <cagney@redhat.com>
14497
14498 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14499 cooked floating-point registers.
14500 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14501 and value_to_register.
14502
14503 2004-01-13 Andrew Cagney <cagney@redhat.com>
14504
14505 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14506 * gdbarch.c: Re-generate.
14507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14508 FUNCTION_START_OFFSET.
14509 * v850-tdep.c (v850_gdbarch_init): Ditto.
14510 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14511 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14512 * sh-tdep.c (sh_gdbarch_init): Ditto.
14513 * s390-tdep.c (s390_gdbarch_init): Ditto.
14514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14515 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14516 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14517 * mips-tdep.c (mips_gdbarch_init): Ditto.
14518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14519 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14521 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14523 * i386-tdep.c (i386_gdbarch_init): Ditto.
14524 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14525 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14526 * frv-tdep.c (frv_gdbarch_init): Ditto.
14527 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14528 * cris-tdep.c (cris_gdbarch_init): Ditto.
14529 * avr-tdep.c (avr_gdbarch_init): Ditto.
14530 * arm-tdep.c (arm_gdbarch_init): Ditto.
14531 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14532
14533 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14534
14535 * infrun.c (follow_fork_mode_ask): Remove.
14536 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14537 (follow_fork): Simplify and remove internal error for
14538 follow_fork_mode_ask.
14539 (_initialize_infrun): Update "set follow-fork-mode" help text.
14540
14541 2004-01-13 Andrew Cagney <cagney@redhat.com>
14542
14543 * configure.in: Update copyright year.
14544 (build_warnings): Add -Wunused-label.
14545 * configure: Re-generate.
14546
14547 2004-01-12 Andrew Cagney <cagney@redhat.com>
14548
14549 * exec.h (exec_ops): Make "extern".
14550
14551 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14552 the function is void.
14553 (mips_pseudo_register_write): Ditto.
14554
14555 2004-01-12 Andrew Cagney <cagney@redhat.com>
14556
14557 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14558 call. Never defined.
14559 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14560 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14561 (struct sparc_gregset, struct regcache): Ditto.
14562 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14563
14564 2004-01-12 Andrew Cagney <cagney@redhat.com>
14565
14566 * mi/ChangeLog: Delete file. Renamed to ...
14567 * mi/ChangeLog-1999-2003: New file.
14568 * tui/ChangeLog: Delete file. Renamed to ...
14569 * tui/ChangeLog-1998-2003: New file.
14570
14571 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14572
14573 * sparc64nbsd-tdep.c: Include "regset.h".
14574 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14575 Remove variables.
14576 (fetch_core_registers): Remove function.
14577 (sparc64nbsd_core_fns): Remove variable.
14578 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14579 functions.
14580 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14581 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14582 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14583
14584 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14585 sparc_extract_struct_value_address.
14586 (sparc32_gdbarch_init): Set extract_struct_value_address.
14587 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14588 function.
14589 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14590 return_value_on_stack.
14591
14592 * NEWS: Mention that %cs and %ss have been added to the AMD64
14593 configurations
14594
14595 * frame.c: Update copyright year.
14596 (get_prev_frame): Improve comment.
14597
14598 * sparc64fbsd-tdep.c: Include "regset.h".
14599 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14600 Remove variables.
14601 (fetch_core_registers): Remove function.
14602 (sparc64fbsd_core_fns): Remove variable.
14603 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14604 functions.
14605 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14606 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14607 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14608
14609 * sparcnbsd-tdep.c: Include "regset.h".
14610 (fetch_core_registers): Remove function.
14611 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14612 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14613 functions.
14614 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14615 TDEP->fpregset.
14616 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14617
14618 * sparc-tdep.h (struct regset): Provide opaque declaration.
14619 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14620 fpregset and sizeof_fpregset members.
14621 * sparc-tdep.c (struct regset): Provide opaque declaration.
14622 (sparc_regset_from_core_section): New function.
14623 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14624 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14625 Set regset_from_core_section when appropriate.
14626
14627 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14628
14629 * x86-64-tdep.c (amd64_non_pod_p): New function.
14630 (amd64_classify_aggregate): Return class memory for non-POD
14631 C++ structure types.
14632
14633 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14634 argument. Use it to reserve a register if necessary.
14635 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14636 amd64_push_arguments.
14637
14638 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14639
14640 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14641 register numbers in comments.
14642 * x86-64-tdep.h: Update copyright year.
14643 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14644 Adjust for addition of %cs and %ss.
14645 * amd64fbsd-nat.c: Update copyright year.
14646 (reg_offset): Add register offsets for %cs and %ss.
14647 * amd64fbsd-tdep.c: Update copyright year.
14648 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14649 (amd64fbsd_sc_reg_offset): Likewise.
14650 * x86-64-linux-nat.c: Update copyright year.
14651 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14652 and %ss.
14653 * amd64nbsd-nat.c: Update copyright year.
14654 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14655 * amd64nbsd-tdep.c: Update copyright year.
14656 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14657 * x86-64-linux-tdep.c: Update copyright year.
14658 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14659 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14660 * regformats/reg-x86-64.dat: Add %cs and %ss.
14661
14662 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14663 variables to prevent long lines. Update comments to reflect
14664 reality.
14665
14666 2004-01-09 David Carlton <carlton@kealia.com>
14667
14668 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14669 * dwarf2read.c (read_namespace): Pull out name-generating code
14670 into namespace_name. Rename previous_namespace to previous_prefix
14671 and processing_current_namespace to processing_current_prefix..
14672 (namespace_name): New function.
14673 (add_partial_symbol): Substitute uses of pdi->name with
14674 actual_name.
14675 * cp-support.h: Rename processing_current_namespace to
14676 processing_current_prefix.
14677 Update copyright year.
14678 * cp-namespace.c: Rename processing_current_namespace to
14679 processing_current_prefix.
14680 Update copyright year.
14681
14682 2004-01-09 Andrew Cagney <cagney@redhat.com>
14683
14684 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14685
14686 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14687
14688 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14689 complaining.
14690 (process_one_symbol): Deal with N_PATCH stabs.
14691
14692 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14693
14694 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14695 ifdeffed code.
14696 Update copyright year.
14697
14698 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14699
14700 * config/pa/tm-hppa.h: Update extern declarations for
14701 hppa32_hpux_frame_saved_pc_in_sigtramp,
14702 hppa32_hpux_frame_base_before_sigtramp, and
14703 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14704
14705 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14706
14707 * config/pa/tm-hppah.h: Update copyright years.
14708
14709 2004-01-08 Andrew Cagney <cagney@redhat.com>
14710
14711 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14712 (mips_o32_reg_struct_has_addr): Delete function.
14713 (mips_gdbarch_init): Update.
14714 (mips_extract_struct_value_address): Delete function.
14715
14716 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14717
14718 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14719 reality.
14720
14721 2004-01-07 Andrew Cagney <cagney@redhat.com>
14722
14723 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14724 architecture's elf flags (when available).
14725
14726 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14727 FPU to the start, check the MIPS FPU when looking for an old
14728 architecture.
14729 (set_mipsfpu_single_command): Update the architecture.
14730 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14731
14732 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14733 (mips_mask_address_p): Add "tdep" parameter.
14734 (show_mask_address, mips_addr_bits_remove): Update.
14735 (mips_dump_tdep): Update.
14736 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14737 (MIPS_STACK_ARGSIZE): Delete macro.
14738 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14739 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14740 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14741 (mips_dump_tdep): Update.
14742 (MIPS_SAVED_REGSIZE): Delete macro.
14743 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14744 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14745 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14746 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14747 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14748 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14749 (mips_pop_frame, return_value_location): Update.
14750 (mips_n32n64_return_value, mips_dump_tdep): Update.
14751
14752 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14753 MIPS ABI.
14754
14755 * mips-tdep.c: Update copyright.
14756 (mips_gdbarch_init): Merge two code blocks handling the register
14757 name and number layout.
14758
14759 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14760
14761 * tracepoint.c (validate_actionline): Fix segv at EOF
14762
14763 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14764
14765 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14766 properly for static fields.
14767
14768 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14769 Jason Molenda <jmolenda@apple.com>
14770
14771 * disasm.c: Update copyright to include 2004.
14772 (do_mixed_source_and_assembly): For uiout asm list
14773 and tuple cleanups, initialize to null_cleanup instead of
14774 NULL and do so prior to loop. Only reset when we close off
14775 the tuple/list. Move check for whether to close off the
14776 asm tuple/list to after dump_insns call where it will be run
14777 on each loop iteration.
14778
14779 2004-01-05 Andrew Cagney <cagney@redhat.com>
14780
14781 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14782 should be a switch case and not a label.
14783 * mips-tdep.c (mips32_next_pc): Delete unused labels
14784 "greater_equal_branch" and "less_zero_branch".
14785 * jv-valprint.c (java_print_value_fields): Delete unused label
14786 "flush_it".
14787
14788 * target.c (unpush_target): Only close a target that is in the
14789 target stack.
14790
14791 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14792
14793 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14794 address from [sp + 64] instead of %o2.
14795
14796 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14797 fixes PR backtrace/1476.
14798
14799 2004-01-05 Andrew Cagney <cagney@redhat.com>
14800
14801 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14802 move to start of file.
14803 * i386-tdep.h (struct regcache): Add opaque declaration.
14804 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14805 declaration.
14806 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14807 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14808 * win32-nat.c (fake_create_process): Use ISO C style definition.
14809 * stabsread.c (define_symbol): Delete #ifndef
14810 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14811 stabs_argument_has_addr call, macro never defined.
14812
14813 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14814
14815 * op50-rom.c: Delete.
14816 * w89k-rom.c: Delete.
14817 * Makefile.in: Remove references.
14818
14819 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14820
14821 * x86-64-tdep.c: Update copyright year.
14822 (struct amd64_register_info): Rename from x86_64_register_info.
14823 (amd64_register_info): Rename from x86_64_register_info.
14824 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14825 (amd64_register_name): Rename from x86_64_register_name.
14826 (amd64_register_type): Rename from x86_64_register_type.
14827 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14828 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14829 (amd64_dwarf_reg_to_regnum): Rename from
14830 x86_64_dwarf_reg_to_regnum.
14831 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14832 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14833 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14834 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14835 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14836 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14837 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14838 (amd64_frame_cache): Rename from x86_64_frame_cache.
14839 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14840 (amd64_frame_prev_register): Rename from
14841 x86_64_frame_prev_register.
14842 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14843 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14844 (amd64_sigtramp_frame_cache): Rename from
14845 x86_64_sigtramp_frame_cache.
14846 (amd64_sigtramp_frame_prev_register): Rename from
14847 x86_64_sigtramp_frame_prev_register.
14848 (amd64_sigtramp_frame_unwind): Rename from
14849 x86_64_sigtramp_frame_unwind.
14850 (amd64_sigtramp_frame_sniffer): Rename from
14851 x86_64_sigtramp_frame_sniffer.
14852 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14853 (amd64_frame_base): Rename from x86_64_frame_base.
14854 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14855 (amd64_frame_align): Rename from x86_64_frame_align.
14856 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14857 (amd64_regset_from_core_section): Rename from
14858 x86_64_regset_from_core_section.
14859 (x86_64_init_abi): Update comments.
14860
14861 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14862
14863 * MAINTAINERS (write after approval): Add myself.
14864
14865 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14866
14867 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14868 `float' arguments.
14869
14870 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14871
14872 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14873 such that it mentions a specific version of GCC that exhibits this
14874 bug.
14875
14876 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14877
14878 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14879 structure that has a single `float' member, store it in %f1 in
14880 addition to %f0.
14881
14882 * sparc-sol2-nat.c: Add missing '\'.
14883
14884 * sparc-tdep.c (sparc32_return_value): New function.
14885 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14886 Remove functions.
14887 (sparc32_gdbarch_init): Set return_value, don't set
14888 extract_return_value, store_return_value, use_struct_convention
14889 and return_value_on_stack.
14890
14891 * sparc-sol2-nat.c: Add missing ')'.
14892
14893 2004-01-03 J. Brobecker <brobecker@gnat.com>
14894
14895 * infrun.c (handle_step_into_function): New function.
14896 (handle_inferior_event): Extract out some code into the new
14897 function above.
14898
14899 2004-01-03 J. Brobecker <brobecker@gnat.com>
14900
14901 * infrun.c (handle_inferior_event): Move the declaration of
14902 real_stop_pc inside the if blocks where it is used.
14903
14904 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14905
14906 * sparc64-tdep.c (sparc64_16_byte_align_p)
14907 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14908 Use check_typedef to get subtypes of structures and unions.
14909 (sparc64_store_return_value): Fix calculation of the appropriate
14910 offset into VALBUF when storing a structure or union.
14911 (sparc64_return_value): New function.
14912 (sparc64_use_struct_convention): Remove function.
14913 (sparc64_init_abi): Set return_value, don't set
14914 extract_return_value, store_return_value and
14915 use_struct_convention.
14916
14917 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14918
14919 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14920 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14921 gdb/config/alpha/xm-alphaosf.h,
14922 gdb/config/powerpc/tm-ppcle-eabi.h,
14923 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14924 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14925 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14926 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14927 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14928 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14929 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14930 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14931 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14932 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14933 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14934 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14935 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14936 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14937 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14938 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14939 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14940 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14941 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14942 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14943 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14944 Remove lines for .cvsignore files.
14945
14946 2004-01-03 J. Brobecker <brobecker@gnat.com>
14947
14948 * infrun.c: Back out the previous change.
14949
14950 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14951
14952 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14953 sparc-*-sunos4* to the list of REMOVED configurations.
14954
14955 * configure.tgt: Add back sparc-*-vxworks*.
14956 * remote-vxsparc.c: Remove all includes except for "defs.h",
14957 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14958 Include "sparc-tdep.h".
14959 (SPARC_R_G1): New define.
14960 (vxsparc_gregset): New variable.
14961 (ext_format_sparc): Remove extern declaration.
14962 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14963 sparc32_supply_fpregset.
14964 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14965 sparc_collect_rwindow and sparc32_collect_fpregset.
14966 * config/sparc/tm-vxworks.h: New file, based on recently removed
14967 tm-vxsparc.h.
14968 * config/sparc/vxworks.mt: New file, based on recently removed
14969 vxworks.mt.
14970
14971 2004-01-03 J. Brobecker <brobecker@gnat.com>
14972
14973 * infrun.c (handle_step_into_function): New function.
14974 (handle_inferior_event): Extract out some code into the new
14975 function above.
14976
14977 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14978
14979 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14980 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14981 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14982 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14983 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14984 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14985 (sparc_nat_h): New variable.
14986 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14987 (tm-sun4os4.h): Remove dependency.
14988 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14989 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14990 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14991 sparc-tdep.o): Update dependencies.
14992 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14993 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14994 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14995 dependencies.
14996 * configure.host: Remove existing sparc-*-lynxos*,
14997 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14998 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14999 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
15000 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
15001 triplets.
15002 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
15003 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
15004 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
15005 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
15006 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
15007 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
15008 sparc64-*-solaris2* and sparc64-*-* triplets.
15009 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
15010 "symtab.h" and "objfiles.h".
15011 (BIAS): Remove define.
15012 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
15013 (X_DISP19): Remove macros.
15014 (sparc_fetch_instruction): Remove function.
15015 (struct gdbarch_tdep): Remove definition.
15016 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
15017 (sparc_breakpoint_from_pc): Remove function.
15018 (struct sparc64_frame_cache): Remove definition.
15019 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
15020 sparc64_unwind_pc): Remove functions.
15021 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
15022 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
15023 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
15024 (sparc64_frame_cache): Change return type to `struct
15025 sparc_frame_cache *'. Simply call sparc_frame_cache.
15026 (sparc64_frame_this_id, sparc64_frame_prev_register,
15027 sparc64_frame_base_address): Use `struct sparc_frame_cache'
15028 instead of `struct sparc64_frame_cache.
15029 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
15030 sparc_analyze_control_transfer, sparc_software_single_step,
15031 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
15032 _initialize_sparc64_tdep): Remove functions.
15033 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
15034 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
15035 macros.
15036 (sparc64_supply_gregset, sparc64_collect_gregset,
15037 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
15038 (sparc64_init_abi): New function.
15039 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
15040 inclusion guard. Include "sparc-tdep.h".
15041 (BIAS): Define.
15042 (r_tstate_offset, r_fprs_offset): New defines.
15043 (enum sparc_regnum): Remove defenition.
15044 (enum sparc64_regnum): Reformat.
15045 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
15046 (sparc64_init_abi, sparc64_supply_gregset,
15047 sparc64_collect_gregset, sparc64_supply_fpregset,
15048 sparc64_collect_fpregset): New prototypes.
15049 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
15050 Add extern declarations.
15051 (sparc64_sol2_init_abi): New prototype.
15052 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15053 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15054 prototypes.
15055 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
15056 "sparnbsd-nat.h".
15057 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
15058 functions.
15059 (_initialize_sparc64fbsd_nat): Remove initialization of
15060 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
15061 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
15062 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
15063 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
15064 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
15065 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
15066 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
15067 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
15068 (sparc64fbsd_r_y_offset): Remove variables.
15069 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
15070 Make static and const.
15071 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15072 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15073 functions.
15074 (sparc64fbsd_gregset): New variable.
15075 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
15076 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
15077 and sparc64_supply_fpregset.
15078 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
15079 (sparc64fbsd_sigtramp_frame_this_id)
15080 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
15081 (sparc64fbsd_sigtramp_frame_unwind): New variable.
15082 (sparc64fbsd_sigtramp_frame_sniffer): New function.
15083 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
15084 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
15085 * sparcnbsd-tdep.c: Update copyright year. Include
15086 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
15087 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
15088 "value.h" and "sparcnbsd-tdep.h".
15089 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
15090 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
15091 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15092 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15093 defines.
15094 (sparcnbsd_gregset): New variable.
15095 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15096 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15097 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15098 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15099 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15100 variables.
15101 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15102 (sparc32nbsd_sigcontext_frame_this_id)
15103 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15104 (sparc32nbsd_sigcontext_frame_unwind): New variable.
15105 (sparc32nbsd_sigtramp_frame_sniffer): New function.
15106 (sparcnbsd_get_longjmp_target_32,
15107 sparcnbsd_get_longjmp_target_64): Remove functions.
15108 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15109 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15110 sparcnbsd_init_elf): Remove.
15111 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15112 (sparcnbsd_elf_init_abi): New functions.
15113 (_initialize_sparcnbsd_tdep): New prototype.
15114 (_initialize_sparnbsd_tdep): Update.
15115 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15116 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15117 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15118 * config/sparc/linux.mh: Update comment.
15119 (XM_FILE, HOST_IPC): Remove variables.
15120 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15121 sparc-linux-nat.o.
15122 * config/sparc/linux.mt: Update comment.
15123 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15124 * config/sparc/nbsd.mt: Reformat.
15125 * config/sparc/nbsd64.mh: Update comment.
15126 (NATDEPFILES): Add sparc-nat.o.
15127 * config/sparc/nbsd64.mt: Update comment.
15128 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15129 (TM_FILE): Set to tm-nbsd.h.
15130 * config/sparc/nbsdelf.mh: Update comment.
15131 (NATDEPFILES): Add sparc-nat.o.
15132 (XM_FILE): Delete.
15133 * config/sparc/nbsdaout.mh: Update comment.
15134 (NATDEPFILES): Add sparc-nat.o
15135 (XM_FILE): Delete.
15136 * config/sparc/nm-linux.h: Update copyright year. Don't include
15137 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15138 inclusion.
15139 (KERNEL_U_SIZE): Remove define.
15140 (kernel_u_size): Remove prototype.
15141 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15142 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15143 "regcache.h".
15144 (CHILD_PREPARE_TO_STORE): Remove define.
15145 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15146 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15147 sparcnbsd-nat.c: Rewrite files.
15148 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15149 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15150 sparcnbsd-tdep.h: Remove files.
15151 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15152 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15153 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15154 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15155 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15156 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15157 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15158 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15159 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15160 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15161 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15162 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15163 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15164 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15165 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15166 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15167 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15168 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15169 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15170
15171 2004-01-02 Andrew Cagney <cagney@redhat.com>
15172
15173 From 2003-12-18 Kazuhiro Inaoka:
15174 * configure.host: Add m32r-linux target.
15175
15176 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15177
15178 * top.c (print_gdb_version): Update year to 2004.
15179
15180 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15181
15182 * MAINTAINERS: Add myself to the write-after-approval category.
15183
15184 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15185
15186 From Bernardo Innocenti <bernie@develer.com>:
15187 * configure.tgt: Add uClinux target.
15188
15189 2004-01-02 Andrew Cagney <cagney@redhat.com>
15190
15191 * utils.c (do_my_cleanups): Make static, add forward declaration.
15192 * defs.h (do_my_cleanups): Delete declaration.
15193
15194 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15195
15196 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15197 bfd/ChangeLog-0203.
15198
15199 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15200
15201 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15202 in <machine/reg.h>.
15203 * configure, config.in: Regenerate.
15204
15205 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15206 tui/ChangeLog-1998-2003.
15207 \f
15208 Local Variables:
15209 mode: change-log
15210 left-margin: 8
15211 fill-column: 74
15212 version-control: never
15213 End:
This page took 0.331265 seconds and 5 git commands to generate.