* stabsread.c (read_huge_number): Add support for reading octal
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-12-13 Jerome Guitton <guitton@gnat.com>
2
3 * stabsread.c (read_huge_number): Add support for reading octal
4 signed number in twos complement, based on the size of this
5 number.
6 (read_range_type): Add support for reading octal signed bounds
7 in twos complements, based on the size of the type.
8 (read_type_number, read_cpp_abbrev, read_member_functions,
9 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
10 read_struct_type, read_array_type, read_enum_type,
11 read_sun_builtin_type, read_sun_floating_type): Update calls to
12 read_huge_number.
13 (read_type): Update call to read_range_type.
14
15 2004-12-13 Randolph Chung <tausq@debian.org>
16
17 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
18 solib_get_solib_by_pc method through target vector.
19 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
20 method through target vector.
21
22 2004-12-13 Joel Brobecker <brobecker@gnat.com>
23
24 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
25 parameter name to make it clear that we already have a next
26 frame. Return the sigcontext from that next frame instead
27 of the frame following it.
28
29 2004-12-13 Randolph Chung <tausq@debian.org>
30
31 * Makefile.in (pa64solib_h, somsolib_h): Delete.
32 (solib_pa64_h, solib_som_h): New.
33 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
34 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
35 (pa64solib.o, somsolib.o): Delete.
36 (solib-pa64.o, solib-som.o): New.
37 * hppa-hpux-tdep.c: Include new solib interfaces.
38 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
39 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
40 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
41 is available, use it to determine the base of unwind records.
42 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
43 * hpread.c: Replace somsolib.h with solib-som.h.
44 (hpread_process_one_debug_symbol): Use target vector to get thread
45 start address.
46 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
47 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
48 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
49 * config/pa/tm-hppah.h: Use new solib interface.
50
51 2004-12-13 Randolph Chung <tausq@debian.org>
52
53 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
54 sections to be trampolines too.
55
56 2004-12-13 Ben Elliston <bje@au.ibm.com>
57
58 * f-exp.y (typename): Remove unused nonterminal.
59 (name): Likewise.
60
61 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
62
63 Committed by Andrew Cagney.
64 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
65 markup.
66
67 2004-12-12 Andrew Cagney <cagney@gnu.org>
68
69 * frame.c (get_prev_frame): When unwinding normal frames, check
70 that the PC isn't zero.
71 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
72 zero PC.
73
74 * MAINTAINERS: Reword description of what "Target Instruction Set
75 Architectures" covers.
76
77 2004-12-12 Mark Kettenis <kettenis@gnu.org>
78
79 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
80
81 2004-12-11 Mark Kettenis <kettenis@gnu.org>
82
83 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
84 (hppa_hpux_save_state_offset): New function, replacing variable
85 with the same name.
86 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
87 functions.
88 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
89 Use new hppa_hpux_save_state_offset function. Add special
90 handling for handling 64-bit "flags" register.
91 (hppa_hpux_store_register): Likewise.
92 (hppa_hpux_child_can_run): Tweak comment.
93
94 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
95 (inf_ttrace_attach): Likewise.
96 (inf_ttrace_resume_callback): New function.
97 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
98 lwps and call inf_ttrace_resume_callback instead.
99 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
100
101 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
102
103 2004-12-10 Michael Snyder <msnyder@redhat.com>
104
105 * mn10300-tdep.c: New file. This is a re-implementation of
106 the mn10300 target back-end using the new frame api etc.
107 * mn10300-tdep.h: New file.
108 * config/mn10300/mn10300.mt: New file (or replace old file).
109 * configure.tgt: Add mn10300 target.
110
111 2004-12-10 Mark Kettenis <kettenis@gnu.org>
112
113 * configure.host (hppa*-*-hpux11*): Remove.
114 * config/pa/hpux11.mh: Remove file.
115
116 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
117 typo.
118
119 2004-12-10 Kris Warkentin <kewarken@qnx.com>
120
121 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
122 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
123 function and nto_set_target function.
124 (struct nto_target_ops): Put comments inline with struct. Add osabi
125 sniffer hook. Redefine macros to permit testing/assignment. Remove
126 nto_ prefix from members.
127 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
128 dynamically to support arbitrary root paths. Check for basename of
129 lib in search path and then check for absolute.
130 (nto_in_dynsym_resolve_code): New function.
131 (nto_core_sniffer): New function.
132 (regset_core_fns): Register core sniffer.
133 (nto_initialize_signals): New function.
134 (_initialize_nto_tdep): Move signal initialization code to above to
135 avoid initialization race conditions.
136 (nto_set_target): New function.
137 * nto-procfs.c: Minor formatting/indenting changes.
138 (procfs_is_nto_target): New function.
139 (procfs_open): Set nto_is_nto_target.
140 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
141 initialization race conditions.
142 (procfs_create_inferior): Resume inferior after creation.
143 * i386-nto-tdep.c: Declare i386_nto_target.
144 (init_i386nto_ops): Initialize i386_nto_target instead of
145 current_nto_target.
146 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
147 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
148 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
149 sniffer.
150
151 2004-12-10 Mark Kettenis <kettenis@gnu.org>
152
153 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
154 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
155 (hppa_hpux_init_abi): Reformat long line.
156
157 2004-12-09 Mark Kettenis <kettenis@gnu.org>
158
159 * hppa-hpux-tdep.c: Include "regset.h".
160 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
161 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
162 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
163 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
164 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
165 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
166 functions.
167 (hppa_hpux_regset): New variable.
168 (hppa_hpux_regset_from_core_section): New function.
169 (hppa_hpux_init_abi): Set regset_from_core_section.
170 (hppa_hpux_core_osabi_sniffer): New function.
171 (_initialize_hppa_hpux_tdep): Register
172 hppa_hpux_core_osabi_sniffer.
173 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
174 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
175
176 2004-12-09 Randolph Chung <tausq@debian.org>
177
178 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
179 text and data sections.
180 (pa64_current_sos): Also include the dld in the list of current shared
181 objects.
182 (pa64_solib_get_solib_by_pc): Update comments.
183 (pa64_solib_get_text_base): New function.
184 (pa64_solib_select): Set solib_get_text_base method.
185
186 2004-12-08 Daniel Jacobowitz <dan@debian.org>
187
188 * linux-thread-db.c (BUILD_THREAD): Delete.
189 (thread_get_info_callback): Include LWP ID in thread ID.
190 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
191 (lwp_from_thread): Use the LWP ID from the thread ID.
192
193 2004-12-07 Randolph Chung <tausq@debian.org>
194
195 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
196 register for both 32- and 64-bit targets.
197
198 2004-12-07 Randolph Chung <tausq@debian.org>
199
200 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
201 are unwinding through a dummy frame.
202
203 2004-12-07 Randolph Chung <tausq@debian.org>
204
205 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
206 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
207 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
208 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
209 if defined.
210
211 2004-12-07 Randolph Chung <tausq@debian.org>
212
213 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
214 unwinding from a frame with pc == 0.
215 (hppa_stub_frame_this_id): Likewise.
216 (hppa_stub_frame_prev_register): Only provide real values if the frame
217 cache is not NULL.
218
219 2004-12-07 Randolph Chung <tausq@debian.org>
220
221 * solib-som.c: New file.
222 * solib-som.h: New file.
223 * solib-pa64.c: New file.
224 * solib-pa64.h: New file.
225
226 2004-12-07 Mark Kettenis <kettenis@gnu.org>
227
228 * Makefile.in (inf-ttrace.o): Fix typo.
229
230 2004-12-07 Jim Blandy <jimb@redhat.com>
231
232 * remote.c (remote_threads_info, remote_current_thread): Use
233 strtoul to parse thread ID numbers.
234
235 2004-12-07 Mark Kettenis <kettenis@gnu.org>
236
237 * inf-ttrace.c: Include "gdbthread.h".
238 (inf_ttrace_num_lwps): New variable.
239 (inf_ttrace_num_lwps_in_syscall): Renamed from
240 inf_ttrace_num_threads_in_syscall.
241 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
242 TTEVT_LWP_TERMINATE events.
243 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
244 zero.
245 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
246 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
247 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
248 events.
249 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
250 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
251 TTEVT_LWP_TERMINATE events.
252 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
253 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
254 * Makefile.in (inf-ttrace.o): Update dependencies.
255
256 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
257 prototypes.
258 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
259 Make global. Remove HP-UX specific code. Use
260 frame_unwind_register_unsigned instead of
261 frame_unwind_register_signed.
262 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
263 Remove HP-UX specific code.
264 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
265 (hppa_frame_prev_register_helper): Set "flags" register to zero
266 for all unwound frames.
267 (hppa_gdbarch_init): Adjust.
268 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
269 (hppa_hpux_read_pc, hppa_hpux_write_pc)
270 (hppa_hpux_unwind_pc): New functions.
271 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
272
273 2004-12-07 Andreas Schwab <schwab@suse.de>
274
275 * main.c (long_options): Add entry for "-l".
276 (print_gdb_help): Add line for -l option.
277 * NEWS: Mention it.
278
279 2004-12-05 Randolph Chung <tausq@debian.org>
280
281 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
282 DEPRECATED_REGISTER_BYTE.
283
284 2004-12-05 Randolph Chung <tausq@debian.org>
285
286 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
287 records.
288
289 2004-12-05 Mark Kettenis <kettenis@gnu.org>
290
291 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
292 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
293
294 * hppa-hpux-tdep.c: Update copyright notice and year.
295
296 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
297
298 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
299 (get_field, put_field): Assert that the format is one we can handle.
300 Simplify logic accordingly.
301 (floatformat_normalize_byteorder): New function.
302 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
303 to normalize and select modified byte order. Pass modified byte order
304 to get_field.
305 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
306 Likewise.
307 (convert_doublest_to_floatformat): Select an appropriate intermediate
308 byte order if necessary. Always convert to the final format before
309 returning.
310
311 2004-12-04 Daniel Jacobowitz <dan@debian.org>
312
313 PR tui/1703
314 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
315 Suggested by Joshua Neuheisel.
316
317 2004-12-03 Randolph Chung <tausq@debian.org>
318
319 * gdbarch.sh (instruction_nullified): Delete.
320 * gdbarch.c: Regenerate.
321 * gdbarch.h: Regenerate.
322 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
323 nullified.
324 (hppa_unwind_pc): Likewise.
325 (hppa_instruction_nullified): Delete.
326 (hppa_gdbarch_init): Don't set instruction_nullified method.
327 * infrun.c (infwait_states): Remove infwait_nullified_state.
328 (handle_inferior_event): Remove handling of infwait_nullified_state.
329 Remove handling of nullified instructions.
330
331 2004-12-03 Mark Kettenis <kettenis@gnu.org>
332
333 * inf-ttrace.c: Include <sys/mman.h>.
334 (struct inf_ttrace_page): New.
335 (struct inf_ttrace_page_dict): New.
336 (inf_ttrace_num_threads_in_syscall)
337 (inf_ttrace_reenable_page_protections): New variables.
338 (inf_ttrace_enable_syscall_events)
339 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
340 (inf_ttrace_add_page, inf_ttrace_insert_page)
341 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
342 (inf_ttrace_enable_page_protections)
343 (inf_ttrace_disable_page_protections)
344 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
345 (inf_ttrace_can_use_hw_breakpoint)
346 (inf_ttrace_region_size_ok_for_hw_watchpoint)
347 (inf_ttrace_stopped_by_watchpoint): New functions.
348 (inf_ttrace_him): Remove unsused varaible `tts'.
349 (inf_ttrace_create_inferior): Add assertionts.
350 (inf_ttrace_mourn_inferior): Clear page dictionary.
351 (inf_ttrace_attach): Set initial event mask.
352 (inf_ttrace_detach): Reset number of threads in system call.
353 (inf_ttrace_wait): Deal with system call events.
354 (inf_ttrace_target): Initialize "hardware" watchpoint-related
355 parts of the target vector.
356 (_initialize_inf_ttrace): New prototype and function.
357
358 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
359 type of `gp' variable.
360
361 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
362
363 * README: Remove config.if from directory listing.
364
365 2004-12-01 Joel Brobecker <brobecker@gnat.com>
366
367 * alpha-tdep.c (alpha_register_name): Add comment.
368 (alpha_cannot_fetch_register): Exclude registers numbers which
369 are no longer used from the list of registers that can be fetched.
370 (alpha_cannot_store_register): Exclude registers numbers which
371 are no longer used from the list of registers that can be stored.
372 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
373 core_reg_mapping array.
374
375 2004-12-01 Joel Brobecker <brobecker@gnat.com>
376
377 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
378 the register value from the correct frame.
379
380 2004-11-30 Randolph Chung <tausq@debian.org>
381
382 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
383 (hppa_linux_in_dyncall): Check that we are inside the range of
384 $$dyncall, not necessarily at the first insn.
385 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
386 even if the pc does not point to the first insn of the trampoline.
387
388 2004-11-30 Randolph Chung <tausq@debian.org>
389
390 * breakpoint.c (break_at_finish_command): Delete.
391 (break_at_finish_command_1): Delete.
392 (break_at_finish_at_depth_command): Delete.
393 (break_at_finish_at_depth_command_1): Delete.
394 (tbreak_at_finish_command): Delete.
395 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
396 and bx commands.
397
398 2004-11-30 Andrew Cagney <cagney@gnu.org>
399
400 * config/nm-gnu.h: Delete file.
401 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
402
403 * config/nm-sysv4.h: Delete file.
404 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
405 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
406 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
407 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
408 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
409
410 2004-11-29 Andrew Cagney <cagney@gnu.org>
411
412 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
413 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
414 as can-commit architecture developers.
415
416 2004-11-29 Mark Kettenis <kettenis@gnu.org>
417
418 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
419 (sparc32_skip_prologue): Skip instructions that store arguments in
420 registers into their corresponding stack slots.
421
422 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
423 tm-solib.h.
424 * config/m68k/obsd.mh (NAT_FILE): Likewise.
425
426 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
427 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
428 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
429 sparc32nbsd_elf_init_abi. Remove duplicate code.
430
431 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
432 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
433 * config/sparc/nm-nbsd.h: Remove file.
434 * config/sparc/nm-nbsdaout.h: Remove file.
435
436 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
437 (sparc_xfer_partial): New function.
438 (sparc_target): Save value of to_xfer_partial from ptrace vector.
439 Set to_xfer_partial.
440
441 * fork-child.c (fork_inferior): Fork instead of vfork if
442 PRE_TRACE_FUN is non-null.
443
444 2004-11-24 Fred Fish <fnf@specifixinc.com>
445
446 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
447 compiler generated function calls made as part of a prologue.
448
449 2004-11-23 Mark Kettenis <kettenis@gnu.org>
450
451 * inf-ttrace.c: New file.
452 * inf-ttrace.h: New file.
453 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
454 Include "inf-ttrace.h".
455 (ss_mpsfu_high): Define to ss_tlsp if necessary.
456 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
457 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
458 ptrace systems.
459 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
460 instead of inf_ptrace_target.
461 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
462 * Makefile.in (inf_ttrace_h): New variable.
463 (hppa-hpux-nat.o): Update dependency.
464 (inf-ttrace.o): New dependency.
465 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
466
467 2004-11-23 Randolph Chung <tausq@debian.org>
468
469 * arch-utils.c (generic_instruction_nullified): New.
470 * arch-utils.h (generic_instruction_nullified): New.
471 * gdbarch.sh (instruction_nullified): New method.
472 * gdbarch.c: Regenerate.
473 * gdbarch.h: Regenerate.
474 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
475 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
476 new gdbarch method.
477 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
478 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
479 static. Rewrite to work directly off the passed regcache.
480 (hppa_gdbarch_init): Set instruction_nullified method.
481
482 2004-11-23 Joel Brobecker <brobecker@gnat.com>
483
484 * sparc-tdep.c (sparc_is_unimp_insn): New function.
485 (sparc32_frame_cache): For functions where there is no debugging
486 information to help us determine whether it's a struct-return
487 function or not, fallback on checking whether the instruction
488 at the return address is an "unimp" instruction or not.
489
490 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
491
492 * MAINTAINERS: Add myself to write after approval section.
493
494 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
495 hpux-thread.c to suppress children from running.
496 (hppa_hpux_child_can_run): New function.
497 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
498 * hpux-thread.c: Include string.h and hppa-tdep.h.
499 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
500 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
501 (hpux_thread_store_registers): Replace deprecated_registers with
502 calls to regcache_raw_read.
503 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
504
505 2004-11-21 Mark Kettenis <kettenis@gnu.org>
506
507 * sparc64fbsd-nat.c: Update copyright year.
508 (_initialize_sparc64fbsd_nat): Construct and add target vector.
509 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
510 inftarg.o.
511
512 2004-11-21 Daniel Jacobowitz <dan@debian.org>
513
514 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
515
516 2004-11-21 Daniel Jacobowitz <dan@debian.org>
517
518 * linux-nat.c (my_waitpid): New function.
519 (linux_test_for_tracefork): Make more robust and verbose. Take
520 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
521 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
522 argument. Update calls to linux_test_for_tracefork.
523 (linux_enable_event_reporting, child_follow_fork)
524 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
525 (child_insert_exec_catchpoint): Update calls to
526 linux_supports_tracefork and linux_supports_tracevforkdone.
527
528 2004-11-21 Daniel Jacobowitz <dan@debian.org>
529
530 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
531 (value_subscripted_rvalue): Likewise.
532 * valops.c (search_struct_field, value_slice): Likewise.
533
534 2004-11-21 Mark Kettenis <kettenis@gnu.org>
535
536 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
537 Reorder includes a bit. Fix comment.
538 * Makefile.in (inf-ptrace.o): Update dependencies.
539
540 2004-11-21 Andreas Schwab <schwab@suse.de>
541
542 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
543 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
544 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
545 to glibc_skip_solib_resolver.
546 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
547 solib-legacy.o.
548 * Makefile.in (m68klinux-tdep.o): Update dependencies.
549
550 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
551
552 * infttrace.h (ttrace_write_reg_64): Add prototype.
553 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
554 expression.
555 (store_inferior_registers): Correct formatting. Replace uses of
556 deprecated_registers with calls to regcache_raw_read,
557 regcache_raw_write_part and regcache_raw_read_part.
558
559 2004-11-21 Mark Kettenis <kettenis@gnu.org>
560
561 * config/pa/hppahpux.mh: Remove file.
562 * config/pa/hpux1020.mh: Remove file.
563
564 2004-11-20 Andreas Schwab <schwab@suse.de>
565
566 * configure.host: Set host floatformat for m68k.
567
568 2004-11-20 Eli Zaretskii <eliz@gnu.org>
569
570 * config/djgpp/fnchange.lst: Resolve file-name clash between
571 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
572
573 2004-11-20 Mark Kettenis <kettenis@gnu.org>
574
575 * hppa-hpux-nat.c: New file.
576 * config/pa/hpux.mh (NATDEPFILES): New file.
577 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
578 (hppa-hpux-nat.o): New dependency.
579 * configure.host: Remove hppa*-*-hpux10.20.
580 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
581
582 * inf-ptrace.c: Fix coding style.
583
584 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
585 * infptrace.c (call_ptrace): Simply call ptrace with four
586 arguments.
587
588 * dbxread.c (process_one_symbol): Fix a few coding standard
589 issues. Improve code formatting.
590
591 * dbxread.c: Include "gdb_string.h".
592 (record_minimal_symbol, read_ofile_symtab): Replace
593 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
594 * Makefile.in (dbxread.o): Update dependencies.
595
596 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
597 of bytes read for aligned LEB128 encodings.
598
599 2004-11-19 Mark Kettenis <kettenis@gnu.org>
600
601 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
602 parse_and_eval_address to u_long before converting it to a pointer
603 type.
604 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
605 ps_strings from int to u_long.
606 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
607 u_long instead of CORE_ADDR.
608
609 2004-11-18 Mark Kettenis <kettenis@gnu.org>
610
611 * dbxread.c (process_one_symbol): Do not adjust address of first
612 N_SLINE stab for a function for code generated by non-GCC
613 compilers.
614
615 2004-11-18 Kevin Buettner <kevinb@redhat.com>
616
617 * solib-null.c: New file.
618
619 2004-11-17 Andrew Cagney <cagney@gnu.org>
620
621 * MAINTAINERS: Drop MIPS and remote.
622
623 2004-11-15 Andrew Cagney <cagney@gnu.org>
624
625 * findvar.c (value_of_register): Set the frame ID.
626 * value.c (value_primitive_field): Copy the frame ID.
627 * valops.c (value_assign): Simplify lval_register case, there's
628 always a frame.
629
630 2004-11-14 Daniel Jacobowitz <dan@debian.org>
631
632 * Makefile.in (mips-linux-tdep.o): Update dependencies.
633 * mips-linux-tdep.c: Include "regcache.h".
634 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
635
636 2004-11-14 Daniel Jacobowitz <dan@debian.org>
637
638 * Makefile.in (linux-thread-db.o): Fix typo in last change.
639
640 2004-11-14 Daniel Jacobowitz <dan@debian.org>
641
642 * linux-thread-db.c: New file, renamed from thread-db.c.
643 * thread-db.c: Remove.
644 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
645 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
646 to linux-thread-db.o.
647 * config/arm/linux.mh (NATDEPFILES): Likewise.
648 * config/i386/linux.mh (NATDEPFILES): Likewise.
649 * config/i386/linux64.mh (NATDEPFILES): Likewise.
650 * config/ia64/linux.mh (NATDEPFILES): Likewise.
651 * config/m32r/linux.mh (NATDEPFILES): Likewise.
652 * config/m68k/linux.mh (NATDEPFILES): Likewise.
653 * config/mips/linux.mh (NATDEPFILES): Likewise.
654 * config/pa/linux.mh (NATDEPFILES): Likewise.
655 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
656 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
657 * config/s390/s390.mh (NATDEPFILES): Likewise.
658 * config/sparc/linux.mh (NATDEPFILES): Likewise.
659 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
660
661 2004-11-13 Andrew Cagney <cagney@gnu.org>
662
663 * config/i386/i386lynx.mh: Delete file.
664 * config/i386/i386lynx.mt: Delete file.
665 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
666 * i386ly-tdep.c: Delete.
667
668 * config/tm-lynx.h: Delete, inline contents ...
669 * config/rs6000/tm-rs6000ly.h: ... here.
670
671 * config/tm-sysv4.h: Delete file, inlining contents.
672 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
673 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
674 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
675
676 * regcache.h (deprecated_register_valid): Delete.
677 (deprecated_registers): Delete.
678 * regcache.c (deprecated_register_valid): Delete.
679 (deprecated_registers): Delete.
680 (deprecated_read_register_byte, _initialize_regcache)
681 (deprecated_write_register_bytes, build_regcache): Update.
682 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
683 remote-sds.o.
684 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
685 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
686
687 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
688 v850-*-* under removed.
689 * configure.host: Delete ns32k-*-netbsd*.
690 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
691 ns32k-*-netbsd*, and v850*-*-*.
692 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
693 "Deleted"
694 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
695 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
696 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
697 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
698 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
699 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
700 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
701 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
702 * v850-tdep.c: Delete.
703
704 2004-11-13 Joel Brobecker <brobecker@gnat.com>
705
706 * irix5-nat.c (fetch_core_registers): Replace use of
707 deprecated_registers by equivalent code.
708
709 2004-11-13 Joel Brobecker <brobecker@gnat.com>
710
711 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
712 with equivalent code.
713 (fill_fpregset): Likewise.
714
715 2004-11-13 Andrew Cagney <cagney@gnu.org>
716
717 * MAINTAINERS: Do not list "Deleted" architectures.
718
719 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
720 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
721 sparc-*-vxworks*.
722 * NEWS: Mention that vxworks was deleted.
723 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
724 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
725 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
726 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
727 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
728 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
729 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
730 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
731 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
732 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
733 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
734 * remote-vxmips.c, remote-vx.c: Delete.
735 * remote-vx68.c: Delete.
736 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
737 * config/m68k/os68k.mt, ada-lang.h: Ditto.
738 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
739 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
740
741 2004-11-13 Eli Zaretskii <eliz@gnu.org>
742
743 * config/i386/xm-go32.h: Don't include fopen-bin.h.
744 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
745
746 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
747 branch that doesn't define CRLF_SOURCE_FILES; always use
748 binary-mode open.
749 (print_source_lines_base, forward_search_command)
750 (reverse_search_command): Enable the code that accepts DOS-style
751 CRLF line endings on all platforms (this removes the need for
752 CRLF_SOURCE_FILES).
753
754 * defs.h: Fix wording of the comment before FOPEN_RB.
755 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
756
757 * config/djgpp/fnchange.lst: Group renames for opcode directory
758 together.
759
760 * config/djgpp/djconfig.sh: Replace file names that don't exist
761 anymore with existing files, for checking the unpacked
762 distribution.
763
764 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
765 Export pre-cooked values in configure-* targets that begin with
766 "@test -f stage_last".
767
768 2004-11-12 Andrew Cagney <cagney@gnu.org>
769
770 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
771 * value.h (struct value): Update comment.
772 * valops.c (value_assign): Fold lval_reg_fame_relative into
773 lval_register.
774 * findvar.c (value_from_register, locate_var_value): Ditto.
775
776 2004-11-12 Randolph Chung <tausq@debian.org>
777
778 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
779 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
780 (write_exp_msymbol): Remove conditional check for symbols starting
781 with $. Update comments.
782
783 2004-11-12 Randolph Chung <tausq@debian.org>
784
785 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
786 so_lib_thread_start_addr.
787 * pa64solib.h (so_list): Forward declare.
788 (pa64_solib_thread_start_addr): Prototype.
789 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
790 (no_shared_libraries): Remove.
791 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
792 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
793 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
794 the elf solib handler to find the start address.
795
796 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
797 files to the target makefile.
798 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
799 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
800 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
801
802 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
803 files for symbol reading and shared library handling here.
804 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
805 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
806 without bringing in 64-bit support.
807
808 2004-11-12 Andrew Cagney <cagney@gnu.org>
809
810 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
811 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
812 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
813 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
814 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
815 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
816 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
817
818 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
819 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
820 (VALUE_REGNUM): Define.
821 (struct value): Delete location.regnum, rename "regno" to
822 "regnum".
823 * value.c, valops.c, valarith.c, findvar.c: Update.
824
825 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
826 (VALUE_BITPOS): Delete.
827 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
828 * value.c (value_type, value_offset, value_bitpos)
829 (value_bitsize): New functions. Update references.
830 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
831 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
832 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
833 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
834 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
835 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
836 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
837 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
838 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
839
840 2004-11-12 Andrew Cagney <cagney@gnu.org>
841
842 * cris-tdep.c (cris_register_offset): Delete, never called.
843 (cris_spec_reg_applicable): Delete cris_ver_sim.
844 * MAINTAINERS: List d10v as OBSOLETE.
845 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
846 FOPEN_WB et.al., defined by "fopen-bin.h".
847
848 2004-11-12 Randolph Chung <tausq@debian.org>
849
850 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
851 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
852 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
853 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
854
855 2004-11-12 Mark Kettenis <kettenis@jive.nl>
856
857 * tui/tui-io.c: Don't include "terminal.h".
858 * Makefile.in (tui-io.o): Update dependencies.
859
860 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
861
862 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
863 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
864 set_gdbarch_regset_from_core_section for core file support.
865 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
866 New functions.
867
868 2004-11-11 Randolph Chung <tausq@debian.org>
869
870 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
871 stop_after_branch parameter and use it to determine if we should look
872 at the delay slot of the first branch insn to find prologue insns.
873 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
874 (hppa_frame_cache): Likewise.
875
876 2004-11-11 Randolph Chung <tausq@debian.org>
877
878 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
879 register so that it can be unwound from anywhere in the prologue.
880
881 2004-11-10 msnyder <msnyder@redhat.com>
882
883 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
884 must invalidate lr_reg (so we don't try to save it again).
885 Ditto for cr_offset and cr_reg.
886
887 2004-11-05 Jon Beniston <jon@beniston.com>
888
889 Committed by Andrew Cagney.
890 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
891 when an unexpected packet is received, as the target stubs
892 continually retransmit the same packet until ACKed.
893
894 2004-11-10 Randolph Chung <tausq@debian.org>
895
896 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
897 frame's type.
898
899 2004-11-10 Randolph Chung <tausq@debian.org>
900
901 * blockframe.c (inside_entry_func): Move to .....
902 * frame.c (inside_entry_func): ... here, and make static.
903 (backtrace_past_entry): New flag.
904 (get_prev_frame): Stop backtrace at the entry function if enabled
905 by flag. Update comments.
906 (_initialize_frame): Add command to set backtrace_past_entry flag.
907 * defs.h (inside_entry_func): Remove prototype.
908
909 2004-11-10 Mark Kettenis <kettenis@gnu.org>
910
911 * dwarf2read.c: Fix formatting.
912
913 2004-11-10 Andrew Cagney <cagney@gnu.org>
914
915 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
916 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
917 macros with function declarations.
918 * value.c (coerce_ref, coerce_array, coerce_number)
919 (coerce_enum): New functions.
920 (value_as_long, value_as_address): Update.
921 * ada-lang.c (ada_coerce_ref, ada_value_binop)
922 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
923 * jv-lang.c (evaluate_subexp_java): Update.
924 * valarith.c (value_less, value_neg, value_complement)
925 (value_binop, value_add, value_subscript, value_x_binop)
926 (value_logical_not, value_sub): Update.
927 * valops.c (check_field, value_struct_elt, value_ind)
928 (value_find_oload_method_list, value_cast, value_assign): Update.
929 * eval.c (evaluate_subexp_standard): Update.
930
931 2004-11-10 Mark Kettenis <kettenis@gnu.org>
932
933 * mips-tdep.c (mips32_relative_offset): Change return type to
934 LONGEST, change argument type to ULONGEST. Fix sign-extension.
935
936 2004-11-10 Randolph Chung <tausq@debian.org>
937
938 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
939 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
940 (hppa_fetch_pointer_argument): Likewise.
941 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
942 deprecated_read_memory_nobpt.
943 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
944 add_set_cmd sequence with add_setshow_boolean_cmd.
945
946 2004-11-09 Andrew Cagney <cagney@gnu.org>
947
948 GDB 6.3 released from GDB 6.3 branch.
949
950 2004-11-09 Andrew Cagney <cagney@gnu.org>
951
952 * values.c: Rename to ...
953 * value.c: ..., new file.
954 * Makefile.in: Update.
955
956 2004-11-09 Daniel Jacobowitz <dan@debian.org>
957
958 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
959 size.
960
961 2004-11-09 Andrew Cagney <cagney@gnu.org>
962
963 * TODO: Delete.
964
965 * value.h (struct value): Delete field bfd_section.
966 (VALUE_BFD_SECTION): Delete macro.
967 (COERCE_REF): Update.
968 (value_at, value_at_lazy): Delete asection parameter.
969 * printcmd.c (print_formatted, x_command): Update.
970 (do_examine): Delete asection parameter.
971 (next_section): Delete variable.
972 * valops.c (value_cast, value_at, value_at_lazy)
973 (value_coerce_function, value_addr, value_ind, value_string)
974 (find_rt_vbase_offset, value_full_object): Update.
975 * hpacc-abi.c (hpacc_virtual_fn_field)
976 (hpacc_value_rtti_type): Update.
977 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
978 (gnuv3_baseclass_offset): Update.
979 * f-valprint.c (f_val_print): Update.
980 * c-valprint.c (c_val_print): Update.
981 * p-valprint.c (pascal_val_print): Update.
982 * jv-valprint.c (java_value_print): Update.
983 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
984 * ada-lang.c (ada_value_primitive_packed_val)
985 (ada_evaluate_subexp): Update.
986 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
987 * expprint.c (print_subexp_standard): Update.
988 * infcall.c (call_function_by_hand): Update.
989 * valarith.c (value_add): Update.
990 * eval.c (evaluate_subexp_standard): Update.
991 * values.c (allocate_value, value_copy, value_static_field): Update.
992 * findvar.c (read_var_value, locate_var_value): Update.
993
994 2004-11-09 Andrew Cagney <cagney@gnu.org>
995
996 * i386-linux-tdep.c: Include "dwarf2-frame.h".
997 * Makefile.in: Update all dependencies.
998
999 2004-11-08 Andrew Cagney <cagney@gnu.org>
1000
1001 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1002 (sentinel_frame_unwinder): Add the prev_pc method.
1003 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1004 available. Do not handle the sentinel-frame case.
1005 * frame-unwind.h (frame_prev_register_ftype): Define.
1006 (struct frame_unwind): Add prev_pc;
1007
1008 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1009
1010 * configure.in: Check for ncurses/term.h.
1011 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1012 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1013 * tui/tui.c: Don't include term.h.
1014 * configure, config.in: Rebuilt.
1015
1016 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1017
1018 * m68kbsd-nat.c: Include "inf-ptrace.h".
1019 (_initialize_m68kbsd_nat): Fix pasto.
1020 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1021
1022 2004-11-08 Randolph Chung <tausq@debian.org>
1023
1024 * infrun.c (debug_infrun): New variable.
1025 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1026 (handle_inferior_event, keep_going): Likewise.
1027 (_initialize_infrun): Register "set debug infrun" command.
1028
1029 2004-11-08 Andreas Schwab <schwab@suse.de>
1030
1031 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1032 PTRACE_EVENT_VFORKDONE.
1033 (child_follow_fork): Adjust.
1034
1035 2004-11-08 Andrew Cagney <cagney@gnu.org>
1036
1037 * README: Refer to 6.3, not 6.2, update directory listing droppng
1038 references to intl/ and mmalloc/.
1039 * PROBLEMS: Refer to 6.3 not 6.2.
1040
1041 * PROBLEMS: Delete no-longer applicable problems.
1042
1043 2004-11-07 Andrew Cagney <cagney@redhat.com>
1044 Daniel Jacobowitz <dan@debian.org>
1045 Roland McGrath <roland@redhat.com>
1046
1047 * Makefile.in (symfile-mem.o): Update dependencies.
1048 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1049 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1050 * inf-ptrace.c (inf_ptrace_attach): Call
1051 observer_notify_inferior_created.
1052 * inftarg.c (child_attach): Likewise.
1053 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1054 (symbol_file_add_from_memory): Take NAME argument. Use it for
1055 the new BFD's filename.
1056 (add_symbol_file_from_memory_command): Update call to
1057 symbol_file_add_from_memory.
1058 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1059 (symbol_file_add_from_memory_wrapper): New.
1060 (_initialize_symfile_mem): Register add_vsyscall_page as an
1061 inferior_created observer.
1062
1063 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1064
1065 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1066 fetch_inferior_registers. Make static.
1067 (m68kbsd_store_inferior_registers): Rename from
1068 store_inferior_registers. Make static.
1069 (_initialize_m68kbsd_nat): Construct and add target vector.
1070 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1071 inftarg.o. Add inf-ptrace.o.
1072 (NAT_FILE): Set to tm-solib.h.
1073 (LOADLIBES): New variable.
1074 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1075 inftarg.o. Add inf-ptrace.o.
1076 (NAT_FILE): Delete variable.
1077 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1078 inftarg.o. Add inf-ptrace.o.
1079 (NAT_FILE): Set to tm-solib.h.
1080 * config/m68k/nm-nbsdaout.h: Remove file.
1081
1082 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1083
1084 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1085 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1086 (dwarf2_signal_frame_unwind): New.
1087 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1088 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1089
1090 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1091
1092 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1093
1094 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1095 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1096 to only include the structure members we actually need.
1097 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1098 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1099 only include the structure members we actually need.
1100 (mipsnbsd_init_abi): Update.
1101
1102 * mips64obsd-nat.c: Include "mips-tdep.h".
1103 (MIPS64OBSD_NUM_REGS): Remove define.
1104 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1105 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1106 floating-point registers correctly.
1107 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1108
1109 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1110 "gdb_assert.h".
1111 (mips64obsd_sigframe_init): New function.
1112 (mips64obsd_sigframe): New variable.
1113 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1114 unwinder.
1115 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1116
1117 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1118
1119 * alpha-mdebug-tdep.c: #include mdebugread.h.
1120 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1121 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1122
1123 2004-11-05 Andrew Cagney <cagney@gnu.org>
1124
1125 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1126 CFI and the init_reg method leave the register unspecified.
1127 Include the register name in the "Incomplete CFI data" complaint.
1128 Supress leading zeros in the address.
1129
1130 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1131
1132 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1133 skipping a personality routine in a CIE augmentation.
1134
1135 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1136
1137 * defs.h (fatal, vfatal): New function prototypes.
1138 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1139 via catch_errors.
1140 (backtrace_command): Change to call backtrace_command_stub via
1141 catch_errors instead of calling backtrace_command_1 directly.
1142 (backtrace_full_command): Ditto.
1143 * utils.c (error_stream_1): New static function.
1144 (verror): Change to call error_stream_1 instead of error_stream.
1145 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1146 (vfatal, fatal): New functions.
1147
1148 2004-11-05 Andrew Cagney <cagney@gnu.org>
1149
1150 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1151 when not using selected frame.
1152
1153 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1154
1155 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1156 personality routine in a CIE augmentation.
1157
1158 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1159
1160 * stack.c (set_current_sal_from_frame): New function.
1161 (print_args_stub): Use it.
1162 (print_frame_info): Don't set sal here.
1163
1164 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1165
1166 * dwarf2-frame.c (read_encoded_value): Change type of third
1167 argument to `unsigned char *'. Add support for LEB128 encodings.
1168
1169 2004-11-04 Jim Blandy <jimb@redhat.com>
1170
1171 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1172 prevent cross-objfile references.
1173 (make_cv_type): Doc fix. Don't create cross-objfile references,
1174 even for stub types.
1175 (replace_type): Add assertion to prevent cross-objfile references.
1176 (check_typedef): Never resolve a stub type by copying over a type
1177 from another file.
1178
1179 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1180
1181 * Makefile.in (m32r-tdep.o): Update dependencies.
1182 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1183 ABI-specific overrides.
1184
1185 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1186
1187 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1188 unnecessary parallel execution bit.
1189 (m32r_memory_remove_breakpoint): Ditto.
1190 (m32r_breakpoint_from_pc): Update.
1191
1192 2004-11-03 Randolph Chung <tausq@debian.org>
1193
1194 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1195 frame_func_unwind to locate the unwind entry.
1196 (hppa_frame_this_id): Likewise.
1197
1198 2004-11-03 Andrew Cagney <cagney@gnu.org>
1199
1200 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1201 packet, obsolete configurations, end-of-life deprecated_registers.
1202
1203 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1204
1205 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1206 encodings as well as unsigned encodings.
1207
1208 2004-11-02 Andrew Cagney <cagney@gnu.org>
1209
1210 * value.h (COERCE_VARYING_ARRAY): Delete.
1211 * valops.c (value_cast, value_slice): Delete use.
1212 * valarith.c (value_subscript, value_concat): Delete use.
1213
1214 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1215
1216 * NEWS: GDB understands GNAT Ada.
1217
1218 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1219
1220 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1221 (amd64-sol2-tdep.o): Add dependencies.
1222 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1223 config/i386/sol2-64.mt: New files.
1224 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1225 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1226 (supply_gregset): Correct order of arguments to
1227 amd64_supply_native_gregset.
1228 (fill_gregset): Correct order of arguments to
1229 amd64_collect_native_gregset.
1230 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1231 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1232 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1233 for definition of NEW_PROC_API.
1234 * configure: Regenerate.
1235
1236 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1237
1238 * MAINTAINERS (Write After Approval): Add myself.
1239
1240 2004-11-01 Andrew Cagney <cagney@gnu.org>
1241
1242 * configure.tgt: Mark d10v-*-* as obsolete.
1243 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1244
1245 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1246
1247 * values.c (modify_field): Correct handling of bit-fields that
1248 don't fit in 32 bits. Use unsigned operations throughout and
1249 simplify the code a bit. Document preconditions.
1250
1251 2004-10-31 Andrew Cagney <cagney@gnu.org>
1252
1253 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1254 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1255 (in_plt_section): Delete.
1256
1257 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1258 (mips_gdbarch_init): Do not set same.
1259
1260 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1261 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1262
1263 * gdbarch.sh (in_solib_call_trampoline): Delete.
1264 * gdbarch.h, gdbarch.c: Re-generate.
1265
1266 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1267 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1268 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1269 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1270 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1271
1272 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1273
1274 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1275 (mipsnbsd_fetch_inferior_registers): Rename from
1276 fetch_inferior_registers. Make static.
1277 (mipsnbsd_store_inferior_registers): Rename from
1278 store_inferior_registers. Make static.
1279 (_initialize_mipsnbsd_nat): New function and prototype.
1280 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1281 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1282 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1283 inf-ptrace.o.
1284
1285 2004-10-31 Andrew Cagney <cagney@gnu.org>
1286
1287 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1288 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1289 delete corresponding unused function.
1290 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1291 in_solib_call_trampoline.
1292 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1293 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1294 * config/mips/tm-nbsd.h: Ditto.
1295 * config/arm/tm-linux.h: Ditto.
1296 * config/mips/tm-linux.h: Ditto.
1297
1298 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1299 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1300 in_solib_call_trampoline, delete corresponding unused function.
1301 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1302 (vaxnbsd_aout_init_abi): Ditto.
1303 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1304 (sparc32nbsd_aout_init_abi): Ditto.
1305 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1306 (ppc_linux_init_abi): Ditto.
1307 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1308 (ns32knbsd_init_abi_aout): Ditto.
1309 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1310 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1311 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1312 (m68kbsd_aout_init_abi): Ditto.
1313 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1314 (i386_cygwin_init_abi): Ditto.
1315 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1316 (i386bsd_init_abi): Ditto.
1317
1318 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1319 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1320 isn't used by this architecture.
1321 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1322 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1323 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1324 * s390-tdep.c (s390_gdbarch_init): Ditto.
1325 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1326 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1327 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1328 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1329 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1330 * amd64-tdep.c (amd64_init_abi): Ditto.
1331
1332 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1333 in_solib_call_trampoline to its default value of
1334 generic_in_solib_call_trampoline.
1335 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1336 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1337 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1338 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1339 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1340 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1341
1342 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1343
1344 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1345
1346 * config/mips/tm-mips.h: Delete file.
1347 * remote-mips.c: Delete tm-mips.h from comment.
1348 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1349 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1350 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1351 * config/mips/tm-linux.h: Don't include tm-mips.h.
1352 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1353 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1354 * config/mips/tm-wince.h: Don't include.
1355
1356 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1357 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1358 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1359 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1360
1361 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1362 * mdebugread.c (ecoff_relocate_efi): Delete function.
1363 * objfiles.c (objfile_relocate): Delete #ifdef
1364 MDEBUG_EFI_SYMBOL_NAME code.
1365
1366 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1367 Andrew Cagney <cagney@gnu.org>
1368
1369 * gdbarch.sh (single_step_through_delay): Add.
1370 * gdbarch.h, gdbarch.c: Re-generate.
1371 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1372 (mips_step_skips_delay): Delete.
1373 * mips-tdep.c (mips_single_step_through_delay): Replace
1374 mips_step_skips_delay.
1375 (mips_gdbarch_init): Set single_step_through_delay.
1376 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1377
1378 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1379
1380 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1381 from TRAMP_FRAME frame type.
1382
1383 2004-10-31 Andrew Cagney <cagney@gnu.org>
1384
1385 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1386
1387 * mips-tdep.c (mips_ignore_helper): Delete.
1388 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1389 * infrun.c (handle_inferior_event): Delete #ifdef
1390 DEPRECATED_IGNORE_HELPER_CALL code.
1391
1392 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1393
1394 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1395
1396 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1397 (fill_fpregset): Do not compile for 64-bit systems.
1398 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1399 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1400 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1401
1402 2004-10-30 Andrew Cagney <cagney@gnu.org>
1403
1404 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1405 (struct mdebug_extra_func_info): Define.
1406 * config/alpha/tm-alpha.h: Delete same.
1407 * config/mips/tm-mips.h: Delete same.
1408 * mdebugread.c: Delete same.
1409 * Makefile.in: Update dependencies.
1410 * mips-mdebug-tdep.c: Include "mdebugread.h".
1411
1412 * objfiles.c: Include "mdebugread.h".
1413 * mdebugread.c: Include "mdebugread.h".
1414 (ecoff_relocate_cfi): Delete.
1415 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1416 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1417 * mdebugread.h (ecoff_relocate_efi): New file.
1418 * Makefile.in: Update dependencies.
1419
1420 * mips-tdep.c (struct frame_extra_info): Delete.
1421 (temp_proc_desc): Delete.
1422
1423 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1424 MIPS_EFI_SYMBOL_NAME.
1425 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1426 (struct mdebug_extra_func_info): Replace struct
1427 alpha_extra_func_info and alpha_extra_func_info_t.
1428 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1429 MIPS_EFI_SYMBOL_NAME.
1430 (struct mdebug_extra_func_info): Replace struct
1431 alpha_extra_func_info and alpha_extra_func_info_t.
1432 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1433 * mdebugread.c, alpha-mdebug-tdep.c:
1434
1435 Suggested by Mark Kettenis.
1436 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1437 fields frame_adjust and high_addr.
1438 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1439 (non_heuristic_proc_desc): Delete references.
1440
1441 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1442 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1443 * mips-tdep.c: Update.
1444
1445 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1446 (MIPS_LAST_EMBED_REGNUM): Add.
1447 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1448 (LAST_EMBED_REGNUM): Delete.
1449 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1450
1451 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1452 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1453 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1454 * mips-linux-nat.c: Update.
1455
1456 * mips-tdep.h: Add comments on registers.
1457 (MIPS_UNUSED_REGNUM): Define.
1458 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1459 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1460 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1461 * mips-linux-nat.c, remote-mips.c: Update.
1462
1463 * config/mips/tm-mips.h (t_insn): Delete.
1464 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1465 Replace t_insn with ULONGEST.
1466
1467 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1468
1469 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1470 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1471 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1472 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1473 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1474 (mipsnbsd_core_osabi_sniffer): New function.
1475 (mipsnbsd_init_abi): Set regset_from_core_section.
1476 (_initialize_mipsnbsd_tdep): Remove calls to
1477 deprecated_add_core_fns.
1478 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1479 (mipsnbsd_regset_from_core_section): New functions.
1480 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1481 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1482
1483 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1484 Remove optimization for DEPRECATED_FP_REGNUM.
1485
1486 2004-10-30 Andrew Cagney <cagney@gnu.org>
1487
1488 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1489 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1490 (alpha_setup_arbitrary_frame): Delete.
1491 * mips-tdep.c (setup_arbitrary_frame): Delete.
1492 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1493 (setup_arbitrary_frame): Delete.
1494 * stack.c (parse_frame_specification_1): When specified, call
1495 create_new_frame with two parameters. Delete #ifdef
1496 SETUP_ARBITRARY_FRAME.
1497
1498 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1499 (MIPS_INSTLEN): Delete.
1500 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1501 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1502 * remote-mips.c, mips-tdep.c: Update.
1503
1504 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1505 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1506 * mips-tdep.c (mips_mdebug_frame_cache)
1507 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1508 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1509 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1510 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1511 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1512 (mips_gdbarch_init): Do not append mdebug sniffers.
1513 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1514 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1515 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1516 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1517 * Makefile.in: Update dependencies.
1518
1519 * mips-tdep.h (mips_abi_regsize): Declare.
1520 * mips-tdep.c (mips_abi_regsize): Make non-static.
1521
1522 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1523 (make_mips16_addr): Delete.
1524
1525 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1526
1527 * i386-sol2-nat.c: New file.
1528 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1529 i386-sol2-tdep.c.
1530 (i386-sol2-nat.o): Update dependencies.
1531 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1532 i386-sol2-nat.o.
1533
1534 2004-10-30 Andrew Cagney <cagney@gnu.org>
1535
1536 Total breakage identified by Joel Brobecker.
1537 * mips-tdep.c (after_prologue): Delete.
1538 (mips_skip_prologue): Use skip_prologue_using_sal.
1539 (heuristic_proc_desc): Delete, unused.
1540
1541 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1542
1543 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1544 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1545 Cleanup coding style.
1546
1547 2004-10-30 Andrew Cagney <cagney@gnu.org>
1548
1549 * mips-tdep.h (mips_pc_is_mips16): Declare.
1550 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1551 non-static. Update calls.
1552
1553 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1554 * command.h (add_setshow_enum_cmd): Declare.
1555 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1556
1557 * mips-tdep.c (_initialize_mips_tdep): Use
1558 add_setshow_zinteger_cmd.
1559
1560 * mips-tdep.c (mips_eabi_extract_return_value)
1561 (mips_o64_extract_return_value, mips_o64_store_return_value)
1562 (return_value_location, mips_eabi_reg_struct_has_addr)
1563 (mips_eabi_use_struct_convention)
1564 (mips_eabi_store_return_value): Delete.
1565 (mips_eabi_store_return_value): New function.
1566 (mips_eabi_return_value): New function.
1567 (mips_gdbarch_init): For O64 and EABI, delete
1568 extract_return_value, store_return_value, use_struct_convention
1569 and reg_struct_has_addr, add return_value.
1570
1571 * mips-tdep.c (read_signed_register): Use
1572 regcache_cooked_read_signed.
1573
1574 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1575
1576 * mipsread.c: Cleanup coding style.
1577 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1578 (mipscoff_symfile_finish): Remove prototypes.
1579
1580 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1581
1582 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1583 (mips_mdebug_frame_cache, mips16_scan_prologue)
1584 (mips32_scan_prologue, mips_stub_frame_cache)
1585 (heuristic_proc_start, heuristic_proc_desc)
1586 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1587 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1588 (mips_o32_return_value, mips_o64_push_dummy_call)
1589 (mips_step_skips_delay, mips_skip_trampoline_code)
1590 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1591 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1592 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1593 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1594 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1595 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1596 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1597 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1598 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1599 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1600 ZERO_REGNUM.
1601 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1602 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1603 ZERO_REGNUM.
1604 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1605 A0_REGNUM.
1606 * mipsnbsd-nat.c: Include "mips-tdep.h".
1607 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1608 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1609
1610 2004-10-29 Andrew Cagney <cagney@gnu.org>
1611
1612 * stack.c (parse_frame_specification_1): New function based on
1613 parse_frame_specification. Add message and selected_frame_p
1614 paramters. Truely always return non-NULL.
1615 (parse_frame_specification): Call parse_frame_specification_1.
1616 (frame_info): Update. Eliminate target_has_stack check.
1617 (select_frame_command): Update.
1618
1619 2004-10-29 Andrew Cagney <cagney@gnu.org>
1620
1621 * frame.h (get_selected_frame): Add message parameter.
1622 * frame.c (get_selected_frame): Add and use message parameter.
1623 * stack.c (current_frame_command, return_command, locals_info)
1624 (catch_info, args_info, up_silently_base, down_silently_base): Use
1625 get_selected_frame with an explicit message.
1626 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1627 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1628 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1629 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1630 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1631 * breakpoint.c: Update.
1632
1633 2004-10-29 Andrew Cagney <cagney@gnu.org>
1634
1635 * trad-frame.c (trad_frame_get_prev_register): Use
1636 frame_unwind_register instead of frame_register_unwind, do not
1637 recurse the register's location.
1638 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1639 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1640 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1641 * sh-tdep.c (sh_frame_prev_register): Ditto.
1642 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1643 * i386-tdep.c (i386_frame_prev_register): Ditto.
1644 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1645 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1646
1647 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1648
1649 * proc-events.c: Fix several coding-style issues. Consistently
1650 use #ifdef instead of #if defined().
1651 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1652 ARRAY_SIZE.
1653 (_initialize_proc_events): New prototype.
1654
1655 * proc-why.c: Fix several coding-style issues.
1656 (proc_prettyfprint_why): Use ARRAY_SIZE.
1657
1658 2004-10-27 Jim Blandy <jimb@redhat.com>
1659
1660 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1661 manner independent of the host byte order.
1662
1663 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1664
1665 * mips-tdep.c (id_delayed): Remove prototype.
1666
1667 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1668
1669 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1670 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1671 to enum with register numbers.
1672 (enum mips_insn_size): New enum.
1673
1674 2004-10-26 Andrew Cagney <cagney@gnu.org>
1675
1676 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1677 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1678 (mips_gdbarch_init): Update.
1679 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1680
1681 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1682 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1683 IN_SOLIB_RETURN_TRAMPOLINE.
1684 * mips-tdep.c (mips_dump_tdep): Do not print
1685 IN_SOLIB_RETURN_TRAMPOLINE.
1686 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1687 (mips_gdbarch_init): Update.
1688
1689 * mips-tdep.h (mips_software_single_step): Move to here ...
1690 * config/mips/tm-mips.h: ... from here.
1691 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1692 (SOFTWARE_SINGLE_STEP): Delete.
1693 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1694
1695 2004-10-25 Andrew Cagney <cagney@gnu.org>
1696
1697 * NEWS: Add Changes since GDB 6.3 section.
1698
1699 2004-10-23 Andreas Schwab <schwab@suse.de>
1700
1701 * ada-lang.c (grow_vect): Return the new array instead of
1702 expecting pointer to pointer to avoid violation of aliasing rules.
1703 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1704
1705 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1706
1707 * s390-tdep.c (enum pv_boolean): Remove.
1708 (pv_is_array_ref): Remove.
1709 (s390_on_stack): Remove.
1710 (S390_NUM_SPILL_SLOTS): Remove.
1711 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1712 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1713 (s390_store): Track all stores of orginal incoming registers to the
1714 stack constant offsets relative to the CFA, instead of only tracking
1715 stores into specific spill slots.
1716 (s390_load): Likewise.
1717 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1718 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1719 defined as call-saved by the ABI.
1720 (s390_push_dummy_call): Use bottom of dummy call argument save area
1721 as return value, not the top. Do not store to the called function's
1722 register save area.
1723 (s390_unwind_dummy_id): Adapt accordingly.
1724
1725 2004-10-23 Andrew Cagney <cagney@gnu.org>
1726
1727 * objfiles.h (struct objfile): Rename obj_private to
1728 deprecated_obj_private, sym_private to deprecated_sym_private, and
1729 sym_stab_info to deprecated_sym_stab_info.
1730 * gdb-stabs.h: Update.
1731 * elfread.c: Update.
1732 * dbxread.c: Update.
1733 * coffread.c: Update.
1734 * xcoffread.c: Update.
1735 * symfile.c: Update.
1736 * somread.c: Update.
1737 * nlmread.c: Update.
1738 * mdebugread.c: Update.
1739 * hpread.c: Update.
1740 * coffread.c: Update.
1741
1742 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1743
1744 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1745 * configure.host: Add mips64*-*-openbsd*.
1746 * configure.tgt: Add mips64*-*-openbsd*.
1747 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1748 mips64obsd-tdep.c.
1749 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1750 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1751
1752 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1753
1754 * symtab.c (symbol_search_name): Minor reformatting.
1755
1756 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1757
1758 * symtab.h: Fix typo in comment.
1759
1760 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1761
1762 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1763 (dwarf_decode_line_header): Likewise.
1764
1765 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1766
1767 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1768
1769 2004-10-19 Andrew Cagney <cagney@gnu.org>
1770
1771 GDB 6.3 branch created.
1772 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1773
1774 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1775
1776 * dwarf2read.c (set_cu_language): Set language to Ada for
1777 DW_LANG_Ada83 and DW_LANG_Ada95.
1778
1779 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1780
1781 From Andreas Schwab <schwab@suse.de>:
1782 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1783 for xmalloc and xrealloc.
1784
1785 2004-10-15 Andrew Cagney <cagney@gnu.org>
1786
1787 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1788 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1789 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1790 Update dependencies.
1791
1792 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1793
1794 * ada-lang.c (ada_lookup_symbol): Correct comment.
1795 (ada_evaluate_subexp): Change error message for
1796 OP_FUNCALL case so as not to indicate an internal error.
1797
1798 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1799
1800 Committed by Paul Hilfinger.
1801 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1802 type sizes in XVE/XVU types, and emit a warning when that happens,
1803 instead of rounding up the size of the resulting type.
1804 Some minor reformatting.
1805 (ada_is_aligner_type): Do not consider a type as an aligner type
1806 if there is a corresponding XVS type as well.
1807 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1808 have several levels of pointer indirection to the array.
1809
1810 2004-10-15 Jerome Guitton <guitton@gnat.com>
1811
1812 Committed by Paul Hilfinger.
1813 * ada-lang.c (check_size): New function.
1814 (coerce_unspec_val_to_type): call check_size to make sure
1815 that the object size is reasonable.
1816 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1817 Implements the case when we get a reference when we evaluate
1818 the expression of one of the bounds of the slice.
1819 (ada_value_struct_elt): when a packed array field is
1820 a reference, use ada_coerce_ref to dereference it; use
1821 ada_value_ind only if it is a pointer.
1822
1823 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1824
1825 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1826 a bit to avoid the necessity of an advance declaration. Remove
1827 declaration.
1828 (set_reg_offset): Move implemenation up.
1829 (mips16_get_imm): Likewise.
1830 (mips16_scan_prologue): Likewise.
1831 (reset_saved_regs): Likewise.
1832 (mips32_scan_prologue): Likewise.
1833
1834 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1835
1836 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1837 Remove sp as a parameter, compute it internally instead. Move
1838 prologue scanning limit from heuristic_proc_desc to here.
1839 (mips16_scan_prologue): Likewise.
1840 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1841 by call to mips16_scan_prologue.
1842 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1843 by call to mips32_scan_prologue.
1844 (heuristic_proc_desc): Remove code that's no longer necessary.
1845 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1846 (mips_skip_prologue): Update calls to mips16_scan_prologue
1847 and mips32_scan_prologue.
1848
1849 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1850
1851 * mips-tdep.c (mips16_scan_prologue): Merge code from
1852 mips16_skip_prologue. Now return the address of the first
1853 instruction past the function prologue.
1854 (mips16_skip_prologue): Remove, no longer necessary.
1855 (mips_skip_prologue): Replace call to mips16_skip_prologue
1856 by call to mips16_scan_prologue.
1857
1858 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1859
1860 * mips-tdep.c (mips32_scan_prologue): Merge code from
1861 mips32_skip_prologue. Now return the address of the first
1862 instruction past the function prologue.
1863 (mips32_skip_prologue): Remove. No longer necessary.
1864 (mips16_skip_prologue): Add parameter end_pc instead of
1865 computing it.
1866 (mips_skip_prologue): Compute the upper limit for the
1867 prologue scanning. Update call to mips16_skip_prologue.
1868 Replace call to mips32_skip_prologue by call to
1869 mips32_scan_prologue.
1870
1871 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1872
1873 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1874 NetBSD system call stubs that store %rp in the ERP slot of the
1875 stack frame.
1876
1877 * source.c: Always define O_BINARY to 0 if not defined already.
1878 (openp): Unconditionally use O_BINARY.
1879
1880 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1881 * event-top.c (gdb_readline2): Likewise.
1882
1883 2004-10-14 Orjan Friberg <orjanf@axis.com>
1884
1885 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1886 deprecated_add_core_fns which was removed by mistake.
1887
1888 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1889
1890 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1891 references to deprecated_registers[] with equivalent code.
1892
1893 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1894
1895 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1896 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1897 instead of explicit test and print statement.
1898
1899 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1900
1901 * sparc-nat.c: Include "inf-ptrace.h".
1902 (sparc_target): New function.
1903 * sparc-nat.h: Update copyright year.
1904 (sparc_target): New prototype.
1905 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1906 (_initialize_sparcnbsd_nat): Construct and add target vector.
1907 * sparc64nbsd-nat.c: Include "target.h".
1908 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1909 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1910 Update dependencies.
1911 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1912 inftarg.o, add inf-ptrace.o.
1913 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1914 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1915 (NAT_FILE): Set to nm-bsd.h.
1916 (LOADLIBES): New variable.
1917 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1918 infarg.o, add inf-ptrace.o.
1919 * config/sparc/nm-nbsdaout.h: Remove file.
1920 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1921 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1922 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1923
1924 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1925 "fopen-same.h". Update comment.
1926
1927 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1928
1929 * i386gnu-nat.c: Include "gdb_string.h".
1930 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1931 registers when the floating-point state isn't initialized.
1932 * Makefile.in (i386gnu-nat.o): Update dependencies.
1933
1934 2004-10-11 David Anderson <davea@sgi.com>
1935
1936 * regcache.c (regcache_raw_read): Comment was missing "to".
1937 Extraneous ' removed.
1938 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1939 comment now describes use.
1940
1941 2004-10-11 Orjan Friberg <orjanf@axis.com>
1942
1943 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1944 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1945 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1946 (cris_sigtramp_frame_sniffer): New functions.
1947 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1948 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1949 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1950 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1951 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1952 command.
1953 (cris_version_update): Remove, replace with ...
1954 (set_cris_version): New function.
1955 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1956 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1957 (_initialize_cris_tdep): Remove CRIS mode command.
1958 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1959 cris-fpless-backtrace command.
1960 (cris_scan_prologue): Fix prologue scanning limit.
1961 (cris_register_type): Update to reflect actual registers.
1962 (cris_register_bytes_ok) Remove.
1963 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1964 Remove set_gdbarch_deprecated_register_size,
1965 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1966
1967 2004-10-10 Andrew Cagney <cagney@gnu.org>
1968
1969 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1970 comment.
1971
1972 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1973
1974 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1975
1976 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1977
1978 * mips-tdep.c (mips16_scan_prologue): Renames
1979 mips16_heuristic_proc_desc. Update comment.
1980 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1981 (heuristic_proc_desc): Update calls to the 2 functions above.
1982
1983 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1984
1985 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1986 Update comments. Also immediately return empty cache when the start
1987 address of our function could not be found.
1988 (mips_insn32_frame_cache): Likewise.
1989
1990 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1991
1992 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1993 (mips_insn16_frame_cache): Pass frame cache in call to
1994 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1995 Remove code that became redundant as a consequence.
1996 (mips32_heuristic_proc_desc): No longer compute a fake
1997 procedure descriptor. Compute the full frame cache instead.
1998 Some minor comment reformatting.
1999
2000 2004-10-10 Jim Blandy <jimb@redhat.com>
2001
2002 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2003 reader, tracing bytecode stuff): Remove self.
2004
2005 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2006
2007 * sparc64-linux-tdep.c: Update copyright year. Don't include
2008 "solib-svr4.h".
2009 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2010 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2011 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2012
2013 * sparc-linux-tdep.c: Update copyright year.
2014 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2015 to struct frame_info *. Use safe_frame_unwind_memory instead of
2016 deprecated_read_memory_nobpt.
2017 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2018 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2019 changed signature of sparc_linux_sigtramp_start.
2020 (sparc32_linux_pc_in_sigtramp): Remove function.
2021 (sparc32_linux_sigtramp_p): New function.
2022 (sparc32_linux_sigtramp_frame_sniffer): Use
2023 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2024
2025 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2026 Remove function.
2027 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2028
2029 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2030 (decode_packed_array_type, value_subscript_packed)
2031 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2032 argument in call to lim_warning.
2033
2034 * configure.in: Really disable the TUI if an enhanced curses
2035 library isn't found.
2036 * configure: Regenerate.
2037
2038 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2039
2040 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2041 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2042 * config/i386/nm-nbsdaout.h: Remove file.
2043 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2044 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2045 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2046 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2047 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2048 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2049 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2050 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2051 (ldd, ld_un, ld_2): Remove defines.
2052 * config/i386/nm-obsd.h: Likewise.
2053
2054 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2055
2056 * ada-lex.l: Remove useless rule whose right-context clause
2057 causes unreferenced static function warning for yyrealloc.
2058 (ada_flex_use): Remove the artificial reference to yyrealloc.
2059
2060 2004-10-08 Andrew Cagney <cagney@gnu.org>
2061
2062 * target.h (struct target_ops): Rename to_xfer_memory to
2063 deprecated_xfer_memory.
2064 * target.c: Update.
2065 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2066 * wince.c: Update.
2067 * win32-nat.c: Update.
2068 * v850ice.c: Update.
2069 * uw-thread.c: Update.
2070 * thread-db.c: Update.
2071 * sol-thread.c: Update.
2072 * remote.c: Update.
2073 * remote-vx.c: Update.
2074 * remote-st.c: Update.
2075 * remote-sim.c: Update.
2076 * remote-sds.c: Update.
2077 * remote-rdp.c: Update.
2078 * remote-rdi.c: Update.
2079 * remote-mips.c: Update.
2080 * remote-m32r-sdi.c: Update.
2081 * remote-e7000.c: Update.
2082 * procfs.c: Update.
2083 * ppc-bdm.c: Update.
2084 * nto-procfs.c: Update.
2085 * monitor.c: Update.
2086 * linux-nat.c: Update.
2087 * inftarg.c: Update.
2088 * hpux-thread.c: Update.
2089 * go32-nat.c: Update.
2090 * gnu-nat.c: Update.
2091 * exec.c: Update.
2092 * corelow.c: Update.
2093 * bsd-kvm.c: Update.
2094 * aix-thread.c: Update.
2095
2096 2004-10-08 Andrew Cagney <cagney@gnu.org>
2097
2098 * target.c (debug_target): Move to near start of file.
2099 (target_stopped_data_address_p): Re-org logic, add casts.
2100
2101 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2102
2103 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2104 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2105 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2106 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2107 New defines.
2108
2109 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2110
2111 * target.h (to_stopped_data_address): Change prototype to
2112 take a CORE_ADDR pointer and return an int.
2113 * target.c (update_current_target): Change to_stopped_data_address
2114 to match new prototype.
2115 (debug_to_stopped_data_address): Change appropriately.
2116 * breakpoint.c (bpstat_stop_status): Change call to
2117 target_stopped_data_address to use new prototype.
2118 * frv-tdep.c (frv_have_stopped_data_address): New function.
2119 (frv_stopped_data_address): Change to new prototype and
2120 functionality.
2121 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2122 prototype and functionality.
2123 (ia64_stopped_by_watchpoint): New function.
2124 * i386-nat.c (i386_stopped_data_address): Change to new
2125 prototype and functionality.
2126 (i386_stopped_by_watchpoint): New function.
2127 * remote.c (remote_stopped_data_address): Change to new prototype
2128 and functionality.
2129 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2130 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2131 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2132 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2133 new i386_stopped_by_watchpoint function.
2134 (i386_stopped_by_watchpoint): New prototype.
2135 (i386_stoppped_data_address): Change to new prototype.
2136 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2137 new ia64_stopped_by_watchpoint function.
2138 (ia64_stopped_by_watchpoint): New prototype.
2139 (ia64_stopped_data_address): Ditto.
2140
2141 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2142
2143 * ada-typeprint.c (ada_print_type): Use int_string for printing
2144 modulus of modular type.
2145 * ada-lang.h (ada_modulus): Change return type to unsigned.
2146 * ada-lang.c (ada_language_arch_info): Correct type of
2147 string_char_type.
2148 (ada_modulus): Return unsigned result.
2149 (ada_lookup_symbol): Remove user disambiguation and modify comment
2150 accordingly.
2151
2152 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2153
2154 Committed by Paul Hilfinger.
2155 * ada-lang.c (decode_packed_array): On big-endian targets,
2156 left-justify the value if it comes with a modular type.
2157
2158 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2159
2160 Committed by Paul Hilfinger.
2161 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2162 (is_name_suffix): Add support for "___JM" suffixes.
2163 (ada_check_typedef): Renames ada_completed_type.
2164 Update all users of CHECK_TYPEDEF, check_typedef, and
2165 ada_complete_type to call ada_check_typedef.
2166 * ada-typeprint.c: Likewise.
2167 * ada-valprint.c: Likewise.
2168
2169 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2170
2171 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2172
2173 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2174
2175 * MAINTAINERS: Update e-mail address.
2176
2177 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2178
2179 From Maciej W. Rozycki <macro@mips.com>:
2180 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2181 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2182
2183 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2184
2185 * m32r-tdep.c (decode_prologue): Support functions written
2186 in assembler language. Recognize trap instructions as the
2187 end of prologue.
2188 (m32r_frame_unwind_cache): Ditto.
2189 (m32r_skip_prologue): Extend search limit. Quit analyzing
2190 prologue if pc's location is not readable.
2191
2192 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2193
2194 * Makefile.in (.l.c): Do conversions of names of alloc and free
2195 functions that are done for .y.c files, plus special one
2196 for yy_flex_realloc. Also, correct missing-file tests here.
2197 * ada-lex.l (malloc, free): Remove macros.
2198 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2199 xrealloc.
2200 (ada_flex_use): Dummy definition to remove warnings about unused
2201 functions.
2202 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2203 to suppress warning.
2204
2205 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2208 RETURN_VALUE.
2209 (sh_return_value_fpu): Ditto for CPUs with FPU.
2210 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2211 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2212 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2213 RETURN_VALUE functions.
2214
2215 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2216
2217 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2218 (sh_pseudo_register_write): Ditto.
2219
2220 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2221
2222 * sh-tdep.c (IS_MACL_STS): New define.
2223 (IS_MOVI20): Ditto.
2224 (IS_MACL_LDS): Ditto.
2225 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2226 instructions in prologue.
2227 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2228 instructions in epilogue.
2229
2230 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2231
2232 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2233 (sh_sh_register_name): Add eight empty register names.
2234 (sh_sh3_register_name): Ditto.
2235 (sh_sh3e_register_name): Ditto.
2236 (sh_sh2e_register_name): Ditto.
2237 (sh_sh2a_register_name): New function, defining SH2A register set.
2238 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2239 in nofpu case.
2240 (sh_sh_dsp_register_name): Add eight empty register names.
2241 (sh_sh3_dsp_register_name): Ditto.
2242 (sh_sh4_register_name): Ditto.
2243 (sh_sh4_nofpu_register_name): Ditto.
2244 (sh_sh4al_dsp_register_name): Ditto.
2245 (sh2a_show_regs): New function.
2246 (sh2a_nofpu_show_regs): New function.
2247 (sh_sh2a_register_type): New function.
2248 (do_bank_register_info): New function.
2249 (sh_print_pseudo_register): Call do_bank_register_info.
2250 Call sh_print_pseudo_register for valid "bank" register.
2251 (sh_sh2a_register_sim_regno): New function.
2252 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2253 Increment pseudo register count by one for all sh variants with
2254 pseudo registers to accomodate pseudo bank register.
2255 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2256 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2257 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2258 Increment pseudo register numbers.
2259
2260 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2261
2262 * dwarf2read.c (read_subroutine_type): Call make_function_type
2263 instead of lookup_function_type.
2264
2265 2004-10-05 Jim Blandy <jimb@redhat.com>
2266
2267 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2268 (Previous change missed some uses.)
2269
2270 2004-10-05 Andrew Cagney <cagney@gnu.org>
2271
2272 * target.h (deprecated_child_ops): Rename child_ops.
2273 * wince.c: Update copyright. Rename child_ops.
2274 * win32-nat.c: Rename child_ops.
2275 * target.c: Rename child_ops.
2276 * rs6000-nat.c: Rename child_ops.
2277 * linux-nat.c: Rename child_ops.
2278 * infttrace.c: Rename child_ops.
2279 * inftarg.c: Rename child_ops.
2280 * infptrace.c: Rename child_ops.
2281 * hppah-nat.c: Update copyright. Rename child_ops.
2282 * hpux-thread.c: Update copyright. Rename child_ops.
2283
2284 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2285
2286 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2287
2288 2004-10-05 Andrew Cagney <cagney@gnu.org>
2289
2290 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2291
2292 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2293
2294 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2295 (die_ref_table): Remove.
2296 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2297 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2298 the usage of this type.
2299 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2300 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2301 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2302 (dwarf2_create_include_psymtab): Update comment.
2303 (find_partial_die): Remove third argument. Remove unreachable call
2304 to error ().
2305 (dwarf2_find_containing_comp_unit): Update comments. Change one
2306 assertion to an error. Remove an unreachable error.
2307 (dwarf2_find_comp_unit): Update comments.
2308 (type_at_offset): Remove dead code.
2309 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2310 (store_in_ref_table): Add CU argument.
2311 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2312 inter-compilation-unit references.
2313 (load_full_comp_unit, process_full_comp_unit): New functions, based
2314 on psymtab_to_symtab_1.
2315 (psymtab_to_symtab_1): Use them.
2316 (dwarf2_add_dependence): New function.
2317 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2318 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2319 (partial_die_parent_scope, guess_structure_name): Update for changes
2320 to find_partial_die.
2321 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2322 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2323 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2324 (read_die_and_children): Update call to store_in_ref_table.
2325 (do_free_die_list_cleanup): Remove.
2326 (fixup_partial_die): Update for changes to find_partial_die.
2327 (read_full_die): Handle queueing absolute references.
2328 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2329 (dwarf2_attr, die_specification, die_type)
2330 (die_containing_type, dwarf2_extension): Update calls to
2331 follow_die_ref.
2332 (dump_die): Update DW_FORM_ref* handling.
2333 (dwarf2_get_ref_die_offset): Likewise.
2334 (free_one_comp_unit): Release the dies list.
2335 (dwarf2_mark_helper): New function.
2336 (dwarf2_mark): Use it.
2337
2338 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2339
2340 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2341 when writing to memory.
2342
2343 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2344
2345 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2346 (m32r_extract_struct_value_address): Delete function.
2347 (m32r_return_value): New function.
2348 (m32r_gdbarch_init): Instead of store_return_value,
2349 extract_return_value, deprecated_extract_struct_value_address
2350 and deprecated_use_struct_convention, set return_value.
2351
2352 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2353
2354 * dwarf2read.c (read_subrange_type): Add comment for variable
2355 sized arrays.
2356
2357 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2358
2359 * Makefile.in (.l.c): Modify rule for compatibility with recent
2360 versions of flex, and remove most command-line options.
2361 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2362 options.
2363
2364 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2365
2366 Turn on initial Ada support (mainly expression evaluation).
2367
2368 * Makefile.in (SFILES): Remove ada-tasks.c.
2369 (HFILES_NO_SRCDIR): Add ada-lang.h.
2370 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2371 (YYOBJ): Add ada-exp.o.
2372 (rule .l.c): Generalize to not mention ada.
2373 * symtab.c: Include ada-lang.h.
2374 (symbol_natural_name, symbol_demangled_name)
2375 (symbol_search_name): Add Ada case.
2376
2377 2004-10-01 Andrew Cagney <cagney@gnu.org>
2378
2379 * Makefile.in (COMMON_OBS): Add inf-child.o.
2380 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2381 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2382 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2383 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2384 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2385 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2386 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2387 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2388 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2389 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2390 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2391 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2392 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2393
2394 * target.c (xfer_using_stratum): Change return type to LONGEST.
2395 On each iteration offset, readbuf and writebuf.
2396 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2397 partial_length, and read/modify/write predicate, update comments.
2398 Pass buffer.word to ptrace write.
2399
2400 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2401
2402 * symfile.c (init_filename_language_table): Add extensions for
2403 Ada.
2404 * defs.h (enum language): Add language_ada.
2405 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2406 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2407 (add_symbols_from_enclosing_procs): Make a no-op for now.
2408 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2409 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2410 (find_line_in_linetable, find_next_line_in_linetable)
2411 (read_all_symtabs, is_plausible_func_for_line)
2412 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2413 (is_runtime_sym_defined, check_size): Remove declaration.
2414 (function_name_from_pc, ada_translate_error_message)
2415 (ada_lookup_minimal_symbol): Remove definition.
2416 (ada_add_block_symbols): Remove useless label.
2417 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2418 useless declaration.
2419 (ada_is_exception_sym): Likewise.
2420
2421 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2422
2423 Add m32r-linux support.
2424 * configure.tgt: Add m32r*-*-linux*.
2425 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2426 and m32r-linux-tdep.c.
2427 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2428 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2429 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2430 m32r-linux-tdep.c.
2431 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2432 config/m32r/linux.mh, config/m32r/linux.mt,
2433 config/m32r/nm-linux.h: New files.
2434
2435 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2436
2437 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2438 (mips32_fetch_instruction): Remove, unused.
2439
2440 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2441
2442 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2443 conditions that will always be true.
2444
2445 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2446
2447 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2448 (vaxbsd_fetch_inferior_registers): Rename from
2449 fetch_inferior_registers. Make static.
2450 (vaxbsd_store_inferior_registers): Rename from
2451 store_inferior_registers. Make static.
2452 (_initialize_vaxbsd_nat): Construct and add target vector.
2453 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2454 inftarg.o. Add inf-child.o and inf-ptrace.o.
2455 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2456 inftarg.o. Add inf-child.o and inf-ptrace.o.
2457 (NAT_FILE): Remove.
2458 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2459 inftarg.o. Add inf-child.o and inf-ptrace.o.
2460 (NAT_FILE): Remove.
2461 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2462
2463 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2464 (m88kbsd_fetch_inferior_registers): Rename from
2465 fetch_inferior_registers. Make static.
2466 (m88kbsd_store_inferior_registers): Rename from
2467 store_inferior_registers. Make static.
2468 (_initialize_m88kbsd_nat): New prototype and function.
2469 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2470 inftarg.o. Add inf-child.o and inf-ptrace.o.
2471 (NAT_FILE): Remove.
2472 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2473
2474 2004-09-30 Andrew Cagney <cagney@gnu.org>
2475
2476 * target.c (target_xfer_partial): New function.
2477 (target_read_memory_partial, target_write_memory_partial)
2478 (default_xfer_partial, target_read_partial, target_write_partial)
2479 (xfer_using_stratum): Use.
2480 (debug_to_xfer_partial): Delete function.
2481 (setup_target_debug): Do not override to_xfer_partial.
2482
2483 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2484
2485 * fork-child.c: Update copyright year. Fix coding style.
2486
2487 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2488
2489 * defs.h (msavestring, mstrsave): Remove prototypes.
2490 * utils.c (msavestring, mstrsave): Remove functions.
2491 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2492 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2493 of mstrsave.
2494 * source.c (find_and_open_source): Use xstrdup instead of
2495 mstrsave.
2496
2497 2004-09-30 Andrew Cagney <cagney@gnu.org>
2498
2499 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2500 (inf_ptrace_xfer_memory): Delete.
2501 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2502 (target_read_memory, target_write_memory): Use xfer_using_stratum
2503 when target_xfer_partial_p.
2504 (debug_target): Move to start of file.
2505 (target_read_memory_partial, target_write_memory_partial): Use
2506 to_xfer_partial when target_xfer_partial_p.
2507
2508 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2509 inf_ptrace_xfer_memory with equivalent code.
2510 * inftarg.c (child_xfer_partial): When performing a write, pass
2511 writebuf to child_xfer_memory.
2512
2513 * target.c (target_read_string): Use target_read_memory instead of
2514 target_xfer_memory.
2515
2516 2004-09-29 Andrew Cagney <cagney@gnu.org>
2517
2518 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2519 the address of status.
2520
2521 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2522 (kill_inferior): Inline ptrace_wait call.
2523 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2524 * inftarg.c (child_wait): Inline ptrace_wait call.
2525
2526 * target.h (struct target_ops): Delete field to_post_wait.
2527 (target_post_wait): Delete macro.
2528 (child_post_wait): Delete declaration.
2529 * target.c (update_current_target, update_current_target)
2530 (debug_to_post_wait, setup_target_debug): Delete functions and
2531 references.
2532 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2533 * inftarg.c (child_post_wait): Delete.
2534 (init_child_ops): Do not set to_post_wait.
2535 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2536 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2537 * inf-child.c (inf_child_post_wait): Delete.
2538 (inf_child_target): Do not set to_post_wait.
2539 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2540 (inf_ptrace_target): Do not set to_post_wait.
2541
2542 * wince.c (child_ops): Delete.
2543 * win32-nat.c (child_ops): Delete.
2544
2545 * inftarg.c (inftarg_set_find_memory_regions)
2546 (inftarg_set_make_corefile_notes): Delete functions.
2547 (_initialize_linux_nat): Inline calls.
2548
2549 * target.h (child_ops): Declare.
2550 * inftarg.c (child_ops): Move from here ...
2551 * target.c (child_ops): ... to here.
2552 * wince.c (child_ops): Delete extern declaration.
2553 * win32-nat.c (child_ops): Delete extern declaration.
2554 * linux-nat.c (child_ops): Delete extern declaration.
2555 * hpux-thread.c (child_ops): Delete extern declaration.
2556
2557 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2558
2559 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2560
2561 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2562
2563 * configure.in: Only set host_makefile_frag when building a native
2564 debugger.
2565 * configure: Regenerate.
2566
2567 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2568 for OpenBSD ELF.
2569
2570 2004-09-28 Andrew Cagney <cagney@gnu.org>
2571
2572 Problem identified by Paul Hilfinger.
2573 * Makefile.in (ada_lex_c): Define.
2574 (ada-lex.o): Delete rule.
2575
2576 * linux-proc.c: Delete file.
2577 * Makefile.in: Update.
2578 * config/sparc/linux64.mh (NATDEPFILES):
2579 * config/sparc/linux.mh (NATDEPFILES): Update.
2580 * config/s390/s390.mh (NATDEPFILES): Update.
2581 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2582 * config/powerpc/linux.mh (NATDEPFILES): Update.
2583 * config/pa/linux.mh (NATDEPFILES): Update.
2584 * config/mips/linux.mh (NATDEPFILES): Update.
2585 * config/m68k/linux.mh (NATDEPFILES): Update.
2586 * config/ia64/linux.mh (NATDEPFILES): Update.
2587 * config/i386/linux64.mh (NATDEPFILES): Update.
2588 * config/i386/linux.mh (NATDEPFILES): Update.
2589 * config/arm/linux.mh (NATDEPFILES): Update.
2590 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2591 * linux-nat.c: Update copyright. Include <sys/param.h>,
2592 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2593 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2594 (O_LARGEFILE): Possibly define.
2595 (_initialize_linux_nat, linux_proc_pending_signals)
2596 (add_line_to_sigset, linux_proc_xfer_memory)
2597 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2598 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2599 (struct linux_corefile_thread_data)
2600 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2601 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2602
2603 2004-09-16 Andrew Cagney <cagney@gnu.org>
2604
2605 * lin-lwp.c: Delete file.
2606 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2607 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2608 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2609 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2610 (linux_nat_attach, detach_callback, linux_nat_detach)
2611 (resume_callback, resume_clear_callback, linux_nat_resume)
2612 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2613 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2614 (status_callback, running_callback, count_events_callback)
2615 (select_singlestep_lwp_callback, select_event_lwp_callback)
2616 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2617 (child_wait, stop_and_resume_callback, linux_nat_wait)
2618 (kill_callback, kill_wait_callback, linux_nat_kill)
2619 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2620 (linux_nat_xfer_memory, linux_nat_thread_alive)
2621 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2622 (_initialize_linux_nat): New functions.
2623 * Makefile.in: Update all dependencies.
2624 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2625 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2626 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2627 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2628 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2629 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2630 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2631 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2632 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2633 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2634 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2635 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2636 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2637
2638 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2639
2640 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2641 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2642
2643 * configure.in: Don't comment out NATDEPFILES in the generated
2644 Makefile if NAT_FILE is unset.
2645 * configure: Regenerate.
2646
2647 2004-09-27 Andrew Cagney <cagney@gnu.org>
2648
2649 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2650 (insert_step_resume_breakpoint): Delete.
2651 (insert_step_resume_breakpoint_at_frame): New function.
2652 (insert_step_resume_breakpoint_at_sal): New function.
2653 (handle_inferior_event, step_into_function)
2654 (insert_step_resume_breakpoint): Simplify by using same.
2655
2656 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2657
2658 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2659
2660 * fbsd-proc.c: Remove file.
2661 * Makefile.in (fbsd-proc.o): Remove dependency.
2662
2663 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2664 code together.
2665
2666 * config/i386/nm-fbsd64.h: Remove file.
2667 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2668
2669 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2670
2671 * amd64-nat.h: Update copyright year.
2672 (amd64bsd_target): New prototype.
2673 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2674 (amd64bsd_target): New function.
2675 (amd64bsd_fetch_inferior_registers): Rename from
2676 fetch_inferior_registers. Make static.
2677 (amd64bsd_store_inferior_registers): Rename from
2678 store_inferior_registers. Make static.
2679 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2680 (_initialize_amd64fbsd_nat): Construct and add target vector.
2681 * amd64nbsd-nat.o: Include "target.h".
2682 (_initialize_amd64nbsd_nat): Construct and add target vector.
2683 * amd64obsd-nat.c: Include "target.h".
2684 (_initialize_amd64obsd_nat): Construct and add target vector.
2685 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2686 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2687 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2688 fbsd-nat.o.
2689 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2690 Remove infptrace.o and inftarg.o. Add inf-child.o and
2691 inf-ptrace.o.
2692 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2693 (amd64obsd-nat.o): Update dependencies.
2694
2695 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2696
2697 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2698 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2699 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2700 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2701 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2702
2703 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2704 Inline attach call.
2705 (inf_ptrace_detach): Inline detach call.
2706
2707 * configure.in: Check for waddstr instead of mvwaddstr when
2708 searching for curses library. Check for wborder.
2709 * configure, config.in: Regenerate.
2710 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2711 available.
2712
2713 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2714
2715 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2716
2717 Committed by Andrew Cagney.
2718 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2719 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2720 configuration.
2721 (fetch_register_using_p): Implement 'p' packet. Based on code by
2722 Fernando Nasser.
2723 (remote_fetch_registers): Call fetch_register_using_p.
2724 (init_all_packet_configs, show_remote_cmd)
2725 (_initialize_remote): Add p-packet.
2726
2727 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2728
2729 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2730 instead of call_ptrace. Call wait directly instead of
2731 ptrace_wait.
2732 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2733 (inf_ptrace_wait): Inline ptrace_wait call.
2734
2735 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2736
2737 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2738 rolled back instead.
2739
2740 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2741
2742 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2743 the new argument order.
2744
2745 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2746
2747 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2748 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2749 (struct gdbarch_tdep): Remove.
2750 (struct xstormy16_frame_cache): New frame cache structure.
2751 (xstormy16_register_byte, xstormy16_register_raw_size)
2752 (xstormy16_reg_virtual_type, xstormy16_register_type)
2753 (xstormy16_push_arguments, xstormy16_push_return_address)
2754 (xstormy16_pop_frame, xstormy16_store_struct_return)
2755 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2756 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2757 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2758 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2759 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2760 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2761 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2762 (xstormy16_extract_return_value, xstormy16_store_return_value):
2763 Regcachify. Drop useless struct convention handling.
2764 (xstormy16_register_type, xstormy16_return_value)
2765 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2766 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2767 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2768 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2769 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2770 (xstormy16_unwind_dummy_id) : New functions.
2771 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2772 of xstormy16_scan_prologue.
2773 (xstormy16_frame_unwind): New frame_unwind structure.
2774 (xstormy16_frame_base): New frame_base structure.
2775 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2776 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2777
2778 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2779
2780 * language.c (language_gdbarch_post_init): Fix off-by one error.
2781
2782 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2783
2784 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2785 (struct dwarf2_offset_and_type): New.
2786 (set_die_type, reset_die_and_siblings_types, get_die_type)
2787 (offset_and_type_hash, offset_and_type_eq): New functions.
2788 (read_structure_type, read_enumeration_type, read_array_type)
2789 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2790 (read_tag_reference_type, read_tag_const_type)
2791 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2792 (read_typedef, read_base_type, read_subrange_type): Use
2793 set_die_type.
2794
2795 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2796
2797 * Makefile.in (dwarf2read.o): Update dependencies.
2798 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2799 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2800 and read_in_chain.
2801 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2802 mark, and has_form_ref_addr.
2803 (struct dwarf2_per_cu_data): New.
2804 (dwarf2_max_cache_age): New.
2805 (dwarf2_build_psymtabs_hard): Free cached compilation units
2806 after loading. Create and manage the list of compilation units.
2807 Remove unnecessary NULL initialization. Fix indentation.
2808 (psymtab_to_symtab_1): Initialize all of CU.
2809 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2810 (find_partial_die): Use dwarf2_find_containing_comp_unit
2811 and load_comp_unit.
2812 (free_stack_comp_unit): Update comments. Clear the per-cu
2813 pointer. Handle aging.
2814 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2815 (age_cached_comp_units, free_one_cached_comp_unit)
2816 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2817 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2818 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2819 (show_dwarf2_cmd): New.
2820 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2821 and "maint show dwarf2 max-cache-age".
2822 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2823 externs.
2824 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2825 global.
2826
2827 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2828
2829 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2830 and dwarf2_cu struct pointer as arguments. Change function to use
2831 obstack if provided and use dwarf2_cu to determine language-specific
2832 separator.
2833 (partial_die_parent_scope): Change comment to include java. Use
2834 new version of typename_concat instead of obconcat.
2835 (partial_die_full_name): Use typename_concat.
2836 (read_namespace): Ditto.
2837 (read_enumeration_type): Use typename_concat instead of obconcat.
2838 (new_symbol): Ditto.
2839 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2840 (guess_structure_name): Ditto.
2841 (read_subroutine_type): Ditto.
2842 (read_structure_type): Ditto.
2843 (is_vtable_name): Add Java support.
2844 (determine_class_name): Switch to new typename_concat call.
2845 (determine_prefix): Switch to new typename_concat call.
2846 * jv-exp.y (FuncStart): New pattern.
2847 (MethodInvocation): Add support for simple function calls. Change
2848 warning message for other forms of inferior call currently not
2849 supported.
2850 * valarith.c (value_subscript): Treat an array with upper-bound
2851 of -1 as unknown size.
2852
2853 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2854
2855 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2856 (lookup_partial_symtab): Use symtab_to_fullname.
2857
2858 2004-09-19 Jim Blandy <jimb@redhat.com>
2859
2860 * minsyms.c (lookup_minimal_symbol): Doc fix.
2861
2862 2004-09-20 Andrew Cagney <cagney@gnu.org>
2863
2864 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2865 CHILD_RESUME.
2866 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2867 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2868 KILL_INFERIOR.
2869 * infptrace.c: Update.
2870
2871 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2872
2873 * symtab.c (output_source_filename): Mark first argument as const.
2874 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2875 for "info sources" output.
2876
2877 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2878
2879 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2880 <machine/vmparam.h>.
2881 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2882 (register_u_addr): Remove prototype.
2883
2884 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2885
2886 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2887 (i386bsd_fetch_inferior_registers): Rename from
2888 fetch_inferior_registers. Make static.
2889 (i386bsd_store_inferior_registers): Rename from
2890 store_inferior_registers. Make static.
2891 (i386bsd_target): New function.
2892 * i386bsd-nat.h: New file.
2893 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2894 "i386bsd-nat.h".
2895 (i386fbsd_resume): Rename from child_resume. Make static.
2896 (_initialize_i386fbsd_nat): Construct and add target vector.
2897 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2898 (_initialize_i386nbsd_nat): Construct and add target vector.
2899 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2900 Remove defines.
2901 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2902 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2903 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2904 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2905 (LOADLIBES): New variable.
2906 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2907 inf-ptrace.o. Remove inftarg.o.
2908 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2909 inf-ptrace.o. Remove inftarg.o.
2910 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2911 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2912 (LOADLIBES): New variable.
2913 * Makefile.in (i386bsd_nat_h): New variable.
2914 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2915 dependencies.
2916
2917 * sparc64nbsd-tdep.c: Include "objfiles.h".
2918 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2919 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2920 svr4_lp64_fetch_link_map_offsets.
2921 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2922 "nbsd-tdep.h".
2923 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2924 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2925 svr4_lp64_fetch_link_map_offsets.
2926 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2927 dependencies.
2928
2929 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2930 * fbsd-nat.h: New file.
2931 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2932 (fbsd_nat_h): New variable.
2933 (fbsd-nat.o): New dependency.
2934
2935 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2936 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2937
2938 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2939 comment.
2940
2941 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2942
2943 * ada-exp.y (type_int): New function to add layer of abstraction
2944 around references to expression types.
2945 (type_long): Ditto.
2946 (type_long_long): Ditto.
2947 (type_float): Ditto.
2948 (type_double): Ditto.
2949 (type_long_double): Ditto.
2950 (type_char): Ditto.
2951 (type_system_address): Ditto.
2952 (simple_exp): Use type_* functions in place of builtin_*
2953 variables.
2954 (exp): Ditto.
2955 (write_var_from_name): Ditto.
2956 (write_object_renaming): Ditto.
2957 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2958 declaration.
2959 (build_ada_types): Remove, replacing with...
2960 (ada_language_arch_info): New function to initialize primitive
2961 type vector in language_arch_info.
2962 (ada_array_length): Remove use of builtin_type_ada_int.
2963 (value_pos_atr): Ditto.
2964 (ada_evaluate_subexp): Ditto.
2965 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2966 builtin_type_ada_long_long, builtin_type_ada_char,
2967 builtin_type_ada_float, builtin_type_ada_double,
2968 builtin_type_ada_long_double, builtin_type_ada_natural,
2969 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2970 (ada_builtin_types): Remove.
2971 (ada_language_defn): Remove entries for la_builtin_type_vector and
2972 string_char_type and use ada_language_arch_info.
2973 (_initialize_ada_language): Do type-vector initialization along
2974 the lines of c-lang.c.
2975 (ada_create_fundamental_type): Break up line.
2976 (ada_dump_symtab): Remove unused function.
2977 (enum ada_primitive_types): Define.
2978 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2979 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2980 builtin_type_ada_float, builtin_type_ada_double,
2981 builtin_type_ada_long_double, builtin_type_ada_natural,
2982 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2983 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2984 (processInt): Ditto.
2985 (processReal): Ditto.
2986 (name_lookup): Ditto.
2987 * ada-typeprint.c (print_range): Use builtin_type_int, not
2988 builtin_type_ada_int.
2989
2990 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2991
2992 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2993
2994 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2995 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2996 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2997 * configure.in: Improve checks for curses library by checking for
2998 mvwaddstr instead of initscr. Drop HP curses in favour of
2999 standard curses on HP-UX.
3000 * configure: Regenerated.
3001
3002 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3003
3004 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3005 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3006 Minor formatting changes.
3007 (empty_array): Slight rewrite for formatting.
3008 (emit_char,parse,ada_language_defn,build_ada_types,
3009 ada_is_exception_sym, _initialize_ada_language): Move
3010 definitions around.
3011 (ada_dump_symtab): Remove unused definition.
3012 (ada_maybe_exception_partial_symbol): Remove unused definition.
3013
3014 2004-09-16 Andrew Cagney <cagney@gnu.org>
3015
3016 * inf-child.c: Include "gdb_string.h".
3017 (inf_child_core_file_to_sym_file): Delete.
3018 (inf_child_target): Set to_fetch_registers and to_store_registers.
3019 * inf-ptrace.c: Include "gdb_string.h".
3020 * Makefile.in: Update all dependencies.
3021
3022 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3023 problem.
3024
3025 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3026
3027 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3028 call to heuristic_proc_desc. Remove code that became redundant
3029 as a consequence.
3030 (read_next_frame_reg): Remove special case for SP_REGNUM.
3031 (set_reg_offset): Fix small typo.
3032 (reset_saved_regs): New procedure.
3033 (mips32_heuristic_proc_desc): No longer compute a fake
3034 procedure descriptor. Compute the full frame cache instead.
3035 Some minor comment reformatting.
3036
3037 2004-09-14 Andrew Cagney <cagney@gnu.org>
3038
3039 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3040 maintainer.
3041
3042 * thread-db.c (thread_db_new_objfile): Assume that there is a
3043 child process.
3044
3045 2004-09-13 Jim Blandy <jimb@redhat.com>
3046
3047 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3048 so that its storage isn't referenced after its lifetime ends.
3049
3050 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3051 and never assigned to. Delete it, and the 'if (use_buffer)'
3052 clauses. Delete 'raw_buffer', since it is now unused.
3053
3054 2004-09-13 Andrew Cagney <cagney@gnu.org>
3055
3056 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3057 * configure: Re-generate.
3058 * nlm/Makefile.in (TAGS): Update.
3059 * Makefile.in (TAGS): Update.
3060 * config/vax/nbsd.mt (TM_FILE): Update.
3061 * config/sparc/vxworks.mt (TM_FILE): Update.
3062 * config/sparc/sol2.mt (TM_FILE): Update.
3063 * config/sparc/sol2-64.mt (TM_FILE): Update.
3064 * config/sparc/obsd64.mt (TM_FILE): Update.
3065 * config/sparc/obsd.mt (TM_FILE): Update.
3066 * config/sparc/nbsd64.mt (TM_FILE): Update.
3067 * config/sparc/nbsd.mt (TM_FILE): Update.
3068 * config/sparc/linux64.mt (TM_FILE): Update.
3069 * config/sparc/linux.mt (TM_FILE): Update.
3070 * config/sparc/fbsd.mt (TM_FILE): Update.
3071 * config/sh/wince.mt (TM_FILE): Update.
3072 * config/sh/nbsd.mt (TM_FILE): Update.
3073 * config/sh/linux.mt (TM_FILE): Update.
3074 * config/sh/embed.mt (TM_FILE): Update.
3075 * config/s390/s390.mt (TM_FILE): Update.
3076 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3077 * config/rs6000/rs6000.mt (TM_FILE): Update.
3078 * config/rs6000/aix4.mt (TM_FILE): Update.
3079 * config/powerpc/vxworks.mt (TM_FILE): Update.
3080 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3081 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3082 * config/powerpc/obsd.mt (TM_FILE): Update.
3083 * config/powerpc/nbsd.mt (TM_FILE): Update.
3084 * config/powerpc/linux.mt (TM_FILE): Update.
3085 * config/powerpc/aix.mt (TM_FILE): Update.
3086 * config/pa/obsd.mt (TM_FILE): Update.
3087 * config/pa/linux.mt (TM_FILE): Update.
3088 * config/pa/hppahpux.mt (TM_FILE): Update.
3089 * config/pa/hppa64.mt (TM_FILE): Update.
3090 * config/pa/hppa.mt (TM_FILE): Update.
3091 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3092 * config/mips/wince.mt (TM_FILE): Update.
3093 * config/mips/vxmips.mt (TM_FILE): Update.
3094 * config/mips/nbsd.mt (TM_FILE): Update.
3095 * config/mips/linux.mt (TM_FILE): Update.
3096 * config/mips/irix6.mt (TM_FILE): Update.
3097 * config/mips/irix5.mt (TM_FILE): Update.
3098 * config/mips/embed.mt (TM_FILE): Update.
3099 * config/m68k/vxworks68.mt (TM_FILE): Update.
3100 * config/m68k/st2000.mt (TM_FILE): Update.
3101 * config/m68k/os68k.mt (TM_FILE): Update.
3102 * config/m68k/obsd.mt (TM_FILE): Update.
3103 * config/m68k/nbsd.mt (TM_FILE): Update.
3104 * config/m68k/monitor.mt (TM_FILE): Update.
3105 * config/m68k/linux.mt (TM_FILE): Update.
3106 * config/m68k/cisco.mt (TM_FILE): Update.
3107 * config/ia64/linux.mt (TM_FILE): Update.
3108 * config/ia64/aix.mt (TM_FILE): Update.
3109 * config/ia64/ia64.mt (TM_FILE): Update.
3110 * config/i386/vxworks.mt (TM_FILE): Update.
3111 * config/i386/obsd64.mt (TM_FILE): Update.
3112 * config/i386/obsd.mt (TM_FILE): Update.
3113 * config/i386/nto.mt (TM_FILE): Update.
3114 * config/i386/nbsd64.mt (TM_FILE): Update.
3115 * config/i386/nbsd.mt (TM_FILE): Update.
3116 * config/i386/linux64.mt (TM_FILE): Update.
3117 * config/i386/linux.mt (TM_FILE): Update.
3118 * config/i386/i386sol2.mt (TM_FILE): Update.
3119 * config/i386/i386lynx.mt (TM_FILE): Update.
3120 * config/i386/fbsd64.mt (TM_FILE): Update.
3121 * config/i386/fbsd.mt (TM_FILE): Update.
3122 * config/i386/cygwin.mt (TM_FILE): Update.
3123 * config/h8300/h8300.mt (TM_FILE): Update.
3124 * config/frv/frv.mt (TM_FILE): Update.
3125 * config/cris/cris.mt (TM_FILE): Update.
3126 * config/arm/wince.mt (TM_FILE): Update.
3127 * config/arm/nbsd.mt (TM_FILE): Update.
3128 * config/arm/linux.mt (TM_FILE): Update.
3129 * config/arm/embed.mt (TM_FILE): Update.
3130 * config/alpha/nbsd.mt (TM_FILE): Update.
3131 * config/alpha/fbsd.mt (TM_FILE): Update.
3132 * config/alpha/alpha.mt (TM_FILE): Update.
3133 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3134 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3135
3136 Eliminate event_loop_p, always has the value 1.
3137 * defs.h (event_loop_p): Delete macro.
3138 * breakpoint.c (until_break_command): Simplify.
3139 * utils.c (prompt_for_continue): Simplify.
3140 * tracepoint.c (read_actions): Simplify.
3141 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3142 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3143 (set_prompt, init_main): Simplify.
3144 (init_signals, disconnect): Delete, unused.
3145 * remote.c (remote_async_resume)
3146 (extended_remote_async_create_inferior): Simplify.
3147 * mi/mi-interp.c (mi_input): Delete, unused.
3148 (mi_interpreter_resume, mi_command_loop): Simplify.
3149 * interps.c (current_interp_command_loop): Simplify.
3150 * infrun.c (proceed): Simplify.
3151 * infcmd.c (run_command, continue_command, step_1, jump_command)
3152 (until_command, advance_command, finish_command)
3153 (interrupt_target_command): Simplify.
3154 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3155
3156 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3157 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3158 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3159 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3160 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3161 * mips-tdep.c (mips_dump_tdep): Do not print same.
3162
3163 2004-09-12 Andrew Cagney <cagney@gnu.org>
3164
3165 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3166 const.
3167 * Makefile.in (valprint.o): Delete explict rule.
3168
3169 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3170 reported by Dave Anderson.
3171
3172 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3173
3174 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3175
3176 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3177 Andrew Cagney <cagney@gnu.org>
3178
3179 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3180 (mi_cmd_data_list_register_values)
3181 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3182 the register number computation.
3183
3184 2004-09-12 Andrew Cagney <cagney@gnu.org>
3185
3186 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3187 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3188 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3189 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3190 target.
3191 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3192 inf-ptrace.o and inf-child.o.
3193 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3194 * Makefile.in: Update dependencies.
3195
3196 2004-09-11 Andrew Cagney <cagney@gnu.org>
3197
3198 * language.c (hex_string, hex_string_custom): Move from here ...
3199 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3200 (CELLSIZE): Increase to 50.
3201 * language.h (hex_string, hex_string_custom): Move from here ...
3202 * defs.h: ... to here.
3203 * Makefile.in: Update all dependencies.
3204
3205 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3206
3207 * language.c (local_hex_format_custom): Remove.
3208 (local_hex_string): Rename to hex_string, use C format, and move to
3209 utils.c
3210 (local_hex_string_custom): Rename to hex_string_custom and change
3211 interface. Now uses C format. Move to utils.c
3212 (local_octal_format_custom): Remove.
3213 (local_decimal_format_custom): Remove.
3214 (unknown_language_defn): Remove language-specific number
3215 formatting entries.
3216 (auto_language_defn): Ditto.
3217 (local_language_defn): Ditto.
3218 * language.h (struct language_format_info): Delete declaration.
3219 (struct language_defn): Remove language_format_info fields
3220 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3221 (local_binary_format): Remove macro.
3222 (local_binary_format_prefix): Remove macro.
3223 (local_binary_format_specifier): Remove macro.
3224 (local_binary_format_suffix): Remove macro.
3225 (local_octal_format): Remove macro.
3226 (local_octal_format_prefix): Remove macro.
3227 (local_octal_format_specifier): Remove macro.
3228 (local_octal_format_suffix): Remove macro.
3229 (local_decimal_format): Remove macro.
3230 (local_decimal_format_prefix): Remove macro.
3231 (local_decimal_format_specifier): Remove macro.
3232 (local_decimal_format_suffix): Remove macro.
3233 (local_hex_format): Remove macro.
3234 (local_hex_format_prefix): Remove macro.
3235 (local_hex_format_specifier): Remove macro.
3236 (local_hex_format_suffix): Remove macro.
3237 (local_decimal_format_custom): Remove.
3238 (local_octal_format_custom): Remove.
3239 (local_hex_format_custom): Remove.
3240 (local_hex_string): Rename to hex_string and move to defs.h.
3241 (local_hex_string_custom): Rename to hex_string_custom, change
3242 interface, and move to defs.h.
3243 * utils.c: (int_string): New function.
3244 (hex_string): New function (from language.c).
3245 (hex_string_custom): New function (from language.c).
3246 (octal2str): New function.
3247 (decimal2str): Add width parameter.
3248 (paddr_u): Use new decimal2str interface.
3249 (paddr_d): Ditto.
3250 * defs.h (hex_string): Declare.
3251 (hex_string_custom): Declare.
3252 (int_string): Declare.
3253 * printcmd.c (print_scalar_formatted): Remove localized binary
3254 formatting.
3255 * valprint.c (print_longest): Use int_string.
3256 (print_floating): Use C hex format.
3257 (print_hex_chars): Ditto.
3258 (print_binary_chars): Remove language-specific formatting.
3259 (print_octal_chars): Use C octal format.
3260 (print_decimal_chars): Delocalize format.
3261 (print_decimal): Remove.
3262 * ada-lang.c (ada_language_defn): Remove language-specific number
3263 formatting entries.
3264 * p-lang.c (pascal_language_defn): Ditto.
3265 * c-lang.c (c_language_defn): Ditto.
3266 (cplus_language_defn): Ditto.
3267 (asm_language_defn): Ditto.
3268 (minimal_language_defn): Ditto.
3269 * f-lang.c (f_language_defn): Ditto.
3270 * jv-lang.c (java_language_defn): Ditto.
3271 * m2-lang.c (m2_language_defn): Ditto.
3272 * scm-lang.c (scm_language_defn): Ditto.
3273 * objc-lang.c (objc_language_defn): Ditto.
3274 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3275 new interface.
3276 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3277 * ui-out.c (ui_out_field_core_addr): Ditto.
3278 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3279 * exec.c (print_section_info): Ditto.
3280 * i387-tdep.c (print_i387_status_word): Ditto.
3281 (print_i387_control_word): Ditto.
3282 (i387_print_float_info): Ditto.
3283 * maint.c (maint_print_section_info): Ditto.
3284 * solib.c (info_sharedlibrary_command): Ditto.
3285 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3286 * symtab.c (print_msymbol_info): Ditto.
3287 * tracepoint.c (tracepoints_info): Ditto.
3288 * solib-frv.c (lm_base): Ditto.
3289 (frv_current_sos): Ditto.
3290 (enable_break2): Ditto.
3291 (enable_break): Ditto.
3292 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3293 (process_one_symbol): Ditto.
3294 * infcmd.c (program_info): Ditto.
3295 * mdebugread.c (parse_partial_symbols): Ditto.
3296 * symfile.c (add_symbol_file_command): Ditto.
3297 * cli/cli-cmds.c (edit_command): Ditto.
3298 (list_command): Ditto.
3299 * infcall.c (call_function_by_hand): Ditto.
3300 * remote-vx.c (vx_run_files_info): Ditto.
3301 (vx_wait): Ditto.
3302 (vx_attach): Ditto.
3303 (vx_detach): Ditto.
3304 (vx_kill): Ditto.
3305 * aix-thread.c (pdc_symbol_addrs): Ditto.
3306 (pdc_read_regs): Ditto.
3307 (pdc_write_regs): Ditto.
3308 (pdc_read_data): Ditto.
3309 (pdc_write_data): Ditto.
3310 * d10v-tdep.c (display_trace): Ditto.
3311 * rs6000-nat.c (find_toc_address): Ditto.
3312 * aix-thread.c: Don't include language.h.
3313 * buildsym.c: Ditto.
3314 * dbxread.c: Ditto.
3315 * mdebugread.c: Ditto.
3316 * rs6000-nat.c: Ditto.
3317 * buildsym.c (make_blockvector): Use renamed hex_string.
3318
3319 2004-09-10 Jason Molenda (jmolenda@apple.com)
3320
3321 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3322 chars after 'if' or 'while' commands in user-defined commands.
3323
3324 2004-09-08 Jim Blandy <jimb@redhat.com>
3325
3326 Fix bug reported and analyzed by Olivier Crete:
3327 * symfile.c (copy_section_addr_info): New function.
3328 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3329 original set of address arguments, instead of handwritten code
3330 that uses one length to allocate and a different length to
3331 initialize. Use make_cleanup_free_section_addr_info.
3332 * symfile.h (copy_section_addr_info): New declaration.
3333 * utils.c: #include "symfile.h".
3334 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3335 New functions.
3336 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3337 * Makefile.in (utils.o): Update dependencies.
3338
3339 2004-09-08 Andrew Cagney <cagney@gnu.org>
3340
3341 * thread-db.c (keep_thread_db): Delete.
3342 (thread_db_new_objfile, thread_db_create_inferior)
3343 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3344
3345 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3346
3347 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3348 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3349 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3350 (i386_frameless_signal_p): Remove prototype.
3351 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3352 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3353 I386_SSE_NUM_REGS.
3354 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3355 instead of FP0_REGNUM.
3356 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3357 of FP0_REGNUM and FPC_REGNUM.
3358
3359 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3360 (sunos_solib_create_inferior_hook): Don't call
3361 sunos_relocate_main_executable.
3362
3363 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3364 solib_svr4_fetch_link_map_offsets to
3365 svr4_ilp32_fetch_link_map_offsets.
3366 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3367 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3368 svr4_ilp32_fetch_link_map_offsets.
3369 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3370
3371 2004-09-07 Jim Blandy <jimb@redhat.com>
3372
3373 * frame.h (frame_register): Doc fix.
3374
3375 2004-09-07 Andrew Cagney <cagney@gnu.org>
3376
3377 * vx-share/wait.h: Delete #ifdef USG.
3378 * utils.c (request_quit): Ditto.
3379 * tui/tui.c (tui_reset): Ditto.
3380 * remote.c: Ditto.
3381 * remote-sds.c: Ditto.
3382 * remote-rdi.c: Ditto.
3383 * mdebugread.c: Ditto.
3384 * m68klinux-nat.c: Ditto.
3385 * infttrace.c: Ditto.
3386 * infptrace.c: Ditto.
3387 * i386v-nat.c: Ditto.
3388 * exec.c: Ditto.
3389 * dbxread.c: Ditto.
3390 * core-aout.c: Ditto.
3391
3392 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3393
3394 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3395 heuristic_proc_desc.
3396 (mips_insn32_frame_cache): Likewise.
3397
3398 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3399
3400 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3401 left behind by error.
3402
3403 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3404
3405 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3406 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3407
3408 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3409
3410 * config/rs6000/xm-aix4.h: Remove this file.
3411 * config/rs6000/aix4.mh (XM_FILE): Delete.
3412
3413 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3414
3415 * config/rs6000/xm-rs6000.h: Remove this file.
3416 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3417
3418 2004-09-03 Andrew Cagney <cagney@gnu.org>
3419
3420 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3421 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3422 only use.
3423
3424 * mips-tdep.c (temp_saved_regs): Delete.
3425 (set_reg_offset): Replace saved_regs parameter with this_cache.
3426 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3427 (mips32_heuristic_proc_desc): Add this_cache parameter.
3428 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3429 (after_prologue): Pass a NULL this_cache.
3430
3431 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3432 non-kernel trap prologues.
3433
3434 * mips-tdep.c (find_proc_desc): Delete function.
3435 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3436 simplify.
3437 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3438 mips_insn32_frame_cache.
3439
3440 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3441 Simplify as NEXT_FRAME is NULL.
3442 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3443
3444 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3445 local variable.
3446 (mips_skip_prologue): Update.
3447
3448 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3449 "cur_frame" parameter.
3450 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3451 (mips_insn32_frame_cache, find_proc_desc): Update
3452
3453 * config/vax/nm-obsd.h: Delete file.
3454 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3455 * config/vax/nm-nbsd.h: Delete file.
3456 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3457 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3458 * config/sh/nm-nbsd.h: Delete file.
3459 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3460 * config/rs6000/nm-rs6000ly.h: Delete file.
3461 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3462 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3463 * config/powerpc/nm-obsd.h: Delete file.
3464 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3465 * config/powerpc/nm-nbsd.h: Delete file.
3466 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3467 * config/pa/nm-obsd.h: Delete file.
3468 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3469 * config/mips/nm-nbsd.h: Delete file.
3470 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3471 * config/m88k/nm-obsd.h: Delete file.
3472 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3473 * config/m68k/nm-nbsd.h: Delete file.
3474 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3475 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3476 * config/i386/nm-nbsd.h: Delete file.
3477 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3478 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3479 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3480 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3481 * config/i386/nm-i386lynx.h: Delete file.
3482 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3483 * config/arm/nm-nbsd.h: Delete file.
3484 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3485 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3486
3487 * config/i386/tm-fbsd.h: Delete file.
3488 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3489 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3490
3491 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3492 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3493 * config/rs6000/aix4.mt (TM_FILE): Set to
3494 config/rs6000/tm-rs6000.h.
3495 * config/powerpc/tm-ppc-aix.h: Delete file.
3496 * config/powerpc/aix.mt (TM_FILE): Set to
3497 config/rs6000/tm-rs6000.h.
3498 * config/m68k/tm-linux.h: Delete file.
3499 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3500 * config/i386/tm-linux64.h: Delete file.
3501 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3502 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3503
3504 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3505 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3506 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3507 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3508 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3509 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3510 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3511 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3512 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3513
3514 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3515 gdb_host_cpu.
3516
3517 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3518
3519 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3520 Minor reformatting. Some code factoring.
3521
3522 2004-09-02 Andrew Cagney <cagney@gnu.org>
3523
3524 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3525 * config/vax/tm-nbsd.h: Delete file.
3526 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3527 * config/sparc/tm-vxworks.h: Delete file.
3528 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3529 * config/sparc/tm-nbsd.h: Delete file.
3530 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3531 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3532 * config/sparc/tm-linux.h: Delete file.
3533 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3534 * config/s390/tm-linux.h: Delete file.
3535 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3536 * config/pa/tm-bsd.h: Delete file.
3537 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3538 * config/m68k/tm-obsd.h: Delete file.
3539 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3540 * config/m68k/tm-nbsd.h: Delete file.
3541 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3542 * config/i386/tm-vxworks.h: Delete file.
3543 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3544 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3545 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3546 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3547 * config/i386/tm-nbsd.h: Delete file.
3548 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3549 * config/i386/tm-i386lynx.h: Delete file.
3550 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3551 * config/cris/tm-cris.h: Delete file.
3552
3553 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3554 * configure: Re-generate.
3555 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3556 * config/arm/tm-nbsd.h: Delete file.
3557
3558 * config/powerpc/tm-ppcle-sim.h: Delete.
3559 * config/powerpc/tm-ppcle-eabi.h: Delete.
3560 * config/powerpc/tm-nbsd.h: Delete.
3561 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3562 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3563 tm-ppcle-eabi.h.
3564
3565 * config/i386/nto.mh (NAT_FILE): Delete.
3566 * config/i386/nm-nto.h: Delete.
3567
3568 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3569 * config/m68k/tm-os68k.h: Ditto.
3570 * config/m68k/tm-monitor.h: Ditto.
3571 * config/m68k/tm-cisco.h: Ditto.
3572 * config/m68k/st2000.mt (TM_FILE): Delete.
3573 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3574 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3575 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3576 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3577
3578 * config/m68k/tm-st2000.h: Delete.
3579 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3580 * config/sparc/fbsd.mt (TM_FILE): Delete.
3581 * config/sparc/tm-fbsd.h: Delete.
3582
3583 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3584 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3585 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3586
3587 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3588 GDB_TM_FILE and GDB_XM_FILE.
3589 * gdbarch.c: Re-generate.
3590 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3591 quotes in macro definition.
3592 * configure.in: Re-generate.
3593
3594 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3595 validating architecture methods.
3596 * gdbarch.c: Re-generate.
3597
3598 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3599 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3600 GDB_MULTI_ARCH_PARTIAL.
3601 * gdbarch.h: Re-generate.
3602
3603 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3604 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3605 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3606 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3607 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3608 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3609 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3610 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3611 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3612 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3613 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3614 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3615
3616 2004-09-01 Andrew Cagney <cagney@gnu.org>
3617
3618 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3619 and main_func_highpc.
3620 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3621 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3622 * nlmread.c (nlm_symfile_read): Update.
3623
3624 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3625
3626 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3627 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3628 (find_proc_desc): Remove dead code.
3629
3630 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3631
3632 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3633
3634 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3635
3636 * observer.sh: Add struct so_list declaration.
3637 * Makefile.in: Add dependencies on observer.h for solib.c and
3638 breakpoint.c.
3639 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3640 function.
3641 (_initialize_breakpoint): Register
3642 disable_breakpoints_in_unloaded_shlib as an observer of the
3643 "solib unloaded" observation event.
3644 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3645 call decode_line_1 so unfound breakpoint errors are silent.
3646 * solib.c (update_solib_list): When a solib is discovered to have
3647 been unloaded by the program, notify all observers of the
3648 "solib unloaded" observation event.
3649
3650 2004-09-01 Andrew Cagney <cagney@gnu.org>
3651
3652 * frame.c: Include "objfiles.h".
3653 (inside_main_func): New function.
3654 (get_prev_frame): Use new inside_main_func.
3655 * Makefile.in (frame.o): Update dependencies.
3656 * defs.h (inside_main_func): Delete declaration.
3657 * blockframe.c (inside_main_func): Delete function.
3658
3659 2004-08-31 Jim Blandy <jimb@redhat.com>
3660
3661 * dwarf2read.c (is_vtable_name): New function, based on logic from
3662 read_structure_type, but passing the correct length to strncmp,
3663 and using 'sizeof' instead of 'strlen'.
3664 (read_structure_type): Call it.
3665
3666 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3667
3668 * config/powerpc/aix.mh: Add comment.
3669
3670 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3671
3672 * MAINTAINERS: Add self to Write-After-Approval.
3673
3674 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3675
3676 * MAINTAINERS: Add self to Write-After-Approval.
3677
3678 2004-08-30 Andrew Cagney <cagney@gnu.org>
3679
3680 Fix PR breakpoints/1757.
3681 * infrun.c (struct execution_control_state): Replace
3682 remove_breakpoints_on_following_step with
3683 step_after_step_resume_breakpoint.
3684 (init_execution_control_state): Update.
3685 (handle_inferior_event): For signals, when stepping off a
3686 breakpoint, set step_after_step_resume_breakpoint. When
3687 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3688 (keep_going): Delete code handling
3689 remove_breakpoints_on_following_step.
3690
3691 2004-08-29 David Lecomber <david@streamline-computing.com>
3692
3693 Fix PR gdb/648
3694 * language.h (enum array_ordering): New enum.
3695 * language.h (struct language_defn): New la_array_ordering
3696 attribute.
3697 * language.c (unknown_language_defn, auto_language_defn)
3698 (local_language_defn): Ditto.
3699 * ada-lang.c (ada_language_defn): Ditto.
3700 * c-lang.c (c_language_defn, cplus_language_defn)
3701 (asm_language_defn, minimal_language_defn): Ditto.
3702 * f-lang.c (f_language_defn): Ditto.
3703 * jv-lang.c (java_language_defn): Ditto.
3704 * m2-lang.c (f_language_defn): Ditto.
3705 * objc-lang.c (objc_language_defn): Ditto.
3706 * p-lang.c (pascal_language_defn): Ditto.
3707 * scm-lang.c (scm_language_defn): Ditto.
3708 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3709 oriented large to small in type structure.
3710 * dwarf2read.c (read_array_order): New function.
3711 (read_array_type): Use read_array_order to check row/column
3712 major ordering.
3713
3714 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3715
3716 * target.c (target_resize_to_sections): Check
3717 current_target.to_sections for an old value when updating.
3718
3719 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3720
3721 * procfs.c (dbx_link_bpt_addr): New static global variable.
3722 (dbx_link_shadow_contents): New static global variable.
3723 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3724 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3725 if we just hit it.
3726 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3727 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3728 from run to run.
3729 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3730 after the inferior has been forked.
3731 (remove_dbx_link_breakpoint): New function.
3732 (dbx_link_addr): New function.
3733 (insert_dbx_link_bpt_in_file): New function.
3734 (insert_dbx_link_bpt_in_region): New function.
3735 (insert_dbx_link_breakpoint): New function.
3736 (proc_trace_syscalls_1): New function, extracted from
3737 proc_trace_syscalls.
3738 (proc_trace_syscalls): Replace extract code by call to
3739 proc_trace_syscalls_1.
3740 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3741 is no longer valid.
3742
3743 2004-08-25 Jim Blandy <jimb@redhat.com>
3744
3745 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3746
3747 2004-08-25 Andrew Cagney <cagney@gnu.org>
3748
3749 * infrun.c (struct execution_control_state): Delete field
3750 "stepping_through_sigtramp".
3751 (init_execution_control_state): Do not set same.
3752 (context_switch): Do not pass same to save_infrun_state and
3753 load_infrun_state.
3754 * gdbthread.h (struct thread_info): Delete field
3755 stepping_through_sigtramp.
3756 (save_infrun_state, load_infrun_state): Delete parameter
3757 stepping_through_sigtramp.
3758 * thread.c (load_infrun_state, save_infrun_state): Update.
3759
3760 * infrun.c: Re-indent. Move expression operators to the beginning
3761 of the line. Remove long disabled #if 0 code.
3762
3763 2004-08-24 Andrew Cagney <cagney@gnu.org>
3764
3765 * doublest.h (floatformat_ieee_quad): Rename
3766 floatformat_ia64_quad.
3767 * doublest.c (floatformat_ieee_quad): Rename
3768 floatformat_ia64_quad.
3769 (_initialize_doublest): Update.
3770
3771 2004-08-24 Jim Blandy <jimb@redhat.com>
3772
3773 * dwarf2expr.h (struct dwarf_expr_context): New members
3774 'num_pieces' and 'pieces', for returning the result of an
3775 expression that uses DW_OP_piece.
3776 (struct dwarf_expr_piece): New struct type.
3777 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3778 pieces.
3779 (free_dwarf_expr_context): Free pieces, if any.
3780 (add_piece): New function.
3781 (execute_stack_op): Implement DW_OP_piece.
3782 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3783 expression is a list of pieces, print an error message.
3784 (dwarf2_loc_desc_needs_frame): If the expression yields
3785 pieces, and any piece is in a register, then we need a frame.
3786
3787 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3788 the stack until we've decided what sort of result the evaluation
3789 has produced. Use separate variables, with more specific names.
3790
3791 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3792
3793 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3794 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3795 (arm_netbsd_init_abi_common): Register them.
3796
3797 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3798
3799 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3800
3801 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3802 safe_frame_unwind_memory instead of target_read_memory.
3803
3804 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3805 Reorder includes.
3806 (fetch_register, store_register): Remove prototypes.
3807 (child_resume): Reorganize code and comments such that it is
3808 grouped a bit more logically.
3809 (attach): Explicitly compare errno against 0.
3810 (detach): Likewise. Use perror_with_name instead of
3811 print_sys_errmsg.
3812 * Makefile.in (infptrace.o): Update dependencies.
3813
3814 * ia64-linux-nat.c: Update copyright year.
3815 (fetch_debug_register, store_debug_register)
3816 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3817 PTRACE_TYPE_ARG3.
3818 * config/ia64/nm-linux.h: Update copyright year.
3819 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3820
3821 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3822 from CORE_ADDR to struct frame_info *. Use
3823 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3824 (amd64_linux_sigtramp_p): Adjust for changed signature of
3825 and64_linux_sigtramp_start
3826
3827 * gdb_ptrace.h: GNU/Linux.
3828
3829 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3830 Remove defines.
3831
3832 * infptrace.c: Include "gdb_assert.h".
3833 (PTRACE_XFER_TYPE): Remove define.
3834 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3835 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3836 Tweak comment.
3837 (fetch_inferior_registers, store_inferior_registers): Remove
3838 redundant culry braces. Tweak comment. s/regno/regnum.
3839 * Makefile.in (infptrace.o): Update dependencies.
3840
3841 * configure.in: Change test for return type of ptrace to default
3842 to `long' instead of `int'.
3843 * configure: Regenerate.
3844
3845 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3846
3847 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3848
3849 * configure.in: Check for ttrace function.
3850 * configure, config.in: Regenerate.
3851
3852 * gdb_ptrace.h: New file.
3853 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3854 <sys/ptrace.h>.
3855 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3856 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3857 (attach): Don't define PT_ATTACH.
3858 (detach): Don't define PT_DETACH.
3859 * Makefile.in (gdb_ptrace_h): New variable.
3860 (infptrace.o): Update dependencies.
3861
3862 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3863
3864 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3865 instead of `int' if not already defined.
3866 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3867 PTRACE_TYPE_ARG3.
3868 * infptrace.c (call_ptrace): Revert change that replaced
3869 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3870
3871 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3872
3873 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3874 Remove defines.
3875
3876 * linux-nat.c (kill_inferior): Add missing third and fourth
3877 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3878
3879 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3880 PTRACE_TYPE_RET.
3881
3882 * proc-why.c (proc_prettyfprint_why): Fix format string.
3883
3884 * solib-osf.c (osf_current_sos): Remove unsused label.
3885
3886 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3887 curses headers.
3888 * configure, config.in: Regenerate.
3889 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3890 <ncurses/ncurses.h>.
3891
3892 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3893 * config/nm-nbsd.h: Update copyright year.
3894 (PTRACE_ARG3_TYPE): Remove define.
3895
3896 * sparc-nat.c (fetch_inferior_registers)
3897 (store_inferior_registers, sparc_xfer_wcookie):
3898 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3899
3900 * alphabsd-nat.c (fetch_inferior_registers):
3901 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3902 PTRACE_TYPE_ARG3.
3903 * amd64bsd-nat.c (fetch_inferior_registers)
3904 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3905 PTRACE_TYPE_ARG3.
3906 * armnbsd-nat.c: Update copyright year.
3907 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3908 (store_register, store_regs, store_fp_register, store_fp_regs):
3909 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3910 * hppabsd-nat.c (fetch_inferior_registers)
3911 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3912 PTRACE_TYPE_ARG3.
3913 * i386bsd-nat.c (fetch_inferior_registers)
3914 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3915 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3916 * m68kbsd-nat.c (fetch_inferior_registers)
3917 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3918 PTRACE_TYPE_ARG3.
3919 * m88kbsd-nat.c (fetch_inferior_registers)
3920 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3921 PTRACE_TYPE_ARG3.
3922 * mipsnbsd-nat.c: Update copyright year.
3923 (fetch_inferior_registers, store_inferior_registers):
3924 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3925 * ns32knbsd-nat.c: Update copyright year.
3926 (fetch_inferior_registers, store_inferior_registers):
3927 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3928 * ppcnbsd-nat.c (fetch_inferior_registers):
3929 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3930 PTRACE_TYPE_ARG3.
3931 * ppcobsd-nat.c (fetch_inferior_registers):
3932 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3933 PTRACE_TYPE_ARG3.
3934 * shnbsd-nat.c: Update copyright year.
3935 (fetch_inferior_registers, store_inferior_registers):
3936 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3937 * vaxbsd-nat.c (fetch_inferior_registers)
3938 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3939 PTRACE_TYPE_ARG3.
3940
3941 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3942 PTRACE_TYPE_ARG3.
3943 * infptrace.c (call_ptrace, child_resume, attach, detach)
3944 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3945 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3946 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3947 PTRACE_TYPE_ARG3.
3948
3949 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3950
3951 * defs.h: Remove out-of-date comment.
3952 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3953 [!GETENV_PROVIDED] (getenv): Remove prototype.
3954
3955 * standalone.c: Remove file.
3956 * Makefile.in (standalone.o): Remove dependency.
3957
3958 * i386-linux-nat.c (dummy_sse_values): Remove function and
3959 prototype.
3960 (i386_linux_dr_get): Fix typo in comment.
3961 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3962
3963 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3964
3965 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3966 from declaration.
3967 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3968 from definition.
3969
3970 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3971
3972 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3973 parenthesis in definition.
3974 * configure: Regenerated.
3975
3976 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3977
3978 * PROBLEMS: Mention build/1411.
3979
3980 2004-08-09 Robert Millan <robertmh@gnu.org>
3981
3982 Committed by Nathanael Nerode.
3983 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3984 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3985
3986 2004-08-12 Andrew Cagney <cagney@gnu.org>
3987
3988 * NEWS: Mention fixes in GDB 6.2.1.
3989 * PROBLEMS: Remove mention of mips-irix.
3990
3991 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3992
3993 * config/powerpc/xm-aix.h: Delete.
3994 * config/powerpc/aix.mh (MH_FILE): Remove.
3995 * config/powerpc/aix432.mh (MH_FILE): Remove.
3996
3997 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3998
3999 * config/powerpc/aix.mh: Remove obsolete comment.
4000 * config/powerpc/aix432.mh: Likewise.
4001
4002 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4003
4004 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4005
4006 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4007
4008 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4009 this file is now empty.
4010 * config/xm-aix4.h: Remove, this file is no longer included
4011 anywhere.
4012
4013 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4014
4015 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4016 that file is now empty.
4017 (termdef): Remove prototype, function no longer used.
4018
4019 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4020
4021 * doc/gdbint.texinfo (Host Definition): Remove documentation
4022 for USE_O_NOCTTY, no longer used.
4023 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4024 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4025
4026 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4027
4028 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4029 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4030 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4031
4032 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4033
4034 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4035 instead of FIVE_ARG_PTRACE.
4036
4037 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4038 (new_tty): Use O_NOCTTY unconditionally.
4039
4040 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4041
4042 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4043 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4044 fflush on stdout.
4045
4046 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4047
4048 * xcoff_symfile_finish: Replace last call to xmfree by call
4049 to xfree.
4050
4051 2004-08-10 Andrew Cagney <cagney@gnu.org>
4052
4053 * main.c (captured_main): Delete call to init_malloc.
4054 * defs.h (init_malloc): Delete declaration.
4055 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4056 (init_malloc): Delete functions.
4057
4058 * defs.h (xmfree): Delete.
4059 * utils.c (xmfree): Delete function.
4060 (xfree): Inline calls to xmfree and mfree.
4061 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4062 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4063 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4064 * somread.c (som_symfile_finish): Ditto.
4065 * objfiles.c (allocate_objfile, free_objfile):
4066 * nlmread.c (nlm_symfile_finish): Ditto.
4067 * hpread.c (hpread_symfile_finish): Ditto.
4068 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4069 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4070 * coffread.c (coff_symfile_finish): Ditto.
4071
4072 * defs.h (xmcalloc): Delete declaration.
4073 * utils.c (xmcalloc): Delete.
4074 (xcalloc): Inline calls to xmcalloc and mcalloc.
4075 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4076 xcalloc and xfree.
4077 * symtab.c (create_demangled_names_hash): Ditto.
4078
4079 * defs.h (xmrealloc): Delete.
4080 * utils.c (xmrealloc): Delete.
4081 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4082 * symmisc.c (extend_psymbol_list): Use xrealloc.
4083 * source.c (find_source_lines): Ditto.
4084 * hpread.c (hpread_lookup_type): Ditto.
4085 * dbxread.c (add_bincl_to_list): Ditto.
4086
4087 * utils.c (xmmalloc): Delete.
4088 (xmalloc): Inline xmmalloc and mmalloc calls.
4089 (msavestring): Use xmalloc.
4090 * defs.h (xmmalloc): Delete declaration.
4091 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4092 xmmalloc.
4093 * symmisc.c (extend_psymbol_list): Ditto.
4094 * symfile.c (init_psymbol_list): Ditto.
4095 * source.c (find_source_lines): Ditto.
4096 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4097 * elfread.c (elf_symtab_read): Ditto.
4098 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4099 * coffread.c (coff_symfile_init): Ditto.
4100
4101 2004-08-10 David Carlton <carlton@bactrian.org>
4102
4103 * MAINTAINERS: Remove David Carlton from c++ testsuite
4104 maintainers.
4105
4106 2004-08-10 Jerome Guitton <guitton@gnat.com>
4107
4108 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4109 print a line feed before the prompt.
4110
4111 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4112
4113 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4114
4115 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4116
4117 General cleanup of the AIX xm include file:
4118 * config/xm-aix4.h (fd_set): Remove undefine.
4119 Remove include of <sys/select.h>.
4120 (HAVE_TERMIO): Remove define.
4121 (USG): Likewise.
4122 (NULL): Remove redefine.
4123 (alloca): Remove #pragma.
4124 (vfork): Remove define.
4125 (termdef): Remove.
4126 (SIGWINCH_HANDLER): Remove.
4127 (SIGWINCH_HANDLER_BODY): Remove.
4128
4129 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4130
4131 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4132 GDB_OSABI_OPENBSD_ELF.
4133
4134 2004-08-07 Robert Millan <robertmh@gnu.org>
4135
4136 * bsd-kvm.c: Check for nlist.h before including it.
4137
4138 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4139
4140 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4141 sigcontext' offset consistency checks for ancient BSD.
4142
4143 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4144
4145 * configure.in: Check for <sys/types.h>. Check return and
4146 argument types of ptrace.
4147 * configure, config.in: Regenerate.
4148
4149 2004-08-09 Jim Blandy <jimb@redhat.com>
4150
4151 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4152 rs6000_register_sim_regno): Doc fixes.
4153
4154 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4155
4156 * mips-tdep.c: Include "floatformat.h".
4157 (n32n64_floatformat_always_valid): New function.
4158 (floatformat_n32n64_long_double_big): New constant.
4159 (mips_gdbarch_init): Set size and format of long double
4160 for N32 and N64 ABIs.
4161 * Makefile.in (mips-tdep.o): Update dependencies.
4162
4163 2004-08-08 Andrew Cagney <cagney@gnu.org>
4164
4165 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4166 print. Improve script's error messages.
4167 * gdbarch.h: Re-generate.
4168
4169 * gdbarch.sh (pformat): New function.
4170 (float_format, double_format, long_double_format): List with bit
4171 members. Use pformat when printing.
4172 * gdbarch.c, gdbarch.h: Re-generate.
4173
4174 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4175
4176 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4177 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4178 (ppcnbsd_supply_pcb): New function.
4179 (_initialize_ppcnbsd_nat): New prototype and function.
4180 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4181 (LOADLIBES): New variable.
4182 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4183
4184 2004-08-08 Andrew Cagney <cagney@gnu.org>
4185
4186 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4187 (builtin_type_ieee_double, builtin_type_ia64_quad)
4188 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4189 BE/LE floating-point types.
4190 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4191 (builtin_type_ieee_double, builtin_type_ia64_quad)
4192 (builtin_type_ia64_spill): Declare.
4193 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4194 (floatformat_ieee_double, floatformat_arm_ext)
4195 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4196 of LE/BE floatformats.
4197 * doublest.h: (struct floatformat, floatformat_ieee_single)
4198 (floatformat_ieee_double, floatformat_arm_ext)
4199 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4200
4201 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4202
4203 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4204
4205 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4206 instead of regcache_raw_supply when storing the registers.
4207
4208 * i386gnu-nat.c: Update copyright year.
4209 (gnu_store_registers): Don't use deprecated_registers and
4210 deprecated_registers_valid. Use regcache_valid_p and
4211 regcache_raw_supply instead.
4212
4213 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4214 frame_pc_unwind.
4215
4216 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4217 variables. Incapitalized "process".
4218
4219 * configure.in: Add cursesX to the list of possible curses libs.
4220 Add cursesX.h to the list of possible curses headers.
4221 * configure, config.in: Regenerate.
4222
4223 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4224
4225 * configure.in: Test for struct lwp in <sys/lwp.h>.
4226 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4227 the offset of l_addr in struct lwp.
4228
4229 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4230
4231 * bsd-kvm.c: Include "gdbcore.h"
4232 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4233
4234 2004-08-07 Andrew Cagney <cagney@gnu.org>
4235
4236 * gdbtypes.c (build_flt, build_complex): New functions.
4237 (gdbtypes_post_init): Use.
4238
4239 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4240
4241 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4242 through to builtin_type_uint128.
4243
4244 * c-exp.y: Use builtin_type function to obtain builtin types.
4245
4246 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4247 builtin_uint128.
4248 * gdbtypes.c (gdbtypes_post_init): Update.
4249 (build_gdbtypes): Move initialization of builtin_type_int0
4250 through to builtin_type_uint128 from here ...
4251 (_initialize_gdbtypes): ... to here.
4252 * d10v-tdep.c (d10v_register_type): Update.
4253
4254 * doublest.c: Update copyright.
4255 (floatformat_from_length): Call error when floatformat is NULL.
4256 (extract_floating_by_length): Remove NULL fmt check.
4257 (store_floating_by_length): Ditto.
4258
4259 2004-08-07 Andrew Cagney <cagney@gnu.org>
4260
4261 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4262 that the register is valid.
4263
4264 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4265
4266 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4267 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4268 struct frame_info *. Use safe_frame_unwind_memory instead of
4269 deprecated_read_memory_nobpt.
4270 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4271 changed signature of i386_linux_sigtramp_start and
4272 i386_linux_rt_sigtramp_start.
4273
4274 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4275 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4276 instead of deprecated_read_memory_nobpt.
4277 (i386nbsd_sigtramp_p): Adjust for changed signature of
4278 i386nbsd_sigtramp_offset.
4279
4280 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4281 safe_frame_unwind_memory instead of target_read_memory.
4282
4283 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4284 !NO_SYS_FILE.
4285 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4286 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4287 (_initialize_kernel_u_addr): Remove prototype and function.
4288 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4289 !NO_SYS_FILE.
4290 * xcoffread.c: Likewise.
4291
4292 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4293
4294 * vax-nat.c: New file.
4295 * vaxbsd-nat.c: Tweak comment.
4296 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4297 vaxnbsd-tdep.c.
4298 (vax-nat.o): New dependency.
4299 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4300 (vax-*-ultrix2*): Remove.
4301 * config/vax/vax.mh: New file.
4302 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4303 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4304 (vax_register_u_addr): New prototype.
4305 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4306 * config/vax/vaxult2.mh: Remove file.
4307 * config/vax/vaxult.mh: Remove file.
4308 * config/vax/vaxbsd.mh: Remove file.
4309 * config/vax/vax.mt (TM_FILE): Remove.
4310 * config/vax/tm-vaxbsd.h: Remove file.
4311
4312 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4313
4314 * aix-thread.c (get_signaled_thread): New function.
4315 (iter_trap): Delete, no longer used.
4316 (iter_tid): New function.
4317 (pd_update): Find the thread that received the SIGTRAP signal
4318 by first locating the kernel thread, and then finding its
4319 associated thread.
4320
4321 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4322
4323 * lin-lwp.c (child_wait): Continue inferior after processing
4324 PTRACE_EVENT_CLONE event.
4325
4326 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4327
4328 * MAINTAINERS: Add self to Write-After-Approval.
4329
4330 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4331
4332 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4333 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4334
4335 2004-08-05 Andrew Cagney <cagney@gnu.org>
4336
4337 * config/xm-sysv4.h: Delete file.
4338 * config/mips/xm-irix5.h: Delete file.
4339 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4340 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4341 * config/ia64/xm-aix.h: Delete file.
4342 * config/ia64/aix.mh (XM_FILE): Delete.
4343 * config/pa/xm-hppah.h: Delete file.
4344 * config/pa/hpux11w.mh (XM_FILE): Delete.
4345 * config/pa/hpux11.mh (XM_FILE): Delete.
4346 * config/pa/hpux1020.mh (XM_FILE): Delete.
4347 * config/pa/hppahpux.mh (XM_FILE): Delete.
4348
4349 * config/alpha/xm-alphalinux.h: Delete file.
4350 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4351 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4352 * config/alpha/xm-alphaosf.h: Delete file.
4353 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4354 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4355 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4356 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4357
4358 * config/i386/xm-i386v.h: Delete file.
4359 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4360 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4361 * config/i386/xm-i386sco.h: Delete file.
4362 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4363 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4364 * config/i386/xm-i386v4.h: Delete file.
4365 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4366 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4367 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4368 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4369
4370 * config/vax/xm-vax.h: Delete file.
4371 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4372 * config/vax/xm-vaxult2.h: Delete file.
4373 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4374 * config/vax/vaxult2.mh (XM_FILE): Delete.
4375 * config/vax/xm-vaxult.h: Delete file.
4376 * config/vax/vaxult.mh (XM_FILE): Delete.
4377 * config/vax/xm-vaxbsd.h: Delete file.
4378 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4379
4380 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4381 * gdbarch.h, gdbarch.c: Re-generate.
4382 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4383 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4384 * frame.h: Delete deprecated_read_fp from comments.
4385 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4386 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4387
4388 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4389
4390 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4391 trampoline in OpenBSD 3.5-current.
4392
4393 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4394 SSE registers.
4395
4396 * Makefile.in: Remove embedded page breaks.
4397
4398 2004-08-04 Jim Blandy <jimb@redhat.com>
4399
4400 * regcache.c (regcache_raw_read): Assert that, after calling
4401 target_fetch_registers, the register we're reading is cached.
4402
4403 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4404 a call to 'internal_error', with a more helpful error message.
4405 * rs6000-tdep.c (e500_pseudo_register_read,
4406 e500_pseudo_register_write, rs6000_store_return_value): Same.
4407
4408 2004-08-04 Andrew Cagney <cagney@gnu.org>
4409
4410 * Makefile.in: Update dependencies.
4411
4412 2004-08-04 Jim Blandy <jimb@redhat.com>
4413
4414 Change the layout of the PowerPC E500 raw register cache to allow
4415 the lower 32-bit halves of the GPRS to be their own raw registers,
4416 not pseudoregisters.
4417 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4418 add ppc_ev0_upper_regnum flag.
4419 * rs6000-tdep.c: #include "reggroups.h".
4420 (spe_register_p): Recognize the ev upper half registers as SPE
4421 registers.
4422 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4423 registers.
4424 (e500_move_ev_register): New function.
4425 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4426 vector registers are the pseudo-registers now, formed by splicing
4427 together the gprs and the upper-half registers.
4428 (e500_register_reggroup_p): New function.
4429 (P): Macro deleted.
4430 (P8, A4): New macro.
4431 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4432 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4433 macros.
4434 (registers_e500): Rearrange register set so that the raw register
4435 set contains 32-bit GPRs and upper-half registers, and the SPE
4436 vector registers become pseudo-registers.
4437 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4438 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4439 register numbers are now the same for the E500 as they are for
4440 other PowerPC variants. Register e500_register_reggroup_p as the
4441 register group function for the E500.
4442 * Makefile.in (rs6000-tdep.o): Update dependencies.
4443
4444 Adapt PPC E500 native support to the new raw regcache layout.
4445 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4446 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4447 (fetch_spe_register, store_spe_register): Handle fetching/storing
4448 all the SPE registers at once, if regno == -1. These now take
4449 over the job of fetch_spe_registers and store_spe_registers.
4450 (fetch_spe_registers, store_spe_registers): Deleted.
4451 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4452 unconditionally; they're always raw. Fetch/store SPE upper half
4453 registers, if present, instead of ev registers.
4454 (fetch_register, store_register): Remove sanity checks: gprs are
4455 never pseudo-registers now, so we never need to even mention any
4456 registers that are ever pseudoregisters.
4457
4458 Use a fixed register numbering when communicating with the PowerPC
4459 simulator.
4460 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4461 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4462 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4463 New functions.
4464 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4465 init_sim_regno_table.
4466 * Makefile.in (gdb_sim_ppc_h): New variable.
4467 (rs6000-tdep.o): Update dependencies.
4468
4469 2004-08-02 Andrew Cagney <cagney@gnu.org>
4470
4471 * cris-tdep.c (cris_register_size): Restore function, still used
4472 locally.
4473
4474 * gdbarch.sh (deprecated_target_read_fp)
4475 (deprecated_frame_locals_address, deprecated_frame_args_address)
4476 (deprecated_frame_chain_valid, deprecated_frame_chain)
4477 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4478 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4479 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4480 * gdbarch.h, gdbarch.c: Re-generate.
4481 * regcache.c (deprecated_read_fp): Do not call
4482 DEPRECATED_TARGET_READ_FP_P.
4483 * infcmd.c (default_print_registers_info): Do not call
4484 DEPRECATED_DO_REGISTERS_INFO.
4485 * frame-base.c (default_frame_locals_address): Do not call
4486 DEPRECATED_FRAME_LOCALS_ADDRESS.
4487 (default_frame_args_address): Do not call
4488 DEPRECATED_FRAME_ARGS_ADDRESS.
4489
4490 * gdbarch.sh (deprecated_register_raw_size)
4491 (deprecated_register_virtual_size:int): Delete.
4492 * gdbarch.h, gdbarch.c: Re-generate.
4493 * cris-tdep.c (cris_register_size): Delete.
4494 (cris_gdbarch_init): Update.
4495 * alpha-tdep.c (alpha_register_raw_size)
4496 (alpha_register_virtual_size): Delete.
4497 (alpha_gdbarch_init): Update.
4498
4499 * gdbarch.sh (deprecated_register_virtual_type)
4500 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4501 (deprecated_dummy_write_sp): Delete.
4502 * gdbarch.h, gdbarch.c: Re-generate.
4503
4504 * gdbarch.sh (deprecated_register_bytes): Delete.
4505 * gdbarch.h, gdbarch.c: Re-generate.
4506 * regcache.c (deprecated_register_bytes): New function.
4507 * regcache.h (deprecated_register_bytes): Declare.
4508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4509 * v850-tdep.c (v850_gdbarch_init): Update.
4510 * sh64-tdep.c (sh64_gdbarch_init): Update.
4511 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4513 * mcore-tdep.c (mcore_gdbarch_init): Update.
4514 * cris-tdep.c (cris_gdbarch_init): Update.
4515 * arm-tdep.c (arm_gdbarch_init): Update.
4516 * remote.c (init_remote_state): Update.
4517 * remote-vx.c (vx_prepare_to_store): Update.
4518 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4519 * irix5-nat.c (fetch_core_registers): Update.
4520 * cris-tdep.c (cris_register_bytes_ok): Update.
4521 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4522
4523 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4524 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4525 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4526 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4527 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4528 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4529 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4530 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4531 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4532 with mips_insn16 and mips_insn32.
4533
4534 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4535 * rs6000-tdep.c (rs6000_push_dummy_call)
4536 (rs6000_extract_return_value): Use register_size.
4537 * xstormy16-tdep.c (xstormy16_get_saved_register)
4538 (xstormy16_extract_return_value): Ditto.
4539 * valops.c (value_assign): Ditto.
4540 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4541 * v850-tdep.c (v850_extract_return_value): Ditto.
4542 * tracepoint.c (collect_symbol): Ditto.
4543 * target.c (debug_print_register): Ditto.
4544 * stack.c (frame_info): Ditto.
4545 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4546 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4547 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4548 (store_register_using_P): Ditto.
4549 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4550 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4551 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4552 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4553 * regcache.c (deprecated_read_register_bytes)
4554 (deprecated_write_register_bytes, read_register)
4555 (write_register): Ditto.
4556 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4557 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4558 * monitor.c (monitor_supply_register, monitor_fetch_register)
4559 (monitor_store_register): Ditto.
4560 * mn10300-tdep.c (mn10300_pop_frame_regular)
4561 (mn10300_print_register): Ditto.
4562 * mipsv4-nat.c (fill_fpregset): Ditto.
4563 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4564 (mips64_fill_fpregset): Ditto.
4565 * mi/mi-main.c (register_changed_p, get_register)
4566 (mi_cmd_data_write_register_values): Ditto.
4567 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4568 * irix5-nat.c (fill_gregset, fetch_core_registers):
4569 * infrun.c (write_inferior_status_register): Ditto.
4570 * infptrace.c (fetch_register, store_register): Ditto.
4571 * infcmd.c (default_print_registers_info): Ditto.
4572 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4573 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4574 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4575 * hpux-thread.c (hpux_thread_fetch_registers)
4576 (hpux_thread_store_registers): Ditto.
4577 * hppah-nat.c (store_inferior_registers, fetch_register):
4578 * findvar.c (value_from_register): Ditto.
4579 * dve3900-rom.c (fetch_bitmapped_register):
4580 * cris-tdep.c (cris_gdbarch_init): Ditto.
4581 * alpha-tdep.h: Ditto.
4582 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4583
4584 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4585 DEPRECATED_REGISTER_RAW_SIZE from comments.
4586 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4587 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4588 DEPRECATED_REGISTER_RAW_SIZE.
4589 * findvar.c (value_of_register): Simplify by assuming that the
4590 registers raw and virtual sizes are identical.
4591 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4592 comment.
4593 * arch-utils.c (generic_register_size): Simplify by assuming
4594 register_type.
4595
4596 * regcache.c (legacy_read_register_gen, real_register)
4597 (legacy_write_register_gen): Delete, not used.
4598
4599 * regcache.c (struct regcache_descr): Delete legacy_p.
4600 (init_legacy_regcache_descr): Delete function.
4601 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4602 Do not use deprecated register functions.
4603 (regcache_raw_read, deprecated_write_register_gen):
4604 (deprecated_read_register_gen, regcache_raw_write): Delete code
4605 predicated on legacy_p.
4606 (register_size): Delete check against register raw size.
4607
4608 * cris-tdep.c (cris_register_type): Replace
4609 cris_register_virtual_type.
4610 (cris_gdbarch_init): Update, set register_type.
4611
4612 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4613 * gdbarch.h, gdbarch.c: Re-generate.
4614 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4615 (arm_gdbarch_init) Do not set frameless function invocation.
4616 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4617 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4618 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4619 (frv_gdbarch_init): Do not set frameless function invocation.
4620 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4621 * sh-tdep.c (sh_gdbarch_init): Ditto.
4622 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4623 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4624 * avr-tdep.c (avr_gdbarch_init): Ditto.
4625
4626 * blockframe.c (legacy_frame_chain_valid): Delete function.
4627
4628 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4629 and pc. Update comments.
4630 (pc_in_dummy_frame): Delete function.
4631 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4632 use the "id".
4633 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4634 call_hi, top and pc, use the id.
4635 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4636
4637 * dummy-frame.c: Include "gdb_string.h".
4638 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4639 (generic_save_dummy_frame_tos): Delete.
4640 (dummy_frame_push): New function, replaces above.
4641 * dummy-frame.h: Update copyright.
4642 (dummy_frame_push): Declare.
4643 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4644 (generic_save_call_dummy_addr): Delete declarations.
4645 * infcall.c: Include "dummy-frame.h".
4646 (call_function_by_hand): Add locals caller_regcache,
4647 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4648 with call to frame_save_as_regcache plus cleanup. Delete calls to
4649 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4650 Move clear_proceed_status to just before the resume, add call to
4651 dummy_frame_push (discard cleanup).
4652 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4653 (dummy-frame.o): Add $(gdb_string_h).
4654
4655 2004-08-01 Andrew Cagney <cagney@gnu.org>
4656
4657 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4658 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4659 * dummy-frame.c (find_dummy_frame): Delete.
4660 (struct dummy_frame_cache, dummy_frame_sniffer)
4661 (dummy_frame_prev_register, dummy_frame_this_id)
4662 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4663 frame unwinder using a dummy_frame_cache.
4664
4665 2004-08-01 Andrew Cagney <cagney@gnu.org>
4666
4667 * frame.h (frame_save_as_regcache): Declare.
4668 * frame.c (frame_save_as_regcache): New function.
4669 (do_frame_read_register): Replace do_frame_unwind_register.
4670 (frame_pop): Use frame_save_as_regcache.
4671 * dummy-frame.c (generic_push_dummy_frame): Use
4672 frame_save_as_regcache.
4673
4674 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4675
4676 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4677 file as included until we record the first line in the linetable.
4678
4679 2004-08-01 Andrew Cagney <cagney@gnu.org>
4680
4681 * frame.h (deprecated_pop_dummy_frame)
4682 (deprecated_read_register_dummy)
4683 (deprecated_generic_find_dummy_frame): Delete.
4684 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4685 (deprecated_read_register_dummy)
4686 (deprecated_find_dummy_frame_regcache)
4687 (discard_innermost_dummy)
4688 (deprecated_pop_dummy_frame): Delete.
4689 (dummy_frame_this_id): Simplify.
4690 (struct dummy_frame): Delete "fp" and "sp".
4691 (find_dummy_frame): Simplify.
4692 (generic_push_dummy_frame): Do not set "fp" or "sp".
4693 (fprint_dummy_frames): Do not print "fp" and "sp"
4694
4695 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4696
4697 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4698 (struct i386_insn): New structure.
4699 (i386_match_insn): New function.
4700 (i386_frame_setup_skip_insns): New variable.
4701 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4702 array i386_frame_setup_insns of instructions that should be
4703 skipped inside the frame setup sequence.
4704
4705 2004-08-01 Andrew Cagney <cagney@gnu.org>
4706
4707 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4708 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4709 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4710 * stack.c (frame_info): Delete references to
4711 DEPRECATED_FRAME_INIT_SAVED_REGS and
4712 deprecated_get_frame_saved_regs.
4713 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4714 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4715 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4716 (frame_unwind_register_signed)
4717 (frame_unwind_register_unsigned)
4718 (frame_unwind_unsigned_register): Use register_size.
4719 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4720 (deprecated_frame_xmalloc_with_cleanup)
4721 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4722 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4723
4724 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4725 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4726 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4727 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4728
4729 * infcall.c (call_function_by_hand): Do not use
4730 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4731 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4732 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4733 DEPRECATED_STACK_ALIGN.
4734
4735 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4736
4737 Committed by Andrew Cagney.
4738 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4739
4740 2004-08-01 Andrew Cagney <cagney@gnu.org>
4741
4742 * mips-tdep.c (mips16_frame_cache)
4743 (mips16_frame_this_id, mips16_frame_prev_register)
4744 (mips16_frame_unwind, mips16_frame_sniffer)
4745 (mips16_frame_base_address, mips16_frame_base)
4746 (mips16_frame_base_sniffer, mips32_frame_cache)
4747 (mips32_frame_this_id, mips32_frame_prev_register)
4748 (mips32_frame_unwind, mips32_frame_sniffer)
4749 (mips32_frame_base_address, mips32_frame_base)
4750 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4751 separate heuristic mips16 and mips32 unwinders.
4752 (mips_stub_frame_cache, mips_stub_frame_this_id)
4753 (mips_stub_frame_prev_register)
4754 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4755 (mips_stub_frame_base_address, mips_stub_frame_base)
4756 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4757 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4758 match true mdebug frames.
4759 (non_heuristic_proc_desc): Add forward declaration.
4760
4761 2004-08-01 Andrew Cagney <cagney@gnu.org>
4762
4763 * config/mips/tm-irix6.h: Delete file.
4764 * config/mips/tm-irix5.h: Delete file.
4765 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4766 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4767
4768 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4769 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4770 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4771 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4772 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4773 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4774 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4775 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4776 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4777 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4778 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4779 (TARGET_SIGNAL_RAW_VALUES): Delete.
4780 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4781 Delete.
4782 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4783 (TARGET_HW_WATCH_LIMIT): Delete.
4784 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4785 * minimon.h: Delete file.
4786
4787 * trad-frame.c (trad_frame_get_this_base)
4788 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4789 functions.
4790 * trad-frame.h (trad_frame_set_this_base)
4791 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4792
4793 2004-07-31 Andrew Cagney <cagney@gnu.org>
4794
4795 * trad-frame.c (trad_frame_get_prev_register): Rename
4796 trad_frame_get_prev_register.
4797 * vax-tdep.c (vax_frame_prev_register): Update.
4798 * trad-frame.h: Update.
4799 * trad-frame.c (trad_frame_get_register): Update.
4800 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4801 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4802 Update.
4803 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4804 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4805 Update.
4806 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4807 Update.
4808 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4809 Update.
4810 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4811 Update.
4812 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4813 Update.
4814 * s390-tdep.c (s390_frame_prev_register)
4815 (s390_stub_frame_prev_register)
4816 (s390_sigtramp_frame_prev_register): Update.
4817 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4818 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4819 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4820 * m88k-tdep.c (m88k_frame_prev_register)
4821 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4822 * m32r-tdep.c (m32r_frame_prev_register): Update.
4823 * hppa-tdep.c (hppa_frame_prev_register_helper)
4824 * frv-tdep.c (frv_frame_prev_register): Update.
4825 * d10v-tdep.c (d10v_frame_prev_register): Update.
4826 * cris-tdep.c (cris_frame_prev_register): Update.
4827 * avr-tdep.c (avr_frame_prev_register): Update.
4828 * arm-tdep.c (arm_prologue_prev_register)
4829 (arm_sigtramp_prev_register): Update.
4830
4831 2004-07-31 Andrew Cagney <cagney@gnu.org>
4832
4833 * frame.h (legacy_saved_regs_unwind)
4834 (legacy_frame_chain_valid, legacy_frame_p)
4835 (enum frame_type): Delete UNKNOWN_FRAME.
4836 * dummy-frame.c (dummy_frame_this_id): Simplify.
4837 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4838 * frame.c (struct frame_info): Delete the field "type".
4839 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4840 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4841 (legacy_saved_regs_unwind, legacy_frame_p)
4842 (frame_type_from_pc): Delete.
4843 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4844 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4845
4846 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4847
4848 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4849 indentation.
4850
4851 * mips-nat.c: Remove file.
4852 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4853 (mips-nat.o): Remove dependency.
4854
4855 * infptrace.c: Update copyright year.
4856 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4857 explicitly setting the buffer to all zeroes.
4858
4859 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4860 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4861
4862 2004-07-30 Andrew Cagney <cagney@gnu.org>
4863
4864 * GDB 6.2 released from gdb_6_2-branch.
4865
4866 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4867
4868 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4869
4870 * exec.c (exec_file_attach):
4871 * nto-tdep.c (nto_find_and_open_solib):
4872 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4873 * solib.c (solib_open):
4874 * somsolib.c (som_solib_sizeof_symbol_table):
4875 * source.c (is_regular_file, openp, open_source_file):
4876 * symfile.c (symfile_bfd_open):
4877 * wince.c (upload_to_device): Differentiate between the search for
4878 binary and source files.
4879
4880 2004-07-30 Andrew Cagney <cagney@gnu.org>
4881
4882 * complaints.c (_initialize_complaints): Pass NULL to
4883 add_setshow_zinteger_cmd for help_doc.
4884 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4885
4886 2004-07-30 Andrew Cagney <cagney@gnu.org>
4887
4888 Fix PR i18n/761.
4889 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4890 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4891 $(PACKAGE).pot and update-po.
4892 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4893 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4894 (update-po): New rules.
4895 (localedir): Define using autoconf.
4896 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4897 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4898 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4899 * configure.in: Generate CATALOGS and LINGUAS from contents of
4900 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4901 * configure: Re-generate.
4902 * po/gdbtext: New file
4903
4904 2004-07-30 Jerome Guitton <guitton@gnat.com>
4905
4906 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4907 order.
4908
4909 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4910
4911 * dwarf2read.c (read_file_scope): Set producer if attribute
4912 present.
4913 (struct dwarf2_cu): Added new member producer.
4914
4915 2004-07-30 Jerome Guitton <guitton@gnat.com>
4916
4917 * inflow.c (kill_command): release file handles in BFD.
4918 * exec.c (exec_file_attach): Ditto.
4919 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4920
4921 2004-07-29 Andrew Cagney <cagney@gnu.org>
4922
4923 * PROBLEMS (mips-irix): Note that it is broken.
4924
4925 2004-07-29 Andrew Cagney <cagney@gnu.org>
4926
4927 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4928 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4929
4930 * config/xm-nbsd.h: Delete file.
4931 * config/arm/xm-nbsd.h: Delete file.
4932 * config/i386/xm-nbsd.h: Delete file.
4933 * config/ns32k/xm-nbsd.h: Delete file.
4934 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4935 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4936 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4937 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4938 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4939
4940 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4941 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4942 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4943 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4944 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4945 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4946
4947 * config/powerpc/xm-linux.h: Delete empty file.
4948 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4949 * config/powerpc/linux.mh (XM_FILE): Delete.
4950 * config/m68k/xm-linux.h: Delete empty file.
4951 * config/m68k/linux.mh (XM_FILE): Delete.
4952 * config/ia64/xm-linux.h: Delete empty file.
4953 * config/ia64/linux.mh (XM_FILE): Delete.
4954 * config/arm/xm-linux.h: Delete empty file.
4955 * config/arm/linux.mh (XM_FILE): Delete.
4956
4957 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4958 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4959 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4960 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4961 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4962 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4963 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4964 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4965
4966 * config/m68k/xm-m68k.h: Delete file.
4967 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4968 copyright.
4969 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4970 * config/pa/xm-linux.h: Delete empty file.
4971 * config/pa/linux.mh (XM_FILE): Delete.
4972 * config/i386/xm-i386.h: Delete empty file.
4973 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4974 "i386/xm-i386.h".
4975 * config/i386/obsdaout.mh (XM_FILE): Delete.
4976 * config/i386/obsd64.mh (XM_FILE): Delete.
4977 * config/i386/fbsd64.mh (XM_FILE): Delete.
4978 * config/i386/nto.mh (XM_FILE): Delete.
4979 * config/i386/obsd.mh (XM_FILE): Delete.
4980 * config/i386/linux64.mh (XM_FILE): Delete.
4981 * config/i386/linux.mh (XM_FILE): Delete.
4982 * config/i386/i386sol2.mh (XM_FILE): Delete.
4983 * config/i386/i386gnu.mh (XM_FILE): Delete.
4984 * config/i386/fbsd.mh (XM_FILE): Delete.
4985 * config/i386/nbsd64.mh (XM_FILE): Delete.
4986
4987 2004-07-29 Andrew Cagney <cagney@gnu.org>
4988
4989 * config/pa/xm-linux.h: Do not include "floatformat.h".
4990 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4991 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4992 * config/i386/xm-i386.h: Do not include "floatformat.h".
4993 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4994 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4995 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4996 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4997 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4998 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4999 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5000 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5001 * configure, config.in: Regenerate.
5002 * configure.host (gdb_host_float_format, gdb_host_double_format)
5003 (gdb_host_long_double_format): Set according to the host.
5004
5005 2004-07-29 Andrew Cagney <cagney@gnu.org>
5006
5007 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5008
5009 2004-07-28 Andrew Cagney <cagney@gnu.org>
5010
5011 * PROBLEMS: Mention threads/1650.
5012 * NEWS: Mention the NPTL fix.
5013
5014 2004-07-28 Andrew Cagney <cagney@gnu.org>
5015
5016 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5017 (add_setshow_cmd_full): Make static.
5018 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5019 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5020 * cli/cli-decode.c (add_setshow_filename_cmd)
5021 (add_setshow_string_cmd): New functions.
5022 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5023 * mips-tdep.c (_initialize_mips_tdep): Update.
5024 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5025 * cli/cli-logging.c (_initialize_cli_logging): Update.
5026 * complaints.c (_initialize_complaints): Update.
5027 * remote.c (_initialize_remote): Update.
5028
5029 2004-07-28 Andrew Cagney <cagney@gnu.org>
5030
5031 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5032 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5033 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5034 print parameters. Make string parameters constant.
5035 * command.h: Update. Update copyright.
5036 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5037 * observer.c (_initialize_observer): Ditto.
5038 * frame.c (_initialize_frame): Ditto.
5039 * complaints.c (_initialize_complaints): Ditto.
5040 * maint.c (_initialize_maint_cmds): Ditto.
5041 * target.c (initialize_targets): Ditto.
5042 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5043 * infcall.c (_initialize_infcall): Ditto.
5044 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5045 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5046 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5047 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5048 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5049
5050 2004-07-28 Andrew Cagney <cagney@gnu.org>
5051
5052 * gdbtypes.c (lookup_primitive_typename): Delete function.
5053 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5054 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5055 * gdbtypes.c (lookup_typename): Ditto.
5056 * f-exp.y (yylex): Ditto.
5057 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5058
5059 * scm-lang.c (c_builtin_types): Delete extern declaration.
5060 (scm_language_defn): Replace
5061 string_char_type and primitive_type_vector with
5062 la_language_arch_info.
5063 * jv-lang.c (java_language_defn): Replace
5064 string_char_type and primitive_type_vector with
5065 la_language_arch_info.
5066 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5067 c_builtin_types in comment.
5068 * c-lang.h (struct language_arch_info): Declare opaque.
5069 (c_language_arch_info): Declare.
5070 (c_builtin_types): Delete declaration.
5071 * c-lang.c (c_language_arch_info): Set string_char_type to
5072 builtin_char, not builtin_true_char. Make global.
5073 (c_builtin_types): Delete array.
5074 (asm_language_defn, minimal_language_defn): Replace
5075 string_char_type and primitive_type_vector with
5076 la_language_arch_info.
5077
5078 2004-07-28 Andrew Cagney <cagney@gnu.org>
5079
5080 * gdbtypes.h (struct builtin_type): Rename true_char to
5081 builtin_true_char.
5082 * gdbtypes.c (gdbtypes_post_init): Update.
5083 * c-lang.c (arch_info): New function.
5084 (enum c_primitive_types): New enum.
5085 (c_language_defn): Instead of string_char_type and
5086 primitive_type_vector set la_language_arch_info.
5087
5088 2004-07-28 Andrew Cagney <cagney@gnu.org>
5089
5090 * language.h (struct language_arch_info): Fix typo
5091 s/primative/primitive/.
5092 * gdbtypes.c (lookup_primitive_typename): Ditto.
5093 * language.c (language_lookup_primitive_type_by_name)
5094 (unknown_language_arch_info): Ditto.
5095
5096 2004-07-27 Andrew Cagney <cagney@gnu.org>
5097
5098 * defs.h (enum language): Add nr_languages.
5099 * language.h (struct language_arch_info): Define.
5100 (struct language_defn): Add la_language_arch_info.
5101 (language_lookup_primative_type_by_name): Declare.
5102 (language_string_char_type): Declare.
5103 * language.c (_initialize_language, language_gdbarch_post_init)
5104 (struct language_gdbarch, language_gdbarch_data): Implement
5105 per-architecture language information.
5106 (unknown_language_arch_info, language_string_char_type)
5107 (language_lookup_primative_type_by_name): New functions.
5108 (unknown_language_defn, auto_language_defn)
5109 (local_language_defn): Set la_language_arch_info to
5110 unknown_language_arch_info.
5111 (unknown_builtin_types): Delete.
5112 * gdbtypes.c (lookup_primitive_typename): Use
5113 language_lookup_primative_type_by_name.
5114 (create_string_type): Use language_string_char_type.
5115 * values.c (value_from_string): Use language_string_char_type.
5116 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5117 * p-lang.c (pascal_language_defn): Ditto.
5118 * m2-lang.c (m2_language_defn): Ditto.
5119 * jv-lang.c (java_language_defn): Ditto.
5120 * objc-lang.c (objc_language_defn): Ditto.
5121 * f-lang.c (f_language_defn): Ditto.
5122 * c-lang.c (c_language_defn, cplus_language_defn)
5123 (asm_language_defn, minimal_language_defn): Ditto.
5124
5125 2004-07-27 Andrew Cagney <cagney@gnu.org>
5126
5127 * gdbtypes.h (struct builtin_type): Declare.
5128 (builtin_type): Declare.
5129 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5130 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5131 (gdbtypes_post_init): New function.
5132 (builtin_type): New function.
5133
5134 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5135
5136 * remote-m32r-sdi.c: Fix breakpoint bug.
5137 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5138 recv_char_data, recv_long_data): New functions to replace communication
5139 sequences.
5140
5141 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5142
5143 Document PR threads/1650.
5144 * PROBLEMS (Threads): Document problem with many threads
5145
5146 2004-07-26 Andrew Cagney <cagney@gnu.org>
5147
5148 * gdb-mi.el: Move from here ...
5149 * mi/gdb-mi.el: ... to here.
5150
5151 2004-07-26 Andrew Cagney <cagney@gnu.org>
5152
5153 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5154 * main.c (captured_main): When in batch mode always detach.
5155
5156 2004-07-26 Andrew Cagney <cagney@gnu.org>
5157
5158 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5159 and h8300 as broken.
5160 * NEWS: END-OF-LIFE frame compatibility module.
5161 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5162 specific comments.
5163
5164 2004-07-26 Andrew Cagney <cagney@gnu.org>
5165
5166 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5167 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5168 * wince.c (_initialize_wince): Update.
5169 * win32-nat.c (_initialize_win32_nat): Update.
5170 * varobj.c (_initialize_varobj): Update.
5171 * valops.c (_initialize_valops): Update.
5172 * utils.c (initialize_utils, initialize_utils): Update.
5173 * tui/tui-win.c (_initialize_tui_win): Update.
5174 * top.c (init_main): Update.
5175 * symfile.c (_initialize_symfile): Update.
5176 * source.c (_initialize_source): Update.
5177 * somsolib.c (_initialize_som_solib): Update.
5178 * solib.c (_initialize_solib): Update.
5179 * solib-frv.c (_initialize_frv_solib): Update.
5180 * serial.c (_initialize_serial): Update.
5181 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5182 * remote.c (_initialize_remote, _initialize_remote): Update.
5183 * remote-vx.c (_initialize_vx): Update.
5184 * remote-utils.c (_initialize_sr_support): Update.
5185 * remote-sds.c (_initialize_remote_sds): Update.
5186 * remote-mips.c (_initialize_remote_mips): Update.
5187 * remote-e7000.c (_initialize_remote_e7000): Update.
5188 * proc-api.c (_initialize_proc_api): Update.
5189 * printcmd.c: Update.
5190 * parse.c (_initialize_parse): Update.
5191 * pa64solib.c (_initialize_pa64_solib): Update.
5192 * p-valprint.c (_initialize_pascal_valprint): Update.
5193 * monitor.c (_initialize_remote_monitors): Update.
5194 * mips-tdep.c (_initialize_mips_tdep): Update.
5195 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5196 * maint.c (_initialize_maint_cmds): Update.
5197 * lin-lwp.c (_initialize_lin_lwp): Update.
5198 * language.c (_initialize_language): Update.
5199 * kod.c (_initialize_kod): Update.
5200 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5201 * i386-tdep.c (_initialize_i386_tdep): Update.
5202 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5203 * gdbarch.sh: Update.
5204 * gdbarch.c: Re-generate.
5205 * gdb-events.sh: Update.
5206 * gdb-events.c: Re-generate.
5207 * frame.c (_initialize_frame): Update.
5208 * exec.c: Update.
5209 * demangle.c (_initialize_demangler): Update.
5210 * dcache.c (_initialize_dcache): Update.
5211 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5212 * cp-valprint.c (_initialize_cp_valprint): Update.
5213 * corefile.c (_initialize_core): Update.
5214 * command.h: Update.
5215 * cli/cli-decode.h: Update.
5216 * cli/cli-cmds.c (init_cli_cmds): Update.
5217 * charset.c (_initialize_charset): Update.
5218 * breakpoint.c (_initialize_breakpoint): Update.
5219 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5220 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5221 * aix-thread.c (_initialize_aix_thread): Update.
5222
5223 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5224
5225 Partial fix for PR backtrace/1718.
5226 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5227 that GCC migrates into the prolugue. Don't handle any
5228 instructions that clobber %ebx.
5229
5230 2004-07-23 Andrew Cagney <cagney@gnu.org>
5231
5232 Use regcache_raw_collect instead of regcache_collect.
5233 * regcache.h (regcache_collect): Delete declaration.
5234 * regcache.c (regcache_colect): Delete function.
5235 * win32-nat.c (do_child_store_inferior_registers): Update.
5236 * sol-thread.c (sol_thread_store_registers): Update.
5237 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5238 * rs6000-nat.c (store_register): Update.
5239 * remote.c (store_register_using_P, remote_store_registers): Update.
5240 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5241 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5242 (fill_vrregset, store_spe_registers, fill_gregset)
5243 (fill_gregset): Update.
5244 * nto-procfs.c (procfs_store_registers): Update.
5245 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5246 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5247 * m68klinux-nat.c (store_register, fill_gregset): Update.
5248 * m68k-tdep.c (fill_gregset): Update.
5249 * infptrace.c (store_register): Update.
5250 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5251 * i386-linux-nat.c (store_register, fill_gregset): Update.
5252 * hppa-linux-nat.c (fill_gregset): Update.
5253 * go32-nat.c (store_register): Update.
5254 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5255 (store_fp_regs): Update.
5256 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5257 (store_nwfpe_extended, store_fpregister, store_fpregs)
5258 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5259 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5260 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5261 (store_regs_user_thread, store_regs_kernel_thread): Update.
5262
5263 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5264
5265 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5266 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5267 encoding.
5268 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5269 member of `struct comp_unit'.
5270
5271 2004-07-23 Andrew Cagney <cagney@gnu.org>
5272
5273 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5274 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5275
5276 2004-07-23 Martin Hunt <hunt@redhat.com>
5277 Kevin Buettner <kevinb@redhat.com>
5278
5279 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5280 alignment was being added to the offset instead of multiplied.
5281
5282 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5283
5284 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5285 changed signal trampoline in OpenBSD 3.5-current.
5286
5287 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5288 <machine/pcb.h> and "bsd-kvm.h".
5289 (sparc64nbsd_supply_pcb): New function.
5290 (_initialize_sparc64nbsd_nat): Renamed from
5291 _initialize_sparcnbsd_nat. Enable libkvm interface.
5292 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5293 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5294 (LOADLIBES): New variable.
5295
5296 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5297
5298 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5299
5300 2004-07-21 Andrew Cagney <cagney@gnu.org>
5301
5302 Use regcache_raw_supply instead of supply_register.
5303 * regcache.h (supply_register): Delete declaration.
5304 * regcache.c (supply_register): Delete function.
5305 * wince.c (do_child_fetch_inferior_registers): Update.
5306 * win32-nat.c (do_child_fetch_inferior_registers)
5307 (fetch_elf_core_registers): Update.
5308 * v850ice.c (v850ice_fetch_registers): Update.
5309 * thread-db.c (thread_db_store_registers): Update.
5310 * sol-thread.c (sol_thread_store_registers): Update.
5311 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5312 * rs6000-nat.c (fetch_register): Update.
5313 * rom68k-rom.c (rom68k_supply_one_register): Update.
5314 * remote.c (remote_wait, remote_async_wait): Update.
5315 * remote-st.c (get_hex_regs): Update.
5316 * remote-sim.c (gdbsim_fetch_register): Update.
5317 * remote-sds.c (sds_fetch_registers): Update.
5318 * remote-rdp.c (remote_rdp_fetch_register): Update.
5319 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5320 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5321 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5322 * remote-hms.c (init_hms_cmds): Update.
5323 * remote-est.c (init_est_cmds): Update.
5324 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5325 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5326 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5327 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5328 (fetch_register, supply_vrregset, supply_vrregset)
5329 (fetch_spe_registers): Update.
5330 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5331 * monitor.c (monitor_supply_register): Update.
5332 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5333 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5334 (mipsnbsd_supply_fpreg): Update.
5335 * mips-nat.c (fetch_inferior_registers)
5336 (fetch_core_registers): Update.
5337 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5338 (supply_fpregset, mips64_supply_gregset)
5339 (mips64_supply_fpregset): Update.
5340 * m68klinux-nat.c (fetch_register, supply_gregset)
5341 (supply_fpregset): Update.
5342 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5343 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5344 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5345 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5346 * infptrace.c (fetch_register): Update.
5347 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5348 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5349 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5350 (gnu_fetch_registers, gnu_store_registers): Update.
5351 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5352 * i386-linux-nat.c (fetch_register, supply_gregset)
5353 (dummy_sse_values): Update.
5354 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5355 * hppah-nat.c (fetch_register): Update.
5356 * hppa-linux-nat.c (fetch_register, supply_gregset)
5357 (supply_fpregset): Update.
5358 * go32-nat.c (fetch_register): Update.
5359 * dve3900-rom.c (fetch_bitmapped_register)
5360 (_initialize_r3900_rom): Update.
5361 * cris-tdep.c (supply_gregset): Update.
5362 * abug-rom.c (init_abug_cmds): Update.
5363 * core-aout.c (fetch_core_registers): Update.
5364 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5365 (fetch_register, fetch_fp_register): Update.
5366 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5367 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5368 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5369 * alphanbsd-tdep.c (fetch_core_registers): Update.
5370 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5371 * alpha-nat.c (fetch_osf_core_registers)
5372 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5373 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5374 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5375
5376 2004-07-21 Andrew Cagney <cagney@gnu.org>
5377
5378 * PROBLEMS: Mention breakpoints/1702.
5379 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5380 that is known to work.
5381
5382 2004-07-21 Andrew Cagney <cagney@gnu.org>
5383
5384 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5385 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5386 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5387 (handle_inferior_event): Wrap call to deprecated
5388 IGNORE_HELPER_CALL in #ifdef.
5389 * config/mips/tm-nbsd.h: Update.
5390
5391 2004-07-20 Jim Blandy <jimb@redhat.com>
5392
5393 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5394 bfd_mach_ppc has no segment registers.
5395
5396 Include PowerPC SPR numbers for special-purpose registers.
5397 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5398 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5399 new member in initializer.
5400 (S, S4, SN4, S64): New macros for defining special-purpose
5401 registers.
5402 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5403 registers_403, registers_403GC, registers_505, registers_860,
5404 registers_601, registers_602, registers_603, registers_604,
5405 registers_750, registers_e500): Use them.
5406
5407 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5408 replace references with expression used to initialize variable.
5409
5410 2004-07-20 Andrew Cagney <cagney@gnu.org>
5411
5412 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5413 read_memory_nobpt.
5414 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5415 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5416 (s390_sigtramp_frame_sniffer): Update.
5417 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5418 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5419 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5420 (mips32_fetch_instruction): Update.
5421 * mcore-tdep.c (get_insn): Update.
5422 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5423 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5424 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5425 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5426 (i386_linux_rt_sigtramp_start): Update.
5427 * i386-linux-nat.c (child_resume): Update.
5428 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5429 * hppa-linux-tdep.c (insns_match_pattern): Update.
5430 * gdbcore.h: Update.
5431 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5432 * frame.c (safe_frame_unwind_memory): Update.
5433 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5434 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5435 * alpha-tdep.c (alpha_read_insn): Update.
5436
5437 2004-07-20 Andrew Cagney <cagney@gnu.org>
5438
5439 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5440 containing both bytes and mask. Add "frame_type".
5441 * tramp-frame.c (tramp_frame_start): Update.
5442 (tramp_frame_prepend_unwinder): Update.
5443 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5444 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5445 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5446 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5447
5448 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5449
5450 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5451 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5452 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5453 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5454
5455 2004-07-17 Andrew Cagney <cagney@gnu.org>
5456
5457 * NEWS, PROBLEMS: Update for 6.2.
5458
5459 * README: Update to 6.2.
5460
5461 * utils.c (xvasprintf): Call xstrvprintf.
5462
5463 * parse.c: Update copyright.
5464 (null_post_parser): Eliminate ARGSUSED.
5465
5466 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5467 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5468 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5469
5470 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5471 * ppc-linux-nat.c: Use "Linux kernel".
5472 * hppa-linux-tdep.c: Use GNU/Linux.
5473 * hppa-linux-nat.c: Use GNU/Linux.
5474 * dwarfread.c: Add [sic] to use of Linux.
5475
5476 * hppa-linux-nat.c: Do not include <string.h>.
5477 (supply_fpregset): Remove "register" attribute.
5478
5479 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5480
5481 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5482
5483 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5484 * configure, config.in: Regenerated.
5485
5486 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5487 "bsd-kvm.h".
5488 (vaxbsd_supply_pcb): New function.
5489 (_initialize_vaxbsd_nat): New prototype and function.
5490 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5491 solib-sunos.o.
5492 (LOADLIBES): New variable.
5493 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5494 (LOADLIBES): New variable.
5495 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5496 (LOADLIBES): New variable.
5497 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5498
5499 2004-07-16 Andrew Cagney <cagney@gnu.org>
5500
5501 * defs.h (event_loop_p): Replace variable declaration with macro,
5502 always 1.
5503 * main.c (captured_main): Delete options "-async" and "-noasync".
5504 (event_loop_p): Delete variable.
5505 * NEWS: Mention that "-async" and "-noasync" were removed.
5506
5507 2004-07-16 Andrew Cagney <cagney@gnu.org>
5508
5509 * remote-m32r-sdi.c: Re-indent.
5510
5511 2004-07-16 Jim Blandy <jimb@redhat.com>
5512
5513 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5514 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5515 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5516 missing MPC823 SPRs.
5517 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5518 incorrect. (This was corrected in GDB's register name tables on
5519 2004-07-14.)
5520
5521 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5522 should be "esasrr" ("ESA Save and Restore Register").
5523
5524 2004-07-16 Andrew Cagney <cagney@gnu.org>
5525
5526 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5527 calls, no longer applicable. Update comments and rename parameter
5528 "step_frame" to "return_frame".
5529
5530 2004-07-16 Andrew Cagney <cagney@gnu.org>
5531
5532 * frame.c (fprint_field): New function.
5533 (fprint_frame_id): Use fprint_field.
5534
5535 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5536
5537 * ada-lang.c (ada_language_defn): Remove commented out code.
5538
5539 2004-07-15 Jim Blandy <jimb@redhat.com>
5540
5541 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5542 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5543
5544 2004-07-14 Jim Blandy <jimb@redhat.com>
5545
5546 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5547
5548 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5549
5550 * ppc-tdep.h (ppc_num_srs): New enum constant.
5551
5552 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5553 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5554 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5555 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5556 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5557 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5558 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5559 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5560 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5561 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5562 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5563 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5564 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5565 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5566 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5567 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5568 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5569 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5570 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5571 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5572 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5573 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5574 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5575 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5576 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5577 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5578 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5579 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5580 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5581 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5582 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5583 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5584 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5585 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5586 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5587 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5588 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5589 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5590 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5591 special-purpose register numbers.
5592
5593 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5594 manual mentions 'md_twb', but many mention 'm_twb', and at that
5595 point in the register list.)
5596
5597 2004-07-14 Andrew Cagney <cagney@gnu.org>
5598
5599 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5600 instead of "internal-error".
5601
5602 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5603
5604 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5605 that was inserted inside a comment.
5606
5607 2004-07-10 Randolph Chung <tausq@debian.org>
5608
5609 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5610 function.
5611 (hppa_hpux_push_dummy_code): New function.
5612 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5613 Set find_global_pointer method.
5614
5615 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5616
5617 * NEWS: Mention BSD libkvm interface.
5618
5619 2004-07-10 Michael Snyder <msnyder@redhat.com>
5620
5621 * symfile.c (generic_load): Comment typo.
5622 * stack.c (get_selected_block): Ditto.
5623 * regcache.c (regcache_cooked_read): Ditto.
5624 * monitor.c (monitor_debug): Ditto.
5625 * mips-tdep.c (mips_read_pc): Ditto.
5626 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5627 * gdb_mbuild.sh: Ditto.
5628 * gdbarch.sh: Ditto.
5629 * gdbarch.h: Ditto.
5630
5631 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5632
5633 * ada-tasks.c: Remove file.
5634
5635 Remove ARI problems:
5636
5637 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5638 beginning of line.
5639
5640 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5641 Add comment.
5642 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5643 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5644 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5645 (UMIN_OF_SIZE): Remove.
5646 (max_of_type): New function to replace orphan macro in gdbtypes.h
5647 (min_of_type): Ditto.
5648 (discrete_type_high_bound): Use max_of_type.
5649 (discrete_type_low_bound): Use min_of_type.
5650 (possible_user_operator_p): Move operator to beginning of line.
5651 (ada_is_variant_part): Ditto.
5652 (ensure_lval): Rewrite to avoid deprecated operations.
5653 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5654 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5655 (ada_enum_name): Remove assignments in 'if' statements.
5656 (build_ada_types): Add gdbarch parameter.
5657 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5658 with gdbarch_data_register_post_init.
5659 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5660 add_show_from_set.
5661
5662 * ada-valprint.c (inspect_it): Remove declaration.
5663 (repeat_count_threshold): Remove declaration.
5664 (ada_print_floating): Remove assignments in 'if' statements.
5665 (print_str): Move operator to beginning of line.
5666
5667 2004-07-08 Jim Blandy <jimb@redhat.com>
5668
5669 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5670
5671 2004-07-08 Bob Rossi <bob@brasko.net>
5672
5673 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5674
5675 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5676
5677 * language.h (struct_language_defn): Add new function pointer:
5678 la_class_name_from_physname. Also add new prototype for
5679 language_class_name_from_physname.
5680 * language.c (language_class_name_from_physname): New function.
5681 (unk_lang_class_name): Ditto.
5682 (unknown_language_defn, auto_language_defn): Change
5683 to add unk_lang_class_name function pointer for
5684 la_class_name_from_physname.
5685 (local_language_defn): Ditto.
5686 * dwarf2read.c (guess_structure_name): Change to call
5687 language_class_name_from_physname.
5688 (determine_class_name): Ditto.
5689 * cp-support.c (class_name_from_physname): Renamed.
5690 (cp_class_name_from_physname): New name of function.
5691 * cp-support.h: Ditto.
5692 * c-lang.c (c_language_defn): Change to add NULL
5693 for class_name_from_physname function pointer.
5694 (cplus_language_defn): Change to add cp_class_name_from_physname.
5695 * jv-lang.c (java_class_name_physname): New function.
5696 (java_find_last_component): New static routine.
5697 (java_language_defn): Add java_class_name_from_physname pointer.
5698 * ada-lang.c (ada_language_defn): Change to add NULL
5699 for class_name_from_physname function pointer.
5700 * f-lang.c (f_language_defn): Ditto.
5701 * m2-lang.c (m2_language_defn): Ditto.
5702 * objc-lang.c (objc_language_defn): Ditto.
5703 * p-lang.c (pascal_language_defn): Ditto.
5704 * scm-lang.c (scm_language_defn): Ditto.
5705
5706 2004-07-06 Andrew Cagney <cagney@gnu.org>
5707
5708 Patch from Bart Robinson.
5709 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5710 (O_LARGEFILE): Define to 0, if not defined.
5711
5712 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5713
5714 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5715 <machine/pcb.h> and "bsd-kvm.h".
5716 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5717 (m68kbsd_supply_pcb): New function.
5718 (_initialize_m68kbsd_nat): New prototype and function.
5719 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5720 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5721 (LOADLIBES): New variable.
5722 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5723 (LOADLIBES): New variable.
5724
5725 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5726
5727 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5728
5729 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5730 <sys/proc.h>.
5731 (bsd_kvm_cmdlist): New variable.
5732 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5733 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5734 command and "kvm proc" command.
5735 * Makefile.in (bsd-kvm.o): Update dependencies.
5736
5737 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5738
5739 * osabi.c: Update copyright year.
5740 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5741 notes if EI_OSABI is set to ELFOSABI_HPUX.
5742
5743 2004-07-01 Michael Snyder <msnyder@redhat.com>
5744
5745 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5746 that seems to have gotten whacked out of line.
5747
5748 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5749
5750 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5751 code.
5752
5753 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5754
5755 * ada-lang.c (decode_packed_array): Minor change to comment.
5756 (ada_value_slice_ptr): New function.
5757 (ada_value_slice): New function.
5758 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5759 test. Don't know why it is there.
5760 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5761 to avoid dereferencing huge arrays from which one is slicing.
5762 (empty_array): Correct to return an array rather than
5763 a subrange value.
5764 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5765 on empty arrays (let'em use 'FIRST instead).
5766
5767 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5768
5769 Address complaints from gdb_ari.sh:
5770
5771 * ada-exp.y: Include gdb_string.h rather than string.h.
5772 (convert_char_literal): Reformat declaration.
5773 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5774 * ada-lex.l: Change use of free to xfree (the macro would do so
5775 anyway, but this is harmless).
5776 Include gdb_string.h rather than string.h.
5777 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5778
5779 * ada-lang.c (parse): Remove K&Rism in parameter list.
5780 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5781
5782 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5783
5784 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5785 dead code.
5786
5787 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5788
5789 * alphabsd-nat.c: Update copyright year.
5790 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5791
5792 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5793
5794 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5795 (i386_cygwin_in_solib_call_trampoline): New function.
5796 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5797 and skip_trampoline_code gdbarch methods.
5798
5799 2004-06-29 Jim Blandy <jimb@redhat.com>
5800
5801 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5802 name actually used in the dependency lists.
5803
5804 2004-06-29 Randolph Chung <tausq@debian.org>
5805
5806 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5807
5808 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5809
5810 * win32-nat.c (child_pid_to_exec_file): New function.
5811 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5812 functionality.
5813
5814 2004-06-28 Andrew Cagney <cagney@gnu.org>
5815
5816 * defs.h (xstrvprintf): Declare.
5817 * utils.c (xstrvprintf): New function.
5818 (internal_vproblem, xstrprintf, xasprintf)
5819 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5820 * serial.c (serial_printf): Ditto.
5821 * complaints.c (vcomplaint): Ditto.
5822
5823 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5824
5825 * infcmd.c (attach_command): Move call to target_terminal_inferior
5826 behind loading symbol table.
5827
5828 2004-06-28 Andrew Cagney <cagney@gnu.org>
5829
5830 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5831 change - add back extern deprecated_ui_loop_hook declaration.
5832
5833 2004-06-28 Andrew Cagney <cagney@gnu.org>
5834
5835 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5836 xstrprintf.
5837 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5838 (c_value_of_variable): Ditto.
5839 * utils.c (internal_vproblem): Ditto.
5840 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5841 * remote.c (add_packet_config_cmd): Ditto.
5842 * remote-rdp.c (rdp_set_command_line): Ditto.
5843 * regcache.c (regcache_dump): Ditto.
5844 * frv-tdep.c (new_variant, new_variant): Ditto.
5845 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5846 (fbsd_find_memory_regions): Ditto.
5847 * breakpoint.c (create_thread_event_breakpoint)
5848 (create_breakpoints): Ditto.
5849 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5850 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5851
5852 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5853
5854 * ada-lang.c: Re-indent file, with some massaging to help indent
5855 a bit when the result is otherwise really too ugly.
5856
5857 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5858
5859 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5860 code_addr_p and special_addr_p to 'unsigned int'.
5861
5862 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5863
5864 * i386v4-nat.c: Update copyright year and tweak comment.
5865 (regmap): Remove trailing comma.
5866 (supply_gregset): Rename local variable i to regnum. Call
5867 regcache_raw_supply instead of supply_register.
5868 (fill_gregset): Rename argument regno to regnum. Call
5869 regcache_raw_collect instead of regcache_collect.
5870
5871 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5872
5873 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5874 and special_addr_p.
5875 (frame_id_build, frame_id_build_special): Update comments.
5876 (frame_id_build_wild): New prototype.
5877 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5878 struct frame_id fields.
5879 (frame_id_build_wild): New function.
5880 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5881
5882 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5883
5884 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5885 hppabsd-tdep.c.
5886
5887 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5888
5889 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5890
5891 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5892
5893 * ada-lang.c: Re-indent file.
5894
5895 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5896
5897 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5898 (no_symtab_msg): Likewise.
5899
5900 2004-06-27 Andreas Schwab <schwab@suse.de>
5901
5902 * source.c: Fix whitespace.
5903
5904 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5905
5906 * configure.in: Include <sys/param.h> for td_pcb test.
5907 * configure: Regenerated.
5908
5909 * i386nbsd-nat.c: New file.
5910 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5911 i386obsd-nat.c and i386obsd-tdep.c.
5912 (i386nbsd-nat.o): New dependency.
5913 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5914 bsd-kvm.o.
5915 (LOADLIBES): New variable.
5916 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5917 bsd-kvm.o.
5918 (LOADLIBES): New variable.
5919
5920 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5921 (LOADLIBES): New variable.
5922
5923 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5924 fetching from BSD_KVM_PADDR. Correctly lookup address for
5925 "_thread0".
5926
5927 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5928 "bsd-kvm.h".
5929 (amd64fbsd_supply_pcb): New funcion.
5930 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5931
5932 2004-06-27 <david@streamline-computing.com>
5933
5934 Partial fix for PR cli/1056.
5935 * valarith.c: Check for zero in division and remainder
5936 evaluation.
5937
5938 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5939
5940 * i387-tdep.c: Remove excessive whitespace.
5941
5942 2004-06-26 Andrew Cagney <cagney@gnu.org>
5943
5944 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5945 * gdb-events.h, gdb-events.c: Re-generate.
5946 * tui/tui-hooks.c (tui_install_hooks): Update.
5947 (tui_remove_hooks): Update.
5948 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5949
5950 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5951
5952 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5953 (gregset_t, fpregset_t): Remove typedefs.
5954 (REG_OFFSET): Rename argument.
5955 (amd64bsd_r_reg_offset): Rename from reg_offset.
5956 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5957 Remove functions.
5958 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5959 of reg_offset.
5960 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5961
5962 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5963
5964 * vax-tdep.c: Tweak comment.
5965
5966 Add OpenBSD/hppa support.
5967 * NEWS (New native configurations): Mention OpenBSD/hppa.
5968 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5969 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5970 files.
5971 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5972 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5973 * configure.host: Add hppa*-*-openbsd*.
5974 * configure.tgt: Add hppa*-*-openbsd*.
5975
5976 2004-06-25 Andrew Cagney <cagney@gnu.org>
5977
5978 * defs.h (deprecated_ui_loop_hook): Deprecated.
5979 * wince.c (child_wait): Update.
5980 * win32-nat.c (child_wait): Update.
5981 * v850ice.c (v850ice_wait): Update.
5982 * top.c (deprecated_ui_loop_hook): Update.
5983 * serial.h: Update.
5984 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5985 (do_unix_readchar): Update.
5986 * ser-tcp.c (net_open): Update.
5987 * remote-sim.c (gdb_os_poll_quit): Update.
5988 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5989
5990 2004-06-24 Andrew Cagney <cagney@gnu.org>
5991
5992 * defs.h (deprecated_pre_add_symbol_hook)
5993 (deprecated_post_add_symbol_hook): Deprecated.
5994 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5995 (symbol_file_add_with_addrs_or_offsets): Update references.
5996
5997 2004-06-24 Andrew Cagney <cagney@gnu.org>
5998
5999 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6000 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6001 * wince.c (ui_loop_hook): Delete extern declaration.
6002 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6003 * v850ice.c (ui_loop_hook): Delete extern declaration..
6004 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6005 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6006 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6007 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6008 ui_loop_hook declaration.
6009
6010 2004-06-24 Andrew Cagney <cagney@gnu.org>
6011
6012 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6013 entry_func_highpc fields.
6014 * objfiles.c (init_entry_point_info): Do not clear
6015 entry_func_lowpc and entry_func_highpc.
6016 (objfile_relocate): Do not relocate entry_func_lowpc and
6017 entry_func_highpc.
6018 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6019 entry_func_highpc.
6020 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6021 entry_func_highpc.
6022 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6023 entry_func_lowpc and entry_func_highpc with call to
6024 inside_entry_func.
6025
6026 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6027
6028 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6029 quad-precision floating point arguments in registers.
6030
6031 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6032
6033 From Michael Mueller <m.mueller99@kay-mueller.de>:
6034 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6035 account.
6036
6037 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6038
6039 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6040 to -1.
6041 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6042 untriggered watchpoints to a separate if clause. Update function
6043 comment regarding STOPPED_BY_WATCHPOINT argument.
6044
6045 2004-06-22 Jim Blandy <jimb@redhat.com>
6046
6047 * gdbarch.sh: Doc fix.
6048
6049 2004-06-21 Martin Hunt <hunt@redhat.com>
6050 Kevin Buettner <kevinb@redhat.com>
6051
6052 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6053 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6054 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6055 to set_gdbarch_sp_regnum(). Use cooked register number.
6056 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6057
6058 2004-06-21 Andrew Cagney <cagney@gnu.org>
6059
6060 * gdbarch.sh: When the macro field is empty, do not generate a
6061 macro definition. When the macro field is "=", generate the macro
6062 name from the upper-case function name.
6063 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6064 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6065 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6066 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6067 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6068 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6069 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6070 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6071 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6072 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6073 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6074 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6075 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6076 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6077 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6078 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6079 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6080 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6081 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6082 (DEPRECATED_USE_STRUCT_CONVENTION)
6083 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6084 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6085 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6086 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6087 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6088 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6089 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6090 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6091 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6092 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6093 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6094 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6095 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6096 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6097 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6098 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6099 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6100 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6101
6102 2004-06-21 Andrew Cagney <cagney@gnu.org>
6103
6104 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6105 macro name, and the function rather than macro value. Only wrap
6106 macro print statements in #ifdef. Move format logic to where it
6107 is needed.
6108 * gdbarch.c: Re-generate.
6109
6110 * gdbarch.sh (read): Delete "print_p" and "description", add
6111 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6112 Delete references to print_p.
6113 (TARGET_ARCHITECTURE): Delete print predicate.
6114 * gdbarch.c: Re-generate.
6115
6116 * gdbarch.sh: Check that multi-arch methods do not provide a
6117 macro.
6118 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6119 (print_registers_info, print_float_info, print_vector_info)
6120 (adjust_breakpoint_address, remote_translate_xfer_address)
6121 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6122 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6123 name from the multi-arch definition.
6124
6125 2004-06-20 Andrew Cagney <cagney@gnu.org>
6126
6127 * gdbarch.sh: Sort by the function, instead of macro name.
6128 * gdbarch.c: Re-generate.
6129
6130 2004-06-20 Andrew Cagney <cagney@gnu.org>
6131
6132 * gdbarch.sh: Use the function, instead of macro name in
6133 errors and the log file.
6134 (return_value): Remove stray ":" in spec.
6135
6136 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6137 * gdbarch.h, gdbarch.c: Re-generate.
6138 * Makefile.in (arch-utils.o): Update dependencies.
6139 * values.c (using_struct_return): Move code calling
6140 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6141 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6142 to legacy_return_value, simplify.
6143 * infcmd.c (print_return_value): Move code calling
6144 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6145 to legacy_return_value, simplify.
6146 * infcall.c (call_function_by_hand): Move code calling
6147 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6148 * arch-utils.c: Update copyright. Include "gdbcore.h".
6149 (legacy_return_value): New function.
6150 * arch-utils.h: Update copyright.
6151 (legacy_return_value): Declare.
6152
6153 2004-06-20 Andrew Cagney <cagney@gnu.org>
6154
6155 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6156 * gdbarch.h, gdbarch.c: Re-generate.
6157 * values.c (using_struct_return): Update call.
6158 * mcore-tdep.c: Update comment.
6159 * infcall.c (call_function_by_hand): Update comment.
6160 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6161 * arch-utils.h (always_use_struct_convention): Update.
6162 * v850-tdep.c (v850_gdbarch_init): Update.
6163 * sh64-tdep.c (sh64_gdbarch_init): Update.
6164 * sh-tdep.c (sh_gdbarch_init): Update.
6165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6166 * mips-tdep.c (mips_gdbarch_init): Update.
6167 * mcore-tdep.c (mcore_gdbarch_init): Update.
6168 * m32r-tdep.c (m32r_gdbarch_init): Update.
6169 * ia64-tdep.c (ia64_gdbarch_init): Update.
6170 * h8300-tdep.c (h8300_gdbarch_init): Update.
6171 * frv-tdep.c (frv_gdbarch_init): Update.
6172 * cris-tdep.c (cris_gdbarch_init): Update.
6173 * arm-tdep.c (arm_gdbarch_init): Update.
6174 * alpha-tdep.c (alpha_gdbarch_init): Update.
6175
6176 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6177
6178 * PROBLEMS: Add more specific information, and a work-around,
6179 for PR gdb/1458.
6180
6181 2004-06-18 Andrew Cagney <cagney@gnu.org>
6182
6183 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6184 * gdbarch.h, gdbarch.c: Re-generate.
6185 * ada-lang.c (ada_finish_decode_line_1): Update.
6186 * infrun.c (handle_inferior_event): Update.
6187 * infcall.c (find_function_addr): Update.
6188 * linespec.c (minsym_found): Update.
6189 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6190 Update.
6191 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6192 * cli/cli-cmds.c (disassemble_command): Update.
6193 * vax-tdep.c (vax_gdbarch_init): Update.
6194
6195 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6196
6197 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6198
6199 2004-06-17 Andrew Cagney <cagney@gnu.org>
6200
6201 GDB 6.1.1 released from the GDB 6.1 branch.
6202 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6203 * PROBLEMS: Ditto.
6204
6205 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6206
6207 PR gdb/1658
6208 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6209 operation as a uleb128. Found by Michael Coulter.
6210
6211 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6212
6213 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6214 make it non-static.
6215 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6216 to ada-lang.h; this is needed to be able to implement the kill command
6217 in multi-task mode.
6218 (task_ptid): Ditto.
6219 (task_entry): Ditto.
6220 (task_list): Ditto.
6221 (ada_build_task_list): Ditto.
6222
6223 * ada-lang.c: Conditionalize routines and data structures related
6224 to breakpoints, exceptions, completion, and symbol caching on
6225 GNAT_GDB, since these are not yet used in the submitted public sources.
6226 (ada_main_name): Editorial: Move definition out of exception-related
6227 code.
6228
6229 2004-06-15 Andrew Cagney <cagney@gnu.org>
6230
6231 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6232 deprecated_pc_in_call_dummy.
6233
6234 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6235
6236 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6237 bfd_get_section_size_before_reloc or _raw_size.
6238 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6239 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6240 (dwarf2_read_section): Likewise.
6241 * elfread.c (elf_locate_sections): Likewise.
6242 * gcore.c (derive_heap_segment): Likewise.
6243 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6244 * remote-e7000.c (e7000_load): Likewise.
6245 * remote-m32r-sdi.c (m32r_load): Likewise.
6246 * remote-mips.c (mips_load_srec): Likewise.
6247 (pmon_load_fast): Likewise.
6248 * remote.c (compare_sections_command): Likewise.
6249 * symfile.c (add_section_size_callback): Likewise.
6250 (load_section_callback): Likewise.
6251 (pc_in_unmapped_range): Likewise.
6252 (pc_in_mapped_range): Likewise.
6253 (sections_overlap): Likewise.
6254 (list_overlays_command): Likewise.
6255 (simple_overlay_update_1): Likewise.
6256 (simple_overlay_update): Likewise.
6257 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6258 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6259
6260 2004-06-14 Randolph Chung <tausq@debian.org>
6261
6262 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6263 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6264 static.
6265 (hppa_hpux_inferior_created): New function.
6266 (hppa_hpux_init_abi): Register observer.
6267 * symfile.c (hp_cxx_exception_support_initialized)
6268 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6269 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6270
6271 2004-06-14 Randolph Chung <tausq@debian.org>
6272
6273 * MAINTAINERS (Write After Approval): Alphabetize my entry
6274 correctly.
6275
6276 2004-06-14 Andrew Cagney <cagney@gnu.org>
6277
6278 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6279 testsuite maintainer.
6280
6281 2004-06-13 Andrew Cagney <cagney@gnu.org>
6282
6283 * infcmd.c (print_return_value): Fix logic, allow
6284 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6285
6286 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6287 defining any macros.
6288 * gdbarch.h: Re-generate.
6289
6290 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6291 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6292 * gdbarch.h: Re-generate.
6293
6294 * values.c (generic_use_struct_convention): Don't check gcc_p.
6295
6296 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6297 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6298 * gdbarch.h, gdbarch.c: Regenerate.
6299 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6300 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6302 deprecated_max_register_raw_size and
6303 deprecated_max_register_virtual_size.
6304 * v850-tdep.c (v850_gdbarch_init): Ditto.
6305 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6306 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6307 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6308 * cris-tdep.c (cris_gdbarch_init): Ditto.
6309
6310 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6311 * gdbarch.h, gdbarch.c: Re-generate.
6312 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6313 (m68hc11_use_struct_convention): Delete function.
6314 (m68hc11_extract_struct_value_address): Delete function.
6315 (m68hc11_return_value): New function.
6316 (m68hc11_gdbarch_init): Instead of store_return_value,
6317 extract_return_value, return_value_on_stack,
6318 deprecated_extract_struct_value_address and use_struct_convention,
6319 set return_value.
6320 * values.c (using_struct_return): Do not call
6321 RETURN_VALUE_ON_STACK.
6322 * arch-utils.h (generic_return_value_on_stack_not): Delete
6323 declaration.
6324 * arch-utils.c (generic_return_value_on_stack_not): Delete
6325 function.
6326
6327 2004-06-12 Andrew Cagney <cagney@gnu.org>
6328
6329 * values.c (register_value_being_returned): Delete function.
6330 * infcmd.c (legacy_return_value): Delete function.
6331 * infcall.c (call_function_by_hand): Inline
6332 "register_value_being_returned", simplify.
6333 * values.c (using_struct_return): Update comment, refer to
6334 print_return_value instead of register_value_being_returned.
6335 * infcmd.c (print_return_value): Inline calls to
6336 register_value_being_returned and legacy_return_value. Simplify.
6337
6338 2004-06-11 Randolph Chung <tausq@debian.org>
6339
6340 * somread.c (som_symtab_read): Exclude gcc local symbols.
6341
6342 2004-06-11 Randolph Chung <tausq@debian.org>
6343
6344 * infrun.c (handle_inferior_event): Handle the case when a
6345 trampoline ends up in the runtime resolver, and if the trampoline
6346 has no name. Rearrange the code so that all the trampoline
6347 processing happens before other step-out-of-range handling.
6348
6349 2004-06-11 Martin Hunt <hunt@redhat.com>
6350
6351 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6352 has no fpu.
6353
6354 2004-06-10 Andrew Cagney <cagney@gnu.org>
6355
6356 * blockframe.c (legacy_inside_entry_func): Delete.
6357 (legacy_frame_chain_valid): Inline call to
6358 legacy_inside_entry_func, simplify.
6359
6360 2004-06-10 Bob Rossi <bob@brasko.net>
6361
6362 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6363 * dwarf2read.c (partial_die_info): Add dirname field.
6364 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6365 (read_partial_die): Save away DW_AT_comp_dir.
6366 * defs.h (symtab_to_filename): Removed.
6367 * source.c (find_and_open_source): Added.
6368 (open_source_file): Just calls find_and_open_source.
6369 (symtab_to_filename): Removed.
6370 (symtab_to_fullname, psymtab_to_fullname): Added.
6371 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6372 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6373 symtab_to_filename.
6374 * symtab.h (partial_symtab): Add dirname field.
6375 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6376 (mi_cmd_file_list_exec_source_file): Call new function
6377 symtab_to_fullname to find fullname.
6378 (mi_cmd_file_list_exec_source_files): Added.
6379 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6380 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6381
6382 2004-06-10 Andrew Cagney <cagney@gnu.org>
6383
6384 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6385 to generic_use_struct_convention, the default value.
6386
6387 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6388 of abort.
6389
6390 * ns32k-tdep.c (ns32k_push_arguments): New function.
6391 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6392 * infcall.c (call_function_by_hand): Call error instead of
6393 legacy_push_arguments.
6394 * value.h (legacy_push_arguments): Delete declaration.
6395 * valops.c (legacy_push_arguments): Delete function.
6396 (value_push): Delete function.
6397
6398 2004-06-10 Brian Ford <ford@vss.fsi.com>
6399
6400 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6401 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6402 info.
6403 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6404
6405 2004-06-10 Andrew Cagney <cagney@gnu.org>
6406
6407 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6408 * gdbarch.h, gdbarch.c: Re-generate.
6409 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6410 parameters.
6411 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6412 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6413 deprecated_pc_in_call_dummy instead of
6414 DEPRECATED_PC_IN_CALL_DUMMY.
6415 (arm_skip_prologue): Ditto.
6416 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6417 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6418 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6419 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6420 Ditto.
6421 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6422 (sh64_init_extra_frame_info, sh64_get_saved_register)
6423 (sh64_pop_frame): Ditto.
6424 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6425 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6426 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6427 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6428 (h8300_pop_frame): Ditto.
6429 * blockframe.c (legacy_inside_entry_func)
6430 (legacy_frame_chain_valid): Ditto.
6431 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6432 to deprecated_pc_in_call_dummy.
6433
6434 2004-06-09 Andrew Cagney <cagney@gnu.org>
6435
6436 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6437 provide a default value.
6438 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6439 * gdbarch.h, gdbarch.c: Re-generate.
6440 * arch-utils.c (generic_convert_register_p): Rename
6441 legacy_convert_register_p
6442 (legacy_register_to_value, legacy_value_to_register): Delete
6443 functions.
6444 * arch-utils.h (generic_convert_register_p): Rename
6445 legacy_convert_register_p.
6446 (legacy_register_to_value, legacy_value_to_register): Delete
6447 declarations.
6448
6449 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6450 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6451 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6452 * gdbarch.h, gdbarch.c: Re-generate.
6453 * infcmd.c (default_print_registers_info): Simplify.
6454 * findvar.c (value_of_register): Simplify.
6455 * mi/mi-main.c (get_register): Simplify.
6456 * arch-utils.c (legacy_convert_register_p): Always return 0.
6457 (legacy_register_to_value, legacy_value_to_register): Always call
6458 internal_error.
6459
6460 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6461 #ifdef CLEAR_INSN_CACHE code.
6462 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6463 Delete #ifdef CLEAR_DEFERRED_STORES code.
6464
6465 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6466
6467 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6468 copyright.
6469 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6470
6471 * config/mips/mipsv4.mh: Delete file.
6472
6473 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6474 unreferenced macro.
6475 (hpread_adjust_stack_address): Delete declaration.
6476
6477 2004-06-08 Andrew Cagney <cagney@gnu.org>
6478
6479 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6480 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6481 PTRACE_ATTACH / PTRACE_DETACH available call error.
6482 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6483 * infttrace.c (update_thread_state_after_attach, attach, detach):
6484 Remove #ifdef wrappers.
6485 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6486 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6487 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6488 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6489 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6490 * config/nm-linux.h (ATTACH_DETACH): Delete.
6491 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6492 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6493 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6494 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6495 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6496
6497 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6498
6499 * configure.in: Set $configdir to the right OS specific value.
6500 Use value when setting $tcldir and $tkdir.
6501 * configure: Regenerate.
6502
6503 2004-06-06 Paul Brook <paul@codesourcery.com>
6504
6505 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6506 records.
6507
6508 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6509
6510 * ada-lang.c (lookup_symbol_in_language): New function to allow
6511 re-use of another language's symbol lookup code. (Placed here
6512 temporarily while Ada support is being integrated into the public
6513 tree).
6514 (restore_language): New auxiliary function for
6515 lookup_symbol_in_language.
6516 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6517 temporarily while Ada support is being integrated into the public
6518 tree).
6519
6520 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6521
6522 * Makefile.in (check//%): New.
6523
6524 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6525 (mn10300_store_return_value): Rewrite.
6526 (mn10300_type_align): New.
6527 (mn10300_use_struct_convention): Rewrite.
6528 (mn10300_return_value): New, using all of the above.
6529 (mn10300_pop_frame_regular): Add saved_regs_size.
6530 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6531
6532 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6533 regs if PC is on movm.
6534
6535 2004-06-07 Jim Blandy <jimb@redhat.com>
6536
6537 Add native Linux support for the PowerPC E500.
6538 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6539 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6540 all architectures except the E500.
6541 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6542 #definitions.
6543 (struct gdb_evrregset_t): New type.
6544 (have_ptrace_getsetevrregs): New variable.
6545 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6546 fetch_spe_registers): New functions.
6547 (fetch_register): Call fetch_spe_register as appropriate.
6548 Assert that we're only passed raw register numbers.
6549 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6550 Don't fetch gprs if they're pseudoregisters.
6551 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6552 store_spe_registers): New functions.
6553 (store_register): Call store_spe_register as appropriate.
6554 Assert that we're only passed raw register numbers.
6555 (store_ppc_registers): Call store_spe_registers as appropriate.
6556 Don't store gprs if they're pseudoregisters.
6557
6558 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6559
6560 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6561 struct if one exists, even if we are dealing with a zombie thread.
6562
6563 2004-06-07 Andrew Cagney <cagney@gnu.org>
6564
6565 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6566 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6567 Rename PC_REQUIRES_RUN_BEFORE_USE.
6568 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6569 #ifdef.
6570
6571 2004-06-07 Randolph Chung <tausq@debian.org>
6572
6573 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6574 unwinding after sp has been saved to the stack but before the end
6575 of the prologue, and after the fp has been modified but before it has
6576 been saved to the stack.
6577 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6578 Remove superfluous definitions.
6579 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6580
6581 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6582
6583 Committed by Randolph Chung.
6584 * hppa-linux-nat.c: Include the correct version of the header file
6585 depending on the kernel version.
6586
6587 2004-06-06 Randolph Chung <tausq@debian.org>
6588
6589 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6590 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6591
6592 2004-06-06 Randolph Chung <tausq@debian.org>
6593
6594 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6595 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6596 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6597 * hppa-tdep.c (hppa_symbol_address): New function definition.
6598 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6599
6600 2004-06-06 Randolph Chung <tausq@debian.org>
6601
6602 * hppa-tdep.h (struct value): Forward declaration.
6603 (gdbarch_tdep): Define tdep find_global_pointer method.
6604 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6605 associated with the function we are trying to call, and write it
6606 to the gp register.
6607 (hppa32_convert_from_funct_ptr_addr): New function.
6608 (hppa_find_global_pointer): New function.
6609 (hppa_gdbarch_init): Set default find_global_pointer method; set
6610 convert_from_func_ptr_addr method.
6611 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6612 (hppa_linux_init_abi): Set find_global_pointer method.
6613 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6614
6615 2004-06-06 Randolph Chung <tausq@debian.org>
6616
6617 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6618 to struct value *function.
6619 * gdbarch.c: Regenerate.
6620 * gdbarch.h: Likewise.
6621 * infcall.c (call_function_by_hand): Pass entire function value
6622 to push_dummy_call.
6623
6624 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6625 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6626 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6627 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6628 * arm-tdep.c (arm_push_dummy_call): Likewise.
6629 * avr-tdep.c (avr_push_dummy_call): Likewise.
6630 * cris-tdep.c (cris_push_dummy_call): Likewise.
6631 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6632 * frv-tdep.c (frv_push_dummy_call): Likewise.
6633 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6634 * hppa-tdep.c (hppa32_push_dummy_call)
6635 (hppa64_push_dummy_call): Likewise.
6636 * i386-tdep.c (i386_push_dummy_call): Likewise.
6637 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6638 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6639 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6640 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6641 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6642 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6643 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6644 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6645 (ppc64_sysv_abi_push_dummy_call): Likewise.
6646 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6647 (ppc64_sysv_abi_push_dummy_call): Likewise.
6648 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6649 * s390-tdep.c (s390_push_dummy_call): Likewise.
6650 * sh-tdep.c (sh_push_dummy_call_fpu)
6651 (sh_push_dummy_call_nofpu): Likewise.
6652 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6653 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6654 * vax-tdep.c (vax_push_dummy_call): Likewise.
6655
6656 2004-06-04 Jim Blandy <jimb@redhat.com>
6657
6658 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6659 gdbarch argument to register_size.
6660
6661 * rs6000-tdep.c (rs6000_store_return_value): Use
6662 regcache_cooked_write_part instead of
6663 deprecated_write_register_bytes.
6664 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6665 not gdbarch_deprecated_store_return_value.
6666
6667 * ppc-linux-nat.c (store_register, fetch_register): Remove
6668 incorrect assertions. Simplify and generalize handling of
6669 transfers whose sizes are not multiples of, or less than, sizeof
6670 (PTRACE_XFER_TYPE).
6671
6672 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6673
6674 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6675 as a new thread event.
6676 * thread-db.c (thread_get_info_callback): If the thread is a
6677 zombie, return TD_THR_ZOMBIE.
6678 (thread_from_lwp): If thread_get_info_callback returns
6679 TD_THR_ZOMBIE, check if the thread is still on the thread list
6680 and return a -1 ptid if not found.
6681 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6682 change the status to TARGET_WAITKIND_SPURIOUS.
6683
6684 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6685
6686 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6687 double values in little endian mode.
6688
6689 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6690
6691 Committed by Andrew Cagney.
6692 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6693 after last enum constant to avoid error from IBM C
6694 compiler.
6695
6696 2004-06-02 Jim Blandy <jimb@redhat.com>
6697
6698 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6699 to 'message', and make it local to the lone block that uses it.
6700
6701 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6702
6703 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6704
6705 * ada-exp.y: Update copyright notice.
6706 Include block.h.
6707
6708 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6709 SPECIAL_VARIABLE and unify the treatment of these cases.
6710
6711 (write_attribute_call0): Remove.
6712 (write_attribute_call1): Remove.
6713 (write_attribute_calln): Remove.
6714 (save_qualifier): Add missing semicolon.
6715
6716 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6717 temporarily disabled to allow compilation with FSF head version.
6718
6719 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6720 use individual operators (OP_*) for all attributes.
6721 (exp syntax): Use write_int.
6722 Handle STRING literals with OP_STRING.
6723 (variable syntax): Add limit parameter to calls to
6724 write_object_renaming.
6725
6726 (temp_parse_space): New definition to hold entities that need
6727 only live until the next call to ada_parse.
6728 (string_to_operator): Rename fields of ada_opname_table entries.
6729
6730 (write_var_from_sym): Record block.
6731 (write_var_from_name): Minor reformatting.
6732 Make sure saved name is properly encoded in the case of multiple
6733 matches, and set its language to Ada.
6734 Update comment.
6735 Modify to indicate unresolved name as symbol in the UNRESOLVED
6736 namespace, allocated in temp_parse_space.
6737 (write_int): New function.
6738
6739 (write_object_renaming): Add max_depth parameter to limit
6740 chains of object renamings.
6741 Handle case where root of renaming expression is itself a renaming.
6742 Use temp_parse_space for temporary name buffer.
6743 Handle renamings to dereferenced pointers (___XEXA suffices).
6744
6745 (ada_parse, yyerror, string_to_operator,
6746 write_var_from_sym, write_var_from_name, write_attribute_call0,
6747 write_attribute_call1, write_attribute_calln,
6748 write_object_renaming): Protoize.
6749
6750 (_initialize_ada_exp): New function.
6751
6752 * ada-lang.c: Update copyright notice.
6753 General terminology change to conform to GNAT compiler usage:
6754 mangle => encode, demangle => decode
6755 Include gdb_obstack.h.
6756 Include gdb_regex.h
6757 Include frame.h
6758 Include hashtab.h
6759 Include completer.h
6760 Include gdb_stat.h
6761 Include block.h
6762 Include infcall.h
6763
6764 (ADA_RETAIN_DOTS): Make sure this is defined.
6765 (TRUNCATION_TOWARDS_ZERO): Define.
6766 (struct string_vector): Define.
6767 (unresolved_names): Remove definition.
6768 (xnew_string_vector): New function.
6769 (string_vector_append): New function.
6770 (extract_string): Make static.
6771 (ada_unqualified_name): New function.
6772 (add_angle_brackets): New function.
6773 (function_name_from_pc): New function.
6774 (place_on_stack): Rename to ensure_lval.
6775
6776 (ensure_lval): Renamed from place_on_stack.
6777 Make identity on lvals.
6778 Update comment.
6779 (is_nonfunction): New interface.
6780 Only symbols in LOC_CONST class can be enumerals.
6781 (fill_in_ada_prototype): Remove; now independent of language.
6782 (add_defn_to_vec): Add obstack and symtab arguments.
6783 Use obstack to hold collected definitions.
6784 (num_defns_collected): New function.
6785 (defns_collected): New function.
6786 (ada_resolve_subexp): Rename to resolve_subexp.
6787 (resolve_subexp): Renamed from ada_resolve_subexp.
6788 (ada_op_name): Return non-const result.
6789 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6790 other purposes.
6791
6792 (to_fixed_array_type): Add declaration.
6793 (coerce_unspec_val_to_type): Remove offset parameter.
6794 (find_sal_from_funcs_and_line): New interface.
6795 (find_line_in_linetable): Ditto.
6796
6797 (all_sals_for_line): Rename to ada_sals_for_line and make
6798 global.
6799 Add new parameter. When set, do not ask the user to choose the
6800 instance, but use the first one found instead.
6801 Use given line number in returned sals.
6802 Fix comment.
6803 Skip the prologue if funfirstline is set.
6804 Correct for memory leak when 0 lines found.
6805
6806 (value_pos_atr): Use pos_atr.
6807 (pos_atr): New function.
6808 (standard_lookup): Add block parameter.
6809
6810 (makeTimeStart): Remove declaration and uses.
6811 (makeTimeStop): Remove declaration and uses.
6812
6813 (ada_completer_word_break_characters): Allow for VMS.
6814 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6815 (raise_sym_name): New constant.
6816 (raise_unhandled_sym_name): New constant.
6817 (raise_assert_sym_name): New constant.
6818 (process_raise_exception_name): New constant.
6819 (longest_exception_template): New constant.
6820 (warning_limit): New variable to limit warnings during expression
6821 evaluation.
6822 (warnings_issued): New variable to keep track of warnings issued.
6823 (known_runtime_file_name_patterns): New constant.
6824 (known_auxiliary_function_name_patterns): New constant.
6825 (symbol_list_obstack): New variable.
6826
6827 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6828 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6829 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6830 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6831 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6832 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6833 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6834 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6835 and strcmp.
6836
6837 (ada_get_field_index): New function.
6838 (lim_warning): New function.
6839 (ada_translate_error_message): New function.
6840 (MAX_OF_SIZE): New function.
6841 (MIN_OF_SIZE): New function.
6842 (UMAX_OF_SIZE): New function.
6843 (UMIN_OF_SIZE): New function.
6844 (discrete_type_high_bound): New function.
6845 (discrete_type_low_bound): New function.
6846 (base_type): New function.
6847 (do_command): Remove.
6848
6849 (ada_update_initial_language): Use language_ada, not language_unknown.
6850 (ada_encode): Renamed from ada_mangle.
6851 Obey ADA_RETAIN_DOTS.
6852 (ada_decode): Renamed from ada_demangle.
6853 Update coding conventions.
6854 (decoded_names_store): New hash table.
6855 (ada_decode_symbol): New function.
6856 (ada_la_decode): New function.
6857
6858 (modify_general_field): Correct computations of offset and bit
6859 position.
6860 (desc_base_type): Handle ref types, too.
6861 (ada_is_direct_array_type): New function.
6862
6863 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6864 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6865 (ada_is_bogus_array_descriptor,ada_type_of_array,
6866 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6867 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6868 ada_is_array_descriptor_type.
6869
6870 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6871 (ada_is_packed_array_type): Handle pointers or
6872 references to packed arrays as well.
6873 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6874 (decode_packed_array_type): Search for the packed array type
6875 symbol in the currently selected block and associated
6876 superblocks too.
6877 Use lookup_symbol again.
6878
6879 (decode_packed_array): Handle pointers and references.
6880 Update call to coerce_unspec_val_to_type.
6881 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6882 (ada_value_primitive_packed_val): Improve comment.
6883
6884 (ada_index_type): Substitute int type for "undefined".
6885 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6886 ada_array_langth, ada_is_string_type): Use renamed
6887 ada_is_simple_array_type.
6888 (empty_array): New function.
6889
6890 (ada_resolve): Rename to resolve.
6891 (resolve): Make static.
6892 Call renamed resolve_subexp.
6893 Update comment.
6894 (ada_resolve_subexp): Rename to resolve_subexp.
6895 (resolve_subexp): Update comment.
6896 Decomment disabled code.
6897 Add LOC_COMPUTED* cases.
6898 Modify to use temporary struct symbols (marked as being in
6899 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6900 OP_UNRESOLVED_VALUE.
6901 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6902 Add OP_STRING case.
6903 Remove OP_ARRAY.
6904 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6905 Use new ada_lookup_symbol_list interface.
6906 Use new ada_resolve_function interface.
6907 Remove OP_TYPE case.
6908
6909 (ada_args_match): Idiot proof against null actuals.
6910 Use intermediate variables to clarify.
6911 (ada_resolve_function): Update comment and interface.
6912 (mangled_ordered_before): Rename to encoded_ordered_before and
6913 update comment.
6914 (sort_choices): Update comment and interface.
6915 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6916 (user_select_syms): New interface.
6917 Use new sort_choices interface.
6918 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6919 (possible_user_operator_p): Idiot-proof against null values.
6920 (ada_simple_renamed_entity): Don't make cleanup; rely on
6921 caller to free result string.
6922 Remove const from return type.
6923 (make_array_descriptor): Rename uses of place_on_stack to
6924 ensure_lval.
6925 Make sure that arrays are on stack.
6926
6927 (HASH_SIZE): Define.
6928 (struct cache_entry): Define.
6929 (cache_space): Define.
6930 (cache): Define.
6931 (clear_ada_sym_cache): New function.
6932 (find_entry): New function.
6933 (lookup_cached_symbol): New function.
6934 (defn_vector_size): Define.
6935 (cache_symbol): New function.
6936 (defn_symbols): Remove.
6937
6938 (standard_lookup): Use lookup_symbol_in_language to get effect of
6939 C lookup.
6940 Cache results.
6941
6942 (symbol_completion_match): New function.
6943 (symbol_completion_add): New function.
6944 (ada_make_symbol_completion_list): New function.
6945
6946 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6947 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6948 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6949 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6950
6951 (ada_lookup_simple_minsym): New function.
6952 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6953
6954 (add_symbols_from_enclosing_procs): New interface.
6955 Conditionalize more helpfully.
6956 Don't bother if program isn't running.
6957 Use new interface to get_frame_block.
6958 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6959
6960 (remove_extra_symbols): New interface.
6961 (xget_renaming_scope): New function.
6962 (is_package_name): New function.
6963 (renaming_is_visible): New function.
6964 (remove_out_of_scope_renamings): New function.
6965
6966 (ada_lookup_symbol_list): New interface.
6967 Properly reinitialize the symbol list obstack.
6968 Don't call add_symbols_from_enclosing_procs if we start from a
6969 static or global block.
6970 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6971 add_symbols_from_enclosing_procs.
6972 Add symtab data to cached entries.
6973 Handle symbols prefixed with
6974 "standard__" specially; strip prefix and don't look in local symbols.
6975 Do not include out of scope renaming symbols in list of
6976 symbols returned.
6977 Add const to block parameter.
6978 Move check for non-local, non-global symbols earlier.
6979 Remove timing stuff.
6980 (ada_lookup_symbol): New interface.
6981 Find symtab as well.
6982 (ada_lookup_symbol_nonlocal): New function.
6983
6984 (is_name_suffix): Enhance suffix detection to recognize
6985 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6986 (is_dot_digits_suffix): New function.
6987 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6988
6989 (ada_add_block_symbols): New interface. Use obstack to return results
6990 in a vector of struct ada_symbol_infos. Add symtab argument.
6991 Use new interface to add_defn_to_vec.
6992 Remove calls to fill_in_ada_prototype.
6993 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6994
6995 (ada_finish_decode_line_1): Add const qualification to local to fix
6996 warning.
6997 Start looking in static block for functions to avoid attempts
6998 to search frame chain for up-level variables.
6999 Adapt to new ada_sals_for_line interface.
7000 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7001 Handle quoting of the function name inside the spec string.
7002 Skip prologue when funfirstline is set and update the
7003 function documentation to that effect.
7004
7005 (debug_print_lines, debug_print_block, debug_print_blocks,
7006 debug_print_symtab): Remove.
7007
7008 (ada_main_name): New function.
7009 (ada_exception_breakpoint_type): New function.
7010 (is_known_support_routine): New function.
7011 (ada_find_printable_frame): Renamed from find_printable_frame and made
7012 global.
7013 Remove level parameter.
7014 Use new interface to select_frame.
7015
7016 (begin_command): Remove.
7017 (ada_adjust_exception_stop): New function.
7018 (ada_print_exception_stop): New function.
7019 (exception_name_from_cond): New function.
7020 (ada_report_exception_break): Replace disabled code with
7021 conditionalization on GNAT_GDB.
7022 Get the exception name from the condition string.
7023 Remove and move functionality into new functions
7024 ada_print_exception_breakpoint_task and
7025 ada_print_exception_breakpoint_nontask.
7026 (error_breakpoint_runtime_sym_not_found): New function.
7027 (is_runtime_sym_defined): New function.
7028 (ada_breakpoint_rewrite): Uncomment suppressed code.
7029 Use symbolic error-message and runtime-symbol names.
7030 Surround runtime symbol names in quotes.
7031 Allow non-specific breakpoints on exceptions and assertions before
7032 program starts.
7033
7034 (ada_is_tagged_type): Add parameter.
7035 (ada_is_tag_type): New function.
7036 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7037 (ada_variant_discrim_type): Ditto.
7038 (value_tag_from_contents_and_address): New function.
7039 (type_from_tag): New function.
7040 (struct tag_args): New structure used to communicate with
7041 ada_tag_name_1.
7042 (ada_tag_name_1): New function.
7043 (ada_tag_name): New function.
7044
7045 (ada_scan_number): Update comment.
7046 (find_struct_field): New function.
7047 (ada_search_struct_field): Make static.
7048 (ada_value_struct_elt): New version that returns references when
7049 given pointers or references to structs.
7050 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7051 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7052 interface.
7053 (ada_value_ind): Use new ada_to_fixed_value interface.
7054 (ada_coerce_ref): Ditto.
7055 (field_offset): Remove.
7056
7057 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7058 (ada_find_renaming_symbol): New function.
7059 (ada_prefer_type): Prefer named types over unnamed ones.
7060 (variant_field_index): New function.
7061 (contains_variant_part): Removed: subsumed by variant_field_index.
7062 (ada_template_to_fixed_record_type): New function, mostly from
7063 template_to_fixed_record_type.
7064 (template_to_fixed_record_type):
7065 Do not scan the type fields beyond the last one; prevents a
7066 potential SEGV.
7067 Handle case where variant field is listed BEFORE discriminant it
7068 depends on.
7069 Fix calculation of record length when bit length is
7070 not evenly divisible by char length.
7071 Move code to ada_template_to_fixed_record_type and call it.
7072
7073 (template_to_static_fixed_type): Revise comment.
7074 Modify to work on ordinary record types as well as templates,
7075 so as to handle fields that use ___XVE or ___XVU encodings.
7076 (to_record_with_fixed_variant_part): Fill out comment.
7077 Initialize C++ stuff in right type.
7078 Allow case where DVAL is null.
7079 Handle case where variant field is not last.
7080 Fix typo concerning record length.
7081 (to_fixed_record_type): Decomment disabled code.
7082 (to_fixed_record_type): Use variant_field_index instead of
7083 contains_variant_part.
7084 (to_fixed_variant_branch_type): Ditto.
7085 (to_fixed_array_type): Decomment disabled code.
7086 (ada_to_fixed_type): Convert tagged types to the specific type.
7087 Deactivate the size-check for array types in order to avoid
7088 some false size alarms.
7089 (to_static_fixed_type): Decomment disabled code.
7090 Modify to call template_to_static_fixed_type
7091 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7092 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7093 Remove valaddr argument, as it is never really used.
7094 (ada_to_fixed_value): Change interface to act on single struct value*
7095 operand.
7096 (adjust_pc_past_prologue): New function.
7097 (ada_attribute_name): Modify to take enum exp_opcode argument.
7098
7099 (ada_enum_name): Recognize new homonym-distinguishing convention.
7100 Adjust local variable's type to remove compiler warning.
7101 Fix a small problem in the part that unqualifies the enumeration name.
7102 (ada_value_binop): New function.
7103 (ada_value_equal): New function.
7104
7105 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7106 Don't give error message when not doing normal evaluation
7107 and a tagged type doesn't seem to contain a structure member.
7108 Give error message for packed arrays.
7109 For indexing arrays, handle pointers to packed arrays correctly.
7110 Handle case of 'first and 'last attributes of bare integral type
7111 without encoded subtype info.
7112 Remove some unnecessary casts.
7113 Fix uninitialized value of type in computing 'first, 'last, or 'length
7114 of array object.
7115 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7116 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7117 calls.
7118 Attributes are now exp_opcode values.
7119 Correct treatment of 'modulus.
7120 Better error message for taking 'length of wrong kind of type;
7121 improve comment.
7122 Change EVAL_NORMAL to noside for consistency.
7123 Use ada_value_binop for DIV, MOD, REM.
7124 Make special case out of array of length 0, since an argument
7125 of 0 upsets some platforms' malloc.
7126 Use OP_STRING instead of OP_ARRAY.
7127 For slice, add check that we have an array type before extracting
7128 a slice out of it. Avoids a SEGV.
7129 When evaluating an array slice, if the array type is a reference to
7130 an aligner type, then replace the aligner type by the actual type.
7131 Decomment disabled code.
7132 Remove some dead code.
7133 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7134 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7135 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7136 and UNOP_MBR to UNOP_IN_RANGE.
7137 If an array type has a parallel ___XVE type, then use it.
7138 Turn arrays into pointers for lvalue arrays.
7139 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7140 bounds error and handle 0-length slices.
7141 Use lim_warning.
7142 When selecting fields, apply ada_to_fixed_value (because the fields
7143 might have ___XVU or ___XVE encodings even if not dynamic.)
7144 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7145 (ada_is_system_address_type): New function.
7146
7147 (get_var_value): Use new interface to ada_lookup_symbol_list.
7148 (get_int_var_value): New interface.
7149 (to_fixed_range_type): Allow unknown bound, with warning.
7150 (ada_is_modular_type): Decomment disabled code.
7151 (ADA_OPERATORS): New definition.
7152 (ada_operator_length): New function.
7153 (ada_expr_op_name): New function.
7154 (ada_forward_operator_length): New function.
7155 (ada_dump_subexp_body): New function.
7156 (ada_print_subexp): New function.
7157 (ada_exp_descriptor): New constant.
7158 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7159 (ada_language_defn): Add ada_exp_descriptor entry.
7160 Change ada_parse => parse.
7161 Add post-parser entry.
7162 Use ada-specific non-local symbol lookup.
7163 Don't use C-style arrays.
7164 String lower-bound is 1.
7165 Decomment disabled code.
7166 (parse): New function.
7167 New fields ada_translate_error_message, ada_lookup_symbol,
7168 ada_lookup_minimal_symbol.
7169
7170 * ada-lang.h: Update copyright dates.
7171 Replace the mangle/demangle terminology throughout by the
7172 more appropriate encode/decode one.
7173 Include breakpoint.h.
7174 Forward declare struct partial_symbol, struct block.
7175 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7176 (EXTRACT_ADDRESS): Remove.
7177 (EXTRACT_INT): Remove.
7178 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7179 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7180 (MAX_RENAMING_CHAIN_LENGTH): Define.
7181 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7182
7183 (enum task_states): Remove.
7184 ada_task_states: Remove.
7185 (fat_string): Remove.
7186 (struct entry_call): Remove.
7187 (struct task_fields): Remove.
7188 (struct task_entry): Remove.
7189
7190 (struct ada_symbol_info): Define.
7191 (enum ada_attribute): Remove.
7192 (enum ada_operator): Define.
7193
7194 (ada_get_field_index): Declare.
7195 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7196 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7197 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7198 (ada_lookup_symbol_list): New interface.
7199 (ada_decode_symbol): Declare.
7200 (ada_decode): Declare.
7201 (ada_lookup_symbol): New interface.
7202 (ada_update_initial_language): Declare.
7203 (ada_lookup_simple_minsym): Declare.
7204 (user_select_syms): New interface.
7205 (ada_sals_for_line): Declare.
7206 (ada_is_tagged_type): New interface.
7207 (ada_tag_name): Declare.
7208 (ada_lookup_struct_elt_type): Remove declaration.
7209 (ada_search_struct_field): Remove declaration.
7210 (ada_attribute_name): New interface.
7211 (ada_is_system_address_type): Declare.
7212 (ada_to_fixed_value): Remove declaration.
7213 (ada_template_to_fixed_record_type_1): Declare.
7214 (get_int_var_value): New interface.
7215 (ada_find_any_symbol): Declare.
7216 (ada_find_renaming_symbol): Declare.
7217 (ada_mangle): Rename to ada_encode.
7218 (ada_simple_renamed_entity): Remove const.
7219 (ada_main_name): Declare.
7220 (get_current_task): Rename to ada_get_current_task.
7221 (get_entry_number): Remove declaration.
7222 (ada_report_exception_break): Remove declaration.
7223 (ada_print_exception_breakpoint_nontask): Declare.
7224 (ada_print_exception_breakpoint_task): Declare.
7225 (ada_find_printable_frame): Declare.
7226
7227 * ada-lex.l: Update copyright notices.
7228 Use xmalloc and xfree instead of malloc and free.
7229 Use new interface to name_lookup.
7230 Use new interface to
7231 ada_mangle=>ada_encode.
7232 Redo handling of '$...' variable to parallel current treatment
7233 in c-exp.y.
7234 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7235 digit_to_int, strtoulst, processInt, processReal, processId,
7236 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7237 yywrap): Protoize.
7238
7239 (processInt): Use cast to remove harmless warning.
7240 (processReal): Modify to get rid of compiler warning on scan formats.
7241
7242 (processId): Replace xmalloc with obstack_alloc for name and remove
7243 call to ada_name_string_cleanup.
7244 Remove obsolete disabled code.
7245 (name_lookup): Ditto.
7246 New interface.
7247 Use obsavestring on temp_parse_space instead of savestring
7248 on name, and remove call to ada_name_string_cleanup.
7249 Free string returned from ada_simple_renamed_entity.
7250 Use new interface to ada_lookup_symbol_list.
7251 Decomment disabled code.
7252 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7253 not types.
7254 When a type name lookup succeeds as a result of
7255 lookup_primitive_typename, check for regular type entry that has not
7256 yet been read in.
7257 Limit length of chain of renamed symbols we are willing to follow.
7258 Do not break names beginning with "standard__" into segments.
7259 (block_lookup): Use new interface to ada_lookup_symbol_list.
7260
7261 * ada-typeprint.c: Update copyright notice.
7262 (demangled_type_name): Rename to decoded_type_name.
7263 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7264 (print_range_bound): Correct handling of negative
7265 bounds that make the index type looked unsigned under STABS.
7266 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7267 (print_range_type_named): Use the builtin int type if no type
7268 corresponding to the given type name could be found.
7269 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7270 Add some bullet-proofing.
7271 (print_variant_clauses): Allow for variant branches with ___XVU
7272 encodings that are not dynamic fields.
7273 Use new interface to ada_is_tagged_type.
7274 (print_record_type): Allow for fields with ___XVE encodings that
7275 are not dynamic fields.
7276 Use new interface to ada_is_tagged_type.
7277 (ada_print_type): ada_is_array_descriptor =>
7278 ada_is_array_descriptor_type.
7279
7280 * ada-valprint.c: Update copyright notice.
7281 Include gdb_string.h
7282 Include infcall.h
7283 (ui_memcpy): New function.
7284 (ada_print_floating): New function.
7285 (ada_print_str): Order arguments correctly.
7286 Correct handling of empty arrays and arrays of 0-length items.
7287 ada_is_array_descriptor => ada_is_array_descriptor_type
7288 Print values of type System.Address in hexadecimal format.
7289 Use ada_print_floating to print floating-point numbers in Ada format.
7290 Print class tag values with type names.
7291 No longer print the address of reference values. Avoids
7292 a potential confusion.
7293 (ada_value_print): Stop printing the object type for reference
7294 values, but preserve that behavior for access types. Avoids
7295 a potential confusion.
7296 Simplify one conditional expression, as the first part is now
7297 necessarily true.
7298 ada_is_array_descriptor => ada_is_array_descriptor_type
7299 Add check for arrays for null records, and print them by hand.
7300
7301 2004-06-01 Jim Blandy <jimb@redhat.com>
7302
7303 * ppc-tdep.h: Delete unused 'regoff' member.
7304 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7305
7306 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7307
7308 Fix PR symtab/1661.
7309 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7310 (hpread_read_struct_type): Likewise.
7311
7312 2004-06-01 Andrew Cagney <cagney@gnu.org>
7313
7314 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7315 instead of xasprintf.
7316 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7317 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7318 (mi_cmd_data_list_register_names)
7319 (mi_cmd_data_list_changed_registers)
7320 (mi_cmd_data_list_register_values)
7321 (get_register, mi_cmd_data_write_register_values)
7322 (mi_cmd_data_write_register_values)
7323 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7324 (mi_cmd_target_download, mi_cmd_target_select)
7325 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7326 (mi_execute_cli_command, mi_execute_async_cli_command)
7327 (mi_execute_async_cli_command): Ditto.
7328 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7329 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7330
7331 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7332 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7333 error_last_message instead of mi_error_last_message.
7334 * mi/mi-main.c (mi_error_last_message): Delete function.
7335
7336 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7337 "invalid number of columns" error. Delete redundant "out of
7338 memory" check.
7339
7340 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7341
7342 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7343 (gregset_t, fpregset_t): Remove typedefs.
7344 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7345 (REG_OFFSET): Rename argument.
7346 (i386bsd_r_reg_offset): Rename from reg_offset.
7347 (REG_ADDR): Remove macro.
7348 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7349 functions.
7350 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7351 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7352 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7353 instead of supply_gregset.
7354 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7355 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7356 instead of fill_gregset.
7357 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7358
7359 * i386bsd-nat.c: Don't include "gregset.h".
7360 (supply_gregset, fill_gregset): Make static.
7361 (supply_fpregset, fill_fpregset): Remove.
7362 * Makefile.in (i386bsd-nat.o): Update dependencies.
7363
7364 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7365
7366 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7367 "gdb_assert.h". Con't include "gregset.h".
7368 (fbsd_make_corefile_notes): Use regset-based core file support
7369 instead off fill_gregset and fill_fpregset.
7370 * Makefile.in (fbsd-proc.o): Update dependencies.
7371
7372 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7373 instructions.
7374 (m88k_frame_prev_register): Simplify code a bit.
7375
7376 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7377 (amd64_collect_fpregset): New function.
7378 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7379
7380 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7381
7382 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7383 (i386_collect_gregset): New function.
7384 (i386_supply_fpregset): Adjust comment.
7385 (i386_collect_fpregset): New function.
7386 (i386_regset_from_core_section): Use i386_collect_gregset and
7387 i386_collect_fpregset.
7388
7389 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7390 handle VALUEP being null.
7391
7392 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7393
7394 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7395
7396 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7397
7398 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7399 assembler in OpenBSD 3.5-current.
7400 (amd64obsd_sigcontext_addr): Likewise.
7401
7402 2004-05-28 Jim Blandy <jimb@redhat.com>
7403
7404 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7405 register set, so our regcache isn't declared "legacy" and our E500
7406 pseudoregister read and write functions aren't ignored.
7407 (rs6000_register_byte, rs6000_register_raw_size,
7408 rs6000_register_virtual_type, rs6000_register_convertible,
7409 rs6000_register_convert_to_virtual,
7410 rs6000_register_convert_to_raw): Deleted.
7411 (rs6000_register_type, rs6000_convert_register_p,
7412 rs6000_register_to_value, rs6000_value_to_register): New
7413 functions.
7414 (rs6000_gdbarch_init): Don't register
7415 gdbarch_deprecated_register_size,
7416 gdbarch_deprecated_register_bytes,
7417 gdbarch_deprecated_register_byte,
7418 gdbarch_deprecated_register_raw_size,
7419 gdbarch_deprecated_register_virtual_type,
7420 gdbarch_deprecated_register_convertible,
7421 gdbarch_deprecated_register_convert_to_virtual, or
7422 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7423 register gdbarch_register_type, gdbarch_convert_register_p,
7424 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7425
7426 2004-05-26 Jim Blandy <jimb@redhat.com>
7427
7428 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7429 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7430 functions, updated to match the register numberings used in GCC.
7431 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7432 rs6000_dwarf2_reg_to_regnum as register number conversions
7433 functions for STABS and Dwarf2.
7434
7435 2004-05-26 Randolph Chung <tausq@debian.org>
7436
7437 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7438 in header file.
7439
7440 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7441
7442 * NEWS: Document new "start" command.
7443
7444 2004-05-25 Randolph Chung <tausq@debian.org>
7445
7446 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7447 hppa-linux.
7448
7449 2004-05-25 Randolph Chung <tausq@debian.org>
7450
7451 * hppa-hpux-tdep.c (offsetof): Define.
7452 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7453 (hppa32_hpux_frame_base_before_sigtramp)
7454 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7455 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7456 (hppa64_hpux_frame_base_before_sigtramp)
7457 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7458 functions.
7459 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7460 (hppa_hpux_sigtramp_frame_unwind_cache)
7461 (hppa_hpux_sigtramp_frame_this_id)
7462 (hppa_hpux_sigtramp_frame_prev_register)
7463 (hppa_hpux_sigtramp_frame_unwind)
7464 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7465 (hppa_hpux_init_abi): Register sigtramp unwinder.
7466 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7467
7468 2004-05-25 Randolph Chung <tausq@debian.org>
7469
7470 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7471 and multiple stack unwinds.
7472 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7473
7474 2004-05-25 Andrew Cagney <cagney@gnu.org>
7475
7476 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7477 * symfile-mem.h: Delete file.
7478 * symfile-mem.c: Do not include "symfile-mem.h".
7479 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7480 "struct bfd_section". When an error do not bother returning NULL.
7481 (add_symbol_file_from_memory_command): Use "struct bfd" and
7482 "struct bfd_section".
7483 * Makefile.in (symfile_mem_h): Delete.
7484 (symfile-mem.o): Update dependencies.
7485
7486 2004-05-25 Nick Roberts <nickrob@gnu.org>
7487
7488 * gdb-mi.el: New file.
7489
7490 2004-05-25 Andrew Cagney <cagney@gnu.org>
7491
7492 * inftarg.c: Include "observer.h".
7493 (child_attach, child_create_inferior): Notify inferior_created.
7494 * corelow.c: Include "observer.h".
7495 (core_open): Notify inferior_created.
7496 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7497
7498 2004-05-25 Andrew Cagney <cagney@gnu.org>
7499
7500 * target.h (struct target_ops): Add from_tty to
7501 to_create_inferior.
7502 (target_create_inferior, find_default_create_inferior): Update.
7503 * infcmd.c (run_command): Update.
7504 * wince.c (child_create_inferior): Update.
7505 * win32-nat.c (child_create_inferior): Update.
7506 * uw-thread.c (uw_thread_create_inferior): Update.
7507 * thread-db.c (thread_db_create_inferior): Update.
7508 * target.c (debug_to_create_inferior)
7509 (find_default_create_inferior): Update.
7510 (maybe_kill_then_create_inferior): Update.
7511 * sol-thread.c (sol_thread_create_inferior): Update.
7512 * remote.c (extended_remote_async_create_inferior)
7513 (extended_remote_create_inferior): Update.
7514 * remote-vx.c (vx_create_inferior): Update.
7515 * remote-st.c (st2000_create_inferior): Update.
7516 * remote-sim.c (gdbsim_create_inferior): Update.
7517 * remote-sds.c (sds_create_inferior): Update.
7518 * remote-rdp.c (remote_rdp_create_inferior): Update.
7519 * remote-rdi.c (arm_rdi_create_inferior): Update.
7520 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7521 * remote-e7000.c (e7000_create_inferior): Update.
7522 * procfs.c (procfs_create_inferior): Update.
7523 * ocd.c (ocd_create_inferior): Update.
7524 * ocd.h (ocd_create_inferior): Update.
7525 * nto-procfs.c (procfs_create_inferior): Update.
7526 * monitor.c (monitor_create_inferior): Update.
7527 * lin-lwp.c (lin_lwp_create_inferior): Update.
7528 * inftarg.c (child_create_inferior): Update.
7529 * hpux-thread.c (hpux_thread_create_inferior): Update.
7530 * gnu-nat.c (gnu_create_inferior): Update.
7531
7532 2004-05-25 Andrew Cagney <cagney@gnu.com>
7533
7534 * MAINTAINERS: Update e-mail address.
7535
7536 2004-05-24 Randolph Chung <tausq@debian.org>
7537
7538 * thread.c (info_threads_command, thread_apply_all_command)
7539 (thread_apply_command, thread_command, do_captured_thread_select):
7540 Remove HPUXHPPA-specific code.
7541
7542 2004-05-24 Randolph Chung <tausq@debian.org>
7543
7544 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7545 unused symbols.
7546 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7547 references.
7548
7549 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7550
7551 * infcmd.c (kill_if_already_running): New function, extracted
7552 from run_command().
7553 (run_command): Replace extracted code by call to
7554 kill_if_already_running().
7555 (start_command): New function.
7556 (_initialize_infcmd): Add "start" command.
7557
7558 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7559
7560 Add OpenBSD/m88k support.
7561 * NEWS (New native configurations): Mention OpenBSD/m88k.
7562 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7563 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7564 * Makefile.in (m88k_tdep_h): New variable.
7565 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7566 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7567 * configure.host: Add m88*-*-openbsd*.
7568 * configure.tgt: Add m88*-*-openbsd*.
7569
7570 2004-05-24 Jim Blandy <jimb@redhat.com>
7571
7572 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7573 to approve changes.
7574
7575 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7576
7577 * symtab.c (fixup_section): Search section table when lookup by
7578 name fails.
7579
7580 2004-05-24 Randolph Chung <tausq@debian.org>
7581
7582 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7583 be "small_struct".
7584
7585 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7586
7587 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7588 register number in regcache_raw_collect call.
7589 (m68kbsd_collect_fpregset): Likewise.
7590 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7591
7592 * regset.h (struct regset): Add back `regset' member.
7593
7594 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7595
7596 * configure.in: Check for td_pcb in `struct thread'.
7597 * configure, config.in: Regenerated.
7598
7599 * dpx2-nat.c: Remove file.
7600 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7601 (dpx2-nat.o): Remove dependencies.
7602
7603 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7604 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7605 (amd64obsd_supply_pcb): New function.
7606 (_initialize_amd64obsd_nat): Enable libkvm interface.
7607 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7608 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7609 (LOADLIBES): New variable.
7610
7611 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7612 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7613 (sparc32nbsd_supply_pcb): New function.
7614 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7615 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7616 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7617 (LOADLIBES): New variable.
7618
7619 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7620
7621 * bsd-kvm.c, bsd-kvm.h: New files.
7622 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7623 "bsd-kvm.h".
7624 (i386fbsd_supply_pcb): New function.
7625 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7626 (i386fbsd-nat.o): Update dependencies.
7627 (bsd_kvm_h): New variable.
7628 (bsd-kvm.o): New dependency.
7629 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7630 (LOADLIBES): New variable.
7631
7632 * regset.c: Tweak comment.
7633 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7634 macro.
7635 * regset.h: Update copyright year.
7636 (struct regset): Remove `descr' member, add `gdbarch' member.
7637 (regset_alloc): Adjust prototype and comment.
7638 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7639 (i386_supply_fpregset): Likewise.
7640 (i386_regset_from_core_section): Update call to regset_alloc.
7641 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7642 REGSET->arch.
7643 (i386obsd_aout_regset_from_core_section): Update call to
7644 regset_alloc.
7645 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7646 REGSET->arch.
7647 (i386nbsd_aout_regset_from_core_section): Update call to
7648 regset_alloc.
7649 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7650 REGSET->arch.
7651 (amd64_regset_from_core_section): Update call to regset_alloc.
7652 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7653 REGSET->arch.
7654 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7655 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7656 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7657 (sparc32nbsd_init_abi): Update call to regset_alloc.
7658 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7659 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7660 (sparc64obsd_init_abi): Update call to regset_alloc.
7661 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7662 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7663 (sparc64nbsd_init_abi): Update call to regset_alloc.
7664 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7665 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7666 (sparc64fbsd_init_abi): Update call to regset_alloc.
7667
7668 2004-05-22 Jim Blandy <jimb@redhat.com>
7669
7670 * ppc-tdep.h (spe_register_p): New declaration.
7671 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7672 ppc_spefscr_regnum.
7673 * rs6000-tdep.c (spe_register_p): New function.
7674 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7675 spefscr.
7676 (rs6000_gdbarch_init): Initialize the new members of the tdep
7677 structure.
7678
7679 2004-05-21 Jim Blandy <jimb@redhat.com>
7680
7681 * ppc-linux-nat.c (fetch_register): Move code back to be next
7682 to the comment that describes it. (Moved code, instead of
7683 comment, for symmetry with store_register.)
7684
7685 Allocate regset structures in the gdbarch's obstack, not using
7686 xmalloc.
7687 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7688 Add 'arch' argument. Allocate the regset on arch's obstack, not
7689 using xmalloc.
7690 * regset.h (regset_alloc): Update declaration.
7691 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7692 gdbarch argument.
7693 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7694 * i386-tdep.c (i386_regset_from_core_section): Same.
7695 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7696 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7697 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7698 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7699 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7700 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7701
7702 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7703
7704 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7705
7706 2004-05-21 Jim Blandy <jimb@redhat.com>
7707
7708 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7709 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7710
7711 2004-05-20 Jim Blandy <jimb@redhat.com>
7712
7713 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7714
7715 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7716
7717 * regset.h: Make prototype const-correct.
7718 * regset.c (regset_xmalloc): Make const-correct.
7719
7720 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7721
7722 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7723 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7724 (symbol_search_name): Declare.
7725
7726 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7727 (iter_name_next_hashed): Ditto.
7728 (iter_name_next_linear): Ditto.
7729 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7730
7731 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7732 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7733 (symbol_search_name): New function.
7734
7735 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7736
7737 * minsyms.c (build_minimal_symbol_hash_tables): Change
7738 test for adding to demangled hash table to check for difference
7739 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7740
7741 2004-05-19 Jim Blandy <jimb@redhat.com>
7742
7743 Use a constructor function to create regset structures.
7744 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7745 (struct regset): Use supply_regset_ftype. Add new
7746 'collect_regset' member.
7747 (regset_xmalloc): New declaration.
7748 * regset.c: New file.
7749 * am64-tdep.c (amd64_regset_from_core_section): Use
7750 regset_xmalloc to construct regset structures.
7751 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7752 * i386-tdep.c (i386_regset_from_core_section): Same.
7753 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7754 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7755 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7756 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7757 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7758 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7759 * Makefile.in (COMMON_OBS): Add regset.o.
7760 (regset.o): New rule.
7761
7762 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7763
7764 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7765 and pthread_cond_wait.c.
7766
7767 2004-05-18 Jim Blandy <jimb@redhat.com>
7768
7769 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7770 before the mach-specific switch, and then let the individual cases
7771 override the defaults, rather than leaving them uninitialized
7772 until the switch and then setting them in each case.
7773
7774 2004-05-18 Randolph Chung <tausq@debian.org>
7775
7776 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7777 millicode functions.
7778
7779 2004-05-18 Randolph Chung <tausq@debian.org>
7780
7781 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7782 references to dld_flags_buffer consistent.
7783
7784 2004-05-18 Randolph Chung <tausq@debian.org>
7785
7786 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7787 it for unwinding the stack.
7788
7789 2004-05-18 Randolph Chung <tausq@debian.org>
7790
7791 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7792 Undefine these so we can overide them using gdbarch.
7793
7794 2004-05-18 Randolph Chung <tausq@debian.org>
7795
7796 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7797 handling for 64-bit HPUX (elf).
7798
7799 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7800
7801 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7802 constants.
7803 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7804 * ia64-tdep.c (examine_prologue): Likewise.
7805 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7806 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7807
7808 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7809
7810 * vax-tdep.c (vax_return_value): Implement
7811 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7812
7813 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7814
7815 * vax-tdep.c (vax_return_value): Fix typo.
7816
7817 2004-05-17 Andrew Cagney <cagney@redhat.com>
7818
7819 * MAINTAINERS: Mark Salter was also responsible for
7820 testsuite/config/
7821
7822 * NEWS: Mention signal fixes.
7823
7824 2004-05-17 Randolph Chung <tausq@debian.org>
7825
7826 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7827 check to see if we are unwinding an export stub. Export stubs clobber
7828 the %rp in the call path and stores the original rp in a stack slot.
7829
7830 2004-05-17 Jim Blandy <jimb@redhat.com>
7831
7832 * MAINTAINERS: Update address for J.T. Conklin.
7833
7834 2004-05-17 Randolph Chung <tausq@debian.org>
7835
7836 * hppa-tdep.c: Remove superfluous #include's.
7837 * Makefile.in (hppa-tdep.o): Update dependencies.
7838
7839 2004-05-17 Randolph Chung <tausq@debian.org>
7840
7841 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7842 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7843 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7844 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7845 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7846 Remove static function declarations.
7847
7848 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7849
7850 * alphabsd-nat.c: Update copyright year.
7851 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7852
7853 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7854 and M68K_A2_REGNUM.
7855
7856 * m68k-tdep.c (m68k_svr4_return_value): Implement
7857 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7858
7859 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7860
7861 * sol-thread.c Update copyright year. Fix various coding
7862 standards violations. Tweak a few comments.
7863 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7864 Delete prototypes.
7865
7866 2004-05-15 Randolph Chung <tausq@debian.org>
7867
7868 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7869 as pointer instead of array reference since HPUX compiler does
7870 not accept unsized array arguments.
7871 * somsolib.c (dld_flags_buffer): Use constant array size.
7872
7873 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7874
7875 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7876 offset with decimal offset.
7877 (amd64obsd_sigcontext_addr): Return correct address for entire
7878 signal trampoline.
7879
7880 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7881 instead of get_frame_base.
7882
7883 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7884 (fill_gregset): Use regcache_raw_collect.
7885
7886 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7887 ppcobsd-tdep.c.
7888
7889 * config/sparc/tm-nbsd64.h: Remove file.
7890 * config/tm-sunos.h: Remove file.
7891
7892 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7893
7894 * rs6000-tdep.c (store_param_on_stack_p): New function,
7895 an improved version of some code extracted from skip_prologue().
7896 (skip_prologue): Use store_param_on_stack_p() to detect
7897 instructions saving a parameter on the stack. Detect when r0
7898 is used to save a parameter.
7899 Do not mark "li rx, SIMM" instructions as part of the prologue,
7900 unless the following instruction is also part of the prologue.
7901
7902 2004-05-14 Andrew Cagney <cagney@redhat.com>
7903
7904 * infrun.c (handle_inferior_event): Simplify
7905 STEP_OVER_UNDEBUGGABLE.
7906
7907 * infrun.c (handle_step_into_function): Delete function.
7908 (handle_inferior_event): Inline calls to
7909 handle_step_into_function.
7910
7911 2004-05-14 Jerome Guitton <guitton@gnat.com>
7912
7913 * rs6000-nat.c: Fix a comment.
7914
7915 2004-05-12 David Anderson <davea@sgi.com>
7916
7917 Committed by Jim Blandy <jimb@redhat.com>:
7918 * regcache.c (struct regcache_descr): fix comment spelling.
7919
7920 2004-05-13 J. Brobecker <brobecker@gnat.com>
7921
7922 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7923 Fixes a link link failure.
7924
7925 2004-05-13 J. Brobecker <brobecker@gnat.com>
7926
7927 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7928 error that was causing the build to fail.
7929
7930 2004-05-13 J. Brobecker <brobecker@gnat.com>
7931
7932 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7933 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7934
7935 2004-05-13 Andrew Cagney <cagney@redhat.com>
7936
7937 * infrun.c (handle_inferior_event): Check for
7938 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7939 calls. Update comments.
7940
7941 2004-05-13 Jim Blandy <jimb@redhat.com>
7942
7943 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7944 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7945 (store_regs_user_thread, store_regs_kernel_thread): Use
7946 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7947 * ppc-linux-nat.c (fill_gregset): Same.
7948 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7949 (ppc_linux_sigtramp_cache): Same.
7950 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7951 (ppcnbsd_sigtramp_cache_init): Same.
7952 * rs6000-nat.c (fetch_core_registers): Same.
7953 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7954 (rs6000_frame_cache): Same.
7955
7956 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7957 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7958 of assuming that the gprs are numbered starting with zero.
7959 * ppc-linux-nat.c (fill_gregset): Same.
7960 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7961 * ppcnbsd-nat.c (getregs_supplies): Same.
7962 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7963 * rs6000-nat.c (fetch_core_registers): Same.
7964 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7965
7966 2004-05-07 Michael Snyder <msnyder@redhat.com>
7967
7968 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7969 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7970
7971 2004-05-13 Andrew Cagney <cagney@redhat.com>
7972
7973 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7974
7975 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7976
7977 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7978 base_address for shared libraries.
7979
7980 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7981
7982 * MAINTAINERS (write after approval): Add myself.
7983
7984 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7985
7986 * breakpoint.c (bpstat_stop_status): Add new argument
7987 STOPPED_BY_WATCHPOINT. Use it instead of testing
7988 target_stopped_data_address agaist 0 to check whether
7989 or not we stopped due to a hardware watchpoint.
7990 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7991 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7992 with new argument.
7993
7994 2004-05-12 Jim Blandy <jimb@redhat.com>
7995
7996 * configure.in: When checking whether we should use the -bbigtoc
7997 option, don't forget to restore the original value of LDFLAGS.
7998 * configure: Regenerated.
7999
8000 2004-05-12 Andrew Cagney <cagney@redhat.com>
8001
8002 * thread.c (load_infrun_state): Delete step_sp.
8003 * infrun.c (context_switch): Ditto.
8004 * inferior.h (step_sp): Ditto.
8005 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8006 * gdbthread.h (struct thread_info, save_infrun_state)
8007 (restore_infrun_state): Ditto.
8008
8009 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8010
8011 * MAINTAINERS (write after approval): Add myself.
8012
8013 2004-05-12 Andrew Cagney <cagney@redhat.com>
8014
8015 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8016 eliminate reference to step_sp.
8017 (struct execution_control_state, init_execution_control_state)
8018 (handle_inferior_event, keep_going): Delete update_step_sp and
8019 step_sp.
8020 * infcmd.c (step_sp): Note that variable is unused.
8021
8022 2004-05-11 Andrew Cagney <cagney@redhat.com>
8023
8024 * infrun.c (step_over_function): Delete function.
8025 (handle_step_into_function): Use insert_step_resume_breakpoint.
8026 (insert_step_resume_breakpoint): Fix assertion.
8027
8028 2004-05-11 Nick Roberts <nickrob@gnu.org>
8029
8030 * utils.c (defaulted_query): Just use the normal query input type
8031 when printing the annotations.
8032
8033 2004-05-11 Andrew Cagney <cagney@redhat.com>
8034
8035 * infrun.c (handle_inferior_event): Simplify code handling
8036 step-into or return-from a signal trampoline.
8037
8038 2004-05-11 Andrew Cagney <cagney@redhat.com>
8039
8040 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8041 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8042
8043 2004-05-10 Jim Blandy <jimb@redhat.com>
8044
8045 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8046 with a call to internal_error.
8047
8048 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8049 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8050 processor variant lacks those registers.
8051 (ppc_floating_point_unit_p): Change description to make it clear
8052 that this returns info about the ISA, not the ABI.
8053 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8054 return true or false by checking tdep->ppc_fp0_regnum and
8055 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8056 arch/mach switching done in rs6000_gdbarch_init; it's better to
8057 keep that logic there, and just check the results here.
8058 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8059 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8060 floating-point registers.
8061 (ppc_supply_fpregset, ppc_collect_fpregset)
8062 (rs6000_push_dummy_call, rs6000_extract_return_value)
8063 (rs6000_store_return_value): Assert that we have floating-point
8064 registers.
8065 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8066 (rs6000_frame_cache): Don't note the locations at which
8067 floating-point registers were saved if we have no fprs.
8068 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8069 registers.
8070 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8071 (store_regs_user_thread, store_regs_kernel_thread): Only call
8072 supply_fprs / fill_fprs if we actually have floating-point
8073 registers.
8074 (special_register_p): Check ppc_fpscr_regnum before matching
8075 against it.
8076 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8077 supply / collect fpscr if we don't have it.
8078 * ppc-bdm.c: #include "gdb_assert.h".
8079 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8080 have floating-point registers, since I can't test this code on
8081 FP-free systems to adapt it.
8082 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8083 fpscr and floating point register numbers if they don't exist.
8084 (fetch_register): Assert that we have floating-point registers
8085 before we reach the code that handles them.
8086 (store_register): Same. And use tdep instead of calling
8087 gdbarch_tdep again.
8088 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8089 don't have them.
8090 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8091 fprs and fpscr if we don't have them.
8092 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8093 don't have them.
8094 * ppcnbsd-nat.c: #include "gdb_assert.h".
8095 (getfpregs_supplies): Assert that we have floating-point registers.
8096 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8097 * ppcobsd-tdep.c: #include "gdb_assert.h".
8098 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8099 have floating-point registers.
8100 * rs6000-nat.c (regmap): Don't match against the fpscr and
8101 floating point register numbers if they don't exist.
8102 (fetch_inferior_registers, store_inferior_registers,
8103 fetch_core_registers): Only fetch / store / supply the
8104 floating-point registers and the fpscr if we have them.
8105 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8106 (ppcobsd-tdep.o): Update dependencies.
8107
8108 2004-05-10 Andrew Cagney <cagney@redhat.com>
8109
8110 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8111 (context_switch): Do not switch through_sigtramp_breakpoint.
8112 * gdbthread.h (save_infrun_state, load_infrun_state)
8113 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8114 and structure member.
8115 * thread.c (load_infrun_state, save_infrun_state): Update.
8116
8117 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8118
8119 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8120
8121 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8122
8123 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8124 throughout.
8125 * aclocal.m4: Regenerate.
8126
8127 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8128
8129 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8130
8131 2004-05-10 Andrew Cagney <cagney@redhat.com>
8132
8133 * infrun.c (check_sigtramp2): Delete function.
8134 (handle_inferior_event): When single stepping, and taking a
8135 signal, set a breakpoint at the signal return address. Delete
8136 redundant calls to check_sigtramp2.
8137 (insert_step_resume_breakpoint): New function.
8138 (through_sigtramp_breakpoint, handle_inferior_event)
8139 (follow_exec, wait_for_inferior, fetch_inferior_event)
8140 (currently_stepping, keep_going): Delete most uses of
8141 through_sigtramp_breakpoint, not that it should be deleted.
8142 (delete_breakpoint_current_contents): Delete function.
8143
8144 2004-05-10 Randolph Chung <tausq@debian.org>
8145
8146 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8147 target.
8148 * config/pa/tm-linux.h: New file.
8149
8150 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8151
8152 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8153 of prefixes. Don't print the prefix twice in the CLI.
8154
8155 2004-05-10 Jim Blandy <jimb@redhat.com>
8156
8157 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8158 collect all the gprs.
8159
8160 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8161 loop collecting gprs.
8162
8163 2004-05-09 Andrew Cagney <cagney@redhat.com>
8164
8165 * remote-vx.c (net_step): Delete step-range code.
8166 * remote.c (remote_resume, init_all_packet_configs)
8167 (set_remote_protocol_E_packet_cmd)
8168 (show_remote_protocol_E_packet_cmd)
8169 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8170 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8171 (show_remote_protocol_e_packet_cmd): Ditto.
8172
8173 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8174
8175 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8176
8177 * hppa-tdep.h: Update copyright year.
8178 (struct trad_frame_saved_reg): Add opaque declaration.
8179
8180 * amd64-tdep.c (amd64_return_value): Implement
8181 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8182
8183 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8184 (m68k_value_to_register): New functions.
8185 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8186 value_to_register.
8187
8188 * defs.h (enum return_value_convention): Add
8189 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8190 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8191 * infcmd.c (legacy_return_value): New function.
8192 (print_return_value): Rwerite to implement
8193 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8194 * values.c (using_struct_return): Check for inequality to
8195 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8196 RETURN_VALUE_STRUCT_CONVENTION.
8197 * i386-tdep.c (i386_return_value): Implement
8198 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8199
8200 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8201 include "symtab.h", "opcode/vax.h" and "inferior.h".
8202 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8203 to read_memory_unsigned_integer.
8204 (vax_gdbarch_init): Reorder.
8205 (_initialize_vax_tdep): Spell out prototype.
8206 * Makefile.in (vax-tdep.o): Update dependencies.
8207
8208 2004-05-08 Andrew Cagney <cagney@redhat.com>
8209
8210 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8211 * target.c (target_detach, target_disconnect): Ditto.
8212
8213 * infcall.c (call_function_by_hand): When no
8214 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8215 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8216 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8217 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8218 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8219
8220 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8221 * gdbarch.h, gdbarch.c: Re-generate.
8222 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8223 deprecated_fix_call_dummy.
8224 * v850-tdep.c (v850_gdbarch_init): Ditto.
8225 * infcall.c (call_function_by_hand): Do not call
8226 DEPRECATED_FIX_CALL_DUMMY.
8227
8228 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8229 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8230 * gdbarch.h, gdbarch.c: Re-generate.
8231 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8232 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8233 deprecated_sizeof_call_dummy_words.
8234 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8236 * v850-tdep.c (v850_gdbarch_init): Ditto.
8237 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8238 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8239 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8240 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8241 * arch-utils.h (legacy_call_dummy_words)
8242 (legacy_sizeof_call_dummy_words): Delete declarations.
8243 * arch-utils.c (legacy_call_dummy_words)
8244 (legacy_sizeof_call_dummy_words): Delete variables.
8245
8246 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8247 * gdbarch.h, gdbarch.c: Re-generate.
8248 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8249 * infcall.c (call_function_by_hand): Eliminate call to
8250 DEPRECATED_PUSH_DUMMY_FRAME.
8251 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8252 push_dummy_frame.
8253 (ns32k_push_dummy_frame): Delete function.
8254
8255 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8256 deprecated_call_dummy_breakpoint_offset or
8257 deprecated_call_dummy_start_offset.
8258 * dummy-frame.c, arm-tdep.c: Update comments.
8259 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8260 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8261 * gdbarch.h, gdbarch.c: Re-generate.
8262
8263 * infcall.c (legacy_push_dummy_code): Delete function.
8264 (push_dummy_code): Delete call.
8265
8266 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8267 * gdbarch.h, gdbarch.c: Re-generate.
8268 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8269 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8270 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8271 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8272
8273 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8274 (struct frame_info): Delete opaque declaration.
8275 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8276 * frame.c (get_frame_type): Delete call.
8277
8278 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8279 pc_in_call_dummy.
8280 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8281 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8282
8283 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8284
8285 * alphanbsd-tdep.c: Include "gdb_string.h".
8286 * armnbsd-tdep.c: Update copyright year.
8287 Include "gdb_string.h".
8288 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8289 dependencies.
8290
8291 * delta68-nat.c: Remove file.
8292 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8293 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8294 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8295 (delta68-nat.o): Remove dependency.
8296
8297 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8298 function.
8299 (m68k_gdbarch_init): Don't set
8300 deprecated_frameless_function_invocation.
8301
8302 2004-05-07 Randolph Chung <tausq@debian.org>
8303
8304 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8305 read_memory_nobpt for code reading when doing frame unwinding.
8306 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8307
8308 2004-05-07 Randolph Chung <tausq@debian.org>
8309
8310 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8311 instead of sp, handle sigaltstack case.
8312 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8313 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8314 signal handler and not that of the caller.
8315 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8316 hppa_linux_sigtramp_find_sigcontext.
8317
8318 2004-05-07 Randolph Chung <tausq@debian.org>
8319
8320 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8321 hppa-linux-nat.c.
8322 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8323 * hppa-linux-nat.c (fetch_register, store_register): Define.
8324 (fetch_inferior_registers, store_inferior_registers): Define.
8325 (supply_gregset): Add comment and clean up some unneeded code.
8326 (fill_gregset): Add comment and fix so that it saves registers in
8327 the right place in the gregset.
8328 (fill_fpregset): Fix buffer overrun problem.
8329 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8330
8331 2004-05-07 Randolph Chung <tausq@debian.org>
8332
8333 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8334 do common handling of the pcoqt register.
8335 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8336 to use helper function.
8337 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8338 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8339 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8340 generic fallback unwinder when all else fails.
8341 (hppa_gdbarch_init): Add fallback sniffer.
8342 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8343 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8344 to use helper function.
8345
8346 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8347
8348 * config/djgpp/fnchange.lst: Add translation rules for
8349 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8350
8351 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8352
8353 * frame.c (get_prev_frame_1): Work around GCC bug.
8354 * frame.h: Add comment about GCC bug.
8355
8356 2004-05-07 Andrew Cagney <cagney@redhat.com>
8357
8358 * observer.c: Include "commands.h" and "gdbcmd.h".
8359 (observer_debug, _initialize_observer): Add the
8360 command "set/show debug observer".
8361 * observer.sh: When observer debugging, log notify calls.
8362 * Makefile.in (observer.o): Update dependencies.
8363
8364 2004-05-07 Jason Molenda (jmolenda@apple.com)
8365
8366 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8367
8368 2004-05-07 Jim Blandy <jimb@redhat.com>
8369
8370 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8371 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8372 to recognize gpr regnums, instead of assuming that
8373 tdep->ppc_fp0_regnum marks the end of the general-purpose
8374 registers.
8375
8376 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8377 the given architecture has floating-point registers.
8378
8379 2004-05-07 Andrew Cagney <cagney@redhat.com>
8380
8381 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8382 macro defined to 1.
8383 * gdbarch.h, gdbarch.c: Re-generate.
8384 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8385 deprecated_use_generic_dummy_frames.
8386
8387 2004-05-07 Brian Ford <ford@vss.fsi.com>
8388
8389 * NEWS: Mention Cygwin DWARF 2 support.
8390
8391 2004-05-07 Andrew Cagney <cagney@redhat.com>
8392
8393 * objfiles.h (struct entry_info): Delete unused fields
8394 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8395 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8396 * mipsread.c (mipscoff_symfile_read): Update.
8397 * mdebugread.c (parse_partial_symbols): Update.
8398 * dwarfread.c (read_file_scope): Update.
8399 * dwarf2read.c (read_file_scope): Update.
8400 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8401 * coffread.c (complete_symtab): Update.
8402
8403 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8404
8405 * infcall.c (_initialize_infcall): Fix typo.
8406
8407 2004-05-07 Andrew Cagney <cagney@redhat.com>
8408
8409 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8410 * command.h (add_setshow_zinteger_cmd): Declare.
8411
8412 2004-05-06 Randolph Chung <tausq@debian.org>
8413
8414 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8415 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8416 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8417 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8418 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8419 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8420 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8421 definitions ...
8422 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8423 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8424 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8425 (hppa64_hpux_frame_find_saved_regs_in_sig)
8426 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8427 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8428 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8429 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8430 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8431 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8432 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8433 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8434 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8435 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8436 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8437 (hppa32_register_type, hppa_cannot_store_register)
8438 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8439 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8440 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8441 * pa64solib.c (pa64_solib_have_load_event)
8442 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8443 (pa64_solib_unloaded_library_pathname): Likewise.
8444 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8445 (som_solib_library_pathname): Likewise.
8446
8447 2004-05-05 Jim Ingham <jingham@apple.com>
8448
8449 * breakpoint.c (create_breakpoints): Copy the ignore count and
8450 thread id over from the pended breakpoint to the actual
8451 breakpoint.
8452
8453 2004-05-05 Andrew Cagney <cagney@redhat.com>
8454
8455 * gdbarch.sh (PARM_BOUNDARY): Delete.
8456 gdbarch.h, gdbarch.c: Re-generate.
8457 * valops.c (PARM_BOUNDARY): Delete macro.
8458 (value_push): Delete PARM_BOUNDARY code.
8459 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8460
8461 2004-05-04 Jim Blandy <jimb@redhat.com>
8462
8463 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8464 Don't assume that the gprs, fprs, and UISA sprs are
8465 contiguous, start at register number zero, and end with fpscr.
8466 Instead, use the numbers from the tdep structure.
8467
8468 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8469 should no longer be used in code specific to the RS6000 and its
8470 derivatives.
8471 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8472 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8473 tdep->ppc_fp0_regnum.
8474 (ppc_supply_fpregset, ppc_collect_fpregset)
8475 (rs6000_push_dummy_call, rs6000_extract_return_value)
8476 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8477 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8478 FP0_REGNUM.
8479 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8480 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8481 Same.
8482 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8483 bdm_ppc_store_registers): Same.
8484 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8485 (store_register, fill_fpregset): Same.
8486 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8487 (ppc_linux_supply_fpregset): Same.
8488 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8489 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8490 Same.
8491 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8492 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8493 ppc64_sysv_abi_return_value): Same.
8494 * rs6000-nat.c (regmap, fetch_inferior_registers)
8495 (store_inferior_registers, fetch_core_registers): Same.
8496
8497 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8498
8499 * m68knbsd-nat.c: Remove file.
8500 * m68knbsd-tdep.c: Remove file.
8501 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8502 dependencies.
8503 * configure.host: Add m68k-*-netbsdelf*.
8504 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8505 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8506 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8507 (XM_FILE): Remove.
8508 * config/m68k/nbsdelf.mh: New file.
8509 * config/m68k/nbsd.mt: New file.
8510 * config/m68k/nbsdaout.mt: Remove file.
8511 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8512 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8513 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8514 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8515 (use_struct_convention): Remove prototype.
8516 (USE_STRUCT_CONVENTION): Remove define.
8517 * config/m68k/xm-nbsd.h: Remove file.
8518
8519 2004-05-04 Michael Snyder <msnyder@redhat.com>
8520
8521 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8522 reg_struct_return method (as gcc usually does for cross targets).
8523
8524 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8525
8526 Committed by Andrew Cagney.
8527 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8528 alignment padding when accessing ucontext struct members.
8529
8530 2004-05-04 Jim Blandy <jimb@redhat.com>
8531
8532 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8533 'ppc_gplast_regnum' member.
8534 (ppc_num_gprs): New enum constant.
8535 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8536 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8537 * rs6000-nat.c (regmap, fetch_inferior_registers,
8538 store_inferior_registers): Same.
8539 * rs6000-tdep.c (e500_pseudo_register_read)
8540 (e500_pseudo_register_write): Same.
8541 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8542
8543 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8544 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8545 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8546 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8547 FPLAST_REGNUM.
8548 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8549 Same.
8550 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8551 * rs6000-nat.c (regmap, fetch_inferior_registers)
8552 (store_inferior_registers): Same.
8553
8554 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8555 with FPLAST_REGNUM.
8556
8557 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8558
8559 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8560 failure detected by recent versions of GCC.
8561 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8562 to be consistent with the usage in dwarf2_create_include_psymtab.
8563
8564 2004-05-03 Michael Snyder <msnyder@redhat.com>
8565
8566 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8567 (heuristic_proc_start): Whitespace cleanup.
8568
8569 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8570
8571 * sun3-nat.c: Remove file.
8572 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8573 dependencies.
8574 (ALLDEPFILES): Remove sun3-nat.c.
8575 (sun3-nat.o): Remove dependencies.
8576
8577 * i386-interix-nat.c, i386-interix-tdep.c,
8578 config/i386/nm-interix.h, config/i386/interix.mh,
8579 config/i386/interix.mt: Remove files.
8580 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8581 dependencies.
8582
8583 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8584
8585 * m68k-tdep.h (struct gdbarch_tdep): Add member
8586 struct_value_regnum.
8587 (m68k_svr4_init_abi): New prototype.
8588 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8589 different calling conventions.
8590 (m68k_extract_return_value): Remove code dealing with single-field
8591 structs.
8592 (m68k_store_return_value): Remove code dealing with single-field
8593 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8594 (m68k_extract_struct_value_address): Remove function.
8595 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8596 (m68k_reg_struct_return_p, m68k_return_value)
8597 (m68k_svr4_return_value): New functions.
8598 (m68k_use_struct_convention): Remove function.
8599 (m68k_push_dummy_call): Use new struct_value_regnum member of
8600 `struct gdbarch_tdep' instead of hardcoded register number to
8601 store STRUCT_ADDR.
8602 (m68k_svr4_init_abi): New function.
8603 (m68k_gdbarch_init): Don't set extract_return_value,
8604 store_return_values, deprecated_extract_struct_value_address and
8605 use_struct_convention. Set return_value instead. Initialize new
8606 struct_value_regnum member of `struct gdbarch_tdep'.
8607 * m68klinux-tdep.c: Update copyright year.
8608 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8609 (m68k_linux_extract_struct_value_address): Remove function.
8610 (m68k_linux_init_abi): Don't set extract_return_value,
8611 store_return_values, deprecated_extract_struct_value_address and
8612 use_struct_convention. Call m68k_svr4_init_abi but override the
8613 new struct_value_regnum member of `struct gdbarch_tdep'.
8614 * Makefile.in (m68k-tdep.o): Update dependencies.
8615
8616 2004-05-03 J. Brobecker <brobecker@gnat.com>
8617
8618 * dwarf2read.c (line_header): Add new included_p field in
8619 field file_names.
8620 (partial_die_info): New field has_stmt_list. New field line_offset.
8621 (dwarf2_create_include_psymtab): New function.
8622 (dwarf2_build_include_psymtabs): New function.
8623 (add_file_name): Add forward declaration. Initialize new field.
8624 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8625 to be able to determine the list of files included by the
8626 given unit, and build their associated psymtabs.
8627 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8628 files as well.
8629 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8630 (read_file_scope): Update call to dwarf_decode_lines.
8631 (read_partial_die): Handle DW_AT_stmt_list attributes.
8632
8633 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8634
8635 Unfix PR gdb/1626.
8636 * configure.in: Revert special case for osf5.*.
8637 * configure: Regenerate.
8638
8639 2004-05-02 Jim Blandy <jimb@redhat.com>
8640
8641 Move the symbol-file-from-memory functions into their own file.
8642 * symfile-mem.c, symfile-mem.h: New files.
8643 * symfile.c (symbol_file_add_from_bfd): New function.
8644 (symbol_file_add): Call symbol_file_add_from_bfd.
8645 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8646 Moved to symfile-mem.c.
8647 (_initialize_symfile): Move definition of
8648 add-symbol-file-from-memory command to symfile-mem.c.
8649 * symfile.h (symbol_file_add_from_bfd): New declaration.
8650 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8651 * config/powerpc/linux.mt (TDEPFILES): Same.
8652 * Makefile.in (SFILES): Add symfile-mem.c.
8653 (symfile_mem_h): New variable.
8654 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8655 (symfile-mem.o): New rule.
8656
8657 2004-05-01 Andrew Cagney <cagney@redhat.com>
8658
8659 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8660 frame_find_by_id instead of frame_relative_level.
8661 (do_enable_breakpoint): Ditto.
8662 * thread.c: Update copyright.
8663 (info_threads_command): Ditto, simplify.
8664
8665 * frame.c (deprecated_generic_get_saved_register): Delete
8666 function, moved to "xstormy16-tdep.c".
8667 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8668 deprecated_generic_get_saved_register from "frame.c".
8669 (xstormy16_frame_saved_register): Call
8670 xstormy16_get_saved_register.
8671 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8672 static.
8673 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8674 * frame.h (deprecated_generic_get_saved_register): Delete.
8675
8676 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8677
8678 * dwarfread.c: Update documentation on the state of dwarf-1.
8679
8680 2004-05-01 Andrew Cagney <cagney@redhat.com>
8681
8682 * stack.c (select_frame_command): Delete call to
8683 frame_relative_level.
8684 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8685 Delete #if0 code.
8686 (frame_info): Do not print FRAMELESS.
8687 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8688 (catch_info): Delete #if0 code.
8689
8690 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8691 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8692 of frame_relative_level.
8693 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8694 to SENTINEL_FRAME.
8695 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8696 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8697 frame_relative_level.
8698
8699 * frame.h (deprecated_set_frame_type): Delete declaration.
8700 * frame.c (deprecated_set_frame_type): Delete function, update
8701 comments.
8702
8703 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8704 * gdbarch.h, gdbarch.c: Re-generate.
8705 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8706 (shnbsd_pc_in_sigtramp): Delete.
8707 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8708 pc_in_sigtramp.
8709 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8710 pc_in_sigtramp.
8711 * frame.h: Update comments.
8712 * ppc-linux-tdep.c: Update comments.
8713 * breakpoint.c (bpstat_what): Update comments.
8714
8715 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8716 m68klinux-tdep.o's dependencies, were previously added to
8717 m68klinux-nat.o.
8718
8719 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8720 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8721 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8722 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8723 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8724
8725 * Makefile.in (m68klinux-nat.o): Update dependencies.
8726 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8727 (m68k_linux_sigtramp_frame_cache)
8728 (m68k_linux_sigtramp_frame_this_id)
8729 (m68k_linux_sigtramp_frame_prev_register)
8730 (m68k_linux_sigtramp_frame_unwind)
8731 (m68k_linux_sigtramp_frame_sniffer)
8732 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8733 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8734 names, use trad-frame.h.
8735 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8736 (struct m68k_sigtramp_info): Delete.
8737 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8738 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8739 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8740 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8741 "m68klinux-tdep.c".
8742
8743 * infrun.c (check_sigtramp2): Delete check for
8744 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8745
8746 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8747
8748 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8749
8750 2004-05-01 Andrew Cagney <cagney@redhat.com>
8751
8752 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8753 (frv_linux_sigtramp_frame_cache)
8754 (frv_linux_sigtramp_frame_this_id)
8755 (frv_linux_sigtramp_frame_prev_register)
8756 (frv_linux_sigtramp_frame_unwind)
8757 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8758 include "linux" in function and variable names, directly call
8759 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8760 the latest trad-frame code.
8761 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8762 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8763 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8764 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8765 * frv-tdep.c (frv_sigtramp_frame_cache)
8766 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8767 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8768 frv-linux-tdep.c.
8769 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8770 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8771 (frv_set_sigcontext_reg_addr): Delete function.
8772
8773 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8774 (DEPRECATED_SIGTRAMP_END): Delete.
8775 * gdbarch.h, gdbarch.c: Re-generate.
8776 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8777 * config/vax/tm-vaxbsd.h: Update copyright.
8778 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8779 (DEPRECATED_IN_SIGTRAMP): Define.
8780 * config/m68k/tm-nbsd.h: Update copyright.
8781 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8782 (DEPRECATED_IN_SIGTRAMP): Define.
8783
8784 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8785
8786 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8787 encondings. Fixes PR gdb/1628.
8788
8789 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8790 DW_CFA_restore state without a matching DW_CFA_remember_state
8791 instead of aborting. Fixes PR backtrace/1589.
8792
8793 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8794
8795 * MAINTAINERS: Add self as AIX maintainer.
8796 Update my e-mail address in write-after-approval section.
8797
8798 2004-04-30 Andrew Cagney <cagney@redhat.com>
8799
8800 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8801 (legacy_get_prev_frame): Ditto.
8802
8803 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8804 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8805 * mipsread.c (sigtramp_address): Delete extern variable.
8806 (mipscoff_new_init): Delete reference.
8807 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8808 (fixup_sigtramp): Delete function.
8809 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8810 (fixup_sigtramp): Delete declarations.
8811
8812 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8813 deprecated_pc_in_sigtramp.
8814 (ppcnbsd_pc_in_sigtramp): Delete function.
8815
8816 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8817
8818 * config/m68k/nm-nbsd.h: Tweak comments.
8819 * config/m68k/nm-nbsdaout.h: Likewise.
8820
8821 2004-04-30 Andrew Cagney <cagney@redhat.com>
8822
8823 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8824 legacy_pc_in_sigtramp.
8825 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8826
8827 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8828
8829 Add OpenBSD/m68k support.
8830 * NEWS (New native configurations): Mention OpenBSD/m68k.
8831 * m68kbsd-tdep.c: New file.
8832 * m68kbsd-nat.c: New file.
8833 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8834 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8835 * configure.host: Add m68k-*-openbsd.
8836 * configure.tgt: Add m68k-*-openbsd.
8837 * config/m68k/tm-obsd.h: New file.
8838 * config/m68k/obsd.mt: New file.
8839 * config/m68k/obsd.mh: New file.
8840 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8841 m68kbsd-tdep.c.
8842
8843 2004-04-30 Andrew Cagney <cagney@redhat.com>
8844
8845 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8846 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8847
8848 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8849
8850 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8851 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8852
8853 2004-04-30 Brian Ford <ford@vss.fsi.com>
8854
8855 Revert 2004-04-16 change.
8856 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8857 (i386_coff_init_abi): Remove.
8858 * i386-tdep.h (i386_coff_init_abi): Remove.
8859 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8860
8861 2004-04-30 Andrew Cagney <cagney@redhat.com>
8862
8863 * blockframe.c (find_pc_partial_function): Delete use of
8864 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8865 DEPRECATED_SIGTRAMP_END.
8866
8867 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8868 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8869 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8870 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8871 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8872
8873 * defs.h (deprecated_inside_entry_file): Delete declaration.
8874 * blockframe.c (deprecated_inside_entry_file): Delete function.
8875 (legacy_frame_chain_valid): Delete call.
8876 * sh64-tdep.c (sh64_frame_chain): Delete call.
8877 * objfiles.h: Update comments.
8878 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8879 call.
8880 * frame.c (get_prev_frame): Delete call, update comments.
8881
8882 2004-04-30 Brian Ford <ford@vss.fsi.com>
8883
8884 * MAINTAINERS (Write After Approval): Add myself.
8885
8886 2004-04-30 Andrew Cagney <cagney@redhat.com>
8887
8888 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8889 * gdbarch.h, gdbarch.c: Re-generate.
8890 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8891 code.
8892
8893 2004-04-30 Andrew Cagney <cagney@redhat.com>
8894
8895 * gdb-events.sh (selected_thread_changed)
8896 (selected_frame_level_changed, target_changed): Delete.
8897 * gdb-events.h, gdb-events.c: Re-generate.
8898 * valops.c (value_assign): Update.
8899 * stack.c (select_frame_command, up_silently_base)
8900 (down_silently_base): Update.
8901
8902 2004-04-29 Andrew Cagney <cagney@redhat.com>
8903
8904 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8905 registers correctly.
8906 (print_gp_register_row, mips32_heuristic_proc_desc)
8907 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8908 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8909 references to mips_isa_regsize.
8910
8911 2004-04-29 Andrew Cagney <cagney@redhat.com>
8912
8913 * mips-tdep.c (struct gdbarch_tdep): Delete
8914 mips_fp_register_double.
8915 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8916 mips_abi_regsize.
8917 (mips_gdbarch_init): Do not set mips_fp_register_double.
8918 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8919
8920 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8921
8922 Committed by Andrew Cagney.
8923 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8924 function calls.
8925
8926 2004-04-29 Andrew Cagney <cagney@redhat.com>
8927
8928 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8929 gdbarch, use mips_abi, update callers.
8930 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8931 mips_abi_regsize, update callers.
8932 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8933 mips_default_abi_regsize.
8934 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8935 mips_default_abi_regsize.
8936
8937 2004-04-29 Andrew Cagney <cagney@redhat.com>
8938
8939 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8940 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8941 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8942 mips_default_abi_regsize.
8943 (mips_isa_regsize): Rename mips_regisze.
8944 * mipsnbsd-tdep.c: Update.
8945 * mips-linux-tdep.c: Update.
8946 * irix5-nat.c: Update.
8947 * mips-tdep.h (mips_isa_regsize): Update.
8948
8949 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8950 Delete all disabled code.
8951 * gdb-events.h, gdb-events.c: Re-generate.
8952
8953 2004-04-19 Jerome Guitton <guitton@gnat.com>
8954 Mark Kettenis <kettenis@gnu.org>
8955
8956 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8957 the function begins with a branch instruction.
8958
8959 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8960
8961 * i386-tdep.c: Fix spelling mistakes.
8962
8963 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8964 Andrew Cagney <cagney@redhat.com>
8965
8966 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8967 <sys/proc.h>.
8968 * acconfig.h: Provide default _KMEMUSER value.
8969 * config.in, configure: Re-generate.
8970 * NEWS: Mention fix.
8971
8972 2004-04-24 Randolph Chung <tausq@debian.org>
8973
8974 * configure.host (hppa*-*-linux*): New target.
8975 * configure.tgt (hppa*-*-linux*): Likewise.
8976 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8977 gdbarch_init_osabi() call earlier so that osabi-specific frame
8978 unwinders can be registered first.
8979 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8980 hppa-linux-nat.c.
8981 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8982 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8983 * config/pa/linux.mh: New file.
8984 * config/pa/linux.mt: New file.
8985 * config/pa/nm-linux.h: New file.
8986 * config/pa/xm-linux.h: New file.
8987 * hppa-linux-nat.c: New file.
8988 * hppa-linux-tdep.c: New file.
8989
8990 2004-04-28 Randolph Chung <tausq@debian.org>
8991
8992 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8993 return values.
8994 (hppa32_push_dummy_call): Fix small struct and floating point argument
8995 passing, and make sure the stack frame is properly aligned.
8996
8997 2004-04-28 Andrew Cagney <cagney@redhat.com>
8998
8999 * stack.c (print_stack_frame): Fix description.
9000
9001 * NEWS: Mention gdb/gdbserver/configure execute permission
9002 changed. PR server/519.
9003
9004 2004-04-28 Andrew Cagney <cagney@redhat.com>
9005
9006 * stack.c (print_stack_frame_stub): Delete declaration.
9007 (struct print_stack_frame_args, print_stack_frame)
9008 (print_frame_info, print_frame): Replace "source" with print what.
9009 Replace "print" with "print_level". Replace "args" with
9010 "print_args".
9011 * frame.h (show_and_print_stack_frame, print_stack_frame)
9012 (print_frame_info): Update declarations.
9013 * stack.c (select_and_print_frame, frame_command)
9014 (current_frame_command, up_command, down_command): Update calls -
9015 use get_selected_frame, pass "enum print_what" for source, do not
9016 call frame_relative_level.
9017 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9018 * remote-rdp.c (remote_rdp_open): Ditto.
9019 * remote-mips.c (common_open): Ditto.
9020 * remote-e7000.c (e7000_start_remote): Ditto.
9021 * ocd.c (ocd_start_remote): Ditto.
9022 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9023 * infrun.c (normal_stop): Ditto.
9024 * inflow.c (kill_command): Ditto.
9025 * infcmd.c (finish_command): Ditto.
9026 * corelow.c (core_open): Ditto.
9027 * tracepoint.c (finish_tfind_command): Ditto.
9028 * thread.c (info_threads_command, info_threads_command)
9029 (restore_current_thread, do_captured_thread_select): Ditto.
9030 * ada-tasks.c (task_command): Ditto.
9031
9032 2004-04-26 Orjan Friberg <orjanf@axis.com>
9033
9034 * frame.c: Include "observer.h".
9035 (frame_observer_target_changed): New function.
9036 (_initialize_frame): Attach target_changed observer.
9037 * regcache.c: Include "observer.h".
9038 (regcache_observer_target_changed): New function.
9039 (_initialize_regcache): Attach target_changed observer.
9040 * valops.c: Include "observer.h".
9041 (value_assign): Notify target_changed event when modifying register.
9042 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9043
9044 2004-04-26 Orjan Friberg <orjanf@axis.com>
9045
9046 From Paul Koning <pkoning@equallogic.com>:
9047 * breakpoint.c (free_valchain): New function.
9048 (insert_bp_location, delete_breakpoint): Use free_valchain.
9049 (remove_breakpoint): Do not remove the valchain.
9050 (bpstat_stop_status): If not stopped by watchpoint, skip
9051 watchpoints when generating stop status list.
9052 * infrun.c (handle_inferior_event): Make
9053 stepped_after_stopped_by_watchpoint a global variable.
9054 * remote.c (remote_stopped_data_address): Return watch data
9055 address rather than zero if stepped_after_stopped_by_watchpoint is
9056 set.
9057
9058 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9059
9060 Fix PR gdb/1626.
9061 * configure.in: Check for curses after termcap.
9062 On osf5.*, do not check for ncurses.
9063 * configure: Regenerate.
9064
9065 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9066
9067 * ppcobsd-nat.c: Include "ppc-tdep.h".
9068 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9069
9070 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9071 Fixes PR tdep/1623 and PR tdep/1624.
9072
9073 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9074
9075 * xmodem.h, xmodem.c: Remove files.
9076 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9077
9078 2004-04-23 Randolph Chung <tausq@debian.org>
9079
9080 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9081 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9082 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9083 for handling stackless frames.
9084 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9085
9086 2004-04-23 Randolph Chung <tausq@debian.org>
9087
9088 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9089 starts at a pc before the frame is created.
9090
9091 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9092
9093 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9094
9095 2004-04-23 Jerome Guitton <guitton@gnat.com>
9096
9097 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9098 use convert_typed_floating to get the appropriate format.
9099
9100 2004-04-22 Randolph Chung <tausq@debian.org>
9101
9102 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9103 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9104 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9105 (hppa_sign_extend): Add prototype.
9106 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9107 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9108 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9109 hppa targets will also use these functions.
9110 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9111 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9112 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9113 (hppa_gdbarch_init): Remove gdbarch setting of
9114 skip_trampoline_code, in_solib_call_trampoline and
9115 in_solib_return_trampoline.
9116 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9117 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9118 hppa_in_solib_call_trampoline.
9119 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9120 Moved from hppa-tdep.c.
9121 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9122 in_solib_call_trampoline and in_solib_return_trampoline.
9123
9124 2004-04-22 Randolph Chung <tausq@debian.org>
9125
9126 * hppa-tdep.c (hppa_debug): New variable.
9127 (find_unwind_entry, hppa_frame_cache): Add debug output.
9128 (_initialize_hppa_tdep): Add command to set debug flag.
9129
9130 2004-04-22 Andrew Cagney <cagney@redhat.com>
9131
9132 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9133 "trad-frame.h".
9134 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9135 signal trampoline unwinder.
9136 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9137
9138 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9139
9140 Add OpenBSD/powerpc support.
9141 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9142 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9143 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9144 (ppc_collect_fpregset): New prototypes.
9145 * ppcobsd-nat.c: New file.
9146 * ppcobsd-tdep.c: New file.
9147 * ppcobsd-tdep.h: New file.
9148 * rs6000-tdep.c: Include "regset.h".
9149 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9150 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9151 New functions.
9152 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9153 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9154 (rs6000-tdep.o): Update dependencies.
9155 * configure.host: Add powerpc-*-openbsd.
9156 * configure.tgt: Add powerpc-*-openbsd.
9157 * config/powerpc/obsd.mh: New file.
9158 * config/powerpc/nm-obsd.h: New file.
9159 * config/powerpc/obsd.mt: New file.
9160
9161 2004-04-22 Andrew Cagney <cagney@redhat.com>
9162
9163 * frame.h (show_frame_info): Delete declaration.
9164
9165 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9166 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9167 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9168 * frv-tdep.c (frv_frame_this_id): Ditto.
9169 * avr-tdep.c (avr_frame_this_id): Ditto.
9170
9171 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9172
9173 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9174
9175 2004-04-22 Jim Blandy <jimb@redhat.com>
9176
9177 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9178 register number zero.
9179
9180 2004-04-21 Michael Snyder <msnyder@redhat.com>
9181
9182 * mips-tdep.c (heuristic_proc_start):
9183 Warning() already prefixes "Warning: ".
9184
9185 2004-04-21 Andrew Cagney <cagney@redhat.com>
9186
9187 * annotate.h (deprecated_annotate_starting_hook)
9188 (deprecated_annotate_stopped_hook)
9189 (deprecated_annotate_exited_hook)
9190 (deprecated_annotate_signal_hook)
9191 (deprecated_annotate_signalled_hook): Deprecate.
9192 * tracepoint.h (deprecated_create_tracepoint_hook)
9193 (deprecated_delete_tracepoint_hook)
9194 (deprecated_modify_tracepoint_hook)
9195 (deprecated_trace_find_hook)
9196 (deprecated_trace_start_stop_hook): Deprecate.
9197 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9198 * remote.h (deprecated_target_resume_hook)
9199 (deprecated_target_wait_loop_hook): Deprecate.
9200 * gdbcore.h (deprecated_exec_file_display_hook)
9201 (deprecated_file_changed_hook): Deprecate.
9202 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9203 * defs.h (deprecated_modify_breakpoint_hook)
9204 (deprecated_command_loop_hook, deprecated_show_load_progress)
9205 (deprecated_print_frame_info_listing_hook)
9206 (deprecated_query_hook, deprecated_warning_hook)
9207 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9208 (deprecated_delete_breakpoint_hook)
9209 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9210 (deprecated_readline_begin_hook, deprecated_readline_hook)
9211 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9212 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9213 (deprecated_context_hook, deprecated_target_wait_hook)
9214 (deprecated_attach_hook, deprecated_detach_hook)
9215 (deprecated_call_command_hook, deprecated_set_hook)
9216 (deprecated_error_hook, deprecated_error_begin_hook)
9217 (deprecated_ui_load_progress_hook): Deprecate.
9218 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9219 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9220 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9221 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9222 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9223 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9224 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9225 * annotate.c, aix-thread.c: Update.
9226
9227 2004-04-21 Andrew Cagney <cagney@redhat.com>
9228
9229 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9230 * vaxnbsd-tdep.c: Include "gdb_string.h".
9231
9232 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9233 (add_symbol_file_from_memory_command): #if 0 function body, call
9234 error instead.
9235
9236 2004-04-21 Andrew Cagney <cagney@redhat.com>
9237
9238 * gdbcore.h: Update copyright.
9239 (deprecated_add_core_fns): Rename add_core_fns.
9240 * win32-nat.c (_initialize_core_win32): Update.
9241 * sun3-nat.c (_initialize_core_sun3): Update.
9242 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9243 * rs6000-nat.c (_initialize_core_rs6000): Update.
9244 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9245 * nto-tdep.c (_initialize_nto_tdep): Update.
9246 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9247 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9248 * mips-nat.c (_initialize_core_mips): Update.
9249 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9250 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9251 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9252 * lynx-nat.c (_initialize_core_lynx): Update.
9253 * irix5-nat.c (_initialize_core_irix5): Update.
9254 * i386-interix-nat.c (_initialize_core_interix): Update.
9255 * cris-tdep.c (_initialize_cris_tdep): Update.
9256 * corelow.c (deprecated_add_core_fns): Update.
9257 * core-regset.c (_initialize_core_regset): Update.
9258 * core-aout.c (_initialize_core_aout): Update.
9259 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9260 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9261 * alpha-nat.c (_initialize_core_alpha): Update.
9262
9263 2004-04-21 Jim Blandy <jimb@redhat.com>
9264
9265 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9266
9267 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9270 Delete.
9271 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9272 (read_attribute_value): Update calls to dwarf_alloc_block.
9273 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9274 dwarf2_tmp_obstack.
9275 (psymtab_to_symtab_1): Likewise. Clean up using
9276 free_stack_comp_unit.
9277 (add_to_cu_func_list): Use the comp_unit_obstack.
9278
9279 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9280
9281 * dwarf2read.c (dwarf2_flag_true_p): New function.
9282 (die_is_declaration): Use the function above. Add some comments.
9283
9284 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9285
9286 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9287 architecture when registering sparcnbsd_core_osabi_sniffer.
9288 Adjust comment.
9289
9290 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9291
9292 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9293 return value.
9294
9295 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9296 * i386-tdep.c: Correct register numbering scheme comments
9297 throughout.
9298 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9299 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9300 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9301 (i386_gdb_arch_init): Likewise.
9302
9303 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9304 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9305 ppcnbsd-tdep.o.
9306
9307 * m68k-tdep.h: Tweak comments.
9308 * m68k-tdep.c: Tweak comment.
9309
9310 2004-04-17 Randolph Chung <tausq@debian.org>
9311
9312 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9313 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9314 (hppa_hpux_som_init_abi): Set is_elf to 0.
9315 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9316 * hppa-tdep.c (low_text_segment_address): Remove global.
9317 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9318 section offset to calculate segment address.
9319 (internalize_unwinds): Define low_text_segment_address as local and
9320 pass to record_text_segment_lowaddr for ELF targets.
9321 (hppa_gdbarch_init): Zero fill tdep structure.
9322 (hppa_dump_tdep): Print tdep structure.
9323 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9324
9325 2004-04-17 Randolph Chung <tausq@debian.org>
9326
9327 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9328 (hppa_gdbarch_init): Set pseudo_register_read.
9329 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9330 * regcache.c (supply_register): Remove check for
9331 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9332
9333 2004-04-17 Randolph Chung <tausq@debian.org>
9334
9335 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9336 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9337 (hpread_adjust_stack_address): Move to hpread.c.
9338 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9339 obj_private_struct): Move from tm-hppa.h.
9340 * hpread.c (hppa-tdep.h): Include.
9341 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9342 (hpread_read_function_type, hpread_read_doc_function_type)
9343 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9344 directly.
9345 * pa64solib.c (hppa-tdep.h): Include.
9346 * somsolib.c (hppa-tdep.h): Include.
9347 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9348 inferior_status): Remove unused forward declarations.
9349 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9350 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9351 obj_private_struct): Move to hppa-tdep.h.
9352 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9353
9354 2004-04-17 Randolph Chung <tausq@debian.org>
9355
9356 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9357 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9358 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9359 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9360 Remove forward declaration and make static.
9361 (hppa_reg_struct_has_addr): Remove.
9362
9363 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9364
9365 * observer.sh: Move comments in sed command to first column.
9366
9367 2004-04-16 Jason Molenda (jmolenda@apple.com)
9368
9369 * frame.c: Minor typeo corrections in comments.
9370
9371 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9372
9373 * observer.c (observer_test_first_notification_function): Update
9374 function profile.
9375 (observer_test_second_notification_function): Likewise.
9376 (observer_test_third_notification_function): Likewise.
9377
9378 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9379
9380 From Brian Ford <ford@vss.fsi.com>:
9381 * i386-tdep.c (i386_coff_init_abi): New function.
9382 * i386-tdep.h (i386_coff_init_abi): New prototype.
9383 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9384 register number translation functions for DWARF and DWARF 2.
9385
9386 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9387
9388 * dwarf2read.c: Back out my previous change, it was incorrect.
9389
9390 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9391
9392 * dwarf2read.c: Include "hashtab.h".
9393 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9394 has_namespace_info.
9395 (struct partial_die_info): Add comments. Use bitfields to reduce
9396 memory footprint. Add scope, scope_set, has_specification,
9397 spec_offset, die_parent, die_child, and die_sibling.
9398 (peek_die_abbrev): Add prototype.
9399 (partial_read_comp_unit_head): New function, broken out from
9400 dwarf2_build_psymtabs_hard.
9401 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9402 Use partial_read_comp_unit_head. Initialize the CU and
9403 comp_unit_obstack. Update calls to read_partial_die and
9404 scan_partial_symbols. Use free_stack_comp_unit and
9405 load_partial_dies.
9406 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9407 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9408 Update calls to helper functions. Remove NAMESPACE argument.
9409 Update comments.
9410 (partial_die_parent_scope, partial_die_full_name): New functions.
9411 (add_partial_symbol): Remove namespace argument. Update call to
9412 pdi_needs_namespace. Use partial_die_full_name. Handle
9413 DW_TAG_namespace. Check has_namespace_info flag.
9414 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9415 tag. Handle namespaces.
9416 (add_partial_namespace, add_partial_enumeration): Simplify.
9417 (guess_structure_name): New function, derived from
9418 add_partial_structure.
9419 (add_partial_structure): Remove.
9420 (determine_class_name): Update comment.
9421 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9422 (is_type_tag_for_partial, load_partial_dies): New functions.
9423 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9424 Record specifications instead of following them immediately.
9425 (find_partial_die_in_comp_unit, find_partial_die)
9426 (fixup_partial_die, free_stack_comp_unit)
9427 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9428 (partial_die_hash, partial_die_eq): New functions.
9429 * Makefile.in (hashtab_h): Define.
9430 (dwarf2read.o): Update dependencies.
9431 (observer_inc, observer_h): Move to the correct section.
9432
9433 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9434
9435 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9436 (die_is_declaration): Use the function above. Add comment.
9437
9438 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9439
9440 * dwarf2read.c (read_structure_scope): Identify stub types
9441 using die_is_declaration() only.
9442
9443 2004-04-15 Roland McGrath <roland@redhat.com>
9444
9445 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9446 argument instead of NAME.
9447 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9448 in call to symbol_file_add_with_addrs_or_offsets.
9449 (build_addr_info): New function, helper for ...
9450 (symbol_file_add_from_memory): New function.
9451 (add_symbol_file_from_memory_command): New function using that.
9452 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9453 (pre_add_symbol_hook): Add const to argument type.
9454 * symfile.h (symbol_file_add_from_memory): Declare it.
9455
9456 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9457
9458 * NEWS (New native configurations): Mention OpenBSD/vax.
9459 * configure.host: Add vax-*-openbsd*.
9460 * config/vax/obsd.mh: New file.
9461 * config/vax/nm-obsd.h: New file.
9462
9463 * vax-tdep.c: Include "regset.h".
9464 (vax_supply_gregset): New function.
9465 (vax_gregset): New variable.
9466 (vax_regset_from_core_section): New function.
9467 (vax_gdbarch_init): Set regset_from_core_section.
9468 * Makefile.in (vax-tdep.o): Update dependencies.
9469
9470 2004-04-15 Andrew Cagney <cagney@redhat.com>
9471
9472 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9473 (observer_normal_stop_notification_stub)
9474 (observer_attach_normal_stop, observer_detach_normal_stop):
9475 Delete, replaced by #include "observer.inc".
9476 * infrun.c (normal_stop): Pass "stop_bpstat" to
9477 observer_notify_normal_stop.
9478 * Makefile.in (observer_inc): Define.
9479 (observer.o): Update dependencies.
9480 (observer.h, observer.inc): New rules.
9481 * observer.h: Delete file.
9482 * observer.sh: New file.
9483
9484 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9485
9486 * vax-tdep.c (vax_frame_cache): Fix typo.
9487
9488 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9489
9490 * NEWS (New native configurations): Mention NetBSD/vax.
9491 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9492 * config/vax/nbsdelf.mh: New file.
9493 * config/vax/nbsdaout.mh: New file.
9494 * config/vax/nm-nbsd.h: New file.
9495 * config/vax/nm-nbsdaout.h: New file.
9496
9497 * vaxnbsd-tdep.c: New file.
9498 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9499 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9500 * config/vax/nbsd.mt: New file.
9501 * config/vax/tm-nbsd.h: New file.
9502
9503 * Makefile.in (vaxbsd-nat.o): New dependency.
9504
9505 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9506 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9507 struct_addr arguments. Don't push return value address.
9508 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9509 arguments to vax_store_arguments. Store return value address in
9510 R1.
9511 (vax_store_struct_return, vax_extract_return_value)
9512 (vax_store_return_value): Remove functions.
9513 (vax_return_value): New function.
9514 (vax_gdbarch_init): Set return value. Don't set
9515 deprecated_store_struct_return, deprecated_extract_struct_return
9516 and deprecated_store_return_value.
9517
9518 2004-04-14 Andreas Schwab <schwab@suse.de>
9519
9520 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9521 value buffer.
9522 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9523
9524 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9525
9526 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9527 (vax_unwind_dummy_id): New functions.
9528 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9529 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9530 variables.
9531 (vax_fix_call_dummy): Remove function.
9532 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9533 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9534 call_dummy_location, deprecated_call_dummy_words,
9535 deprecated_sizeof_call_dummy_words,
9536 deprecated_call_dummy_breakpoint_offset,
9537 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9538 and deprecated_dummy_write_sp.
9539
9540 2004-04-13 David Carlton <carlton@kealia.com>
9541
9542 * MAINTAINERS: Move myself to "paper trail" section.
9543
9544 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9545
9546 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9547 "trad-frame.h".
9548 (vax_frame_init_saved_regs): Remove function.
9549 (vax_sigtramp_saved_pc): Remove function.
9550 (vax_frame_saved_pc): Remove function.
9551 (vax_frame_args_address): Remove function.
9552 (vax_frame_num_args): Rewrite.
9553 (vax_frame_chain): Remove function.
9554 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9555 VAX_FP_REGNUM.
9556 (vax_pop_frame): Likewise.
9557 (vax_saved_pc_after_call): Remove function.
9558 (struct vax_frame_cache): New structure.
9559 (vax_frame_cache): New function.
9560 (vax_frame_this_id): New function.
9561 (vax_frame_prev_register): New function.
9562 (vax_frame_unwind): New variable.
9563 (vax_frame_sniffer): New function.
9564 (vax_frame_base_address): New function.
9565 (vax_frame_args_address): New function.
9566 (vax_frame_base): New variable.
9567 (vax_unwind_pc): New function.
9568 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9569 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9570 deprecated_frame_chain, deprecated_frame_saved_pc,
9571 deprecated_frame_args_address and
9572 deprecated_frame_init_saved_regs.
9573 * Makefile.in (vax-tdep.o): Update dependencies.
9574
9575 * vaxbsd-nat.c: New file.
9576
9577 * vax-tdep.h: Update copyright year. Adjust comments.
9578 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9579 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9580 (vax_regnum): New enum. Replacing...
9581 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9582 (VAX_PS_REGNUM): ... these removed macros.
9583 * vax-tdep.c (vax_register_name): Remove prototype.
9584 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9585 (vax_register_byte, vax_register_raw_size,
9586 vax_register_virtual_size, vax_register_virtual_type): Remove
9587 functions.
9588 (vax_register_type): New function.
9589 (vax_breakpoint_from_pc): Reorganize.
9590 (vax_gdbarch_init): Set register_type. Don't set
9591 deprecated_register_size, deprecated_register_bytes,
9592 deprecated_register_byte, deprecated_register_raw_size,
9593 deprecated_max_register_raw_size,
9594 deprecated_register_virtual_size,
9595 deprecated_max_register_virtual_size and
9596 deprecated_register_virtual_type. Add comment on stack direction.
9597
9598 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9599
9600 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9601 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9602 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9603
9604 2004-04-10 Randolph Chung <tausq@debian.org>
9605
9606 * MAINTAINERS (write after approval): Add myself.
9607
9608 2004-04-07 Randolph Chung <tausq@debian.org>
9609
9610 * hppa-tdep.c (hppa_inner_than): Remove.
9611 (is_pa_2): Remove unused static variable.
9612 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9613
9614 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9615
9616 * language.h (language_defn): Add new la_post_parser field.
9617 * parser-defs.h (null_post_parser): New declaration (default for
9618 la_post_parser).
9619
9620 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9621 insert call to that function.
9622 (parse_exp_in_context): New function, including code formerly in
9623 parse_exp_1. Calls language-dependent post-parser after
9624 prefixification.
9625 (parse_expression_in_context): New exported function.
9626 (null_post_parser): New definition.
9627 * expression.h (parse_expression_in_context): Add declaration.
9628
9629 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9630 * c-lang.c (c_language_defn): Ditto.
9631 (cplus_language_defn): Ditto.
9632 (asm_language_defn): Ditto.
9633 (minimal_language_defn): Ditto.
9634 * f-lang.c (f_language_defn): Ditto.
9635 * jv-lang.c (java_language_defn): Ditto.
9636 * language.c (unknown_language_defn): Ditto.
9637 (auto_language_defn): Ditto.
9638 (local_language_defn): Ditto.
9639 * m2-lang.c (m2_language_defn): Ditto.
9640 * scm-lang.c (scm_language_defn): Ditto.
9641 * obj-lang.c (objc_language_defn): Ditto.
9642
9643 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9644
9645 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9646 (amd64nbsd_mcontext_addr): New function.
9647 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9648 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9649 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9650
9651 * corelow.c (core_xfer_partial): Fix coding standards violation.
9652 Add support for TARGET_OBJECT_WCOOKIE.
9653
9654 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9655 deprecated_pc_in_sigtramp.
9656 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9657 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9658 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9659 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9660 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9661 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9662 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9663
9664 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9665 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9666 Fix typo.
9667
9668 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9669 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9670 (amd64_collect_fxsave): Likewise.
9671
9672 * i386-sol2-tdep.c: Include "gdb_string.h".
9673 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9674 name.
9675 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9676
9677 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9678
9679 * i386-sol2-tdep.c: Include "solib-svr4.h".
9680 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9681 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9682 * config/i386/tm-i386sol2.h: Include :solib.h".
9683 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9684 solib-svr4.o and solib-legacy.o.
9685 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9686 solib-svr4.o.
9687
9688 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9689
9690 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9691 whether a register is supplied by PTRACE_GETFPREGS.
9692 (store_inferior_registers): Likewise.
9693 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9694 whether a register is supplied by PT_GETFPREGS.
9695 (store_inferior_registers): Likewise.
9696
9697 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9698 * config/i386/linux64.mt (TDEPFILES): Likewise.
9699
9700 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9701
9702 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9703 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9704 the program counter is in the range specified by `struct
9705 gdbarch_tdep'.
9706 * amd64-linux-tdep.c: Include "symtab.h".
9707 (amd64_linux_pc_in_sigtramp): Remove function.
9708 (amd64_linux_sigtramp_p): New function.
9709 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9710 deprecated_pc_in_sigtramp.
9711 * amd64nbsd-tdep.c: Include "symtab.h".
9712 (amd64nbsd_sigtramp_p): New function.
9713 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9714 deprecated_pc_in_sigtramp.
9715 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9716 few comments.
9717 (amd64obsd_pc_in_sigtramp): Remove function.
9718 (amd64obsd_sigtramp_p): New function.
9719 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9720 deprecated_pc_in_sigtramp.
9721 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9722 (i386bsd_pc_ins_sigtramp): Remove prototype.
9723 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9724 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9725 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9726 the program counter is in the range specified by `struct
9727 gdbarch_tdep'.
9728 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9729 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9730 (i386_go32_pc_in_sigtramp): Remove function.
9731 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9732 Initialize TDEP->sigtramp_p.
9733 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9734 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9735 deprecated_pc_in_sigtramp.
9736 * i386-linux-tdep.c: Adjust comments.
9737 (i386_linux_pc_in_sigtramp): Remove function.
9738 (i386_linux_sigtramp_p): New function.
9739 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9740 deprecated_pc_in_sigtramp.
9741 * i386-nto-tdep.c: Update copyright year.
9742 (i386nto_pc_in_sigtramp): Remove function.
9743 (i386nto_sigtramp_p): New function.
9744 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9745 SP_REGNUM.
9746 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9747 deprecated_pc_in_sigtramp.
9748 * i386-sol2-tdep.c: Update copyright year.
9749 (i386_sol2_pc_in_sigtramp): Remove function.
9750 (i386_sol2_sigtramp_p): New function.
9751 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9752 deprecated_pc_in_sigtramp.
9753 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9754 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9755 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9756 deprecated_sigtramp_start and deprecated_sigtramp_end.
9757 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9758 (i386nbsd_pc_in_sigtramp): Remove function.
9759 (i386nbsd_sigtramp_p): New function.
9760 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9761 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9762 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9763 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9764 (i386obsd_pc_in_sigtramp): Remove function.
9765 (i386obsd_sigtramp_p): New function.
9766 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9767 functions.
9768 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9769 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9770 TDEP->sigtramp_p.
9771 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9772 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9773 dependencies.
9774
9775 * config/i386/i386aout.mt: Remove file.
9776
9777 * configure.tgt: Remove i[34567]86-*-go32*,
9778 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9779 and i[34567]86-*-isc*. Set gdb_target to i386 for
9780 i[34567]86-*-netware* and i[34567]86-*-*.
9781 * config/i386/i386.mt: New file.
9782 * config/i386/embed.mt: Remove file.
9783 * config/i386/go32.mt: Remove file.
9784 * config/i386/i386nw.mt: Remove file.
9785 * config/i386/i386v.mt: Remove file.
9786 * config/i386/tm-go32.h: Remove file.
9787
9788 * tui/tui-hooks.c: Include "readline/readline.h" after
9789 "gdb_curses.h" instead of before.
9790 * tui/tui-io.c: Likewise.
9791
9792 * tui/tui.c: Fix typo in comment.
9793
9794 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9795
9796 2004-04-08 Andrew Cagney <cagney@redhat.com>
9797
9798 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9799 (deprecated_exception_support_initialized): Declare.
9800 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9801 (initialize_hp_cxx_exception_support)
9802 (child_enable_exception_callback): Update.
9803 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9804 (deprecated_exception_support_initialized): Rename
9805 deprecated_exception_catchpoints_are_fragile and
9806 deprecated_exception_support_initialized.
9807 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9808
9809 * symtab.c (deprecated_hp_som_som_object_present): Rename
9810 hp_som_som_object_present.
9811 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9812 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9813 Update. Delete extern declaration.
9814 * valops.c (hp_som_som_object_present): Ditto.
9815 * parse.c (deprecated_hp_som_som_object_present)
9816 (parse_nested_classes_for_hpacc): Ditto.
9817 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9818 * hppa-hpux-tdep.c (hp_som_som_object_present)
9819 (initialize_hp_cxx_exception_support): Ditto.
9820 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9821 * cp-valprint.c (hp_som_som_object_present)
9822 (cp_print_class_method): Ditto.
9823 * c-typeprint.c (hp_som_som_object_present):
9824 (c_type_print_base): Ditto.
9825 * c-exp.y (hp_som_som_object_present): Ditto.
9826
9827 2004-04-08 Andrew Cagney <cagney@redhat.com>
9828
9829 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9830 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9831 (frame_unwind_find_by_frame): Re-implement the unwind code so
9832 that it can both prepend and append sniffers. Replace
9833 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9834 * tramp-frame.c (tramp_frame_append): Use
9835 frame_unwind_prepend_unwinder.
9836 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9837 frame_unwind_register_unwinder.
9838 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9839 tramp_frame_append.
9840 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9841 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9842 (mips_linux_init_abi): Update.
9843
9844 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9845
9846 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9847 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9848 file support.
9849
9850 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9851
9852 * ia64-tdep.c (elf.h): Don't include.
9853 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9854
9855 2004-04-07 Jason Molenda (jmolenda@apple.com)
9856
9857 * frame.h: Typeo corrections in comments.
9858
9859 2004-04-07 Jim Blandy <jimb@redhat.com>
9860
9861 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9862 %esp and %ebp
9863
9864 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9865
9866 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9867 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9868 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9869 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9870 and solib-legacy.o.
9871 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9872 solib-svr4.o.
9873 * config/sparc/tm-sol2.h: Update copyright year. Include
9874 "solib.h".
9875
9876 * sparc-sol2-tdep.c: Update copyright year. Include
9877 "solib-svr4.h".
9878 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9879 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9880 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9881 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9882 dependencies.
9883
9884 2004-04-06 Andrew Cagney <cagney@redhat.com>
9885
9886 * infttrace.c: Include "infttrace.h".
9887 * infttrace.h: Include "target.h".
9888 * Makefile.in (infttrace_h): Update.
9889 (infttrace.o): Update.
9890
9891 2004-04-06 Andrew Cagney <cagney@redhat.com>
9892
9893 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9894 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9895 move extern declarations from here ...
9896 * infttrace.h: ... to here.
9897 * Makefile.in (hppah-nat.o): Update dependencies.
9898
9899 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9900 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9901 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9902 (hppa_breakpoint_from_pc): Delete.
9903
9904 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9905
9906 2004-04-05 Andrew Cagney <cagney@redhat.com>
9907
9908 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9909 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9910 <sys/file.h>.
9911
9912 2004-04-06 Randolph Chung <tausq@debian.org>
9913
9914 Committed by Andrew Cagney (mechanical change).
9915 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9916 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9917 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9918 child_enable_exception_callback, current_ex_event,
9919 null_symtab_and_line, child_get_current_exception_event,
9920 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9921 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9922 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9923 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9924 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9925 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9926 Move hpux-specific definitions ...
9927 * hppa-hpux-tdep.c: ... to here.
9928
9929 2004-04-05 Andrew Cagney <cagney@redhat.com>
9930
9931 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9932 skip_prologue_using_sal.
9933
9934 2004-04-05 Andrew Cagney <cagney@redhat.com>
9935
9936 * config/i386/tm-i386.h: Delete file.
9937 * config/i386/tm-vxworks.h: Update copyright, do not include
9938 "tm-i386.h".
9939 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9940 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9941 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9942 * config/i386/ncr3000.mt (TM_FILE): Delete.
9943 * config/i386/interix.mt (TM_FILE): Delete.
9944 * config/i386/i386v.mt (TM_FILE): Delete.
9945 * config/i386/i386nw.mt (TM_FILE): Delete.
9946 * config/i386/i386gnu.mt (TM_FILE): Delete.
9947 * config/i386/i386aout.mt (TM_FILE): Delete.
9948 * config/i386/embed.mt (TM_FILE): Delete.
9949
9950 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9951
9952 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9953 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9954 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9955 (accg7_regnum): New constants.
9956 (last_spr_regnum, last_pseudo_regnum): Update.
9957 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9958 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9959 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9960 for accg registers.
9961 (frv_register_sim_regno): Update spr_map[].
9962
9963 2004-04-04 Andrew Cagney <cagney@redhat.com>
9964
9965 * config/mips/xm-riscos.h: Delete.
9966 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9967 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9968 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9969 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9970 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9971 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9972 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9973 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9974 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9975 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9976 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9977 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9978 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9979 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9980 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9981 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9982 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9983 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9984 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9985 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9986 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9987 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9988 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9989 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9990 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9991 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9992
9993 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9994 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9995 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9996 * configure.host: Remove m680[01]0-sun-sunos3*,
9997 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9998 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9999 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10000 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10001 mips-*-riscos*.
10002 * NEWS: Mention removed systems.
10003
10004 2004-04-04 Andrew Cagney <cagney@redhat.com>
10005
10006 GDB 6.1 release created from 6.1 branch.
10007
10008 2004-04-04 Andrew Cagney <cagney@redhat.com>
10009
10010 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10011 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10012 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10013
10014 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10015 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10016 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10017
10018 2004-04-03 Jim Blandy <jimb@redhat.com>
10019
10020 * MAINTAINERS: Chris Faylor has changed employers; add him to
10021 "paper trail" section, and update his E-mail address.
10022
10023 2004-04-03 Andrew Cagney <cagney@redhat.com>
10024
10025 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10026 generic dummy frames.
10027 * dummy-frame.c: Update copyright.
10028 (dummy_frame_sniffer): Delete check for generic dummy frames.
10029
10030 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10031 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10032 (REG_PARM_STACK_SPACE): Delete.
10033 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10034 Inline reference to REG_PARM_STACK_SPACE.
10035
10036 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10037 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10038 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10039 (FRAME_BASE_BEFORE_SIGTRAMP)
10040 (hppa32_hpux_frame_base_before_sigtramp)
10041 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10042 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10043 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10044 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10045 (FRAME_BASE_BEFORE_SIGTRAMP)
10046 (hppa64_hpux_frame_base_before_sigtramp)
10047 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10048
10049 2004-04-03 Andrew Cagney <cagney@redhat.com>
10050
10051 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10052
10053 2004-04-02 Andrew Cagney <cagney@redhat.com>
10054
10055 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10056 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10057 * dummy-frame.h: Delete out-of-date comments.
10058 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10059 * gdbarch.h, gdbarch.c: Re-generate.
10060
10061 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10062
10063 Committed by Andrew Cagney <cagney@redhat.com>.
10064 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10065 into account an instruction saving a register if we have already
10066 seen an earlier instruction saving that same register.
10067
10068 2004-04-02 Andrew Cagney <cagney@redhat.com>
10069
10070 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10071 * gdbarch.h, gdbarch.c: Re-generate.
10072 * frame.c (legacy_get_prev_frame): Delete references to
10073 DEPRECATED_INIT_FRAME_PC_FIRST.
10074
10075 * infrun.c (pc_in_sigtramp): Delete function.
10076 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10077 get_frame_type.
10078
10079 2004-04-02 Andrew Cagney <cagney@redhat.com>
10080
10081 * infrun.c (handle_step_into_function): Delete code conditional on
10082 legacy_frame_p.
10083 (handle_inferior_event, step_over_function): Ditto.
10084
10085 2004-04-02 Andrew Cagney <cagney@redhat.com>
10086
10087 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10088 "previous frame inner to this frame" test.
10089
10090 2004-04-02 Andrew Cagney <cagney@redhat.com>
10091
10092 * frame.c (safe_frame_unwind_memory): New function.
10093 * frame.h (safe_frame_unwind_memory): Declare. Update description
10094 of /safe_/ methods.
10095 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10096 "next_frame". Use safe_frame_unwind_memory.
10097 (tramp_frame_sniffer): Update call to tramp_frame_start.
10098
10099 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * dwarf2read.c (dwarf2_objfile_data_key): New.
10102 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10103 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10104 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10105 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10106 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10107 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10108 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10109 Remove variables.
10110 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10111 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10112 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10113 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10114 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10115 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10116 Remove macros.
10117 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10118 data.
10119 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10120 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10121 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10122 (read_partial_die, read_full_die, read_indirect_string)
10123 (dwarf_decode_line_header, dwarf_decode_macros)
10124 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10125 Update uses of removed variables.
10126 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10127 of removed macros.
10128 (_initialize_dwarf2_read): New function.
10129 * symfile.h (dwarf2_has_info): Update prototype.
10130 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10131 * elfread.c (elf_symfile_read): Likewise.
10132
10133 2004-04-01 Jim Blandy <jimb@redhat.com>
10134
10135 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10136 function for register numbers on all the rs6000-derived targets.
10137 (rs6000_gdbarch_init): Don't register a separate
10138 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10139 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10140 variants.
10141
10142 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10143 numbering.
10144
10145 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10146
10147 * valarith.c: Update copyright notice.
10148 (value_add): Handle range types.
10149 (value_sub): Ditto.
10150 (value_equal): Ditto.
10151 (value_less): Ditto.
10152 (value_neg): Ditto.
10153 (value_complement): Ditto.
10154 (value_binop): Simplify slightly by using is_integral_type and
10155 eliminiating unnecessary COERCE_ENUMs.
10156
10157 2004-03-31 Andrew Cagney <cagney@redhat.com>
10158
10159 * frame.h (frame_unwind_id): Declare.
10160 * frame.c (frame_unwind_id): New function.
10161 (get_prev_frame_1): New function.
10162 (frame_debug_got_null_frame): New function.
10163 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10164 code proper to prev_frame, update description.
10165 * infrun.c (step_over_function): Use frame_unwind_id.
10166
10167 2004-04-31 J. Brobecker <brobecker@gnat.com>
10168
10169 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10170 (hppa64_push_dummy_call): Likewise.
10171
10172 2004-03-30 Jim Blandy <jimb@redhat.com>
10173
10174 From Ulrich Weigand:
10175 * utils.c (query): Do not use a va_list variable multiple times.
10176
10177 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10178
10179 * Makefile.in (linux_nat_h): Update dependencies.
10180 * configure.in: Check for <gnu/libc-version.h>.
10181 * configure: Regenerate.
10182 * config.in: Regenerate.
10183 * linux-nat.h: Include "target.h". Add waitstatus field to
10184 struct lwp_info.
10185 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10186 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10187 to.
10188 (lin_lwp_handle_extended): New function. Handle clone events.
10189 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10190 thread exit events.
10191 (child_wait): Handle clone events.
10192 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10193 * linux-nat.c (linux_enable_event_reporting): Turn on
10194 PTRACE_O_TRACECLONE.
10195 (linux_handle_extended_wait): Handle clone events.
10196 * thread-db.c: Include <gnu/libc-version.h>.
10197 (struct private_thread_info): Add dying flag.
10198 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10199 higher.
10200 (attach_thread): Update comments. Handle dying threads.
10201 (detach_thread): Set the dying flag.
10202 (check_event): Always call attach_thread.
10203
10204 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10205
10206 * mips-tdep.c (mips_pdr_data): New.
10207 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10208 (_initialize_mips_tdep): Initialize mips_pdr_data.
10209
10210 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10211
10212 * minsyms.c (install_minimal_symbols): Move dropping leading
10213 char from linkage name from here...
10214 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10215 test for "__gnu_compiled*" symbols.
10216
10217 2004-03-28 Jim Blandy <jimb@redhat.com>
10218
10219 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10220 registers to temp register r0 and byte stores as prologue
10221 instructions.
10222
10223 2004-03-28 Andrew Cagney <cagney@redhat.com>
10224
10225 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10226 arm*-*-*.
10227
10228 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10229
10230 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10231 and switch the layout to force a display of register window.
10232
10233 2004-02-26 J. Brobecker <brobecker@gnat.com>
10234
10235 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10236 of the INTEGER class.
10237
10238 2004-03-26 Jim Blandy <jimb@redhat.com>
10239
10240 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10241 bytes long on PPC GNU/Linux.
10242
10243 2004-03-26 David Carlton <carlton@kealia.com>
10244
10245 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10246
10247 2004-03-25 Andrew Cagney <cagney@redhat.com>
10248
10249 * PROBLEMS: Add general section titles, remove references to
10250 specific releases.
10251
10252 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10253
10254 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10255 INT_REGISTER_SIZE.
10256 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10257 FP_REGISTER_VIRTUAL_SIZE.
10258 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10259 of DEPRECATED_REGISTER_RAW_SIZE.
10260 (arm_register_type): Add gdbarch argument.
10261 (arm_register_raw_size, arm_register_virtual_size): Delete.
10262 (arm_register_byte, arm_extract_return_value)
10263 (arm_store_return_value, arm_get_longjmp_target): Update references
10264 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10265 (arm_gdbarch_init): Likewise. Don't set
10266 deprecated_register_raw_size, deprecated_register_virtual_size,
10267 deprecated_max_register_raw_size,
10268 deprecated_max_register_virtual_size, or
10269 deprecated_max_register_virtual_type. Do set register_type.
10270 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10271 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10272 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10273 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10274 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10275 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10276 INT_REGISTER_SIZE.
10277 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10278 (remote_rdp_store_register): Likewise.
10279
10280 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10283 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10284 to after osabi initialization.
10285 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10286 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10287 functions.
10288 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10289 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10290 variables.
10291 (mips_linux_init_abi): Append signal trampoline unwinders.
10292
10293 2004-03-24 Andrew Cagney <cagney@redhat.com>
10294
10295 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10296 * tramp-frame.c: Include "gdb_assert.h".
10297 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10298 correct sizeof.
10299 (tramp_frame_append): Validate the tramp frame's instructions.
10300 * Makefile.in (tramp-frame.o): Update dependencies.
10301
10302 2004-03-23 Andrew Cagney <cagney@redhat.com>
10303
10304 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10305
10306 2004-03-23 Andrew Cagney <cagney@redhat.com>
10307
10308 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10309 Nasser as past testsuite/lib/ (and other) maintainers.
10310
10311 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10312
10313 * infcmd.c (attach_command): Reread symbols if we already have
10314 an exec file.
10315
10316 2004-03-23 Andrew Cagney <cagney@redhat.com>
10317
10318 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10319
10320 2004-03-23 Andrew Cagney <cagney@redhat.com>
10321
10322 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10323 * gdbarch.h, gdbarch.c: Re-generate.
10324 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10325 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10326 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10327 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10328 (DEPRECATED_SIGTRAMP_START): Update.
10329 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10330 (DEPRECATED_SIGTRAMP_START): Update.
10331 * blockframe.c (find_pc_sect_partial_function): Update.
10332 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10333
10334 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10335
10336 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10337 if necessary.
10338
10339 2004-03-23 Andrew Cagney <cagney@redhat.com>
10340
10341 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10342 predicate, deprecate.
10343 * gdbarch.h, gdbarch.c: Re-generate.
10344 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10345 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10346 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10347 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10348 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10349 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10350 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10351 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10352 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10353 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10354 * blockframe.c (find_pc_partial_function): Update.
10355 * breakpoint.c (bpstat_what): Update.
10356 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10357 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10358 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10359 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10360 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10361 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10362 * i386-nto-tdep.c (i386nto_init_abi): Update.
10363 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10364 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10365 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10366 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10367 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10368 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10369 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10370 * infrun.c (pc_in_sigtramp): Update.
10371 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10372 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10373 * mips-tdep.c (mips_gdbarch_init): Update.
10374 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10375 * ppc-linux-tdep.c: Update comment.
10376 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10377 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10378 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10379 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10380 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10381 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10382 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10383 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10384 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10385 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10386
10387 2004-03-23 Andrew Cagney <cagney@redhat.com>
10388
10389 * tramp-frame.h, tramp-frame.h: New files.
10390 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10391 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10392
10393 * Makefile.in: Update all dependencies.
10394
10395 2004-03-23 Andrew Cagney <cagney@redhat.com>
10396
10397 * Makefile.in (trad_frame_h): Add $(frame_h).
10398 * trad-frame.h: Update copyright. Include "frame.h".
10399 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10400 (trad_frame_set_id, trad_frame_get_id): Declare.
10401 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10402 * trad-frame.c: Update copyright.
10403 (struct trad_frame_cache): Define.
10404 (trad_frame_cache_zalloc): New function.
10405 (trad_frame_set_id, trad_frame_get_id): New functions.
10406 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10407
10408 2004-03-22 Andrew Cagney <cagney@redhat.com>
10409
10410 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10411 s390_pltstub_unwind_cache.
10412 (s390_stub_frame_unwind_cache): Rename
10413 s390_pltstub_frame_unwind_cache.
10414 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10415 (s390_stub_frame_prev_register): Rename
10416 s390_pltstub_frame_prev_register.
10417 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10418 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10419
10420 From Ulrich Weigand:
10421 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10422 pointer calls like PLT calls.
10423
10424 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10427 PC rather than the partial function start address. Use the start
10428 address to sanity check the found PDR.
10429
10430 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10431
10432 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10433 linux_handle_extended_wait.
10434
10435 2004-03-22 Andrew Cagney <cagney@redhat.com>
10436
10437 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10438 function.
10439
10440 * frame.h (generic_pop_current_frame): Delete declaration.
10441 (deprecate_pop_dummy_frame): Deprecate
10442 generic_pop_dummy_frame.
10443 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10444 (generic_pop_current_frame): Delete function.
10445 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10446 generic_pop_current_frame.
10447 * v850-tdep.c (v850_pop_frame): Update.
10448 * mcore-tdep.c (mcore_pop_frame): Update.
10449 * sh64-tdep.c (sh64_pop_frame): Update.
10450 * h8300-tdep.c (h8300_pop_frame): Update.
10451
10452 2004-03-22 Andrew Cagney <cagney@redhat.com>
10453
10454 * frame.h (deprecated_pc_in_call_dummy): Rename
10455 generic_pc_in_call_dummy.
10456 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10457 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10458 generic_pc_in_call_dummy.
10459 (pc_in_dummy_frame): Make static.
10460 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10461 * gdbarch.h, gdbarch.c: Re-generate.
10462 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10463 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10464 (legacy_get_prev_frame): Ditto.
10465 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10466 comment.
10467
10468 2004-03-21 Andrew Cagney <cagney@redhat.com>
10469
10470 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10471 declaration and out-of-date comment.
10472 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10473 Delete function.
10474 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10475 deprecated_pc_in_call_dummy.
10476
10477 * infrun.c (handle_inferior_event): For non legacy frames, use the
10478 frame ID and frame type to identify a signal trampoline. Update
10479 comments.
10480
10481 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10482
10483 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10484 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10485
10486 2004-03-21 Andrew Cagney <cagney@redhat.com>
10487
10488 * frame-unwind.h: Update copyright.
10489 (struct frame_data): Add opaque declaration.
10490 (frame_sniffer_ftype): Declare.
10491 (struct frame_unwind): Add "unwind_data" and "sniffer".
10492 (frame_unwind_register_unwinder): Declare.
10493 (frame_unwind_find_by_frame): Add parameter "this_cache".
10494 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10495 (legacy_get_prev_frame, legacy_get_prev_frame)
10496 (get_frame_type): Pass the prologue_cache to
10497 frame_unwind_find_by_frame.
10498 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10499 "unwinder".
10500 (frame_unwind_register_unwinder): New function.
10501 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10502
10503 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10504
10505 * bcache.c (print_percentage): Use floating point to avoid
10506 incorrect results when portion*100 overflows.
10507
10508 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10509
10510 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10511 (ppc_linux_init_extra_frame_info)
10512 (ppc_linux_frameless_function_invocation)
10513 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10514 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10515 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10516 (rs6000_frame_chain): Delete declarations.
10517 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10518 (ppc_linux_init_extra_frame_info)
10519 (ppc_linux_frameless_function_invocation)
10520 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10521 (ppc_linux_init_abi): Remove registration of above deleted functions.
10522 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10523 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10524 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10525 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10526 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10527 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10528 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10529 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10530 frame management for all OSABIs.
10531
10532 2004-03-19 Andrew Cagney <cagney@redhat.com>
10533
10534 Committed by Kevin Buettner <kevinb@redhat.com>.
10535
10536 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10537 Update copyright.
10538 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10539 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10540 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10541 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10542 unwinders. #ifdef legacy frame code.
10543 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10544 "frame-base.h".
10545 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10546 (struct rs6000_frame_cache, rs6000_frame_cache)
10547 (rs6000_frame_this_id, rs6000_frame_prev_register)
10548 (rs6000_frame_sniffer, rs6000_frame_unwind)
10549 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10550 (rs6000_frame_base): Implement a traditional frame unwinder.
10551 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10552 frame unwinder.
10553
10554 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10555
10556 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10557 breakpoint address for watchpoints or the catch eventpoints.
10558 Add new paramter ``bptype''. Adjust all callers.
10559
10560 2004-03-19 Andrew Cagney <cagney@redhat.com>
10561
10562 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10563
10564 * PROBLEMS: Delete note that ARM does not use frame code, problem
10565 fixed.
10566
10567 2004-03-18 Andrew Cagney <cagney@redhat.com>
10568
10569 * stack.c (return_command): Delete code wrapped in #ifdef
10570 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10571
10572 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10573
10574 2004-03-18 Andrew Cagney <cagney@redhat.com>
10575
10576 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10577 DEPRECATED_IN_SIGTRAMP.
10578 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10579 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10580 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10581 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10582 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10583 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10584 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10585 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10586 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10587 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10588
10589 2004-03-18 Andrew Cagney <cagney@redhat.com>
10590
10591 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10592 (struct frame_base_table_entry): Define.
10593 (struct frame_base_table): Re-implement as a linked list.
10594 (frame_base_init): Re-implement.
10595 (frame_base_table): Delete function.
10596 (append_predicate): Delete function.
10597 (frame_base_append_sniffer): Update.
10598 (frame_base_set_default): Update.
10599 (frame_base_find_by_frame): Update.
10600 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10601 * Makefile.in (frame-base.o): Update dependencies.
10602
10603 2004-03-17 Andrew Cagney <cagney@redhat.com>
10604
10605 * frame.c (legacy_get_prev_frame): Pass correct frame to
10606 frame_unwind_find_by_frame.
10607
10608 2004-03-17 David Carlton <carlton@kealia.com>
10609
10610 * NEWS: Mention C++ nested types and namespaces
10611
10612 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10613
10614 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10615 and "Regressions since gdb 5.3.". Add known regressions since
10616 gdb 6.0.
10617
10618 2004-03-16 David Carlton <carlton@kealia.com>
10619
10620 * dwarf2read.c (process_structure_scope): Process children even
10621 when we're a declaration.
10622
10623 2004-03-16 Andrew Cagney <cagney@redhat.com>
10624
10625 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10626 * blockframe.c (find_pc_partial_function)
10627 (find_pc_sect_partial_function): Merge into a single
10628 find_pc_partial_function.
10629
10630 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10631
10632 * i386bsd-nat.c: s/regno/regnum/g.
10633 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10634 FP0_REGNUM.
10635 (store_inferior_registers): Likewise.
10636
10637 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10638
10639 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10640 of i387_fill_fsave.
10641 (store_inferior_registers): Call i387_collect_fsave and
10642 i387_collect_fxsave instead of i387_fill_fsave and
10643 i387_fill_fxsave.
10644
10645 2004-03-15 Andrew Cagney <cagney@redhat.com>
10646
10647 * Makefile.in (frame-unwind.o): Update dependencies.
10648 * frame-unwind.c: Include "gdb_obstack.h".
10649 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10650 parameter.
10651 (append_predicate): Delete function.
10652 (struct frame_unwind_table_entry): New structure.
10653 (struct frame_unwind_table): Replace "sniffer" with "head" and
10654 "tail".
10655 (frame_unwind_append_sniffer): Update.
10656 (frame_unwind_find_by_frame): Update.
10657 (_initialize_frame_unwind): Registe frame_unwind_init using
10658 gdbarch_data_register_pre_init.
10659
10660 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10661
10662 * i386bsd-nat.c: Update copyright year.
10663 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10664 define unconditionally.
10665
10666 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10667
10668 * i387-tdep.h (i387_collect_fsave): New prototype.
10669 * i387-tdep.c (i387_collect_fsave): New function containing most
10670 of the code from i387_fill_fsave.
10671 (i387_fill_fsave): Call i387_collect_fsave.
10672
10673 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10674
10675 * i386-linux-tdep.c: Update copyright year.
10676 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10677 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10678 svr4_ilp32_link_map_offsets instead of
10679 i386_linux_svr4_fetch_link_map_offsets.
10680
10681 2004-03-15 David Carlton <carlton@kealia.com>
10682
10683 Fix for PR c++/1553:
10684 * dwarf2read.c (read_structure_type): Determine type name by
10685 calling determine_class_name.
10686 (determine_class_name): New.
10687 (determine_prefix): Look at TYPE_TAG_NAME and call
10688 determine_class_name when appropriate.
10689 (determine_prefix_aux, class_name): Delete.
10690 (read_namespace): Set die->type.
10691
10692 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10693
10694 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10695 unused macro definition. The definition in target.h (or perhaps
10696 elsewhere) takes precedence.
10697
10698 2004-03-15 Andrew Cagney <cagney@redhat.com>
10699
10700 * ppc-tdep.h: Update copyright.
10701 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10702 function signatures to match "regsets.h".
10703 * ppc-linux-tdep.c: Include "regset.h".
10704 (ELF_GREGSET_SIZE): Delete.
10705 (right_supply_register): New function.
10706 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10707 using right_supply_register.
10708 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10709 functions.
10710 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10711 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10712 (_initialize_ppc_linux_tdep): Do not register
10713 ppc_linux_regset_core_fns.
10714 (ppc_linux_regset_from_core_section): Replace
10715 fetch_core_registers.
10716 (ppc_linux_regset_core_fns): Delete.
10717 * ppc-linux-nat.c: (right_fill_reg): New function.
10718 (supply_gregset): Update call to ppc_linux_supply_gregset.
10719 (fill_gregset): Clear the register set, use right_fill_reg.
10720 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10721 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10722
10723 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10724 unsigned.
10725
10726 2004-03-15 Andrew Cagney <cagney@redhat.com>
10727
10728 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10729 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10730 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10731 and register_gdbarch_data.
10732 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10733 (struct gdbarch_data): Replace "init" by "pre_init" and
10734 "post_init".
10735 * gdbarch.h, gdbarch.c: Re-generate.
10736 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10737 with"obstack", use OBSTACK_ZALLOC.
10738 (dwarf2_frame_ops): Delete.
10739 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10740 (dwarf2_frame_init_reg): Use gdbarch_data.
10741 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10742 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10743 (_initialize_svr4_solib): Update.
10744 * user-regs.c (_initialize_user_regs): Update.
10745 * reggroups.c (_initialize_reggroup): Update.
10746 * regcache.c (_initialize_regcache): Update.
10747 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10748 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10749 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10750 * frame-unwind.c (_initialize_frame_unwind): Update.
10751 * frame-base.c (_initialize_frame_base): Update.
10752 * user-regs.c (user_reg_add): Update.
10753 * reggroups.c (reggroup_add): Update.
10754 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10755 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10756 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10757 * frame-base.c (frame_base_table): Update.
10758 * remote.c (_initialize_remote): Update.
10759 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10760
10761 2004-03-15 Andrew Cagney <cagney@redhat.com>
10762
10763 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10764
10765 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10766
10767 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10768 * frv-linux-tdep.c: New file.
10769 * frv-tdep.c (struct gdbarch_tdep): Add new field
10770 ``sigcontext_reg_addr''.
10771 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10772 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10773 (frv_sigramp_frame_sniffer): New functions.
10774 (frv_sigtramp_frame_unwind): New static global.
10775 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10776 sniffers.
10777 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10778 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10779
10780 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10781
10782 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10783 but not via a call to error(), when unable to read memory.
10784
10785 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10786
10787 * frv-tdep.c (frv_call_dummy_words): Delete.
10788 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10789
10790 2004-03-15 Andrew Cagney <cagney@redhat.com>
10791
10792 * infrun.c (handle_step_into_function, step_over_function): Only
10793 update and use STEP_FRAME_ID when the system is using legacy
10794 frames. Update comments.
10795
10796 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10797
10798 * amd64-linux-tdep.h: Remove file.
10799 * amd64-linux-tdep.c: Don't include "inferior.h" and
10800 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10801 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10802 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10803 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10804 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10805 macros.
10806 (user_to_gdb_regmap): Remove variable.
10807 (amd64_linux_gregset_reg_offset): New variable.
10808 (amd64_core_fns): Remove variable.
10809 (fetch_core_registers): Remove function.
10810 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10811 functions.
10812 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10813 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10814 * Makefile.in (amd64_linux_tdep_h): Remove.
10815 (amd64-linux-nat.o): Update dependencies.
10816 (amd64-linux-tdep.o): Update dependencies.
10817
10818 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10819 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10820 functions.
10821 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10822
10823 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10824 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10825
10826 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * dwarf2read.c (read_structure_type): Rename from
10829 read_structure_scope. Don't create a symbol or call process_die.
10830 Return immediately if die->type is set. Call read_type_die before
10831 dwarf2_add_member_fn.
10832 (process_structure_scope): New function.
10833 (read_enumeration_type, process_enumeration_scope): New functions,
10834 broken out from read_enumeration. Don't create the enumeration
10835 type if it has already been created.
10836 (read_enumeration): Removed.
10837 (process_die): Call read_structure_type, process_structure_scope,
10838 read_enumeration_type, and process_enumeration_scope. Just call
10839 new_symbol for base and subrange types. Add a comment about other
10840 type dies.
10841 (read_type_die): Call read_enumeration_type.
10842 (add_partial_structure, new_symbol): Update comments.
10843
10844 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10845
10846 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10847
10848 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10849
10850 * tui/tui-win.h (tui_get_cmd_list): Declare.
10851 * tui/tui-win.c (tui_command): New function.
10852 (tui_get_cmd_list): New function.
10853 (_initialize_tui_win): Moved initialization of tui command in
10854 tui_get_cmd_list.
10855
10856 * tui/tui-data.c (init_content_element): Setup new data members.
10857 (init_win_info): Likewise.
10858 (free_content_elements): Free it.
10859 * tui/tui-data.h (struct tui_data_element): Store the register
10860 content to print.
10861 (struct tui_data_info): Keep the current register group.
10862
10863 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10864
10865 * tui/tui-regs.h (tui_show_registers): Update prototype.
10866 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10867 (tui_resize_all): No need to calculate anything for register window.
10868 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10869 (tui_set_register_element, tui_set_general_regs_content): Remove.
10870 (tui_set_special_regs_content): Remove.
10871 (tui_set_general_and_special_regs_content): Remove.
10872 (tui_set_float_regs_content): Remove.
10873 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10874 (tui_set_regs_content): Remove.
10875 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10876 (tui_v_show_registers_command_support): Remove.
10877 (tui_show_registers): Use a reggroup to specify the registers to show.
10878 (tui_show_register_group): New function.
10879 (tui_display_registers_from): Compute the layout of register window
10880 and refresh with new API; be sure to delete old register windows.
10881 (tui_check_register_values): Update to use tui_get_register and
10882 tui_display_data.
10883 (tui_display_register): Just refresh the register window part.
10884 (tui_register_format): Format registers and save in tui_data_element.
10885 (tui_get_register): New to combine tui_reg_value_has_changed and
10886 tui_get_register_raw_value; fix to use the new gdb API.
10887 (tui_show_float_command): Renamed tui_reg_float_command.
10888 (tui_show_general_command): Renamed tui_reg_general_command.
10889 (tui_show_special_command): Renamed tui_reg_system_command.
10890 (_initialize_tui_regs): Remove unused commands.
10891
10892 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10893
10894 * NEWS (New native configurations): Mention OpenBSD/amd64.
10895
10896 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10897 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10898 Remove defines.
10899 * config/i386/nm-fbsd64.h: Likewise.
10900 * config/i386/nm-obsd.h: Likewise.
10901 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10902 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10903
10904 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10905
10906 * frv-tdep.c (set_variant_scratch_registers): New function.
10907 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10908 New constants.
10909
10910 From Richard Sandiford <rsandifo@redhat.com>:
10911 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10912
10913 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10914
10915 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10916 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10917 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10918 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10919 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10920 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10921 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10922 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10923 definitions from frv-tdep.c to frv-tdep.h.
10924
10925 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10926
10927 Add shared library support for FR-V FDPIC ABI:
10928 * Makefile.in (solib-frv.o): Add dependencies.
10929 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10930 New functions.
10931 (frv_push_dummy_call): Add support for FDPIC ABI.
10932 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10933 for FDPIC ABI.
10934 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10935 (frv_fdpic_find_canonical_descriptor): Declare.
10936 * solib-frv.c: New file.
10937 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10938 * config/frv/tm-frv.h (solib.h): Include.
10939
10940 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10941
10942 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10943 (frv-tdep.o): Update dependencies.
10944 * frv-tdep.h: New file.
10945 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10946 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10947 constants.
10948 (struct gdbarch_tdep): Add new member ``frv_abi''.
10949 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10950 functions.
10951 (new_variant): Set ``frv_abi'' field.
10952 (gdb_arch_init): Detect FDPIC executables.
10953
10954 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10955
10956 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10957 wrapper.
10958
10959 2004-03-11 Andrew Cagney <cagney@redhat.com>
10960
10961 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10962
10963 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10964
10965 * solist.h (master_so_list): New function.
10966 * solib.c (master_so_list): Likewise.
10967 * solib-svr4.c (enable_break): Iterate over so_list entries
10968 obtained from master list instead of entries obtained directly
10969 via svr4_current_sos().
10970
10971 2004-03-10 Ben Elliston <bje@gnu.org>
10972
10973 * MAINTAINERS: Update my mail address.
10974
10975 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10976
10977 * remote-m32r-sdi.c: Support hardware watchpoint.
10978
10979 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10980
10981 * user-regs.c: Update copyright years.
10982 (struct user_regs): Rename to gdb_user_regs.
10983 (append_user_reg, builtin_user_regs, user_regs_init)
10984 (user_reg_add, user_reg_map_name_to_regnum)
10985 (usernum_to_user_reg): Update.
10986
10987 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10988
10989 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10990 (skip_children): New functions.
10991 (locate_pdi_sibling): Call skip_children.
10992
10993 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10994
10995 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10996 * gdbtypes.c (check_typedef): Update comments.
10997
10998 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11001 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11002 pointer. Update comment about comp_unit_head.
11003 (struct abbrev_info): Shorten two int flags.
11004 (dwarf_alloc_abbrev): Take a CU argument.
11005 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11006 each time through the loop. Update cleanup argument.
11007 (psymtab_to_symtab_1): Update cleanup call.
11008 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11009 abbrev_obstack.
11010 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11011 Just call obstack_free and clear the pointer.
11012
11013 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * infrun.c (handle_inferior_event): Remove short-circuit code for
11016 events in a different thread.
11017
11018 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11019
11020 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11021 print the whole transfer.
11022 (initialize_targets): Update description of "set debug target".
11023
11024 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11027
11028 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11029
11030 * MAINTAINERS (write after approval): Add myself.
11031
11032 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11033
11034 * sh-tdep.c (sh_print_registers_info): Use for loop.
11035 Don't skip multiple registers when a float register is encountered.
11036
11037 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11038
11039 Fix PR tdep/1291.
11040 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11041 to official SH documentation.
11042
11043 2004-03-07 Andrew Cagney <cagney@redhat.com>
11044
11045 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11046 unused function.
11047
11048 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11049
11050 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11051 (arm_get_next_pc): Handle BX and BLX.
11052
11053 2004-03-07 Andrew Cagney <cagney@redhat.com>
11054
11055 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11056 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11057 HPPA_SP_REGNUM.
11058 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11059 (hppa_target_read_fp): Delete.
11060 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11061 register_virtual_size, max_register_raw_size,
11062 max_register_virtual_size, register_byte, register_size,
11063 target_read_fp, fp_regnum, and register_bytes. Set register_type
11064 instead of register_virtual_type.
11065 (hppa32_register_type, hppa64_register_type): Replace
11066 hppa32_register_virtual_type and hppa64_register_virtual_type.
11067 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11068 (HPPA_FP_REGNUM): Define.
11069
11070 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11071
11072 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11073 (pa_do_registers_info): Delete.
11074 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11075 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11076 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11077
11078 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11079 GDB_TARGET_IS_HPPA code.
11080 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11081 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11082 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11083 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11084 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11085 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11086 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11087 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11088 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11089 (hppa_frameless_function_invocation, hppa64_store_return_value)
11090 (hppa_store_struct_return, hppa64_extract_return_value)
11091 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11092 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11093 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11094 (find_proc_framesize, deposit_21, restore_pc_queue)
11095 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11096 (rp_saved, pc_in_linker_stub): Delete.
11097
11098 Unconditionally enable 64-bit frame and ABI code.
11099 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11100 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11101 push_dummy_frame, fix_call_dummy, push_arguments,
11102 call_dummy_location, extract_return_value, use_struct_convention,
11103 store_return_value, store_struct_return, saved_pc_after_call,
11104 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11105 frame_chain, frame_chain_valid, frameless_function_invocation,
11106 frame_saved_pc, and pop_frame.
11107
11108 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11109 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11110 (hppa_gdbarch_init): Do not set PC_REGNUM.
11111
11112 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11113
11114 * config/alpha/tm-fbsd.h: Remove file.
11115 * config/alpha/fbsd.mt: Tweak comment.
11116 (TM_FILE): Set to tm-alpha.h.
11117
11118 2004-03-05 Andrew Cagney <cagney@redhat.com>
11119
11120 * infrun.c (step_over_function): When non-legacy code, and no
11121 step_frame_id, use the unwinder to get the caller's frame ID.
11122
11123 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11124
11125 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11126 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11127 bfd_arch_unknown. Adjust comment.
11128
11129 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11130 * i386obsd-tdep.c: Correct spelling in comment.
11131 * i386nbsd-tdep.c: Correct spelling in comment.
11132 * sparc-tdep.c: Correct spelling in comments.
11133
11134 2004-03-05 David Carlton <carlton@kealia.com>
11135
11136 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11137 bug.
11138
11139 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11140
11141 * sparc-tdep.c: Fix typo in comment.
11142
11143 2004-03-04 J. Brobecker <brobecker@gnat.com>
11144
11145 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11146
11147 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11148
11149 * dwarf2read.c: Add comment describing memory lifetimes.
11150 (struct dwarf2_pinfo): Update comment.
11151 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11152 (read_enumeration, new_symbol): Don't use obsavestring.
11153
11154 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11155
11156 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11157 instead of amd64_fill_fxsave.
11158 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11159 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11160
11161 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11162 Reorganize code a bit.
11163
11164 2004-03-04 Orjan Friberg <orjanf@axis.com>
11165
11166 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11167 when the frame pointer is pushed. Don't set the frame pointer's
11168 address on the stack unless it's actually located there.
11169 Set the SRP's address on the stack correctly when the PC is still in
11170 the prologue.
11171 (cris_return_value): New function.
11172 (cris_gdbarch_init): Clear deprecated store_return_value,
11173 extract_return_value.
11174
11175 2004-03-02 Jim Blandy <jimb@redhat.com>
11176
11177 * stabsread.c (reg_value_complaint): The maximum register number
11178 is one less than the number of registers.
11179
11180 2004-03-02 Andrew Cagney <cagney@redhat.com>
11181
11182 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11183 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11184 trailing comma and redundant assignment of I386_ST0_REGNUM.
11185 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11186 32-bit segment registers.
11187
11188 2004-03-01 Andrew Cagney <cagney@redhat.com>
11189
11190 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11191 use frame_relative_level and get_next_frame.
11192
11193 2004-02-29 Andrew Cagney <cagney@redhat.com>
11194
11195 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11196 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11197 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11198 Delete macro.
11199
11200 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11201
11202 * inflow.c (terminal_inferior): Don't give up the terminal if we
11203 previously couldn't get the inferior's terminal state.
11204
11205 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11206
11207 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11208 PC_REGNUM.
11209
11210 2004-02-28 Andrew Cagney <cagney@redhat.com>
11211
11212 * NEWS: Refer to GDB 6.1.
11213 * README: Refer to GDB 6.1.
11214 * PROBLEMS: Refer to GDB 6.1.
11215
11216 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * thread-db.c (disable_thread_signals): Remove unused function.
11219
11220 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11221
11222 * amd64-nat.c: Include "gdb_string.h".
11223 (amd64_collect_native_gregset): Zero-extend the 32-bit
11224 general-purpose registers and %eip.
11225
11226 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11227 * amd64-tdep.c (amd64_collect_fxsave): New function.
11228 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11229
11230 * i387-tdep.h: Update copyright year.
11231 (i387_collect_fxsave): New prototype.
11232 * i387-tdep.c: Update copyright year.
11233 (i387_collect_fxsave): New function containing most of the code
11234 from i387_fill_fxsave.
11235 (i387_fill_fxsave): Call i387_collect_fxsave.
11236
11237 2004-02-28 Andrew Cagney <cagney@redhat.com>
11238
11239 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11240 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11241
11242 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11243
11244 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11245
11246 2004-02-28 Andrew Cagney <cagney@redhat.com>
11247
11248 * utils.c: Use "", instead of <>, to include readline.
11249 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11250 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11251 * source.c, solib.c, exec.c, event-top.c: Ditto.
11252 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11253 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11254 * Makefile.in: Update all dependencies.
11255 (readline_tilde_h, readline_history_h): Define.
11256 (readline_headers): Delete.
11257
11258 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11259
11260 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11261 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11262 "config/i386/tm-lx64.h".
11263
11264 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11265 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11266 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11267
11268 2004-02-28 Andrew Cagney <cagney@redhat.com>
11269
11270 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11271
11272 * breakpoint.c (_initialize_breakpoint): Use
11273 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11274 Add help to show command.
11275
11276 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11277
11278 * i386-nat.c: Reformat to be closer to coding standards.
11279 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11280 `retval'. Make variables `align' and `size' local to while-loop.
11281 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11282 (_initialize_i386_nat): New prototype.
11283
11284 * tui/tui.c: Include <readline/readline.h> instead of
11285 "readline/readline.h". Include it after <term.h> and
11286 "gdb_curses.h".
11287
11288 2004-02-27 Andrew Cagney <cagney@redhat.com>
11289
11290 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11291 the new frame unwind code.
11292 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11293 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11294 PCOQ_HEAD_REGNUM.
11295
11296 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11297 "return_value" and "push_dummy_call".
11298 (hppa32_use_struct_convention): Delete unused function.
11299 (hppa32_store_return_value): Delete unused function.
11300 (hppa32_extract_return_value): Delete unused function.
11301 (hppa32_stack_align): Delete function.
11302
11303 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11304
11305 * coffread.c (enter_linenos): Don't let rawptr reference memory
11306 outside linetab[]'s limits.
11307
11308 2004-02-27 Andrew Cagney <cagney@redhat.com>
11309
11310 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11311 inferior stack space - the stack needs to grow upwards.
11312 (hppa32_frame_align): New function.
11313 (hppa64_frame_align): Replace hppa_frame_align.
11314 (hppa_gdbarch_init): Update.
11315
11316 2004-02-26 Orjan Friberg <orjanf@axis.com>
11317
11318 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11319 (dwarf2-frame.h): Include.
11320 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11321 Remove static variables related to ABI setting.
11322 (struct gdbarch_tdep): Remove cris_abi member.
11323 (struct frame_extra_info): Remove.
11324 (cris_unwind_cache, stack_item): New structs.
11325 (cris_frame_unwind, cris_frame_base): New variables.
11326 (push_stack_item, pop_stack_item)
11327 (cris_frame_unwind_cache, cris_frame_this_id)
11328 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11329 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11330 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11331 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11332 (cris_reg_struct_has_addr): New functions.
11333 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11334 (cris_frame_saved_pc, cris_saved_pc_after_call,
11335 (cris_store_struct_return, cris_frameless_function_invocation)
11336 (cris_pop_frame, cris_skip_prologue_main)
11337 (cris_abi_original_store_return_value)
11338 (cris_abi_v2_store_return_value)
11339 (cris_abi_original_extract_return_value)
11340 (cris_abi_v2_extract_return_value)
11341 (cris_abi_original_reg_struct_has_addr)
11342 (cris_abi_v2_reg_struct_has_addr)
11343 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11344 (cris_push_return_address, cris_abi_update): Remove.
11345 (_initialize_cris_tdep): Remove ABI command.
11346 (cris_dump_tdep): Ditto.
11347 (cris_gdbarch_init): Remove ABI command.
11348 Set store_return_value, extract_return_value, push_dummy_code,
11349 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11350 frame_unwind_append_sniffer, frame_base_set_default.
11351 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11352 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11353 sizeof_call_dummy_words, get_saved_register, push_return_address,
11354 pop_frame, store_struct_return, frame_init_saved_regs,
11355 init_extra_frame_info, frameless_function_invocation, frame_chain,
11356 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11357 dummy_write_sp.
11358
11359 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11360
11361 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11362 * valprint.c (print_hex_chars): Change from static to external.
11363 (print_char_chars): New function.
11364 * printcmd.c (print_scalar_formatted): For integer and enum types
11365 that are longer than LONGEST, perform processing via appropriate
11366 print_*_chars routines.
11367
11368 2004-02-26 Andrew Cagney <cagney@redhat.com>
11369
11370 * Makefile.in: Update dependencies.
11371 Changes from Ulrich Weigand,
11372 * s390-tdep.c: Include "dwarf2-frame.h".
11373 (s390_dwarf2_frame_init_reg): New function.
11374 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11375 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11376
11377 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11378
11379 * breakpoint.c (pending_break_support): New setting variable.
11380 (break_command_1): Account for pending_break_support setting
11381 when creating pending breakpoints.
11382 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11383 (_initialize_breakpoint): Add "set breakpoint pending" and
11384 "show breakpoint pending" commands.
11385
11386 2004-02-26 Andrew Cagney <cagney@redhat.com>
11387
11388 Fix PR i18n/1570.
11389 * charset.c (backslashable, backslashed, represented): Remove 'e'
11390 from list of escaped characters, not part of ISO-C.
11391
11392 2004-02-25 J. Brobecker <brobecker@gnat.com>
11393
11394 From Peter Schauer <schauer@pdf.de>:
11395 * tui/tui.c: Move system header includes after local includes.
11396 Fixes a build failure on solaris systems.
11397
11398 2004-02-25 J. Brobecker <brobecker@gnat.com>
11399
11400 * configure.in: Refine the previous change.
11401 * configure: Regenerate.
11402
11403 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11404
11405 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11406 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11407 "amd64-tdep.h" instead of "x86-64-tdep.h".
11408 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11409 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11410 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11411 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11412 and "x86-64-tdep.c".
11413 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11414 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11415 and "x86-64-tdep.c".
11416 * amd64bsd-nat.c: Update copyright year.
11417 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11418 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11419 "x86-64-tdep.h".
11420 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11421 "x86-64-tdep.h".
11422 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11423 "x86-64-tdep.h".
11424 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11425 "x86-64-tdep.h".
11426 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11427 "x86-64-tdep.h".
11428 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11429 "x86-64-tdep.h".
11430 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11431 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11432 * Makefile.in (amd64_linux_tdep_h): Renamed from
11433 x86_64_linux_tdep_h.
11434 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11435 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11436 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11437 (amd64obsd-tdep.o): Update dependencies.
11438 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11439 dependencies.
11440 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11441 dependencies.
11442 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11443 amd64-linux-nat.c amd64-linux-tdep.c.
11444 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11445 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11446 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11447 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11448 amd64-tdep.o and amd64-linux-tdep.o.
11449 (TM_FILE): Set to tm-linux64.h.
11450 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11451 (NAT_FILE): Set to nm-linux64.h.
11452 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11453 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11454 amd64-tdep.o.
11455 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11456 amd64-tdep.o.
11457 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11458 amd64-tdep.o.
11459
11460 2004-02-25 Roland McGrath <roland@redhat.com>
11461
11462 * remote.c (remote_protocol_qPart_auxv): New variable.
11463 (init_all_packet_configs): Initialize it.
11464 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11465 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11466 (show_remote_cmd): Call it.
11467 (_initialize_remote): Initialize commands.
11468 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11469 service TARGET_OBJECT_AUXV requests.
11470
11471 2004-02-25 J. Brobecker <brobecker@gnat.com>
11472
11473 * configure.in: Make sure that the wborder function is available.
11474 Otherwise, search for it in the cur_colr library.
11475 * configure: Regenerate.
11476
11477 2004-02-25 Andrew Cagney <cagney@redhat.com>
11478
11479 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11480
11481 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11482
11483 * config/i386/tm-x86-64linux.h: Tweak comments.
11484
11485 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11486
11487 * MAINTAINERS: Add self to write-after-approval list.
11488
11489 2004-02-25 Andrew Cagney <cagney@redhat.com>
11490
11491 PR cli/1566. Problem found, and fix suggested by David Allan.
11492 * cli/cli-script.c (execute_control_command): Unconditionally
11493 install a cleanup. Default "ret" to "invalid_control". Use
11494 "break" instead of "return" to escape from the switch.
11495
11496 2004-02-24 J. Brobecker <brobecker@gnat.com>
11497
11498 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11499 with the lines macro defined in term.h on AiX.
11500 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11501 a collision with the label_width macro defined in term.h on AiX.
11502
11503 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11504
11505 Committed by Kevin Buettner <kevinb@redhat.com>.
11506
11507 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11508 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11509 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11510 instead of ia64_write_pc().
11511 * ia64-linux-tdep.c (regcache.h): Include.
11512 (ia64_linux_write_pc): New function.
11513
11514 2004-02-23 Roland McGrath <roland@redhat.com>
11515
11516 * auxv.c (info_auxv_command): Fix typos in error messages.
11517
11518 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11519
11520 * x86-64-tdep.h: Tweak comment.
11521 (enum amd64_regnum): New.
11522 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11523 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11524 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11525 (X86_64_XMM1_REGNUM): Removed.
11526 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11527 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11528 prototypes for renamed functions.
11529 * x86-64-tdep.c: Fix typo.
11530 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11531 register numbers.
11532 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11533 Use constants from `enum amd64_regnum' for register numbers.
11534 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11535 (amd64_analyze_prologue, amd64_frame_cache,
11536 amd64_sigtramp_frame_cache): Use constants from `enum
11537 amd64_regnum' for register numbers.
11538 (amd64_supply_fpregset): Adjust for renamed functions.
11539 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11540 `enum amd64_regnum' for register numbers.
11541 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11542 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11543 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11544 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11545 (amd64_linux_fill_gregset): Adjust for renamed macros.
11546 (fetch_core_registers): Adjust for renamed functions.
11547 (amd64_linux_init_abi): Adjust for renamed functions.
11548 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11549 renamed functions.
11550 * amd64-nat.c: Adjust for renamed macros.
11551 * amd64bsd-nat.c (fetch_inferior_registers)
11552 (store_inferior_registers): Use constants from `enum amd64_regnum'
11553 for register numbers. Adjust for renamed variables.
11554 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11555 renamed variables.
11556 (_initialize_amd64fbsd_nat): Use constants from `enum
11557 amd64_regnum' for register numbers.
11558 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11559 `enum amd64_regnum' for register numbers.
11560 (amd64fbsd_init_abi): Adjust for renamed functions.
11561 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11562 `enum amd64_regnum' for register numbers.
11563 (amd64nbsd_init_abi): Adjust for renamed functions.
11564 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11565 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11566 `enum amd64_regnum' for register numbers.
11567 (amd64obsd_init_abi): Adjust for renamed functions.
11568 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11569
11570 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11571
11572 * breakpoint.c (print_one_breakpoint): Do not output spaces
11573 after printing <PENDING> for a pending breakpoint.
11574
11575 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11576
11577 * printcmd.c (print_scalar_formatted): Initialize val_long
11578 to remove compiler warning message.
11579
11580 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11581
11582 * defs.h (nquery, yquery): New prototypes.
11583 * breakpoint.c (break_command_1): Use new nquery interface.
11584 * utils.c (defaulted_query, nquery, yquery): New functions.
11585
11586 2004-02-23 Andrew Cagney <cagney@redhat.com>
11587
11588 * hppa-tdep.c (hppa_frame_align): New function.
11589 (hppa32_push_dummy_call): New function.
11590 (hppa64_push_dummy_call): New function.
11591 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11592 disabled.
11593
11594 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11595 FIX_CALL_DUMMY when push_dummy_call is available.
11596 (call_function_by_hand, push_dummy_code): Ditto.
11597
11598 2004-02-22 Andrew Cagney <cagney@redhat.com>
11599
11600 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11601 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11602 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11603 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11604 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11605 call_dummy_location to ON_STACK.
11606
11607 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11608
11609 * x86-64-linux-tdep.c: Tweak comment.
11610 (amd64_linux_supply_gregset): Renamed from
11611 x86_64_linux_supply_gresget.
11612 (amd64_linux_fill_gregset): Renamed from
11613 x86_64_linux_fill_gregset.
11614 (fetch_core_registers): Adjust for renamed functions.
11615 (amd64_core_fns): Renamed from x86_64_core_fns.
11616 (amd64_linux_sigtramp_start): Renamed from
11617 x86_64_linux_sigtramp_start.
11618 (amd64_linux_pc_in_sigtramp): Renamed from
11619 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11620 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11621 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11622 (amd64_linux_sigcontext_addr): Renamed from
11623 x86_64_linux_sigcontext_addr.
11624 (amd64_linux_sc_reg_offset): Renamed from
11625 x86_64_linux_sc_reg_offset.
11626 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11627 Adjust for renamed functions and variables.
11628 (_initialize_amd64_linux_tdep): Renamed from
11629 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11630 variables.
11631 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11632 Adjust for renamed functions.
11633
11634 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11635 from x86_64_linux_gregset64_reg_offset.
11636 (amd64_linux_gregset32_reg_offset): Rename from
11637 x86_64_linux_gregset64_reg_offset.
11638 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11639 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11640 (amd64_linux_dr_set_control): Renamed from
11641 x86_64_linux_dr_set_control. Adjust for renamed functions.
11642 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11643 Adjust for renamed functions.
11644 (amd64_linux_dr_reset_addr): Renamed from
11645 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11646 (amd64_linux_dr_get_status): Renamed from
11647 x86_64_linux_dr_get_status. Adjust for renamed functions.
11648 (_initialize_amd64_linux_nat): Renamed from
11649 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11650 functions.
11651 * config/i386/nm-x86-64linux.h: Update copyright year.
11652 Adjust for renamed functions.
11653
11654 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11655 amd64fbsd_sigtramp_start.
11656 (amd64fbsd_sigtramp_end_addr): Renamed from
11657 amd64fbsd_sigtramp_end.
11658 (amd64fbsd_init_abi): Adjust for renamed variables.
11659 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11660 variables.
11661 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11662 amd64fbsd_sigtramp_start.
11663 (amd64fbsd_sigtramp_end_addr): Renamed from
11664 amd64fbsd_sigtramp_end.
11665
11666 2004-02-22 Andrew Cagney <cagney@redhat.com>
11667
11668 * hppa-tdep.c (hppa32_return_value): New function.
11669 (hppa64_return_value): New function.
11670 (hppa_gdbarch_init): Set return_value; keep disabled.
11671
11672 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11673 struct-return and inferior function call methods.
11674
11675 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11676 "frame-base.h".
11677 (struct hppa_frame_cache): Define.
11678 (hppa_frame_cache, hppa_frame_this_id): New functions.
11679 (hppa_frame_prev_register): New function.
11680 (hppa_frame_unwind, hppa_frame_base): New variables.
11681 (hppa_frame_unwind_sniffer): New function.
11682 (hppa_frame_base_address, hppa_unwind_pc): New function.
11683 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11684 sniffer, and frame base sniffer; keep disabled.
11685 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11686 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11687
11688 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11689 to predicates for "seriously old code".
11690
11691 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11692 runtime if(0).
11693
11694 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11695 unsigned.
11696 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11697
11698 * config/pa/tm-hppa.h: Update copyright.
11699 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11700 (deprecated_init_frame_pc_default): Delete declaration.
11701 (hppa_frame_init_saved_regs): Delete declaration.
11702 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11703 * hppa-tdep.c: Include "arch-utils.h".
11704 (hppa_gdbarch_init): Set deprecated init_frame_pc
11705 and deprecated frame_init_saved_regs.
11706 (hppa_frame_init_saved_regs): Make static.
11707
11708 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11709
11710 Remove old 386BSD support.
11711 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11712 * configure.host: Remove i[34567]86-*-bsd*.
11713 * configure.tgt: Remove i[34567]86-*-bsd*.
11714 * i386b-nat.c: Removed.
11715 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11716 (i386b-nat.o): Remove dependencies.
11717
11718 * config/i386/i386bsd.mh: Removed.
11719 * config/i386/i386bsd.mt: Removed.
11720 * config/i386/nm-i386bsd.h: Removed.
11721 * config/i386/tm-i386bsd.h: Removed.
11722 * config/i386/xm-i386bsd.h: Removed.
11723
11724 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11725
11726 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11727 (amd64fbsd_init_abi): Set link map offsets.
11728 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11729 (amd64nbsd_init_abi): Set link map offsets.
11730 * amd64obsd-tdep.c: Include "solib-svr4.h".
11731 (amd64obsd_init_abi): Set link map offsets.
11732 * i386fbsd-tdep.c: Include "solib-svr4.h".
11733 (i386fbsd_init_abi): Set link map offsets.
11734 * i386nbsd-tdep.c: Include "solib-svr4.h".
11735 (i386nbsdelf_init_abi): Set link map offsets.
11736 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11737 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11738 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11739 solib-legacy.o and core-aout.o. Reformat.
11740 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11741 solib-svr4.o, solib-legacy.o. Reformat.
11742 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11743 * config/i386/nbsdelf.mh: Reformat.
11744 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11745 solib-svr4.o, solib-legacy.o and corelow.o.
11746 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11747 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11748 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11749 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11750 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11751 (TM_FILE): Set to tm-fbsd.h.
11752 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11753 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11754 solib-svr4.o.
11755 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11756 solib-svr4.o.
11757 (TM_FILE): Set to nm-nbsd.h.
11758 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11759 Simplify shared library support. Don't include "elf/common.h".
11760 (SVR4_SHARED_LIBS): Don't define.
11761 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11762 "solib.h".
11763 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11764 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11765 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11766 Don't include "i386/tm-i386.h". Include "solib.h".
11767 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11768 Don't include "i386/tm-i386.h".
11769 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11770 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11771 Include "i386/xm-i386.h".
11772 (HOST_LONG_DOUBLE_FORMAT): Remove.
11773
11774 Fix OpenBSD/i386 sigtramp recognition.
11775 * i386-tdep.h: Update copyright year.
11776 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11777 (i386bsd_sigtramp_end): New prototypes.
11778 (i386fbsd_sigtramp_start_addr): Renamed from
11779 i386fbsd_sigtramp_start.
11780 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11781 (i386obsd_sigtramp_start_addr): Renamed from
11782 i386obsd_sigtramp_start.
11783 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11784 * i386bsd-tdep.c: Update copyright year.
11785 (i386bsd_pc_in_sigtramp): Make public.
11786 * i386fbsd-nat.c: Update copyright year.
11787 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11788 * i386fbsd-tdep.c: Update copyright year.
11789 (i386fbsd_sigtramp_start_addr): Renamed from
11790 i386fbsd_sigtramp_start.
11791 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11792 (i386fbsdaout_init_abi): Adjust for renamed variables.
11793 * i386obsd-nat.c: Update copyright year.
11794 (_initialize_i386obsd_nat): Adjust for renamed variables.
11795 * i386obsd-tdep.c: Include "target.h".
11796 (i386obsd_page_size): New variable.
11797 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11798 (i386obsd_sigtramp_end): New functions.
11799 (i386obsd_sigtramp_start_addr): Renamed from
11800 i386obsd_sigtramp_start.
11801 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11802 (i386obsd_init_abi): Adjust for renamed variables. Set
11803 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11804 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11805
11806 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11807 trampoline change in OpenBSD kernel.
11808
11809 * amd64-nat.c: Update copyright year.
11810 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11811 architecture from REGCACHE.
11812
11813 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11814 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11815
11816 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11817
11818 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11819 i[34567]86-*-openbsd3.[0-3].
11820 * config/i386/obsdaout.mh: New file.
11821
11822 * config/i386/obsd.mh (MH_FLAGS): Remove.
11823
11824 Fix PR build/1549.
11825 * i386obsd-tdep.c: Update copyright years. Include
11826 "solib-svr4.h".
11827 (i386obsd_init_abi): Don't set regset_from_core_section here.
11828 (i386obsd_aout_init_abi): New function. Set
11829 regset_from_core_section here.
11830 (i386obsd_elf_init_abi): New function.
11831 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11832 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11833 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11834 (TM_FILE): Set to tm-nbsd.h.
11835
11836 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11837 solib-sunos.o.
11838
11839 * solib-svr4.h: Update copyright year.
11840 (svr4_ilp32_fetch_link_map_offsets)
11841 (svr4_lp64_fetch_link_map_offsets): New prototype.
11842 * solib-svr4.c: Update copyright year.
11843 (svr4_ilp32_fetch_link_map_offsets)
11844 (svr4_lp64_fetch_link_map_offsets): New function.
11845
11846 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11847
11848 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11849 to the partial symbol table.
11850
11851 2004-02-20 J. brobecker <brobecker@gnat.com>
11852
11853 * PROBLEMS: Add description of problem documented under gdb/1560.
11854
11855 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11856
11857 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11858 comments.
11859 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11860 functions.
11861 (amd64obsd_init_abi): Reorder initializations. Use
11862 amd64obsd_r_reg_offset to initialize the general-purpose register
11863 set details. Set regset_from_core_section.
11864 (_initialize_amd64obsd_tdep): Rename from
11865 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11866 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11867 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11868
11869 * NEWS (New native configurations): Mention OpenBSD/alpha.
11870 * configure.tgt: Add alpha*-*-openbsd*.
11871 * configure.host: Add alpha*-*-openbsd*.
11872 * alphanbsd-tdep.c: Update copyright year.
11873 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11874
11875 2004-02-20 Andrew Cagney <cagney@redhat.com>
11876
11877 Fix PR tdep/1372.
11878 * configure.tgt: Delete target "none-*-*".
11879 * configure.host: Delete host "none-*-*".
11880 * config/none/none.mh: Delete file.
11881 * config/none/none.mt: Delete file.
11882 * config/none/xm-none.h: Delete file.
11883 * config/none/tm-none.h: Delete file.
11884 * config/none/nm-none.h: Delete file.
11885
11886 2004-02-19 Fred Fish <fnf@redhat.com>
11887
11888 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11889 cache->uses_fp prior to setting it.
11890
11891 2004-02-19 Fred Fish <fnf@redhat.com>
11892
11893 Fix for PR breakpoint/1558.
11894 * sh-tdep.c (IS_JSR): New macro.
11895 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11896
11897 2004-02-19 Jim Blandy <jimb@redhat.com>
11898
11899 * findvar.c (value_from_register): Doc fix.
11900
11901 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11902
11903 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11904 type being greater than sizeof of host's LONGEST. Always use
11905 unpack_long() unless format 'f' chosen.
11906
11907 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11908
11909 Committed by Elena Zannoni <ezannoni@redhat.com>
11910
11911 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11912 contains a symbol wich is the best, non-exact match for the given
11913 pc. Update comments.
11914
11915 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11916
11917 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11918 macro, which was part of the now removed Mach 3 port.
11919 * utils.c (request_quit): Ditto.
11920
11921 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11922
11923 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11924 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11925
11926 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11927
11928 Committed by Mark Kettenis <kettenis@gnu.org>.
11929
11930 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11931 Define.
11932
11933 2004-02-18 Andrew Cagney <cagney@redhat.com>
11934
11935 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11936 CONFIG_INSTALL and CONFIG_UNINSTALL.
11937 * configure: Re-generate.
11938 * interps.h (INTERP_TUI): Define.
11939 * Makefile.in: Update dependencies.
11940 (TUI): New macro.
11941 (tui-main.o): Specify dependencies.
11942 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11943 * tui/tui-main.c: New file.
11944
11945 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11946
11947 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11948 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11949 dependencies.
11950 * configure.host: Add x86_64-*-openbsd*.
11951 * configure.tgt: Add x86_64-*-openbsd*.
11952 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11953
11954 * tui/tui.c: Don't include <malloc.h>.
11955
11956 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11957 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11958 amd64nbsd-tdep.c.
11959
11960 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11961 static. Remove extraneous whitespace.
11962 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11963 static.
11964
11965 2004-02-17 Jim Blandy <jimb@redhat.com>
11966
11967 * findvar.c (value_from_register): Doc fix.
11968
11969 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11970
11971 Committed by Jim Blandy <jimb@redhat.com>.
11972
11973 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11974 CORE_ADDR as type for selectors. Correct types for GNU run time
11975 message lookup function to use double indirection.
11976 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11977 * objc-lang.h (lookup_child_selector): Adapt prototype.
11978
11979 * s390-nat.c (SUBOFF): New macro.
11980 (supply_gregset, fill_gregset): Use it to handle debugging
11981 of 32-bit exectuables running under a 64-bit kernel.
11982 * s390-tdep.c: Include "solib-svr4.h".
11983 (s390_svr4_fetch_link_map_offset): New function.
11984 (s390x_svr_fetch_link_map_offset): Likewise.
11985 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11986 * Makefile.in (s390-tdep.o): Update dependencies.
11987
11988 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11989 "frame-unwind.h".
11990 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11991 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11992 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11993 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11994 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11995 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11996 S390_SIGNAL_FRAMESIZE,
11997 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11998 (struct frame_extra_info): Remove.
11999 (s390_memset_extra_info): Remove.
12000 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12001 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12002 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12003 (is_rse): Renamed to ...
12004 (is_rsy): ... this. Support long displacements.
12005 (is_rxe): Renamed to ...
12006 (is_rxy): ... this. Support long displacements.
12007 (compute_x_addr): Support long displacements.
12008 (struct s390_prologue_data): New data type.
12009 (s390_on_stack): Change API to use struct s390_prologue_data.
12010 (s390_store): Reimplement.
12011 (s390_load): New function.
12012 (s390_get_signal_frame_info): Remove.
12013 (s390_get_frame_info): Remove, replace by ...
12014 (s390_analyze_prolog): ... this new function.
12015 (s390_check_function_end): Remove.
12016 (s390_function_start): Remove.
12017 (s390_frameless_function_invokation): Remove.
12018 (s390_is_sigreturn): Remove.
12019 (s390_init_frame_pc_first): Remove.
12020 (s390_init_frame_extra_info): Remove.
12021 (s390_frame_init_saved_regs): Remove.
12022 (s390_frame_saved_pc_nofix): Remove.
12023 (s390_frame_saved_pc): Remove.
12024 (s390_frame_chain): Remove.
12025 (s390_fp_regnum, s390_read_fp): Remove.
12026 (s390_pop_frame_regular, s390_pop_frame): Remove.
12027 (s390_saved_pc_after_call): Remove.
12028 (s390_skip_prologue): Reimplement.
12029 (s390_in_function_epilogue_p): Support long displacements.
12030 (struct s390_unwind_cache): New data structure.
12031 (s390_frame_unwind_cache): New function.
12032 (s390_prologue_frame_unwind_cache): Likewise.
12033 (s390_backchain_frame_unwind_cache): Likewise.
12034 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12035 (s390_frame_unwind): Define.
12036 (s390_frame_sniffer): New function.
12037 (struct s390_pltstub_unwind_cache): New data structure.
12038 (s390_pltstub_frame_unwind_cache): New function.
12039 (s390_pltstub_frame_this_id): Likewise.
12040 (s390_pltstub_frame_prev_register): Likewise.
12041 (s390_pltstub_frame_unwind): Define.
12042 (s390_pltstub_frame_sniffer): New function.
12043 (struct s390_sigtramp_unwind_cache): New data structure.
12044 (s390_sigtramp_frame_unwind_cache): New function.
12045 (s390_sigtramp_frame_this_id): Likewise.
12046 (s390_sigtramp_frame_prev_register): Likewise.
12047 (s390_sigtramp_frame_unwind): Define.
12048 (s390_sigtramp_frame_sniffer): New function.
12049 (s390_frame_base_address, s390_local_base_address): New functions.
12050 (s390_frame_base): Define.
12051 (s390_unwind_pc, s390_unwind_sp): New function.
12052 (s390_push_dummy_call): Use new frame base location.
12053 (s390_unwind_dummy_id): Likewise.
12054 (s390_gdbarch_init): Remove calls to:
12055 set_gdbarch_frameless_function_invocation,
12056 set_gdbarch_deprecated_init_frame_pc,
12057 set_gdbarch_deprecated_frame_chain,
12058 set_gdbarch_deprecated_frame_init_saved_regs,
12059 set_gdbarch_deprecated_pop_frame,
12060 set_gdbarch_deprecated_init_extra_frame_info,
12061 set_gdbarch_deprecated_init_frame_pc_first,
12062 set_gdbarch_deprecated_target_read_fp,
12063 set_gdbarch_deprecated_frame_saved_pc,
12064 set_gdbarch_deprecated_saved_pc_after_call,
12065 set_gdbarch_deprecated_fp_regnum.
12066 Add calls to:
12067 set_gdbarch_in_solib_call_trampoline,
12068 frame_unwind_append_sniffer,
12069 frame_base_set_default,
12070 set_gdbarch_unwind_pc,
12071 set_gdbarch_unwind_sp.
12072 * Makefile.in (s390-tdep.o): Update dependencies.
12073
12074 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12075 (S390_STACK_FRAME_OVERHEAD): Remove.
12076 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12077 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12078 (s390_promote_integer_argument): Remove.
12079 (s390_cannot_extract_struct_value_address): Remove.
12080 (s390_use_struct_convention, s390_store_struct_return): Remove.
12081 (s390_extract_return_value, s390_store_return_value): Remove.
12082 (s390_return_value_convention, s390_return_value): New functions.
12083 (is_float_singleton): Handle typedefs.
12084 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12085 Remove, replace by ...
12086 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12087 s390_function_arg_integer): ... these new functions.
12088 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12089 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12090 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12091 Fill in tdep->abi.
12092 Remove calls to:
12093 set_gdbarch_deprecated_store_struct_return,
12094 set_gdbarch_deprecated_extract_return_value,
12095 set_gdbarch_deprecated_store_return_value,
12096 set_gdbarch_use_struct_convention,
12097 set_gdbarch_extract_struct_value_address,
12098 set_gdbarch_deprecated_pc_in_call_dummy,
12099 set_gdbarch_deprecated_push_arguments,
12100 set_gdbarch_deprecated_save_dummy_frame_tos,
12101 set_gdbarch_deprecated_push_return_address,
12102 set_gdbarch_deprecated_sizeof_call_dummy_words,
12103 set_gdbarch_deprecated_call_dummy_words,
12104 set_gdbarch_deprecated_dummy_write_sp.
12105 Add calls to:
12106 set_gdbarch_push_dummy_call,
12107 set_gdbarch_unwind_dummy_id,
12108 set_gdbarch_return_value.
12109
12110 * config/s390/nm-linux.h: Update comments.
12111 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12112 (STOPPED_BY_WATCHPOINT): Redefine.
12113 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12114 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12115 (s390_stopped_by_watchpoint): Likewise.
12116 (watch_area_cnt): Remove.
12117 * s390-nat.c: Update comments.
12118 (watch_area): Remove typedef.
12119 Global replace watch_area by struct watch_area.
12120 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12121 (s390_stopped_by_watchpoint): Remove pid argument,
12122 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12123 (s390_fix_watch_points): Remove pid argument,
12124 use s390_inferior_tid. Recompute area spanned by watchpoints.
12125 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12126 argument. Reimplement.
12127
12128 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12129 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12130 (FETCH_INFERIOR_REGISTERS): Define.
12131 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12132 core-regset.o.
12133 * config/s390/s390x.mt: Remove.
12134 * config/s390/tm-s390.h: Remove.
12135 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12136 (TARGET_ELF64): Remove.
12137 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12138 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12139 s390*-*-* case; always set gdb_target to s390.
12140 * regformats/reg-s390.dat: Remove control registers.
12141 * regformats/reg-s390x.dat: Likewise.
12142 * s390-tdep.h: New file.
12143 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12144 Include "inferior.h" and "s390-tdep.h".
12145 Remove private definition of offsetof.
12146 (s390_register_u_addr): Remove.
12147 (regmap_gregset, regmap_fpregset): Define.
12148 (supply_gregset, fill_gregset): Reimplement.
12149 (supply_fpregset, fill_fpregset): Likewise.
12150 (s390_inferior_tid): New function.
12151 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12152 (fetch_inferior_registers, store_inferior_registers): Likewise.
12153 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12154 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12155 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12156 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12157 (struct gdbarch_tdep): Define.
12158 (struct s390_register_info): Define.
12159 (s390_register_info): New variable.
12160 (s390_register_name): Reimplement.
12161 (s390_register_type): New function.
12162 (s390_register_raw_size, s390x_register_raw_size): Remove.
12163 (s390_cannot_fetch_register): Remove.
12164 (s390_register_byte): Remove.
12165 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12166 (s390_dwarf_regmap): New variable.
12167 (s390_dwarf_reg_to_regnum): New function.
12168 (s390_stab_reg_to_regnum): Remove.
12169 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12170 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12171 (s390_convert_register_p): Likewise.
12172 (s390_register_to_value, s390_value_to_register): Likewise.
12173 (s390_register_reggroup_p): Likewise.
12174 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12175 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12176 (s390_supply_regset, s390_regset_from_core_section): New functions.
12177 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12178 (S390_FPR_SIZE): Likewise.
12179 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12180 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12181 (S390_NUM_GPRS): Move here from tm-s390.h.
12182 (S390_NUM_FPRS): Likewise.
12183 (s390_in_function_epilogue_p): New function.
12184 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12185 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12186 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12187 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12188 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12189 Remove calls to:
12190 set_gdbarch_deprecated_max_register_raw_size,
12191 set_gdbarch_deprecated_max_register_virtual_size,
12192 set_gdbarch_deprecated_register_byte,
12193 set_gdbarch_cannot_fetch_register,
12194 set_gdbarch_cannot_store_register,
12195 set_gdbarch_deprecated_register_size,
12196 set_gdbarch_deprecated_register_raw_size,
12197 set_gdbarch_deprecated_register_virtual_size,
12198 set_gdbarch_deprecated_register_virtual_type,
12199 set_gdbarch_deprecated_register_bytes.
12200 Add calls to:
12201 set_gdbarch_num_pseudo_regs,
12202 set_gdbarch_register_type,
12203 set_gdbarch_convert_register_p,
12204 set_gdbarch_register_to_value,
12205 set_gdbarch_value_to_register,
12206 set_gdbarch_register_reggroup_p,
12207 set_gdbarch_regset_from_core_section,
12208 set_gdbarch_pseudo_register_read,
12209 set_gdbarch_pseudo_register_write,
12210 set_gdbarch_in_function_epilogue_p.
12211 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12212 (s390_tdep_h): New variable.
12213
12214 2004-02-17 Jim Blandy <jimb@redhat.com>
12215
12216 * findvar.c (value_from_register): If the type has no length, just
12217 return an acceptable value --- don't report an internal error.
12218
12219 * stabsread.c (read_type): If we find any type numbers that are
12220 forward references, complain if the references aren't resolved by
12221 the time we're finished reading.
12222 (cleanup_undefined_types): Make error message more appropriate for
12223 a complaint.
12224
12225 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12226
12227 * Makefile.in (defs_h): Remove dependency on progress_h.
12228 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12229 progress.h.
12230 * main.c (captured_main): Delete use of START_PROGRESS and
12231 END_PROGRESS.
12232
12233 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12234
12235 * objfiles.c (terminate_minimal_symbol_table): Add back
12236 initialization of MSYMBOL_TYPE.
12237
12238 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12239
12240 Committed by Andrew Cagney.
12241 * Makefile.in (ia64_tdep_h): New macro.
12242 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12243 (ia64-tdep.o): Likewise.
12244 * ia64-tdep.h: New file.
12245 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12246 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12247 (ia64_aix_sigcontext_register_address): Likewise.
12248 (ia64_linux_getunwind_table): Delete declaration.
12249 * ia64-linux-tdep.c: Likewise.
12250
12251 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12252
12253 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12254 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12255 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12256
12257 2004-02-17 Andrew Cagney <cagney@redhat.com>
12258
12259 * symtab.c (skip_prologue_using_sal): New function.
12260 * symtab.h (skip_prologue_using_sal): Declare.
12261 * frv-tdep.c: Include "symtab.h".
12262 (skip_prologue_using_sal): Delete function.
12263 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12264 * rs6000-tdep.c (refine_prologue_limit): Mention
12265 skip_prologue_using_sal.
12266 * ia64-tdep.c (refine_prologue_limit): Ditto.
12267 * Makefile.in: Update dependencies.
12268
12269 2004-02-16 Andrew Cagney <cagney@redhat.com>
12270
12271 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12272 START_INFERIOR_TRAPS_EXPECTED.
12273 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12274 START_INFERIOR_TRAPS_EXPECTED.
12275 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12276 Delete macro.
12277 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12278 macro, moved to "nm-osf.h". Update copyright.
12279 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12280 update copyright.
12281
12282 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12283 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12284 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12285 frameless_look_for_prologue.
12286 * frame.h (legacy_frameless_look_for_prologue): Rename
12287 frameless_look_for_prologue.
12288 * gdbarch.h, gdbarch.c: Re-generate.
12289 * sh64-tdep.c (sh64_gdbarch_init): Update.
12290 * sh-tdep.c (sh_gdbarch_init): Update.
12291 * s390-tdep.c (s390_gdbarch_init): Update.
12292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12293 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12294 * m68k-tdep.c (m68k_gdbarch_init): Update.
12295 (delta68_frame_args_address): Update.
12296 * m32r-tdep.c (m32r_gdbarch_init): Update.
12297 * hppa-tdep.c (hppa_gdbarch_init): Update.
12298 * h8300-tdep.c (h8300_gdbarch_init): Update.
12299 * frv-tdep.c (frv_gdbarch_init): Update.
12300 (frv_frameless_function_invocation): Update.
12301 * cris-tdep.c (cris_gdbarch_init): Update.
12302 (cris_frameless_function_invocation): Update.
12303 * avr-tdep.c (avr_gdbarch_init): Update.
12304 * arm-tdep.c (arm_gdbarch_init): Update.
12305 * stack.c (frame_info): Update, call predicate.
12306 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12307 * frame.c (legacy_get_prev_frame): Update, call predicate..
12308 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12309 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12310 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12311 invocation.
12312 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12313 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12314 * vax-tdep.c (vax_gdbarch_init): Ditto.
12315
12316 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12317 function.
12318
12319 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12320
12321 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12322 initializations.
12323
12324 2004-02-16 Andrew Cagney <cagney@redhat.com>
12325
12326 * tui/tui-windata.c: Include "gdb_string.h".
12327 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12328 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12329 * Makefile.in: Update dependencies.
12330
12331 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12332
12333 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12334 * infrun.c: Include "gdb_assert.h".
12335 (singlestep_ptid, saved_singlestep_ptid)
12336 (stepping_past_singlestep_breakpoint): New variables.
12337 (resume): Set singlestep_ptid. Check for singlestep thread
12338 hop.
12339 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12340 (handle_inferior_event): Handle singlestep thread hop.
12341
12342 2004-02-16 Andrew Cagney <cagney@redhat.com>
12343
12344 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12345 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12346 (dwarf2_frame_init_reg): Ditto.
12347
12348 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12349 suggested by Joshua Neuheisel
12350
12351 * configure.in: Always check for curses, including pdcurses.
12352 Warn, instead of error, when no curses are found. Enable TUI when
12353 curses is available.
12354 * configure: Re-generate.
12355
12356 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12357
12358 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12359 sh_sh4_register_convert_to_virtual.
12360 (sh_register_convert_to_raw): Rename from
12361 sh_sh4_register_convert_to_raw.
12362 (sh_pseudo_register_read): Accomodate above name change.
12363 (sh_pseudo_register_write): Ditto.
12364
12365 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12366
12367 * sh-tdep.c (sh_generic_register_name): Remove.
12368 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12369
12370 2004-02-15 Andrew Cagney <cagney@redhat.com>
12371
12372 * configure.in (build_warnings): Add -Wunused-function.
12373 * configure: Re-generate.
12374
12375 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12376 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12377
12378 * procfs.c (procfs_init_inferior): Assume that
12379 START_INFERIOR_TRAPS_EXPECTED is defined.
12380 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12381 * config/ns32k/tm-nbsd.h: Delete file,
12382 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12383
12384 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12385 * config/vax/tm-vax.h: Delete file.
12386
12387 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12388 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12389 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12390 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12391 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12392 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12393 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12394
12395 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12396
12397 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12398 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12399 (struct dwarf2_frame_ops): New.
12400 (dwarf2_frame_default_init_reg): New function, based on
12401 dwarf2_frame_init_reg.
12402 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12403 (dwarf2_frame_init_reg): Call architecture-specific function.
12404 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12405 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12406 instead of dwarf2_frame_data.
12407 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12408 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12409
12410 2004-02-15 Andrew Cagney <cagney@redhat.com>
12411
12412 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12413 register_gdbarch_swap.
12414 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12415 * f-lang.c (_initialize_f_language): Update, use
12416 DEPRECATED_REGISTER_GDBARCH_SWAP.
12417 * remote.c (_initialize_remote): Ditto.
12418 * regcache.c (_initialize_regcache): Ditto.
12419 * parse.c (_initialize_parse): Ditto.
12420 * infrun.c (_initialize_infrun): Ditto.
12421 * mi/mi-main.c (_initialize_mi_main): Ditto.
12422 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12423
12424 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12425 poking .cacheable directly.
12426 * symfile.c (symfile_bfd_open): Ditto.
12427
12428 * Makefile.in: Update all dependencies.
12429
12430 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12431 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12432 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12433 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12434 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12435
12436 2004-02-14 Andrew Cagney <cagney@redhat.com>
12437
12438 * arch-utils.c (legacy_convert_register_p): Check
12439 DEPRECATED_REGISTER_CONVERTIBLE_P.
12440 * findvar.c (value_of_register): Ditto.
12441
12442 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12443 * gdbarch.h, gdbarch.c: Re-generate.
12444 * arch-utils.c (deprecated_register_convertible_not): Delete.
12445 * arch-utils.h (deprecated_register_convertible_not): Delete.
12446 * mi/mi-main.c (get_register): Update. Update copyright.
12447 * infcmd.c (default_print_registers_info): Update.
12448
12449 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12450 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12451 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12452 * gdbarch.h, gdbarch.c: Re-generate.
12453 * frame.c (deprecated_get_next_frame_hack): Delete function.
12454 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12455 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12456 Update.
12457 * infcall.c (call_function_by_hand): Update.
12458
12459 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12460
12461 * symfile.c (init_entry_point_info, entry_point_address): Move
12462 from here...
12463 * objfiles.c (init_entry_point_info, entry_point_address):..to
12464 here.
12465 * symfile.h (init_entry_point_info, entry_point_address): Remove
12466 prototypes.
12467 * objfiles.h (init_entry_point_info, entry_point_address):Add
12468 prototypes.
12469 * cris-tdep.c: Remove include of symfile.h. Add include of
12470 objfiles.h.
12471 * infcall.c: Ditto.
12472 * mcore-tdep.c: Ditto.
12473 * mn10300-tdep.c: Ditto.
12474 * sh64-tdep.c: Ditto.
12475 * v850-tdep.c: Ditto.
12476 * arm-tdep.c: Remove include of symfile.h.
12477 * blockframe.c: Ditto.
12478 * coffread.c: Ditto.
12479 * dbxread.c: Ditto.
12480 * dwarf2read.c: Ditto.
12481 * dwarfread.c: Ditto.
12482 * frv-tdep.c: Ditto.
12483 * ia64-tdep.c: Ditto.
12484 * mdebugread.c: Ditto.
12485 * mipsread.c: Ditto.
12486 * rs6000-tdep.c: Ditto.
12487 * s390-tdep.c: Ditto.
12488 * sh-tdep.c: Ditto.
12489 * xstormy16-tdep.c: Ditto.
12490 * gdbarch.sh: Remove include of symfile.h.
12491 * gdbarch.c: Regenerate.
12492 * solib-irix.c (enable_break): Use entry_point_address().
12493 Add comment about include file.
12494 * xcoffread.c: Add comment about include file.
12495 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12496 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12497 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12498 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12499 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12500
12501 2004-02-13 Andrew Cagney <cagney@redhat.com>
12502
12503 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12504 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12505 copyright.
12506 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12507
12508 2004-02-12 Fred Fish <fnf@redhat.com>
12509
12510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12511 set_gdbarch_store_return_value.
12512
12513 2004-02-12 Andrew Cagney <cagney@redhat.com>
12514
12515 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12516 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12517 (interrupt_query): Ditto.
12518 (ofunc): Delete unused variable.
12519 * cris-tdep.c (cris_abi): Delete unused function.
12520 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12521 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12522 (cris_get_asr_quick_shift_steps): Ditto.
12523 (cris_skip_prologue_frameless_p): Ditto.
12524 * arm-tdep.c (arm_push_return_address): Delete unused function.
12525 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12526 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12527 * s390-tdep.c (s390_function_start): Delete unused function.
12528
12529 2004-02-12 Andrew Cagney <cagney@redhat.com>
12530
12531 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12532 gdbarch.h, gdbarch.c: Re-generate.
12533 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12534 to generic_prologue_frameless_p.
12535 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12536 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12537
12538 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12539
12540 * mips-linux-tdep.c: Include "frame.h".
12541 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12542 (mips_linux_skip_resolver): New functions.
12543 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12544 and set_gdbarch_in_solib_call_trampoline.
12545 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12546 to after set_gdbarch_in_solib_return_trampoline. Only set the
12547 solib hooks to mips16 functions if the OS ABI is unknown.
12548 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12549 including "config/tm-linux.h".
12550 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12551 * Makefile.in (mips-linux-tdep.o): Update.
12552
12553 2004-02-11 David Carlton <carlton@kealia.com>
12554
12555 * linespec.c (decode_compound): Only look for a class symbol when
12556 considering all but the rightmost component.
12557
12558 2004-02-11 Andrew Cagney <cagney@redhat.com>
12559
12560 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12561 abi code are are separatly grouped.
12562
12563 2004-02-11 Andrew Cagney <cagney@redhat.com>
12564
12565 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12566 * gdbarch.h, gdbarch.c: Re-generate.
12567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12568 * v850-tdep.c (v850_gdbarch_init): Update.
12569 * sh64-tdep.c (sh64_gdbarch_init): Update.
12570 * sh-tdep.c (sh_gdbarch_init): Update.
12571 * s390-tdep.c (s390_gdbarch_init): Update.
12572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12573 * mips-tdep.c (mips_gdbarch_init): Update.
12574 * mcore-tdep.c (mcore_gdbarch_init): Update.
12575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12576 * m32r-tdep.c (m32r_gdbarch_init): Update.
12577 * ia64-tdep.c (ia64_gdbarch_init): Update.
12578 * hppa-tdep.c (hppa_gdbarch_init): Update.
12579 * h8300-tdep.c (h8300_gdbarch_init): Update.
12580 * frv-tdep.c (frv_gdbarch_init): Update.
12581 * d10v-tdep.c (d10v_gdbarch_init): Update.
12582 * cris-tdep.c (cris_gdbarch_init): Update.
12583 * avr-tdep.c (avr_gdbarch_init): Update.
12584 * arm-tdep.c (arm_gdbarch_init): Update.
12585 * alpha-tdep.c (alpha_gdbarch_init): Update.
12586
12587 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12588
12589 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12590 comma.
12591 (sh_sh4al_dsp_register_name): Ditto.
12592
12593 2004-02-10 Andrew Cagney <cagney@redhat.com>
12594
12595 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12596 (mips_init_frame_pc_first): Delete function.
12597 (mips_frame_saved_pc): Delete function.
12598 (mips_frame_chain): Delete function.
12599 (mips_init_extra_frame_info): Delete function.
12600 (mips_xfer_register): Delete unused variable "reg".
12601 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12602 (mips_n32n64_return_value): Delete unused variable "reg".
12603 (mips_n32n64_return_value): Delete unused variable "pos".
12604 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12605 (mips_o32_return_value): Delete unused variable "pos".
12606 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12607 (mips_print_fp_register): Delete unused variable "namelen"
12608 (mips_print_fp_register): Delete unused variable "flt2"
12609 (get_frame_pointer): Delete function.
12610 (cached_proc_desc): Delete static variable.
12611 (mips_pop_frame): Delete function.
12612 (mips_find_saved_regs): Delete function.
12613 (mips_get_saved_register): Delete function.
12614 (mips_saved_pc_after_call): Delete function.
12615 (SIGFRAME_BASE): Delete macro.
12616 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12617 (SIGFRAME_PC_OFF): Delete macro.
12618 (SIGFRAME_REGSAVE_OFF): Delete macro.
12619 (mips_dump_tdep): Do not print deleted macro definitions.
12620
12621 2004-02-10 Andrew Cagney <cagney@redhat.com>
12622
12623 * Makefile.in (SFILES): Remove explictly listed tui files.
12624 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12625
12626 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12627
12628 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12629 to use paddr functions to format ia64 addresses and long values.
12630 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12631 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12632 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12633 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12634 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12635
12636 2004-02-10 Andrew Cagney <cagney@redhat.com>
12637
12638 * defs.h: Do not include "tui.h".
12639 * gdb_curses.h: New file.
12640 * tui/tui-hooks.h: New file.
12641 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12642 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12643 (tui_initialize_io): Delete declaration.
12644 (tui_initialize_readline: Delete redundant declaration.
12645 (struct tui_point): Delete definition.
12646 * tui/tui-data.h (struct tui_point): Define.
12647 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12648 * utils.c: Include "tui/tui.h".
12649 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12650 * printcmd.c [TUI]: Include "tui/tui.h".
12651 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12652 * tui/tui-command.c: Include "gdb_curses.h".
12653 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12654 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12655 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12656 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12657 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12658 * Makefile.in: Update all dependencies.
12659 (tui_hooks_h, gdb_curses_h): Define.
12660 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12661
12662 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12663
12664 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12665 auxf2. Add comments about some other rarely used fields.
12666
12667 2004-02-10 Andrew Cagney <cagney@redhat.com>
12668
12669 * Makefile.in (init.c): Fix script removing duplicates. Problem
12670 reported by Peter Schauer.
12671
12672 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12673
12674 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12675 obstack_specify_allocation.
12676 * objfiles.c (allocate_objfile): Ditto.
12677 * solib-sunos.c (solib_add_common_symbols)
12678 (allocate_rt_common_objfile): Ditto.
12679 * symfile.c (reread_symbols): Ditto.
12680 * gdb_obstack.h: Add comment.
12681
12682 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12683
12684 * linespec.c (decode_line_1, locate_first_half)
12685 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12686 commented out code.
12687
12688 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12689
12690 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12691 obstack_free.
12692
12693 2004-02-09 Andrew Cagney <cagney@redhat.com>
12694
12695 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12696 fails, try find_pc_section. Fix PR c++/1267.
12697 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12698 instead of find_pc_mapped_section.
12699 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12700 not default to the section containing PC. Fix PR symtab/1519.
12701
12702 2004-02-09 Andrew Cagney <cagney@redhat.com>
12703
12704 * Makefile.in (mips-tdep.o): Update dependencies.
12705 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12706 "trad-frame.h".
12707 (mips_unwind_pc): Return the pseudo PC register.
12708 (mips_unwind_dummy_id): New function.
12709 (mips16_fetch_instruction): New function.
12710 (mips32_fetch_instruction): New function.
12711 (struct mips_frame_cache): Define.
12712 (mips_mdebug_frame_cache): New function.
12713 (mips_mdebug_frame_this_id): New function.
12714 (mips_mdebug_frame_prev_register): New function.
12715 (mips_mdebug_frame_unwind): Define.
12716 (mips_mdebug_frame_sniffer): New function.
12717 (mips_mdebug_frame_base_address): New function.
12718 (mips_mdebug_frame_base): Define.
12719 (mips_mdebug_frame_base_sniffer): New function.
12720 (mips_gdbarch_init): Append unwind and base sniffers. Set
12721 unwind_dummy_id.
12722
12723 2004-02-08 Andrew Cagney <cagney@redhat.com>
12724
12725 * frame.c: Print both the register number and name.
12726
12727 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12728 and a sed into a single sed. Make .c and .o patterns more robust.
12729 (OBS): Delete.
12730 (INIT_FILES): Replace OBS with COMMON_OBS.
12731 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12732
12733 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12734
12735 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12736 the PT_WCOOKIE request.
12737
12738 2004-02-08 Andrew Cagney <cagney@redhat.com>
12739
12740 * mips-tdep.c (mips_unwind_pc): New function.
12741 (mips_gdbarch_init): Set mips_unwind_pc.
12742
12743 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12744 (get_frame_id): Allow the UNKNOWN_FRAME.
12745 (frame_register_unwind, get_frame_type): Ditto.
12746
12747 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12748 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12749 unwind_dummy_id indicates a legacy frame.
12750
12751 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12752 * configure: Re-generate.
12753
12754 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12755 methods.
12756
12757 2004-02-08 Andrew Cagney <cagney@redhat.com>
12758
12759 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12760 makefile macro.
12761 * configure: Re-generate.
12762 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12763 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12764 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12765 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12766 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12767 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12768 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12769 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12770 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12771 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12772
12773 2004-02-07 Andrew Cagney <cagney@redhat.com>
12774
12775 * Makefile.in: Update all dependencies.
12776
12777 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12778 * configure: Re-generate.
12779 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12780 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12781 (COMMON_OBS): Add "main.o" and "annotate.o".
12782 (ANNOTATE_OBS): Delete.
12783 (OBS): Remove ANNOTATE_OBS.
12784 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12785 CONFIG_INITS.
12786 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12787 against CONFIG_OBS and "main.o".
12788 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12789 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12790
12791 * tui/tui-command.c: Include "gdb_string.h", delete register
12792 attribute, use ISO-C function signatures.
12793 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12794 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12795 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12796 * tui/tui.c: Ditto.
12797
12798 * tui/tui-command.c: Change variable and function names to lower
12799 case.
12800 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12801 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12802 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12803 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12804 * tui/tui-winsource.c, tui/tui.c: Ditto.
12805
12806 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12807
12808 * buildsym.c (free_pending_blocks, finish_block)
12809 (record_pending_block, make_blockvector, end_symtab): Replace
12810 symbol_obstack with objfile_obstack.
12811 * coffread.c (process_coff_symbol, coff_read_struct_type)
12812 (coff_read_enum_type): Ditto.
12813 * cp-namespace.c (initialize_namespace_symtab)
12814 (check_one_possible_namespace_symbol): Ditto.
12815 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12816 (dwarf2_symbol_mark_computed): Ditto.
12817 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12818 * elfread.c (elf_symtab_read): Ditto.
12819 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12820 (hpread_read_enum_type, hpread_read_function_type)
12821 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12822 Ditto.
12823 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12824 (java_link_class_type): Ditto.
12825 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12826 (new_symbol): Ditto.
12827 * minsyms.c (install_minimal_symbols): Ditto.
12828 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12829 (terminate_minimal_symbol_table): Replace symbol_obstack with
12830 objfile_obstack.
12831 (free_objfile): Remove freeing of symbol_obstack.
12832 * objfiles.h: Remove symbol_obstack field.
12833 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12834 objfile_obstack.
12835 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12836 symbol_obstack.
12837 (solib_add_common_symbols): Replace symbol_obstack with
12838 objfile_obstack.
12839 * somsolib.c (som_solib_add): Ditto.
12840 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12841 (common_block_start, common_block_end): Ditto.
12842 * symfile.c (reread_symbols): Remove freeing and init of
12843 symbol_obstack.
12844 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12845 * symfile.h: Update comment.
12846 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12847 stats printing.
12848 * symtab.c (symbol_set_names): Replace symbol_obstack with
12849 objfile_obstack.
12850 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12851 Update comments.
12852 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12853 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12854 objfile_obstack.
12855
12856 2004-02-07 Andrew Cagney <cagney@redhat.com>
12857
12858 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12859 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12860 fields and variables.
12861 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12862 (m_beInvisible): Delete macro.
12863 * tui/tui-data.h: Fix case case fields and variables.
12864 (m_genWinPtrIsNull): Delete macro.
12865 (tui_win_list): Rename winList.
12866 (TUI_SRC_WIN): Rename srcWin.
12867 (TUI_DISASM_WIN): Rename disassemWin.
12868 (TUI_DATA_WIN): Rename dataWin.
12869 (TUI_CMD_WIN): Rename cmdWin.
12870 (m_genWinPtrNotNull): Delete macro.
12871 (m_winPtrIsNull): Delete macro.
12872 (m_winPtrNotNull): Delete macro.
12873 (tui_win_is_source_type): Replace m_winIsSourceType
12874 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12875 (tui_win_has_locator): Replace m_hasLocator.
12876 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12877 m_setWinHighlightOff.
12878 * tui/tui-data.c: Update references.
12879 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12880 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12881 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12882 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12883 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12884 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12885 * tui/tui-winsource.c, tui/tui.c: Ditto.
12886
12887 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12888
12889 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12890 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12891 StackGhost.
12892
12893 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12894 variable `i6' to `i7'.
12895 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12896
12897 2004-02-07 Andrew Cagney <cagney@redhat.com>
12898
12899 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12900 (TuiPoint, TuiPointPtr): Ditto.
12901 (TuiStatus, TuiStatusPtr): Ditto.
12902 (TuiWinType, TuiWinTypePtr): Ditto.
12903 (struct tui_point): Rename _TuiPoint.
12904 (tui_get_low_disassembly_address): Rename
12905 tuiGetLowDisassemblyAddress.
12906 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12907 (tuiFree): Delete declaration.
12908 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12909 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12910 * tui/tui.c (tuiFree): Delete function.
12911 * cli/cli-cmds.c (disassemble_command): Update references.
12912 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12913 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12914 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12915 * tui/tui-winsource.c: Ditto.
12916
12917 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12918
12919 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12920 coffstab_build_psymtabs, elfstab_build_psymtabs)
12921 (stabsect_build_psymtabs): Replace psymbol_obstack with
12922 objfile_obstack.
12923 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12924 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12925 Ditto.
12926 * dwarfread.c (scan_compilation_units): Ditto.
12927 * elfread.c (elfstab_offset_sections): Ditto.
12928 * hppa-tdep.c (read_unwind_info): Ditto.
12929 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12930 (hpread_end_psymtab): Ditto.
12931 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12932 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12933 Ditto.
12934 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12935 * objfiles.c (add_to_objfile_sections)
12936 (build_objfile_section_table): Ditto.
12937 (allocate_objfile): Remove init of psymbol_obstack.
12938 (free_objfile): Remove freeing of psymbol_obstack.
12939 * objfiles.h (struct objfile): Remove field
12940 psymbol_obstack. Update comments.
12941 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12942 psymbol_obstack with objfile_obstack.
12943 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12944 psymbol_obstack.
12945 * somread.c (som_symfile_offsets, init_import_symbols)
12946 (init_export_symbols): Replace psymbol_obstack with
12947 objfile_obstack.
12948 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12949 * symfile.c (default_symfile_offsets, syms_from_objfile)
12950 (reread_symbols): Remove freeing and init of psymbol_obstack.
12951 (cashier_psymtab): Update comment.
12952 * symmisc.c (print_objfile_statistics): Don't report stats for
12953 psymbol obstack.
12954 * symtab.h (struct general_symbol_info, struct partial_symtab):
12955 Update comments.
12956 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12957 (xcoff_symfile_offsets): Replace psymbol_obstack with
12958 objfile_obstack.
12959
12960 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12961
12962 * objfiles.h (struct objfile): Add objfile_obstack field.
12963 Remove type_obstack field.
12964
12965 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12966 read_structure_scope read_enumeration, new_symbol): Replace
12967 type_obstack with objfile_obstack.
12968 * dwarfread.c (struct_type, enum_type): Ditto.
12969 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12970 (lookup_fundamental_type): Ditto.
12971 * gdbtypes.h (TYPE_ALLOC): Ditto.
12972 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12973 (hpread_read_doc_function_type, hpread_read_struct_type)
12974 (fix_static_member_physnames, hpread_read_array_type)
12975 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12976 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12977 (java_link_class_type): Ditto.
12978 * mdebugread.c (parse_type): Ditto.
12979 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12980 * solib-sunos.c (solib_add_common_symbols): Ditto.
12981 * stabsread.c (define_symbol, read_type, read_member_functions,
12982 read_cpp_abbrev, read_one_struct_field): Ditto.
12983 * symfile.c (reread_symbols): Ditto.
12984 * symmisc.c (print_objfile_statistics): Ditto.
12985
12986 2004-02-07 Andrew Cagney <cagney@redhat.com>
12987
12988 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12989 (tui_exec_info_content): Rename TuiExecInfoContent.
12990 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12991 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12992 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12993 (TuiList, TuiListPtr): Ditto.
12994 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12995 (TuiDataType, TuiDataTypePtr): Ditto.
12996 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12997 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12998 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12999 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13000 (TuiDataElement, TuiDataElementPtr): Ditto.
13001 (TuiWinElement, TuiWinElementPtr): Ditto.
13002 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13003 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13004 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13005 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13006 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13007 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13008 * tui/tui-command.c, tui/tui-data.c: Update references.
13009 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13010 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13011 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13012 * tui/tui-winsource.c, tui/tui.c: Ditto.
13013
13014 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13015
13016 * dwarf2-frame.h: Update copyright.
13017 (enum dwarf2_frame_reg_rule): New.
13018 (struct dwarf2_frame_state_reg): New.
13019 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13020 * dwarf2-frame.c: Update copyright.
13021 (enum dwarf2_reg_rule): Remove.
13022 (struct dwarf2_frame_state): Remove defenition of `struct
13023 dwarf2_frame_state_reg'.
13024 (read_reg): Call get_frame_arch to get the architecture instead of
13025 using CURRENT_GDBARCH.
13026 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13027 DWARF2_FRAME_.
13028 (dwarf2_frame_init_reg): New function.
13029 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13030 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13031 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13032 tags with DWARF2_FRAME_.
13033 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13034 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13035 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13036
13037 2004-02-06 Andrew Cagney <cagney@redhat.com>
13038
13039 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13040 (enum tui_data_type): Rename _TuiDataType.
13041 (struct tui_layout_def): Rename _TuiLayoutDef.
13042 (struct tui_source_element): Rename _TuiSourceElement.
13043 (struct tui_data_element): Rename _TuiDataElement.
13044 (struct tui_command_element): Rename _TuiCommandElement.
13045 (struct tui_locator_element): Rename _TuiLocatorElement.
13046 (union tui_which_element): Define.
13047 (struct tui_win_element): Rename _TuiWinElement.
13048 (struct tui_data_info): Rename _TuiDataInfo.
13049 (struct tui_source_info): Rename _TuiSourceInfo.
13050 (struct tui_command_info): Rename _TuiCommandInfo.
13051 (tui_initialize_static_data): Rename initializeStaticData.
13052 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13053 (tui_alloc_win_info): Rename allocWinInfo.
13054 (tui_init_generic_part): Rename initGenericPart.
13055 (tui_init_win_info): Rename initWinInfo.
13056 (tui_alloc_content): Rename allocContent.
13057 (tui_add_content_elements): Rename addContentElements.
13058 (tui_init_content_element): Rename initContentElement.
13059 (tui_free_window): Rename freeWindow.
13060 (tui_free_win_content): Rename freeWinContent.
13061 (tui_free_data_content): Rename freeDataContent.
13062 (tui_free_all_source_wins_content): Rename
13063 freeAllSourceWinsContent.
13064 (tui_del_window): Rename tuiDelWindow.
13065 (tui_del_data_windows): Rename tuiDelDataWindows.
13066 (tui_partial_win_by_name): Rename partialWinByName.
13067 (tui_win_name): Rename winName.
13068 (tui_current_layout): Rename currentLayout.
13069 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13070 (tui_term_height): Rename termHeight.
13071 (tui_set_term_height_to): Rename setTermHeightTo.
13072 (tui_term_width): Rename termWidth.
13073 (tui_set_term_width_to): Rename setTermWidthTo.
13074 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13075 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13076 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13077 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13078 (tui_source_windows): Rename sourceWindows.
13079 (tui_clear_source_windows): Rename clearSourceWindows.
13080 (tui_clear_source_windows_detail): Rename
13081 clearSourceWindowsDetail.
13082 (tui_clear_win_detail): Rename clearWinDetail.
13083 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13084 (tui_default_tab_len): Rename tuiDefaultTabLen.
13085 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13086 (tui_win_with_focus): Rename tuiWinWithFocus.
13087 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13088 (tui_layout_def): Rename tuiLayoutDef.
13089 (tui_win_resized): Rename tuiWinResized.
13090 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13091 (tui_next_win): Rename tuiNextWin.
13092 (tui_prev_win): Rename tuiPrevWin.
13093 (tui_add_to_source_windows): Rename addToSourceWindows.
13094 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13095 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13096 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13097 * tui/tui.c, tui/tui-data.c: Ditto.
13098 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13099 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13100
13101 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13102 (struct symtab): Declare.
13103 (tui_set_source_content): Rename tuiSetSourceContent.
13104 (tui_show_symtab_source): Rename tuiShowSource.
13105 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13106 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13107 * tui/tui-source.c: Update copyright. Update references.
13108 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13109 * tui/tui-stack.c: Update references.
13110
13111 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13112 (struct tui_win_info): Declare.
13113 (tui_scroll_forward): Rename tuiScrollForward.
13114 (tui_scroll_backward): Rename tuiScrollBackward.
13115 (tui_scroll_left): Rename tuiScrollLeft.
13116 (tui_scroll_right): Rename tuiScrollRight.
13117 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13118 (tui_resize_all): Rename tuiResizeAll.
13119 (tui_refresh_all_win): Rename tuiRefreshAll.
13120 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13121 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13122 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13123 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13124
13125 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13126 (tui_erase_data_content): Rename tuiEraseDataContent.
13127 (tui_display_all_data): Rename tuiDisplayAllData.
13128 (tui_check_data_values): Rename tuiCheckDataValues.
13129 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13130 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13131 (tui_first_data_element_no_in_line): Rename
13132 tuiFirstDataElementNoInLine.
13133 (tui_delete_data_content_windows): Rename
13134 tuiDeleteDataContentWindows.
13135 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13136 (tui_display_data_from): Rename tuiDisplayDataFrom.
13137 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13138 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13139 * tui/tui-win.c, tui/tui-regs.c: Update references.
13140 * tui/tui-layout.c, tui/tui.c: Update references.
13141
13142 * tui/tui-wingeneral.h: Update copyright.
13143 (m_allBeVisible): Delete macro.
13144 (m_allBeInvisible): Delete macro.
13145 (struct tui_gen_win_info): Declare.
13146 (struct tui_win_info): Declare.
13147 (tui_unhighlight_win): Rename unhighlightWin.
13148 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13149 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13150 (tui_make_window): Rename makeWindow.
13151 (tui_copy_win): Rename copyWin.
13152 (tui_box_win): Rename boxWin.
13153 (tui_highlight_win): Rename highlightWin.
13154 (tui_check_and_display_highlight_if_needed): Rename
13155 checkAndDisplayHighlightIfNeeded.
13156 (tui_refresh_all): Rename refreshAll.
13157 (tui_delete_win): Rename tuiDelwin.
13158 (tui_refresh_win): Rename tuiRefreshWin.
13159 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13160 (tui_make_visible, tui_make_invisible): New functions.
13161 (tui_make_all_visible, tui_make_all_invisible): New functions.
13162 (make_all_visible): Rename makeAllVisible.
13163 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13164 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13165 * tui/tui-windata.c, tui/tui-win.c: Update references.
13166 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13167 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13168
13169 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13170
13171 * proc-api.c (write_with_trace): Initialize local variable to
13172 silence compiler warning.
13173
13174 2004-02-06 Andrew Cagney <cagney@redhat.com>
13175
13176 * tui/tui-source.h: Do not include "defs.h".
13177 (struct tui_win_info): Declare.
13178 (tui_set_source_content_nil): Declare.
13179 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13180 (union tui_line_or_address): Rename _TuiLineOrAddress.
13181 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13182 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13183 (tui_update_source_window_as_is): Rename
13184 tuiUpdateSourceWindowAsIs.
13185 (tui_update_source_windows_with_addr): Rename
13186 tuiUpdateSourceWindowsWithAddr.
13187 (tui_update_source_windows_with_line): Rename
13188 tuiUpdateSourceWindowsWithLine.
13189 (tui_clear_source_content): Rename tuiClearSourceContent.
13190 (tui_erase_source_content): Rename tuiEraseSourceContent.
13191 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13192 (tui_show_source_content): Rename tuiShowSourceContent.
13193 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13194 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13195 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13196 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13197 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13198 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13199 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13200 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13201 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13202 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13203 (struct tui_win_info): Declare.
13204 * tui/tui-stack.c: Update references.
13205 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13206 * tui/tui-win.c, tui/tui-source.c: Ditto.
13207 * tui/tui.c, tui/tui-disasm.c: Ditto.
13208
13209 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13210
13211 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13212 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13213
13214 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13215
13216 * infrun.c (handle_inferior_event): Allow for breakpoint
13217 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13218 and SIGEMT. Update comments.
13219 * NEWS (Revised SPARC target): Mention support for non-executable
13220 stack.
13221
13222 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13223
13224 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13225 * inftarg.c: Update copyright year.
13226 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13227 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13228 (sparc_xfer_wcookie): New function.
13229 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13230 * Makefile.in (sparc-nat.o): Update dependencies.
13231 * config/sparc/nm-nbsd.h: Include "target.h".
13232 (NATIVE_XFER_WCOOKIE): New define.
13233 (sparc_xfer_wcookie): New prototype.
13234
13235 2004-02-04 Andrew Cagney <cagney@redhat.com>
13236
13237 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13238 SYSCALL_TRAP function.
13239 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13240
13241 2004-02-04 Andrew Cagney <cagney@redhat.com>
13242 Daniel Jacobowitz <drow@mvista.com>
13243
13244 * objfiles.h: Delete comments refering to inside_entry_func and
13245 DEPRECATED_FRAME_CHAIN_VALID.
13246 * defs.h (inside_entry_func): Update prototype..
13247 * blockframe.c (inside_entry_func): Rename to
13248 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13249 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13250
13251 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13252
13253 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13254 outside of #ifdef SOLIB_ADD region.
13255 (do_restore_lang_radix_cleanup): Ditto.
13256 (resolve_pending_breakpoint): Ditto.
13257
13258 2004-02-03 Andrew Cagney <cagney@redhat.com>
13259
13260 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13261 (process_note_abi_tag_sections): Delete unused function.
13262 (ia64_read_fp): Delete unused function.
13263 (gdbarch_extract_struct_value_address): Delete declaration.
13264
13265 2004-02-02 Andrew Cagney <cagney@redhat.com>
13266
13267 * vax-tdep.c (vax_frame_chain): Delete call to
13268 deprecated_inside_entry_file.
13269 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13270
13271 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13272
13273 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13274 column that's "empty" or "same value" when eliminating REG_RA
13275 rules.
13276
13277 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13278
13279 * NEWS: Add information about new pending breakpoint support.
13280
13281 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13282
13283 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13284 and pending fields for pending breakpoint support.
13285 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13286 (condition_command): Only parse condition if not a pending
13287 breakpoint.
13288 (print_one_breakpoint): Add support for pending breakpoints.
13289 (describe_other_breakpoints): Add checks to verify we are not
13290 dealing with pending breakpoints.
13291 (check_duplicates): Don't check pending breakpoints.
13292 (set_raw_breakpoint): Initialize pending flag.
13293 (do_restore_lang_radix_cleanup): New cleanup routine.
13294 (resolve_pending_breakpoint): New function.
13295 (re_enable_breakpoints_in_shlibs): Try and resolve any
13296 pending breakpoints via resolve_pending_breakpoint.
13297 (mention): Add pending breakpoint support.
13298 (parse_breakpoint_sals): Add new parameter to pass to
13299 decode_line_1 to indicate silent errors when files or functions
13300 are not found. Change all callers.
13301 (do_captured_parse_breakpoint): New function.
13302 (break_command_1): Change prototype to return an rc value and to
13303 take an optional pending breakpoint pointer. Support creating
13304 a pending breakpoint if a "not found" form of error occurs when
13305 parsing the breakpoint. Also support resolving an existing pending
13306 breakpoint and be silent if the resolution fails.
13307 (create_breakpoints): Change prototype to take pending breakpoint
13308 pointer. When resolving a pending breakpoint, use the new pointer
13309 to provide a conditional or commands added by the end-user.
13310 (delete_breakpoint): Add appropriate check for pending.
13311 (breakpoint_re_set_one): Ditto.
13312 (do_enable_breakpoint): Ditto.
13313
13314 2004-02-02 David Carlton <carlton@kealia.com>
13315
13316 * valops.c (enum oload_classification): New.
13317 (find_overload_match): Break implementation into separate
13318 functions; delete #if 0'd code; look for symbols within
13319 namespaces.
13320 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13321 (find_oload_champ,oload_method_static,classify_oload_match): New.
13322 * cp-support.h: Add declaration for cp_func_name; update
13323 declaration for make_symbol_overload_list.
13324 * cp-support.c (cp_func_name): New.
13325 (overload_list_add_symbol): Fix comment, use
13326 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13327 (make_symbol_overload_list): Take a function name and a namespace
13328 instead of a symbol; change implementation.
13329 (make_symbol_overload_list_using): New.
13330 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13331
13332 2004-02-02 Fred Fish <fnf@redhat.com>
13333
13334 * main.c (gdb_stdtarg): Move definition to group with other
13335 gdb_stdtarg definitions and update copyright years.
13336 * remote-sim.c (gdb_os_write_stderr): Write output to
13337 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13338 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13339 gdb_stderr stream and update copyright years.
13340
13341 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13342
13343 * Makefile.in (mips-linux-nat.o): Update dependencies.
13344 * mips-linux-nat.c: Include mips-tdep.h.
13345
13346 2004-02-01 Roland McGrath <roland@redhat.com>
13347
13348 * sol-thread.c (sol_thread_xfer_partial): New function.
13349 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13350 (init_sol_core_ops): Likewise.
13351
13352 * procfs.c (procfs_xfer_partial): New function.
13353 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13354 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13355
13356 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13357 procfs_xfer_auxv function.
13358
13359 * procfs.c (procfs_make_note_section): If we can read
13360 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13361 * linux-proc.c (linux_make_note_section): Likewise.
13362
13363 * auxv.h: New file.
13364 * auxv.c: New file.
13365 * Makefile.in (auxv_h): New variable.
13366 (COMMON_OBS): Add auxv.o here.
13367 (auxv.o): New target.
13368
13369 * corelow.c (core_xfer_partial): New function.
13370 (init_core_ops): Use it for core_ops.to_xfer_partial.
13371
13372 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13373 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13374 macro if that is defined.
13375
13376 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13377
13378 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13379 and check the specified thread for each breakpoint.
13380 * breakpoint.h (bpstat_stop_status): Update prototype.
13381 * infrun.c (handle_inferior_event): Update calls to
13382 bpstat_stop_status.
13383
13384 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13385
13386 * Makefile.in (cli-cmds.o): Add $(readline_h).
13387
13388 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13389
13390 * cli/cli-cmds.c: Include readline.h.
13391 (complete_command): Pass the start of the last word to
13392 complete_line.
13393
13394 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13395
13396 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13397 argument, and change first argument to a CORE_ADDR.
13398 * breakpoint.h (bpstat_stop_status): Update prototype.
13399 * infrun.c (adjust_pc_after_break): Add a new comment.
13400 (handle_inferior_event): Update calls to bpstat_stop_status.
13401
13402 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13403
13404 * breakpoint.h: Update copyright years.
13405
13406 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13407
13408 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13409 (bpstat_stop_status): Don't decrement PC.
13410 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13411 prototype.
13412 * infrun.c (adjust_pc_after_break): New function.
13413 (handle_inferior_event): Call it, early. Remove later references
13414 to DECR_PC_AFTER_BREAK.
13415 (normal_stop): Add commentary.
13416
13417 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13418
13419 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13420 2004-01-27 double-free fix.
13421
13422 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13423
13424 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13425 (sparc32_frame_prev_register): Handle StackGhost.
13426 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13427
13428 2004-01-29 Roland McGrath <roland@redhat.com>
13429
13430 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13431 * configure: Regenerated.
13432
13433 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13434 * Makefile.in (procfs.o): Add dep.
13435
13436 2004-01-28 Andrew Cagney <cagney@redhat.com>
13437
13438 * tui/tui-stack.h: Update copyright.
13439 (struct frame_info): Add opaque declaration.
13440 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13441 (tui_show_locator_content): Rename tuiShowLocatorContent.
13442 (tui_show_frame_info): Rename tuiShowFrameInfo.
13443 * tui/tui-stack.c: Update copyright. Update references.
13444 * tui/tui-winsource.c: Update references.
13445 * tui/tui-win.c: Update references.
13446 * tui/tui-layout.c: Update references.
13447 * tui/tui-hooks.c: Update copyright, update references.
13448 * tui/tui.c: Update copyright, update references.
13449 * tui/tui-disasm.c: Update references.
13450
13451 2004-01-28 David Carlton <carlton@kealia.com>
13452
13453 * dwarf2read.c (add_partial_structure): Use demangled name if
13454 namespace equals "".
13455
13456 2004-01-27 Jim Blandy <jimb@redhat.com>
13457
13458 Clean up misapplied patch:
13459 * dwarf2read.c (determine_prefix): Change one of the two forward
13460 declarations for 'determine_prefix_aux' to a declaration for this.
13461 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13462 argument to 'die_specification'.
13463
13464 * dwarf2read.c (read_func_scope): Re-indent comment.
13465
13466 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13467
13468 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13469 b->exp to NULL after freeing so that error during re-parsing or
13470 evaluation of expressions associated with breakpoint don't
13471 eventually lead to re-freeing of storage.
13472 Committed by Andrew Cagney.
13473
13474 2004-01-27 Andrew Cagney <cagney@redhat.com>
13475
13476 * source.c (ambiguous_line_spec): Delete undefined declaration.
13477 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13478 (m32r_set_server_address, m32r_set_download_path): Ditto.
13479 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13480
13481 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13482
13483 * dwarf2read.c: Update calls to changed and renamed functions, and
13484 references to moved variables.
13485
13486 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13487 language, language_defn, list_in_scope, and ftypes members.
13488 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13489 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13490 (baseaddr): Remove globals.
13491
13492 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13493 (set_cu_language, die_is_declaration, die_specification)
13494 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13495 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13496 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13497 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13498
13499 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13500 cu.list_in_scope. Don't initialize cu_header_offset.
13501 (add_partial_symbol): Add local baseaddr.
13502 (psymtab_to_symtab_1): Add local baseaddr. Use
13503 objfile->section_offsets for consistency. Don't initialize
13504 cu_header_offset; do initialize cu.header.offset and
13505 cu.list_in_scope.
13506 (read_file_scope, read_func_scope, read_lexical_block_scope)
13507 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13508
13509 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13510
13511 * PROBLEMS: Add gdb/1516.
13512
13513 2003-12-29 Robert Millan <robertmh@gnu.org>
13514
13515 Patch committed by Andrw Cagney.
13516 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13517 * configure.tgt: Match knetbsd*-gnu.
13518
13519 2004-01-26 Andrew Cagney <cagney@redhat.com>
13520
13521 * breakpoint.c (catch_command_1): Delete #ifdef code.
13522 (catch_fork_command_1): Delete #ifdef wrapper.
13523 (catch_exec_command_1): Ditto.
13524 (catch_load_command_1): Ditto.
13525 (catch_unload_command_1): Ditto.
13526
13527 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13528 (catch_breakpoint): Delete #if0ed function.
13529 (disable_catch_breakpoint): Ditto.
13530 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13531 (disable_catch, enable_catch, delete_catch): Ditto.
13532
13533 2004-01-26 Andrew Cagney <cagney@redhat.com>
13534
13535 * remote.c (echo_check, quit_flag): Delete variables.
13536 (cisco_kernel_mode): Delete variable.
13537 (minitelnet_return, tty_input, escape_count): Delete variables.
13538 (remote_cisco_mode): Delete variable.
13539 (remote_cisco_open, remote_cisco_close): Delete function.
13540 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13541 (init_remote_cisco_ops): Delete function.
13542 (_initialize_remote): Do not install "remote cisco" code.
13543 (read_frame): Delete cisco specific code.
13544 (remote_info_process): Delete function.
13545 (remote_wait): Delete cisco specific code.
13546 (remote_cisco_section_offsets): Delete function.
13547 (remote_cisco_objfile_relocate): Delete function.
13548 (remote_async_wait): Delete cisco specific code.
13549 (minitelnet, readtty, readsocket): Delete function.
13550
13551 2004-01-26 Andrew Cagney <cagney@redhat.com>
13552
13553 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13554 comments mentioning extract_returned_value_address.
13555 * infcmd.c (print_return_value): Update. Add comments on
13556 extract_returned_value_address.
13557 * stack.c (return_command): Add comments on
13558 extract_returned_value_address.
13559 * values.c: Update comment.
13560 * m32r-tdep.c: Update comment.
13561 * sparc-tdep.c: Update comment.
13562 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13564 * sh64-tdep.c (sh64_gdbarch_init): Update.
13565 * sh-tdep.c (sh_gdbarch_init): Update.
13566 * s390-tdep.c (s390_gdbarch_init): Update.
13567 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13568 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13569 * m68k-tdep.c (m68k_gdbarch_init): Update.
13570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13571 * m32r-tdep.c (m32r_gdbarch_init): Update.
13572 * ia64-tdep.c (ia64_gdbarch_init): Update.
13573 * h8300-tdep.c (h8300_gdbarch_init): Update.
13574 * frv-tdep.c (frv_gdbarch_init): Update.
13575 * arm-tdep.c (arm_gdbarch_init): Update.
13576 * alpha-tdep.c (alpha_gdbarch_init): Update.
13577
13578 2004-01-26 Andrew Cagney <cagney@redhat.com>
13579
13580 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13581 SYMBOL_LOCATION_FUNCS
13582 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13583 "struct symbol_ops".
13584 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13585 type to "struct symbol_ops".
13586 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13587 (struct symbol): Replace ".aux_value.loc.funcs" and
13588 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13589 (SYMBOL_OBJFILE): Delete macro.
13590 (SYMBOL_LOCATION_FUNCS): Delete macro.
13591 (SYMBOL_LOCATION_BATON): Update.
13592 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13593 intead of SYMBOL_LOCATION_FUNCS.
13594 * ax-gdb.c (gen_var_ref): Ditto.
13595 * printcmd.c (address_info): Ditto.
13596 * findvar.c (read_var_value): Ditto.
13597 (symbol_read_needs_frame): Ditto.
13598
13599 2004-01-26 Andrew Cagney <cagney@redhat.com>
13600
13601 * dwarf2read.c (read_func_scope): Document frame-base hack.
13602
13603 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13604
13605 * infcmd.c (print_return_value): Plug memory leak; delete
13606 ui_stream object. Rename argument `structure_return' to
13607 `struct_return'.
13608
13609 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13610
13611 * infcmd.c (print_return_value): Wrap long lines.
13612 (finish_command_continuation, finish_command): Remove unused
13613 variable `funcaddr'. Fix some coding-standards problems.
13614
13615 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13616 SECT_SIZE is large enough, not whether it's exactly the right size.
13617 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13618 TDEP->fpregset to zero.
13619
13620 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13621 floating-point registers for traditional NetBSD core files.
13622 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13623 TDEP->sizeof_fpregset here.
13624
13625 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13626
13627 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13628 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13629 function with code split out from
13630 sparc32nbsd_sigcontext_frame_cache.
13631 (sparc32nbsd_sigcontext_frame_cache): Use
13632 sparc32nbsd_sigcontext_saved_regs.
13633 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13634 OpenBSD.
13635 * sparcobsd-tdep.c: New file.
13636 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13637 (sparcobsd-tdep.o): New dependency.
13638 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13639 * config/sparc/obsd.mt: New file.
13640
13641 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13642 TDEP->fpregset to be initialized to enable core file register
13643 sets.
13644
13645 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13646
13647 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13648 Add opaque declarations.
13649 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13650 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13651 function with code split out from
13652 sparc64nbsd_sigcontext_frame_cache.
13653 (sparc64nbsd_sigcontext_frame_cache): Use
13654 sparc64nbsd_sigcontext_saved_regs.
13655 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13656 OpenBSD.
13657 * sparc64obsd-tdep.c: New file.
13658 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13659 (sparc64obsd-tdep.o): New dependency.
13660 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13661 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13662 * config/sparc/obsd64.mt: New file.
13663
13664 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13665 read the instruction at PC.
13666
13667 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13668 value of GDB_OSABI_DEFAULT.
13669 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13670 instead of GDB_OSABI_NETBSD_AOUT.
13671
13672 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13673
13674 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13675 copyright.
13676
13677 2004-01-23 Andrew Cagney <cagney@redhat.com>
13678
13679 * printcmd.c (display_command): Replace tui_set_display call with
13680 tui_set_layout_for_display_command.
13681 * tui/tui.h (enum tui_win_type): Define.
13682 (tui_set_layout): Delete declaration.
13683 (tui_set_layout_for_display_command): Rename set_tui_layout.
13684 * tui/tui-data.h (enum tui_layout_type): Define.
13685 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13686 "tui.h".
13687 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13688 (tui_default_win_height): Rename tuiDefaultWinHeight.
13689 (tui_default_win_viewport_height): Rename
13690 tuiDefaultWinViewportHeight.
13691 (tui_set_layout): RenametuiSetLayout.
13692 * tui/tui-layout.c: Update references.
13693 * tui/tui.c: Update references.
13694 * tui/tui-disasm.c: Update references.
13695
13696 2004-01-23 David Carlton <carlton@kealia.com>
13697
13698 Partial workaround for PR c++/1511:
13699 * cp-namespace.c: Include frame.h.
13700 (cp_lookup_transparent_type): New
13701 (cp_lookup_transparent_type_loop): New.
13702 * cp-support.h: Declare cp_lookup_transparent_type.
13703 * symtab.c (basic_lookup_transparent_type): Renamed from
13704 lookup_transparent_type.
13705 (lookup_transparent_type): Replace old body by a call to
13706 current_language->la_lookup_transparent_type.
13707 * symtab.h: Update copyright. Declare
13708 basic_lookup_transparent_type.
13709 * language.h: Update copyright.
13710 (struct language_defn): Add la_lookup_transparent_type.
13711 * language.c: Update copyright.
13712 (unknown_language_defn): Add basic_lookup_transparent_type.
13713 (auto_language_defn): Add basic_lookup_transparent_type.
13714 (local_language_defn): Add basic_lookup_transparent_type.
13715 * ada-lang.c: Update copyright.
13716 (ada_language_defn): Add basic_lookup_transparent_type.
13717 * c-lang.c: Update copyright.
13718 (c_language_defn): Add basic_lookup_transparent_type.
13719 (cplus_language_defn): Add basic_lookup_transparent_type.
13720 (asm_language_defn): Add basic_lookup_transparent_type.
13721 (minimal_language_defn): Add basic_lookup_transparent_type.
13722 * f-lang.c: Update copyright.
13723 (f_language_defn): Add basic_lookup_transparent_type.
13724 * jv-lang.c: Update copyright.
13725 (java_language_defn): Add basic_lookup_transparent_type.
13726 * m2-lang.c: Update copyright.
13727 (m2_language_defn): Add basic_lookup_transparent_type.
13728 * objc-lang.c: Update copyright.
13729 (objc_language_defn): Add basic_lookup_transparent_type.
13730 * p-lang.c: Update copyright.
13731 (p_language_defn): Add basic_lookup_transparent_type.
13732 * scm-lang.c: Update copyright.
13733 (scm_language_defn): Add basic_lookup_transparent_type.
13734 * Makefile.in (cp-namespace.o): Depend on frame.h.
13735
13736 2004-01-23 David Carlton <carlton@kealia.com>
13737
13738 Patch for PR c++/1520:
13739 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13740 properly if we have a specification die.
13741 (determine_prefix_aux): Rename from determine_prefix.
13742 (determine_prefix): Like the old determine_prefix, but never
13743 returns NULL.
13744
13745 2004-01-23 Theodore A. Roth <troth@openavr.org>
13746
13747 * avr-tdep.c: Update copyright.
13748 (avr_iaddr_p): Delete unused function.
13749 (avr_saddr_p): Delete unused function.
13750
13751 2004-01-23 David Carlton <carlton@kealia.com>
13752
13753 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13754 Fix for PR symtab/1534.
13755
13756 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13757
13758 * NEWS (New native configurations): Mention OpenBSD/sparc and
13759 OpenBSD/sparc64.
13760 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13761 * configure.host: Likewise.
13762 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13763 handler for OpenBSD.
13764 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13765
13766 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13767
13768 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13769 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13770
13771 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13772 * cli/cli-cmds.c (shell_escape): Likewise.
13773
13774 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13775 OpenBSD .note.openbsd.ident sections.
13776
13777 2004-01-22 David Carlton <carlton@kealia.com>
13778
13779 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13780 get_scope_pc_bounds.
13781 (read_file_scope): Ditto.
13782 (get_scope_pc_bounds): New function, produced by extracting code
13783 from the above two functions, consolidating it, and adding support
13784 for DW_TAG_namespace.
13785
13786 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13787
13788 * osabi.c (MAX_NOTESZ): New define.
13789 (check_note): New function.
13790 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13791 check_note.
13792
13793 2004-01-21 Roland McGrath <roland@redhat.com>
13794
13795 * MAINTAINERS (write after approval): Add myself.
13796
13797 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13798
13799 * utils.c (init_page_info): Move declarations of `rows' and
13800 `cols' before the __GO32__-specific code. Move the closing brace
13801 outside the #ifdef __GO32__..#endif block.
13802 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13803
13804 2004-01-21 Paul Brook <paul@codesourcery.com>
13805
13806 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13807 BPSTAT_WHAT_CHECK_SHLIBS.
13808
13809 2004-01-21 Paul Brook <paul@codesourcery.com>
13810
13811 * MAINTAINERS: Add myself to write-after-approval.
13812
13813 2004-01-20 Andrew Cagney <cagney@redhat.com>
13814
13815 * ax-gdb.c (print_axs_value): Delete unused function.
13816 * jv-lang.c (java_lookup_type): Delete unused function.
13817 * cli/cli-dump.c (dump_filetype): Delete unused function.
13818 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13819 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13820 (mips_getstring): Delete unused function.
13821 (pmon_insert_breakpoint): Delete #if0ed function.
13822 (PMON_MAX_BP): Delete #if0ed MACRO.
13823 (mips_pmon_bp_info): Delete #if0ed variable.
13824 (pmon_remove_breakpoint): Delete #if0ed function.
13825 * monitor.c (monitor_write_even_block): Delete unused function.
13826 (monitor_write_memory_block): Delete #if0ed code.
13827 * dink32-rom.c (dink32_load): Delete unused function.
13828 (_initialize_dink32_rom): Delete #if0ed code.
13829 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13830
13831 * tui/tui-command.c: Update references.
13832 * tui/tui-io.c: Update references.
13833 * tui/tui-command.h: Update copyright.
13834 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13835
13836 * source.c (ambiguous_line_spec): Delete never-defined function.
13837 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13838 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13839 * cli/cli-cmds.c (validate_comname): Ditto.
13840
13841 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13842 "tui-data.h".
13843 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13844 (tui_show_disassem): Rename tuiShowDisassem.
13845 (tui_show_disassem_and_update_source): Rename
13846 tuiVerticalDisassemScroll.
13847 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13848 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13849 * tui/tui.h: Update copyright.
13850 (enum tui_status): Define.
13851 * tui/tui-data.h (enum tui_scroll_direction): Define.
13852 * tui/tui-disasm.c: Update copyright. Update references.
13853 * tui/tui-winsource.c: Update copyright. Update references.
13854 * tui/tui-win.c: Update references.
13855 * tui/tui-layout.c: Update references.
13856
13857 2004-01-20 Andrew Cagney <cagney@redhat.com>
13858
13859 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13860 sym2 to start of block.
13861
13862 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13863
13864 * MAINTAINERS: Delete mmalloc.
13865 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13866 * NEWS: Mention removal of --with-malloc.
13867 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13868 * config.in: Regenerate.
13869 * configure: Regenerate.
13870 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13871 USE_MMALLOC, MMCHECK_FORCE.
13872 * gdbinit.in: Remove mmalloc.
13873 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13874 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13875 * config/i386/go32.mh: Likewise.
13876 * config/i386/interix.mh: Likewise.
13877 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13878
13879 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13880
13881 * linespec.c (decode_variable, symtab_from_filename): Call
13882 error_silent with error message instead of throwing an exception
13883 directly.
13884 * defs.h (error_silent, error_output_message): Add prototypes.
13885 (catch_exceptions_with_msg): Ditto.
13886 * utils.c (error_silent, error_output_message): New functions.
13887 * top.c (catch_exceptions_with_msg): New function.
13888
13889 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13890
13891 * mi/mi-cmds.h (enum print_values): Add definition.
13892
13893 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13894 type and value for simple data types and just the name and type
13895 for complex ones, if required.
13896
13897 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13898 children, if required.
13899
13900 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13901
13902 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13903 unused declarations.
13904
13905 2004-01-19 Andrew Cagney <cagney@redhat.com>
13906
13907 * top.h (mapped_symbol_files): Delete declaration.
13908 * main.c (captured_main): Delete option "m" and "mapped".
13909 * objfiles.c (mapped_symbol_files): Delete variable.
13910 * symfile.c (symbol_file_command): Delete mmap code.
13911 (symbol_file_add_with_addrs_or_offsets): Ditto.
13912 (add_symbol_file_command, reread_separate_symbols): Ditto.
13913 * objfiles.h (OBJF_MAPPED): Delete.
13914 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13915 (free_objfile) [USE_MMALLOC]: Ditto.
13916 (open_existing_mapped_file): Delete function.
13917 (open_mapped_file): Delete function.
13918 (map_to_file): Delete function.
13919
13920 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13921
13922 * infrun.c (step_into_function): Account for possible breakpoint
13923 adjustment when computing ``stop_func_start''.
13924
13925 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13926
13927 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13928 the region size against the size of a pointer, not the size of
13929 a register as given by DEPRECATED_REGISTER_SIZE.
13930
13931 2004-01-19 Andrew Cagney <cagney@redhat.com>
13932
13933 * tui/tui-regs.h: Include "tui-data.h".
13934 (tuiFirstRegElementNoInLine): Delete declaration.
13935 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13936 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13937 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13938 (tui_calculate_regs_column_count): Rename
13939 tuiCalculateRegsColumnCount.
13940 (tui_check_register_values): Rename tuiCheckRegisterValues.
13941 (tui_show_registers): Rename tuiShowRegisters.
13942 (tui_display_registers_from_line): Rename
13943 tuiDisplayRegistersFromLine.
13944 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13945 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13946 (tui_first_reg_element_no_inline): Rename
13947 tuiFirstRegElementNoInLine.
13948 * tui/tui-data.h: Update copyright.
13949 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13950 * tui/tui-windata.c: Update copyright, update references.
13951 * tui/tui-regs.c: Update copyright, update references.
13952 * tui/tui-win.c: Update copyright, update references.
13953 * tui/tui-layout.c: Update copyright, update references.
13954
13955 2004-01-18 Andrew Cagney <cagney@redhat.com>
13956
13957 * tui/tui-io.c: Update copyright.
13958 (key_is_end_sequence, key_is_backspace): New functions.
13959 (key_is_command_char, key_is_start_sequence): New function.
13960 (tui_getc): Update references.
13961 * tui/tui-io.h: Update copyright.
13962 (m_tuiStartNewLine): Delete macro.
13963 (m_isBackspace, m_isDeleteChar): Delete macros.
13964 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13965 (m_isNextPage, m_isPrevPage): Delete macros.
13966 (m_isLeftArrow, m_isRightArrow): Delete macros.
13967 (m_isXdbStyleCommandChar): Delete macro.
13968 (key_is_start_sequence): Declare, replace m_isStartSequence.
13969 (key_is_end_sequence): Declare, replace m_isEndSequence.
13970 (key_is_backspace): Declare ,replace m_isBackspace.
13971 (key_is_command_char): Declare, replace m_isCommandChar.
13972 * tui/tui-command.c: Update copyright.
13973 (tuiDispatchCtrlChar): Update references.
13974
13975 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13976 tuiSourceWin.h.
13977
13978 * tui/tui-command.c: Rename tui/tuiCommand.c.
13979 * tui/tui-command.h: Rename tui/tuiCommand.h.
13980 * tui/tui-data.c: Rename tui/tuiData.c.
13981 * tui/tui-data.h: Rename tui/tuiData.h.
13982 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13983 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13984 * tui/tui-io.c: Rename tui/tuiIO.c.
13985 * tui/tui-io.h: Rename tui/tuiIO.h.
13986 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13987 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13988 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13989 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13990 * tui/tui-source.c: Rename tui/tuiSource.c.
13991 * tui/tui-source.h: Rename tui/tuiSource.h.
13992 * tui/tui-stack.c: Rename tui/tuiStack.c.
13993 * tui/tui-stack.h: Rename tui/tuiStack.h.
13994 * tui/tui-win.c: Rename tui/tuiWin.c.
13995 * tui/tui-win.h: Rename tui/tuiWin.h.
13996 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13997 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13998 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13999 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14000 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14001 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14002 * tui/tui-file.c: Update includes.
14003 * tui/tui-hooks.c: Update includes.
14004 * tui/tui-interp.c: Update includes.
14005 * tui/tui.c: Update includes.
14006 * Makefile.in: Update all tui/ dependencies.
14007 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14008
14009 * Makefile.in: Update copyright. Update dependencies.
14010
14011 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14012 problem.
14013
14014 2004-01-18 Andrew Cagney <cagney@redhat.com>
14015
14016 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14017 instead of register_gdbarch_init.
14018
14019 * remote-sds.c (tohex): Delete unused function. Update copyright.
14020 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14021 * v850-tdep.c (v850_register_virtual_size): Ditto.
14022 * target.c (normal_target_post_startup_inferior): Ditto.
14023 * source.c (ambiguous_line_spec): Ditto.
14024 * remote.c (adapt_remote_get_threadinfo): Ditto.
14025 * mi/mi-out.c (out_field_fmt): Ditto.
14026 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14027 (output_control_change_notification): Ditto.
14028 * m68k-tdep.c (m68k_register_byte): Ditto.
14029 (m68k_remote_breakpoint_from_pc): Ditto.
14030 * ui-out.c (init_ui_out_state): Delete unused declaration.
14031 * stabsread.c (search_value): Ditto.
14032 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14033 * maint.c (print_section_table): Ditto.
14034 * infrun.c (set_follow_fork_mode_command): Ditto.
14035
14036 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14037
14038 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14039 DW_CFA_def_cfa_exporession. Add support for
14040 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14041 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14042
14043 2004-01-18 Andrew Cagney <cagney@redhat.com>
14044
14045 * ocd.c: Update copyright.
14046 (bdm_read_register_command): Delete unused function.
14047 (_initialize_remote_ocd): Delete commented out reference.
14048 (get_quoted_char, reset_packet): Delete #if0ed function.
14049 (output_packet, put_quoted_char): Delete #if0ed function.
14050 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14051 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14052 (BDM_BREAKPOINT): Delete #if0ed macro.
14053 (remote_timeout): Delete #if0ed variable.
14054
14055 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14056
14057 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14058 (core-sol2.o): Remove dependency.
14059 * core-sol2.c: Remove file.
14060
14061 2004-01-17 Andrew Cagney <cagney@redhat.com>
14062
14063 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14064 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14065 enums.
14066
14067 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14068
14069 * remote.c: Update copyright years.
14070
14071 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14072
14073 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14074
14075 2004-01-17 Andrew Cagney <cagney@redhat.com>
14076
14077 * mdebugread.c: Update copyright.
14078 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14079 (parse_type, parse_procedure): Ditto.
14080 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14081
14082 * cris-tdep.c (cris_store_struct_return): Put back accidently
14083 deleted function.
14084
14085 * gdbarch.sh: Update copyright year.
14086 * gdbarch.h, gdbarch.c: Re-generate.
14087
14088 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14089
14090 Suggested by George Anzinger.
14091 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14092 correct stack offset. Include unknown opcode numbers in the error
14093 message.
14094
14095 2004-01-17 Andrew Cagney <cagney@redhat.com>
14096
14097 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14098 extract_struct_value_address, i386 does not set it.
14099 * sparc64-tdep.c (sparc64_init_abi): Do not set
14100 extract_struct_value_address, never called.
14101 (sparc64_extract_struct_value_address): Delete function.
14102 * m68hc11-tdep.c: Update copyright.
14103 (m68hc11_gdbarch_init): Delete redundant assignment of
14104 extract_struct_value_address.
14105 * i386-tdep.c: Update copyright.
14106 (i386_gdbarch_init): Do not set extract_struct_value_address,
14107 never called.
14108 (i386_extract_struct_value_address): Delete function.
14109 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14110 extract_struct_value_address, never called.
14111 (sparc32_extract_struct_value_address): #if 0 function. Add
14112 comments explaining its future.
14113
14114 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14115
14116 * arm-tdep.c (arm_write_pc): New function.
14117 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14118
14119 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14120
14121 * breakpoint.c (must_shift_inst_regs): Delete.
14122 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14123 and SHIFT_INST_REGS.
14124 * infcmd.c (step_1, step_1_continuation): Delete references to
14125 SHIFT_INST_REGS.
14126 * infrun.c (keep_going): Likewise.
14127 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14128 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14129
14130 2004-01-17 Andrew Cagney <cagney@redhat.com>
14131
14132 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14133 * gdbarch.h, gdbarch.c: Re-generate.
14134 * infcmd.c (print_return_value): Delete reference to
14135 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14136
14137 * cris-tdep.c (cris_gdbarch_init): Do not set
14138 deprecated_extract_struct_value_address.
14139
14140 * xstormy16-tdep.c: Update copyright.
14141 (xstormy16_extract_struct_value_address): Update to current
14142 extract struct value address interface.
14143 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14144 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14145 current extract struct value address interface.
14146 (sh64_gdbarch_init): Set extract_struct_value_address.
14147
14148 * cris-tdep.c: Update copyright.
14149 (cris_extract_struct_value_address): Delete function.
14150 (struct_return_address): Delete variable.
14151 (cris_store_struct_return): Do not set struct_return_address.
14152
14153 * mcore-tdep.c: Update copyright.
14154 (mcore_extract_struct_value_address): Delete function. Update
14155 comments.
14156 (mcore_gdbarch_init): Update.
14157 * mn10300-tdep.c: Update copyright.
14158 (mn10300_extract_struct_value_address): Delete function.
14159 (mn10300_gdbarch_init): Update.
14160 * v850-tdep.c: Update copyright.
14161 (v850_extract_struct_value_address): Delete.
14162 (v850_gdbarch_init): Update.
14163 * ns32k-tdep.c: Update copyright.
14164 (ns32k_extract_struct_value_address): Delete.
14165 (ns32k_gdbarch_init): Update.
14166 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14167 (hppa_gdbarch_init): Update.
14168 * vax-tdep.c: Update copyright.
14169 (vax_extract_struct_value_address): Delete.
14170 (vax_gdbarch_init): Update.
14171
14172 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14173 * gdbarch.h, gdbarch.c: Re-generate.
14174 * procfs.c (procfs_fetch_registers): Delete reference to
14175 DEPRECATED_NPC_REGNUM.
14176 (procfs_store_registers): Ditto.
14177 * regcache.c (generic_target_write_pc): Simplify.
14178 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14179
14180 * core-sol2.c (fetch_core_registers): Replace
14181 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14182
14183 * hppa-tdep.c: Update copyright year.
14184 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14185 NPC_REGNUM.
14186 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14187
14188 * mips-tdep.c (mips_write_pc): New function.
14189 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14190 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14191 (mips_find_saved_regs, mips_software_single_step: Ditto.
14192 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14193 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14194
14195 2004-01-17 Andrew Cagney <cagney@redhat.com>
14196
14197 * mips-tdep.c: Re-indent. Group functions by ABI.
14198
14199 2004-01-17 Andrew Cagney <cagney@redhat.com>
14200
14201 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14202 * gdbarch.c: Re-generate.
14203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14204 DECR_PC_AFTER_BREAK to zero.
14205 * vax-tdep.c (vax_gdbarch_init): Ditto.
14206 * v850-tdep.c (v850_gdbarch_init): Ditto.
14207 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14208 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14209 * sh-tdep.c (sh_gdbarch_init): Ditto.
14210 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14211 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14213 * mips-tdep.c (mips_gdbarch_init): Ditto.
14214 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14216 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14218 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14219 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14220 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14221 * frv-tdep.c (frv_gdbarch_init): Ditto.
14222 * cris-tdep.c (cris_gdbarch_init): Ditto.
14223 * avr-tdep.c (avr_gdbarch_init): Ditto.
14224 * arm-tdep.c (arm_gdbarch_init): Ditto.
14225 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14226
14227 2004-01-17 J. Brobecker <brobecker@gnat.com>
14228
14229 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14230 Delete, no longer used.
14231 (read_subrange_type): New function, mostly extracted from
14232 read_array_type().
14233 (read_array_type): Replace extracted code by call to
14234 read_subrange_type().
14235 (dwarf2_get_attr_constant_value): New function.
14236 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14237 (add_partial_symbol): Likewise.
14238 (process_die): Likewise.
14239 (new_symbol): Likewise.
14240 (read_type_die): Likewise.
14241
14242 2004-01-16 Andrew Cagney <cagney@redhat.com>
14243
14244 * symfile.c: Update copyright year.
14245 (compare_symbols): Delete unused function.
14246 * stabsread.c: Update copyright year.
14247 (lrs_general_complaint): Delete unused function.
14248 (ref_search_value): Ditto.
14249 (get_substring): Delete declaration.
14250 * sh64-tdep.c: Update copyright year.
14251 (sh64_get_gdb_regnum): Delete unused function.
14252 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14253 Delete unused function.
14254
14255 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14256
14257 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14258 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14259
14260 2004-01-16 Andrew Cagney <cagney@redhat.com>
14261
14262 Changes from Peter Schauer.
14263 * rs6000-tdep.c: Update copyright year.
14264 (rs6000_push_dummy_call): Update the stack pointer before
14265 accessing the corresponding stack region.
14266 * rs6000-nat.c: Update copyright year.
14267 (set_host_arch): Set "info.abfd" to "exec_bfd".
14268
14269 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14270
14271 * blockframe.c: Update copyright year.
14272 (inside_entry_func): Don't treat a zero PC specially.
14273
14274 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14275
14276 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14277 variable.
14278 (gcore_create_callback): Ditto. Skip any memory segment that has
14279 no permissions set.
14280
14281 2004-01-14 David Carlton <carlton@kealia.com>
14282
14283 Change symbols for C++ nested types to contain the fully qualified
14284 name, if possible. (At least in the DWARF-2 case.) Partial fix
14285 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14286 c++/895.
14287 * c-exp.y (qualified_type): Handle types nested within classes.
14288 * cp-namespace.c: Update comments.
14289 (cp_set_block_scope): Delete #if 0.
14290 (cp_lookup_nested_type): Handle types nested within classes.
14291 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14292 when appropriate.
14293 (add_partial_symbol): Add the name of the enclosing namespace to
14294 types.
14295 (pdi_needs_namespace): New.
14296 (add_partial_namespace): Tweak comment.
14297 (add_partial_structure): New.
14298 (psymtab_to_symtab_1): Initialize processing_current_prefix
14299 here...
14300 (process_die): instead of here.
14301 (read_structure_scope): Try to figure out the name of the class or
14302 namespace that the structure might be defined within.
14303 (read_enumeration): Generate fully-qualified names, if possible.
14304 (read_namespace): Don't set name to NULL.
14305 (die_specification): New.
14306 (new_symbol): Generate fully-qualified names for types.
14307 (read_type_die): Determine appropriate prefix.
14308 (determine_prefix): New.
14309 (typename_concat): New.
14310 (class_name): New.
14311 * valops.c (value_aggregate_elt): Pass NOSIDE to
14312 value_struct_elt_for_reference.
14313 (value_struct_elt_for_reference): Make static, add NOSIDE
14314 parameter, call value_maybe_namespace_elt as a last resort.
14315 (value_namespace_elt): Break out code into
14316 value_maybe_namespace_elt.
14317 (value_maybe_namespace_elt): New.
14318
14319 2004-01-12 Andrew Cagney <cagney@redhat.com>
14320
14321 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14322 cooked floating-point registers.
14323 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14324 and value_to_register.
14325
14326 2004-01-13 Andrew Cagney <cagney@redhat.com>
14327
14328 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14329 * gdbarch.c: Re-generate.
14330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14331 FUNCTION_START_OFFSET.
14332 * v850-tdep.c (v850_gdbarch_init): Ditto.
14333 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14334 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14335 * sh-tdep.c (sh_gdbarch_init): Ditto.
14336 * s390-tdep.c (s390_gdbarch_init): Ditto.
14337 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14338 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14339 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14340 * mips-tdep.c (mips_gdbarch_init): Ditto.
14341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14342 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14344 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14345 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14346 * i386-tdep.c (i386_gdbarch_init): Ditto.
14347 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14348 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14349 * frv-tdep.c (frv_gdbarch_init): Ditto.
14350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14351 * cris-tdep.c (cris_gdbarch_init): Ditto.
14352 * avr-tdep.c (avr_gdbarch_init): Ditto.
14353 * arm-tdep.c (arm_gdbarch_init): Ditto.
14354 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14355
14356 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14357
14358 * infrun.c (follow_fork_mode_ask): Remove.
14359 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14360 (follow_fork): Simplify and remove internal error for
14361 follow_fork_mode_ask.
14362 (_initialize_infrun): Update "set follow-fork-mode" help text.
14363
14364 2004-01-13 Andrew Cagney <cagney@redhat.com>
14365
14366 * configure.in: Update copyright year.
14367 (build_warnings): Add -Wunused-label.
14368 * configure: Re-generate.
14369
14370 2004-01-12 Andrew Cagney <cagney@redhat.com>
14371
14372 * exec.h (exec_ops): Make "extern".
14373
14374 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14375 the function is void.
14376 (mips_pseudo_register_write): Ditto.
14377
14378 2004-01-12 Andrew Cagney <cagney@redhat.com>
14379
14380 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14381 call. Never defined.
14382 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14383 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14384 (struct sparc_gregset, struct regcache): Ditto.
14385 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14386
14387 2004-01-12 Andrew Cagney <cagney@redhat.com>
14388
14389 * mi/ChangeLog: Delete file. Renamed to ...
14390 * mi/ChangeLog-1999-2003: New file.
14391 * tui/ChangeLog: Delete file. Renamed to ...
14392 * tui/ChangeLog-1998-2003: New file.
14393
14394 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14395
14396 * sparc64nbsd-tdep.c: Include "regset.h".
14397 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14398 Remove variables.
14399 (fetch_core_registers): Remove function.
14400 (sparc64nbsd_core_fns): Remove variable.
14401 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14402 functions.
14403 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14404 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14405 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14406
14407 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14408 sparc_extract_struct_value_address.
14409 (sparc32_gdbarch_init): Set extract_struct_value_address.
14410 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14411 function.
14412 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14413 return_value_on_stack.
14414
14415 * NEWS: Mention that %cs and %ss have been added to the AMD64
14416 configurations
14417
14418 * frame.c: Update copyright year.
14419 (get_prev_frame): Improve comment.
14420
14421 * sparc64fbsd-tdep.c: Include "regset.h".
14422 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14423 Remove variables.
14424 (fetch_core_registers): Remove function.
14425 (sparc64fbsd_core_fns): Remove variable.
14426 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14427 functions.
14428 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14429 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14430 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14431
14432 * sparcnbsd-tdep.c: Include "regset.h".
14433 (fetch_core_registers): Remove function.
14434 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14435 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14436 functions.
14437 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14438 TDEP->fpregset.
14439 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14440
14441 * sparc-tdep.h (struct regset): Provide opaque declaration.
14442 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14443 fpregset and sizeof_fpregset members.
14444 * sparc-tdep.c (struct regset): Provide opaque declaration.
14445 (sparc_regset_from_core_section): New function.
14446 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14447 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14448 Set regset_from_core_section when appropriate.
14449
14450 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14451
14452 * x86-64-tdep.c (amd64_non_pod_p): New function.
14453 (amd64_classify_aggregate): Return class memory for non-POD
14454 C++ structure types.
14455
14456 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14457 argument. Use it to reserve a register if necessary.
14458 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14459 amd64_push_arguments.
14460
14461 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14462
14463 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14464 register numbers in comments.
14465 * x86-64-tdep.h: Update copyright year.
14466 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14467 Adjust for addition of %cs and %ss.
14468 * amd64fbsd-nat.c: Update copyright year.
14469 (reg_offset): Add register offsets for %cs and %ss.
14470 * amd64fbsd-tdep.c: Update copyright year.
14471 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14472 (amd64fbsd_sc_reg_offset): Likewise.
14473 * x86-64-linux-nat.c: Update copyright year.
14474 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14475 and %ss.
14476 * amd64nbsd-nat.c: Update copyright year.
14477 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14478 * amd64nbsd-tdep.c: Update copyright year.
14479 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14480 * x86-64-linux-tdep.c: Update copyright year.
14481 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14482 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14483 * regformats/reg-x86-64.dat: Add %cs and %ss.
14484
14485 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14486 variables to prevent long lines. Update comments to reflect
14487 reality.
14488
14489 2004-01-09 David Carlton <carlton@kealia.com>
14490
14491 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14492 * dwarf2read.c (read_namespace): Pull out name-generating code
14493 into namespace_name. Rename previous_namespace to previous_prefix
14494 and processing_current_namespace to processing_current_prefix..
14495 (namespace_name): New function.
14496 (add_partial_symbol): Substitute uses of pdi->name with
14497 actual_name.
14498 * cp-support.h: Rename processing_current_namespace to
14499 processing_current_prefix.
14500 Update copyright year.
14501 * cp-namespace.c: Rename processing_current_namespace to
14502 processing_current_prefix.
14503 Update copyright year.
14504
14505 2004-01-09 Andrew Cagney <cagney@redhat.com>
14506
14507 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14508
14509 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14510
14511 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14512 complaining.
14513 (process_one_symbol): Deal with N_PATCH stabs.
14514
14515 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14516
14517 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14518 ifdeffed code.
14519 Update copyright year.
14520
14521 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14522
14523 * config/pa/tm-hppa.h: Update extern declarations for
14524 hppa32_hpux_frame_saved_pc_in_sigtramp,
14525 hppa32_hpux_frame_base_before_sigtramp, and
14526 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14527
14528 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14529
14530 * config/pa/tm-hppah.h: Update copyright years.
14531
14532 2004-01-08 Andrew Cagney <cagney@redhat.com>
14533
14534 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14535 (mips_o32_reg_struct_has_addr): Delete function.
14536 (mips_gdbarch_init): Update.
14537 (mips_extract_struct_value_address): Delete function.
14538
14539 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14540
14541 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14542 reality.
14543
14544 2004-01-07 Andrew Cagney <cagney@redhat.com>
14545
14546 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14547 architecture's elf flags (when available).
14548
14549 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14550 FPU to the start, check the MIPS FPU when looking for an old
14551 architecture.
14552 (set_mipsfpu_single_command): Update the architecture.
14553 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14554
14555 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14556 (mips_mask_address_p): Add "tdep" parameter.
14557 (show_mask_address, mips_addr_bits_remove): Update.
14558 (mips_dump_tdep): Update.
14559 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14560 (MIPS_STACK_ARGSIZE): Delete macro.
14561 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14562 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14563 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14564 (mips_dump_tdep): Update.
14565 (MIPS_SAVED_REGSIZE): Delete macro.
14566 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14567 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14568 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14569 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14570 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14571 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14572 (mips_pop_frame, return_value_location): Update.
14573 (mips_n32n64_return_value, mips_dump_tdep): Update.
14574
14575 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14576 MIPS ABI.
14577
14578 * mips-tdep.c: Update copyright.
14579 (mips_gdbarch_init): Merge two code blocks handling the register
14580 name and number layout.
14581
14582 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14583
14584 * tracepoint.c (validate_actionline): Fix segv at EOF
14585
14586 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14587
14588 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14589 properly for static fields.
14590
14591 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14592 Jason Molenda <jmolenda@apple.com>
14593
14594 * disasm.c: Update copyright to include 2004.
14595 (do_mixed_source_and_assembly): For uiout asm list
14596 and tuple cleanups, initialize to null_cleanup instead of
14597 NULL and do so prior to loop. Only reset when we close off
14598 the tuple/list. Move check for whether to close off the
14599 asm tuple/list to after dump_insns call where it will be run
14600 on each loop iteration.
14601
14602 2004-01-05 Andrew Cagney <cagney@redhat.com>
14603
14604 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14605 should be a switch case and not a label.
14606 * mips-tdep.c (mips32_next_pc): Delete unused labels
14607 "greater_equal_branch" and "less_zero_branch".
14608 * jv-valprint.c (java_print_value_fields): Delete unused label
14609 "flush_it".
14610
14611 * target.c (unpush_target): Only close a target that is in the
14612 target stack.
14613
14614 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14615
14616 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14617 address from [sp + 64] instead of %o2.
14618
14619 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14620 fixes PR backtrace/1476.
14621
14622 2004-01-05 Andrew Cagney <cagney@redhat.com>
14623
14624 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14625 move to start of file.
14626 * i386-tdep.h (struct regcache): Add opaque declaration.
14627 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14628 declaration.
14629 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14630 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14631 * win32-nat.c (fake_create_process): Use ISO C style definition.
14632 * stabsread.c (define_symbol): Delete #ifndef
14633 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14634 stabs_argument_has_addr call, macro never defined.
14635
14636 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14637
14638 * op50-rom.c: Delete.
14639 * w89k-rom.c: Delete.
14640 * Makefile.in: Remove references.
14641
14642 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14643
14644 * x86-64-tdep.c: Update copyright year.
14645 (struct amd64_register_info): Rename from x86_64_register_info.
14646 (amd64_register_info): Rename from x86_64_register_info.
14647 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14648 (amd64_register_name): Rename from x86_64_register_name.
14649 (amd64_register_type): Rename from x86_64_register_type.
14650 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14651 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14652 (amd64_dwarf_reg_to_regnum): Rename from
14653 x86_64_dwarf_reg_to_regnum.
14654 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14655 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14656 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14657 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14658 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14659 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14660 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14661 (amd64_frame_cache): Rename from x86_64_frame_cache.
14662 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14663 (amd64_frame_prev_register): Rename from
14664 x86_64_frame_prev_register.
14665 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14666 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14667 (amd64_sigtramp_frame_cache): Rename from
14668 x86_64_sigtramp_frame_cache.
14669 (amd64_sigtramp_frame_prev_register): Rename from
14670 x86_64_sigtramp_frame_prev_register.
14671 (amd64_sigtramp_frame_unwind): Rename from
14672 x86_64_sigtramp_frame_unwind.
14673 (amd64_sigtramp_frame_sniffer): Rename from
14674 x86_64_sigtramp_frame_sniffer.
14675 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14676 (amd64_frame_base): Rename from x86_64_frame_base.
14677 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14678 (amd64_frame_align): Rename from x86_64_frame_align.
14679 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14680 (amd64_regset_from_core_section): Rename from
14681 x86_64_regset_from_core_section.
14682 (x86_64_init_abi): Update comments.
14683
14684 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14685
14686 * MAINTAINERS (write after approval): Add myself.
14687
14688 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14689
14690 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14691 `float' arguments.
14692
14693 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14694
14695 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14696 such that it mentions a specific version of GCC that exhibits this
14697 bug.
14698
14699 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14700
14701 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14702 structure that has a single `float' member, store it in %f1 in
14703 addition to %f0.
14704
14705 * sparc-sol2-nat.c: Add missing '\'.
14706
14707 * sparc-tdep.c (sparc32_return_value): New function.
14708 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14709 Remove functions.
14710 (sparc32_gdbarch_init): Set return_value, don't set
14711 extract_return_value, store_return_value, use_struct_convention
14712 and return_value_on_stack.
14713
14714 * sparc-sol2-nat.c: Add missing ')'.
14715
14716 2004-01-03 J. Brobecker <brobecker@gnat.com>
14717
14718 * infrun.c (handle_step_into_function): New function.
14719 (handle_inferior_event): Extract out some code into the new
14720 function above.
14721
14722 2004-01-03 J. Brobecker <brobecker@gnat.com>
14723
14724 * infrun.c (handle_inferior_event): Move the declaration of
14725 real_stop_pc inside the if blocks where it is used.
14726
14727 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14728
14729 * sparc64-tdep.c (sparc64_16_byte_align_p)
14730 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14731 Use check_typedef to get subtypes of structures and unions.
14732 (sparc64_store_return_value): Fix calculation of the appropriate
14733 offset into VALBUF when storing a structure or union.
14734 (sparc64_return_value): New function.
14735 (sparc64_use_struct_convention): Remove function.
14736 (sparc64_init_abi): Set return_value, don't set
14737 extract_return_value, store_return_value and
14738 use_struct_convention.
14739
14740 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14741
14742 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14743 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14744 gdb/config/alpha/xm-alphaosf.h,
14745 gdb/config/powerpc/tm-ppcle-eabi.h,
14746 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14747 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14748 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14749 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14750 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14751 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14752 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14753 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14754 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14755 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14756 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14757 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14758 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14759 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14760 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14761 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14762 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14763 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14764 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14765 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14766 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14767 Remove lines for .cvsignore files.
14768
14769 2004-01-03 J. Brobecker <brobecker@gnat.com>
14770
14771 * infrun.c: Back out the previous change.
14772
14773 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14774
14775 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14776 sparc-*-sunos4* to the list of REMOVED configurations.
14777
14778 * configure.tgt: Add back sparc-*-vxworks*.
14779 * remote-vxsparc.c: Remove all includes except for "defs.h",
14780 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14781 Include "sparc-tdep.h".
14782 (SPARC_R_G1): New define.
14783 (vxsparc_gregset): New variable.
14784 (ext_format_sparc): Remove extern declaration.
14785 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14786 sparc32_supply_fpregset.
14787 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14788 sparc_collect_rwindow and sparc32_collect_fpregset.
14789 * config/sparc/tm-vxworks.h: New file, based on recently removed
14790 tm-vxsparc.h.
14791 * config/sparc/vxworks.mt: New file, based on recently removed
14792 vxworks.mt.
14793
14794 2004-01-03 J. Brobecker <brobecker@gnat.com>
14795
14796 * infrun.c (handle_step_into_function): New function.
14797 (handle_inferior_event): Extract out some code into the new
14798 function above.
14799
14800 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14801
14802 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14803 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14804 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14805 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14806 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14807 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14808 (sparc_nat_h): New variable.
14809 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14810 (tm-sun4os4.h): Remove dependency.
14811 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14812 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14813 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14814 sparc-tdep.o): Update dependencies.
14815 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14816 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14817 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14818 dependencies.
14819 * configure.host: Remove existing sparc-*-lynxos*,
14820 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14821 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14822 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14823 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14824 triplets.
14825 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14826 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14827 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14828 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14829 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14830 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14831 sparc64-*-solaris2* and sparc64-*-* triplets.
14832 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14833 "symtab.h" and "objfiles.h".
14834 (BIAS): Remove define.
14835 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14836 (X_DISP19): Remove macros.
14837 (sparc_fetch_instruction): Remove function.
14838 (struct gdbarch_tdep): Remove definition.
14839 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14840 (sparc_breakpoint_from_pc): Remove function.
14841 (struct sparc64_frame_cache): Remove definition.
14842 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14843 sparc64_unwind_pc): Remove functions.
14844 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14845 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14846 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14847 (sparc64_frame_cache): Change return type to `struct
14848 sparc_frame_cache *'. Simply call sparc_frame_cache.
14849 (sparc64_frame_this_id, sparc64_frame_prev_register,
14850 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14851 instead of `struct sparc64_frame_cache.
14852 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14853 sparc_analyze_control_transfer, sparc_software_single_step,
14854 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14855 _initialize_sparc64_tdep): Remove functions.
14856 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14857 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14858 macros.
14859 (sparc64_supply_gregset, sparc64_collect_gregset,
14860 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14861 (sparc64_init_abi): New function.
14862 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14863 inclusion guard. Include "sparc-tdep.h".
14864 (BIAS): Define.
14865 (r_tstate_offset, r_fprs_offset): New defines.
14866 (enum sparc_regnum): Remove defenition.
14867 (enum sparc64_regnum): Reformat.
14868 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14869 (sparc64_init_abi, sparc64_supply_gregset,
14870 sparc64_collect_gregset, sparc64_supply_fpregset,
14871 sparc64_collect_fpregset): New prototypes.
14872 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14873 Add extern declarations.
14874 (sparc64_sol2_init_abi): New prototype.
14875 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14876 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14877 prototypes.
14878 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14879 "sparnbsd-nat.h".
14880 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14881 functions.
14882 (_initialize_sparc64fbsd_nat): Remove initialization of
14883 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14884 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14885 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14886 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14887 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14888 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14889 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14890 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14891 (sparc64fbsd_r_y_offset): Remove variables.
14892 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14893 Make static and const.
14894 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14895 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14896 functions.
14897 (sparc64fbsd_gregset): New variable.
14898 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14899 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14900 and sparc64_supply_fpregset.
14901 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14902 (sparc64fbsd_sigtramp_frame_this_id)
14903 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14904 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14905 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14906 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14907 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14908 * sparcnbsd-tdep.c: Update copyright year. Include
14909 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14910 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14911 "value.h" and "sparcnbsd-tdep.h".
14912 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14913 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14914 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14915 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14916 defines.
14917 (sparcnbsd_gregset): New variable.
14918 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14919 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14920 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14921 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14922 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14923 variables.
14924 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14925 (sparc32nbsd_sigcontext_frame_this_id)
14926 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14927 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14928 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14929 (sparcnbsd_get_longjmp_target_32,
14930 sparcnbsd_get_longjmp_target_64): Remove functions.
14931 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14932 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14933 sparcnbsd_init_elf): Remove.
14934 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14935 (sparcnbsd_elf_init_abi): New functions.
14936 (_initialize_sparcnbsd_tdep): New prototype.
14937 (_initialize_sparnbsd_tdep): Update.
14938 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14939 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14940 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14941 * config/sparc/linux.mh: Update comment.
14942 (XM_FILE, HOST_IPC): Remove variables.
14943 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14944 sparc-linux-nat.o.
14945 * config/sparc/linux.mt: Update comment.
14946 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14947 * config/sparc/nbsd.mt: Reformat.
14948 * config/sparc/nbsd64.mh: Update comment.
14949 (NATDEPFILES): Add sparc-nat.o.
14950 * config/sparc/nbsd64.mt: Update comment.
14951 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14952 (TM_FILE): Set to tm-nbsd.h.
14953 * config/sparc/nbsdelf.mh: Update comment.
14954 (NATDEPFILES): Add sparc-nat.o.
14955 (XM_FILE): Delete.
14956 * config/sparc/nbsdaout.mh: Update comment.
14957 (NATDEPFILES): Add sparc-nat.o
14958 (XM_FILE): Delete.
14959 * config/sparc/nm-linux.h: Update copyright year. Don't include
14960 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14961 inclusion.
14962 (KERNEL_U_SIZE): Remove define.
14963 (kernel_u_size): Remove prototype.
14964 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14965 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14966 "regcache.h".
14967 (CHILD_PREPARE_TO_STORE): Remove define.
14968 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14969 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14970 sparcnbsd-nat.c: Rewrite files.
14971 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14972 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14973 sparcnbsd-tdep.h: Remove files.
14974 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14975 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14976 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14977 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14978 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14979 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14980 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14981 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14982 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14983 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14984 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14985 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14986 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14987 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14988 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14989 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14990 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14991 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14992 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14993
14994 2004-01-02 Andrew Cagney <cagney@redhat.com>
14995
14996 From 2003-12-18 Kazuhiro Inaoka:
14997 * configure.host: Add m32r-linux target.
14998
14999 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15000
15001 * top.c (print_gdb_version): Update year to 2004.
15002
15003 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15004
15005 * MAINTAINERS: Add myself to the write-after-approval category.
15006
15007 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15008
15009 From Bernardo Innocenti <bernie@develer.com>:
15010 * configure.tgt: Add uClinux target.
15011
15012 2004-01-02 Andrew Cagney <cagney@redhat.com>
15013
15014 * utils.c (do_my_cleanups): Make static, add forward declaration.
15015 * defs.h (do_my_cleanups): Delete declaration.
15016
15017 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15018
15019 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15020 bfd/ChangeLog-0203.
15021
15022 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15023
15024 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15025 in <machine/reg.h>.
15026 * configure, config.in: Regenerate.
15027
15028 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15029 tui/ChangeLog-1998-2003.
15030 \f
15031 Local Variables:
15032 mode: change-log
15033 left-margin: 8
15034 fill-column: 74
15035 version-control: never
15036 End:
This page took 0.347205 seconds and 5 git commands to generate.