2004-10-01 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cb85a953
AC
12004-10-01 Andrew Cagney <cagney@gnu.org>
2
3 * target.c (xfer_using_stratum): Change return type to LONGEST.
4 On each iteration offset, readbuf and writebuf.
5 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
6 partial_length, and read/modify/write predicate, update comments.
7 Pass buffer.word to ptrace write.
8
963a6417
PH
92004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10
11 * symfile.c (init_filename_language_table): Add extensions for
12 Ada.
13 * defs.h (enum language): Add language_ada.
14 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
15 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
16 (add_symbols_from_enclosing_procs): Make a no-op for now.
17 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
18 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
19 (find_line_in_linetable, find_next_line_in_linetable)
20 (read_all_symtabs, is_plausible_func_for_line)
21 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
22 (is_runtime_sym_defined, check_size): Remove declaration.
23 (function_name_from_pc, ada_translate_error_message)
24 (ada_lookup_minimal_symbol): Remove definition.
25 (ada_add_block_symbols): Remove useless label.
26 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
27 useless declaration.
28 (ada_is_exception_sym): Likewise.
29
9b32d526
KI
302004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
31
32 Add m32r-linux support.
33 * configure.tgt: Add m32r*-*-linux*.
34 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
35 and m32r-linux-tdep.c.
36 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
37 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
38 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
39 m32r-linux-tdep.c.
40 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
41 config/m32r/linux.mh, config/m32r/linux.mt,
42 config/m32r/nm-linux.h: New files.
43
2de118d3
JB
442004-09-30 Joel Brobecker <brobecker@gnat.com>
45
46 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
47 (mips32_fetch_instruction): Remove, unused.
48
a9fe69d1
JB
492004-09-30 Joel Brobecker <brobecker@gnat.com>
50
51 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
52 conditions that will always be true.
53
bc8ffc12
MK
542004-09-30 Mark Kettenis <kettenis@gnu.org>
55
ba0cd111
MK
56 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
57 (vaxbsd_fetch_inferior_registers): Rename from
58 fetch_inferior_registers. Make static.
59 (vaxbsd_store_inferior_registers): Rename from
60 store_inferior_registers. Make static.
61 (_initialize_vaxbsd_nat): Construct and add target vector.
62 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
63 inftarg.o. Add inf-child.o and inf-ptrace.o.
64 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
65 inftarg.o. Add inf-child.o and inf-ptrace.o.
66 (NAT_FILE): Remove.
67 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
68 inftarg.o. Add inf-child.o and inf-ptrace.o.
69 (NAT_FILE): Remove.
70 * Makefile.in (vaxbsd-nat.o): Update dependencies.
71
bc8ffc12
MK
72 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
73 (m88kbsd_fetch_inferior_registers): Rename from
74 fetch_inferior_registers. Make static.
75 (m88kbsd_store_inferior_registers): Rename from
76 store_inferior_registers. Make static.
77 (_initialize_m88kbsd_nat): New prototype and function.
78 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
79 inftarg.o. Add inf-child.o and inf-ptrace.o.
80 (NAT_FILE): Remove.
81 * Makefile.in (m88kbsd-nat.o): Update dependencies.
82
27394598
AC
832004-09-30 Andrew Cagney <cagney@gnu.org>
84
85 * target.c (target_xfer_partial): New function.
86 (target_read_memory_partial, target_write_memory_partial)
87 (default_xfer_partial, target_read_partial, target_write_partial)
88 (xfer_using_stratum): Use.
89 (debug_to_xfer_partial): Delete function.
90 (setup_target_debug): Do not override to_xfer_partial.
91
74a4fe32
MK
922004-09-30 Mark Kettenis <kettenis@chello.nl>
93
94 * fork-child.c: Update copyright year. Fix coding style.
95
982526a1
MK
962004-09-29 Mark Kettenis <kettenis@gnu.org>
97
98 * defs.h (msavestring, mstrsave): Remove prototypes.
99 * utils.c (msavestring, mstrsave): Remove functions.
100 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
101 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
102 of mstrsave.
103 * source.c (find_and_open_source): Use xstrdup instead of
104 mstrsave.
105
b8eb5af0
AC
1062004-09-30 Andrew Cagney <cagney@gnu.org>
107
0779438d
AC
108 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
109 (inf_ptrace_xfer_memory): Delete.
110 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
111 (target_read_memory, target_write_memory): Use xfer_using_stratum
112 when target_xfer_partial_p.
113 (debug_target): Move to start of file.
114 (target_read_memory_partial, target_write_memory_partial): Use
115 to_xfer_partial when target_xfer_partial_p.
116
f929a579
AC
117 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
118 inf_ptrace_xfer_memory with equivalent code.
119 * inftarg.c (child_xfer_partial): When performing a write, pass
120 writebuf to child_xfer_memory.
121
b8eb5af0
AC
122 * target.c (target_read_string): Use target_read_memory instead of
123 target_xfer_memory.
124
ee21b650
AC
1252004-09-29 Andrew Cagney <cagney@gnu.org>
126
d3e05d0d
AC
127 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
128 the address of status.
129
ee21b650
AC
130 * infptrace.c (ptrace_wait): Mention problem with HPUX.
131 (kill_inferior): Inline ptrace_wait call.
132 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
133 * inftarg.c (child_wait): Inline ptrace_wait call.
134
a182eed6
AC
135 * target.h (struct target_ops): Delete field to_post_wait.
136 (target_post_wait): Delete macro.
137 (child_post_wait): Delete declaration.
138 * target.c (update_current_target, update_current_target)
139 (debug_to_post_wait, setup_target_debug): Delete functions and
140 references.
141 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
142 * inftarg.c (child_post_wait): Delete.
143 (init_child_ops): Do not set to_post_wait.
144 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
145 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
146 * inf-child.c (inf_child_post_wait): Delete.
147 (inf_child_target): Do not set to_post_wait.
148 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
149 (inf_ptrace_target): Do not set to_post_wait.
150
ba0c540b
AC
151 * wince.c (child_ops): Delete.
152 * win32-nat.c (child_ops): Delete.
153
81977402
AC
154 * inftarg.c (inftarg_set_find_memory_regions)
155 (inftarg_set_make_corefile_notes): Delete functions.
156 (_initialize_linux_nat): Inline calls.
157
5ac10fd1
AC
158 * target.h (child_ops): Declare.
159 * inftarg.c (child_ops): Move from here ...
160 * target.c (child_ops): ... to here.
161 * wince.c (child_ops): Delete extern declaration.
162 * win32-nat.c (child_ops): Delete extern declaration.
163 * linux-nat.c (child_ops): Delete extern declaration.
164 * hpux-thread.c (child_ops): Delete extern declaration.
165
663408c2 1662004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
167
168 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
169
0dad8a66
MK
1702004-09-28 Mark Kettenis <kettenis@gnu.org>
171
172 * configure.in: Only set host_makefile_frag when building a native
173 debugger.
174 * configure: Regenerate.
e8d74ed3
MK
175
176 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
177 for OpenBSD ELF.
178
dba24537
AC
1792004-09-28 Andrew Cagney <cagney@gnu.org>
180
e979516b
AC
181 Problem identified by Paul Hilfinger.
182 * Makefile.in (ada_lex_c): Define.
183 (ada-lex.o): Delete rule.
184
dba24537
AC
185 * linux-proc.c: Delete file.
186 * Makefile.in: Update.
187 * config/sparc/linux64.mh (NATDEPFILES):
188 * config/sparc/linux.mh (NATDEPFILES): Update.
189 * config/s390/s390.mh (NATDEPFILES): Update.
190 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
191 * config/powerpc/linux.mh (NATDEPFILES): Update.
192 * config/pa/linux.mh (NATDEPFILES): Update.
193 * config/mips/linux.mh (NATDEPFILES): Update.
194 * config/m68k/linux.mh (NATDEPFILES): Update.
195 * config/ia64/linux.mh (NATDEPFILES): Update.
196 * config/i386/linux64.mh (NATDEPFILES): Update.
197 * config/i386/linux.mh (NATDEPFILES): Update.
198 * config/arm/linux.mh (NATDEPFILES): Update.
199 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
200 * linux-nat.c: Update copyright. Include <sys/param.h>,
201 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
202 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
203 (O_LARGEFILE): Possibly define.
204 (_initialize_linux_nat, linux_proc_pending_signals)
205 (add_line_to_sigset, linux_proc_xfer_memory)
206 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
207 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
208 (struct linux_corefile_thread_data)
209 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
210 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
211
d6b0e80f
AC
2122004-09-16 Andrew Cagney <cagney@gnu.org>
213
214 * lin-lwp.c: Delete file.
215 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
216 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
217 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
218 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
219 (linux_nat_attach, detach_callback, linux_nat_detach)
220 (resume_callback, resume_clear_callback, linux_nat_resume)
221 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
222 (stop_wait_callback, linux_nat_has_pending, flush_callback)
223 (status_callback, running_callback, count_events_callback)
224 (select_singlestep_lwp_callback, select_event_lwp_callback)
225 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
226 (child_wait, stop_and_resume_callback, linux_nat_wait)
227 (kill_callback, kill_wait_callback, linux_nat_kill)
228 (linux_nat_create_inferior, linux_nat_mourn_inferior)
229 (linux_nat_xfer_memory, linux_nat_thread_alive)
230 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
231 (_initialize_linux_nat): New functions.
232 * Makefile.in: Update all dependencies.
233 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
234 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
235 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
236 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
237 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
238 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
239 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
240 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
241 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
242 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
243 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
244 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
245 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
246
5a174d79
MK
2472004-09-27 Mark Kettenis <kettenis@gnu.org>
248
2f604c28
MK
249 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
250 config/i386/obsd64.mh (NAT_FILE): Remove variable.
251
5a174d79
MK
252 * configure.in: Don't comment out NATDEPFILES in the generated
253 Makefile if NAT_FILE is unset.
254 * configure: Regenerate.
255
b2ed1746
AC
2562004-09-27 Andrew Cagney <cagney@gnu.org>
257
44cbf7b5
AC
258 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
259 (insert_step_resume_breakpoint): Delete.
260 (insert_step_resume_breakpoint_at_frame): New function.
261 (insert_step_resume_breakpoint_at_sal): New function.
262 (handle_inferior_event, step_into_function)
263 (insert_step_resume_breakpoint): Simplify by using same.
264
b2ed1746
AC
265 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
266
3691b3be
MK
2672004-09-26 Mark Kettenis <kettenis@gnu.org>
268
36f391e8
MK
269 * fbsd-proc.c: Remove file.
270 * Makefile.in (fbsd-proc.o): Remove dependency.
271
771e236c
MK
272 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
273 code together.
274
3691b3be
MK
275 * config/i386/nm-fbsd64.h: Remove file.
276 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
277
6a5c78a3
MK
2782004-09-26 Mark Kettenis <kettenis@gnu.org>
279
280 * amd64-nat.h: Update copyright year.
281 (amd64bsd_target): New prototype.
282 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
283 (amd64bsd_target): New function.
284 (amd64bsd_fetch_inferior_registers): Rename from
285 fetch_inferior_registers. Make static.
286 (amd64bsd_store_inferior_registers): Rename from
287 store_inferior_registers. Make static.
288 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
289 (_initialize_amd64fbsd_nat): Construct and add target vector.
290 * amd64nbsd-nat.o: Include "target.h".
291 (_initialize_amd64nbsd_nat): Construct and add target vector.
292 * amd64obsd-nat.c: Include "target.h".
293 (_initialize_amd64obsd_nat): Construct and add target vector.
294 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
295 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
296 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
297 fbsd-nat.o.
298 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
299 Remove infptrace.o and inftarg.o. Add inf-child.o and
300 inf-ptrace.o.
301 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
302 (amd64obsd-nat.o): Update dependencies.
303
27acbe61
MK
3042004-09-25 Mark Kettenis <kettenis@gnu.org>
305
509a5e7d
MK
306 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
307 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
308 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
309 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
310 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
311
6e1e94ea
MK
312 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
313 Inline attach call.
314 (inf_ptrace_detach): Inline detach call.
315
8b9cf735
MK
316 * configure.in: Check for waddstr instead of mvwaddstr when
317 searching for curses library. Check for wborder.
318 * configure, config.in: Regenerate.
319 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
320 available.
321
27acbe61
MK
322 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
323
b96ec7ac
AC
3242004-09-24 Robert Picco <Robert.Picco@hp.com>
325
326 Committed by Andrew Cagney.
327 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
328 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
329 configuration.
330 (fetch_register_using_p): Implement 'p' packet. Based on code by
331 Fernando Nasser.
332 (remote_fetch_registers): Call fetch_register_using_p.
333 (init_all_packet_configs, show_remote_cmd)
334 (_initialize_remote): Add p-packet.
335
62ece330
MK
3362004-09-24 Mark Kettenis <kettenis@gnu.org>
337
338 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
339 instead of call_ptrace. Call wait directly instead of
340 ptrace_wait.
341 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
342 (inf_ptrace_wait): Inline ptrace_wait call.
343
00937274
PH
3442004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
345
346 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
347 rolled back instead.
348
3f2c7a45
PH
3492004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
350
351 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
352 the new argument order.
353
b6fcb393
CV
3542004-09-23 Corinna Vinschen <vinschen@redhat.com>
355
356 * MAINTAINERS: Remove "broken" from XStormy16 entry.
357 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
358 (struct gdbarch_tdep): Remove.
359 (struct xstormy16_frame_cache): New frame cache structure.
360 (xstormy16_register_byte, xstormy16_register_raw_size)
361 (xstormy16_reg_virtual_type, xstormy16_register_type)
362 (xstormy16_push_arguments, xstormy16_push_return_address)
363 (xstormy16_pop_frame, xstormy16_store_struct_return)
364 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
365 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
366 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
367 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
368 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
369 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
370 (xstormy16_use_struct_convention): Drop gcc_p parameter.
371 (xstormy16_extract_return_value, xstormy16_store_return_value):
372 Regcachify. Drop useless struct convention handling.
373 (xstormy16_register_type, xstormy16_return_value)
374 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
375 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
376 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
377 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
378 (xstormy16_unwind_sp, xstormy16_unwind_pc)
379 (xstormy16_unwind_dummy_id) : New functions.
380 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
381 of xstormy16_scan_prologue.
382 (xstormy16_frame_unwind): New frame_unwind structure.
383 (xstormy16_frame_base): New frame_base structure.
384 (xstormy16_gdbarch_init): Accomodate all of the above changes.
385 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
386
1285b746
MK
3872004-09-22 Mark Kettenis <kettenis@gnu.org>
388
389 * language.c (language_gdbarch_post_init): Fix off-by one error.
390
1c379e20
DJ
3912004-09-21 Daniel Jacobowitz <dan@debian.org>
392
393 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
394 (struct dwarf2_offset_and_type): New.
395 (set_die_type, reset_die_and_siblings_types, get_die_type)
396 (offset_and_type_hash, offset_and_type_eq): New functions.
397 (read_structure_type, read_enumeration_type, read_array_type)
398 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
399 (read_tag_reference_type, read_tag_const_type)
400 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
401 (read_typedef, read_base_type, read_subrange_type): Use
402 set_die_type.
403
ae038cb0
DJ
4042004-09-20 Daniel Jacobowitz <dan@debian.org>
405
406 * Makefile.in (dwarf2read.o): Update dependencies.
407 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
408 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
409 and read_in_chain.
410 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
411 mark, and has_form_ref_addr.
412 (struct dwarf2_per_cu_data): New.
413 (dwarf2_max_cache_age): New.
414 (dwarf2_build_psymtabs_hard): Free cached compilation units
415 after loading. Create and manage the list of compilation units.
416 Remove unnecessary NULL initialization. Fix indentation.
417 (psymtab_to_symtab_1): Initialize all of CU.
418 (dwarf2_read_abbrevs): Set has_form_ref_addr.
419 (find_partial_die): Use dwarf2_find_containing_comp_unit
420 and load_comp_unit.
421 (free_stack_comp_unit): Update comments. Clear the per-cu
422 pointer. Handle aging.
423 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
424 (age_cached_comp_units, free_one_cached_comp_unit)
425 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
426 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
427 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
428 (show_dwarf2_cmd): New.
429 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
430 and "maint show dwarf2 max-cache-age".
431 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
432 externs.
433 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
434 global.
435
987504bb
JJ
4362004-09-20 Jeff Johnston <jjohnstn@redhat.com>
437
438 * dwarf2read.c (typename_concat): Change prototype to accept obstack
439 and dwarf2_cu struct pointer as arguments. Change function to use
440 obstack if provided and use dwarf2_cu to determine language-specific
441 separator.
442 (partial_die_parent_scope): Change comment to include java. Use
443 new version of typename_concat instead of obconcat.
444 (partial_die_full_name): Use typename_concat.
445 (read_namespace): Ditto.
446 (read_enumeration_type): Use typename_concat instead of obconcat.
447 (new_symbol): Ditto.
448 (add_partial_symbol): Enhance tests for C++ to also test for Java.
449 (guess_structure_name): Ditto.
450 (read_subroutine_type): Ditto.
451 (read_structure_type): Ditto.
452 (is_vtable_name): Add Java support.
453 (determine_class_name): Switch to new typename_concat call.
454 (determine_prefix): Switch to new typename_concat call.
455 * jv-exp.y (FuncStart): New pattern.
456 (MethodInvocation): Add support for simple function calls. Change
457 warning message for other forms of inferior call currently not
458 supported.
459 * valarith.c (value_subscript): Treat an array with upper-bound
460 of -1 as unknown size.
461
d9c8471e
DJ
4622004-09-20 Daniel Jacobowitz <dan@debian.org>
463
464 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
465 (lookup_partial_symtab): Use symtab_to_fullname.
466
d73f140a
JB
4672004-09-19 Jim Blandy <jimb@redhat.com>
468
469 * minsyms.c (lookup_minimal_symbol): Doc fix.
470
adbef1f0
AC
4712004-09-20 Andrew Cagney <cagney@gnu.org>
472
473 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
474 CHILD_RESUME.
475 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
476 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
477 KILL_INFERIOR.
478 * infptrace.c: Update.
479
d092d1a2
DJ
4802004-09-19 Daniel Jacobowitz <dan@debian.org>
481
482 * symtab.c (output_source_filename): Mark first argument as const.
483 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
484 for "info sources" output.
485
86d9e1d7
MK
4862004-09-20 Mark Kettenis <kettenis@gnu.org>
487
488 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
489 <machine/vmparam.h>.
490 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
491 (register_u_addr): Remove prototype.
492
9a6c8ef4
MK
4932004-09-19 Mark Kettenis <kettenis@gnu.org>
494
9692934b
MK
495 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
496 (i386bsd_fetch_inferior_registers): Rename from
497 fetch_inferior_registers. Make static.
498 (i386bsd_store_inferior_registers): Rename from
499 store_inferior_registers. Make static.
500 (i386bsd_target): New function.
501 * i386bsd-nat.h: New file.
502 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
503 "i386bsd-nat.h".
504 (i386fbsd_resume): Rename from child_resume. Make static.
505 (_initialize_i386fbsd_nat): Construct and add target vector.
506 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
507 (_initialize_i386nbsd_nat): Construct and add target vector.
508 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
509 Remove defines.
510 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
511 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
512 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
513 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
514 (LOADLIBES): New variable.
515 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
516 inf-ptrace.o. Remove inftarg.o.
517 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
518 inf-ptrace.o. Remove inftarg.o.
519 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
520 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
521 (LOADLIBES): New variable.
522 * Makefile.in (i386bsd_nat_h): New variable.
523 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
524 dependencies.
525
3510d1f2
MK
526 * sparc64nbsd-tdep.c: Include "objfiles.h".
527 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
528 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
529 svr4_lp64_fetch_link_map_offsets.
530 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
531 "nbsd-tdep.h".
532 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
533 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
534 svr4_lp64_fetch_link_map_offsets.
535 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
536 dependencies.
537
578c1c03
MK
538 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
539 * fbsd-nat.h: New file.
540 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
541 (fbsd_nat_h): New variable.
542 (fbsd-nat.o): New dependency.
543
7a7b73b7
MK
544 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
545 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
546
9a6c8ef4
MK
547 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
548 comment.
549
72d5681a
PH
5502004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
551
552 * ada-exp.y (type_int): New function to add layer of abstraction
553 around references to expression types.
554 (type_long): Ditto.
555 (type_long_long): Ditto.
556 (type_float): Ditto.
557 (type_double): Ditto.
558 (type_long_double): Ditto.
559 (type_char): Ditto.
560 (type_system_address): Ditto.
561 (simple_exp): Use type_* functions in place of builtin_*
562 variables.
563 (exp): Ditto.
564 (write_var_from_name): Ditto.
565 (write_object_renaming): Ditto.
566 * ada-lang.c (ada_create_fundamental_type): Remove redundant
567 declaration.
568 (build_ada_types): Remove, replacing with...
569 (ada_language_arch_info): New function to initialize primitive
570 type vector in language_arch_info.
571 (ada_array_length): Remove use of builtin_type_ada_int.
572 (value_pos_atr): Ditto.
573 (ada_evaluate_subexp): Ditto.
574 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
575 builtin_type_ada_long_long, builtin_type_ada_char,
576 builtin_type_ada_float, builtin_type_ada_double,
577 builtin_type_ada_long_double, builtin_type_ada_natural,
578 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
579 (ada_builtin_types): Remove.
580 (ada_language_defn): Remove entries for la_builtin_type_vector and
581 string_char_type and use ada_language_arch_info.
582 (_initialize_ada_language): Do type-vector initialization along
583 the lines of c-lang.c.
584 (ada_create_fundamental_type): Break up line.
585 (ada_dump_symtab): Remove unused function.
586 (enum ada_primitive_types): Define.
587 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
588 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
589 builtin_type_ada_float, builtin_type_ada_double,
590 builtin_type_ada_long_double, builtin_type_ada_natural,
591 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
592 * ada-lex.l: Use type_* functions in place of builtin_* variables.
593 (processInt): Ditto.
594 (processReal): Ditto.
595 (name_lookup): Ditto.
596 * ada-typeprint.c (print_range): Use builtin_type_int, not
597 builtin_type_ada_int.
598
4f0be353
MK
5992004-09-18 Mark Kettenis <kettenis@gnu.org>
600
30b0e2d8
MK
601 * i386-tdep.c (i386_register_name): Rename regno to regnum.
602
4f0be353
MK
603 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
604 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
605 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
606 * configure.in: Improve checks for curses library by checking for
607 mvwaddstr instead of initscr. Drop HP curses in favour of
608 standard curses on HP-UX.
609 * configure: Regenerated.
610
72d5681a 6112004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
612
613 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
614 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
615 Minor formatting changes.
616 (empty_array): Slight rewrite for formatting.
617 (emit_char,parse,ada_language_defn,build_ada_types,
618 ada_is_exception_sym, _initialize_ada_language): Move
619 definitions around.
620 (ada_dump_symtab): Remove unused definition.
621 (ada_maybe_exception_partial_symbol): Remove unused definition.
622
1c8c7407
AC
6232004-09-16 Andrew Cagney <cagney@gnu.org>
624
7681f339
AC
625 * inf-child.c: Include "gdb_string.h".
626 (inf_child_core_file_to_sym_file): Delete.
627 (inf_child_target): Set to_fetch_registers and to_store_registers.
628 * inf-ptrace.c: Include "gdb_string.h".
629 * Makefile.in: Update all dependencies.
630
1c8c7407
AC
631 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
632 problem.
633
65596487
JB
6342004-09-14 Joel Brobecker <brobecker@gnat.com>
635
636 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
637 call to heuristic_proc_desc. Remove code that became redundant
638 as a consequence.
639 (read_next_frame_reg): Remove special case for SP_REGNUM.
640 (set_reg_offset): Fix small typo.
641 (reset_saved_regs): New procedure.
642 (mips32_heuristic_proc_desc): No longer compute a fake
643 procedure descriptor. Compute the full frame cache instead.
644 Some minor comment reformatting.
645
95575b2e
AC
6462004-09-14 Andrew Cagney <cagney@gnu.org>
647
f200c492
AC
648 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
649 maintainer.
650
95575b2e
AC
651 * thread-db.c (thread_db_new_objfile): Assume that there is a
652 child process.
653
69657671
JB
6542004-09-13 Jim Blandy <jimb@redhat.com>
655
656 * valops.c (value_assign): Move 'buffer' to the enclosing block,
657 so that its storage isn't referenced after its lifetime ends.
658
6c4182dd
JB
659 * valops.c (value_assign): 'use_buffer' is initialized to zero,
660 and never assigned to. Delete it, and the 'if (use_buffer)'
661 clauses. Delete 'raw_buffer', since it is now unused.
662
ee31a58d
AC
6632004-09-13 Andrew Cagney <cagney@gnu.org>
664
2c0fc042
AC
665 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
666 * configure: Re-generate.
667 * nlm/Makefile.in (TAGS): Update.
668 * Makefile.in (TAGS): Update.
669 * config/vax/nbsd.mt (TM_FILE): Update.
670 * config/sparc/vxworks.mt (TM_FILE): Update.
671 * config/sparc/sol2.mt (TM_FILE): Update.
672 * config/sparc/sol2-64.mt (TM_FILE): Update.
673 * config/sparc/obsd64.mt (TM_FILE): Update.
674 * config/sparc/obsd.mt (TM_FILE): Update.
675 * config/sparc/nbsd64.mt (TM_FILE): Update.
676 * config/sparc/nbsd.mt (TM_FILE): Update.
677 * config/sparc/linux64.mt (TM_FILE): Update.
678 * config/sparc/linux.mt (TM_FILE): Update.
679 * config/sparc/fbsd.mt (TM_FILE): Update.
680 * config/sh/wince.mt (TM_FILE): Update.
681 * config/sh/nbsd.mt (TM_FILE): Update.
682 * config/sh/linux.mt (TM_FILE): Update.
683 * config/sh/embed.mt (TM_FILE): Update.
684 * config/s390/s390.mt (TM_FILE): Update.
685 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
686 * config/rs6000/rs6000.mt (TM_FILE): Update.
687 * config/rs6000/aix4.mt (TM_FILE): Update.
688 * config/powerpc/vxworks.mt (TM_FILE): Update.
689 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
690 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
691 * config/powerpc/obsd.mt (TM_FILE): Update.
692 * config/powerpc/nbsd.mt (TM_FILE): Update.
693 * config/powerpc/linux.mt (TM_FILE): Update.
694 * config/powerpc/aix.mt (TM_FILE): Update.
695 * config/pa/obsd.mt (TM_FILE): Update.
696 * config/pa/linux.mt (TM_FILE): Update.
697 * config/pa/hppahpux.mt (TM_FILE): Update.
698 * config/pa/hppa64.mt (TM_FILE): Update.
699 * config/pa/hppa.mt (TM_FILE): Update.
700 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
701 * config/mips/wince.mt (TM_FILE): Update.
702 * config/mips/vxmips.mt (TM_FILE): Update.
703 * config/mips/nbsd.mt (TM_FILE): Update.
704 * config/mips/linux.mt (TM_FILE): Update.
705 * config/mips/irix6.mt (TM_FILE): Update.
706 * config/mips/irix5.mt (TM_FILE): Update.
707 * config/mips/embed.mt (TM_FILE): Update.
708 * config/m68k/vxworks68.mt (TM_FILE): Update.
709 * config/m68k/st2000.mt (TM_FILE): Update.
710 * config/m68k/os68k.mt (TM_FILE): Update.
711 * config/m68k/obsd.mt (TM_FILE): Update.
712 * config/m68k/nbsd.mt (TM_FILE): Update.
713 * config/m68k/monitor.mt (TM_FILE): Update.
714 * config/m68k/linux.mt (TM_FILE): Update.
715 * config/m68k/cisco.mt (TM_FILE): Update.
716 * config/ia64/linux.mt (TM_FILE): Update.
717 * config/ia64/aix.mt (TM_FILE): Update.
718 * config/ia64/ia64.mt (TM_FILE): Update.
719 * config/i386/vxworks.mt (TM_FILE): Update.
720 * config/i386/obsd64.mt (TM_FILE): Update.
721 * config/i386/obsd.mt (TM_FILE): Update.
722 * config/i386/nto.mt (TM_FILE): Update.
723 * config/i386/nbsd64.mt (TM_FILE): Update.
724 * config/i386/nbsd.mt (TM_FILE): Update.
725 * config/i386/linux64.mt (TM_FILE): Update.
726 * config/i386/linux.mt (TM_FILE): Update.
727 * config/i386/i386sol2.mt (TM_FILE): Update.
728 * config/i386/i386lynx.mt (TM_FILE): Update.
729 * config/i386/fbsd64.mt (TM_FILE): Update.
730 * config/i386/fbsd.mt (TM_FILE): Update.
731 * config/i386/cygwin.mt (TM_FILE): Update.
732 * config/h8300/h8300.mt (TM_FILE): Update.
733 * config/frv/frv.mt (TM_FILE): Update.
734 * config/cris/cris.mt (TM_FILE): Update.
735 * config/arm/wince.mt (TM_FILE): Update.
736 * config/arm/nbsd.mt (TM_FILE): Update.
737 * config/arm/linux.mt (TM_FILE): Update.
738 * config/arm/embed.mt (TM_FILE): Update.
739 * config/alpha/nbsd.mt (TM_FILE): Update.
740 * config/alpha/fbsd.mt (TM_FILE): Update.
741 * config/alpha/alpha.mt (TM_FILE): Update.
742 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
743 * config/alpha/alpha-linux.mt (TM_FILE): Update.
744
362646f5
AC
745 Eliminate event_loop_p, always has the value 1.
746 * defs.h (event_loop_p): Delete macro.
747 * breakpoint.c (until_break_command): Simplify.
748 * utils.c (prompt_for_continue): Simplify.
749 * tracepoint.c (read_actions): Simplify.
750 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
751 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
752 (set_prompt, init_main): Simplify.
753 (init_signals, disconnect): Delete, unused.
754 * remote.c (remote_async_resume)
755 (extended_remote_async_create_inferior): Simplify.
756 * mi/mi-interp.c (mi_input): Delete, unused.
757 (mi_interpreter_resume, mi_command_loop): Simplify.
758 * interps.c (current_interp_command_loop): Simplify.
759 * infrun.c (proceed): Simplify.
760 * infcmd.c (run_command, continue_command, step_1, jump_command)
761 (until_command, advance_command, finish_command)
762 (interrupt_target_command): Simplify.
763 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
764
ee31a58d
AC
765 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
766 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
767 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
768 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
769 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
770 * mips-tdep.c (mips_dump_tdep): Do not print same.
771
b7ffc4a8
AC
7722004-09-12 Andrew Cagney <cagney@gnu.org>
773
2bfb72ee
AC
774 * valprint.c (print_longest): Use fputs_filtered. Make "val"
775 const.
776 * Makefile.in (valprint.o): Delete explict rule.
777
4f17c3c1
AC
778 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
779 reported by Dave Anderson.
780
f810308b
AC
781 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
782
b7ffc4a8
AC
783 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
784
28b41c52
AC
7852004-09-12 Salvador E. Tropea <set@users.sf.net>
786 Andrew Cagney <cagney@gnu.org>
787
788 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
789 (mi_cmd_data_list_register_values)
790 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
791 the register number computation.
792
5bf970f9
AC
7932004-09-12 Andrew Cagney <cagney@gnu.org>
794
795 * ppcnbsd-nat.c: Include "inf-ptrace.h".
796 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
797 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
798 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
799 target.
800 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
801 inf-ptrace.o and inf-child.o.
802 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
803 * Makefile.in: Update dependencies.
804
0759e0bf
AC
8052004-09-11 Andrew Cagney <cagney@gnu.org>
806
807 * language.c (hex_string, hex_string_custom): Move from here ...
808 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
809 (CELLSIZE): Increase to 50.
810 * language.h (hex_string, hex_string_custom): Move from here ...
811 * defs.h: ... to here.
812 * Makefile.in: Update all dependencies.
813
bb599908
PH
8142004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
815
816 * language.c (local_hex_format_custom): Remove.
817 (local_hex_string): Rename to hex_string, use C format, and move to
818 utils.c
819 (local_hex_string_custom): Rename to hex_string_custom and change
820 interface. Now uses C format. Move to utils.c
821 (local_octal_format_custom): Remove.
822 (local_decimal_format_custom): Remove.
823 (unknown_language_defn): Remove language-specific number
824 formatting entries.
825 (auto_language_defn): Ditto.
826 (local_language_defn): Ditto.
827 * language.h (struct language_format_info): Delete declaration.
828 (struct language_defn): Remove language_format_info fields
829 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
830 (local_binary_format): Remove macro.
831 (local_binary_format_prefix): Remove macro.
832 (local_binary_format_specifier): Remove macro.
833 (local_binary_format_suffix): Remove macro.
834 (local_octal_format): Remove macro.
835 (local_octal_format_prefix): Remove macro.
836 (local_octal_format_specifier): Remove macro.
837 (local_octal_format_suffix): Remove macro.
838 (local_decimal_format): Remove macro.
839 (local_decimal_format_prefix): Remove macro.
840 (local_decimal_format_specifier): Remove macro.
841 (local_decimal_format_suffix): Remove macro.
842 (local_hex_format): Remove macro.
843 (local_hex_format_prefix): Remove macro.
844 (local_hex_format_specifier): Remove macro.
845 (local_hex_format_suffix): Remove macro.
846 (local_decimal_format_custom): Remove.
847 (local_octal_format_custom): Remove.
848 (local_hex_format_custom): Remove.
849 (local_hex_string): Rename to hex_string and move to defs.h.
850 (local_hex_string_custom): Rename to hex_string_custom, change
851 interface, and move to defs.h.
852 * utils.c: (int_string): New function.
853 (hex_string): New function (from language.c).
854 (hex_string_custom): New function (from language.c).
855 (octal2str): New function.
856 (decimal2str): Add width parameter.
857 (paddr_u): Use new decimal2str interface.
858 (paddr_d): Ditto.
859 * defs.h (hex_string): Declare.
860 (hex_string_custom): Declare.
861 (int_string): Declare.
862 * printcmd.c (print_scalar_formatted): Remove localized binary
863 formatting.
864 * valprint.c (print_longest): Use int_string.
865 (print_floating): Use C hex format.
866 (print_hex_chars): Ditto.
867 (print_binary_chars): Remove language-specific formatting.
868 (print_octal_chars): Use C octal format.
869 (print_decimal_chars): Delocalize format.
870 (print_decimal): Remove.
871 * ada-lang.c (ada_language_defn): Remove language-specific number
872 formatting entries.
873 * p-lang.c (pascal_language_defn): Ditto.
874 * c-lang.c (c_language_defn): Ditto.
875 (cplus_language_defn): Ditto.
876 (asm_language_defn): Ditto.
877 (minimal_language_defn): Ditto.
878 * f-lang.c (f_language_defn): Ditto.
879 * jv-lang.c (java_language_defn): Ditto.
880 * m2-lang.c (m2_language_defn): Ditto.
881 * scm-lang.c (scm_language_defn): Ditto.
882 * objc-lang.c (objc_language_defn): Ditto.
883 * memattr.c (mem_info_command): Use renamed hex_string_custom with
884 new interface.
885 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
886 * ui-out.c (ui_out_field_core_addr): Ditto.
887 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
888 * exec.c (print_section_info): Ditto.
889 * i387-tdep.c (print_i387_status_word): Ditto.
890 (print_i387_control_word): Ditto.
891 (i387_print_float_info): Ditto.
892 * maint.c (maint_print_section_info): Ditto.
893 * solib.c (info_sharedlibrary_command): Ditto.
894 * somsolib.c (som_sharedlibrary_info_command): Ditto.
895 * symtab.c (print_msymbol_info): Ditto.
896 * tracepoint.c (tracepoints_info): Ditto.
897 * solib-frv.c (lm_base): Ditto.
898 (frv_current_sos): Ditto.
899 (enable_break2): Ditto.
900 (enable_break): Ditto.
901 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
902 (process_one_symbol): Ditto.
903 * infcmd.c (program_info): Ditto.
904 * mdebugread.c (parse_partial_symbols): Ditto.
905 * symfile.c (add_symbol_file_command): Ditto.
906 * cli/cli-cmds.c (edit_command): Ditto.
907 (list_command): Ditto.
908 * infcall.c (call_function_by_hand): Ditto.
909 * remote-vx.c (vx_run_files_info): Ditto.
910 (vx_wait): Ditto.
911 (vx_attach): Ditto.
912 (vx_detach): Ditto.
913 (vx_kill): Ditto.
914 * aix-thread.c (pdc_symbol_addrs): Ditto.
915 (pdc_read_regs): Ditto.
916 (pdc_write_regs): Ditto.
917 (pdc_read_data): Ditto.
918 (pdc_write_data): Ditto.
919 * d10v-tdep.c (display_trace): Ditto.
920 * rs6000-nat.c (find_toc_address): Ditto.
921 * aix-thread.c: Don't include language.h.
922 * buildsym.c: Ditto.
923 * dbxread.c: Ditto.
924 * mdebugread.c: Ditto.
925 * rs6000-nat.c: Ditto.
926 * buildsym.c (make_blockvector): Use renamed hex_string.
927
33f2d567
JM
9282004-09-10 Jason Molenda (jmolenda@apple.com)
929
930 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
931 chars after 'if' or 'while' commands in user-defined commands.
932
7b90c3f9
JB
9332004-09-08 Jim Blandy <jimb@redhat.com>
934
935 Fix bug reported and analyzed by Olivier Crete:
936 * symfile.c (copy_section_addr_info): New function.
937 (symbol_file_add_with_addrs_or_offsets): Use it to save the
938 original set of address arguments, instead of handwritten code
939 that uses one length to allocate and a different length to
940 initialize. Use make_cleanup_free_section_addr_info.
941 * symfile.h (copy_section_addr_info): New declaration.
942 * utils.c: #include "symfile.h".
943 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
944 New functions.
945 * defs.h (make_cleanup_free_section_addr_info): New declaration.
946 * Makefile.in (utils.o): Update dependencies.
947
b26a6851
AC
9482004-09-08 Andrew Cagney <cagney@gnu.org>
949
950 * thread-db.c (keep_thread_db): Delete.
951 (thread_db_new_objfile, thread_db_create_inferior)
952 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
953
be24b061
MK
9542004-09-08 Mark Kettenis <kettenis@gnu.org>
955
f6792ef4
MK
956 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
957 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
958 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
959 (i386_frameless_signal_p): Remove prototype.
960 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
961 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
962 I386_SSE_NUM_REGS.
963 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
964 instead of FP0_REGNUM.
965 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
966 of FP0_REGNUM and FPC_REGNUM.
967
eeefdaa7
MK
968 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
969 (sunos_solib_create_inferior_hook): Don't call
970 sunos_relocate_main_executable.
971
be24b061
MK
972 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
973 solib_svr4_fetch_link_map_offsets to
974 svr4_ilp32_fetch_link_map_offsets.
975 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
976 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
977 svr4_ilp32_fetch_link_map_offsets.
978 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
979
7c679d16
JB
9802004-09-07 Jim Blandy <jimb@redhat.com>
981
982 * frame.h (frame_register): Doc fix.
983
1f04aa62
AC
9842004-09-07 Andrew Cagney <cagney@gnu.org>
985
986 * vx-share/wait.h: Delete #ifdef USG.
987 * utils.c (request_quit): Ditto.
988 * tui/tui.c (tui_reset): Ditto.
989 * remote.c: Ditto.
990 * remote-sds.c: Ditto.
991 * remote-rdi.c: Ditto.
992 * mdebugread.c: Ditto.
993 * m68klinux-nat.c: Ditto.
994 * infttrace.c: Ditto.
995 * infptrace.c: Ditto.
996 * i386v-nat.c: Ditto.
997 * exec.c: Ditto.
998 * dbxread.c: Ditto.
999 * core-aout.c: Ditto.
1000
90edbfbc
JB
10012004-09-05 Joel Brobecker <brobecker@gnat.com>
1002
1003 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1004 heuristic_proc_desc.
1005 (mips_insn32_frame_cache): Likewise.
1006
01f4bf2b
JB
10072004-09-04 Joel Brobecker <brobecker@gnat.com>
1008
1009 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1010 left behind by error.
1011
8511a048
JB
10122004-09-04 Joel Brobecker <brobecker@gnat.com>
1013
1014 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1015 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1016
649dfe9f
JB
10172004-09-04 Joel Brobecker <brobecker@gnat.com>
1018
1019 * config/rs6000/xm-aix4.h: Remove this file.
1020 * config/rs6000/aix4.mh (XM_FILE): Delete.
1021
6e50f889
JB
10222004-09-04 Joel Brobecker <brobecker@gnat.com>
1023
1024 * config/rs6000/xm-rs6000.h: Remove this file.
1025 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1026
b8c4aece
AC
10272004-09-03 Andrew Cagney <cagney@gnu.org>
1028
fb603883
AC
1029 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1030 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1031 only use.
1032
c9343fd1
AC
1033 * mips-tdep.c (temp_saved_regs): Delete.
1034 (set_reg_offset): Replace saved_regs parameter with this_cache.
1035 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1036 (mips32_heuristic_proc_desc): Add this_cache parameter.
1037 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1038 (after_prologue): Pass a NULL this_cache.
1039
9733cfe1
AC
1040 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1041 non-kernel trap prologues.
1042
0d5febcc
AC
1043 * mips-tdep.c (find_proc_desc): Delete function.
1044 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1045 simplify.
1046 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1047 mips_insn32_frame_cache.
1048
9733cfe1 1049 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1050 Simplify as NEXT_FRAME is NULL.
1051 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1052
177f84a3
AC
1053 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1054 local variable.
1055 (mips_skip_prologue): Update.
1056
465f7520
AC
1057 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1058 "cur_frame" parameter.
177f84a3
AC
1059 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1060 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1061
e38b8658
AC
1062 * config/vax/nm-obsd.h: Delete file.
1063 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1064 * config/vax/nm-nbsd.h: Delete file.
1065 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1066 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1067 * config/sh/nm-nbsd.h: Delete file.
1068 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1069 * config/rs6000/nm-rs6000ly.h: Delete file.
1070 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1071 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1072 * config/powerpc/nm-obsd.h: Delete file.
1073 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1074 * config/powerpc/nm-nbsd.h: Delete file.
1075 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1076 * config/pa/nm-obsd.h: Delete file.
1077 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1078 * config/mips/nm-nbsd.h: Delete file.
1079 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1080 * config/m88k/nm-obsd.h: Delete file.
1081 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1082 * config/m68k/nm-nbsd.h: Delete file.
1083 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1084 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1085 * config/i386/nm-nbsd.h: Delete file.
1086 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1087 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1088 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1089 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1090 * config/i386/nm-i386lynx.h: Delete file.
1091 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1092 * config/arm/nm-nbsd.h: Delete file.
1093 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1094 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1095
be1ed680
AC
1096 * config/i386/tm-fbsd.h: Delete file.
1097 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1098 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1099
4b392b26
AC
1100 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1101 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1102 * config/rs6000/aix4.mt (TM_FILE): Set to
1103 config/rs6000/tm-rs6000.h.
1104 * config/powerpc/tm-ppc-aix.h: Delete file.
1105 * config/powerpc/aix.mt (TM_FILE): Set to
1106 config/rs6000/tm-rs6000.h.
1107 * config/m68k/tm-linux.h: Delete file.
1108 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1109 * config/i386/tm-linux64.h: Delete file.
1110 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1111 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1112
f3219c75
AC
1113 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1114 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1115 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1116 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1117 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1118 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1119 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1120 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1121 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1122
b8c4aece
AC
1123 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1124 gdb_host_cpu.
1125
8ac2e020
JB
11262004-09-02 Joel Brobecker <brobecker@gnat.com>
1127
1128 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1129 Minor reformatting. Some code factoring.
1130
c185a355
AC
11312004-09-02 Andrew Cagney <cagney@gnu.org>
1132
63f22f0d
AC
1133 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1134 * config/vax/tm-nbsd.h: Delete file.
1135 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1136 * config/sparc/tm-vxworks.h: Delete file.
1137 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1138 * config/sparc/tm-nbsd.h: Delete file.
1139 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1140 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1141 * config/sparc/tm-linux.h: Delete file.
1142 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1143 * config/s390/tm-linux.h: Delete file.
1144 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1145 * config/pa/tm-bsd.h: Delete file.
1146 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1147 * config/m68k/tm-obsd.h: Delete file.
1148 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1149 * config/m68k/tm-nbsd.h: Delete file.
1150 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1151 * config/i386/tm-vxworks.h: Delete file.
1152 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1153 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1154 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1155 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1156 * config/i386/tm-nbsd.h: Delete file.
1157 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1158 * config/i386/tm-i386lynx.h: Delete file.
1159 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1160 * config/cris/tm-cris.h: Delete file.
1161
0f475e27
AC
1162 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1163 * configure: Re-generate.
1164 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1165 * config/arm/tm-nbsd.h: Delete file.
1166
458ed000
AC
1167 * config/powerpc/tm-ppcle-sim.h: Delete.
1168 * config/powerpc/tm-ppcle-eabi.h: Delete.
1169 * config/powerpc/tm-nbsd.h: Delete.
1170 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1171 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1172 tm-ppcle-eabi.h.
1173
f14375f3
AC
1174 * config/i386/nto.mh (NAT_FILE): Delete.
1175 * config/i386/nm-nto.h: Delete.
1176
c34d127c
AC
1177 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1178 * config/m68k/tm-os68k.h: Ditto.
1179 * config/m68k/tm-monitor.h: Ditto.
1180 * config/m68k/tm-cisco.h: Ditto.
1181 * config/m68k/st2000.mt (TM_FILE): Delete.
1182 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1183 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1184 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1185 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1186
f7f0fe03
AC
1187 * config/m68k/tm-st2000.h: Delete.
1188 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1189 * config/sparc/fbsd.mt (TM_FILE): Delete.
1190 * config/sparc/tm-fbsd.h: Delete.
1191
a2558533
AC
1192 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1193 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1194 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1195
b78960be
AC
1196 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1197 GDB_TM_FILE and GDB_XM_FILE.
1198 * gdbarch.c: Re-generate.
1199 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1200 quotes in macro definition.
1201 * configure.in: Re-generate.
1202
4d60522e
AC
1203 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1204 validating architecture methods.
1205 * gdbarch.c: Re-generate.
1206
5010d38b
AC
1207 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1208 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1209 GDB_MULTI_ARCH_PARTIAL.
1210 * gdbarch.h: Re-generate.
1211
c185a355
AC
1212 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1213 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1214 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1215 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1216 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1217 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1218 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1219 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1220 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1221 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1222 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1223 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1224
14aaa6ab
AC
12252004-09-01 Andrew Cagney <cagney@gnu.org>
1226
1227 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1228 and main_func_highpc.
1229 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1230 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1231 * nlmread.c (nlm_symfile_read): Update.
1232
a343eb3c
JB
12332004-09-01 Joel Brobecker <brobecker@gnat.com>
1234
1235 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1236 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1237 (find_proc_desc): Remove dead code.
1238
4fbbbd07
JB
12392004-09-01 Joel Brobecker <brobecker@gnat.com>
1240
1241 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1242
84acb35a
JJ
12432004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1244
1245 * observer.sh: Add struct so_list declaration.
1246 * Makefile.in: Add dependencies on observer.h for solib.c and
1247 breakpoint.c.
1248 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1249 function.
1250 (_initialize_breakpoint): Register
1251 disable_breakpoints_in_unloaded_shlib as an observer of the
1252 "solib unloaded" observation event.
1253 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1254 call decode_line_1 so unfound breakpoint errors are silent.
1255 * solib.c (update_solib_list): When a solib is discovered to have
1256 been unloaded by the program, notify all observers of the
1257 "solib unloaded" observation event.
1258
c8cd9f6c
AC
12592004-09-01 Andrew Cagney <cagney@gnu.org>
1260
1261 * frame.c: Include "objfiles.h".
1262 (inside_main_func): New function.
1263 (get_prev_frame): Use new inside_main_func.
1264 * Makefile.in (frame.o): Update dependencies.
1265 * defs.h (inside_main_func): Delete declaration.
1266 * blockframe.c (inside_main_func): Delete function.
1267
1168df01
JB
12682004-08-31 Jim Blandy <jimb@redhat.com>
1269
1270 * dwarf2read.c (is_vtable_name): New function, based on logic from
1271 read_structure_type, but passing the correct length to strncmp,
1272 and using 'sizeof' instead of 'strlen'.
1273 (read_structure_type): Call it.
1274
f14f9744
JB
12752004-08-31 Joel Brobecker <brobecker@gnat.com>
1276
1277 * config/powerpc/aix.mh: Add comment.
1278
386d4518
PG
12792004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1280
1281 * MAINTAINERS: Add self to Write-After-Approval.
1282
7d97d5e2
MI
12832004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1284
1285 * MAINTAINERS: Add self to Write-After-Approval.
1286
68f53502
AC
12872004-08-30 Andrew Cagney <cagney@gnu.org>
1288
1289 Fix PR breakpoints/1757.
1290 * infrun.c (struct execution_control_state): Replace
1291 remove_breakpoints_on_following_step with
1292 step_after_step_resume_breakpoint.
1293 (init_execution_control_state): Update.
1294 (handle_inferior_event): For signals, when stepping off a
1295 breakpoint, set step_after_step_resume_breakpoint. When
1296 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1297 (keep_going): Delete code handling
1298 remove_breakpoints_on_following_step.
1299
7ca2d3a3
DL
13002004-08-29 David Lecomber <david@streamline-computing.com>
1301
1302 Fix PR gdb/648
1303 * language.h (enum array_ordering): New enum.
1304 * language.h (struct language_defn): New la_array_ordering
1305 attribute.
1306 * language.c (unknown_language_defn, auto_language_defn)
1307 (local_language_defn): Ditto.
1308 * ada-lang.c (ada_language_defn): Ditto.
1309 * c-lang.c (c_language_defn, cplus_language_defn)
1310 (asm_language_defn, minimal_language_defn): Ditto.
1311 * f-lang.c (f_language_defn): Ditto.
1312 * jv-lang.c (java_language_defn): Ditto.
1313 * m2-lang.c (f_language_defn): Ditto.
1314 * objc-lang.c (objc_language_defn): Ditto.
1315 * p-lang.c (pascal_language_defn): Ditto.
1316 * scm-lang.c (scm_language_defn): Ditto.
1317 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1318 oriented large to small in type structure.
1319 * dwarf2read.c (read_array_order): New function.
1320 (read_array_type): Use read_array_order to check row/column
1321 major ordering.
1322
e354df01
NW
13232004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1324
1325 * target.c (target_resize_to_sections): Check
1326 current_target.to_sections for an old value when updating.
1327
9185ddce
JB
13282004-08-27 Joel Brobecker <brobecker@gnat.com>
1329
1330 * procfs.c (dbx_link_bpt_addr): New static global variable.
1331 (dbx_link_shadow_contents): New static global variable.
1332 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1333 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1334 if we just hit it.
1335 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1336 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1337 from run to run.
1338 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1339 after the inferior has been forked.
1340 (remove_dbx_link_breakpoint): New function.
1341 (dbx_link_addr): New function.
1342 (insert_dbx_link_bpt_in_file): New function.
1343 (insert_dbx_link_bpt_in_region): New function.
1344 (insert_dbx_link_breakpoint): New function.
1345 (proc_trace_syscalls_1): New function, extracted from
1346 proc_trace_syscalls.
1347 (proc_trace_syscalls): Replace extract code by call to
1348 proc_trace_syscalls_1.
1349 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1350 is no longer valid.
1351
e6742ace
JB
13522004-08-25 Jim Blandy <jimb@redhat.com>
1353
1354 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1355
8fb3e588
AC
13562004-08-25 Andrew Cagney <cagney@gnu.org>
1357
629a41ee
AC
1358 * infrun.c (struct execution_control_state): Delete field
1359 "stepping_through_sigtramp".
1360 (init_execution_control_state): Do not set same.
1361 (context_switch): Do not pass same to save_infrun_state and
1362 load_infrun_state.
1363 * gdbthread.h (struct thread_info): Delete field
1364 stepping_through_sigtramp.
1365 (save_infrun_state, load_infrun_state): Delete parameter
1366 stepping_through_sigtramp.
1367 * thread.c (load_infrun_state, save_infrun_state): Update.
1368
8fb3e588
AC
1369 * infrun.c: Re-indent. Move expression operators to the beginning
1370 of the line. Remove long disabled #if 0 code.
1371
49c54768
AC
13722004-08-24 Andrew Cagney <cagney@gnu.org>
1373
1374 * doublest.h (floatformat_ieee_quad): Rename
1375 floatformat_ia64_quad.
1376 * doublest.c (floatformat_ieee_quad): Rename
1377 floatformat_ia64_quad.
1378 (_initialize_doublest): Update.
1379
5ca2e327
JB
13802004-08-24 Jim Blandy <jimb@redhat.com>
1381
87808bd6
JB
1382 * dwarf2expr.h (struct dwarf_expr_context): New members
1383 'num_pieces' and 'pieces', for returning the result of an
1384 expression that uses DW_OP_piece.
1385 (struct dwarf_expr_piece): New struct type.
1386 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1387 pieces.
1388 (free_dwarf_expr_context): Free pieces, if any.
1389 (add_piece): New function.
1390 (execute_stack_op): Implement DW_OP_piece.
1391 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1392 expression is a list of pieces, print an error message.
1393 (dwarf2_loc_desc_needs_frame): If the expression yields
1394 pieces, and any piece is in a register, then we need a frame.
1395
5ca2e327
JB
1396 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1397 the stack until we've decided what sort of result the evaluation
1398 has produced. Use separate variables, with more specific names.
1399
2afeb6b8
RE
14002004-08-23 Richard Earnshaw <rearnsha@arm.com>
1401
1402 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1403 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1404 (arm_netbsd_init_abi_common): Register them.
1405
5885ab49
MK
14062004-08-22 Mark Kettenis <kettenis@gnu.org>
1407
fda820a6
MK
1408 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1409
1c5bf419
MK
1410 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1411 safe_frame_unwind_memory instead of target_read_memory.
1412
8cbba7c8
MK
1413 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1414 Reorder includes.
1415 (fetch_register, store_register): Remove prototypes.
1416 (child_resume): Reorganize code and comments such that it is
1417 grouped a bit more logically.
1418 (attach): Explicitly compare errno against 0.
1419 (detach): Likewise. Use perror_with_name instead of
1420 print_sys_errmsg.
1421 * Makefile.in (infptrace.o): Update dependencies.
1422
c5fa4245
MK
1423 * ia64-linux-nat.c: Update copyright year.
1424 (fetch_debug_register, store_debug_register)
1425 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1426 PTRACE_TYPE_ARG3.
1427 * config/ia64/nm-linux.h: Update copyright year.
1428 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1429
387c058c
MK
1430 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1431 from CORE_ADDR to struct frame_info *. Use
1432 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1433 (amd64_linux_sigtramp_p): Adjust for changed signature of
1434 and64_linux_sigtramp_start
1435
277215a6
MK
1436 * gdb_ptrace.h: GNU/Linux.
1437
25f6178e
MK
1438 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1439 Remove defines.
1440
652fc137
MK
1441 * infptrace.c: Include "gdb_assert.h".
1442 (PTRACE_XFER_TYPE): Remove define.
1443 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1444 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1445 Tweak comment.
1446 (fetch_inferior_registers, store_inferior_registers): Remove
1447 redundant culry braces. Tweak comment. s/regno/regnum.
1448 * Makefile.in (infptrace.o): Update dependencies.
1449
5885ab49
MK
1450 * configure.in: Change test for return type of ptrace to default
1451 to `long' instead of `int'.
1452 * configure: Regenerate.
1453
11003ae3
MK
14542004-08-21 Mark Kettenis <kettenis@gnu.org>
1455
6b95110c
MK
1456 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1457
bcb3dc3d
MK
1458 * configure.in: Check for ttrace function.
1459 * configure, config.in: Regenerate.
1460
11003ae3
MK
1461 * gdb_ptrace.h: New file.
1462 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1463 <sys/ptrace.h>.
1464 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1465 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1466 (attach): Don't define PT_ATTACH.
1467 (detach): Don't define PT_DETACH.
1468 * Makefile.in (gdb_ptrace_h): New variable.
1469 (infptrace.o): Update dependencies.
1470
f8707cac
MK
14712004-08-16 Mark Kettenis <kettenis@gnu.org>
1472
1473 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1474 instead of `int' if not already defined.
1475 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1476 PTRACE_TYPE_ARG3.
1477 * infptrace.c (call_ptrace): Revert change that replaced
1478 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1479
655c5466
MK
14802004-08-15 Mark Kettenis <kettenis@gnu.org>
1481
156e5ba7
MK
1482 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1483 Remove defines.
1484
de9a9e51
MK
1485 * linux-nat.c (kill_inferior): Add missing third and fourth
1486 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1487
88800403
MK
1488 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1489 PTRACE_TYPE_RET.
1490
849a1d7c
MK
1491 * proc-why.c (proc_prettyfprint_why): Fix format string.
1492
61ad16d1
MK
1493 * solib-osf.c (osf_current_sos): Remove unsused label.
1494
a6ed5501
MK
1495 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1496 curses headers.
1497 * configure, config.in: Regenerate.
1498 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1499 <ncurses/ncurses.h>.
1500
016ddeca
MK
1501 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1502 * config/nm-nbsd.h: Update copyright year.
1503 (PTRACE_ARG3_TYPE): Remove define.
1504
49ec097f
MK
1505 * sparc-nat.c (fetch_inferior_registers)
1506 (store_inferior_registers, sparc_xfer_wcookie):
1507 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1508
9f8e0089
MK
1509 * alphabsd-nat.c (fetch_inferior_registers):
1510 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1511 PTRACE_TYPE_ARG3.
1512 * amd64bsd-nat.c (fetch_inferior_registers)
1513 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1514 PTRACE_TYPE_ARG3.
1515 * armnbsd-nat.c: Update copyright year.
1516 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1517 (store_register, store_regs, store_fp_register, store_fp_regs):
1518 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1519 * hppabsd-nat.c (fetch_inferior_registers)
1520 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1521 PTRACE_TYPE_ARG3.
1522 * i386bsd-nat.c (fetch_inferior_registers)
1523 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1524 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1525 * m68kbsd-nat.c (fetch_inferior_registers)
1526 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1527 PTRACE_TYPE_ARG3.
1528 * m88kbsd-nat.c (fetch_inferior_registers)
1529 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1530 PTRACE_TYPE_ARG3.
1531 * mipsnbsd-nat.c: Update copyright year.
1532 (fetch_inferior_registers, store_inferior_registers):
1533 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1534 * ns32knbsd-nat.c: Update copyright year.
1535 (fetch_inferior_registers, store_inferior_registers):
1536 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1537 * ppcnbsd-nat.c (fetch_inferior_registers):
1538 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1539 PTRACE_TYPE_ARG3.
1540 * ppcobsd-nat.c (fetch_inferior_registers):
1541 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1542 PTRACE_TYPE_ARG3.
1543 * shnbsd-nat.c: Update copyright year.
1544 (fetch_inferior_registers, store_inferior_registers):
1545 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1546 * vaxbsd-nat.c (fetch_inferior_registers)
1547 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1548 PTRACE_TYPE_ARG3.
1549
655c5466
MK
1550 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1551 PTRACE_TYPE_ARG3.
1552 * infptrace.c (call_ptrace, child_resume, attach, detach)
1553 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1554 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1555 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1556 PTRACE_TYPE_ARG3.
1557
c40d0d10
MK
15582004-08-14 Mark Kettenis <kettenis@gnu.org>
1559
5cb0ff31
MK
1560 * defs.h: Remove out-of-date comment.
1561 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1562 [!GETENV_PROVIDED] (getenv): Remove prototype.
1563
5f0f34cb
MK
1564 * standalone.c: Remove file.
1565 * Makefile.in (standalone.o): Remove dependency.
1566
7532965f
MK
1567 * i386-linux-nat.c (dummy_sse_values): Remove function and
1568 prototype.
1569 (i386_linux_dr_get): Fix typo in comment.
1570 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1571
1bdc6c53
MK
1572 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1573
c40d0d10
MK
1574 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1575 from declaration.
1576 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1577 from definition.
1578
64218d3e
MK
15792004-08-13 Mark Kettenis <kettenis@gnu.org>
1580
1581 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1582 parenthesis in definition.
1583 * configure: Regenerated.
1584
926c94e7
MC
15852004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1586
1587 * PROBLEMS: Mention build/1411.
1588
69489883
NN
15892004-08-09 Robert Millan <robertmh@gnu.org>
1590
1591 Committed by Nathanael Nerode.
1592 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1593 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1594
ebb7c577
AC
15952004-08-12 Andrew Cagney <cagney@gnu.org>
1596
1597 * NEWS: Mention fixes in GDB 6.2.1.
1598 * PROBLEMS: Remove mention of mips-irix.
1599
232d697c
JB
16002004-08-11 Joel Brobecker <brobecker@gnat.com>
1601
1602 * config/powerpc/xm-aix.h: Delete.
1603 * config/powerpc/aix.mh (MH_FILE): Remove.
1604 * config/powerpc/aix432.mh (MH_FILE): Remove.
1605
72f4e82b
JB
16062004-08-11 Joel Brobecker <brobecker@gnat.com>
1607
1608 * config/powerpc/aix.mh: Remove obsolete comment.
1609 * config/powerpc/aix432.mh: Likewise.
1610
0687ccb2
JB
16112004-08-11 Joel Brobecker <brobecker@gnat.com>
1612
1613 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1614
dbf3ada7
JB
16152004-08-11 Joel Brobecker <brobecker@gnat.com>
1616
e08e1886
JB
1617 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1618 this file is now empty.
1619 * config/xm-aix4.h: Remove, this file is no longer included
1620 anywhere.
1621
16222004-08-11 Joel Brobecker <brobecker@gnat.com>
1623
1624 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1625 that file is now empty.
dbf3ada7
JB
1626 (termdef): Remove prototype, function no longer used.
1627
4c525ef6
JB
16282004-08-11 Joel Brobecker <brobecker@gnat.com>
1629
1630 * doc/gdbint.texinfo (Host Definition): Remove documentation
1631 for USE_O_NOCTTY, no longer used.
1632 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1633 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1634
82e0b968
JB
16352004-08-11 Joel Brobecker <brobecker@gnat.com>
1636
1637 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1638 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1639 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1640
f2acbe1c
MK
16412004-08-11 Mark Kettenis <kettenis@gnu.org>
1642
daa98270
MK
1643 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1644 instead of FIVE_ARG_PTRACE.
1645
f2acbe1c
MK
1646 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1647 (new_tty): Use O_NOCTTY unconditionally.
1648
cc377e6b
MK
16492004-08-10 Mark Kettenis <kettenis@gnu.org>
1650
1651 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1652 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1653 fflush on stdout.
1654
3bcc18fa
JB
16552004-08-10 Joel Brobecker <brobecker@gnat.com>
1656
1657 * xcoff_symfile_finish: Replace last call to xmfree by call
1658 to xfree.
1659
7936743b
AC
16602004-08-10 Andrew Cagney <cagney@gnu.org>
1661
cc503c8a
AC
1662 * main.c (captured_main): Delete call to init_malloc.
1663 * defs.h (init_malloc): Delete declaration.
1664 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1665 (init_malloc): Delete functions.
1666
2dc74dc1
AC
1667 * defs.h (xmfree): Delete.
1668 * utils.c (xmfree): Delete function.
1669 (xfree): Inline calls to xmfree and mfree.
1670 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1671 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1672 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1673 * somread.c (som_symfile_finish): Ditto.
1674 * objfiles.c (allocate_objfile, free_objfile):
1675 * nlmread.c (nlm_symfile_finish): Ditto.
1676 * hpread.c (hpread_symfile_finish): Ditto.
1677 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1678 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1679 * coffread.c (coff_symfile_finish): Ditto.
1680
aa2ee5f6
AC
1681 * defs.h (xmcalloc): Delete declaration.
1682 * utils.c (xmcalloc): Delete.
1683 (xcalloc): Inline calls to xmcalloc and mcalloc.
1684 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1685 xcalloc and xfree.
1686 * symtab.c (create_demangled_names_hash): Ditto.
1687
0efffb96
AC
1688 * defs.h (xmrealloc): Delete.
1689 * utils.c (xmrealloc): Delete.
1690 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1691 * symmisc.c (extend_psymbol_list): Use xrealloc.
1692 * source.c (find_source_lines): Ditto.
1693 * hpread.c (hpread_lookup_type): Ditto.
1694 * dbxread.c (add_bincl_to_list): Ditto.
1695
7936743b
AC
1696 * utils.c (xmmalloc): Delete.
1697 (xmalloc): Inline xmmalloc and mmalloc calls.
1698 (msavestring): Use xmalloc.
1699 * defs.h (xmmalloc): Delete declaration.
1700 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1701 xmmalloc.
1702 * symmisc.c (extend_psymbol_list): Ditto.
1703 * symfile.c (init_psymbol_list): Ditto.
1704 * source.c (find_source_lines): Ditto.
1705 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1706 * elfread.c (elf_symtab_read): Ditto.
1707 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1708 * coffread.c (coff_symfile_init): Ditto.
1709
252ab814
DC
17102004-08-10 David Carlton <carlton@bactrian.org>
1711
1712 * MAINTAINERS: Remove David Carlton from c++ testsuite
1713 maintainers.
1714
8f5ba92b
JG
17152004-08-10 Jerome Guitton <guitton@gnat.com>
1716
1717 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1718 print a line feed before the prompt.
1719
21749010
MK
17202004-08-10 Mark Kettenis <kettenis@gnu.org>
1721
1722 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1723
1f011ce2
JB
17242004-08-09 Joel Brobecker <brobecker@gnat.com>
1725
1726 General cleanup of the AIX xm include file:
1727 * config/xm-aix4.h (fd_set): Remove undefine.
1728 Remove include of <sys/select.h>.
1729 (HAVE_TERMIO): Remove define.
1730 (USG): Likewise.
1731 (NULL): Remove redefine.
1732 (alloca): Remove #pragma.
1733 (vfork): Remove define.
1734 (termdef): Remove.
1735 (SIGWINCH_HANDLER): Remove.
1736 (SIGWINCH_HANDLER_BODY): Remove.
1737
cf4e7692
MK
17382004-08-09 Mark Kettenis <kettenis@gnu.org>
1739
1740 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1741 GDB_OSABI_OPENBSD_ELF.
1742
ac5754fa
MK
17432004-08-07 Robert Millan <robertmh@gnu.org>
1744
1745 * bsd-kvm.c: Check for nlist.h before including it.
1746
086ec9eb
MK
17472004-08-09 Mark Kettenis <kettenis@gnu.org>
1748
bbe06c74
MK
1749 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1750 sigcontext' offset consistency checks for ancient BSD.
1751
3aa7b3b3
MK
1752 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1753
086ec9eb
MK
1754 * configure.in: Check for <sys/types.h>. Check return and
1755 argument types of ptrace.
1756 * configure, config.in: Regenerate.
1757
09991fa0
JB
17582004-08-09 Jim Blandy <jimb@redhat.com>
1759
1760 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1761 rs6000_register_sim_regno): Doc fixes.
1762
fed7ba43
JB
17632004-08-08 Joel Brobecker <brobecker@gnat.com>
1764
1765 * mips-tdep.c: Include "floatformat.h".
1766 (n32n64_floatformat_always_valid): New function.
1767 (floatformat_n32n64_long_double_big): New constant.
1768 (mips_gdbarch_init): Set size and format of long double
1769 for N32 and N64 ABIs.
1770 * Makefile.in (mips-tdep.o): Update dependencies.
1771
456fcf94
AC
17722004-08-08 Andrew Cagney <cagney@gnu.org>
1773
2f9b146e
AC
1774 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1775 print. Improve script's error messages.
1776 * gdbarch.h: Re-generate.
1777
456fcf94
AC
1778 * gdbarch.sh (pformat): New function.
1779 (float_format, double_format, long_double_format): List with bit
1780 members. Use pformat when printing.
1781 * gdbarch.c, gdbarch.h: Re-generate.
1782
69e9e646
NW
17832004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1784
1785 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1786 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1787 (ppcnbsd_supply_pcb): New function.
1788 (_initialize_ppcnbsd_nat): New prototype and function.
1789 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1790 (LOADLIBES): New variable.
1791 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1792
5ef2d0aa
AC
17932004-08-08 Andrew Cagney <cagney@gnu.org>
1794
1795 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1796 (builtin_type_ieee_double, builtin_type_ia64_quad)
1797 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1798 BE/LE floating-point types.
1799 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1800 (builtin_type_ieee_double, builtin_type_ia64_quad)
1801 (builtin_type_ia64_spill): Declare.
1802 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1803 (floatformat_ieee_double, floatformat_arm_ext)
1804 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1805 of LE/BE floatformats.
1806 * doublest.h: (struct floatformat, floatformat_ieee_single)
1807 (floatformat_ieee_double, floatformat_arm_ext)
1808 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1809
5c7f2947
MK
18102004-08-08 Mark Kettenis <kettenis@gnu.org>
1811
ecac404d
MK
1812 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1813
9b8607ce
MK
1814 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1815 instead of regcache_raw_supply when storing the registers.
1816
f6052080
MK
1817 * i386gnu-nat.c: Update copyright year.
1818 (gnu_store_registers): Don't use deprecated_registers and
1819 deprecated_registers_valid. Use regcache_valid_p and
1820 regcache_raw_supply instead.
1821
17777823
MK
1822 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1823 frame_pc_unwind.
1824
5240ceac
MK
1825 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1826 variables. Incapitalized "process".
1827
5c7f2947
MK
1828 * configure.in: Add cursesX to the list of possible curses libs.
1829 Add cursesX.h to the list of possible curses headers.
1830 * configure, config.in: Regenerate.
1831
da7d81e3
NW
18322004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1833
1834 * configure.in: Test for struct lwp in <sys/lwp.h>.
1835 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1836 the offset of l_addr in struct lwp.
1837
7f245d65
NW
18382004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1839
1840 * bsd-kvm.c: Include "gdbcore.h"
1841 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1842
47b3f456
AC
18432004-08-07 Andrew Cagney <cagney@gnu.org>
1844
70bd8e24
AC
1845 * gdbtypes.c (build_flt, build_complex): New functions.
1846 (gdbtypes_post_init): Use.
1847
9b0dea39
AC
1848 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1849
5cf7abac
AC
1850 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1851 through to builtin_type_uint128.
1852
64d2b26d
AC
1853 * c-exp.y: Use builtin_type function to obtain builtin types.
1854
7ad6570d
AC
1855 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1856 builtin_uint128.
1857 * gdbtypes.c (gdbtypes_post_init): Update.
1858 (build_gdbtypes): Move initialization of builtin_type_int0
1859 through to builtin_type_uint128 from here ...
1860 (_initialize_gdbtypes): ... to here.
1861 * d10v-tdep.c (d10v_register_type): Update.
1862
47b3f456
AC
1863 * doublest.c: Update copyright.
1864 (floatformat_from_length): Call error when floatformat is NULL.
1865 (extract_floating_by_length): Remove NULL fmt check.
1866 (store_floating_by_length): Ditto.
1867
0a8146bf
AC
18682004-08-07 Andrew Cagney <cagney@gnu.org>
1869
1870 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1871 that the register is valid.
1872
c0ccb908
MK
18732004-08-05 Mark Kettenis <kettenis@chello.nl>
1874
8e6bed05
MK
1875 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1876 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1877 struct frame_info *. Use safe_frame_unwind_memory instead of
1878 deprecated_read_memory_nobpt.
1879 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1880 changed signature of i386_linux_sigtramp_start and
1881 i386_linux_rt_sigtramp_start.
1882
24f9f5e3
MK
1883 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1884 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1885 instead of deprecated_read_memory_nobpt.
1886 (i386nbsd_sigtramp_p): Adjust for changed signature of
1887 i386nbsd_sigtramp_offset.
1888
c822af0c
MK
1889 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1890 safe_frame_unwind_memory instead of target_read_memory.
1891
c0ccb908
MK
1892 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1893 !NO_SYS_FILE.
1894 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1895 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1896 (_initialize_kernel_u_addr): Remove prototype and function.
1897 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1898 !NO_SYS_FILE.
1899 * xcoffread.c: Likewise.
1900
b9e1c0d6
MK
19012004-08-06 Mark Kettenis <kettenis@gnu.org>
1902
1903 * vax-nat.c: New file.
1904 * vaxbsd-nat.c: Tweak comment.
1905 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1906 vaxnbsd-tdep.c.
1907 (vax-nat.o): New dependency.
1908 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1909 (vax-*-ultrix2*): Remove.
1910 * config/vax/vax.mh: New file.
1911 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1912 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1913 (vax_register_u_addr): New prototype.
1914 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1915 * config/vax/vaxult2.mh: Remove file.
1916 * config/vax/vaxult.mh: Remove file.
1917 * config/vax/vaxbsd.mh: Remove file.
1918 * config/vax/vax.mt (TM_FILE): Remove.
1919 * config/vax/tm-vaxbsd.h: Remove file.
1920
9ad7bec7
JB
19212004-08-06 Joel Brobecker <brobecker@gnat.com>
1922
1923 * aix-thread.c (get_signaled_thread): New function.
1924 (iter_trap): Delete, no longer used.
1925 (iter_tid): New function.
1926 (pd_update): Find the thread that received the SIGTRAP signal
1927 by first locating the kernel thread, and then finding its
1928 associated thread.
1929
bf0d233d
UW
19302004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1931
1932 * lin-lwp.c (child_wait): Continue inferior after processing
1933 PTRACE_EVENT_CLONE event.
1934
d0f853e1
NN
19352004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1936
1937 * MAINTAINERS: Add self to Write-After-Approval.
1938
ab14aeb0
JJ
19392004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1940
1941 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1942 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1943
9c8dbfa9
AC
19442004-08-05 Andrew Cagney <cagney@gnu.org>
1945
c8f3ca46
AC
1946 * config/xm-sysv4.h: Delete file.
1947 * config/mips/xm-irix5.h: Delete file.
1948 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1949 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1950 * config/ia64/xm-aix.h: Delete file.
1951 * config/ia64/aix.mh (XM_FILE): Delete.
1952 * config/pa/xm-hppah.h: Delete file.
1953 * config/pa/hpux11w.mh (XM_FILE): Delete.
1954 * config/pa/hpux11.mh (XM_FILE): Delete.
1955 * config/pa/hpux1020.mh (XM_FILE): Delete.
1956 * config/pa/hppahpux.mh (XM_FILE): Delete.
1957
5f7daaff
AC
1958 * config/alpha/xm-alphalinux.h: Delete file.
1959 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1960 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1961 * config/alpha/xm-alphaosf.h: Delete file.
1962 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1963 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1964 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1965 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1966
69babf95
AC
1967 * config/i386/xm-i386v.h: Delete file.
1968 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1969 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1970 * config/i386/xm-i386sco.h: Delete file.
1971 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1972 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1973 * config/i386/xm-i386v4.h: Delete file.
1974 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1975 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1976 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1977 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1978
6f009c8a
AC
1979 * config/vax/xm-vax.h: Delete file.
1980 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1981 * config/vax/xm-vaxult2.h: Delete file.
1982 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1983 * config/vax/vaxult2.mh (XM_FILE): Delete.
1984 * config/vax/xm-vaxult.h: Delete file.
1985 * config/vax/vaxult.mh (XM_FILE): Delete.
1986 * config/vax/xm-vaxbsd.h: Delete file.
1987 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1988
9c8dbfa9
AC
1989 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1990 * gdbarch.h, gdbarch.c: Re-generate.
1991 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1992 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1993 * frame.h: Delete deprecated_read_fp from comments.
1994 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1995 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1996
84367a3e
MK
19972004-08-04 Mark Kettenis <kettenis@gnu.org>
1998
9c8e3411
MK
1999 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2000 trampoline in OpenBSD 3.5-current.
2001
b87bc0d8
MK
2002 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2003 SSE registers.
2004
84367a3e
MK
2005 * Makefile.in: Remove embedded page breaks.
2006
a44bddec
JB
20072004-08-04 Jim Blandy <jimb@redhat.com>
2008
7ab3286f
JB
2009 * regcache.c (regcache_raw_read): Assert that, after calling
2010 target_fetch_registers, the register we're reading is cached.
2011
a44bddec
JB
2012 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2013 a call to 'internal_error', with a more helpful error message.
2014 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2015 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2016
35124113
AC
20172004-08-04 Andrew Cagney <cagney@gnu.org>
2018
2019 * Makefile.in: Update dependencies.
2020
9f643768
JB
20212004-08-04 Jim Blandy <jimb@redhat.com>
2022
6ced10dd
JB
2023 Change the layout of the PowerPC E500 raw register cache to allow
2024 the lower 32-bit halves of the GPRS to be their own raw registers,
2025 not pseudoregisters.
2026 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2027 add ppc_ev0_upper_regnum flag.
2028 * rs6000-tdep.c: #include "reggroups.h".
2029 (spe_register_p): Recognize the ev upper half registers as SPE
2030 registers.
2031 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2032 registers.
2033 (e500_move_ev_register): New function.
2034 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2035 vector registers are the pseudo-registers now, formed by splicing
2036 together the gprs and the upper-half registers.
2037 (e500_register_reggroup_p): New function.
2038 (P): Macro deleted.
2039 (P8, A4): New macro.
2040 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2041 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2042 macros.
2043 (registers_e500): Rearrange register set so that the raw register
2044 set contains 32-bit GPRs and upper-half registers, and the SPE
2045 vector registers become pseudo-registers.
2046 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2047 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2048 register numbers are now the same for the E500 as they are for
2049 other PowerPC variants. Register e500_register_reggroup_p as the
2050 register group function for the E500.
2051 * Makefile.in (rs6000-tdep.o): Update dependencies.
2052
2053 Adapt PPC E500 native support to the new raw regcache layout.
2054 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2055 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2056 (fetch_spe_register, store_spe_register): Handle fetching/storing
2057 all the SPE registers at once, if regno == -1. These now take
2058 over the job of fetch_spe_registers and store_spe_registers.
2059 (fetch_spe_registers, store_spe_registers): Deleted.
2060 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2061 unconditionally; they're always raw. Fetch/store SPE upper half
2062 registers, if present, instead of ev registers.
2063 (fetch_register, store_register): Remove sanity checks: gprs are
2064 never pseudo-registers now, so we never need to even mention any
2065 registers that are ever pseudoregisters.
2066
9f643768
JB
2067 Use a fixed register numbering when communicating with the PowerPC
2068 simulator.
2069 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2070 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2071 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2072 New functions.
2073 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2074 init_sim_regno_table.
2075 * Makefile.in (gdb_sim_ppc_h): New variable.
2076 (rs6000-tdep.o): Update dependencies.
2077
1e2279c8
AC
20782004-08-02 Andrew Cagney <cagney@gnu.org>
2079
1d94326f
AC
2080 * cris-tdep.c (cris_register_size): Restore function, still used
2081 locally.
2082
331ae7ed
AC
2083 * gdbarch.sh (deprecated_target_read_fp)
2084 (deprecated_frame_locals_address, deprecated_frame_args_address)
2085 (deprecated_frame_chain_valid, deprecated_frame_chain)
2086 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2087 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2088 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2089 * gdbarch.h, gdbarch.c: Re-generate.
2090 * regcache.c (deprecated_read_fp): Do not call
2091 DEPRECATED_TARGET_READ_FP_P.
2092 * infcmd.c (default_print_registers_info): Do not call
2093 DEPRECATED_DO_REGISTERS_INFO.
2094 * frame-base.c (default_frame_locals_address): Do not call
2095 DEPRECATED_FRAME_LOCALS_ADDRESS.
2096 (default_frame_args_address): Do not call
2097 DEPRECATED_FRAME_ARGS_ADDRESS.
2098
1e2279c8
AC
2099 * gdbarch.sh (deprecated_register_raw_size)
2100 (deprecated_register_virtual_size:int): Delete.
2101 * gdbarch.h, gdbarch.c: Re-generate.
2102 * cris-tdep.c (cris_register_size): Delete.
2103 (cris_gdbarch_init): Update.
2104 * alpha-tdep.c (alpha_register_raw_size)
2105 (alpha_register_virtual_size): Delete.
2106 (alpha_gdbarch_init): Update.
2107
a90c06b4
AC
2108 * gdbarch.sh (deprecated_register_virtual_type)
2109 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2110 (deprecated_dummy_write_sp): Delete.
2111 * gdbarch.h, gdbarch.c: Re-generate.
2112
f42accbe
AC
2113 * gdbarch.sh (deprecated_register_bytes): Delete.
2114 * gdbarch.h, gdbarch.c: Re-generate.
2115 * regcache.c (deprecated_register_bytes): New function.
2116 * regcache.h (deprecated_register_bytes): Declare.
2117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2118 * v850-tdep.c (v850_gdbarch_init): Update.
2119 * sh64-tdep.c (sh64_gdbarch_init): Update.
2120 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2121 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2122 * mcore-tdep.c (mcore_gdbarch_init): Update.
2123 * cris-tdep.c (cris_gdbarch_init): Update.
2124 * arm-tdep.c (arm_gdbarch_init): Update.
2125 * remote.c (init_remote_state): Update.
2126 * remote-vx.c (vx_prepare_to_store): Update.
2127 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2128 * irix5-nat.c (fetch_core_registers): Update.
2129 * cris-tdep.c (cris_register_bytes_ok): Update.
2130 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2131
45c9dd44
AC
2132 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2133 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2134 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2135 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2136 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2137 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2138 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2139 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2140 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2141 with mips_insn16 and mips_insn32.
2142
3acba339
AC
2143 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2144 * rs6000-tdep.c (rs6000_push_dummy_call)
2145 (rs6000_extract_return_value): Use register_size.
2146 * xstormy16-tdep.c (xstormy16_get_saved_register)
2147 (xstormy16_extract_return_value): Ditto.
2148 * valops.c (value_assign): Ditto.
2149 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2150 * v850-tdep.c (v850_extract_return_value): Ditto.
2151 * tracepoint.c (collect_symbol): Ditto.
2152 * target.c (debug_print_register): Ditto.
2153 * stack.c (frame_info): Ditto.
2154 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2155 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2156 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2157 (store_register_using_P): Ditto.
2158 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2159 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2160 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2161 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2162 * regcache.c (deprecated_read_register_bytes)
2163 (deprecated_write_register_bytes, read_register)
2164 (write_register): Ditto.
2165 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2166 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2167 * monitor.c (monitor_supply_register, monitor_fetch_register)
2168 (monitor_store_register): Ditto.
2169 * mn10300-tdep.c (mn10300_pop_frame_regular)
2170 (mn10300_print_register): Ditto.
2171 * mipsv4-nat.c (fill_fpregset): Ditto.
2172 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2173 (mips64_fill_fpregset): Ditto.
2174 * mi/mi-main.c (register_changed_p, get_register)
2175 (mi_cmd_data_write_register_values): Ditto.
2176 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2177 * irix5-nat.c (fill_gregset, fetch_core_registers):
2178 * infrun.c (write_inferior_status_register): Ditto.
2179 * infptrace.c (fetch_register, store_register): Ditto.
2180 * infcmd.c (default_print_registers_info): Ditto.
2181 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2182 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2183 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2184 * hpux-thread.c (hpux_thread_fetch_registers)
2185 (hpux_thread_store_registers): Ditto.
2186 * hppah-nat.c (store_inferior_registers, fetch_register):
2187 * findvar.c (value_from_register): Ditto.
2188 * dve3900-rom.c (fetch_bitmapped_register):
2189 * cris-tdep.c (cris_gdbarch_init): Ditto.
2190 * alpha-tdep.h: Ditto.
2191 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2192
01e1877c
AC
2193 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2194 DEPRECATED_REGISTER_RAW_SIZE from comments.
2195 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2196 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2197 DEPRECATED_REGISTER_RAW_SIZE.
2198 * findvar.c (value_of_register): Simplify by assuming that the
2199 registers raw and virtual sizes are identical.
2200 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2201 comment.
2202 * arch-utils.c (generic_register_size): Simplify by assuming
2203 register_type.
2204
73f458fb
AC
2205 * regcache.c (legacy_read_register_gen, real_register)
2206 (legacy_write_register_gen): Delete, not used.
2207
336a3131
AC
2208 * regcache.c (struct regcache_descr): Delete legacy_p.
2209 (init_legacy_regcache_descr): Delete function.
2210 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2211 Do not use deprecated register functions.
2212 (regcache_raw_read, deprecated_write_register_gen):
2213 (deprecated_read_register_gen, regcache_raw_write): Delete code
2214 predicated on legacy_p.
2215 (register_size): Delete check against register raw size.
2216
c1d546cd
AC
2217 * cris-tdep.c (cris_register_type): Replace
2218 cris_register_virtual_type.
2219 (cris_gdbarch_init): Update, set register_type.
2220
48c2c0a6
AC
2221 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2222 * gdbarch.h, gdbarch.c: Re-generate.
2223 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2224 (arm_gdbarch_init) Do not set frameless function invocation.
2225 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2226 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2227 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2228 (frv_gdbarch_init): Do not set frameless function invocation.
2229 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2230 * sh-tdep.c (sh_gdbarch_init): Ditto.
2231 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2232 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2233 * avr-tdep.c (avr_gdbarch_init): Ditto.
2234
474093a6
AC
2235 * blockframe.c (legacy_frame_chain_valid): Delete function.
2236
3c109c8b
AC
2237 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2238 and pc. Update comments.
2239 (pc_in_dummy_frame): Delete function.
2240 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2241 use the "id".
2242 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2243 call_hi, top and pc, use the id.
2244 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2245
96860204
AC
2246 * dummy-frame.c: Include "gdb_string.h".
2247 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2248 (generic_save_dummy_frame_tos): Delete.
2249 (dummy_frame_push): New function, replaces above.
2250 * dummy-frame.h: Update copyright.
2251 (dummy_frame_push): Declare.
2252 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2253 (generic_save_call_dummy_addr): Delete declarations.
2254 * infcall.c: Include "dummy-frame.h".
2255 (call_function_by_hand): Add locals caller_regcache,
2256 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2257 with call to frame_save_as_regcache plus cleanup. Delete calls to
2258 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2259 Move clear_proceed_status to just before the resume, add call to
2260 dummy_frame_push (discard cleanup).
2261 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2262 (dummy-frame.o): Add $(gdb_string_h).
2263
d67ec5db
AC
22642004-08-01 Andrew Cagney <cagney@gnu.org>
2265
2266 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2267 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2268 * dummy-frame.c (find_dummy_frame): Delete.
2269 (struct dummy_frame_cache, dummy_frame_sniffer)
2270 (dummy_frame_prev_register, dummy_frame_this_id)
2271 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2272 frame unwinder using a dummy_frame_cache.
2273
a81dcb05
AC
22742004-08-01 Andrew Cagney <cagney@gnu.org>
2275
2276 * frame.h (frame_save_as_regcache): Declare.
2277 * frame.c (frame_save_as_regcache): New function.
2278 (do_frame_read_register): Replace do_frame_unwind_register.
2279 (frame_pop): Use frame_save_as_regcache.
2280 * dummy-frame.c (generic_push_dummy_frame): Use
2281 frame_save_as_regcache.
2282
aa495d11
JB
22832004-08-01 Joel Brobecker <brobecker@gnat.com>
2284
2285 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2286 file as included until we record the first line in the linetable.
2287
ff65ac78
AC
22882004-08-01 Andrew Cagney <cagney@gnu.org>
2289
2290 * frame.h (deprecated_pop_dummy_frame)
2291 (deprecated_read_register_dummy)
2292 (deprecated_generic_find_dummy_frame): Delete.
2293 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2294 (deprecated_read_register_dummy)
2295 (deprecated_find_dummy_frame_regcache)
2296 (discard_innermost_dummy)
2297 (deprecated_pop_dummy_frame): Delete.
2298 (dummy_frame_this_id): Simplify.
2299 (struct dummy_frame): Delete "fp" and "sp".
2300 (find_dummy_frame): Simplify.
2301 (generic_push_dummy_frame): Do not set "fp" or "sp".
2302 (fprint_dummy_frames): Do not print "fp" and "sp"
2303
37bdc87e
MK
23042004-08-01 Mark Kettenis <kettenis@gnu.org>
2305
2306 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2307 (struct i386_insn): New structure.
2308 (i386_match_insn): New function.
2309 (i386_frame_setup_skip_insns): New variable.
2310 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2311 array i386_frame_setup_insns of instructions that should be
2312 skipped inside the frame setup sequence.
2313
8241eaa6
AC
23142004-08-01 Andrew Cagney <cagney@gnu.org>
2315
5bc602c7
AC
2316 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2317 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2318 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2319 * stack.c (frame_info): Delete references to
2320 DEPRECATED_FRAME_INIT_SAVED_REGS and
2321 deprecated_get_frame_saved_regs.
2322 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2323 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2324 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2325 (frame_unwind_register_signed)
2326 (frame_unwind_register_unsigned)
2327 (frame_unwind_unsigned_register): Use register_size.
2328 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2329 (deprecated_frame_xmalloc_with_cleanup)
2330 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2331 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2332
03d363a1
AC
2333 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2334 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2335 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2336 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2337
8241eaa6
AC
2338 * infcall.c (call_function_by_hand): Do not use
2339 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2340 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2341 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2342 DEPRECATED_STACK_ALIGN.
2343
f00df8b7
AC
23442004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2345
2346 Committed by Andrew Cagney.
2347 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2348
eec63939
AC
23492004-08-01 Andrew Cagney <cagney@gnu.org>
2350
2351 * mips-tdep.c (mips16_frame_cache)
2352 (mips16_frame_this_id, mips16_frame_prev_register)
2353 (mips16_frame_unwind, mips16_frame_sniffer)
2354 (mips16_frame_base_address, mips16_frame_base)
2355 (mips16_frame_base_sniffer, mips32_frame_cache)
2356 (mips32_frame_this_id, mips32_frame_prev_register)
2357 (mips32_frame_unwind, mips32_frame_sniffer)
2358 (mips32_frame_base_address, mips32_frame_base)
2359 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2360 separate heuristic mips16 and mips32 unwinders.
2361 (mips_stub_frame_cache, mips_stub_frame_this_id)
2362 (mips_stub_frame_prev_register)
2363 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2364 (mips_stub_frame_base_address, mips_stub_frame_base)
2365 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2366 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2367 match true mdebug frames.
2368 (non_heuristic_proc_desc): Add forward declaration.
2369
e66299b3
AC
23702004-08-01 Andrew Cagney <cagney@gnu.org>
2371
83cbbf3e
AC
2372 * config/mips/tm-irix6.h: Delete file.
2373 * config/mips/tm-irix5.h: Delete file.
2374 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2375 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2376
22d41b37
AC
2377 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2378 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2379 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2380 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2381 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2382 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2383 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2384 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2385 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2386 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2387 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2388 (TARGET_SIGNAL_RAW_VALUES): Delete.
2389 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2390 Delete.
2391 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2392 (TARGET_HW_WATCH_LIMIT): Delete.
2393 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2394 * minimon.h: Delete file.
2395
e66299b3
AC
2396 * trad-frame.c (trad_frame_get_this_base)
2397 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2398 functions.
2399 * trad-frame.h (trad_frame_set_this_base)
2400 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2401
1f67027d
AC
24022004-07-31 Andrew Cagney <cagney@gnu.org>
2403
2404 * trad-frame.c (trad_frame_get_prev_register): Rename
2405 trad_frame_get_prev_register.
2406 * vax-tdep.c (vax_frame_prev_register): Update.
2407 * trad-frame.h: Update.
2408 * trad-frame.c (trad_frame_get_register): Update.
2409 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2410 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2411 Update.
2412 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2413 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2414 Update.
2415 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2416 Update.
2417 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2418 Update.
2419 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2420 Update.
2421 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2422 Update.
2423 * s390-tdep.c (s390_frame_prev_register)
2424 (s390_stub_frame_prev_register)
2425 (s390_sigtramp_frame_prev_register): Update.
2426 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2427 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2428 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2429 * m88k-tdep.c (m88k_frame_prev_register)
2430 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2431 * m32r-tdep.c (m32r_frame_prev_register): Update.
2432 * hppa-tdep.c (hppa_frame_prev_register_helper)
2433 * frv-tdep.c (frv_frame_prev_register): Update.
2434 * d10v-tdep.c (d10v_frame_prev_register): Update.
2435 * cris-tdep.c (cris_frame_prev_register): Update.
2436 * avr-tdep.c (avr_frame_prev_register): Update.
2437 * arm-tdep.c (arm_prologue_prev_register)
2438 (arm_sigtramp_prev_register): Update.
2439
c1bf6f65
AC
24402004-07-31 Andrew Cagney <cagney@gnu.org>
2441
2442 * frame.h (legacy_saved_regs_unwind)
2443 (legacy_frame_chain_valid, legacy_frame_p)
2444 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2445 * dummy-frame.c (dummy_frame_this_id): Simplify.
2446 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2447 * frame.c (struct frame_info): Delete the field "type".
2448 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2449 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2450 (legacy_saved_regs_unwind, legacy_frame_p)
2451 (frame_type_from_pc): Delete.
2452 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2453 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2454
dc856692
MK
24552004-07-31 Mark Kettenis <kettenis@gnu.org>
2456
5a5effe1
MK
2457 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2458 indentation.
2459
d4fd50a6
MK
2460 * mips-nat.c: Remove file.
2461 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2462 (mips-nat.o): Remove dependency.
2463
2689df5a
MK
2464 * infptrace.c: Update copyright year.
2465 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2466 explicitly setting the buffer to all zeroes.
2467
dc856692
MK
2468 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2469 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2470
763910e0
AC
24712004-07-30 Andrew Cagney <cagney@gnu.org>
2472
2473 * GDB 6.2 released from gdb_6_2-branch.
2474
0b66e38c
EZ
24752004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2476
2477 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2478
2479 * exec.c (exec_file_attach):
2480 * nto-tdep.c (nto_find_and_open_solib):
2481 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2482 * solib.c (solib_open):
2483 * somsolib.c (som_solib_sizeof_symbol_table):
2484 * source.c (is_regular_file, openp, open_source_file):
2485 * symfile.c (symfile_bfd_open):
2486 * wince.c (upload_to_device): Differentiate between the search for
2487 binary and source files.
2488
be7d7357
AC
24892004-07-30 Andrew Cagney <cagney@gnu.org>
2490
2491 * complaints.c (_initialize_complaints): Pass NULL to
2492 add_setshow_zinteger_cmd for help_doc.
2493 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2494
ddc9cd0f
AC
24952004-07-30 Andrew Cagney <cagney@gnu.org>
2496
2497 Fix PR i18n/761.
2498 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2499 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2500 $(PACKAGE).pot and update-po.
2501 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2502 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2503 (update-po): New rules.
2504 (localedir): Define using autoconf.
2505 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2506 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2507 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2508 * configure.in: Generate CATALOGS and LINGUAS from contents of
2509 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2510 * configure: Re-generate.
2511 * po/gdbtext: New file
2512
e92f3704
JG
25132004-07-30 Jerome Guitton <guitton@gnat.com>
2514
2515 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2516 order.
2517
b0f35d58
DL
25182004-07-30 David Lecomber <dsl@sources.redhat.com>
2519
2520 * dwarf2read.c (read_file_scope): Set producer if attribute
2521 present.
2522 (struct dwarf2_cu): Added new member producer.
2523
ce7d4522
JG
25242004-07-30 Jerome Guitton <guitton@gnat.com>
2525
2526 * inflow.c (kill_command): release file handles in BFD.
2527 * exec.c (exec_file_attach): Ditto.
2528 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2529
05ee07c7
AC
25302004-07-29 Andrew Cagney <cagney@gnu.org>
2531
2532 * PROBLEMS (mips-irix): Note that it is broken.
2533
62eceb47
AC
25342004-07-29 Andrew Cagney <cagney@gnu.org>
2535
e57b8d41
AC
2536 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2537 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2538
d334389b
AC
2539 * config/xm-nbsd.h: Delete file.
2540 * config/arm/xm-nbsd.h: Delete file.
2541 * config/i386/xm-nbsd.h: Delete file.
2542 * config/ns32k/xm-nbsd.h: Delete file.
2543 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2544 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2545 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2546 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2547 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2548
e910f676
AC
2549 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2550 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2551 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2552 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2553 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2554 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2555
6fa856b9
AC
2556 * config/powerpc/xm-linux.h: Delete empty file.
2557 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2558 * config/powerpc/linux.mh (XM_FILE): Delete.
2559 * config/m68k/xm-linux.h: Delete empty file.
2560 * config/m68k/linux.mh (XM_FILE): Delete.
2561 * config/ia64/xm-linux.h: Delete empty file.
2562 * config/ia64/linux.mh (XM_FILE): Delete.
2563 * config/arm/xm-linux.h: Delete empty file.
2564 * config/arm/linux.mh (XM_FILE): Delete.
2565
471ae5ae
AC
2566 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2567 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2568 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2569 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2570 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2571 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2572 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2573 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2574
62eceb47
AC
2575 * config/m68k/xm-m68k.h: Delete file.
2576 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2577 copyright.
2578 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2579 * config/pa/xm-linux.h: Delete empty file.
2580 * config/pa/linux.mh (XM_FILE): Delete.
2581 * config/i386/xm-i386.h: Delete empty file.
2582 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2583 "i386/xm-i386.h".
2584 * config/i386/obsdaout.mh (XM_FILE): Delete.
2585 * config/i386/obsd64.mh (XM_FILE): Delete.
2586 * config/i386/fbsd64.mh (XM_FILE): Delete.
2587 * config/i386/nto.mh (XM_FILE): Delete.
2588 * config/i386/obsd.mh (XM_FILE): Delete.
2589 * config/i386/linux64.mh (XM_FILE): Delete.
2590 * config/i386/linux.mh (XM_FILE): Delete.
2591 * config/i386/i386sol2.mh (XM_FILE): Delete.
2592 * config/i386/i386gnu.mh (XM_FILE): Delete.
2593 * config/i386/fbsd.mh (XM_FILE): Delete.
2594 * config/i386/nbsd64.mh (XM_FILE): Delete.
2595
c35f4ffc
AC
25962004-07-29 Andrew Cagney <cagney@gnu.org>
2597
2598 * config/pa/xm-linux.h: Do not include "floatformat.h".
2599 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2600 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2601 * config/i386/xm-i386.h: Do not include "floatformat.h".
2602 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2603 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2604 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2605 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2606 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2607 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2608 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2609 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2610 * configure, config.in: Regenerate.
2611 * configure.host (gdb_host_float_format, gdb_host_double_format)
2612 (gdb_host_long_double_format): Set according to the host.
2613
624a44a3
AC
26142004-07-29 Andrew Cagney <cagney@gnu.org>
2615
2616 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2617
0dea2468
AC
26182004-07-28 Andrew Cagney <cagney@gnu.org>
2619
2620 * PROBLEMS: Mention threads/1650.
2621 * NEWS: Mention the NPTL fix.
2622
b3f42336
AC
26232004-07-28 Andrew Cagney <cagney@gnu.org>
2624
2625 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2626 (add_setshow_cmd_full): Make static.
2627 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2628 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2629 * cli/cli-decode.c (add_setshow_filename_cmd)
2630 (add_setshow_string_cmd): New functions.
2631 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2632 * mips-tdep.c (_initialize_mips_tdep): Update.
2633 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2634 * cli/cli-logging.c (_initialize_cli_logging): Update.
2635 * complaints.c (_initialize_complaints): Update.
2636 * remote.c (_initialize_remote): Update.
2637
3b64bf98
AC
26382004-07-28 Andrew Cagney <cagney@gnu.org>
2639
2640 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2641 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2642 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2643 print parameters. Make string parameters constant.
2644 * command.h: Update. Update copyright.
2645 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2646 * observer.c (_initialize_observer): Ditto.
2647 * frame.c (_initialize_frame): Ditto.
2648 * complaints.c (_initialize_complaints): Ditto.
2649 * maint.c (_initialize_maint_cmds): Ditto.
2650 * target.c (initialize_targets): Ditto.
2651 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2652 * infcall.c (_initialize_infcall): Ditto.
2653 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2654 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2655 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2656 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2657 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2658
e9667a65
AC
26592004-07-28 Andrew Cagney <cagney@gnu.org>
2660
54a5b07d
AC
2661 * gdbtypes.c (lookup_primitive_typename): Delete function.
2662 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2663 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2664 * gdbtypes.c (lookup_typename): Ditto.
2665 * f-exp.y (yylex): Ditto.
2666 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2667
e9667a65
AC
2668 * scm-lang.c (c_builtin_types): Delete extern declaration.
2669 (scm_language_defn): Replace
2670 string_char_type and primitive_type_vector with
2671 la_language_arch_info.
2672 * jv-lang.c (java_language_defn): Replace
2673 string_char_type and primitive_type_vector with
2674 la_language_arch_info.
2675 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2676 c_builtin_types in comment.
2677 * c-lang.h (struct language_arch_info): Declare opaque.
2678 (c_language_arch_info): Declare.
2679 (c_builtin_types): Delete declaration.
2680 * c-lang.c (c_language_arch_info): Set string_char_type to
2681 builtin_char, not builtin_true_char. Make global.
2682 (c_builtin_types): Delete array.
2683 (asm_language_defn, minimal_language_defn): Replace
2684 string_char_type and primitive_type_vector with
2685 la_language_arch_info.
2686
685419e2
AC
26872004-07-28 Andrew Cagney <cagney@gnu.org>
2688
2689 * gdbtypes.h (struct builtin_type): Rename true_char to
2690 builtin_true_char.
2691 * gdbtypes.c (gdbtypes_post_init): Update.
2692 * c-lang.c (arch_info): New function.
2693 (enum c_primitive_types): New enum.
2694 (c_language_defn): Instead of string_char_type and
2695 primitive_type_vector set la_language_arch_info.
2696
5a44ea29
AC
26972004-07-28 Andrew Cagney <cagney@gnu.org>
2698
2699 * language.h (struct language_arch_info): Fix typo
2700 s/primative/primitive/.
2701 * gdbtypes.c (lookup_primitive_typename): Ditto.
2702 * language.c (language_lookup_primitive_type_by_name)
2703 (unknown_language_arch_info): Ditto.
2704
f290d38e
AC
27052004-07-27 Andrew Cagney <cagney@gnu.org>
2706
2707 * defs.h (enum language): Add nr_languages.
2708 * language.h (struct language_arch_info): Define.
2709 (struct language_defn): Add la_language_arch_info.
2710 (language_lookup_primative_type_by_name): Declare.
2711 (language_string_char_type): Declare.
2712 * language.c (_initialize_language, language_gdbarch_post_init)
2713 (struct language_gdbarch, language_gdbarch_data): Implement
2714 per-architecture language information.
2715 (unknown_language_arch_info, language_string_char_type)
2716 (language_lookup_primative_type_by_name): New functions.
2717 (unknown_language_defn, auto_language_defn)
2718 (local_language_defn): Set la_language_arch_info to
2719 unknown_language_arch_info.
2720 (unknown_builtin_types): Delete.
2721 * gdbtypes.c (lookup_primitive_typename): Use
2722 language_lookup_primative_type_by_name.
2723 (create_string_type): Use language_string_char_type.
2724 * values.c (value_from_string): Use language_string_char_type.
2725 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2726 * p-lang.c (pascal_language_defn): Ditto.
2727 * m2-lang.c (m2_language_defn): Ditto.
2728 * jv-lang.c (java_language_defn): Ditto.
2729 * objc-lang.c (objc_language_defn): Ditto.
2730 * f-lang.c (f_language_defn): Ditto.
2731 * c-lang.c (c_language_defn, cplus_language_defn)
2732 (asm_language_defn, minimal_language_defn): Ditto.
2733
000177f0
AC
27342004-07-27 Andrew Cagney <cagney@gnu.org>
2735
2736 * gdbtypes.h (struct builtin_type): Declare.
2737 (builtin_type): Declare.
2738 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2739 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2740 (gdbtypes_post_init): New function.
2741 (builtin_type): New function.
2742
e22f895c
KI
27432004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2744
2745 * remote-m32r-sdi.c: Fix breakpoint bug.
2746 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2747 recv_char_data, recv_long_data): New functions to replace communication
2748 sequences.
2749
536517dd
MC
27502004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2751
2752 Document PR threads/1650.
2753 * PROBLEMS (Threads): Document problem with many threads
2754
a0a44d18
AC
27552004-07-26 Andrew Cagney <cagney@gnu.org>
2756
2757 * gdb-mi.el: Move from here ...
2758 * mi/gdb-mi.el: ... to here.
2759
7ac4ac06
AC
27602004-07-26 Andrew Cagney <cagney@gnu.org>
2761
2762 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2763 * main.c (captured_main): When in batch mode always detach.
2764
a1b461bf
AC
27652004-07-26 Andrew Cagney <cagney@gnu.org>
2766
2767 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2768 and h8300 as broken.
2769 * NEWS: END-OF-LIFE frame compatibility module.
2770 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2771 specific comments.
2772
cb1a6d5f
AC
27732004-07-26 Andrew Cagney <cagney@gnu.org>
2774
2775 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2776 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2777 * wince.c (_initialize_wince): Update.
2778 * win32-nat.c (_initialize_win32_nat): Update.
2779 * varobj.c (_initialize_varobj): Update.
2780 * valops.c (_initialize_valops): Update.
2781 * utils.c (initialize_utils, initialize_utils): Update.
2782 * tui/tui-win.c (_initialize_tui_win): Update.
2783 * top.c (init_main): Update.
2784 * symfile.c (_initialize_symfile): Update.
2785 * source.c (_initialize_source): Update.
2786 * somsolib.c (_initialize_som_solib): Update.
2787 * solib.c (_initialize_solib): Update.
2788 * solib-frv.c (_initialize_frv_solib): Update.
2789 * serial.c (_initialize_serial): Update.
2790 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2791 * remote.c (_initialize_remote, _initialize_remote): Update.
2792 * remote-vx.c (_initialize_vx): Update.
2793 * remote-utils.c (_initialize_sr_support): Update.
2794 * remote-sds.c (_initialize_remote_sds): Update.
2795 * remote-mips.c (_initialize_remote_mips): Update.
2796 * remote-e7000.c (_initialize_remote_e7000): Update.
2797 * proc-api.c (_initialize_proc_api): Update.
2798 * printcmd.c: Update.
2799 * parse.c (_initialize_parse): Update.
2800 * pa64solib.c (_initialize_pa64_solib): Update.
2801 * p-valprint.c (_initialize_pascal_valprint): Update.
2802 * monitor.c (_initialize_remote_monitors): Update.
2803 * mips-tdep.c (_initialize_mips_tdep): Update.
2804 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2805 * maint.c (_initialize_maint_cmds): Update.
2806 * lin-lwp.c (_initialize_lin_lwp): Update.
2807 * language.c (_initialize_language): Update.
2808 * kod.c (_initialize_kod): Update.
2809 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2810 * i386-tdep.c (_initialize_i386_tdep): Update.
2811 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2812 * gdbarch.sh: Update.
2813 * gdbarch.c: Re-generate.
2814 * gdb-events.sh: Update.
2815 * gdb-events.c: Re-generate.
2816 * frame.c (_initialize_frame): Update.
2817 * exec.c: Update.
2818 * demangle.c (_initialize_demangler): Update.
2819 * dcache.c (_initialize_dcache): Update.
2820 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2821 * cp-valprint.c (_initialize_cp_valprint): Update.
2822 * corefile.c (_initialize_core): Update.
2823 * command.h: Update.
2824 * cli/cli-decode.h: Update.
2825 * cli/cli-cmds.c (init_cli_cmds): Update.
2826 * charset.c (_initialize_charset): Update.
2827 * breakpoint.c (_initialize_breakpoint): Update.
2828 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2829 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2830 * aix-thread.c (_initialize_aix_thread): Update.
2831
b4632131
MK
28322004-07-24 Mark Kettenis <kettenis@gnu.org>
2833
2834 Partial fix for PR backtrace/1718.
2835 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2836 that GCC migrates into the prolugue. Don't handle any
2837 instructions that clobber %ebx.
2838
822c9732
AC
28392004-07-23 Andrew Cagney <cagney@gnu.org>
2840
2841 Use regcache_raw_collect instead of regcache_collect.
2842 * regcache.h (regcache_collect): Delete declaration.
2843 * regcache.c (regcache_colect): Delete function.
2844 * win32-nat.c (do_child_store_inferior_registers): Update.
2845 * sol-thread.c (sol_thread_store_registers): Update.
2846 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2847 * rs6000-nat.c (store_register): Update.
2848 * remote.c (store_register_using_P, remote_store_registers): Update.
2849 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2850 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2851 (fill_vrregset, store_spe_registers, fill_gregset)
2852 (fill_gregset): Update.
2853 * nto-procfs.c (procfs_store_registers): Update.
2854 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2855 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2856 * m68klinux-nat.c (store_register, fill_gregset): Update.
2857 * m68k-tdep.c (fill_gregset): Update.
2858 * infptrace.c (store_register): Update.
2859 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2860 * i386-linux-nat.c (store_register, fill_gregset): Update.
2861 * hppa-linux-nat.c (fill_gregset): Update.
2862 * go32-nat.c (store_register): Update.
2863 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2864 (store_fp_regs): Update.
2865 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2866 (store_nwfpe_extended, store_fpregister, store_fpregs)
2867 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2868 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2869 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2870 (store_regs_user_thread, store_regs_kernel_thread): Update.
2871
32b05c07
MK
28722004-07-24 Mark Kettenis <kettenis@gnu.org>
2873
2874 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2875 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2876 encoding.
2877 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2878 member of `struct comp_unit'.
2879
8567c30f
AC
28802004-07-23 Andrew Cagney <cagney@gnu.org>
2881
2882 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2883 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2884
f6da8dd8
MH
28852004-07-23 Martin Hunt <hunt@redhat.com>
2886 Kevin Buettner <kevinb@redhat.com>
2887
2888 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2889 alignment was being added to the offset instead of multiplied.
2890
bd921882
MK
28912004-07-23 Mark Kettenis <kettenis@gnu.org>
2892
24f033e8
MK
2893 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2894 changed signal trampoline in OpenBSD 3.5-current.
2895
90f3cecd
MK
2896 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2897 <machine/pcb.h> and "bsd-kvm.h".
2898 (sparc64nbsd_supply_pcb): New function.
2899 (_initialize_sparc64nbsd_nat): Renamed from
2900 _initialize_sparcnbsd_nat. Enable libkvm interface.
2901 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2902 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2903 (LOADLIBES): New variable.
2904
a4954a62
MK
2905 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2906
bd921882
MK
2907 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2908
23a6d369
AC
29092004-07-21 Andrew Cagney <cagney@gnu.org>
2910
2911 Use regcache_raw_supply instead of supply_register.
2912 * regcache.h (supply_register): Delete declaration.
2913 * regcache.c (supply_register): Delete function.
2914 * wince.c (do_child_fetch_inferior_registers): Update.
2915 * win32-nat.c (do_child_fetch_inferior_registers)
2916 (fetch_elf_core_registers): Update.
2917 * v850ice.c (v850ice_fetch_registers): Update.
2918 * thread-db.c (thread_db_store_registers): Update.
2919 * sol-thread.c (sol_thread_store_registers): Update.
2920 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2921 * rs6000-nat.c (fetch_register): Update.
2922 * rom68k-rom.c (rom68k_supply_one_register): Update.
2923 * remote.c (remote_wait, remote_async_wait): Update.
2924 * remote-st.c (get_hex_regs): Update.
2925 * remote-sim.c (gdbsim_fetch_register): Update.
2926 * remote-sds.c (sds_fetch_registers): Update.
2927 * remote-rdp.c (remote_rdp_fetch_register): Update.
2928 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2929 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2930 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2931 * remote-hms.c (init_hms_cmds): Update.
2932 * remote-est.c (init_est_cmds): Update.
2933 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2934 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2935 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2936 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2937 (fetch_register, supply_vrregset, supply_vrregset)
2938 (fetch_spe_registers): Update.
2939 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2940 * monitor.c (monitor_supply_register): Update.
2941 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2942 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2943 (mipsnbsd_supply_fpreg): Update.
2944 * mips-nat.c (fetch_inferior_registers)
2945 (fetch_core_registers): Update.
2946 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2947 (supply_fpregset, mips64_supply_gregset)
2948 (mips64_supply_fpregset): Update.
2949 * m68klinux-nat.c (fetch_register, supply_gregset)
2950 (supply_fpregset): Update.
2951 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2952 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2953 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2954 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2955 * infptrace.c (fetch_register): Update.
2956 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2957 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2958 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2959 (gnu_fetch_registers, gnu_store_registers): Update.
2960 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2961 * i386-linux-nat.c (fetch_register, supply_gregset)
2962 (dummy_sse_values): Update.
2963 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2964 * hppah-nat.c (fetch_register): Update.
2965 * hppa-linux-nat.c (fetch_register, supply_gregset)
2966 (supply_fpregset): Update.
2967 * go32-nat.c (fetch_register): Update.
2968 * dve3900-rom.c (fetch_bitmapped_register)
2969 (_initialize_r3900_rom): Update.
2970 * cris-tdep.c (supply_gregset): Update.
2971 * abug-rom.c (init_abug_cmds): Update.
2972 * core-aout.c (fetch_core_registers): Update.
2973 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2974 (fetch_register, fetch_fp_register): Update.
2975 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2976 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2977 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2978 * alphanbsd-tdep.c (fetch_core_registers): Update.
2979 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2980 * alpha-nat.c (fetch_osf_core_registers)
2981 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2982 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2983 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2984
73cc75f3
AC
29852004-07-21 Andrew Cagney <cagney@gnu.org>
2986
2987 * PROBLEMS: Mention breakpoints/1702.
2988 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2989 that is known to work.
2990
a53c66de
AC
29912004-07-21 Andrew Cagney <cagney@gnu.org>
2992
2993 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2994 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2995 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2996 (handle_inferior_event): Wrap call to deprecated
2997 IGNORE_HELPER_CALL in #ifdef.
2998 * config/mips/tm-nbsd.h: Update.
2999
708ff411
JB
30002004-07-20 Jim Blandy <jimb@redhat.com>
3001
412b3060
JB
3002 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3003 bfd_mach_ppc has no segment registers.
3004
13ac140c
JB
3005 Include PowerPC SPR numbers for special-purpose registers.
3006 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3007 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3008 new member in initializer.
3009 (S, S4, SN4, S64): New macros for defining special-purpose
3010 registers.
3011 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3012 registers_403, registers_403GC, registers_505, registers_860,
3013 registers_601, registers_602, registers_603, registers_604,
3014 registers_750, registers_e500): Use them.
3015
708ff411
JB
3016 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3017 replace references with expression used to initialize variable.
3018
1f602b35
AC
30192004-07-20 Andrew Cagney <cagney@gnu.org>
3020
3021 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3022 read_memory_nobpt.
3023 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3024 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3025 (s390_sigtramp_frame_sniffer): Update.
3026 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3027 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3028 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3029 (mips32_fetch_instruction): Update.
3030 * mcore-tdep.c (get_insn): Update.
3031 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3032 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3033 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3034 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3035 (i386_linux_rt_sigtramp_start): Update.
3036 * i386-linux-nat.c (child_resume): Update.
3037 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3038 * hppa-linux-tdep.c (insns_match_pattern): Update.
3039 * gdbcore.h: Update.
3040 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3041 * frame.c (safe_frame_unwind_memory): Update.
3042 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3043 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3044 * alpha-tdep.c (alpha_read_insn): Update.
3045
2cd8546d
AC
30462004-07-20 Andrew Cagney <cagney@gnu.org>
3047
3048 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3049 containing both bytes and mask. Add "frame_type".
3050 * tramp-frame.c (tramp_frame_start): Update.
3051 (tramp_frame_prepend_unwinder): Update.
3052 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3053 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3054 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3055 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3056
f928dd62
EZ
30572004-07-19 Eli Zaretskii <eliz@gnu.org>
3058
3059 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3060 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3061 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3062 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3063
d5c560f7
AC
30642004-07-17 Andrew Cagney <cagney@gnu.org>
3065
860660cb
AC
3066 * NEWS, PROBLEMS: Update for 6.2.
3067
8c266f54
AC
3068 * README: Update to 6.2.
3069
a552edd9
AC
3070 * utils.c (xvasprintf): Call xstrvprintf.
3071
c4a172b5
AC
3072 * parse.c: Update copyright.
3073 (null_post_parser): Eliminate ARGSUSED.
3074
da745b36
AC
3075 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3076 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3077 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3078
9cbc6ef0
AC
3079 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3080 * ppc-linux-nat.c: Use "Linux kernel".
3081 * hppa-linux-tdep.c: Use GNU/Linux.
3082 * hppa-linux-nat.c: Use GNU/Linux.
3083 * dwarfread.c: Add [sic] to use of Linux.
3084
1b89295f
AC
3085 * hppa-linux-nat.c: Do not include <string.h>.
3086 (supply_fpregset): Remove "register" attribute.
3087
d5c560f7
AC
3088 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3089
7ddd7709
MK
30902004-07-17 Mark Kettenis <kettenis@gnu.org>
3091
b1d19a62
MK
3092 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3093 * configure, config.in: Regenerated.
3094
7ddd7709
MK
3095 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3096 "bsd-kvm.h".
3097 (vaxbsd_supply_pcb): New function.
3098 (_initialize_vaxbsd_nat): New prototype and function.
3099 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3100 solib-sunos.o.
3101 (LOADLIBES): New variable.
3102 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3103 (LOADLIBES): New variable.
3104 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3105 (LOADLIBES): New variable.
3106 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3107
2c07db7a
AC
31082004-07-16 Andrew Cagney <cagney@gnu.org>
3109
3110 * defs.h (event_loop_p): Replace variable declaration with macro,
3111 always 1.
3112 * main.c (captured_main): Delete options "-async" and "-noasync".
3113 (event_loop_p): Delete variable.
3114 * NEWS: Mention that "-async" and "-noasync" were removed.
3115
717eb1cf
AC
31162004-07-16 Andrew Cagney <cagney@gnu.org>
3117
3118 * remote-m32r-sdi.c: Re-indent.
3119
c101bc14
JB
31202004-07-16 Jim Blandy <jimb@redhat.com>
3121
5109a438
JB
3122 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3123 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3124 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3125 missing MPC823 SPRs.
3126 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3127 incorrect. (This was corrected in GDB's register name tables on
3128 2004-07-14.)
3129
c101bc14
JB
3130 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3131 should be "esasrr" ("ESA Save and Restore Register").
3132
7ce450bd
AC
31332004-07-16 Andrew Cagney <cagney@gnu.org>
3134
3135 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3136 calls, no longer applicable. Update comments and rename parameter
3137 "step_frame" to "return_frame".
3138
ca73dd9d
AC
31392004-07-16 Andrew Cagney <cagney@gnu.org>
3140
3141 * frame.c (fprint_field): New function.
3142 (fprint_frame_id): Use fprint_field.
3143
31941f6d
JB
31442004-07-15 Joel Brobecker <brobecker@gnat.com>
3145
3146 * ada-lang.c (ada_language_defn): Remove commented out code.
3147
f86a7158
JB
31482004-07-15 Jim Blandy <jimb@redhat.com>
3149
3150 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3151 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3152
c24791ec
JB
31532004-07-14 Jim Blandy <jimb@redhat.com>
3154
29bb1356
JB
3155 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3156
cc98b5cc
JB
3157 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3158
8f088af7
JB
3159 * ppc-tdep.h (ppc_num_srs): New enum constant.
3160
0ea0ec5f
JB
3161 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3162 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3163 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3164 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3165 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3166 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3167 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3168 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3169 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3170 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3171 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3172 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3173 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3174 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3175 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3176 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3177 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3178 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3179 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3180 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3181 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3182 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3183 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3184 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3185 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3186 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3187 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3188 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3189 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3190 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3191 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3192 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3193 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3194 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3195 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3196 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3197 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3198 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3199 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3200 special-purpose register numbers.
3201
c24791ec
JB
3202 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3203 manual mentions 'md_twb', but many mention 'm_twb', and at that
3204 point in the register list.)
3205
d833db3b
AC
32062004-07-14 Andrew Cagney <cagney@gnu.org>
3207
3208 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3209 instead of "internal-error".
3210
080228b2
JB
32112004-07-10 Joel Brobecker <brobecker@gnat.com>
3212
3213 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3214 that was inserted inside a comment.
3215
c268433a
RC
32162004-07-10 Randolph Chung <tausq@debian.org>
3217
3218 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3219 function.
3220 (hppa_hpux_push_dummy_code): New function.
3221 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3222 Set find_global_pointer method.
3223
71009278
MK
32242004-07-10 Mark Kettenis <kettenis@gnu.org>
3225
3226 * NEWS: Mention BSD libkvm interface.
3227
b2fa5097
MS
32282004-07-10 Michael Snyder <msnyder@redhat.com>
3229
3230 * symfile.c (generic_load): Comment typo.
3231 * stack.c (get_selected_block): Ditto.
3232 * regcache.c (regcache_cooked_read): Ditto.
3233 * monitor.c (monitor_debug): Ditto.
3234 * mips-tdep.c (mips_read_pc): Ditto.
3235 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3236 * gdb_mbuild.sh: Ditto.
3237 * gdbarch.sh: Ditto.
3238 * gdbarch.h: Ditto.
3239
c3e5cd34
PH
32402004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3241
8a2225b2
PH
3242 * ada-tasks.c: Remove file.
3243
c3e5cd34
PH
3244 Remove ARI problems:
3245
3246 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3247 beginning of line.
3248
3249 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3250 Add comment.
3251 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3252 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3253 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3254 (UMIN_OF_SIZE): Remove.
3255 (max_of_type): New function to replace orphan macro in gdbtypes.h
3256 (min_of_type): Ditto.
3257 (discrete_type_high_bound): Use max_of_type.
3258 (discrete_type_low_bound): Use min_of_type.
3259 (possible_user_operator_p): Move operator to beginning of line.
3260 (ada_is_variant_part): Ditto.
3261 (ensure_lval): Rewrite to avoid deprecated operations.
3262 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3263 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3264 (ada_enum_name): Remove assignments in 'if' statements.
3265 (build_ada_types): Add gdbarch parameter.
3266 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3267 with gdbarch_data_register_post_init.
3268 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3269 add_show_from_set.
3270
3271 * ada-valprint.c (inspect_it): Remove declaration.
3272 (repeat_count_threshold): Remove declaration.
3273 (ada_print_floating): Remove assignments in 'if' statements.
3274 (print_str): Move operator to beginning of line.
3275
61ce229a
JB
32762004-07-08 Jim Blandy <jimb@redhat.com>
3277
3278 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3279
09bcec80
BR
32802004-07-08 Bob Rossi <bob@brasko.net>
3281
3282 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3283
31c27f77
JJ
32842004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3285
3286 * language.h (struct_language_defn): Add new function pointer:
3287 la_class_name_from_physname. Also add new prototype for
3288 language_class_name_from_physname.
3289 * language.c (language_class_name_from_physname): New function.
3290 (unk_lang_class_name): Ditto.
3291 (unknown_language_defn, auto_language_defn): Change
3292 to add unk_lang_class_name function pointer for
3293 la_class_name_from_physname.
3294 (local_language_defn): Ditto.
3295 * dwarf2read.c (guess_structure_name): Change to call
3296 language_class_name_from_physname.
3297 (determine_class_name): Ditto.
3298 * cp-support.c (class_name_from_physname): Renamed.
3299 (cp_class_name_from_physname): New name of function.
3300 * cp-support.h: Ditto.
3301 * c-lang.c (c_language_defn): Change to add NULL
3302 for class_name_from_physname function pointer.
3303 (cplus_language_defn): Change to add cp_class_name_from_physname.
3304 * jv-lang.c (java_class_name_physname): New function.
3305 (java_find_last_component): New static routine.
3306 (java_language_defn): Add java_class_name_from_physname pointer.
3307 * ada-lang.c (ada_language_defn): Change to add NULL
3308 for class_name_from_physname function pointer.
3309 * f-lang.c (f_language_defn): Ditto.
3310 * m2-lang.c (m2_language_defn): Ditto.
3311 * objc-lang.c (objc_language_defn): Ditto.
3312 * p-lang.c (pascal_language_defn): Ditto.
3313 * scm-lang.c (scm_language_defn): Ditto.
3314
ee28ca0f
AC
33152004-07-06 Andrew Cagney <cagney@gnu.org>
3316
3317 Patch from Bart Robinson.
3318 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3319 (O_LARGEFILE): Define to 0, if not defined.
3320
fdb1bf9d
MK
33212004-07-03 Mark Kettenis <kettenis@gnu.org>
3322
cb162ff6
MK
3323 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3324 <machine/pcb.h> and "bsd-kvm.h".
3325 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3326 (m68kbsd_supply_pcb): New function.
3327 (_initialize_m68kbsd_nat): New prototype and function.
3328 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3329 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3330 (LOADLIBES): New variable.
3331 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3332 (LOADLIBES): New variable.
3333
fdb1bf9d
MK
3334 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3335
963c4174
MK
33362004-07-03 Mark Kettenis <kettenis@gnu.org>
3337
3338 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3339 <sys/proc.h>.
3340 (bsd_kvm_cmdlist): New variable.
3341 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3342 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3343 command and "kvm proc" command.
3344 * Makefile.in (bsd-kvm.o): Update dependencies.
3345
533f1d8f
MK
33462004-07-02 Mark Kettenis <kettenis@gnu.org>
3347
3348 * osabi.c: Update copyright year.
3349 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3350 notes if EI_OSABI is set to ELFOSABI_HPUX.
3351
6780dcde
MS
33522004-07-01 Michael Snyder <msnyder@redhat.com>
3353
3354 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3355 that seems to have gotten whacked out of line.
3356
67bebe79
MK
33572004-07-01 Mark Kettenis <kettenis@gnu.org>
3358
3359 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3360 code.
3361
0b5d8877
PH
33622004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3363
3364 * ada-lang.c (decode_packed_array): Minor change to comment.
3365 (ada_value_slice_ptr): New function.
3366 (ada_value_slice): New function.
3367 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3368 test. Don't know why it is there.
3369 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3370 to avoid dereferencing huge arrays from which one is slicing.
3371 (empty_array): Correct to return an array rather than
3372 a subrange value.
3373 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3374 on empty arrays (let'em use 'FIRST instead).
3375
19c1ef65
PH
33762004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3377
3378 Address complaints from gdb_ari.sh:
3379
3380 * ada-exp.y: Include gdb_string.h rather than string.h.
3381 (convert_char_literal): Reformat declaration.
3382 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3383 * ada-lex.l: Change use of free to xfree (the macro would do so
3384 anyway, but this is harmless).
3385 Include gdb_string.h rather than string.h.
3386 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3387
3388 * ada-lang.c (parse): Remove K&Rism in parameter list.
3389 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3390
d81cbc94
MK
33912004-06-30 Mark Kettenis <kettenis@gnu.org>
3392
3393 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3394 dead code.
3395
07681759
MK
33962004-06-30 Mark Kettenis <kettenis@gnu.org>
3397
3398 * alphabsd-nat.c: Update copyright year.
3399 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3400
f7948b5f
JB
34012004-06-29 Joel Brobecker <brobecker@gnat.com>
3402
6e0cdd28 3403 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3404 (i386_cygwin_in_solib_call_trampoline): New function.
3405 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3406 and skip_trampoline_code gdbarch methods.
3407
8f113c9a
JB
34082004-06-29 Jim Blandy <jimb@redhat.com>
3409
3410 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3411 name actually used in the dependency lists.
3412
97dc871c
RC
34132004-06-29 Randolph Chung <tausq@debian.org>
3414
3415 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3416
47216e51
CV
34172004-06-29 Corinna Vinschen <vinschen@redhat.com>
3418
3419 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3420 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3421 functionality.
3422
e623b504
AC
34232004-06-28 Andrew Cagney <cagney@gnu.org>
3424
3425 * defs.h (xstrvprintf): Declare.
3426 * utils.c (xstrvprintf): New function.
3427 (internal_vproblem, xstrprintf, xasprintf)
3428 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3429 * serial.c (serial_printf): Ditto.
3430 * complaints.c (vcomplaint): Ditto.
3431
79acc9b3
CV
34322004-06-29 Corinna Vinschen <vinschen@redhat.com>
3433
3434 * infcmd.c (attach_command): Move call to target_terminal_inferior
3435 behind loading symbol table.
3436
1daf35d9
AC
34372004-06-28 Andrew Cagney <cagney@gnu.org>
3438
3439 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3440 change - add back extern deprecated_ui_loop_hook declaration.
3441
b435e160
AC
34422004-06-28 Andrew Cagney <cagney@gnu.org>
3443
3444 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3445 xstrprintf.
3446 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3447 (c_value_of_variable): Ditto.
3448 * utils.c (internal_vproblem): Ditto.
3449 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3450 * remote.c (add_packet_config_cmd): Ditto.
3451 * remote-rdp.c (rdp_set_command_line): Ditto.
3452 * regcache.c (regcache_dump): Ditto.
3453 * frv-tdep.c (new_variant, new_variant): Ditto.
3454 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3455 (fbsd_find_memory_regions): Ditto.
3456 * breakpoint.c (create_thread_event_breakpoint)
3457 (create_breakpoints): Ditto.
3458 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3459 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3460
06d5cf63
JB
34612004-06-28 Joel Brobecker <brobecker@gnat.com>
3462
3463 * ada-lang.c: Re-indent file, with some massaging to help indent
3464 a bit when the result is otherwise really too ugly.
3465
35809fad
UW
34662004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3467
3468 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3469 code_addr_p and special_addr_p to 'unsigned int'.
3470
40e20472
MK
34712004-06-27 Mark Kettenis <kettenis@gnu.org>
3472
3473 * i386v4-nat.c: Update copyright year and tweak comment.
3474 (regmap): Remove trailing comma.
3475 (supply_gregset): Rename local variable i to regnum. Call
3476 regcache_raw_supply instead of supply_register.
3477 (fill_gregset): Rename argument regno to regnum. Call
3478 regcache_raw_collect instead of regcache_collect.
3479
12b0b6de
UW
34802004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3481
3482 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3483 and special_addr_p.
3484 (frame_id_build, frame_id_build_special): Update comments.
3485 (frame_id_build_wild): New prototype.
3486 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3487 struct frame_id fields.
3488 (frame_id_build_wild): New function.
3489 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3490
47b42a3e
MK
34912004-06-27 Mark Kettenis <kettenis@gnu.org>
3492
3493 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3494 hppabsd-tdep.c.
3495
1265e4aa
JB
34962004-06-27 Joel Brobecker <brobecker@gnat.com>
3497
3498 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3499
76a01679
JB
35002004-06-27 Joel Brobecker <brobecker@gnat.com>
3501
3502 * ada-lang.c: Re-indent file.
3503
7aca490a
JB
35042004-06-27 Joel Brobecker <brobecker@gnat.com>
3505
3506 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3507 (no_symtab_msg): Likewise.
3508
5e987968
AS
35092004-06-27 Andreas Schwab <schwab@suse.de>
3510
3511 * source.c: Fix whitespace.
3512
315c4276
MK
35132004-06-27 Mark Kettenis <kettenis@gnu.org>
3514
d15be926
MK
3515 * configure.in: Include <sys/param.h> for td_pcb test.
3516 * configure: Regenerated.
3517
9062529b
MK
3518 * i386nbsd-nat.c: New file.
3519 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3520 i386obsd-nat.c and i386obsd-tdep.c.
3521 (i386nbsd-nat.o): New dependency.
3522 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3523 bsd-kvm.o.
3524 (LOADLIBES): New variable.
3525 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3526 bsd-kvm.o.
3527 (LOADLIBES): New variable.
3528
8010310e
MK
3529 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3530 (LOADLIBES): New variable.
3531
efe1d7b9
MK
3532 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3533 fetching from BSD_KVM_PADDR. Correctly lookup address for
3534 "_thread0".
3535
315c4276
MK
3536 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3537 "bsd-kvm.h".
3538 (amd64fbsd_supply_pcb): New funcion.
3539 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3540
399cfac6
DL
35412004-06-27 <david@streamline-computing.com>
3542
3543 Partial fix for PR cli/1056.
3544 * valarith.c: Check for zero in division and remainder
3545 evaluation.
3546
6235f9c8
MK
35472004-06-27 Mark Kettenis <kettenis@gnu.org>
3548
3549 * i387-tdep.c: Remove excessive whitespace.
3550
2726dafc
AC
35512004-06-26 Andrew Cagney <cagney@gnu.org>
3552
3553 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3554 * gdb-events.h, gdb-events.c: Re-generate.
3555 * tui/tui-hooks.c (tui_install_hooks): Update.
3556 (tui_remove_hooks): Update.
3557 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3558
0e56aeaf
MK
35592004-06-26 Mark Kettenis <kettenis@gnu.org>
3560
cb461069
MK
3561 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3562 (gregset_t, fpregset_t): Remove typedefs.
3563 (REG_OFFSET): Rename argument.
3564 (amd64bsd_r_reg_offset): Rename from reg_offset.
3565 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3566 Remove functions.
3567 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3568 of reg_offset.
3569 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3570
ecba89de
MK
3571 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3572
4cd80476
MK
3573 * vax-tdep.c: Tweak comment.
3574
0e56aeaf
MK
3575 Add OpenBSD/hppa support.
3576 * NEWS (New native configurations): Mention OpenBSD/hppa.
3577 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3578 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3579 files.
3580 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3581 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3582 * configure.host: Add hppa*-*-openbsd*.
3583 * configure.tgt: Add hppa*-*-openbsd*.
3584
98bbd631
AC
35852004-06-25 Andrew Cagney <cagney@gnu.org>
3586
3587 * defs.h (deprecated_ui_loop_hook): Deprecated.
3588 * wince.c (child_wait): Update.
3589 * win32-nat.c (child_wait): Update.
3590 * v850ice.c (v850ice_wait): Update.
3591 * top.c (deprecated_ui_loop_hook): Update.
3592 * serial.h: Update.
3593 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3594 (do_unix_readchar): Update.
3595 * ser-tcp.c (net_open): Update.
3596 * remote-sim.c (gdb_os_poll_quit): Update.
3597 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3598
769d7dc4
AC
35992004-06-24 Andrew Cagney <cagney@gnu.org>
3600
3601 * defs.h (deprecated_pre_add_symbol_hook)
3602 (deprecated_post_add_symbol_hook): Deprecated.
3603 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3604 (symbol_file_add_with_addrs_or_offsets): Update references.
3605
11c949aa
AC
36062004-06-24 Andrew Cagney <cagney@gnu.org>
3607
3608 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3609 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3610 * wince.c (ui_loop_hook): Delete extern declaration.
3611 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3612 * v850ice.c (ui_loop_hook): Delete extern declaration..
3613 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3614 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3615 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3616 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3617 ui_loop_hook declaration.
3618
eedc19af
AC
36192004-06-24 Andrew Cagney <cagney@gnu.org>
3620
3621 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3622 entry_func_highpc fields.
3623 * objfiles.c (init_entry_point_info): Do not clear
3624 entry_func_lowpc and entry_func_highpc.
3625 (objfile_relocate): Do not relocate entry_func_lowpc and
3626 entry_func_highpc.
3627 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3628 entry_func_highpc.
3629 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3630 entry_func_highpc.
3631 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3632 entry_func_lowpc and entry_func_highpc with call to
3633 inside_entry_func.
3634
d47079be
MK
36352004-06-24 Mark Kettenis <kettenis@gnu.org>
3636
3637 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3638 quad-precision floating point arguments in registers.
3639
2107e348
MK
36402004-06-24 Mark Kettenis <kettenis@gnu.org>
3641
3642 From Michael Mueller <m.mueller99@kay-mueller.de>:
3643 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3644 account.
3645
46587c42
JJ
36462004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3647
3648 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3649 to -1.
3650 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3651 untriggered watchpoints to a separate if clause. Update function
3652 comment regarding STOPPED_BY_WATCHPOINT argument.
3653
226f5cf4
JB
36542004-06-22 Jim Blandy <jimb@redhat.com>
3655
3656 * gdbarch.sh: Doc fix.
3657
f10683bb
MH
36582004-06-21 Martin Hunt <hunt@redhat.com>
3659 Kevin Buettner <kevinb@redhat.com>
3660
3661 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3662 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3663 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3664 to set_gdbarch_sp_regnum(). Use cooked register number.
3665 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3666
412d5987
AC
36672004-06-21 Andrew Cagney <cagney@gnu.org>
3668
3669 * gdbarch.sh: When the macro field is empty, do not generate a
3670 macro definition. When the macro field is "=", generate the macro
3671 name from the upper-case function name.
3672 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3673 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3674 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3675 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3676 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3677 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3678 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3679 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3680 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3681 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3682 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3683 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3684 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3685 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3686 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3687 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3688 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3689 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3690 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3691 (DEPRECATED_USE_STRUCT_CONVENTION)
3692 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3693 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3694 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3695 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3696 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3697 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3698 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3699 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3700 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3701 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3702 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3703 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3704 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3705 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3706 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3707 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3708 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3709 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3710
68908a3e
AC
37112004-06-21 Andrew Cagney <cagney@gnu.org>
3712
48f7351b
AC
3713 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3714 macro name, and the function rather than macro value. Only wrap
3715 macro print statements in #ifdef. Move format logic to where it
3716 is needed.
3717 * gdbarch.c: Re-generate.
3718
283354d8
AC
3719 * gdbarch.sh (read): Delete "print_p" and "description", add
3720 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3721 Delete references to print_p.
3722 (TARGET_ARCHITECTURE): Delete print predicate.
3723 * gdbarch.c: Re-generate.
3724
68908a3e
AC
3725 * gdbarch.sh: Check that multi-arch methods do not provide a
3726 macro.
3727 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3728 (print_registers_info, print_float_info, print_vector_info)
3729 (adjust_breakpoint_address, remote_translate_xfer_address)
3730 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3731 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3732 name from the multi-arch definition.
3733
a2428dbe
AC
37342004-06-20 Andrew Cagney <cagney@gnu.org>
3735
3736 * gdbarch.sh: Sort by the function, instead of macro name.
3737 * gdbarch.c: Re-generate.
3738
750eb019
AC
37392004-06-20 Andrew Cagney <cagney@gnu.org>
3740
66d659b1
AC
3741 * gdbarch.sh: Use the function, instead of macro name in
3742 errors and the log file.
3743 (return_value): Remove stray ":" in spec.
3744
750eb019
AC
3745 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3746 * gdbarch.h, gdbarch.c: Re-generate.
3747 * Makefile.in (arch-utils.o): Update dependencies.
3748 * values.c (using_struct_return): Move code calling
3749 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3750 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3751 to legacy_return_value, simplify.
3752 * infcmd.c (print_return_value): Move code calling
3753 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3754 to legacy_return_value, simplify.
3755 * infcall.c (call_function_by_hand): Move code calling
3756 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3757 * arch-utils.c: Update copyright. Include "gdbcore.h".
3758 (legacy_return_value): New function.
3759 * arch-utils.h: Update copyright.
3760 (legacy_return_value): Declare.
3761
b5622e8d
AC
37622004-06-20 Andrew Cagney <cagney@gnu.org>
3763
3764 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3765 * gdbarch.h, gdbarch.c: Re-generate.
3766 * values.c (using_struct_return): Update call.
3767 * mcore-tdep.c: Update comment.
3768 * infcall.c (call_function_by_hand): Update comment.
3769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3770 * arch-utils.h (always_use_struct_convention): Update.
3771 * v850-tdep.c (v850_gdbarch_init): Update.
3772 * sh64-tdep.c (sh64_gdbarch_init): Update.
3773 * sh-tdep.c (sh_gdbarch_init): Update.
3774 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3775 * mips-tdep.c (mips_gdbarch_init): Update.
3776 * mcore-tdep.c (mcore_gdbarch_init): Update.
3777 * m32r-tdep.c (m32r_gdbarch_init): Update.
3778 * ia64-tdep.c (ia64_gdbarch_init): Update.
3779 * h8300-tdep.c (h8300_gdbarch_init): Update.
3780 * frv-tdep.c (frv_gdbarch_init): Update.
3781 * cris-tdep.c (cris_gdbarch_init): Update.
3782 * arm-tdep.c (arm_gdbarch_init): Update.
3783 * alpha-tdep.c (alpha_gdbarch_init): Update.
3784
5191de37
MC
37852004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3786
3787 * PROBLEMS: Add more specific information, and a work-around,
3788 for PR gdb/1458.
3789
782263ab
AC
37902004-06-18 Andrew Cagney <cagney@gnu.org>
3791
3792 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3793 * gdbarch.h, gdbarch.c: Re-generate.
3794 * ada-lang.c (ada_finish_decode_line_1): Update.
3795 * infrun.c (handle_inferior_event): Update.
3796 * infcall.c (find_function_addr): Update.
3797 * linespec.c (minsym_found): Update.
3798 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3799 Update.
3800 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3801 * cli/cli-cmds.c (disassemble_command): Update.
3802 * vax-tdep.c (vax_gdbarch_init): Update.
3803
2f305df1
MK
38042004-06-18 Mark Kettenis <kettenis@gnu.org>
3805
3806 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3807
e5fe55f7
AC
38082004-06-17 Andrew Cagney <cagney@gnu.org>
3809
3810 GDB 6.1.1 released from the GDB 6.1 branch.
3811 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3812 * PROBLEMS: Ditto.
3813
473b7be6
DJ
38142004-06-16 Daniel Jacobowitz <dan@debian.org>
3815
3816 PR gdb/1658
3817 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3818 operation as a uleb128. Found by Michael Coulter.
3819
96d887e8
PH
38202004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3821
3822 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3823 make it non-static.
3824 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3825 to ada-lang.h; this is needed to be able to implement the kill command
3826 in multi-task mode.
3827 (task_ptid): Ditto.
3828 (task_entry): Ditto.
3829 (task_list): Ditto.
3830 (ada_build_task_list): Ditto.
3831
3832 * ada-lang.c: Conditionalize routines and data structures related
3833 to breakpoints, exceptions, completion, and symbol caching on
3834 GNAT_GDB, since these are not yet used in the submitted public sources.
3835 (ada_main_name): Editorial: Move definition out of exception-related
3836 code.
3837
31eef181
AC
38382004-06-15 Andrew Cagney <cagney@gnu.org>
3839
3840 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3841 deprecated_pc_in_call_dummy.
3842
2c500098
AM
38432004-06-15 Alan Modra <amodra@bigpond.net.au>
3844
3845 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3846 bfd_get_section_size_before_reloc or _raw_size.
3847 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3848 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3849 (dwarf2_read_section): Likewise.
3850 * elfread.c (elf_locate_sections): Likewise.
3851 * gcore.c (derive_heap_segment): Likewise.
3852 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3853 * remote-e7000.c (e7000_load): Likewise.
3854 * remote-m32r-sdi.c (m32r_load): Likewise.
3855 * remote-mips.c (mips_load_srec): Likewise.
3856 (pmon_load_fast): Likewise.
3857 * remote.c (compare_sections_command): Likewise.
3858 * symfile.c (add_section_size_callback): Likewise.
3859 (load_section_callback): Likewise.
3860 (pc_in_unmapped_range): Likewise.
3861 (pc_in_mapped_range): Likewise.
3862 (sections_overlap): Likewise.
3863 (list_overlays_command): Likewise.
3864 (simple_overlay_update_1): Likewise.
3865 (simple_overlay_update): Likewise.
3866 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3867 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3868
90f943f1
RC
38692004-06-14 Randolph Chung <tausq@debian.org>
3870
3871 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3872 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3873 static.
3874 (hppa_hpux_inferior_created): New function.
3875 (hppa_hpux_init_abi): Register observer.
3876 * symfile.c (hp_cxx_exception_support_initialized)
3877 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3878 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3879
700c15aa
RC
38802004-06-14 Randolph Chung <tausq@debian.org>
3881
3973a7d3
AC
3882 * MAINTAINERS (Write After Approval): Alphabetize my entry
3883 correctly.
700c15aa 3884
cea4838c
AC
38852004-06-14 Andrew Cagney <cagney@gnu.org>
3886
3887 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3888 testsuite maintainer.
3889
97092415
AC
38902004-06-13 Andrew Cagney <cagney@gnu.org>
3891
e8c3165b
AC
3892 * infcmd.c (print_return_value): Fix logic, allow
3893 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3894
bceabdd8
AC
3895 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3896 defining any macros.
3897 * gdbarch.h: Re-generate.
3898
57010b1c
AC
3899 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3900 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3901 * gdbarch.h: Re-generate.
3902
bc87dfa0
AC
3903 * values.c (generic_use_struct_convention): Don't check gcc_p.
3904
15ac804d
AC
3905 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3906 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3907 * gdbarch.h, gdbarch.c: Regenerate.
3908 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3909 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3911 deprecated_max_register_raw_size and
3912 deprecated_max_register_virtual_size.
3913 * v850-tdep.c (v850_gdbarch_init): Ditto.
3914 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3915 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3916 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3917 * cris-tdep.c (cris_gdbarch_init): Ditto.
3918
97092415
AC
3919 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3920 * gdbarch.h, gdbarch.c: Re-generate.
3921 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3922 (m68hc11_use_struct_convention): Delete function.
3923 (m68hc11_extract_struct_value_address): Delete function.
3924 (m68hc11_return_value): New function.
3925 (m68hc11_gdbarch_init): Instead of store_return_value,
3926 extract_return_value, return_value_on_stack,
3927 deprecated_extract_struct_value_address and use_struct_convention,
3928 set return_value.
3929 * values.c (using_struct_return): Do not call
3930 RETURN_VALUE_ON_STACK.
3931 * arch-utils.h (generic_return_value_on_stack_not): Delete
3932 declaration.
3933 * arch-utils.c (generic_return_value_on_stack_not): Delete
3934 function.
3935
44e5158b
AC
39362004-06-12 Andrew Cagney <cagney@gnu.org>
3937
3938 * values.c (register_value_being_returned): Delete function.
3939 * infcmd.c (legacy_return_value): Delete function.
3940 * infcall.c (call_function_by_hand): Inline
3941 "register_value_being_returned", simplify.
3942 * values.c (using_struct_return): Update comment, refer to
3943 print_return_value instead of register_value_being_returned.
3944 * infcmd.c (print_return_value): Inline calls to
3945 register_value_being_returned and legacy_return_value. Simplify.
3946
b887c273
RC
39472004-06-11 Randolph Chung <tausq@debian.org>
3948
3949 * somread.c (som_symtab_read): Exclude gcc local symbols.
3950
1b2bfbb9
RC
39512004-06-11 Randolph Chung <tausq@debian.org>
3952
3973a7d3
AC
3953 * infrun.c (handle_inferior_event): Handle the case when a
3954 trampoline ends up in the runtime resolver, and if the trampoline
3955 has no name. Rearrange the code so that all the trampoline
3956 processing happens before other step-out-of-range handling.
1b2bfbb9 3957
a9d61c86
MH
39582004-06-11 Martin Hunt <hunt@redhat.com>
3959
3960 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3961 has no fpu.
3962
2c87cf5a
AC
39632004-06-10 Andrew Cagney <cagney@gnu.org>
3964
3965 * blockframe.c (legacy_inside_entry_func): Delete.
3966 (legacy_frame_chain_valid): Inline call to
3967 legacy_inside_entry_func, simplify.
3968
0b67b468 39692004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3970
3971 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3972 * dwarf2read.c (partial_die_info): Add dirname field.
3973 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3974 (read_partial_die): Save away DW_AT_comp_dir.
3975 * defs.h (symtab_to_filename): Removed.
3976 * source.c (find_and_open_source): Added.
57c22c6c 3977 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3978 (symtab_to_filename): Removed.
3979 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3980 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3981 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3982 symtab_to_filename.
3983 * symtab.h (partial_symtab): Add dirname field.
3984 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3985 (mi_cmd_file_list_exec_source_file): Call new function
3986 symtab_to_fullname to find fullname.
57c22c6c 3987 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3988 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3989 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3990
9a1dd1ad
AC
39912004-06-10 Andrew Cagney <cagney@gnu.org>
3992
239ae8c7
AC
3993 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3994 to generic_use_struct_convention, the default value.
3995
fc720350
AC
3996 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3997 of abort.
3998
9a1dd1ad
AC
3999 * ns32k-tdep.c (ns32k_push_arguments): New function.
4000 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4001 * infcall.c (call_function_by_hand): Call error instead of
4002 legacy_push_arguments.
4003 * value.h (legacy_push_arguments): Delete declaration.
4004 * valops.c (legacy_push_arguments): Delete function.
4005 (value_push): Delete function.
4006
fea25152
BF
40072004-06-10 Brian Ford <ford@vss.fsi.com>
4008
4009 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4010 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4011 info.
4012 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4013
30a4a8e0
AC
40142004-06-10 Andrew Cagney <cagney@gnu.org>
4015
4016 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4017 * gdbarch.h, gdbarch.c: Re-generate.
4018 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4019 parameters.
4020 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4021 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4022 deprecated_pc_in_call_dummy instead of
4023 DEPRECATED_PC_IN_CALL_DUMMY.
4024 (arm_skip_prologue): Ditto.
4025 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4026 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4027 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4028 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4029 Ditto.
4030 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4031 (sh64_init_extra_frame_info, sh64_get_saved_register)
4032 (sh64_pop_frame): Ditto.
4033 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4034 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4035 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4036 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4037 (h8300_pop_frame): Ditto.
4038 * blockframe.c (legacy_inside_entry_func)
4039 (legacy_frame_chain_valid): Ditto.
4040 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4041 to deprecated_pc_in_call_dummy.
4042
81cfbe54
AC
40432004-06-09 Andrew Cagney <cagney@gnu.org>
4044
a1f4a1b6
AC
4045 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4046 provide a default value.
4047 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4048 * gdbarch.h, gdbarch.c: Re-generate.
4049 * arch-utils.c (generic_convert_register_p): Rename
4050 legacy_convert_register_p
4051 (legacy_register_to_value, legacy_value_to_register): Delete
4052 functions.
4053 * arch-utils.h (generic_convert_register_p): Rename
4054 legacy_convert_register_p.
4055 (legacy_register_to_value, legacy_value_to_register): Delete
4056 declarations.
4057
9730f241
AC
4058 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4059 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4060 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4061 * gdbarch.h, gdbarch.c: Re-generate.
4062 * infcmd.c (default_print_registers_info): Simplify.
4063 * findvar.c (value_of_register): Simplify.
4064 * mi/mi-main.c (get_register): Simplify.
4065 * arch-utils.c (legacy_convert_register_p): Always return 0.
4066 (legacy_register_to_value, legacy_value_to_register): Always call
4067 internal_error.
4068
8a1bf479
AC
4069 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4070 #ifdef CLEAR_INSN_CACHE code.
4071 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4072 Delete #ifdef CLEAR_DEFERRED_STORES code.
4073
4b38d6f1
AC
4074 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4075
2d62ecc7
AC
4076 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4077 copyright.
4078 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4079
be4f7469
AC
4080 * config/mips/mipsv4.mh: Delete file.
4081
81cfbe54
AC
4082 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4083 unreferenced macro.
4084 (hpread_adjust_stack_address): Delete declaration.
4085
d966f0cb
AC
40862004-06-08 Andrew Cagney <cagney@gnu.org>
4087
4088 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4089 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4090 PTRACE_ATTACH / PTRACE_DETACH available call error.
4091 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4092 * infttrace.c (update_thread_state_after_attach, attach, detach):
4093 Remove #ifdef wrappers.
4094 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4095 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4096 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4097 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4098 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4099 * config/nm-linux.h (ATTACH_DETACH): Delete.
4100 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4101 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4102 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4103 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4104 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4105
d91670b9
CV
41062004-06-08 Corinna Vinschen <vinschen@redhat.com>
4107
4108 * configure.in: Set $configdir to the right OS specific value.
4109 Use value when setting $tcldir and $tkdir.
4110 * configure: Regenerate.
4111
28ba0b33
PB
41122004-06-06 Paul Brook <paul@codesourcery.com>
4113
4114 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4115 records.
4116
f26caa11
PH
41172004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4118
4119 * ada-lang.c (lookup_symbol_in_language): New function to allow
4120 re-use of another language's symbol lookup code. (Placed here
4121 temporarily while Ada support is being integrated into the public
4122 tree).
4123 (restore_language): New auxiliary function for
4124 lookup_symbol_in_language.
4125 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4126 temporarily while Ada support is being integrated into the public
4127 tree).
4128
d560a54b
AO
41292004-06-08 Alexandre Oliva <aoliva@redhat.com>
4130
e75d110c
AO
4131 * Makefile.in (check//%): New.
4132
d560a54b
AO
4133 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4134 (mn10300_store_return_value): Rewrite.
4135 (mn10300_type_align): New.
4136 (mn10300_use_struct_convention): Rewrite.
4137 (mn10300_return_value): New, using all of the above.
4138 (mn10300_pop_frame_regular): Add saved_regs_size.
4139 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4140
a72fbdb7
AO
4141 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4142 regs if PC is on movm.
4143
01904826
JB
41442004-06-07 Jim Blandy <jimb@redhat.com>
4145
4146 Add native Linux support for the PowerPC E500.
4147 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4148 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4149 all architectures except the E500.
4150 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4151 #definitions.
4152 (struct gdb_evrregset_t): New type.
4153 (have_ptrace_getsetevrregs): New variable.
4154 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4155 fetch_spe_registers): New functions.
4156 (fetch_register): Call fetch_spe_register as appropriate.
4157 Assert that we're only passed raw register numbers.
4158 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4159 Don't fetch gprs if they're pseudoregisters.
4160 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4161 store_spe_registers): New functions.
4162 (store_register): Call store_spe_register as appropriate.
4163 Assert that we're only passed raw register numbers.
4164 (store_ppc_registers): Call store_spe_registers as appropriate.
4165 Don't store gprs if they're pseudoregisters.
4166
f90ef764
JJ
41672004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4168
4169 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4170 struct if one exists, even if we are dealing with a zombie thread.
4171
45b75230
AC
41722004-06-07 Andrew Cagney <cagney@gnu.org>
4173
4174 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4175 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4176 Rename PC_REQUIRES_RUN_BEFORE_USE.
4177 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4178 #ifdef.
4179
1658da49
RC
41802004-06-07 Randolph Chung <tausq@debian.org>
4181
4182 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4183 unwinding after sp has been saved to the stack but before the end
4184 of the prologue, and after the fp has been modified but before it has
4185 been saved to the stack.
4186 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4187 Remove superfluous definitions.
4188 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4189
9a727a3c
RC
41902004-06-07 Guy Martin <gmsoft@gentoo.org>
4191
4192 Committed by Randolph Chung.
4193 * hppa-linux-nat.c: Include the correct version of the header file
4194 depending on the kernel version.
4195
9e500012
RC
41962004-06-06 Randolph Chung <tausq@debian.org>
4197
4198 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4199 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4200
3388d7ff
RC
42012004-06-06 Randolph Chung <tausq@debian.org>
4202
4203 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4204 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4205 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4206 * hppa-tdep.c (hppa_symbol_address): New function definition.
4207 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4208
d49771ef
RC
42092004-06-06 Randolph Chung <tausq@debian.org>
4210
4211 * hppa-tdep.h (struct value): Forward declaration.
4212 (gdbarch_tdep): Define tdep find_global_pointer method.
4213 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4214 associated with the function we are trying to call, and write it
4215 to the gp register.
4216 (hppa32_convert_from_funct_ptr_addr): New function.
4217 (hppa_find_global_pointer): New function.
4218 (hppa_gdbarch_init): Set default find_global_pointer method; set
4219 convert_from_func_ptr_addr method.
4220 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4221 (hppa_linux_init_abi): Set find_global_pointer method.
4222 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4223
7d9b040b
RC
42242004-06-06 Randolph Chung <tausq@debian.org>
4225
4226 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4227 to struct value *function.
4228 * gdbarch.c: Regenerate.
4229 * gdbarch.h: Likewise.
4230 * infcall.c (call_function_by_hand): Pass entire function value
4231 to push_dummy_call.
4232
4233 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4234 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4235 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4236 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4237 * arm-tdep.c (arm_push_dummy_call): Likewise.
4238 * avr-tdep.c (avr_push_dummy_call): Likewise.
4239 * cris-tdep.c (cris_push_dummy_call): Likewise.
4240 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4241 * frv-tdep.c (frv_push_dummy_call): Likewise.
4242 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4243 * hppa-tdep.c (hppa32_push_dummy_call)
4244 (hppa64_push_dummy_call): Likewise.
4245 * i386-tdep.c (i386_push_dummy_call): Likewise.
4246 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4247 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4248 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4249 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4250 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4251 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4252 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4253 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4254 (ppc64_sysv_abi_push_dummy_call): Likewise.
4255 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4256 (ppc64_sysv_abi_push_dummy_call): Likewise.
4257 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4258 * s390-tdep.c (s390_push_dummy_call): Likewise.
4259 * sh-tdep.c (sh_push_dummy_call_fpu)
4260 (sh_push_dummy_call_nofpu): Likewise.
4261 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4262 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4263 * vax-tdep.c (vax_push_dummy_call): Likewise.
4264
4a19ea35
JB
42652004-06-04 Jim Blandy <jimb@redhat.com>
4266
8327ccee
JB
4267 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4268 gdbarch argument to register_size.
4269
a3c001ce
JB
4270 * rs6000-tdep.c (rs6000_store_return_value): Use
4271 regcache_cooked_write_part instead of
4272 deprecated_write_register_bytes.
4273 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4274 not gdbarch_deprecated_store_return_value.
4275
4a19ea35
JB
4276 * ppc-linux-nat.c (store_register, fetch_register): Remove
4277 incorrect assertions. Simplify and generalize handling of
4278 transfers whose sizes are not multiples of, or less than, sizeof
4279 (PTRACE_XFER_TYPE).
4280
b9b5d7ea
JJ
42812004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4282
4283 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4284 as a new thread event.
720c7d64 4285 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4286 zombie, return TD_THR_ZOMBIE.
720c7d64 4287 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4288 TD_THR_ZOMBIE, check if the thread is still on the thread list
4289 and return a -1 ptid if not found.
4290 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4291 change the status to TARGET_WAITKIND_SPURIOUS.
4292
c8a3b559
CV
42932004-06-03 Corinna Vinschen <vinschen@redhat.com>
4294
4295 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4296 double values in little endian mode.
4297
20605361
AC
42982004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4299
4300 Committed by Andrew Cagney.
4301 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4302 after last enum constant to avoid error from IBM C
4303 compiler.
4304
bc97b3ba
JB
43052004-06-02 Jim Blandy <jimb@redhat.com>
4306
4307 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4308 to 'message', and make it local to the lone block that uses it.
4309
1da28ab0
JB
4310 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4311
4c4b4cd2
PH
43122004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4313
8a2225b2
PH
4314 * ada-exp.y: Update copyright notice.
4315 Include block.h.
4316
4317 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4318 SPECIAL_VARIABLE and unify the treatment of these cases.
4319
4320 (write_attribute_call0): Remove.
4321 (write_attribute_call1): Remove.
4322 (write_attribute_calln): Remove.
4323 (save_qualifier): Add missing semicolon.
4324
4325 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4326 temporarily disabled to allow compilation with FSF head version.
4327
4328 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4329 use individual operators (OP_*) for all attributes.
4330 (exp syntax): Use write_int.
4331 Handle STRING literals with OP_STRING.
4332 (variable syntax): Add limit parameter to calls to
4333 write_object_renaming.
4334
4335 (temp_parse_space): New definition to hold entities that need
4336 only live until the next call to ada_parse.
4337 (string_to_operator): Rename fields of ada_opname_table entries.
4338
4339 (write_var_from_sym): Record block.
4340 (write_var_from_name): Minor reformatting.
4341 Make sure saved name is properly encoded in the case of multiple
4342 matches, and set its language to Ada.
4343 Update comment.
4344 Modify to indicate unresolved name as symbol in the UNRESOLVED
4345 namespace, allocated in temp_parse_space.
4346 (write_int): New function.
4347
4348 (write_object_renaming): Add max_depth parameter to limit
4349 chains of object renamings.
4350 Handle case where root of renaming expression is itself a renaming.
4351 Use temp_parse_space for temporary name buffer.
4352 Handle renamings to dereferenced pointers (___XEXA suffices).
4353
4354 (ada_parse, yyerror, string_to_operator,
4355 write_var_from_sym, write_var_from_name, write_attribute_call0,
4356 write_attribute_call1, write_attribute_calln,
4357 write_object_renaming): Protoize.
4358
4359 (_initialize_ada_exp): New function.
4360
4361 * ada-lang.c: Update copyright notice.
4362 General terminology change to conform to GNAT compiler usage:
4363 mangle => encode, demangle => decode
4364 Include gdb_obstack.h.
4365 Include gdb_regex.h
4366 Include frame.h
4367 Include hashtab.h
4368 Include completer.h
4369 Include gdb_stat.h
4370 Include block.h
4371 Include infcall.h
4372
4373 (ADA_RETAIN_DOTS): Make sure this is defined.
4374 (TRUNCATION_TOWARDS_ZERO): Define.
4375 (struct string_vector): Define.
4376 (unresolved_names): Remove definition.
4377 (xnew_string_vector): New function.
4378 (string_vector_append): New function.
4379 (extract_string): Make static.
4380 (ada_unqualified_name): New function.
4381 (add_angle_brackets): New function.
4382 (function_name_from_pc): New function.
4383 (place_on_stack): Rename to ensure_lval.
4384
4385 (ensure_lval): Renamed from place_on_stack.
4386 Make identity on lvals.
4387 Update comment.
4388 (is_nonfunction): New interface.
4389 Only symbols in LOC_CONST class can be enumerals.
4390 (fill_in_ada_prototype): Remove; now independent of language.
4391 (add_defn_to_vec): Add obstack and symtab arguments.
4392 Use obstack to hold collected definitions.
4393 (num_defns_collected): New function.
4394 (defns_collected): New function.
4395 (ada_resolve_subexp): Rename to resolve_subexp.
4396 (resolve_subexp): Renamed from ada_resolve_subexp.
4397 (ada_op_name): Return non-const result.
4398 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4399 other purposes.
4400
4401 (to_fixed_array_type): Add declaration.
4402 (coerce_unspec_val_to_type): Remove offset parameter.
4403 (find_sal_from_funcs_and_line): New interface.
4404 (find_line_in_linetable): Ditto.
4405
4406 (all_sals_for_line): Rename to ada_sals_for_line and make
4407 global.
4408 Add new parameter. When set, do not ask the user to choose the
4409 instance, but use the first one found instead.
4410 Use given line number in returned sals.
4411 Fix comment.
4412 Skip the prologue if funfirstline is set.
4413 Correct for memory leak when 0 lines found.
4414
4415 (value_pos_atr): Use pos_atr.
4416 (pos_atr): New function.
4417 (standard_lookup): Add block parameter.
4418
4419 (makeTimeStart): Remove declaration and uses.
4420 (makeTimeStop): Remove declaration and uses.
4421
4422 (ada_completer_word_break_characters): Allow for VMS.
4423 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4424 (raise_sym_name): New constant.
4425 (raise_unhandled_sym_name): New constant.
4426 (raise_assert_sym_name): New constant.
4427 (process_raise_exception_name): New constant.
4428 (longest_exception_template): New constant.
4429 (warning_limit): New variable to limit warnings during expression
4430 evaluation.
4431 (warnings_issued): New variable to keep track of warnings issued.
4432 (known_runtime_file_name_patterns): New constant.
4433 (known_auxiliary_function_name_patterns): New constant.
4434 (symbol_list_obstack): New variable.
4435
4436 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4437 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4438 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4439 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4440 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4441 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4442 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4443 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4444 and strcmp.
4445
4446 (ada_get_field_index): New function.
4447 (lim_warning): New function.
4448 (ada_translate_error_message): New function.
4449 (MAX_OF_SIZE): New function.
4450 (MIN_OF_SIZE): New function.
4451 (UMAX_OF_SIZE): New function.
4452 (UMIN_OF_SIZE): New function.
4453 (discrete_type_high_bound): New function.
4454 (discrete_type_low_bound): New function.
4455 (base_type): New function.
4456 (do_command): Remove.
4457
4458 (ada_update_initial_language): Use language_ada, not language_unknown.
4459 (ada_encode): Renamed from ada_mangle.
4460 Obey ADA_RETAIN_DOTS.
4461 (ada_decode): Renamed from ada_demangle.
4462 Update coding conventions.
4463 (decoded_names_store): New hash table.
4464 (ada_decode_symbol): New function.
4465 (ada_la_decode): New function.
4466
4467 (modify_general_field): Correct computations of offset and bit
4468 position.
4469 (desc_base_type): Handle ref types, too.
4470 (ada_is_direct_array_type): New function.
4471
4472 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4473 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4474 (ada_is_bogus_array_descriptor,ada_type_of_array,
4475 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4476 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4477 ada_is_array_descriptor_type.
4478
4479 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4480 (ada_is_packed_array_type): Handle pointers or
4481 references to packed arrays as well.
4482 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4483 (decode_packed_array_type): Search for the packed array type
4484 symbol in the currently selected block and associated
4485 superblocks too.
4486 Use lookup_symbol again.
4487
4488 (decode_packed_array): Handle pointers and references.
4489 Update call to coerce_unspec_val_to_type.
4490 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4491 (ada_value_primitive_packed_val): Improve comment.
4492
4493 (ada_index_type): Substitute int type for "undefined".
4494 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4495 ada_array_langth, ada_is_string_type): Use renamed
4496 ada_is_simple_array_type.
4497 (empty_array): New function.
4498
4499 (ada_resolve): Rename to resolve.
4500 (resolve): Make static.
4501 Call renamed resolve_subexp.
4502 Update comment.
4503 (ada_resolve_subexp): Rename to resolve_subexp.
4504 (resolve_subexp): Update comment.
4505 Decomment disabled code.
4506 Add LOC_COMPUTED* cases.
4507 Modify to use temporary struct symbols (marked as being in
4508 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4509 OP_UNRESOLVED_VALUE.
4510 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4511 Add OP_STRING case.
4512 Remove OP_ARRAY.
4513 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4514 Use new ada_lookup_symbol_list interface.
4515 Use new ada_resolve_function interface.
4516 Remove OP_TYPE case.
4517
4518 (ada_args_match): Idiot proof against null actuals.
4519 Use intermediate variables to clarify.
4520 (ada_resolve_function): Update comment and interface.
4521 (mangled_ordered_before): Rename to encoded_ordered_before and
4522 update comment.
4523 (sort_choices): Update comment and interface.
4524 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4525 (user_select_syms): New interface.
4526 Use new sort_choices interface.
4527 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4528 (possible_user_operator_p): Idiot-proof against null values.
4529 (ada_simple_renamed_entity): Don't make cleanup; rely on
4530 caller to free result string.
4531 Remove const from return type.
4532 (make_array_descriptor): Rename uses of place_on_stack to
4533 ensure_lval.
4534 Make sure that arrays are on stack.
4535
4536 (HASH_SIZE): Define.
4537 (struct cache_entry): Define.
4538 (cache_space): Define.
4539 (cache): Define.
4540 (clear_ada_sym_cache): New function.
4541 (find_entry): New function.
4542 (lookup_cached_symbol): New function.
4543 (defn_vector_size): Define.
4544 (cache_symbol): New function.
4545 (defn_symbols): Remove.
4546
4547 (standard_lookup): Use lookup_symbol_in_language to get effect of
4548 C lookup.
4549 Cache results.
4550
4551 (symbol_completion_match): New function.
4552 (symbol_completion_add): New function.
4553 (ada_make_symbol_completion_list): New function.
4554
4555 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4556 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4557 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4558 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4559
4560 (ada_lookup_simple_minsym): New function.
4561 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4562
4563 (add_symbols_from_enclosing_procs): New interface.
4564 Conditionalize more helpfully.
4565 Don't bother if program isn't running.
4566 Use new interface to get_frame_block.
4567 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4568
4569 (remove_extra_symbols): New interface.
4570 (xget_renaming_scope): New function.
4571 (is_package_name): New function.
4572 (renaming_is_visible): New function.
4573 (remove_out_of_scope_renamings): New function.
4574
4575 (ada_lookup_symbol_list): New interface.
4576 Properly reinitialize the symbol list obstack.
4577 Don't call add_symbols_from_enclosing_procs if we start from a
4578 static or global block.
4579 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4580 add_symbols_from_enclosing_procs.
4581 Add symtab data to cached entries.
4582 Handle symbols prefixed with
4583 "standard__" specially; strip prefix and don't look in local symbols.
4584 Do not include out of scope renaming symbols in list of
4585 symbols returned.
4586 Add const to block parameter.
4587 Move check for non-local, non-global symbols earlier.
4588 Remove timing stuff.
4589 (ada_lookup_symbol): New interface.
4590 Find symtab as well.
4591 (ada_lookup_symbol_nonlocal): New function.
4592
4593 (is_name_suffix): Enhance suffix detection to recognize
4594 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4595 (is_dot_digits_suffix): New function.
4596 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4597
4598 (ada_add_block_symbols): New interface. Use obstack to return results
4599 in a vector of struct ada_symbol_infos. Add symtab argument.
4600 Use new interface to add_defn_to_vec.
4601 Remove calls to fill_in_ada_prototype.
4602 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4603
4604 (ada_finish_decode_line_1): Add const qualification to local to fix
4605 warning.
4606 Start looking in static block for functions to avoid attempts
4607 to search frame chain for up-level variables.
4608 Adapt to new ada_sals_for_line interface.
4609 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4610 Handle quoting of the function name inside the spec string.
4611 Skip prologue when funfirstline is set and update the
4612 function documentation to that effect.
4613
4614 (debug_print_lines, debug_print_block, debug_print_blocks,
4615 debug_print_symtab): Remove.
4616
4617 (ada_main_name): New function.
4618 (ada_exception_breakpoint_type): New function.
4619 (is_known_support_routine): New function.
4620 (ada_find_printable_frame): Renamed from find_printable_frame and made
4621 global.
4622 Remove level parameter.
4623 Use new interface to select_frame.
4624
4625 (begin_command): Remove.
4626 (ada_adjust_exception_stop): New function.
4627 (ada_print_exception_stop): New function.
4628 (exception_name_from_cond): New function.
4629 (ada_report_exception_break): Replace disabled code with
4630 conditionalization on GNAT_GDB.
4631 Get the exception name from the condition string.
4632 Remove and move functionality into new functions
4633 ada_print_exception_breakpoint_task and
4634 ada_print_exception_breakpoint_nontask.
4635 (error_breakpoint_runtime_sym_not_found): New function.
4636 (is_runtime_sym_defined): New function.
4637 (ada_breakpoint_rewrite): Uncomment suppressed code.
4638 Use symbolic error-message and runtime-symbol names.
4639 Surround runtime symbol names in quotes.
4640 Allow non-specific breakpoints on exceptions and assertions before
4641 program starts.
4642
4643 (ada_is_tagged_type): Add parameter.
4644 (ada_is_tag_type): New function.
4645 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4646 (ada_variant_discrim_type): Ditto.
4647 (value_tag_from_contents_and_address): New function.
4648 (type_from_tag): New function.
4649 (struct tag_args): New structure used to communicate with
4650 ada_tag_name_1.
4651 (ada_tag_name_1): New function.
4652 (ada_tag_name): New function.
4653
4654 (ada_scan_number): Update comment.
4655 (find_struct_field): New function.
4656 (ada_search_struct_field): Make static.
4657 (ada_value_struct_elt): New version that returns references when
4658 given pointers or references to structs.
4659 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4660 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4661 interface.
4662 (ada_value_ind): Use new ada_to_fixed_value interface.
4663 (ada_coerce_ref): Ditto.
4664 (field_offset): Remove.
4665
4666 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4667 (ada_find_renaming_symbol): New function.
4668 (ada_prefer_type): Prefer named types over unnamed ones.
4669 (variant_field_index): New function.
4670 (contains_variant_part): Removed: subsumed by variant_field_index.
4671 (ada_template_to_fixed_record_type): New function, mostly from
4672 template_to_fixed_record_type.
4673 (template_to_fixed_record_type):
4674 Do not scan the type fields beyond the last one; prevents a
4675 potential SEGV.
4676 Handle case where variant field is listed BEFORE discriminant it
4677 depends on.
4678 Fix calculation of record length when bit length is
4679 not evenly divisible by char length.
4680 Move code to ada_template_to_fixed_record_type and call it.
4681
4682 (template_to_static_fixed_type): Revise comment.
4683 Modify to work on ordinary record types as well as templates,
4684 so as to handle fields that use ___XVE or ___XVU encodings.
4685 (to_record_with_fixed_variant_part): Fill out comment.
4686 Initialize C++ stuff in right type.
4687 Allow case where DVAL is null.
4688 Handle case where variant field is not last.
4689 Fix typo concerning record length.
4690 (to_fixed_record_type): Decomment disabled code.
4691 (to_fixed_record_type): Use variant_field_index instead of
4692 contains_variant_part.
4693 (to_fixed_variant_branch_type): Ditto.
4694 (to_fixed_array_type): Decomment disabled code.
4695 (ada_to_fixed_type): Convert tagged types to the specific type.
4696 Deactivate the size-check for array types in order to avoid
4697 some false size alarms.
4698 (to_static_fixed_type): Decomment disabled code.
4699 Modify to call template_to_static_fixed_type
4700 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4701 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4702 Remove valaddr argument, as it is never really used.
4703 (ada_to_fixed_value): Change interface to act on single struct value*
4704 operand.
4705 (adjust_pc_past_prologue): New function.
4706 (ada_attribute_name): Modify to take enum exp_opcode argument.
4707
4708 (ada_enum_name): Recognize new homonym-distinguishing convention.
4709 Adjust local variable's type to remove compiler warning.
4710 Fix a small problem in the part that unqualifies the enumeration name.
4711 (ada_value_binop): New function.
4712 (ada_value_equal): New function.
4713
4714 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4715 Don't give error message when not doing normal evaluation
4716 and a tagged type doesn't seem to contain a structure member.
4717 Give error message for packed arrays.
4718 For indexing arrays, handle pointers to packed arrays correctly.
4719 Handle case of 'first and 'last attributes of bare integral type
4720 without encoded subtype info.
4721 Remove some unnecessary casts.
4722 Fix uninitialized value of type in computing 'first, 'last, or 'length
4723 of array object.
4724 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4725 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4726 calls.
4727 Attributes are now exp_opcode values.
4728 Correct treatment of 'modulus.
4729 Better error message for taking 'length of wrong kind of type;
4730 improve comment.
4731 Change EVAL_NORMAL to noside for consistency.
4732 Use ada_value_binop for DIV, MOD, REM.
4733 Make special case out of array of length 0, since an argument
4734 of 0 upsets some platforms' malloc.
4735 Use OP_STRING instead of OP_ARRAY.
4736 For slice, add check that we have an array type before extracting
4737 a slice out of it. Avoids a SEGV.
4738 When evaluating an array slice, if the array type is a reference to
4739 an aligner type, then replace the aligner type by the actual type.
4740 Decomment disabled code.
4741 Remove some dead code.
4742 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4743 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4744 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4745 and UNOP_MBR to UNOP_IN_RANGE.
4746 If an array type has a parallel ___XVE type, then use it.
4747 Turn arrays into pointers for lvalue arrays.
4748 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4749 bounds error and handle 0-length slices.
4750 Use lim_warning.
4751 When selecting fields, apply ada_to_fixed_value (because the fields
4752 might have ___XVU or ___XVE encodings even if not dynamic.)
4753 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4754 (ada_is_system_address_type): New function.
4755
4756 (get_var_value): Use new interface to ada_lookup_symbol_list.
4757 (get_int_var_value): New interface.
4758 (to_fixed_range_type): Allow unknown bound, with warning.
4759 (ada_is_modular_type): Decomment disabled code.
4760 (ADA_OPERATORS): New definition.
4761 (ada_operator_length): New function.
4762 (ada_expr_op_name): New function.
4763 (ada_forward_operator_length): New function.
4764 (ada_dump_subexp_body): New function.
4765 (ada_print_subexp): New function.
4766 (ada_exp_descriptor): New constant.
4767 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4768 (ada_language_defn): Add ada_exp_descriptor entry.
4769 Change ada_parse => parse.
4770 Add post-parser entry.
4771 Use ada-specific non-local symbol lookup.
4772 Don't use C-style arrays.
4773 String lower-bound is 1.
4774 Decomment disabled code.
4775 (parse): New function.
4776 New fields ada_translate_error_message, ada_lookup_symbol,
4777 ada_lookup_minimal_symbol.
4778
4779 * ada-lang.h: Update copyright dates.
4780 Replace the mangle/demangle terminology throughout by the
4781 more appropriate encode/decode one.
4782 Include breakpoint.h.
4783 Forward declare struct partial_symbol, struct block.
4784 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4785 (EXTRACT_ADDRESS): Remove.
4786 (EXTRACT_INT): Remove.
4787 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4788 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4789 (MAX_RENAMING_CHAIN_LENGTH): Define.
4790 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4791
4792 (enum task_states): Remove.
4793 ada_task_states: Remove.
4794 (fat_string): Remove.
4795 (struct entry_call): Remove.
4796 (struct task_fields): Remove.
4797 (struct task_entry): Remove.
4798
4799 (struct ada_symbol_info): Define.
4800 (enum ada_attribute): Remove.
4801 (enum ada_operator): Define.
4802
4803 (ada_get_field_index): Declare.
4804 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4805 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4806 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4807 (ada_lookup_symbol_list): New interface.
4808 (ada_decode_symbol): Declare.
4809 (ada_decode): Declare.
4810 (ada_lookup_symbol): New interface.
4811 (ada_update_initial_language): Declare.
4812 (ada_lookup_simple_minsym): Declare.
4813 (user_select_syms): New interface.
4814 (ada_sals_for_line): Declare.
4815 (ada_is_tagged_type): New interface.
4816 (ada_tag_name): Declare.
4817 (ada_lookup_struct_elt_type): Remove declaration.
4818 (ada_search_struct_field): Remove declaration.
4819 (ada_attribute_name): New interface.
4820 (ada_is_system_address_type): Declare.
4821 (ada_to_fixed_value): Remove declaration.
4822 (ada_template_to_fixed_record_type_1): Declare.
4823 (get_int_var_value): New interface.
4824 (ada_find_any_symbol): Declare.
4825 (ada_find_renaming_symbol): Declare.
4826 (ada_mangle): Rename to ada_encode.
4827 (ada_simple_renamed_entity): Remove const.
4828 (ada_main_name): Declare.
4829 (get_current_task): Rename to ada_get_current_task.
4830 (get_entry_number): Remove declaration.
4831 (ada_report_exception_break): Remove declaration.
4832 (ada_print_exception_breakpoint_nontask): Declare.
4833 (ada_print_exception_breakpoint_task): Declare.
4834 (ada_find_printable_frame): Declare.
4835
4836 * ada-lex.l: Update copyright notices.
4837 Use xmalloc and xfree instead of malloc and free.
4838 Use new interface to name_lookup.
4839 Use new interface to
4840 ada_mangle=>ada_encode.
4841 Redo handling of '$...' variable to parallel current treatment
4842 in c-exp.y.
4843 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4844 digit_to_int, strtoulst, processInt, processReal, processId,
4845 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4846 yywrap): Protoize.
4847
4848 (processInt): Use cast to remove harmless warning.
4849 (processReal): Modify to get rid of compiler warning on scan formats.
4850
4851 (processId): Replace xmalloc with obstack_alloc for name and remove
4852 call to ada_name_string_cleanup.
4853 Remove obsolete disabled code.
4854 (name_lookup): Ditto.
4855 New interface.
4856 Use obsavestring on temp_parse_space instead of savestring
4857 on name, and remove call to ada_name_string_cleanup.
4858 Free string returned from ada_simple_renamed_entity.
4859 Use new interface to ada_lookup_symbol_list.
4860 Decomment disabled code.
4861 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4862 not types.
4863 When a type name lookup succeeds as a result of
4864 lookup_primitive_typename, check for regular type entry that has not
4865 yet been read in.
4866 Limit length of chain of renamed symbols we are willing to follow.
4867 Do not break names beginning with "standard__" into segments.
4868 (block_lookup): Use new interface to ada_lookup_symbol_list.
4869
4870 * ada-typeprint.c: Update copyright notice.
4871 (demangled_type_name): Rename to decoded_type_name.
4872 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4873 (print_range_bound): Correct handling of negative
4874 bounds that make the index type looked unsigned under STABS.
4875 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4876 (print_range_type_named): Use the builtin int type if no type
4877 corresponding to the given type name could be found.
4878 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4879 Add some bullet-proofing.
4880 (print_variant_clauses): Allow for variant branches with ___XVU
4881 encodings that are not dynamic fields.
4882 Use new interface to ada_is_tagged_type.
4883 (print_record_type): Allow for fields with ___XVE encodings that
4884 are not dynamic fields.
4885 Use new interface to ada_is_tagged_type.
4886 (ada_print_type): ada_is_array_descriptor =>
4887 ada_is_array_descriptor_type.
4888
4889 * ada-valprint.c: Update copyright notice.
4890 Include gdb_string.h
4891 Include infcall.h
4892 (ui_memcpy): New function.
4893 (ada_print_floating): New function.
4894 (ada_print_str): Order arguments correctly.
4895 Correct handling of empty arrays and arrays of 0-length items.
4896 ada_is_array_descriptor => ada_is_array_descriptor_type
4897 Print values of type System.Address in hexadecimal format.
4898 Use ada_print_floating to print floating-point numbers in Ada format.
4899 Print class tag values with type names.
4900 No longer print the address of reference values. Avoids
4901 a potential confusion.
4902 (ada_value_print): Stop printing the object type for reference
4903 values, but preserve that behavior for access types. Avoids
4904 a potential confusion.
4905 Simplify one conditional expression, as the first part is now
4906 necessarily true.
4907 ada_is_array_descriptor => ada_is_array_descriptor_type
4908 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4909
f65f91b5
JB
49102004-06-01 Jim Blandy <jimb@redhat.com>
4911
4912 * ppc-tdep.h: Delete unused 'regoff' member.
4913 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4914
d4687fa0
MC
49152004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4916
4917 Fix PR symtab/1661.
4918 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4919 (hpread_read_struct_type): Likewise.
4920
de169ec9
AC
49212004-06-01 Andrew Cagney <cagney@gnu.org>
4922
c6902d46
AC
4923 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4924 instead of xasprintf.
4925 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4926 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4927 (mi_cmd_data_list_register_names)
4928 (mi_cmd_data_list_changed_registers)
4929 (mi_cmd_data_list_register_values)
4930 (get_register, mi_cmd_data_write_register_values)
4931 (mi_cmd_data_write_register_values)
4932 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4933 (mi_cmd_target_download, mi_cmd_target_select)
4934 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4935 (mi_execute_cli_command, mi_execute_async_cli_command)
4936 (mi_execute_async_cli_command): Ditto.
4937 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4938 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4939
6085fc2d
AC
4940 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4941 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4942 error_last_message instead of mi_error_last_message.
4943 * mi/mi-main.c (mi_error_last_message): Delete function.
4944
de169ec9
AC
4945 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4946 "invalid number of columns" error. Delete redundant "out of
4947 memory" check.
4948
1fc7d519
MK
49492004-05-31 Mark Kettenis <kettenis@gnu.org>
4950
6cfb2041
MK
4951 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4952 (gregset_t, fpregset_t): Remove typedefs.
4953 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4954 (REG_OFFSET): Rename argument.
4955 (i386bsd_r_reg_offset): Rename from reg_offset.
4956 (REG_ADDR): Remove macro.
4957 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4958 functions.
4959 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4960 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4961 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4962 instead of supply_gregset.
4963 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4964 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4965 instead of fill_gregset.
4966 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4967
1fc7d519
MK
4968 * i386bsd-nat.c: Don't include "gregset.h".
4969 (supply_gregset, fill_gregset): Make static.
4970 (supply_fpregset, fill_fpregset): Remove.
4971 * Makefile.in (i386bsd-nat.o): Update dependencies.
4972
2c34abbe
MK
49732004-05-30 Mark Kettenis <kettenis@gnu.org>
4974
448724fb
MK
4975 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4976 "gdb_assert.h". Con't include "gregset.h".
4977 (fbsd_make_corefile_notes): Use regset-based core file support
4978 instead off fill_gregset and fill_fpregset.
4979 * Makefile.in (fbsd-proc.o): Update dependencies.
4980
5ca8ca7c
MK
4981 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4982 instructions.
4983 (m88k_frame_prev_register): Simplify code a bit.
4984
593adc23
MK
4985 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4986 (amd64_collect_fpregset): New function.
4987 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4988
8d1b517b
MK
4989 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4990
7fdafb5a
MK
4991 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4992 (i386_collect_gregset): New function.
4993 (i386_supply_fpregset): Adjust comment.
4994 (i386_collect_fpregset): New function.
4995 (i386_regset_from_core_section): Use i386_collect_gregset and
4996 i386_collect_fpregset.
4997
8693c419
MK
4998 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4999 handle VALUEP being null.
5000
2c34abbe
MK
5001 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5002
45d134d8
MK
50032004-05-29 Mark Kettenis <kettenis@gnu.org>
5004
1698f4e7
MK
5005 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5006
45d134d8
MK
5007 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5008 assembler in OpenBSD 3.5-current.
5009 (amd64obsd_sigcontext_addr): Likewise.
5010
691d145a
JB
50112004-05-28 Jim Blandy <jimb@redhat.com>
5012
5013 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5014 register set, so our regcache isn't declared "legacy" and our E500
5015 pseudoregister read and write functions aren't ignored.
5016 (rs6000_register_byte, rs6000_register_raw_size,
5017 rs6000_register_virtual_type, rs6000_register_convertible,
5018 rs6000_register_convert_to_virtual,
5019 rs6000_register_convert_to_raw): Deleted.
5020 (rs6000_register_type, rs6000_convert_register_p,
5021 rs6000_register_to_value, rs6000_value_to_register): New
5022 functions.
5023 (rs6000_gdbarch_init): Don't register
5024 gdbarch_deprecated_register_size,
5025 gdbarch_deprecated_register_bytes,
5026 gdbarch_deprecated_register_byte,
5027 gdbarch_deprecated_register_raw_size,
5028 gdbarch_deprecated_register_virtual_type,
5029 gdbarch_deprecated_register_convertible,
5030 gdbarch_deprecated_register_convert_to_virtual, or
5031 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5032 register gdbarch_register_type, gdbarch_convert_register_p,
5033 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5034
18ed0c4e
JB
50352004-05-26 Jim Blandy <jimb@redhat.com>
5036
5037 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5038 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5039 functions, updated to match the register numberings used in GCC.
5040 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5041 rs6000_dwarf2_reg_to_regnum as register number conversions
5042 functions for STABS and Dwarf2.
5043
779af9e3
RC
50442004-05-26 Randolph Chung <tausq@debian.org>
5045
5046 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5047 in header file.
5048
c23968a2
JB
50492004-05-25 Joel Brobecker <brobecker@gnat.com>
5050
5051 * NEWS: Document new "start" command.
5052
3a7d1c27
RC
50532004-05-25 Randolph Chung <tausq@debian.org>
5054
5055 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5056 hppa-linux.
5057
43613416
RC
50582004-05-25 Randolph Chung <tausq@debian.org>
5059
5060 * hppa-hpux-tdep.c (offsetof): Define.
5061 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5062 (hppa32_hpux_frame_base_before_sigtramp)
5063 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5064 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5065 (hppa64_hpux_frame_base_before_sigtramp)
5066 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5067 functions.
5068 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5069 (hppa_hpux_sigtramp_frame_unwind_cache)
5070 (hppa_hpux_sigtramp_frame_this_id)
5071 (hppa_hpux_sigtramp_frame_prev_register)
5072 (hppa_hpux_sigtramp_frame_unwind)
5073 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5074 (hppa_hpux_init_abi): Register sigtramp unwinder.
5075 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5076
6d1be3f1
RC
50772004-05-25 Randolph Chung <tausq@debian.org>
5078
5079 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5080 and multiple stack unwinds.
5081 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5082
97c34f65
AC
50832004-05-25 Andrew Cagney <cagney@gnu.org>
5084
5085 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5086 * symfile-mem.h: Delete file.
5087 * symfile-mem.c: Do not include "symfile-mem.h".
5088 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5089 "struct bfd_section". When an error do not bother returning NULL.
5090 (add_symbol_file_from_memory_command): Use "struct bfd" and
5091 "struct bfd_section".
5092 * Makefile.in (symfile_mem_h): Delete.
5093 (symfile-mem.o): Update dependencies.
5094
e23cbd82
NR
50952004-05-25 Nick Roberts <nickrob@gnu.org>
5096
5097 * gdb-mi.el: New file.
5098
20d2ca3e
AC
50992004-05-25 Andrew Cagney <cagney@gnu.org>
5100
5101 * inftarg.c: Include "observer.h".
5102 (child_attach, child_create_inferior): Notify inferior_created.
5103 * corelow.c: Include "observer.h".
5104 (core_open): Notify inferior_created.
5105 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5106
c27cda74
AC
51072004-05-25 Andrew Cagney <cagney@gnu.org>
5108
5109 * target.h (struct target_ops): Add from_tty to
5110 to_create_inferior.
5111 (target_create_inferior, find_default_create_inferior): Update.
5112 * infcmd.c (run_command): Update.
5113 * wince.c (child_create_inferior): Update.
5114 * win32-nat.c (child_create_inferior): Update.
5115 * uw-thread.c (uw_thread_create_inferior): Update.
5116 * thread-db.c (thread_db_create_inferior): Update.
5117 * target.c (debug_to_create_inferior)
5118 (find_default_create_inferior): Update.
5119 (maybe_kill_then_create_inferior): Update.
5120 * sol-thread.c (sol_thread_create_inferior): Update.
5121 * remote.c (extended_remote_async_create_inferior)
5122 (extended_remote_create_inferior): Update.
5123 * remote-vx.c (vx_create_inferior): Update.
5124 * remote-st.c (st2000_create_inferior): Update.
5125 * remote-sim.c (gdbsim_create_inferior): Update.
5126 * remote-sds.c (sds_create_inferior): Update.
5127 * remote-rdp.c (remote_rdp_create_inferior): Update.
5128 * remote-rdi.c (arm_rdi_create_inferior): Update.
5129 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5130 * remote-e7000.c (e7000_create_inferior): Update.
5131 * procfs.c (procfs_create_inferior): Update.
5132 * ocd.c (ocd_create_inferior): Update.
5133 * ocd.h (ocd_create_inferior): Update.
5134 * nto-procfs.c (procfs_create_inferior): Update.
5135 * monitor.c (monitor_create_inferior): Update.
5136 * lin-lwp.c (lin_lwp_create_inferior): Update.
5137 * inftarg.c (child_create_inferior): Update.
5138 * hpux-thread.c (hpux_thread_create_inferior): Update.
5139 * gnu-nat.c (gnu_create_inferior): Update.
5140
1db2a798
AC
51412004-05-25 Andrew Cagney <cagney@gnu.com>
5142
5143 * MAINTAINERS: Update e-mail address.
5144
007d08bb
RC
51452004-05-24 Randolph Chung <tausq@debian.org>
5146
5147 * thread.c (info_threads_command, thread_apply_all_command)
5148 (thread_apply_command, thread_command, do_captured_thread_select):
5149 Remove HPUXHPPA-specific code.
5150
69e7b95e
RC
51512004-05-24 Randolph Chung <tausq@debian.org>
5152
5153 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5154 unused symbols.
5155 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5156 references.
5157
a4d5f2e0
JB
51582004-05-24 Joel Brobecker <brobecker@gnat.com>
5159
5160 * infcmd.c (kill_if_already_running): New function, extracted
5161 from run_command().
5162 (run_command): Replace extracted code by call to
5163 kill_if_already_running().
5164 (start_command): New function.
5165 (_initialize_infcmd): Add "start" command.
5166
bf2ca189
MK
51672004-05-24 Mark Kettenis <kettenis@gnu.org>
5168
5169 Add OpenBSD/m88k support.
5170 * NEWS (New native configurations): Mention OpenBSD/m88k.
5171 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5172 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5173 * Makefile.in (m88k_tdep_h): New variable.
5174 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5175 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5176 * configure.host: Add m88*-*-openbsd*.
5177 * configure.tgt: Add m88*-*-openbsd*.
5178
80fadb11
JB
51792004-05-24 Jim Blandy <jimb@redhat.com>
5180
5181 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5182 to approve changes.
5183
19e2d14b
KB
51842004-05-24 Kevin Buettner <kevinb@redhat.com>
5185
5186 * symtab.c (fixup_section): Search section table when lookup by
5187 name fails.
5188
1b07b470
RC
51892004-05-24 Randolph Chung <tausq@debian.org>
5190
5191 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5192 be "small_struct".
5193
368702b1
MK
51942004-05-24 Mark Kettenis <kettenis@gnu.org>
5195
5df97fde
MK
5196 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5197 register number in regcache_raw_collect call.
5198 (m68kbsd_collect_fpregset): Likewise.
5199 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5200
368702b1
MK
5201 * regset.h (struct regset): Add back `regset' member.
5202
a770d4ec
MK
52032004-05-23 Mark Kettenis <kettenis@gnu.org>
5204
70f9f479
MK
5205 * configure.in: Check for td_pcb in `struct thread'.
5206 * configure, config.in: Regenerated.
5207
2e16d79e
MK
5208 * dpx2-nat.c: Remove file.
5209 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5210 (dpx2-nat.o): Remove dependencies.
5211
492cf391
MK
5212 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5213 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5214 (amd64obsd_supply_pcb): New function.
5215 (_initialize_amd64obsd_nat): Enable libkvm interface.
5216 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5217 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5218 (LOADLIBES): New variable.
5219
a770d4ec
MK
5220 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5221 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5222 (sparc32nbsd_supply_pcb): New function.
5223 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5224 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5225 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5226 (LOADLIBES): New variable.
5227
9ea75c57
MK
52282004-05-22 Mark Kettenis <kettenis@gnu.org>
5229
2e0c3539
MK
5230 * bsd-kvm.c, bsd-kvm.h: New files.
5231 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5232 "bsd-kvm.h".
5233 (i386fbsd_supply_pcb): New function.
5234 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5235 (i386fbsd-nat.o): Update dependencies.
5236 (bsd_kvm_h): New variable.
5237 (bsd-kvm.o): New dependency.
5238 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5239 (LOADLIBES): New variable.
5240
9ea75c57
MK
5241 * regset.c: Tweak comment.
5242 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5243 macro.
5244 * regset.h: Update copyright year.
5245 (struct regset): Remove `descr' member, add `gdbarch' member.
5246 (regset_alloc): Adjust prototype and comment.
5247 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5248 (i386_supply_fpregset): Likewise.
5249 (i386_regset_from_core_section): Update call to regset_alloc.
5250 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5251 REGSET->arch.
5252 (i386obsd_aout_regset_from_core_section): Update call to
5253 regset_alloc.
5254 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5255 REGSET->arch.
5256 (i386nbsd_aout_regset_from_core_section): Update call to
5257 regset_alloc.
5258 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5259 REGSET->arch.
5260 (amd64_regset_from_core_section): Update call to regset_alloc.
5261 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5262 REGSET->arch.
5263 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5264 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5265 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5266 (sparc32nbsd_init_abi): Update call to regset_alloc.
5267 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5268 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5269 (sparc64obsd_init_abi): Update call to regset_alloc.
5270 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5271 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5272 (sparc64nbsd_init_abi): Update call to regset_alloc.
5273 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5274 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5275 (sparc64fbsd_init_abi): Update call to regset_alloc.
5276
867e2dc5
JB
52772004-05-22 Jim Blandy <jimb@redhat.com>
5278
5279 * ppc-tdep.h (spe_register_p): New declaration.
5280 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5281 ppc_spefscr_regnum.
5282 * rs6000-tdep.c (spe_register_p): New function.
5283 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5284 spefscr.
5285 (rs6000_gdbarch_init): Initialize the new members of the tdep
5286 structure.
5287
617a4cba
JB
52882004-05-21 Jim Blandy <jimb@redhat.com>
5289
0397dee1
JB
5290 * ppc-linux-nat.c (fetch_register): Move code back to be next
5291 to the comment that describes it. (Moved code, instead of
5292 comment, for symmetry with store_register.)
5293
617a4cba
JB
5294 Allocate regset structures in the gdbarch's obstack, not using
5295 xmalloc.
5296 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5297 Add 'arch' argument. Allocate the regset on arch's obstack, not
5298 using xmalloc.
5299 * regset.h (regset_alloc): Update declaration.
5300 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5301 gdbarch argument.
5302 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5303 * i386-tdep.c (i386_regset_from_core_section): Same.
5304 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5305 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5306 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5307 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5308 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5309 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5310
9aa3914d
JB
53112004-05-21 Joel Brobecker <brobecker@gnat.com>
5312
5313 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5314
99c87dab
JB
53152004-05-21 Jim Blandy <jimb@redhat.com>
5316
5317 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5318 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5319
c2b6b4aa
JB
53202004-05-20 Jim Blandy <jimb@redhat.com>
5321
5322 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5323
144529d0
MK
53242004-05-20 Mark Kettenis <kettenis@gnu.org>
5325
5326 * regset.h: Make prototype const-correct.
5327 * regset.c (regset_xmalloc): Make const-correct.
5328
4725b721
PH
53292004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5330
5331 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5332 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5333 (symbol_search_name): Declare.
5334
5335 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5336 (iter_name_next_hashed): Ditto.
5337 (iter_name_next_linear): Ditto.
5338 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5339
5340 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5341 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5342 (symbol_search_name): New function.
5343
5344 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5345
5346 * minsyms.c (build_minimal_symbol_hash_tables): Change
5347 test for adding to demangled hash table to check for difference
5348 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5349
be07a590
JB
53502004-05-19 Jim Blandy <jimb@redhat.com>
5351
5352 Use a constructor function to create regset structures.
5353 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5354 (struct regset): Use supply_regset_ftype. Add new
5355 'collect_regset' member.
5356 (regset_xmalloc): New declaration.
5357 * regset.c: New file.
5358 * am64-tdep.c (amd64_regset_from_core_section): Use
5359 regset_xmalloc to construct regset structures.
5360 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5361 * i386-tdep.c (i386_regset_from_core_section): Same.
5362 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5363 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5364 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5365 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5366 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5367 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5368 * Makefile.in (COMMON_OBS): Add regset.o.
5369 (regset.o): New rule.
5370
604368f5
JB
53712004-05-19 Joel Brobecker <brobecker@gnat.com>
5372
5373 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5374 and pthread_cond_wait.c.
5375
82d69f8b
JB
53762004-05-18 Jim Blandy <jimb@redhat.com>
5377
5378 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5379 before the mach-specific switch, and then let the individual cases
5380 override the defaults, rather than leaving them uninitialized
5381 until the switch and then setting them in each case.
5382
5859efe5
RC
53832004-05-18 Randolph Chung <tausq@debian.org>
5384
5385 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5386 millicode functions.
5387
9ca80cf8
RC
53882004-05-18 Randolph Chung <tausq@debian.org>
5389
5390 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5391 references to dld_flags_buffer consistent.
5392
ed70ba00
RC
53932004-05-18 Randolph Chung <tausq@debian.org>
5394
5395 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5396 it for unwinding the stack.
5397
63100632
RC
53982004-05-18 Randolph Chung <tausq@debian.org>
5399
5400 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5401 Undefine these so we can overide them using gdbarch.
5402
090ccbb7
RC
54032004-05-18 Randolph Chung <tausq@debian.org>
5404
5405 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5406 handling for 64-bit HPUX (elf).
5407
594706e6
DJ
54082004-05-18 Daniel Jacobowitz <dan@debian.org>
5409
5410 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5411 constants.
5412 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5413 * ia64-tdep.c (examine_prologue): Likewise.
5414 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5415 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5416
e5483145
MK
54172004-05-18 Mark Kettenis <kettenis@gnu.org>
5418
5419 * vax-tdep.c (vax_return_value): Implement
5420 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5421
caed1a45
MK
54222004-05-17 Mark Kettenis <kettenis@gnu.org>
5423
5424 * vax-tdep.c (vax_return_value): Fix typo.
5425
3c0b7db2
AC
54262004-05-17 Andrew Cagney <cagney@redhat.com>
5427
5aae53e5
AC
5428 * MAINTAINERS: Mark Salter was also responsible for
5429 testsuite/config/
5430
3c0b7db2
AC
5431 * NEWS: Mention signal fixes.
5432
22b0923d
RC
54332004-05-17 Randolph Chung <tausq@debian.org>
5434
5435 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5436 check to see if we are unwinding an export stub. Export stubs clobber
5437 the %rp in the call path and stores the original rp in a stack slot.
5438
22f2b2f3
JB
54392004-05-17 Jim Blandy <jimb@redhat.com>
5440
5441 * MAINTAINERS: Update address for J.T. Conklin.
5442
cea96d64
RC
54432004-05-17 Randolph Chung <tausq@debian.org>
5444
5445 * hppa-tdep.c: Remove superfluous #include's.
5446 * Makefile.in (hppa-tdep.o): Update dependencies.
5447
f08f6a4a
RC
54482004-05-17 Randolph Chung <tausq@debian.org>
5449
5450 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5451 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5452 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5453 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5454 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5455 Remove static function declarations.
5456
51da707a
MK
54572004-05-17 Mark Kettenis <kettenis@gnu.org>
5458
caed1a45
MK
5459 * alphabsd-nat.c: Update copyright year.
5460 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5461
c0c2b0db
MK
5462 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5463 and M68K_A2_REGNUM.
5464
51da707a
MK
5465 * m68k-tdep.c (m68k_svr4_return_value): Implement
5466 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5467
8d027a04
MK
54682004-05-16 Mark Kettenis <kettenis@gnu.org>
5469
5470 * sol-thread.c Update copyright year. Fix various coding
5471 standards violations. Tweak a few comments.
5472 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5473 Delete prototypes.
5474
0d99fdb9
RC
54752004-05-15 Randolph Chung <tausq@debian.org>
5476
5477 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5478 as pointer instead of array reference since HPUX compiler does
5479 not accept unsized array arguments.
5480 * somsolib.c (dld_flags_buffer): Use constant array size.
5481
f7e3843a
MK
54822004-05-15 Mark Kettenis <kettenis@gnu.org>
5483
0fe85704
MK
5484 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5485 offset with decimal offset.
5486 (amd64obsd_sigcontext_addr): Return correct address for entire
5487 signal trampoline.
5488
a54f9a00
MK
5489 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5490 instead of get_frame_base.
5491
feae6502
MK
5492 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5493 (fill_gregset): Use regcache_raw_collect.
5494
0382d099
MK
5495 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5496 ppcobsd-tdep.c.
5497
f7e3843a
MK
5498 * config/sparc/tm-nbsd64.h: Remove file.
5499 * config/tm-sunos.h: Remove file.
5500
773df3e5
JB
55012004-05-15 Joel Brobecker <brobecker@gnat.com>
5502
5503 * rs6000-tdep.c (store_param_on_stack_p): New function,
5504 an improved version of some code extracted from skip_prologue().
5505 (skip_prologue): Use store_param_on_stack_p() to detect
5506 instructions saving a parameter on the stack. Detect when r0
5507 is used to save a parameter.
5508 Do not mark "li rx, SIMM" instructions as part of the prologue,
5509 unless the following instruction is also part of the prologue.
5510
95918acb
AC
55112004-05-14 Andrew Cagney <cagney@redhat.com>
5512
06f32659
AC
5513 * infrun.c (handle_inferior_event): Simplify
5514 STEP_OVER_UNDEBUGGABLE.
5515
95918acb
AC
5516 * infrun.c (handle_step_into_function): Delete function.
5517 (handle_inferior_event): Inline calls to
5518 handle_step_into_function.
5519
40711ff1 55202004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5521
5522 * rs6000-nat.c: Fix a comment.
5523
02f60eae
JB
55242004-05-12 David Anderson <davea@sgi.com>
5525
5526 Committed by Jim Blandy <jimb@redhat.com>:
5527 * regcache.c (struct regcache_descr): fix comment spelling.
5528
552e377b
JB
55292004-05-13 J. Brobecker <brobecker@gnat.com>
5530
5531 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5532 Fixes a link link failure.
5533
349766b2
JB
55342004-05-13 J. Brobecker <brobecker@gnat.com>
5535
5536 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5537 error that was causing the build to fail.
5538
0d4d5484
JB
55392004-05-13 J. Brobecker <brobecker@gnat.com>
5540
5541 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5542 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5543
0b30808c
AC
55442004-05-13 Andrew Cagney <cagney@redhat.com>
5545
5546 * infrun.c (handle_inferior_event): Check for
5547 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5548 calls. Update comments.
5549
cdf2c5f5
JB
55502004-05-13 Jim Blandy <jimb@redhat.com>
5551
063715bf
JB
5552 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5553 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5554 (store_regs_user_thread, store_regs_kernel_thread): Use
5555 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5556 * ppc-linux-nat.c (fill_gregset): Same.
5557 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5558 (ppc_linux_sigtramp_cache): Same.
5559 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5560 (ppcnbsd_sigtramp_cache_init): Same.
5561 * rs6000-nat.c (fetch_core_registers): Same.
5562 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5563 (rs6000_frame_cache): Same.
5564
cdf2c5f5
JB
5565 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5566 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5567 of assuming that the gprs are numbered starting with zero.
5568 * ppc-linux-nat.c (fill_gregset): Same.
5569 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5570 * ppcnbsd-nat.c (getregs_supplies): Same.
5571 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5572 * rs6000-nat.c (fetch_core_registers): Same.
5573 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5574
450bd37b
MS
55752004-05-07 Michael Snyder <msnyder@redhat.com>
5576
5577 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5578 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5579
4a72a2a6
AC
55802004-05-13 Andrew Cagney <cagney@redhat.com>
5581
5582 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5583
8edfa926
BM
55842004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5585
5586 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5587 base_address for shared libraries.
5588
723e0e3d
BM
55892004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5590
5591 * MAINTAINERS (write after approval): Add myself.
5592
00d4360e
UW
55932004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5594
5595 * breakpoint.c (bpstat_stop_status): Add new argument
5596 STOPPED_BY_WATCHPOINT. Use it instead of testing
5597 target_stopped_data_address agaist 0 to check whether
5598 or not we stopped due to a hardware watchpoint.
5599 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5600 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5601 with new argument.
5602
ec76baa5
JB
56032004-05-12 Jim Blandy <jimb@redhat.com>
5604
5605 * configure.in: When checking whether we should use the -bbigtoc
5606 option, don't forget to restore the original value of LDFLAGS.
5607 * configure: Regenerated.
5608
f2c9ca08
AC
56092004-05-12 Andrew Cagney <cagney@redhat.com>
5610
5611 * thread.c (load_infrun_state): Delete step_sp.
5612 * infrun.c (context_switch): Ditto.
5613 * inferior.h (step_sp): Ditto.
5614 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5615 * gdbthread.h (struct thread_info, save_infrun_state)
5616 (restore_infrun_state): Ditto.
5617
090ddb2a
UW
56182004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5619
5620 * MAINTAINERS (write after approval): Add myself.
5621
8aad930b
AC
56222004-05-12 Andrew Cagney <cagney@redhat.com>
5623
5624 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5625 eliminate reference to step_sp.
5626 (struct execution_control_state, init_execution_control_state)
5627 (handle_inferior_event, keep_going): Delete update_step_sp and
5628 step_sp.
5629 * infcmd.c (step_sp): Note that variable is unused.
5630
922d5ae0
AC
56312004-05-11 Andrew Cagney <cagney@redhat.com>
5632
5633 * infrun.c (step_over_function): Delete function.
5634 (handle_step_into_function): Use insert_step_resume_breakpoint.
5635 (insert_step_resume_breakpoint): Fix assertion.
5636
017c5ca5
NR
56372004-05-11 Nick Roberts <nickrob@gnu.org>
5638
5639 * utils.c (defaulted_query): Just use the normal query input type
5640 when printing the annotations.
5641
42edda50
AC
56422004-05-11 Andrew Cagney <cagney@redhat.com>
5643
5644 * infrun.c (handle_inferior_event): Simplify code handling
5645 step-into or return-from a signal trampoline.
5646
d28b44a7
AC
56472004-05-11 Andrew Cagney <cagney@redhat.com>
5648
5649 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5650 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5651
383f0f5b
JB
56522004-05-10 Jim Blandy <jimb@redhat.com>
5653
d0b57c3a
JB
5654 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5655 with a call to internal_error.
5656
383f0f5b
JB
5657 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5658 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5659 processor variant lacks those registers.
5660 (ppc_floating_point_unit_p): Change description to make it clear
5661 that this returns info about the ISA, not the ABI.
5662 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5663 return true or false by checking tdep->ppc_fp0_regnum and
5664 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5665 arch/mach switching done in rs6000_gdbarch_init; it's better to
5666 keep that logic there, and just check the results here.
5667 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5668 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5669 floating-point registers.
5670 (ppc_supply_fpregset, ppc_collect_fpregset)
5671 (rs6000_push_dummy_call, rs6000_extract_return_value)
5672 (rs6000_store_return_value): Assert that we have floating-point
5673 registers.
5674 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5675 (rs6000_frame_cache): Don't note the locations at which
5676 floating-point registers were saved if we have no fprs.
5677 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5678 registers.
5679 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5680 (store_regs_user_thread, store_regs_kernel_thread): Only call
5681 supply_fprs / fill_fprs if we actually have floating-point
5682 registers.
5683 (special_register_p): Check ppc_fpscr_regnum before matching
5684 against it.
5685 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5686 supply / collect fpscr if we don't have it.
5687 * ppc-bdm.c: #include "gdb_assert.h".
5688 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5689 have floating-point registers, since I can't test this code on
5690 FP-free systems to adapt it.
5691 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5692 fpscr and floating point register numbers if they don't exist.
5693 (fetch_register): Assert that we have floating-point registers
5694 before we reach the code that handles them.
5695 (store_register): Same. And use tdep instead of calling
5696 gdbarch_tdep again.
5697 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5698 don't have them.
5699 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5700 fprs and fpscr if we don't have them.
5701 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5702 don't have them.
5703 * ppcnbsd-nat.c: #include "gdb_assert.h".
5704 (getfpregs_supplies): Assert that we have floating-point registers.
5705 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5706 * ppcobsd-tdep.c: #include "gdb_assert.h".
5707 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5708 have floating-point registers.
5709 * rs6000-nat.c (regmap): Don't match against the fpscr and
5710 floating point register numbers if they don't exist.
5711 (fetch_inferior_registers, store_inferior_registers,
5712 fetch_core_registers): Only fetch / store / supply the
5713 floating-point registers and the fpscr if we have them.
5714 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5715 (ppcobsd-tdep.o): Update dependencies.
5716
15960608
AC
57172004-05-10 Andrew Cagney <cagney@redhat.com>
5718
5719 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5720 (context_switch): Do not switch through_sigtramp_breakpoint.
5721 * gdbthread.h (save_infrun_state, load_infrun_state)
5722 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5723 and structure member.
5724 * thread.c (load_infrun_state, save_infrun_state): Update.
5725
5ab5aa0f
MK
57262004-05-10 Mark Kettenis <kettenis@gnu.org>
5727
5728 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5729
da78b0e7
DJ
57302004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5731
5732 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5733 throughout.
5734 * aclocal.m4: Regenerate.
5735
cca0d3b0
NW
57362004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5737
5738 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5739
d303a6c7
AC
57402004-05-10 Andrew Cagney <cagney@redhat.com>
5741
5742 * infrun.c (check_sigtramp2): Delete function.
5743 (handle_inferior_event): When single stepping, and taking a
5744 signal, set a breakpoint at the signal return address. Delete
5745 redundant calls to check_sigtramp2.
5746 (insert_step_resume_breakpoint): New function.
5747 (through_sigtramp_breakpoint, handle_inferior_event)
5748 (follow_exec, wait_for_inferior, fetch_inferior_event)
5749 (currently_stepping, keep_going): Delete most uses of
5750 through_sigtramp_breakpoint, not that it should be deleted.
5751 (delete_breakpoint_current_contents): Delete function.
5752
03f4cc20
RC
57532004-05-10 Randolph Chung <tausq@debian.org>
5754
5755 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5756 target.
5757 * config/pa/tm-linux.h: New file.
5758
37fc812e
DJ
57592004-05-10 Daniel Jacobowitz <drow@mvista.com>
5760
5761 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5762 of prefixes. Don't print the prefix twice in the CLI.
5763
26c0b942
JB
57642004-05-10 Jim Blandy <jimb@redhat.com>
5765
2e56e9c1
JB
5766 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5767 collect all the gprs.
5768
26c0b942
JB
5769 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5770 loop collecting gprs.
5771
dc497459
AC
57722004-05-09 Andrew Cagney <cagney@redhat.com>
5773
5774 * remote-vx.c (net_step): Delete step-range code.
5775 * remote.c (remote_resume, init_all_packet_configs)
5776 (set_remote_protocol_E_packet_cmd)
5777 (show_remote_protocol_E_packet_cmd)
5778 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5779 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5780 (show_remote_protocol_e_packet_cmd): Ditto.
5781
0543f387
MK
57822004-05-09 Mark Kettenis <kettenis@gnu.org>
5783
c481d1ca
MK
5784 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5785
f626a069
MK
5786 * hppa-tdep.h: Update copyright year.
5787 (struct trad_frame_saved_reg): Add opaque declaration.
5788
6fa57a7d
MK
5789 * amd64-tdep.c (amd64_return_value): Implement
5790 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5791
e47577ab
MK
5792 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5793 (m68k_value_to_register): New functions.
5794 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5795 value_to_register.
5796
31db7b6c
MK
5797 * defs.h (enum return_value_convention): Add
5798 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5799 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5800 * infcmd.c (legacy_return_value): New function.
5801 (print_return_value): Rwerite to implement
5802 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5803 * values.c (using_struct_return): Check for inequality to
5804 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5805 RETURN_VALUE_STRUCT_CONVENTION.
5806 * i386-tdep.c (i386_return_value): Implement
5807 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5808
0543f387
MK
5809 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5810 include "symtab.h", "opcode/vax.h" and "inferior.h".
5811 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5812 to read_memory_unsigned_integer.
5813 (vax_gdbarch_init): Reorder.
5814 (_initialize_vax_tdep): Spell out prototype.
5815 * Makefile.in (vax-tdep.o): Update dependencies.
5816
0c93b7b6
AC
58172004-05-08 Andrew Cagney <cagney@redhat.com>
5818
e6b55ae2
AC
5819 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5820 * target.c (target_detach, target_disconnect): Ditto.
5821
1ac839b8
AC
5822 * infcall.c (call_function_by_hand): When no
5823 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5824 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5825 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5826 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5827 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5828
28954179
AC
5829 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5830 * gdbarch.h, gdbarch.c: Re-generate.
5831 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5832 deprecated_fix_call_dummy.
5833 * v850-tdep.c (v850_gdbarch_init): Ditto.
5834 * infcall.c (call_function_by_hand): Do not call
5835 DEPRECATED_FIX_CALL_DUMMY.
5836
434b87dd
AC
5837 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5838 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5839 * gdbarch.h, gdbarch.c: Re-generate.
5840 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5841 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5842 deprecated_sizeof_call_dummy_words.
5843 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5845 * v850-tdep.c (v850_gdbarch_init): Ditto.
5846 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5847 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5850 * arch-utils.h (legacy_call_dummy_words)
5851 (legacy_sizeof_call_dummy_words): Delete declarations.
5852 * arch-utils.c (legacy_call_dummy_words)
5853 (legacy_sizeof_call_dummy_words): Delete variables.
5854
58d28df8
AC
5855 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5856 * gdbarch.h, gdbarch.c: Re-generate.
5857 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5858 * infcall.c (call_function_by_hand): Eliminate call to
5859 DEPRECATED_PUSH_DUMMY_FRAME.
5860 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5861 push_dummy_frame.
5862 (ns32k_push_dummy_frame): Delete function.
5863
e4a2df64
AC
5864 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5865 deprecated_call_dummy_breakpoint_offset or
5866 deprecated_call_dummy_start_offset.
5867 * dummy-frame.c, arm-tdep.c: Update comments.
5868 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5869 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5870 * gdbarch.h, gdbarch.c: Re-generate.
5871
d3712828
AC
5872 * infcall.c (legacy_push_dummy_code): Delete function.
5873 (push_dummy_code): Delete call.
5874
7a882905
AC
5875 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5876 * gdbarch.h, gdbarch.c: Re-generate.
5877 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5878 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5879 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5880 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5881
0ec5872b
AC
5882 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5883 (struct frame_info): Delete opaque declaration.
5884 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5885 * frame.c (get_frame_type): Delete call.
5886
0c93b7b6
AC
5887 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5888 pc_in_call_dummy.
5889 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5890 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5891
75536971
MK
58922004-05-08 Mark Kettenis <kettenis@gnu.org>
5893
527ca6bb
MK
5894 * alphanbsd-tdep.c: Include "gdb_string.h".
5895 * armnbsd-tdep.c: Update copyright year.
5896 Include "gdb_string.h".
5897 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5898 dependencies.
5899
d39fdc61
MK
5900 * delta68-nat.c: Remove file.
5901 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5902 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5903 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5904 (delta68-nat.o): Remove dependency.
5905
75536971
MK
5906 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5907 function.
5908 (m68k_gdbarch_init): Don't set
5909 deprecated_frameless_function_invocation.
5910
f4ca1d1f
RC
59112004-05-07 Randolph Chung <tausq@debian.org>
5912
5913 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5914 read_memory_nobpt for code reading when doing frame unwinding.
5915 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5916
2f0e8c7a
RC
59172004-05-07 Randolph Chung <tausq@debian.org>
5918
5919 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5920 instead of sp, handle sigaltstack case.
5921 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5922 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5923 signal handler and not that of the caller.
5924 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5925 hppa_linux_sigtramp_find_sigcontext.
5926
959464ff
RC
59272004-05-07 Randolph Chung <tausq@debian.org>
5928
5929 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5930 hppa-linux-nat.c.
5931 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5932 * hppa-linux-nat.c (fetch_register, store_register): Define.
5933 (fetch_inferior_registers, store_inferior_registers): Define.
5934 (supply_gregset): Add comment and clean up some unneeded code.
5935 (fill_gregset): Add comment and fix so that it saves registers in
5936 the right place in the gregset.
5937 (fill_fpregset): Fix buffer overrun problem.
5938 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5939
0da28f8a
RC
59402004-05-07 Randolph Chung <tausq@debian.org>
5941
5942 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5943 do common handling of the pcoqt register.
5944 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5945 to use helper function.
5946 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5947 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5948 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5949 generic fallback unwinder when all else fails.
5950 (hppa_gdbarch_init): Add fallback sniffer.
5951 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5952 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5953 to use helper function.
5954
b9ec757a
JB
59552004-05-08 Joel Brobecker <brobecker@gnat.com>
5956
5957 * config/djgpp/fnchange.lst: Add translation rules for
5958 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5959
756e95f1
MK
59602004-05-08 Mark Kettenis <kettenis@gnu.org>
5961
5962 * frame.c (get_prev_frame_1): Work around GCC bug.
5963 * frame.h: Add comment about GCC bug.
5964
2b4855ab
AC
59652004-05-07 Andrew Cagney <cagney@redhat.com>
5966
5967 * observer.c: Include "commands.h" and "gdbcmd.h".
5968 (observer_debug, _initialize_observer): Add the
5969 command "set/show debug observer".
5970 * observer.sh: When observer debugging, log notify calls.
5971 * Makefile.in (observer.o): Update dependencies.
5972
ba3e8e46
JM
59732004-05-07 Jason Molenda (jmolenda@apple.com)
5974
5975 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5976
16796152
JB
59772004-05-07 Jim Blandy <jimb@redhat.com>
5978
daf6dc85
JB
5979 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5980 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5981 to recognize gpr regnums, instead of assuming that
5982 tdep->ppc_fp0_regnum marks the end of the general-purpose
5983 registers.
5984
16796152
JB
5985 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5986 the given architecture has floating-point registers.
5987
c69b8bfc
AC
59882004-05-07 Andrew Cagney <cagney@redhat.com>
5989
5990 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5991 macro defined to 1.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5994 deprecated_use_generic_dummy_frames.
5995
7243600a
BF
59962004-05-07 Brian Ford <ford@vss.fsi.com>
5997
5998 * NEWS: Mention Cygwin DWARF 2 support.
5999
73c1e0a1
AC
60002004-05-07 Andrew Cagney <cagney@redhat.com>
6001
6002 * objfiles.h (struct entry_info): Delete unused fields
6003 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6004 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6005 * mipsread.c (mipscoff_symfile_read): Update.
6006 * mdebugread.c (parse_partial_symbols): Update.
6007 * dwarfread.c (read_file_scope): Update.
6008 * dwarf2read.c (read_file_scope): Update.
6009 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6010 * coffread.c (complete_symtab): Update.
6011
1d3056ac
MK
60122004-05-07 Mark Kettenis <kettenis@gnu.org>
6013
6014 * infcall.c (_initialize_infcall): Fix typo.
6015
15170568
AC
60162004-05-07 Andrew Cagney <cagney@redhat.com>
6017
6018 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6019 * command.h (add_setshow_zinteger_cmd): Declare.
6020
34f75cc1
RC
60212004-05-06 Randolph Chung <tausq@debian.org>
6022
6023 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6024 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6025 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6026 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6027 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6028 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6029 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6030 definitions ...
6031 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6032 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6033 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6034 (hppa64_hpux_frame_find_saved_regs_in_sig)
6035 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6036 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6037 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6038 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6039 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6040 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6041 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6042 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6043 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6044 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6045 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6046 (hppa32_register_type, hppa_cannot_store_register)
6047 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6048 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6049 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6050 * pa64solib.c (pa64_solib_have_load_event)
6051 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6052 (pa64_solib_unloaded_library_pathname): Likewise.
6053 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6054 (som_solib_library_pathname): Likewise.
6055
0a5e7efe
JI
60562004-05-05 Jim Ingham <jingham@apple.com>
6057
6058 * breakpoint.c (create_breakpoints): Copy the ignore count and
6059 thread id over from the pended breakpoint to the actual
6060 breakpoint.
6061
10a4b113
AC
60622004-05-05 Andrew Cagney <cagney@redhat.com>
6063
6064 * gdbarch.sh (PARM_BOUNDARY): Delete.
6065 gdbarch.h, gdbarch.c: Re-generate.
6066 * valops.c (PARM_BOUNDARY): Delete macro.
6067 (value_push): Delete PARM_BOUNDARY code.
6068 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6069
366f009f
JB
60702004-05-04 Jim Blandy <jimb@redhat.com>
6071
32b99774
JB
6072 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6073 Don't assume that the gprs, fprs, and UISA sprs are
6074 contiguous, start at register number zero, and end with fpscr.
6075 Instead, use the numbers from the tdep structure.
6076
366f009f
JB
6077 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6078 should no longer be used in code specific to the RS6000 and its
6079 derivatives.
6080 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6081 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6082 tdep->ppc_fp0_regnum.
6083 (ppc_supply_fpregset, ppc_collect_fpregset)
6084 (rs6000_push_dummy_call, rs6000_extract_return_value)
6085 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6086 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6087 FP0_REGNUM.
6088 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6089 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6090 Same.
6091 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6092 bdm_ppc_store_registers): Same.
6093 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6094 (store_register, fill_fpregset): Same.
6095 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6096 (ppc_linux_supply_fpregset): Same.
6097 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6098 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6099 Same.
6100 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6101 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6102 ppc64_sysv_abi_return_value): Same.
6103 * rs6000-nat.c (regmap, fetch_inferior_registers)
6104 (store_inferior_registers, fetch_core_registers): Same.
6105
827f338d
MK
61062004-05-01 Mark Kettenis <kettenis@gnu.org>
6107
6108 * m68knbsd-nat.c: Remove file.
6109 * m68knbsd-tdep.c: Remove file.
6110 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6111 dependencies.
6112 * configure.host: Add m68k-*-netbsdelf*.
6113 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6114 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6115 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6116 (XM_FILE): Remove.
6117 * config/m68k/nbsdelf.mh: New file.
6118 * config/m68k/nbsd.mt: New file.
6119 * config/m68k/nbsdaout.mt: Remove file.
6120 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6121 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6122 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6123 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6124 (use_struct_convention): Remove prototype.
6125 (USE_STRUCT_CONVENTION): Remove define.
6126 * config/m68k/xm-nbsd.h: Remove file.
6127
66894781
MS
61282004-05-04 Michael Snyder <msnyder@redhat.com>
6129
6130 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6131 reg_struct_return method (as gcc usually does for cross targets).
6132
f0f63663
AC
61332004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6134
6135 Committed by Andrew Cagney.
6136 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6137 alignment padding when accessing ucontext struct members.
6138
edf61169
JB
61392004-05-04 Jim Blandy <jimb@redhat.com>
6140
8bf659e8
JB
6141 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6142 'ppc_gplast_regnum' member.
6143 (ppc_num_gprs): New enum constant.
6144 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6145 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6146 * rs6000-nat.c (regmap, fetch_inferior_registers,
6147 store_inferior_registers): Same.
6148 * rs6000-tdep.c (e500_pseudo_register_read)
6149 (e500_pseudo_register_write): Same.
6150 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6151
b967e06f
JB
6152 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6153 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6154 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6155 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6156 FPLAST_REGNUM.
6157 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6158 Same.
6159 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6160 * rs6000-nat.c (regmap, fetch_inferior_registers)
6161 (store_inferior_registers): Same.
6162
edf61169
JB
6163 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6164 with FPLAST_REGNUM.
6165
58a9656e
JB
61662004-05-03 Joel Brobecker <brobecker@gnat.com>
6167
6168 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6169 failure detected by recent versions of GCC.
6170 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6171 to be consistent with the usage in dwarf2_create_include_psymtab.
6172
dc305454
MS
61732004-05-03 Michael Snyder <msnyder@redhat.com>
6174
6175 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6176 (heuristic_proc_start): Whitespace cleanup.
6177
29972665
MK
61782004-05-04 Mark Kettenis <kettenis@gnu.org>
6179
6b57680d
MK
6180 * sun3-nat.c: Remove file.
6181 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6182 dependencies.
6183 (ALLDEPFILES): Remove sun3-nat.c.
6184 (sun3-nat.o): Remove dependencies.
6185
29972665
MK
6186 * i386-interix-nat.c, i386-interix-tdep.c,
6187 config/i386/nm-interix.h, config/i386/interix.mh,
6188 config/i386/interix.mt: Remove files.
6189 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6190 dependencies.
6191
f595cb19
MK
61922004-05-03 Mark Kettenis <kettenis@gnu.org>
6193
6194 * m68k-tdep.h (struct gdbarch_tdep): Add member
6195 struct_value_regnum.
6196 (m68k_svr4_init_abi): New prototype.
6197 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6198 different calling conventions.
6199 (m68k_extract_return_value): Remove code dealing with single-field
6200 structs.
6201 (m68k_store_return_value): Remove code dealing with single-field
6202 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6203 (m68k_extract_struct_value_address): Remove function.
6204 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6205 (m68k_reg_struct_return_p, m68k_return_value)
6206 (m68k_svr4_return_value): New functions.
6207 (m68k_use_struct_convention): Remove function.
6208 (m68k_push_dummy_call): Use new struct_value_regnum member of
6209 `struct gdbarch_tdep' instead of hardcoded register number to
6210 store STRUCT_ADDR.
6211 (m68k_svr4_init_abi): New function.
6212 (m68k_gdbarch_init): Don't set extract_return_value,
6213 store_return_values, deprecated_extract_struct_value_address and
6214 use_struct_convention. Set return_value instead. Initialize new
6215 struct_value_regnum member of `struct gdbarch_tdep'.
6216 * m68klinux-tdep.c: Update copyright year.
6217 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6218 (m68k_linux_extract_struct_value_address): Remove function.
6219 (m68k_linux_init_abi): Don't set extract_return_value,
6220 store_return_values, deprecated_extract_struct_value_address and
6221 use_struct_convention. Call m68k_svr4_init_abi but override the
6222 new struct_value_regnum member of `struct gdbarch_tdep'.
6223 * Makefile.in (m68k-tdep.o): Update dependencies.
6224
aaa75496
JB
62252004-05-03 J. Brobecker <brobecker@gnat.com>
6226
6227 * dwarf2read.c (line_header): Add new included_p field in
6228 field file_names.
6229 (partial_die_info): New field has_stmt_list. New field line_offset.
6230 (dwarf2_create_include_psymtab): New function.
6231 (dwarf2_build_include_psymtabs): New function.
6232 (add_file_name): Add forward declaration. Initialize new field.
6233 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6234 to be able to determine the list of files included by the
6235 given unit, and build their associated psymtabs.
6236 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6237 files as well.
6238 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6239 (read_file_scope): Update call to dwarf_decode_lines.
6240 (read_partial_die): Handle DW_AT_stmt_list attributes.
6241
c848556f
MC
62422004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6243
6244 Unfix PR gdb/1626.
6245 * configure.in: Revert special case for osf5.*.
6246 * configure: Regenerate.
6247
eb4556d7
JB
62482004-05-02 Jim Blandy <jimb@redhat.com>
6249
6250 Move the symbol-file-from-memory functions into their own file.
6251 * symfile-mem.c, symfile-mem.h: New files.
6252 * symfile.c (symbol_file_add_from_bfd): New function.
6253 (symbol_file_add): Call symbol_file_add_from_bfd.
6254 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6255 Moved to symfile-mem.c.
6256 (_initialize_symfile): Move definition of
6257 add-symbol-file-from-memory command to symfile-mem.c.
6258 * symfile.h (symbol_file_add_from_bfd): New declaration.
6259 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6260 * config/powerpc/linux.mt (TDEPFILES): Same.
6261 * Makefile.in (SFILES): Add symfile-mem.c.
6262 (symfile_mem_h): New variable.
6263 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6264 (symfile-mem.o): New rule.
6265
80bb239e
AC
62662004-05-01 Andrew Cagney <cagney@redhat.com>
6267
7789d0fa
AC
6268 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6269 frame_find_by_id instead of frame_relative_level.
6270 (do_enable_breakpoint): Ditto.
6271 * thread.c: Update copyright.
6272 (info_threads_command): Ditto, simplify.
6273
80bb239e
AC
6274 * frame.c (deprecated_generic_get_saved_register): Delete
6275 function, moved to "xstormy16-tdep.c".
6276 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6277 deprecated_generic_get_saved_register from "frame.c".
6278 (xstormy16_frame_saved_register): Call
6279 xstormy16_get_saved_register.
6280 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6281 static.
6282 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6283 * frame.h (deprecated_generic_get_saved_register): Delete.
6284
b2a871dd
MC
62852004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6286
6287 * dwarfread.c: Update documentation on the state of dwarf-1.
6288
0e100dab
AC
62892004-05-01 Andrew Cagney <cagney@redhat.com>
6290
acd8056e
AC
6291 * stack.c (select_frame_command): Delete call to
6292 frame_relative_level.
6293 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6294 Delete #if0 code.
6295 (frame_info): Do not print FRAMELESS.
6296 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6297 (catch_info): Delete #if0 code.
6298
0e100dab
AC
6299 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6300 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6301 of frame_relative_level.
6302 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6303 to SENTINEL_FRAME.
6304 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6305 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6306 frame_relative_level.
6307
55699d59
AC
6308 * frame.h (deprecated_set_frame_type): Delete declaration.
6309 * frame.c (deprecated_set_frame_type): Delete function, update
6310 comments.
6311
fcf70625
AC
6312 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6313 * gdbarch.h, gdbarch.c: Re-generate.
6314 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6315 (shnbsd_pc_in_sigtramp): Delete.
6316 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6317 pc_in_sigtramp.
6318 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6319 pc_in_sigtramp.
6320 * frame.h: Update comments.
6321 * ppc-linux-tdep.c: Update comments.
6322 * breakpoint.c (bpstat_what): Update comments.
6323
ac5eccb7
AC
6324 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6325 m68klinux-tdep.o's dependencies, were previously added to
6326 m68klinux-nat.o.
6327
f2524b93
AC
6328 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6329 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6330 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6331 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6332 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6333
17e20bce
AC
6334 * Makefile.in (m68klinux-nat.o): Update dependencies.
6335 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6336 (m68k_linux_sigtramp_frame_cache)
6337 (m68k_linux_sigtramp_frame_this_id)
6338 (m68k_linux_sigtramp_frame_prev_register)
6339 (m68k_linux_sigtramp_frame_unwind)
6340 (m68k_linux_sigtramp_frame_sniffer)
6341 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6342 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6343 names, use trad-frame.h.
6344 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6345 (struct m68k_sigtramp_info): Delete.
6346 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6347 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6348 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6349 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6350 "m68klinux-tdep.c".
6351
c8864fa2
AC
6352 * infrun.c (check_sigtramp2): Delete check for
6353 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6354
511dd2cd
MK
63552004-05-01 Mark Kettenis <kettenis@gnu.org>
6356
6357 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6358
8c6b0e06
AC
63592004-05-01 Andrew Cagney <cagney@redhat.com>
6360
9df0bb3f
AC
6361 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6362 (frv_linux_sigtramp_frame_cache)
6363 (frv_linux_sigtramp_frame_this_id)
6364 (frv_linux_sigtramp_frame_prev_register)
6365 (frv_linux_sigtramp_frame_unwind)
6366 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6367 include "linux" in function and variable names, directly call
6368 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6369 the latest trad-frame code.
6370 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6371 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6372 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6373 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6374 * frv-tdep.c (frv_sigtramp_frame_cache)
6375 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6376 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6377 frv-linux-tdep.c.
6378 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6379 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6380 (frv_set_sigcontext_reg_addr): Delete function.
6381
8c6b0e06
AC
6382 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6383 (DEPRECATED_SIGTRAMP_END): Delete.
6384 * gdbarch.h, gdbarch.c: Re-generate.
6385 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6386 * config/vax/tm-vaxbsd.h: Update copyright.
6387 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6388 (DEPRECATED_IN_SIGTRAMP): Define.
6389 * config/m68k/tm-nbsd.h: Update copyright.
6390 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6391 (DEPRECATED_IN_SIGTRAMP): Define.
6392
50ea7769
MK
63932004-05-01 Mark Kettenis <kettenis@gnu.org>
6394
03ac2a74
MK
6395 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6396 encondings. Fixes PR gdb/1628.
6397
50ea7769
MK
6398 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6399 DW_CFA_restore state without a matching DW_CFA_remember_state
6400 instead of aborting. Fixes PR backtrace/1589.
6401
9a5d7be1
JB
64022004-04-30 Joel Brobecker <brobecker@gnat.com>
6403
6404 * MAINTAINERS: Add self as AIX maintainer.
6405 Update my e-mail address in write-after-approval section.
6406
2593d1cd
AC
64072004-04-30 Andrew Cagney <cagney@redhat.com>
6408
ce12bbf9
AC
6409 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6410 (legacy_get_prev_frame): Ditto.
6411
36710c63
AC
6412 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6413 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6414 * mipsread.c (sigtramp_address): Delete extern variable.
6415 (mipscoff_new_init): Delete reference.
6416 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6417 (fixup_sigtramp): Delete function.
6418 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6419 (fixup_sigtramp): Delete declarations.
6420
2593d1cd
AC
6421 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6422 deprecated_pc_in_sigtramp.
6423 (ppcnbsd_pc_in_sigtramp): Delete function.
6424
2a25f91c
MK
64252004-05-01 Mark Kettenis <kettenis@gnu.org>
6426
6427 * config/m68k/nm-nbsd.h: Tweak comments.
6428 * config/m68k/nm-nbsdaout.h: Likewise.
6429
0b281939
AC
64302004-04-30 Andrew Cagney <cagney@redhat.com>
6431
6432 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6433 legacy_pc_in_sigtramp.
6434 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6435
8f2d3ea0
MK
64362004-05-01 Mark Kettenis <kettenis@gnu.org>
6437
6438 Add OpenBSD/m68k support.
6439 * NEWS (New native configurations): Mention OpenBSD/m68k.
6440 * m68kbsd-tdep.c: New file.
6441 * m68kbsd-nat.c: New file.
6442 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6443 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6444 * configure.host: Add m68k-*-openbsd.
6445 * configure.tgt: Add m68k-*-openbsd.
6446 * config/m68k/tm-obsd.h: New file.
6447 * config/m68k/obsd.mt: New file.
6448 * config/m68k/obsd.mh: New file.
6449 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6450 m68kbsd-tdep.c.
6451
c40f49a4
AC
64522004-04-30 Andrew Cagney <cagney@redhat.com>
6453
6454 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6455 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6456
e81554cd
MK
64572004-04-30 Mark Kettenis <kettenis@gnu.org>
6458
6459 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6460 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6461
d4dc1a91
BF
64622004-04-30 Brian Ford <ford@vss.fsi.com>
6463
6464 Revert 2004-04-16 change.
6465 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6466 (i386_coff_init_abi): Remove.
6467 * i386-tdep.h (i386_coff_init_abi): Remove.
6468 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6469
2f72f850
AC
64702004-04-30 Andrew Cagney <cagney@redhat.com>
6471
e492f9d6
AC
6472 * blockframe.c (find_pc_partial_function): Delete use of
6473 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6474 DEPRECATED_SIGTRAMP_END.
6475
7b7adad0
AC
6476 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6477 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6478 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6479 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6480 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6481
2f72f850
AC
6482 * defs.h (deprecated_inside_entry_file): Delete declaration.
6483 * blockframe.c (deprecated_inside_entry_file): Delete function.
6484 (legacy_frame_chain_valid): Delete call.
6485 * sh64-tdep.c (sh64_frame_chain): Delete call.
6486 * objfiles.h: Update comments.
6487 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6488 call.
6489 * frame.c (get_prev_frame): Delete call, update comments.
6490
283f90a7
BF
64912004-04-30 Brian Ford <ford@vss.fsi.com>
6492
6493 * MAINTAINERS (Write After Approval): Add myself.
6494
8ee56bcf
AC
64952004-04-30 Andrew Cagney <cagney@redhat.com>
6496
6497 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6498 * gdbarch.h, gdbarch.c: Re-generate.
6499 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6500 code.
6501
ee27e1b6
AC
65022004-04-30 Andrew Cagney <cagney@redhat.com>
6503
6504 * gdb-events.sh (selected_thread_changed)
6505 (selected_frame_level_changed, target_changed): Delete.
6506 * gdb-events.h, gdb-events.c: Re-generate.
6507 * valops.c (value_assign): Update.
6508 * stack.c (select_frame_command, up_silently_base)
6509 (down_silently_base): Update.
6510
d5ac5a39
AC
65112004-04-29 Andrew Cagney <cagney@redhat.com>
6512
6513 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6514 registers correctly.
6515 (print_gp_register_row, mips32_heuristic_proc_desc)
6516 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6517 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6518 references to mips_isa_regsize.
6519
ceae6e75
AC
65202004-04-29 Andrew Cagney <cagney@redhat.com>
6521
6522 * mips-tdep.c (struct gdbarch_tdep): Delete
6523 mips_fp_register_double.
6524 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6525 mips_abi_regsize.
6526 (mips_gdbarch_init): Do not set mips_fp_register_double.
6527 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6528
a587af0b
AC
65292004-04-29 Joel Brobecker <brobecker@gnat.com>
6530
6531 Committed by Andrew Cagney.
6532 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6533 function calls.
6534
13326b4e
AC
65352004-04-29 Andrew Cagney <cagney@redhat.com>
6536
6537 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6538 gdbarch, use mips_abi, update callers.
6539 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6540 mips_abi_regsize, update callers.
6541 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6542 mips_default_abi_regsize.
6543 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6544 mips_default_abi_regsize.
6545
711cc5cd
AC
65462004-04-29 Andrew Cagney <cagney@redhat.com>
6547
1b13c4f6
AC
6548 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6549 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6550 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6551 mips_default_abi_regsize.
6552 (mips_isa_regsize): Rename mips_regisze.
6553 * mipsnbsd-tdep.c: Update.
6554 * mips-linux-tdep.c: Update.
6555 * irix5-nat.c: Update.
6556 * mips-tdep.h (mips_isa_regsize): Update.
6557
711cc5cd
AC
6558 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6559 Delete all disabled code.
6560 * gdb-events.h, gdb-events.c: Re-generate.
6561
e63bbc88
MK
65622004-04-19 Jerome Guitton <guitton@gnat.com>
6563 Mark Kettenis <kettenis@gnu.org>
6564
6565 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6566 the function begins with a branch instruction.
6567
fd35795f
MK
65682004-04-29 Mark Kettenis <kettenis@gnu.org>
6569
6570 * i386-tdep.c: Fix spelling mistakes.
6571
c960c18f
AC
65722004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6573 Andrew Cagney <cagney@redhat.com>
6574
6575 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6576 <sys/proc.h>.
6577 * acconfig.h: Provide default _KMEMUSER value.
6578 * config.in, configure: Re-generate.
6579 * NEWS: Mention fix.
6580
50306a9d
RC
65812004-04-24 Randolph Chung <tausq@debian.org>
6582
6583 * configure.host (hppa*-*-linux*): New target.
6584 * configure.tgt (hppa*-*-linux*): Likewise.
6585 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6586 gdbarch_init_osabi() call earlier so that osabi-specific frame
6587 unwinders can be registered first.
6588 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6589 hppa-linux-nat.c.
6590 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6591 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6592 * config/pa/linux.mh: New file.
6593 * config/pa/linux.mt: New file.
6594 * config/pa/nm-linux.h: New file.
6595 * config/pa/xm-linux.h: New file.
6596 * hppa-linux-nat.c: New file.
6597 * hppa-linux-tdep.c: New file.
6598
2a6228ef
RC
65992004-04-28 Randolph Chung <tausq@debian.org>
6600
6601 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6602 return values.
6603 (hppa32_push_dummy_call): Fix small struct and floating point argument
6604 passing, and make sure the stack frame is properly aligned.
6605
82c10df6
AC
66062004-04-28 Andrew Cagney <cagney@redhat.com>
6607
d762c46a
AC
6608 * stack.c (print_stack_frame): Fix description.
6609
82c10df6
AC
6610 * NEWS: Mention gdb/gdbserver/configure execute permission
6611 changed. PR server/519.
6612
0faf0076
AC
66132004-04-28 Andrew Cagney <cagney@redhat.com>
6614
6615 * stack.c (print_stack_frame_stub): Delete declaration.
6616 (struct print_stack_frame_args, print_stack_frame)
6617 (print_frame_info, print_frame): Replace "source" with print what.
6618 Replace "print" with "print_level". Replace "args" with
6619 "print_args".
6620 * frame.h (show_and_print_stack_frame, print_stack_frame)
6621 (print_frame_info): Update declarations.
6622 * stack.c (select_and_print_frame, frame_command)
6623 (current_frame_command, up_command, down_command): Update calls -
6624 use get_selected_frame, pass "enum print_what" for source, do not
6625 call frame_relative_level.
6626 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6627 * remote-rdp.c (remote_rdp_open): Ditto.
6628 * remote-mips.c (common_open): Ditto.
6629 * remote-e7000.c (e7000_start_remote): Ditto.
6630 * ocd.c (ocd_start_remote): Ditto.
6631 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6632 * infrun.c (normal_stop): Ditto.
6633 * inflow.c (kill_command): Ditto.
6634 * infcmd.c (finish_command): Ditto.
6635 * corelow.c (core_open): Ditto.
6636 * tracepoint.c (finish_tfind_command): Ditto.
6637 * thread.c (info_threads_command, info_threads_command)
6638 (restore_current_thread, do_captured_thread_select): Ditto.
6639 * ada-tasks.c (task_command): Ditto.
6640
f4c5303c
OF
66412004-04-26 Orjan Friberg <orjanf@axis.com>
6642
6643 * frame.c: Include "observer.h".
6644 (frame_observer_target_changed): New function.
6645 (_initialize_frame): Attach target_changed observer.
6646 * regcache.c: Include "observer.h".
6647 (regcache_observer_target_changed): New function.
6648 (_initialize_regcache): Attach target_changed observer.
6649 * valops.c: Include "observer.h".
6650 (value_assign): Notify target_changed event when modifying register.
6651 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6652
7270d8f2
OF
66532004-04-26 Orjan Friberg <orjanf@axis.com>
6654
6655 From Paul Koning <pkoning@equallogic.com>:
6656 * breakpoint.c (free_valchain): New function.
6657 (insert_bp_location, delete_breakpoint): Use free_valchain.
6658 (remove_breakpoint): Do not remove the valchain.
6659 (bpstat_stop_status): If not stopped by watchpoint, skip
6660 watchpoints when generating stop status list.
6661 * infrun.c (handle_inferior_event): Make
6662 stepped_after_stopped_by_watchpoint a global variable.
6663 * remote.c (remote_stopped_data_address): Return watch data
6664 address rather than zero if stepped_after_stopped_by_watchpoint is
6665 set.
6666
02d62932
MC
66672004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6668
6669 Fix PR gdb/1626.
6670 * configure.in: Check for curses after termcap.
6671 On osf5.*, do not check for ncurses.
6672 * configure: Regenerate.
6673
3e9a183c
MK
66742004-04-25 Mark Kettenis <kettenis@gnu.org>
6675
c79ac407
MK
6676 * ppcobsd-nat.c: Include "ppc-tdep.h".
6677 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6678
3e9a183c
MK
6679 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6680 Fixes PR tdep/1623 and PR tdep/1624.
6681
38cc9c28
MC
66822004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6683
6684 * xmodem.h, xmodem.c: Remove files.
6685 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6686
7f07c5b6
RC
66872004-04-23 Randolph Chung <tausq@debian.org>
6688
6689 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6690 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6691 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6692 for handling stackless frames.
6693 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6694
9f7194c3
RC
66952004-04-23 Randolph Chung <tausq@debian.org>
6696
6697 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6698 starts at a pc before the frame is created.
6699
dcff6009
JB
67002004-04-23 Joel Brobecker <brobecker@gnat.com>
6701
6702 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6703
40711ff1 67042004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6705
6706 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6707 use convert_typed_floating to get the appropriate format.
6708
abc485a1
RC
67092004-04-22 Randolph Chung <tausq@debian.org>
6710
6711 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6712 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6713 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6714 (hppa_sign_extend): Add prototype.
6715 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6716 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6717 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6718 hppa targets will also use these functions.
6719 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6720 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6721 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6722 (hppa_gdbarch_init): Remove gdbarch setting of
6723 skip_trampoline_code, in_solib_call_trampoline and
6724 in_solib_return_trampoline.
6725 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6726 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6727 hppa_in_solib_call_trampoline.
6728 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6729 Moved from hppa-tdep.c.
6730 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6731 in_solib_call_trampoline and in_solib_return_trampoline.
6732
369aa520
RC
67332004-04-22 Randolph Chung <tausq@debian.org>
6734
6735 * hppa-tdep.c (hppa_debug): New variable.
6736 (find_unwind_entry, hppa_frame_cache): Add debug output.
6737 (_initialize_hppa_tdep): Add command to set debug flag.
6738
476be15e
AC
67392004-04-22 Andrew Cagney <cagney@redhat.com>
6740
6741 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6742 "trad-frame.h".
6743 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6744 signal trampoline unwinder.
6745 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6746
d195bc9f
MK
67472004-04-22 Mark Kettenis <kettenis@gnu.org>
6748
6749 Add OpenBSD/powerpc support.
6750 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6751 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6752 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6753 (ppc_collect_fpregset): New prototypes.
6754 * ppcobsd-nat.c: New file.
6755 * ppcobsd-tdep.c: New file.
6756 * ppcobsd-tdep.h: New file.
6757 * rs6000-tdep.c: Include "regset.h".
6758 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6759 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6760 New functions.
6761 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6762 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6763 (rs6000-tdep.o): Update dependencies.
6764 * configure.host: Add powerpc-*-openbsd.
6765 * configure.tgt: Add powerpc-*-openbsd.
6766 * config/powerpc/obsd.mh: New file.
6767 * config/powerpc/nm-obsd.h: New file.
6768 * config/powerpc/obsd.mt: New file.
6769
6f14cc33
AC
67702004-04-22 Andrew Cagney <cagney@redhat.com>
6771
fcf29e5f
AC
6772 * frame.h (show_frame_info): Delete declaration.
6773
6f14cc33
AC
6774 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6775 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6776 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6777 * frv-tdep.c (frv_frame_this_id): Ditto.
6778 * avr-tdep.c (avr_frame_this_id): Ditto.
6779
e5786a5c
EZ
67802004-04-22 Elena Zannoni <ezannoni@redhat.com>
6781
6782 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6783
26e75e5c
JB
67842004-04-22 Jim Blandy <jimb@redhat.com>
6785
6786 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6787 register number zero.
6788
d8d65dd3
MS
67892004-04-21 Michael Snyder <msnyder@redhat.com>
6790
6791 * mips-tdep.c (heuristic_proc_start):
6792 Warning() already prefixes "Warning: ".
6793
9a4105ab
AC
67942004-04-21 Andrew Cagney <cagney@redhat.com>
6795
6796 * annotate.h (deprecated_annotate_starting_hook)
6797 (deprecated_annotate_stopped_hook)
6798 (deprecated_annotate_exited_hook)
6799 (deprecated_annotate_signal_hook)
6800 (deprecated_annotate_signalled_hook): Deprecate.
6801 * tracepoint.h (deprecated_create_tracepoint_hook)
6802 (deprecated_delete_tracepoint_hook)
6803 (deprecated_modify_tracepoint_hook)
6804 (deprecated_trace_find_hook)
6805 (deprecated_trace_start_stop_hook): Deprecate.
6806 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6807 * remote.h (deprecated_target_resume_hook)
6808 (deprecated_target_wait_loop_hook): Deprecate.
6809 * gdbcore.h (deprecated_exec_file_display_hook)
6810 (deprecated_file_changed_hook): Deprecate.
6811 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6812 * defs.h (deprecated_modify_breakpoint_hook)
6813 (deprecated_command_loop_hook, deprecated_show_load_progress)
6814 (deprecated_print_frame_info_listing_hook)
6815 (deprecated_query_hook, deprecated_warning_hook)
6816 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6817 (deprecated_delete_breakpoint_hook)
6818 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6819 (deprecated_readline_begin_hook, deprecated_readline_hook)
6820 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6821 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6822 (deprecated_context_hook, deprecated_target_wait_hook)
6823 (deprecated_attach_hook, deprecated_detach_hook)
6824 (deprecated_call_command_hook, deprecated_set_hook)
6825 (deprecated_error_hook, deprecated_error_begin_hook)
6826 (deprecated_ui_load_progress_hook): Deprecate.
6827 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6828 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6829 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6830 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6831 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6832 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6833 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6834 * annotate.c, aix-thread.c: Update.
6835
62cf13cc
AC
68362004-04-21 Andrew Cagney <cagney@redhat.com>
6837
b2e31a62
AC
6838 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6839 * vaxnbsd-tdep.c: Include "gdb_string.h".
6840
62cf13cc
AC
6841 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6842 (add_symbol_file_from_memory_command): #if 0 function body, call
6843 error instead.
6844
00e32a35
AC
68452004-04-21 Andrew Cagney <cagney@redhat.com>
6846
6847 * gdbcore.h: Update copyright.
6848 (deprecated_add_core_fns): Rename add_core_fns.
6849 * win32-nat.c (_initialize_core_win32): Update.
6850 * sun3-nat.c (_initialize_core_sun3): Update.
6851 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6852 * rs6000-nat.c (_initialize_core_rs6000): Update.
6853 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6854 * nto-tdep.c (_initialize_nto_tdep): Update.
6855 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6856 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6857 * mips-nat.c (_initialize_core_mips): Update.
6858 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6859 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6860 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6861 * lynx-nat.c (_initialize_core_lynx): Update.
6862 * irix5-nat.c (_initialize_core_irix5): Update.
6863 * i386-interix-nat.c (_initialize_core_interix): Update.
6864 * cris-tdep.c (_initialize_cris_tdep): Update.
6865 * corelow.c (deprecated_add_core_fns): Update.
6866 * core-regset.c (_initialize_core_regset): Update.
6867 * core-aout.c (_initialize_core_aout): Update.
6868 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6869 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6870 * alpha-nat.c (_initialize_core_alpha): Update.
6871
13c7b1ca
JB
68722004-04-21 Jim Blandy <jimb@redhat.com>
6873
6874 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6875
7b5a2f43
DJ
68762004-04-19 Daniel Jacobowitz <drow@mvista.com>
6877
6878 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6879 Delete.
6880 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6881 (read_attribute_value): Update calls to dwarf_alloc_block.
6882 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6883 dwarf2_tmp_obstack.
6884 (psymtab_to_symtab_1): Likewise. Clean up using
6885 free_stack_comp_unit.
6886 (add_to_cu_func_list): Use the comp_unit_obstack.
6887
05cf31d1
JB
68882004-04-19 Joel Brobecker <brobecker@gnat.com>
6889
6890 * dwarf2read.c (dwarf2_flag_true_p): New function.
6891 (die_is_declaration): Use the function above. Add some comments.
6892
adf93a2f
MK
68932004-04-19 Mark Kettenis <kettenis@gnu.org>
6894
6895 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6896 architecture when registering sparcnbsd_core_osabi_sniffer.
6897 Adjust comment.
6898
748894bf
MK
68992004-04-18 Mark Kettenis <kettenis@gnu.org>
6900
f622ad42
MK
6901 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6902 return value.
6903
c4fc7f1b
MK
6904 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6905 * i386-tdep.c: Correct register numbering scheme comments
6906 throughout.
6907 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6908 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6909 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6910 (i386_gdb_arch_init): Likewise.
6911
b4ead1bd
MK
6912 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6913 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6914 ppcnbsd-tdep.o.
6915
748894bf
MK
6916 * m68k-tdep.h: Tweak comments.
6917 * m68k-tdep.c: Tweak comment.
6918
fdd72f95
RC
69192004-04-17 Randolph Chung <tausq@debian.org>
6920
6921 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6922 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6923 (hppa_hpux_som_init_abi): Set is_elf to 0.
6924 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6925 * hppa-tdep.c (low_text_segment_address): Remove global.
6926 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6927 section offset to calculate segment address.
6928 (internalize_unwinds): Define low_text_segment_address as local and
6929 pass to record_text_segment_lowaddr for ELF targets.
6930 (hppa_gdbarch_init): Zero fill tdep structure.
6931 (hppa_dump_tdep): Print tdep structure.
6932 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6933
0f8d9d59
RC
69342004-04-17 Randolph Chung <tausq@debian.org>
6935
6936 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6937 (hppa_gdbarch_init): Set pseudo_register_read.
6938 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6939 * regcache.c (supply_register): Remove check for
6940 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6941
7c46b9fb
RC
69422004-04-17 Randolph Chung <tausq@debian.org>
6943
6944 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6945 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6946 (hpread_adjust_stack_address): Move to hpread.c.
6947 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6948 obj_private_struct): Move from tm-hppa.h.
6949 * hpread.c (hppa-tdep.h): Include.
6950 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6951 (hpread_read_function_type, hpread_read_doc_function_type)
6952 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6953 directly.
6954 * pa64solib.c (hppa-tdep.h): Include.
6955 * somsolib.c (hppa-tdep.h): Include.
6956 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6957 inferior_status): Remove unused forward declarations.
6958 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6959 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6960 obj_private_struct): Move to hppa-tdep.h.
6961 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6962
8d153463
RC
69632004-04-17 Randolph Chung <tausq@debian.org>
6964
6965 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6966 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6967 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6968 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6969 Remove forward declaration and make static.
6970 (hppa_reg_struct_has_addr): Remove.
6971
350c2e5b
JB
69722004-04-16 Joel Brobecker <brobecker@gnat.com>
6973
6974 * observer.sh: Move comments in sed command to first column.
6975
bbde78fa
JM
69762004-04-16 Jason Molenda (jmolenda@apple.com)
6977
6978 * frame.c: Minor typeo corrections in comments.
6979
e0270fd9
JB
69802004-04-16 Joel Brobecker <brobecker@gnat.com>
6981
6982 * observer.c (observer_test_first_notification_function): Update
6983 function profile.
6984 (observer_test_second_notification_function): Likewise.
6985 (observer_test_third_notification_function): Likewise.
6986
3d049254
MK
69872004-04-16 Mark Kettenis <kettenis@gnu.org>
6988
6989 From Brian Ford <ford@vss.fsi.com>:
6990 * i386-tdep.c (i386_coff_init_abi): New function.
6991 * i386-tdep.h (i386_coff_init_abi): New prototype.
6992 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6993 register number translation functions for DWARF and DWARF 2.
6994
7867684d
JB
69952004-04-16 Joel Brobecker <brobecker@gnat.com>
6996
6997 * dwarf2read.c: Back out my previous change, it was incorrect.
6998
72bf9492
DJ
69992004-04-16 Daniel Jacobowitz <drow@mvista.com>
7000
7001 * dwarf2read.c: Include "hashtab.h".
7002 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7003 has_namespace_info.
7004 (struct partial_die_info): Add comments. Use bitfields to reduce
7005 memory footprint. Add scope, scope_set, has_specification,
7006 spec_offset, die_parent, die_child, and die_sibling.
7007 (peek_die_abbrev): Add prototype.
7008 (partial_read_comp_unit_head): New function, broken out from
7009 dwarf2_build_psymtabs_hard.
7010 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7011 Use partial_read_comp_unit_head. Initialize the CU and
7012 comp_unit_obstack. Update calls to read_partial_die and
7013 scan_partial_symbols. Use free_stack_comp_unit and
7014 load_partial_dies.
7015 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7016 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7017 Update calls to helper functions. Remove NAMESPACE argument.
7018 Update comments.
7019 (partial_die_parent_scope, partial_die_full_name): New functions.
7020 (add_partial_symbol): Remove namespace argument. Update call to
7021 pdi_needs_namespace. Use partial_die_full_name. Handle
7022 DW_TAG_namespace. Check has_namespace_info flag.
7023 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7024 tag. Handle namespaces.
7025 (add_partial_namespace, add_partial_enumeration): Simplify.
7026 (guess_structure_name): New function, derived from
7027 add_partial_structure.
7028 (add_partial_structure): Remove.
7029 (determine_class_name): Update comment.
7030 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7031 (is_type_tag_for_partial, load_partial_dies): New functions.
7032 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7033 Record specifications instead of following them immediately.
7034 (find_partial_die_in_comp_unit, find_partial_die)
7035 (fixup_partial_die, free_stack_comp_unit)
7036 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7037 (partial_die_hash, partial_die_eq): New functions.
7038 * Makefile.in (hashtab_h): Define.
7039 (dwarf2read.o): Update dependencies.
7040 (observer_inc, observer_h): Move to the correct section.
7041
fdc860a3
JB
70422004-04-15 Joel Brobecker <brobecker@gnat.com>
7043
7044 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7045 (die_is_declaration): Use the function above. Add comment.
7046
dc718098
JB
70472004-04-15 Joel Brobecker <brobecker@gnat.com>
7048
7049 * dwarf2read.c (read_structure_scope): Identify stub types
7050 using die_is_declaration() only.
7051
8718a420
RM
70522004-04-15 Roland McGrath <roland@redhat.com>
7053
7054 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7055 argument instead of NAME.
7056 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7057 in call to symbol_file_add_with_addrs_or_offsets.
7058 (build_addr_info): New function, helper for ...
7059 (symbol_file_add_from_memory): New function.
7060 (add_symbol_file_from_memory_command): New function using that.
7061 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7062 (pre_add_symbol_hook): Add const to argument type.
7063 * symfile.h (symbol_file_add_from_memory): Declare it.
7064
8b910bab
MK
70652004-04-15 Mark Kettenis <kettenis@gnu.org>
7066
9f076e7a
MK
7067 * NEWS (New native configurations): Mention OpenBSD/vax.
7068 * configure.host: Add vax-*-openbsd*.
7069 * config/vax/obsd.mh: New file.
7070 * config/vax/nm-obsd.h: New file.
7071
8b910bab
MK
7072 * vax-tdep.c: Include "regset.h".
7073 (vax_supply_gregset): New function.
7074 (vax_gregset): New variable.
7075 (vax_regset_from_core_section): New function.
7076 (vax_gdbarch_init): Set regset_from_core_section.
7077 * Makefile.in (vax-tdep.o): Update dependencies.
7078
7a464420
AC
70792004-04-15 Andrew Cagney <cagney@redhat.com>
7080
7081 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7082 (observer_normal_stop_notification_stub)
7083 (observer_attach_normal_stop, observer_detach_normal_stop):
7084 Delete, replaced by #include "observer.inc".
7085 * infrun.c (normal_stop): Pass "stop_bpstat" to
7086 observer_notify_normal_stop.
7087 * Makefile.in (observer_inc): Define.
7088 (observer.o): Update dependencies.
7089 (observer.h, observer.inc): New rules.
7090 * observer.h: Delete file.
7091 * observer.sh: New file.
7092
e36ad527
MK
70932004-04-15 Mark Kettenis <kettenis@gnu.org>
7094
7095 * vax-tdep.c (vax_frame_cache): Fix typo.
7096
67b441e1
MK
70972004-04-14 Mark Kettenis <kettenis@gnu.org>
7098
6f606e1c
MK
7099 * NEWS (New native configurations): Mention NetBSD/vax.
7100 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7101 * config/vax/nbsdelf.mh: New file.
7102 * config/vax/nbsdaout.mh: New file.
7103 * config/vax/nm-nbsd.h: New file.
7104 * config/vax/nm-nbsdaout.h: New file.
7105
9c5519a5
MK
7106 * vaxnbsd-tdep.c: New file.
7107 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7108 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7109 * config/vax/nbsd.mt: New file.
7110 * config/vax/tm-nbsd.h: New file.
7111
4844a614
MK
7112 * Makefile.in (vaxbsd-nat.o): New dependency.
7113
67b441e1
MK
7114 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7115 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7116 struct_addr arguments. Don't push return value address.
7117 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7118 arguments to vax_store_arguments. Store return value address in
7119 R1.
7120 (vax_store_struct_return, vax_extract_return_value)
7121 (vax_store_return_value): Remove functions.
7122 (vax_return_value): New function.
7123 (vax_gdbarch_init): Set return value. Don't set
7124 deprecated_store_struct_return, deprecated_extract_struct_return
7125 and deprecated_store_return_value.
7126
6672f2ae
AS
71272004-04-14 Andreas Schwab <schwab@suse.de>
7128
7129 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7130 value buffer.
7131 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7132
7346c184
MK
71332004-04-14 Mark Kettenis <kettenis@gnu.org>
7134
7135 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7136 (vax_unwind_dummy_id): New functions.
7137 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7138 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7139 variables.
7140 (vax_fix_call_dummy): Remove function.
7141 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7142 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7143 call_dummy_location, deprecated_call_dummy_words,
7144 deprecated_sizeof_call_dummy_words,
7145 deprecated_call_dummy_breakpoint_offset,
7146 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7147 and deprecated_dummy_write_sp.
7148
58e23df4
DC
71492004-04-13 David Carlton <carlton@kealia.com>
7150
7151 * MAINTAINERS: Move myself to "paper trail" section.
7152
5e6b39ff
MK
71532004-04-12 Mark Kettenis <kettenis@gnu.org>
7154
7def7fef
MK
7155 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7156 "trad-frame.h".
7157 (vax_frame_init_saved_regs): Remove function.
7158 (vax_sigtramp_saved_pc): Remove function.
7159 (vax_frame_saved_pc): Remove function.
7160 (vax_frame_args_address): Remove function.
7161 (vax_frame_num_args): Rewrite.
7162 (vax_frame_chain): Remove function.
7163 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7164 VAX_FP_REGNUM.
7165 (vax_pop_frame): Likewise.
7166 (vax_saved_pc_after_call): Remove function.
7167 (struct vax_frame_cache): New structure.
7168 (vax_frame_cache): New function.
7169 (vax_frame_this_id): New function.
7170 (vax_frame_prev_register): New function.
7171 (vax_frame_unwind): New variable.
7172 (vax_frame_sniffer): New function.
7173 (vax_frame_base_address): New function.
7174 (vax_frame_args_address): New function.
7175 (vax_frame_base): New variable.
7176 (vax_unwind_pc): New function.
7177 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7178 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7179 deprecated_frame_chain, deprecated_frame_saved_pc,
7180 deprecated_frame_args_address and
7181 deprecated_frame_init_saved_regs.
7182 * Makefile.in (vax-tdep.o): Update dependencies.
7183
53284fc1
MK
7184 * vaxbsd-nat.c: New file.
7185
5e6b39ff
MK
7186 * vax-tdep.h: Update copyright year. Adjust comments.
7187 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7188 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7189 (vax_regnum): New enum. Replacing...
7190 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7191 (VAX_PS_REGNUM): ... these removed macros.
7192 * vax-tdep.c (vax_register_name): Remove prototype.
7193 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7194 (vax_register_byte, vax_register_raw_size,
7195 vax_register_virtual_size, vax_register_virtual_type): Remove
7196 functions.
7197 (vax_register_type): New function.
7198 (vax_breakpoint_from_pc): Reorganize.
7199 (vax_gdbarch_init): Set register_type. Don't set
7200 deprecated_register_size, deprecated_register_bytes,
7201 deprecated_register_byte, deprecated_register_raw_size,
7202 deprecated_max_register_raw_size,
7203 deprecated_register_virtual_size,
7204 deprecated_max_register_virtual_size and
7205 deprecated_register_virtual_type. Add comment on stack direction.
7206
e9c71e9f
MK
72072004-04-11 Mark Kettenis <kettenis@gnu.org>
7208
7209 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7210 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7211 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7212
d46f1176 72132004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7214
d46f1176
RC
7215 * MAINTAINERS (write after approval): Add myself.
7216
a2a84a72
RC
72172004-04-07 Randolph Chung <tausq@debian.org>
7218
7219 * hppa-tdep.c (hppa_inner_than): Remove.
7220 (is_pa_2): Remove unused static variable.
8718a420 7221 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7222
e85c3284
PH
72232004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7224
7225 * language.h (language_defn): Add new la_post_parser field.
7226 * parser-defs.h (null_post_parser): New declaration (default for
7227 la_post_parser).
8718a420 7228
e85c3284
PH
7229 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7230 insert call to that function.
7231 (parse_exp_in_context): New function, including code formerly in
8718a420 7232 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7233 prefixification.
7234 (parse_expression_in_context): New exported function.
7235 (null_post_parser): New definition.
7236 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7237
e85c3284
PH
7238 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7239 * c-lang.c (c_language_defn): Ditto.
7240 (cplus_language_defn): Ditto.
7241 (asm_language_defn): Ditto.
7242 (minimal_language_defn): Ditto.
7243 * f-lang.c (f_language_defn): Ditto.
7244 * jv-lang.c (java_language_defn): Ditto.
7245 * language.c (unknown_language_defn): Ditto.
7246 (auto_language_defn): Ditto.
7247 (local_language_defn): Ditto.
7248 * m2-lang.c (m2_language_defn): Ditto.
7249 * scm-lang.c (scm_language_defn): Ditto.
7250 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7251
d9f8c85b
MK
72522004-04-10 Mark Kettenis <kettenis@gnu.org>
7253
fa34704a
MK
7254 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7255 (amd64nbsd_mcontext_addr): New function.
7256 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7257 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7258 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7259
403e1656
MK
7260 * corelow.c (core_xfer_partial): Fix coding standards violation.
7261 Add support for TARGET_OBJECT_WCOOKIE.
7262
a57e5a95
MK
7263 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7264 deprecated_pc_in_sigtramp.
7265 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7266 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7267 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7268 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7269 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7270 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7271 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7272
377d9ebd
MK
7273 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7274 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7275 Fix typo.
7276
f0ef85a5
MK
7277 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7278 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7279 (amd64_collect_fxsave): Likewise.
7280
d9f8c85b
MK
7281 * i386-sol2-tdep.c: Include "gdb_string.h".
7282 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7283 name.
7284 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7285
75f501b5
MK
72862004-04-10 Mark Kettenis <kettenis@gnu.org>
7287
7288 * i386-sol2-tdep.c: Include "solib-svr4.h".
7289 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7290 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7291 * config/i386/tm-i386sol2.h: Include :solib.h".
7292 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7293 solib-svr4.o and solib-legacy.o.
7294 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7295 solib-svr4.o.
7296
b31bc724
MK
72972004-04-09 Mark Kettenis <kettenis@gnu.org>
7298
18bbbd9e
MK
7299 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7300 whether a register is supplied by PTRACE_GETFPREGS.
7301 (store_inferior_registers): Likewise.
7302 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7303 whether a register is supplied by PT_GETFPREGS.
7304 (store_inferior_registers): Likewise.
7305
3c30bf1b
MK
7306 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7307 * config/i386/linux64.mt (TDEPFILES): Likewise.
7308
a4194092
MK
7309 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7310
911bc6ee
MK
7311 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7312 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7313 the program counter is in the range specified by `struct
7314 gdbarch_tdep'.
7315 * amd64-linux-tdep.c: Include "symtab.h".
7316 (amd64_linux_pc_in_sigtramp): Remove function.
7317 (amd64_linux_sigtramp_p): New function.
7318 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7319 deprecated_pc_in_sigtramp.
7320 * amd64nbsd-tdep.c: Include "symtab.h".
7321 (amd64nbsd_sigtramp_p): New function.
7322 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7323 deprecated_pc_in_sigtramp.
7324 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7325 few comments.
7326 (amd64obsd_pc_in_sigtramp): Remove function.
7327 (amd64obsd_sigtramp_p): New function.
7328 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7329 deprecated_pc_in_sigtramp.
7330 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7331 (i386bsd_pc_ins_sigtramp): Remove prototype.
7332 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7333 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7334 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7335 the program counter is in the range specified by `struct
7336 gdbarch_tdep'.
7337 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7338 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7339 (i386_go32_pc_in_sigtramp): Remove function.
7340 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7341 Initialize TDEP->sigtramp_p.
7342 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7343 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7344 deprecated_pc_in_sigtramp.
7345 * i386-linux-tdep.c: Adjust comments.
7346 (i386_linux_pc_in_sigtramp): Remove function.
7347 (i386_linux_sigtramp_p): New function.
7348 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7349 deprecated_pc_in_sigtramp.
7350 * i386-nto-tdep.c: Update copyright year.
7351 (i386nto_pc_in_sigtramp): Remove function.
7352 (i386nto_sigtramp_p): New function.
7353 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7354 SP_REGNUM.
7355 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7356 deprecated_pc_in_sigtramp.
7357 * i386-sol2-tdep.c: Update copyright year.
7358 (i386_sol2_pc_in_sigtramp): Remove function.
7359 (i386_sol2_sigtramp_p): New function.
7360 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7361 deprecated_pc_in_sigtramp.
7362 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7363 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7364 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7365 deprecated_sigtramp_start and deprecated_sigtramp_end.
7366 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7367 (i386nbsd_pc_in_sigtramp): Remove function.
7368 (i386nbsd_sigtramp_p): New function.
7369 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7370 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7371 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7372 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7373 (i386obsd_pc_in_sigtramp): Remove function.
7374 (i386obsd_sigtramp_p): New function.
7375 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7376 functions.
7377 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7378 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7379 TDEP->sigtramp_p.
7380 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7381 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7382 dependencies.
7383
e083e6ec
MK
7384 * config/i386/i386aout.mt: Remove file.
7385
bd153b94
MK
7386 * configure.tgt: Remove i[34567]86-*-go32*,
7387 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7388 and i[34567]86-*-isc*. Set gdb_target to i386 for
7389 i[34567]86-*-netware* and i[34567]86-*-*.
7390 * config/i386/i386.mt: New file.
7391 * config/i386/embed.mt: Remove file.
7392 * config/i386/go32.mt: Remove file.
7393 * config/i386/i386nw.mt: Remove file.
7394 * config/i386/i386v.mt: Remove file.
7395 * config/i386/tm-go32.h: Remove file.
7396
4a1bcc8c
MK
7397 * tui/tui-hooks.c: Include "readline/readline.h" after
7398 "gdb_curses.h" instead of before.
7399 * tui/tui-io.c: Likewise.
7400
f9a79064
MK
7401 * tui/tui.c: Fix typo in comment.
7402
b31bc724
MK
7403 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7404
f83f82bc
AC
74052004-04-08 Andrew Cagney <cagney@redhat.com>
7406
7407 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7408 (deprecated_exception_support_initialized): Declare.
8718a420 7409 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7410 (initialize_hp_cxx_exception_support)
7411 (child_enable_exception_callback): Update.
7412 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7413 (deprecated_exception_support_initialized): Rename
7414 deprecated_exception_catchpoints_are_fragile and
7415 deprecated_exception_support_initialized.
7416 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7417
7418 * symtab.c (deprecated_hp_som_som_object_present): Rename
7419 hp_som_som_object_present.
7420 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7421 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7422 Update. Delete extern declaration.
7423 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7424 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7425 (parse_nested_classes_for_hpacc): Ditto.
7426 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7427 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7428 (initialize_hp_cxx_exception_support): Ditto.
7429 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7430 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7431 (cp_print_class_method): Ditto.
8718a420 7432 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7433 (c_type_print_base): Ditto.
7434 * c-exp.y (hp_som_som_object_present): Ditto.
7435
fb2be677
AC
74362004-04-08 Andrew Cagney <cagney@redhat.com>
7437
7438 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7439 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7440 (frame_unwind_find_by_frame): Re-implement the unwind code so
7441 that it can both prepend and append sniffers. Replace
7442 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7443 * tramp-frame.c (tramp_frame_append): Use
7444 frame_unwind_prepend_unwinder.
7445 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7446 frame_unwind_register_unwinder.
7447 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7448 tramp_frame_append.
7449 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7450 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7451 (mips_linux_init_abi): Update.
7452
67faf007
KB
74532004-04-08 Kevin Buettner <kevinb@redhat.com>
7454
7455 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7456 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7457 file support.
7458
8973ff21
KB
74592004-04-07 Kevin Buettner <kevinb@redhat.com>
7460
7461 * ia64-tdep.c (elf.h): Don't include.
7462 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7463
4a0e2f88
JM
74642004-04-07 Jason Molenda (jmolenda@apple.com)
7465
7466 * frame.h: Typeo corrections in comments.
7467
9872ad24
JB
74682004-04-07 Jim Blandy <jimb@redhat.com>
7469
7470 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7471 %esp and %ebp
7472
70b216c8
MK
74732004-04-07 Mark Kettenis <kettenis@gnu.org>
7474
11d5789c
MK
7475 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7476 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7477 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7478 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7479 and solib-legacy.o.
7480 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7481 solib-svr4.o.
7482 * config/sparc/tm-sol2.h: Update copyright year. Include
7483 "solib.h".
7484
70b216c8
MK
7485 * sparc-sol2-tdep.c: Update copyright year. Include
7486 "solib-svr4.h".
7487 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7488 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7489 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7490 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7491 dependencies.
7492
6339dc9e
AC
74932004-04-06 Andrew Cagney <cagney@redhat.com>
7494
7495 * infttrace.c: Include "infttrace.h".
7496 * infttrace.h: Include "target.h".
7497 * Makefile.in (infttrace_h): Update.
7498 (infttrace.o): Update.
8718a420 7499
93449403
AC
75002004-04-06 Andrew Cagney <cagney@redhat.com>
7501
6d518969
AC
7502 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7503 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7504 move extern declarations from here ...
7505 * infttrace.h: ... to here.
7506 * Makefile.in (hppah-nat.o): Update dependencies.
7507
85f4f2d8
AC
7508 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7509 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7510 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7511 (hppa_breakpoint_from_pc): Delete.
7512
93449403
AC
7513 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7514
71456ec6
AC
75152004-04-05 Andrew Cagney <cagney@redhat.com>
7516
7517 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7518 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7519 <sys/file.h>.
8718a420 7520
4c02c60c
AC
75212004-04-06 Randolph Chung <tausq@debian.org>
7522
7523 Committed by Andrew Cagney (mechanical change).
7524 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7525 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7526 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7527 child_enable_exception_callback, current_ex_event,
7528 null_symtab_and_line, child_get_current_exception_event,
7529 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7530 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7531 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7532 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7533 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7534 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7535 Move hpux-specific definitions ...
7536 * hppa-hpux-tdep.c: ... to here.
7537
3a515653
AC
75382004-04-05 Andrew Cagney <cagney@redhat.com>
7539
7540 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7541 skip_prologue_using_sal.
7542
c1730d02
AC
75432004-04-05 Andrew Cagney <cagney@redhat.com>
7544
7545 * config/i386/tm-i386.h: Delete file.
7546 * config/i386/tm-vxworks.h: Update copyright, do not include
7547 "tm-i386.h".
7548 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7549 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7550 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7551 * config/i386/ncr3000.mt (TM_FILE): Delete.
7552 * config/i386/interix.mt (TM_FILE): Delete.
7553 * config/i386/i386v.mt (TM_FILE): Delete.
7554 * config/i386/i386nw.mt (TM_FILE): Delete.
7555 * config/i386/i386gnu.mt (TM_FILE): Delete.
7556 * config/i386/i386aout.mt (TM_FILE): Delete.
7557 * config/i386/embed.mt (TM_FILE): Delete.
7558
8b67aa36
KB
75592004-04-05 Kevin Buettner <kevinb@redhat.com>
7560
7561 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7562 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7563 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7564 (accg7_regnum): New constants.
7565 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7566 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7567 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7568 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7569 for accg registers.
7570 (frv_register_sim_regno): Update spr_map[].
7571
3c7012f5
AC
75722004-04-04 Andrew Cagney <cagney@redhat.com>
7573
7574 * config/mips/xm-riscos.h: Delete.
7575 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7576 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7577 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7578 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7579 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7580 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7581 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7582 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7583 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7584 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7585 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7586 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7587 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7588 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7589 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7590 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7591 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7592 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7593 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7594 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7595 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7596 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7597 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7598 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7599 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7600 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7601
3c7012f5
AC
7602 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7603 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7604 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7605 * configure.host: Remove m680[01]0-sun-sunos3*,
7606 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7607 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7608 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7609 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7610 mips-*-riscos*.
7611 * NEWS: Mention removed systems.
7612
99d16a21
AC
76132004-04-04 Andrew Cagney <cagney@redhat.com>
7614
7615 GDB 6.1 release created from 6.1 branch.
7616
6cdf9d98
AC
76172004-04-04 Andrew Cagney <cagney@redhat.com>
7618
98d346c3
AC
7619 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7620 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7621 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7622
6cdf9d98
AC
7623 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7624 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7625 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7626
859a326d
JB
76272004-04-03 Jim Blandy <jimb@redhat.com>
7628
7629 * MAINTAINERS: Chris Faylor has changed employers; add him to
7630 "paper trail" section, and update his E-mail address.
7631
b87178c3
AC
76322004-04-03 Andrew Cagney <cagney@redhat.com>
7633
4ea2acf0
AC
7634 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7635 generic dummy frames.
7636 * dummy-frame.c: Update copyright.
7637 (dummy_frame_sniffer): Delete check for generic dummy frames.
7638
d0bd2d18 7639 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7640 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7641 (REG_PARM_STACK_SPACE): Delete.
7642 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7643 Inline reference to REG_PARM_STACK_SPACE.
7644
b87178c3
AC
7645 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7646 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7647 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7648 (FRAME_BASE_BEFORE_SIGTRAMP)
7649 (hppa32_hpux_frame_base_before_sigtramp)
7650 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7651 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7652 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7653 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7654 (FRAME_BASE_BEFORE_SIGTRAMP)
7655 (hppa64_hpux_frame_base_before_sigtramp)
7656 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7657
43e2e1a0
AC
76582004-04-03 Andrew Cagney <cagney@redhat.com>
7659
7660 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7661
ddc135a4
AC
76622004-04-02 Andrew Cagney <cagney@redhat.com>
7663
7664 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7665 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7666 * dummy-frame.h: Delete out-of-date comments.
7667 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7668 * gdbarch.h, gdbarch.c: Re-generate.
7669
d15bfd3a 76702004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7671
d15bfd3a
AC
7672 Committed by Andrew Cagney <cagney@redhat.com>.
7673 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7674 into account an instruction saving a register if we have already
7675 seen an earlier instruction saving that same register.
7676
f04ceafa
AC
76772004-04-02 Andrew Cagney <cagney@redhat.com>
7678
08be3abd
AC
7679 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7680 * gdbarch.h, gdbarch.c: Re-generate.
7681 * frame.c (legacy_get_prev_frame): Delete references to
7682 DEPRECATED_INIT_FRAME_PC_FIRST.
7683
f04ceafa
AC
7684 * infrun.c (pc_in_sigtramp): Delete function.
7685 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7686 get_frame_type.
7687
08e69816
AC
76882004-04-02 Andrew Cagney <cagney@redhat.com>
7689
7690 * infrun.c (handle_step_into_function): Delete code conditional on
7691 legacy_frame_p.
7692 (handle_inferior_event, step_over_function): Ditto.
7693
adb54772
AC
76942004-04-02 Andrew Cagney <cagney@redhat.com>
7695
7696 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7697 "previous frame inner to this frame" test.
7698
304396fb
AC
76992004-04-02 Andrew Cagney <cagney@redhat.com>
7700
7701 * frame.c (safe_frame_unwind_memory): New function.
7702 * frame.h (safe_frame_unwind_memory): Declare. Update description
7703 of /safe_/ methods.
7704 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7705 "next_frame". Use safe_frame_unwind_memory.
7706 (tramp_frame_sniffer): Update call to tramp_frame_start.
7707
6502dd73
DJ
77082004-04-01 Daniel Jacobowitz <drow@mvista.com>
7709
7710 * dwarf2read.c (dwarf2_objfile_data_key): New.
7711 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7712 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7713 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7714 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7715 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7716 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7717 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7718 Remove variables.
7719 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7720 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7721 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7722 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7723 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7724 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7725 Remove macros.
7726 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7727 data.
7728 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7729 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7730 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7731 (read_partial_die, read_full_die, read_indirect_string)
7732 (dwarf_decode_line_header, dwarf_decode_macros)
7733 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7734 Update uses of removed variables.
7735 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7736 of removed macros.
7737 (_initialize_dwarf2_read): New function.
7738 * symfile.h (dwarf2_has_info): Update prototype.
7739 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7740 * elfread.c (elf_symfile_read): Likewise.
7741
408752b0
JB
77422004-04-01 Jim Blandy <jimb@redhat.com>
7743
9f744501
JB
7744 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7745 function for register numbers on all the rs6000-derived targets.
7746 (rs6000_gdbarch_init): Don't register a separate
7747 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7748 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7749 variants.
7750
408752b0
JB
7751 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7752 numbering.
7753
2de41bce
PH
77542004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7755
7756 * valarith.c: Update copyright notice.
7757 (value_add): Handle range types.
7758 (value_sub): Ditto.
7759 (value_equal): Ditto.
7760 (value_less): Ditto.
7761 (value_neg): Ditto.
7762 (value_complement): Ditto.
8718a420 7763 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7764 eliminiating unnecessary COERCE_ENUMs.
8718a420 7765
5613d8d3
AC
77662004-03-31 Andrew Cagney <cagney@redhat.com>
7767
7768 * frame.h (frame_unwind_id): Declare.
7769 * frame.c (frame_unwind_id): New function.
7770 (get_prev_frame_1): New function.
7771 (frame_debug_got_null_frame): New function.
7772 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7773 code proper to prev_frame, update description.
7774 * infrun.c (step_over_function): Use frame_unwind_id.
7775
c4557624
JB
77762004-04-31 J. Brobecker <brobecker@gnat.com>
7777
7778 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7779 (hppa64_push_dummy_call): Likewise.
7780
3e6bb910
JB
77812004-03-30 Jim Blandy <jimb@redhat.com>
7782
7783 From Ulrich Weigand:
7784 * utils.c (query): Do not use a va_list variable multiple times.
7785
a2f23071
DJ
77862004-03-29 Daniel Jacobowitz <drow@mvista.com>
7787
7788 * Makefile.in (linux_nat_h): Update dependencies.
7789 * configure.in: Check for <gnu/libc-version.h>.
7790 * configure: Regenerate.
7791 * config.in: Regenerate.
7792 * linux-nat.h: Include "target.h". Add waitstatus field to
7793 struct lwp_info.
7794 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7795 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7796 to.
7797 (lin_lwp_handle_extended): New function. Handle clone events.
7798 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7799 thread exit events.
7800 (child_wait): Handle clone events.
7801 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7802 * linux-nat.c (linux_enable_event_reporting): Turn on
7803 PTRACE_O_TRACECLONE.
7804 (linux_handle_extended_wait): Handle clone events.
7805 * thread-db.c: Include <gnu/libc-version.h>.
7806 (struct private_thread_info): Add dying flag.
7807 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7808 higher.
7809 (attach_thread): Update comments. Handle dying threads.
7810 (detach_thread): Set the dying flag.
7811 (check_event): Always call attach_thread.
7812
8d5f9dcb
DJ
78132004-03-29 Daniel Jacobowitz <drow@mvista.com>
7814
7815 * mips-tdep.c (mips_pdr_data): New.
7816 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7817 (_initialize_mips_tdep): Initialize mips_pdr_data.
7818
66337bb1
CV
78192004-03-29 Corinna Vinschen <vinschen@redhat.com>
7820
7821 * minsyms.c (install_minimal_symbols): Move dropping leading
7822 char from linkage name from here...
7823 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7824 test for "__gnu_compiled*" symbols.
7825
e802b915
JB
78262004-03-28 Jim Blandy <jimb@redhat.com>
7827
7828 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7829 registers to temp register r0 and byte stores as prologue
7830 instructions.
7831
72b56458
AC
78322004-03-28 Andrew Cagney <cagney@redhat.com>
7833
7834 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7835 arm*-*-*.
7836
0bfbda3b
SC
78372004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7838
7839 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7840 and switch the layout to force a display of register window.
7841
5a7225ed
JB
78422004-02-26 J. Brobecker <brobecker@gnat.com>
7843
7844 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7845 of the INTEGER class.
7846
81a07a45
JB
78472004-03-26 Jim Blandy <jimb@redhat.com>
7848
7849 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7850 bytes long on PPC GNU/Linux.
7851
8c691c7a
DC
78522004-03-26 David Carlton <carlton@kealia.com>
7853
7854 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7855
103a0089
AC
78562004-03-25 Andrew Cagney <cagney@redhat.com>
7857
7858 * PROBLEMS: Add general section titles, remove references to
7859 specific releases.
7860
7a5ea0d4
DJ
78612004-03-25 Daniel Jacobowitz <drow@mvista.com>
7862
7863 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7864 INT_REGISTER_SIZE.
7865 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7866 FP_REGISTER_VIRTUAL_SIZE.
7867 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7868 of DEPRECATED_REGISTER_RAW_SIZE.
7869 (arm_register_type): Add gdbarch argument.
7870 (arm_register_raw_size, arm_register_virtual_size): Delete.
7871 (arm_register_byte, arm_extract_return_value)
7872 (arm_store_return_value, arm_get_longjmp_target): Update references
7873 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7874 (arm_gdbarch_init): Likewise. Don't set
7875 deprecated_register_raw_size, deprecated_register_virtual_size,
7876 deprecated_max_register_raw_size,
7877 deprecated_max_register_virtual_size, or
7878 deprecated_max_register_virtual_type. Do set register_type.
7879 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7880 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7881 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7882 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7883 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7884 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7885 INT_REGISTER_SIZE.
7886 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7887 (remote_rdp_store_register): Likewise.
7888
5792a79b
DJ
78892004-03-24 Daniel Jacobowitz <drow@mvista.com>
7890
7891 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7892 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7893 to after osabi initialization.
7894 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7895 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7896 functions.
7897 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7898 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7899 variables.
7900 (mips_linux_init_abi): Append signal trampoline unwinders.
7901
1196bfda
AC
79022004-03-24 Andrew Cagney <cagney@redhat.com>
7903
7904 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7905 * tramp-frame.c: Include "gdb_assert.h".
7906 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7907 correct sizeof.
7908 (tramp_frame_append): Validate the tramp frame's instructions.
7909 * Makefile.in (tramp-frame.o): Update dependencies.
7910
4be282b4
AC
79112004-03-23 Andrew Cagney <cagney@redhat.com>
7912
7913 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7914
69aec09b
AC
79152004-03-23 Andrew Cagney <cagney@redhat.com>
7916
7917 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7918 Nasser as past testsuite/lib/ (and other) maintainers.
7919
63ed89b4
DJ
79202004-03-23 Daniel Jacobowitz <drow@mvista.com>
7921
7922 * infcmd.c (attach_command): Reread symbols if we already have
7923 an exec file.
7924
f3b36427
AC
79252004-03-23 Andrew Cagney <cagney@redhat.com>
7926
7927 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7928
aa2a3f87
AC
79292004-03-23 Andrew Cagney <cagney@redhat.com>
7930
7931 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7932 * gdbarch.h, gdbarch.c: Re-generate.
7933 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7934 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7935 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7936 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7937 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7938 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7939 (DEPRECATED_SIGTRAMP_START): Update.
7940 * blockframe.c (find_pc_sect_partial_function): Update.
7941 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7942
00cac895
DJ
79432004-03-23 Daniel Jacobowitz <drow@mvista.com>
7944
7945 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7946 if necessary.
7947
f561f026
AC
79482004-03-23 Andrew Cagney <cagney@redhat.com>
7949
7950 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7951 predicate, deprecate.
7952 * gdbarch.h, gdbarch.c: Re-generate.
7953 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7954 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7955 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7956 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7957 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7958 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7959 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7960 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7961 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7962 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7963 * blockframe.c (find_pc_partial_function): Update.
7964 * breakpoint.c (bpstat_what): Update.
7965 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7966 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7967 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7968 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7969 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7970 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7971 * i386-nto-tdep.c (i386nto_init_abi): Update.
7972 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7973 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7974 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7975 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7976 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7977 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7978 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7979 * infrun.c (pc_in_sigtramp): Update.
7980 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7981 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7982 * mips-tdep.c (mips_gdbarch_init): Update.
7983 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7984 * ppc-linux-tdep.c: Update comment.
7985 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7986 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7987 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7988 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7989 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7990 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7991 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7992 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7993 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7994 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7995
8050c72f
AC
79962004-03-23 Andrew Cagney <cagney@redhat.com>
7997
d2259dd3
AC
7998 * tramp-frame.h, tramp-frame.h: New files.
7999 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8000 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8001
8050c72f
AC
8002 * Makefile.in: Update all dependencies.
8003
0db9b4b7
AC
80042004-03-23 Andrew Cagney <cagney@redhat.com>
8005
8006 * Makefile.in (trad_frame_h): Add $(frame_h).
8007 * trad-frame.h: Update copyright. Include "frame.h".
8008 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8009 (trad_frame_set_id, trad_frame_get_id): Declare.
8010 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8011 * trad-frame.c: Update copyright.
8012 (struct trad_frame_cache): Define.
8013 (trad_frame_cache_zalloc): New function.
8014 (trad_frame_set_id, trad_frame_get_id): New functions.
8015 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8016
8e645ae7
AC
80172004-03-22 Andrew Cagney <cagney@redhat.com>
8018
8019 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8020 s390_pltstub_unwind_cache.
8021 (s390_stub_frame_unwind_cache): Rename
8022 s390_pltstub_frame_unwind_cache.
8023 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8024 (s390_stub_frame_prev_register): Rename
8025 s390_pltstub_frame_prev_register.
8026 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8027 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8028
8029 From Ulrich Weigand:
8030 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8031 pointer calls like PLT calls.
8032
34fcf120
DJ
80332004-03-22 Daniel Jacobowitz <drow@mvista.com>
8034
8035 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8036 PC rather than the partial function start address. Use the start
8037 address to sanity check the found PDR.
8038
5b917078
DJ
80392004-03-22 Daniel Jacobowitz <drow@mvista.com>
8040
8041 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8042 linux_handle_extended_wait.
8043
8adf9e78
AC
80442004-03-22 Andrew Cagney <cagney@redhat.com>
8045
c3122434
AC
8046 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8047 function.
8048
8adf9e78
AC
8049 * frame.h (generic_pop_current_frame): Delete declaration.
8050 (deprecate_pop_dummy_frame): Deprecate
8051 generic_pop_dummy_frame.
8052 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8053 (generic_pop_current_frame): Delete function.
8054 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8055 generic_pop_current_frame.
8056 * v850-tdep.c (v850_pop_frame): Update.
8057 * mcore-tdep.c (mcore_pop_frame): Update.
8058 * sh64-tdep.c (sh64_pop_frame): Update.
8059 * h8300-tdep.c (h8300_pop_frame): Update.
8060
90ba813f
AC
80612004-03-22 Andrew Cagney <cagney@redhat.com>
8062
8063 * frame.h (deprecated_pc_in_call_dummy): Rename
8064 generic_pc_in_call_dummy.
8065 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8066 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8067 generic_pc_in_call_dummy.
8068 (pc_in_dummy_frame): Make static.
8069 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8070 * gdbarch.h, gdbarch.c: Re-generate.
8071 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8072 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8073 (legacy_get_prev_frame): Ditto.
8074 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8075 comment.
8718a420 8076
ca4bb888
AC
80772004-03-21 Andrew Cagney <cagney@redhat.com>
8078
244675f9
AC
8079 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8080 declaration and out-of-date comment.
8081 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8082 Delete function.
8083 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8084 deprecated_pc_in_call_dummy.
8085
ca4bb888
AC
8086 * infrun.c (handle_inferior_event): For non legacy frames, use the
8087 frame ID and frame type to identify a signal trampoline. Update
8088 comments.
8089
1777c7b4
NW
80902004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8091
8092 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8093 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8094
82417da5
AC
80952004-03-21 Andrew Cagney <cagney@redhat.com>
8096
8097 * frame-unwind.h: Update copyright.
8098 (struct frame_data): Add opaque declaration.
8099 (frame_sniffer_ftype): Declare.
8100 (struct frame_unwind): Add "unwind_data" and "sniffer".
8101 (frame_unwind_register_unwinder): Declare.
8102 (frame_unwind_find_by_frame): Add parameter "this_cache".
8103 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8104 (legacy_get_prev_frame, legacy_get_prev_frame)
8105 (get_frame_type): Pass the prologue_cache to
8106 frame_unwind_find_by_frame.
8107 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8108 "unwinder".
8109 (frame_unwind_register_unwinder): New function.
8110 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8111
b2ba182e
PH
81122004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8113
8114 * bcache.c (print_percentage): Use floating point to avoid
8115 incorrect results when portion*100 overflows.
8116
81332287
KB
81172004-03-19 Kevin Buettner <kevinb@redhat.com>
8118
8119 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8120 (ppc_linux_init_extra_frame_info)
8121 (ppc_linux_frameless_function_invocation)
8122 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8123 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8124 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8125 (rs6000_frame_chain): Delete declarations.
8126 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8127 (ppc_linux_init_extra_frame_info)
8128 (ppc_linux_frameless_function_invocation)
8129 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8130 (ppc_linux_init_abi): Remove registration of above deleted functions.
8131 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8132 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8133 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8134 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8135 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8136 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8137 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8138 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8139 frame management for all OSABIs.
8140
61a65099
KB
81412004-03-19 Andrew Cagney <cagney@redhat.com>
8142
8143 Committed by Kevin Buettner <kevinb@redhat.com>.
8144
8145 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8146 Update copyright.
8147 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8148 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8149 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8150 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8151 unwinders. #ifdef legacy frame code.
8152 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8153 "frame-base.h".
8154 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8155 (struct rs6000_frame_cache, rs6000_frame_cache)
8156 (rs6000_frame_this_id, rs6000_frame_prev_register)
8157 (rs6000_frame_sniffer, rs6000_frame_unwind)
8158 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8159 (rs6000_frame_base): Implement a traditional frame unwinder.
8160 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8161 frame unwinder.
8162
88f7da05
KB
81632004-03-19 Kevin Buettner <kevinb@redhat.com>
8164
8165 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8166 breakpoint address for watchpoints or the catch eventpoints.
8167 Add new paramter ``bptype''. Adjust all callers.
8168
f826dce1
AC
81692004-03-19 Andrew Cagney <cagney@redhat.com>
8170
33cb8b0f
AC
8171 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8172
f826dce1
AC
8173 * PROBLEMS: Delete note that ARM does not use frame code, problem
8174 fixed.
8175
43b1ab88
AC
81762004-03-18 Andrew Cagney <cagney@redhat.com>
8177
292ab034
AC
8178 * stack.c (return_command): Delete code wrapped in #ifdef
8179 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8180
43b1ab88
AC
8181 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8182
dbfe4626
AC
81832004-03-18 Andrew Cagney <cagney@redhat.com>
8184
8185 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8186 DEPRECATED_IN_SIGTRAMP.
8187 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8188 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8189 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8190 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8191 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8192 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8193 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8194 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8195 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8196 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8197
0cad6aec
AC
81982004-03-18 Andrew Cagney <cagney@redhat.com>
8199
8200 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8201 (struct frame_base_table_entry): Define.
8202 (struct frame_base_table): Re-implement as a linked list.
8203 (frame_base_init): Re-implement.
8204 (frame_base_table): Delete function.
8205 (append_predicate): Delete function.
8206 (frame_base_append_sniffer): Update.
8207 (frame_base_set_default): Update.
8208 (frame_base_find_by_frame): Update.
8209 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8210 * Makefile.in (frame-base.o): Update dependencies.
8211
9982c2e7
AC
82122004-03-17 Andrew Cagney <cagney@redhat.com>
8213
8214 * frame.c (legacy_get_prev_frame): Pass correct frame to
8215 frame_unwind_find_by_frame.
8216
8dfe8985
DC
82172004-03-17 David Carlton <carlton@kealia.com>
8218
8219 * NEWS: Mention C++ nested types and namespaces
8220
ed47347a
MC
82212004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8222
8223 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8224 and "Regressions since gdb 5.3.". Add known regressions since
8225 gdb 6.0.
8226
90aeadfc
DC
82272004-03-16 David Carlton <carlton@kealia.com>
8228
8229 * dwarf2read.c (process_structure_scope): Process children even
8230 when we're a declaration.
8231
73912b9b
AC
82322004-03-16 Andrew Cagney <cagney@redhat.com>
8233
8234 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8235 * blockframe.c (find_pc_partial_function)
8236 (find_pc_sect_partial_function): Merge into a single
8237 find_pc_partial_function.
8238
283accbc
MK
82392004-03-16 Mark Kettenis <kettenis@gnu.org>
8240
8241 * i386bsd-nat.c: s/regno/regnum/g.
8242 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8243 FP0_REGNUM.
8244 (store_inferior_registers): Likewise.
8245
f5b1afdf
MK
82462004-03-16 Mark Kettenis <kettenis@gnu.org>
8247
8248 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8249 of i387_fill_fsave.
8250 (store_inferior_registers): Call i387_collect_fsave and
8251 i387_collect_fxsave instead of i387_fill_fsave and
8252 i387_fill_fxsave.
8253
41fe5eb3
AC
82542004-03-15 Andrew Cagney <cagney@redhat.com>
8255
8256 * Makefile.in (frame-unwind.o): Update dependencies.
8257 * frame-unwind.c: Include "gdb_obstack.h".
8258 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8259 parameter.
8260 (append_predicate): Delete function.
8261 (struct frame_unwind_table_entry): New structure.
8262 (struct frame_unwind_table): Replace "sniffer" with "head" and
8263 "tail".
8264 (frame_unwind_append_sniffer): Update.
8265 (frame_unwind_find_by_frame): Update.
8266 (_initialize_frame_unwind): Registe frame_unwind_init using
8267 gdbarch_data_register_pre_init.
8268
3f63813d
MK
82692004-03-15 Mark Kettenis <kettenis@gnu.org>
8270
8271 * i386bsd-nat.c: Update copyright year.
8272 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8273 define unconditionally.
8274
3248c325 82752004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8276
8277 * i387-tdep.h (i387_collect_fsave): New prototype.
8278 * i387-tdep.c (i387_collect_fsave): New function containing most
8279 of the code from i387_fill_fsave.
3248c325 8280 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8281
871fbe6a
MK
82822004-03-15 Mark Kettenis <kettenis@gnu.org>
8283
8284 * i386-linux-tdep.c: Update copyright year.
8285 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8286 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8287 svr4_ilp32_link_map_offsets instead of
8288 i386_linux_svr4_fetch_link_map_offsets.
8289
8176b9b8
DC
82902004-03-15 David Carlton <carlton@kealia.com>
8291
8292 Fix for PR c++/1553:
8293 * dwarf2read.c (read_structure_type): Determine type name by
8294 calling determine_class_name.
8295 (determine_class_name): New.
8296 (determine_prefix): Look at TYPE_TAG_NAME and call
8297 determine_class_name when appropriate.
8298 (determine_prefix_aux, class_name): Delete.
9d58e29d 8299 (read_namespace): Set die->type.
8176b9b8 8300
fe8bf7d7
KB
83012004-03-15 Kevin Buettner <kevinb@redhat.com>
8302
8303 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8304 unused macro definition. The definition in target.h (or perhaps
8305 elsewhere) takes precedence.
8306
ed6edd9b
AC
83072004-03-15 Andrew Cagney <cagney@redhat.com>
8308
f9be684a
AC
8309 * ppc-tdep.h: Update copyright.
8310 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8311 function signatures to match "regsets.h".
8312 * ppc-linux-tdep.c: Include "regset.h".
8313 (ELF_GREGSET_SIZE): Delete.
8314 (right_supply_register): New function.
8315 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8316 using right_supply_register.
8317 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8318 functions.
8319 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8320 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8321 (_initialize_ppc_linux_tdep): Do not register
8322 ppc_linux_regset_core_fns.
8323 (ppc_linux_regset_from_core_section): Replace
8324 fetch_core_registers.
8325 (ppc_linux_regset_core_fns): Delete.
8326 * ppc-linux-nat.c: (right_fill_reg): New function.
8327 (supply_gregset): Update call to ppc_linux_supply_gregset.
8328 (fill_gregset): Clear the register set, use right_fill_reg.
8329 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8330 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8331
ed6edd9b
AC
8332 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8333 unsigned.
8334
030f20e1
AC
83352004-03-15 Andrew Cagney <cagney@redhat.com>
8336
8337 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8338 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8339 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8340 and register_gdbarch_data.
8341 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8342 (struct gdbarch_data): Replace "init" by "pre_init" and
8343 "post_init".
8344 * gdbarch.h, gdbarch.c: Re-generate.
8345 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8346 with"obstack", use OBSTACK_ZALLOC.
8347 (dwarf2_frame_ops): Delete.
8348 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8349 (dwarf2_frame_init_reg): Use gdbarch_data.
8350 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8351 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8352 (_initialize_svr4_solib): Update.
8353 * user-regs.c (_initialize_user_regs): Update.
8354 * reggroups.c (_initialize_reggroup): Update.
8355 * regcache.c (_initialize_regcache): Update.
8356 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8357 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8358 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8359 * frame-unwind.c (_initialize_frame_unwind): Update.
8360 * frame-base.c (_initialize_frame_base): Update.
8361 * user-regs.c (user_reg_add): Update.
8362 * reggroups.c (reggroup_add): Update.
8363 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8364 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8365 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8366 * frame-base.c (frame_base_table): Update.
8367 * remote.c (_initialize_remote): Update.
8368 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8369
3111a3fc
AC
83702004-03-15 Andrew Cagney <cagney@redhat.com>
8371
8372 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8373
5ecb7103
KB
83742004-03-15 Kevin Buettner <kevinb@redhat.com>
8375
8376 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8377 * frv-linux-tdep.c: New file.
8378 * frv-tdep.c (struct gdbarch_tdep): Add new field
8379 ``sigcontext_reg_addr''.
8380 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8381 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8382 (frv_sigramp_frame_sniffer): New functions.
8383 (frv_sigtramp_frame_unwind): New static global.
8384 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8385 sniffers.
8386 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8387 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8388
1ccda5e9
KB
83892004-03-15 Kevin Buettner <kevinb@redhat.com>
8390
8391 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8392 but not via a call to error(), when unable to read memory.
8393
b375a0a5
KB
83942004-03-15 Kevin Buettner <kevinb@redhat.com>
8395
8396 * frv-tdep.c (frv_call_dummy_words): Delete.
8397 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8398
4fdf6121
AC
83992004-03-15 Andrew Cagney <cagney@redhat.com>
8400
8401 * infrun.c (handle_step_into_function, step_over_function): Only
8402 update and use STEP_FRAME_ID when the system is using legacy
8403 frames. Update comments.
8404
34021503
MK
84052004-03-14 Mark Kettenis <kettenis@gnu.org>
8406
187e21d1
MK
8407 * amd64-linux-tdep.h: Remove file.
8408 * amd64-linux-tdep.c: Don't include "inferior.h" and
8409 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8410 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8411 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8412 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8413 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8414 macros.
8415 (user_to_gdb_regmap): Remove variable.
8416 (amd64_linux_gregset_reg_offset): New variable.
8417 (amd64_core_fns): Remove variable.
8418 (fetch_core_registers): Remove function.
8419 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8420 functions.
8421 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8422 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8423 * Makefile.in (amd64_linux_tdep_h): Remove.
8424 (amd64-linux-nat.o): Update dependencies.
8425 (amd64-linux-tdep.o): Update dependencies.
8426
99679982
MK
8427 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8428 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8429 functions.
8430 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8431
34021503
MK
8432 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8433 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8434
134d01f1
DJ
84352004-03-14 Daniel Jacobowitz <drow@mvista.com>
8436
8437 * dwarf2read.c (read_structure_type): Rename from
8718a420 8438 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8439 Return immediately if die->type is set. Call read_type_die before
8440 dwarf2_add_member_fn.
8441 (process_structure_scope): New function.
8442 (read_enumeration_type, process_enumeration_scope): New functions,
8443 broken out from read_enumeration. Don't create the enumeration
8444 type if it has already been created.
8445 (read_enumeration): Removed.
8446 (process_die): Call read_structure_type, process_structure_scope,
8447 read_enumeration_type, and process_enumeration_scope. Just call
8448 new_symbol for base and subrange types. Add a comment about other
8449 type dies.
8450 (read_type_die): Call read_enumeration_type.
8451 (add_partial_structure, new_symbol): Update comments.
8452
65760afb
SC
84532004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8454
8455 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8456
10f59415
SC
84572004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8458
8459 * tui/tui-win.h (tui_get_cmd_list): Declare.
8460 * tui/tui-win.c (tui_command): New function.
8461 (tui_get_cmd_list): New function.
8462 (_initialize_tui_win): Moved initialization of tui command in
8463 tui_get_cmd_list.
8464
8465 * tui/tui-data.c (init_content_element): Setup new data members.
8466 (init_win_info): Likewise.
8467 (free_content_elements): Free it.
8468 * tui/tui-data.h (struct tui_data_element): Store the register
8469 content to print.
8470 (struct tui_data_info): Keep the current register group.
8471
8472 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8473
8474 * tui/tui-regs.h (tui_show_registers): Update prototype.
8475 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8476 (tui_resize_all): No need to calculate anything for register window.
8477 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8478 (tui_set_register_element, tui_set_general_regs_content): Remove.
8479 (tui_set_special_regs_content): Remove.
8480 (tui_set_general_and_special_regs_content): Remove.
8481 (tui_set_float_regs_content): Remove.
8482 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8483 (tui_set_regs_content): Remove.
8484 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8485 (tui_v_show_registers_command_support): Remove.
8486 (tui_show_registers): Use a reggroup to specify the registers to show.
8487 (tui_show_register_group): New function.
8488 (tui_display_registers_from): Compute the layout of register window
8489 and refresh with new API; be sure to delete old register windows.
8490 (tui_check_register_values): Update to use tui_get_register and
8491 tui_display_data.
8492 (tui_display_register): Just refresh the register window part.
8493 (tui_register_format): Format registers and save in tui_data_element.
8494 (tui_get_register): New to combine tui_reg_value_has_changed and
8495 tui_get_register_raw_value; fix to use the new gdb API.
8496 (tui_show_float_command): Renamed tui_reg_float_command.
8497 (tui_show_general_command): Renamed tui_reg_general_command.
8498 (tui_show_special_command): Renamed tui_reg_system_command.
8499 (_initialize_tui_regs): Remove unused commands.
8500
c3364ea4
MK
85012004-03-13 Mark Kettenis <kettenis@gnu.org>
8502
27d1e716
MK
8503 * NEWS (New native configurations): Mention OpenBSD/amd64.
8504
c3364ea4
MK
8505 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8506 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8507 Remove defines.
8508 * config/i386/nm-fbsd64.h: Likewise.
8509 * config/i386/nm-obsd.h: Likewise.
8510 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8511 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8512
b2d6d697
KB
85132004-03-12 Kevin Buettner <kevinb@redhat.com>
8514
8515 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8516 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8517 New constants.
8518
76e43199
KB
8519 From Richard Sandiford <rsandifo@redhat.com>:
8520 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8521
34ce532e
KB
85222004-03-12 Kevin Buettner <kevinb@redhat.com>
8523
8524 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8525 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8526 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8527 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8528 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8529 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8530 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8531 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8532 definitions from frv-tdep.c to frv-tdep.h.
8533
c4d10515
KB
85342004-03-12 Kevin Buettner <kevinb@redhat.com>
8535
8536 Add shared library support for FR-V FDPIC ABI:
8537 * Makefile.in (solib-frv.o): Add dependencies.
8538 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8539 New functions.
8540 (frv_push_dummy_call): Add support for FDPIC ABI.
8541 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8542 for FDPIC ABI.
8543 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8544 (frv_fdpic_find_canonical_descriptor): Declare.
8545 * solib-frv.c: New file.
8546 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8547 * config/frv/tm-frv.h (solib.h): Include.
8548
ed1bd989
KB
85492004-03-12 Kevin Buettner <kevinb@redhat.com>
8550
8551 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8552 (frv-tdep.o): Update dependencies.
8553 * frv-tdep.h: New file.
8554 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8555 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8556 constants.
8557 (struct gdbarch_tdep): Add new member ``frv_abi''.
8558 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8559 functions.
8560 (new_variant): Set ``frv_abi'' field.
8561 (gdb_arch_init): Detect FDPIC executables.
8562
82b38f72
MK
85632004-03-12 Mark Kettenis <kettenis@gnu.org>
8564
8565 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8566 wrapper.
8567
db1ea9ba
AC
85682004-03-11 Andrew Cagney <cagney@redhat.com>
8569
8570 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8571
f8766ec1
KB
85722004-03-11 Kevin Buettner <kevinb@redhat.com>
8573
8574 * solist.h (master_so_list): New function.
8575 * solib.c (master_so_list): Likewise.
8576 * solib-svr4.c (enable_break): Iterate over so_list entries
8577 obtained from master list instead of entries obtained directly
8578 via svr4_current_sos().
8579
523f6a27
BE
85802004-03-10 Ben Elliston <bje@gnu.org>
8581
8582 * MAINTAINERS: Update my mail address.
8583
37814c18
KI
85842004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8585
8586 * remote-m32r-sdi.c: Support hardware watchpoint.
8587
8b9740d8
DJ
85882004-03-09 Daniel Jacobowitz <drow@mvista.com>
8589
8590 * user-regs.c: Update copyright years.
8591 (struct user_regs): Rename to gdb_user_regs.
8592 (append_user_reg, builtin_user_regs, user_regs_init)
8593 (user_reg_add, user_reg_map_name_to_regnum)
8594 (usernum_to_user_reg): Update.
8595
4bb7a0a7
DJ
85962004-03-09 Daniel Jacobowitz <drow@mvista.com>
8597
8598 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8599 (skip_children): New functions.
8600 (locate_pdi_sibling): Call skip_children.
8601
44e1a9eb
DJ
86022004-03-09 Daniel Jacobowitz <drow@mvista.com>
8603
8604 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8605 * gdbtypes.c (check_typedef): Update comments.
8606
f3dd6933
DJ
86072004-03-09 Daniel Jacobowitz <drow@mvista.com>
8608
8609 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8610 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8611 pointer. Update comment about comp_unit_head.
8612 (struct abbrev_info): Shorten two int flags.
8613 (dwarf_alloc_abbrev): Take a CU argument.
8614 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8615 each time through the loop. Update cleanup argument.
8616 (psymtab_to_symtab_1): Update cleanup call.
8617 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8618 abbrev_obstack.
8619 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8620 Just call obstack_free and clear the pointer.
8621
b40c7d58
DJ
86222004-03-09 Daniel Jacobowitz <drow@mvista.com>
8623
8624 * infrun.c (handle_inferior_event): Remove short-circuit code for
8625 events in a different thread.
8626
333dabeb
DJ
86272004-03-09 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8630 print the whole transfer.
8631 (initialize_targets): Update description of "set debug target".
8632
aa17d93e
DJ
86332004-03-09 Daniel Jacobowitz <drow@mvista.com>
8634
8635 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8636
0b71f08f
NW
86372004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8638
8639 * MAINTAINERS (write after approval): Add myself.
8640
3930f270
CV
86412004-03-08 Corinna Vinschen <vinschen@redhat.com>
8642
8643 * sh-tdep.c (sh_print_registers_info): Use for loop.
8644 Don't skip multiple registers when a float register is encountered.
8645
a2b4a96c
CV
86462004-03-08 Corinna Vinschen <vinschen@redhat.com>
8647
8648 Fix PR tdep/1291.
8649 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8650 to official SH documentation.
8651
f15a4bc0
AC
86522004-03-07 Andrew Cagney <cagney@redhat.com>
8653
8654 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8655 unused function.
8656
9498281f
DJ
86572004-03-07 Daniel Jacobowitz <drow@mvista.com>
8658
8659 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8660 (arm_get_next_pc): Handle BX and BLX.
8661
449e1137
AC
86622004-03-07 Andrew Cagney <cagney@redhat.com>
8663
eded0a31
AC
8664 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8665 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8666 HPPA_SP_REGNUM.
8667 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8668 (hppa_target_read_fp): Delete.
8669 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8670 register_virtual_size, max_register_raw_size,
8671 max_register_virtual_size, register_byte, register_size,
8672 target_read_fp, fp_regnum, and register_bytes. Set register_type
8673 instead of register_virtual_type.
8674 (hppa32_register_type, hppa64_register_type): Replace
8675 hppa32_register_virtual_type and hppa64_register_virtual_type.
8676 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8677 (HPPA_FP_REGNUM): Define.
8678
f5f907e2
AC
8679 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8680
69b4bbe4
AC
8681 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8682 (pa_do_registers_info): Delete.
8683 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8684 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8685 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8686
78161e48
AC
8687 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8688 GDB_TARGET_IS_HPPA code.
8689 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8690 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8691 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8692 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8693 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8694 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8695 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8696 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8697 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8698 (hppa_frameless_function_invocation, hppa64_store_return_value)
8699 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8700 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8701 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8702 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8703 (find_proc_framesize, deposit_21, restore_pc_queue)
8704 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8705 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8706
782eae8b
AC
8707 Unconditionally enable 64-bit frame and ABI code.
8708 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8709 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8710 push_dummy_frame, fix_call_dummy, push_arguments,
8711 call_dummy_location, extract_return_value, use_struct_convention,
8712 store_return_value, store_struct_return, saved_pc_after_call,
8713 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8714 frame_chain, frame_chain_valid, frameless_function_invocation,
8715 frame_saved_pc, and pop_frame.
78161e48 8716
449e1137
AC
8717 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8718 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8719 (hppa_gdbarch_init): Do not set PC_REGNUM.
8720
12507572
MK
87212004-03-06 Mark Kettenis <kettenis@gnu.org>
8722
8723 * config/alpha/tm-fbsd.h: Remove file.
8724 * config/alpha/fbsd.mt: Tweak comment.
8725 (TM_FILE): Set to tm-alpha.h.
8726
c107cc1b
AC
87272004-03-05 Andrew Cagney <cagney@redhat.com>
8728
8729 * infrun.c (step_over_function): When non-legacy code, and no
8730 step_frame_id, use the unwinder to get the caller's frame ID.
8731
f2e7c15d
MK
87322004-03-05 Mark Kettenis <kettenis@gnu.org>
8733
8b0c3633
MK
8734 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8735 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8736 bfd_arch_unknown. Adjust comment.
8737
f2e7c15d
MK
8738 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8739 * i386obsd-tdep.c: Correct spelling in comment.
8740 * i386nbsd-tdep.c: Correct spelling in comment.
8741 * sparc-tdep.c: Correct spelling in comments.
8742
1198ecbe
DC
87432004-03-05 David Carlton <carlton@kealia.com>
8744
8745 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8746 bug.
8747
9eb42ed1
MK
87482004-03-05 Mark Kettenis <kettenis@gnu.org>
8749
8750 * sparc-tdep.c: Fix typo in comment.
8751
52b5e991
JB
87522004-03-04 J. Brobecker <brobecker@gnat.com>
8753
8754 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8755
d8151005
DJ
87562004-03-04 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * dwarf2read.c: Add comment describing memory lifetimes.
8759 (struct dwarf2_pinfo): Update comment.
8760 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8761 (read_enumeration, new_symbol): Don't use obsavestring.
8762
cbeae229
MK
87632004-03-04 Mark Kettenis <kettenis@gnu.org>
8764
722d18c2
MK
8765 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8766 instead of amd64_fill_fxsave.
8767 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8768 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8769
cbeae229
MK
8770 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8771 Reorganize code a bit.
8772
b4206d25
OF
87732004-03-04 Orjan Friberg <orjanf@axis.com>
8774
8775 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8776 when the frame pointer is pushed. Don't set the frame pointer's
8777 address on the stack unless it's actually located there.
b4206d25
OF
8778 Set the SRP's address on the stack correctly when the PC is still in
8779 the prologue.
8780 (cris_return_value): New function.
8781 (cris_gdbarch_init): Clear deprecated store_return_value,
8782 extract_return_value.
8783
49b0b195
JB
87842004-03-02 Jim Blandy <jimb@redhat.com>
8785
8786 * stabsread.c (reg_value_complaint): The maximum register number
8787 is one less than the number of registers.
8788
e9ff708b
AC
87892004-03-02 Andrew Cagney <cagney@redhat.com>
8790
8791 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8792 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8793 trailing comma and redundant assignment of I386_ST0_REGNUM.
8794 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8795 32-bit segment registers.
8796
d4715e41
AC
87972004-03-01 Andrew Cagney <cagney@redhat.com>
8798
8799 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8800 use frame_relative_level and get_next_frame.
8801
3ce2bf18
AC
88022004-02-29 Andrew Cagney <cagney@redhat.com>
8803
8804 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8805 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8806 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8807 Delete macro.
8808
2da6aac3
DJ
88092004-02-29 Daniel Jacobowitz <drow@mvista.com>
8810
8811 * inflow.c (terminal_inferior): Don't give up the terminal if we
8812 previously couldn't get the inferior's terminal state.
8813
6ba34a8d
DJ
88142004-02-29 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8817 PC_REGNUM.
8818
faae5abe
AC
88192004-02-28 Andrew Cagney <cagney@redhat.com>
8820
8821 * NEWS: Refer to GDB 6.1.
8822 * README: Refer to GDB 6.1.
8823 * PROBLEMS: Refer to GDB 6.1.
8824
2227a3c5
DJ
88252004-02-28 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * thread-db.c (disable_thread_signals): Remove unused function.
8828
80571bff
MK
88292004-02-28 Mark Kettenis <kettenis@gnu.org>
8830
041bd74b
MK
8831 * amd64-nat.c: Include "gdb_string.h".
8832 (amd64_collect_native_gregset): Zero-extend the 32-bit
8833 general-purpose registers and %eip.
8834
3c017e40
MK
8835 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8836 * amd64-tdep.c (amd64_collect_fxsave): New function.
8837 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8838
80571bff
MK
8839 * i387-tdep.h: Update copyright year.
8840 (i387_collect_fxsave): New prototype.
8841 * i387-tdep.c: Update copyright year.
8842 (i387_collect_fxsave): New function containing most of the code
8843 from i387_fill_fxsave.
8844 (i387_fill_fxsave): Call i387_collect_fxsave.
8845
50d71875
AC
88462004-02-28 Andrew Cagney <cagney@redhat.com>
8847
8848 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8849 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8850
4a28816e
MK
88512004-02-28 Mark Kettenis <kettenis@gnu.org>
8852
8853 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8854
dbda9972
AC
88552004-02-28 Andrew Cagney <cagney@redhat.com>
8856
8857 * utils.c: Use "", instead of <>, to include readline.
8858 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8859 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8860 * source.c, solib.c, exec.c, event-top.c: Ditto.
8861 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8862 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8863 * Makefile.in: Update all dependencies.
8864 (readline_tilde_h, readline_history_h): Define.
8865 (readline_headers): Delete.
8866
83277a99
MK
88672004-02-28 Mark Kettenis <kettenis@gnu.org>
8868
91ae4303
MK
8869 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8870 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8871 "config/i386/tm-lx64.h".
8872
83277a99
MK
8873 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8874 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8875 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8876
6e1d7d6c
AC
88772004-02-28 Andrew Cagney <cagney@redhat.com>
8878
ecc9ac84
AC
8879 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8880
6e1d7d6c
AC
8881 * breakpoint.c (_initialize_breakpoint): Use
8882 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8883 Add help to show command.
8884
9671aeef
MK
88852004-02-28 Mark Kettenis <kettenis@gnu.org>
8886
7fa2737c
MK
8887 * i386-nat.c: Reformat to be closer to coding standards.
8888 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8889 `retval'. Make variables `align' and `size' local to while-loop.
8890 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8891 (_initialize_i386_nat): New prototype.
8892
9671aeef
MK
8893 * tui/tui.c: Include <readline/readline.h> instead of
8894 "readline/readline.h". Include it after <term.h> and
8895 "gdb_curses.h".
8896
fca7aa43
AC
88972004-02-27 Andrew Cagney <cagney@redhat.com>
8898
412275d5
AC
8899 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8900 the new frame unwind code.
8901 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8902 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8903 PCOQ_HEAD_REGNUM.
8904
fca7aa43
AC
8905 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8906 "return_value" and "push_dummy_call".
8907 (hppa32_use_struct_convention): Delete unused function.
8908 (hppa32_store_return_value): Delete unused function.
8909 (hppa32_extract_return_value): Delete unused function.
8910 (hppa32_stack_align): Delete function.
8911
e6a8a7d2
EZ
89122004-02-27 Eli Zaretskii <eliz@elta.co.il>
8913
8914 * coffread.c (enter_linenos): Don't let rawptr reference memory
8915 outside linetab[]'s limits.
8916
1797a8f6
AC
89172004-02-27 Andrew Cagney <cagney@redhat.com>
8918
8919 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8920 inferior stack space - the stack needs to grow upwards.
8921 (hppa32_frame_align): New function.
8922 (hppa64_frame_align): Replace hppa_frame_align.
8923 (hppa_gdbarch_init): Update.
8924
2e4b5889
OF
89252004-02-26 Orjan Friberg <orjanf@axis.com>
8926
8927 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8928 (dwarf2-frame.h): Include.
8929 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8930 Remove static variables related to ABI setting.
8931 (struct gdbarch_tdep): Remove cris_abi member.
8932 (struct frame_extra_info): Remove.
8933 (cris_unwind_cache, stack_item): New structs.
8934 (cris_frame_unwind, cris_frame_base): New variables.
8935 (push_stack_item, pop_stack_item)
8936 (cris_frame_unwind_cache, cris_frame_this_id)
8937 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8938 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8939 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8940 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8941 (cris_reg_struct_has_addr): New functions.
8942 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8943 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8944 (cris_store_struct_return, cris_frameless_function_invocation)
8945 (cris_pop_frame, cris_skip_prologue_main)
8946 (cris_abi_original_store_return_value)
8947 (cris_abi_v2_store_return_value)
8948 (cris_abi_original_extract_return_value)
8949 (cris_abi_v2_extract_return_value)
8950 (cris_abi_original_reg_struct_has_addr)
8951 (cris_abi_v2_reg_struct_has_addr)
8952 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8953 (cris_push_return_address, cris_abi_update): Remove.
8954 (_initialize_cris_tdep): Remove ABI command.
8955 (cris_dump_tdep): Ditto.
8718a420 8956 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8957 Set store_return_value, extract_return_value, push_dummy_code,
8958 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8959 frame_unwind_append_sniffer, frame_base_set_default.
8960 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8961 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8962 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8963 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8964 init_extra_frame_info, frameless_function_invocation, frame_chain,
8965 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8966 dummy_write_sp.
8718a420 8967
6b9acc27
JJ
89682004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8969
8970 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8971 * valprint.c (print_hex_chars): Change from static to external.
8972 (print_char_chars): New function.
8973 * printcmd.c (print_scalar_formatted): For integer and enum types
8974 that are longer than LONGEST, perform processing via appropriate
8975 print_*_chars routines.
8976
a431654a
AC
89772004-02-26 Andrew Cagney <cagney@redhat.com>
8978
8979 * Makefile.in: Update dependencies.
8980 Changes from Ulrich Weigand,
8981 * s390-tdep.c: Include "dwarf2-frame.h".
8982 (s390_dwarf2_frame_init_reg): New function.
8983 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8984 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8985
fa8d40ab
JJ
89862004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8987
8988 * breakpoint.c (pending_break_support): New setting variable.
8989 (break_command_1): Account for pending_break_support setting
8990 when creating pending breakpoints.
8991 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8992 (_initialize_breakpoint): Add "set breakpoint pending" and
8993 "show breakpoint pending" commands.
8994
0dcd613f
AC
89952004-02-26 Andrew Cagney <cagney@redhat.com>
8996
8997 Fix PR i18n/1570.
8998 * charset.c (backslashable, backslashed, represented): Remove 'e'
8999 from list of escaped characters, not part of ISO-C.
9000
479272a3
JB
90012004-02-25 J. Brobecker <brobecker@gnat.com>
9002
9003 From Peter Schauer <schauer@pdf.de>:
9004 * tui/tui.c: Move system header includes after local includes.
9005 Fixes a build failure on solaris systems.
9006
7613d933
JB
90072004-02-25 J. Brobecker <brobecker@gnat.com>
9008
9009 * configure.in: Refine the previous change.
9010 * configure: Regenerate.
9011
9c1488cb
MK
90122004-02-25 Mark Kettenis <kettenis@gnu.org>
9013
9014 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9015 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9016 "amd64-tdep.h" instead of "x86-64-tdep.h".
9017 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9018 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9019 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9020 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9021 and "x86-64-tdep.c".
9022 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9023 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9024 and "x86-64-tdep.c".
9025 * amd64bsd-nat.c: Update copyright year.
9026 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9027 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9028 "x86-64-tdep.h".
9029 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9030 "x86-64-tdep.h".
9031 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9032 "x86-64-tdep.h".
9033 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9034 "x86-64-tdep.h".
9035 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9036 "x86-64-tdep.h".
9037 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9038 "x86-64-tdep.h".
8718a420 9039 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9040 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9041 * Makefile.in (amd64_linux_tdep_h): Renamed from
9042 x86_64_linux_tdep_h.
9043 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9044 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9045 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9046 (amd64obsd-tdep.o): Update dependencies.
9047 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9048 dependencies.
9049 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9050 dependencies.
9051 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9052 amd64-linux-nat.c amd64-linux-tdep.c.
9053 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9054 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9055 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9056 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9057 amd64-tdep.o and amd64-linux-tdep.o.
9058 (TM_FILE): Set to tm-linux64.h.
9059 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9060 (NAT_FILE): Set to nm-linux64.h.
9061 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9062 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9063 amd64-tdep.o.
9064 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9065 amd64-tdep.o.
9066 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9067 amd64-tdep.o.
9068
4b8dad4a
RM
90692004-02-25 Roland McGrath <roland@redhat.com>
9070
9071 * remote.c (remote_protocol_qPart_auxv): New variable.
9072 (init_all_packet_configs): Initialize it.
9073 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9074 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9075 (show_remote_cmd): Call it.
9076 (_initialize_remote): Initialize commands.
9077 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9078 service TARGET_OBJECT_AUXV requests.
9079
66745969
JB
90802004-02-25 J. Brobecker <brobecker@gnat.com>
9081
9082 * configure.in: Make sure that the wborder function is available.
9083 Otherwise, search for it in the cur_colr library.
9084 * configure: Regenerate.
9085
79508e1e
AC
90862004-02-25 Andrew Cagney <cagney@redhat.com>
9087
9088 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9089
571ee600
MK
90902004-02-25 Mark Kettenis <kettenis@gnu.org>
9091
9092 * config/i386/tm-x86-64linux.h: Tweak comments.
9093
2b1b322f 90942004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9095
9096 * MAINTAINERS: Add self to write-after-approval list.
9097
4d2acc65
AC
90982004-02-25 Andrew Cagney <cagney@redhat.com>
9099
4b8dad4a 9100 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9101 * cli/cli-script.c (execute_control_command): Unconditionally
9102 install a cleanup. Default "ret" to "invalid_control". Use
9103 "break" instead of "return" to escape from the switch.
9104
4cfcaf21
JB
91052004-02-24 J. Brobecker <brobecker@gnat.com>
9106
9107 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9108 with the lines macro defined in term.h on AiX.
9109 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9110 a collision with the label_width macro defined in term.h on AiX.
9111
54a5c8d8
KB
91122004-02-23 David Mosberger <davidm@hpl.hp.com>
9113
9114 Committed by Kevin Buettner <kevinb@redhat.com>.
9115
9116 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9117 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9118 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9119 instead of ia64_write_pc().
9120 * ia64-linux-tdep.c (regcache.h): Include.
9121 (ia64_linux_write_pc): New function.
4b8dad4a 9122
8a1dac83
RM
91232004-02-23 Roland McGrath <roland@redhat.com>
9124
9125 * auxv.c (info_auxv_command): Fix typos in error messages.
9126
90f90721
MK
91272004-02-23 Mark Kettenis <kettenis@gnu.org>
9128
8a1dac83 9129 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9130 (enum amd64_regnum): New.
9131 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9132 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9133 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9134 (X86_64_XMM1_REGNUM): Removed.
9135 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9136 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9137 prototypes for renamed functions.
9138 * x86-64-tdep.c: Fix typo.
9139 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9140 register numbers.
9141 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9142 Use constants from `enum amd64_regnum' for register numbers.
9143 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9144 (amd64_analyze_prologue, amd64_frame_cache,
9145 amd64_sigtramp_frame_cache): Use constants from `enum
9146 amd64_regnum' for register numbers.
9147 (amd64_supply_fpregset): Adjust for renamed functions.
9148 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9149 `enum amd64_regnum' for register numbers.
9150 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9151 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9152 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9153 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9154 (amd64_linux_fill_gregset): Adjust for renamed macros.
9155 (fetch_core_registers): Adjust for renamed functions.
9156 (amd64_linux_init_abi): Adjust for renamed functions.
9157 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9158 renamed functions.
9159 * amd64-nat.c: Adjust for renamed macros.
9160 * amd64bsd-nat.c (fetch_inferior_registers)
9161 (store_inferior_registers): Use constants from `enum amd64_regnum'
9162 for register numbers. Adjust for renamed variables.
9163 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9164 renamed variables.
9165 (_initialize_amd64fbsd_nat): Use constants from `enum
9166 amd64_regnum' for register numbers.
9167 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9168 `enum amd64_regnum' for register numbers.
9169 (amd64fbsd_init_abi): Adjust for renamed functions.
9170 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9171 `enum amd64_regnum' for register numbers.
9172 (amd64nbsd_init_abi): Adjust for renamed functions.
9173 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9174 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9175 `enum amd64_regnum' for register numbers.
9176 (amd64obsd_init_abi): Adjust for renamed functions.
9177 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9178
d5479188
JJ
91792004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9180
9181 * breakpoint.c (print_one_breakpoint): Do not output spaces
9182 after printing <PENDING> for a pending breakpoint.
9183
81cb7cc9
JJ
91842004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9185
9186 * printcmd.c (print_scalar_formatted): Initialize val_long
9187 to remove compiler warning message.
9188
cbdeadca
JJ
91892004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9190
9191 * defs.h (nquery, yquery): New prototypes.
9192 * breakpoint.c (break_command_1): Use new nquery interface.
9193 * utils.c (defaulted_query, nquery, yquery): New functions.
9194
da6bab63
AC
91952004-02-23 Andrew Cagney <cagney@redhat.com>
9196
2f690297
AC
9197 * hppa-tdep.c (hppa_frame_align): New function.
9198 (hppa32_push_dummy_call): New function.
9199 (hppa64_push_dummy_call): New function.
9200 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9201 disabled.
8a1dac83 9202
da6bab63
AC
9203 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9204 FIX_CALL_DUMMY when push_dummy_call is available.
9205 (call_function_by_hand, push_dummy_code): Ditto.
9206
abf9b42d
AC
92072004-02-22 Andrew Cagney <cagney@redhat.com>
9208
9209 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9210 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9211 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9212 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9213 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9214 call_dummy_location to ON_STACK.
9215
10fc94a4
MK
92162004-02-22 Mark Kettenis <kettenis@gnu.org>
9217
51433e4b
MK
9218 * x86-64-linux-tdep.c: Tweak comment.
9219 (amd64_linux_supply_gregset): Renamed from
9220 x86_64_linux_supply_gresget.
9221 (amd64_linux_fill_gregset): Renamed from
9222 x86_64_linux_fill_gregset.
9223 (fetch_core_registers): Adjust for renamed functions.
9224 (amd64_core_fns): Renamed from x86_64_core_fns.
9225 (amd64_linux_sigtramp_start): Renamed from
9226 x86_64_linux_sigtramp_start.
9227 (amd64_linux_pc_in_sigtramp): Renamed from
9228 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9229 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9230 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9231 (amd64_linux_sigcontext_addr): Renamed from
9232 x86_64_linux_sigcontext_addr.
9233 (amd64_linux_sc_reg_offset): Renamed from
9234 x86_64_linux_sc_reg_offset.
9235 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9236 Adjust for renamed functions and variables.
9237 (_initialize_amd64_linux_tdep): Renamed from
9238 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9239 variables.
9240 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9241 Adjust for renamed functions.
9242
430eaf2e
MK
9243 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9244 from x86_64_linux_gregset64_reg_offset.
9245 (amd64_linux_gregset32_reg_offset): Rename from
9246 x86_64_linux_gregset64_reg_offset.
9247 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9248 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9249 (amd64_linux_dr_set_control): Renamed from
9250 x86_64_linux_dr_set_control. Adjust for renamed functions.
9251 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9252 Adjust for renamed functions.
9253 (amd64_linux_dr_reset_addr): Renamed from
9254 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9255 (amd64_linux_dr_get_status): Renamed from
9256 x86_64_linux_dr_get_status. Adjust for renamed functions.
9257 (_initialize_amd64_linux_nat): Renamed from
9258 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9259 functions.
9260 * config/i386/nm-x86-64linux.h: Update copyright year.
9261 Adjust for renamed functions.
9262
10fc94a4
MK
9263 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9264 amd64fbsd_sigtramp_start.
9265 (amd64fbsd_sigtramp_end_addr): Renamed from
9266 amd64fbsd_sigtramp_end.
9267 (amd64fbsd_init_abi): Adjust for renamed variables.
9268 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9269 variables.
9270 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9271 amd64fbsd_sigtramp_start.
9272 (amd64fbsd_sigtramp_end_addr): Renamed from
9273 amd64fbsd_sigtramp_end.
9274
343af405
AC
92752004-02-22 Andrew Cagney <cagney@redhat.com>
9276
537987fc
AC
9277 * hppa-tdep.c (hppa32_return_value): New function.
9278 (hppa64_return_value): New function.
9279 (hppa_gdbarch_init): Set return_value; keep disabled.
9280
fad850b2
AC
9281 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9282 struct-return and inferior function call methods.
9283
26d08f08
AC
9284 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9285 "frame-base.h".
9286 (struct hppa_frame_cache): Define.
9287 (hppa_frame_cache, hppa_frame_this_id): New functions.
9288 (hppa_frame_prev_register): New function.
9289 (hppa_frame_unwind, hppa_frame_base): New variables.
9290 (hppa_frame_unwind_sniffer): New function.
9291 (hppa_frame_base_address, hppa_unwind_pc): New function.
9292 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9293 sniffer, and frame base sniffer; keep disabled.
9294 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9295 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9296
e7d7bd65
AC
9297 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9298 to predicates for "seriously old code".
9299
e963316f
AC
9300 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9301 runtime if(0).
9302
56132691
AC
9303 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9304 unsigned.
9305 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9306
343af405
AC
9307 * config/pa/tm-hppa.h: Update copyright.
9308 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9309 (deprecated_init_frame_pc_default): Delete declaration.
9310 (hppa_frame_init_saved_regs): Delete declaration.
9311 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9312 * hppa-tdep.c: Include "arch-utils.h".
9313 (hppa_gdbarch_init): Set deprecated init_frame_pc
9314 and deprecated frame_init_saved_regs.
9315 (hppa_frame_init_saved_regs): Make static.
9316
f5859b4d
MK
93172004-02-22 Mark Kettenis <kettenis@gnu.org>
9318
86f6f8e7 9319 Remove old 386BSD support.
cf7c5c23 9320 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9321 * configure.host: Remove i[34567]86-*-bsd*.
9322 * configure.tgt: Remove i[34567]86-*-bsd*.
9323 * i386b-nat.c: Removed.
9324 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9325 (i386b-nat.o): Remove dependencies.
9326
86f6f8e7
MK
9327 * config/i386/i386bsd.mh: Removed.
9328 * config/i386/i386bsd.mt: Removed.
9329 * config/i386/nm-i386bsd.h: Removed.
9330 * config/i386/tm-i386bsd.h: Removed.
9331 * config/i386/xm-i386bsd.h: Removed.
9332
971218cd
MK
9333 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9334
7e654c37
MK
9335 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9336 (amd64fbsd_init_abi): Set link map offsets.
9337 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9338 (amd64nbsd_init_abi): Set link map offsets.
9339 * amd64obsd-tdep.c: Include "solib-svr4.h".
9340 (amd64obsd_init_abi): Set link map offsets.
9341 * i386fbsd-tdep.c: Include "solib-svr4.h".
9342 (i386fbsd_init_abi): Set link map offsets.
9343 * i386nbsd-tdep.c: Include "solib-svr4.h".
9344 (i386nbsdelf_init_abi): Set link map offsets.
9345 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9346 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9347 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9348 solib-legacy.o and core-aout.o. Reformat.
9349 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9350 solib-svr4.o, solib-legacy.o. Reformat.
9351 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9352 * config/i386/nbsdelf.mh: Reformat.
9353 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9354 solib-svr4.o, solib-legacy.o and corelow.o.
9355 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9356 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9357 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9358 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9359 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9360 (TM_FILE): Set to tm-fbsd.h.
9361 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9362 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9363 solib-svr4.o.
9364 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9365 solib-svr4.o.
9366 (TM_FILE): Set to nm-nbsd.h.
9367 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9368 Simplify shared library support. Don't include "elf/common.h".
9369 (SVR4_SHARED_LIBS): Don't define.
9370 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9371 "solib.h".
9372 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9373 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9374 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9375 Don't include "i386/tm-i386.h". Include "solib.h".
9376 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9377 Don't include "i386/tm-i386.h".
9378 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9379 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9380 Include "i386/xm-i386.h".
9381 (HOST_LONG_DOUBLE_FORMAT): Remove.
9382
5d93ae8c
MK
9383 Fix OpenBSD/i386 sigtramp recognition.
9384 * i386-tdep.h: Update copyright year.
9385 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9386 (i386bsd_sigtramp_end): New prototypes.
9387 (i386fbsd_sigtramp_start_addr): Renamed from
9388 i386fbsd_sigtramp_start.
9389 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9390 (i386obsd_sigtramp_start_addr): Renamed from
9391 i386obsd_sigtramp_start.
9392 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9393 * i386bsd-tdep.c: Update copyright year.
9394 (i386bsd_pc_in_sigtramp): Make public.
9395 * i386fbsd-nat.c: Update copyright year.
9396 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9397 * i386fbsd-tdep.c: Update copyright year.
9398 (i386fbsd_sigtramp_start_addr): Renamed from
9399 i386fbsd_sigtramp_start.
9400 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9401 (i386fbsdaout_init_abi): Adjust for renamed variables.
9402 * i386obsd-nat.c: Update copyright year.
9403 (_initialize_i386obsd_nat): Adjust for renamed variables.
9404 * i386obsd-tdep.c: Include "target.h".
9405 (i386obsd_page_size): New variable.
9406 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9407 (i386obsd_sigtramp_end): New functions.
9408 (i386obsd_sigtramp_start_addr): Renamed from
9409 i386obsd_sigtramp_start.
9410 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9411 (i386obsd_init_abi): Adjust for renamed variables. Set
9412 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9413 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9414
84d04465
MK
9415 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9416 trampoline change in OpenBSD kernel.
9417
b053aceb
MK
9418 * amd64-nat.c: Update copyright year.
9419 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9420 architecture from REGCACHE.
9421
f5859b4d
MK
9422 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9423 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9424
e4bbbda8
MK
94252004-02-21 Mark Kettenis <kettenis@gnu.org>
9426
ba361932
MK
9427 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9428 i[34567]86-*-openbsd3.[0-3].
9429 * config/i386/obsdaout.mh: New file.
9430
d3e48264
MK
9431 * config/i386/obsd.mh (MH_FLAGS): Remove.
9432
60a6eeb6
MK
9433 Fix PR build/1549.
9434 * i386obsd-tdep.c: Update copyright years. Include
9435 "solib-svr4.h".
9436 (i386obsd_init_abi): Don't set regset_from_core_section here.
9437 (i386obsd_aout_init_abi): New function. Set
9438 regset_from_core_section here.
9439 (i386obsd_elf_init_abi): New function.
9440 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9441 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9442 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9443 (TM_FILE): Set to tm-nbsd.h.
9444
9445 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9446 solib-sunos.o.
9447
e4bbbda8
MK
9448 * solib-svr4.h: Update copyright year.
9449 (svr4_ilp32_fetch_link_map_offsets)
9450 (svr4_lp64_fetch_link_map_offsets): New prototype.
9451 * solib-svr4.c: Update copyright year.
9452 (svr4_ilp32_fetch_link_map_offsets)
9453 (svr4_lp64_fetch_link_map_offsets): New function.
9454
f6fe98ef
DJ
94552004-02-20 Daniel Jacobowitz <drow@mvista.com>
9456
9457 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9458 to the partial symbol table.
9459
589ca796
JB
94602004-02-20 J. brobecker <brobecker@gnat.com>
9461
9462 * PROBLEMS: Add description of problem documented under gdb/1560.
9463
2031c21a
MK
94642004-02-20 Mark Kettenis <kettenis@gnu.org>
9465
30b344b1
MK
9466 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9467 comments.
9468 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9469 functions.
9470 (amd64obsd_init_abi): Reorder initializations. Use
9471 amd64obsd_r_reg_offset to initialize the general-purpose register
9472 set details. Set regset_from_core_section.
9473 (_initialize_amd64obsd_tdep): Rename from
9474 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9475 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9476 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9477
2031c21a
MK
9478 * NEWS (New native configurations): Mention OpenBSD/alpha.
9479 * configure.tgt: Add alpha*-*-openbsd*.
9480 * configure.host: Add alpha*-*-openbsd*.
9481 * alphanbsd-tdep.c: Update copyright year.
9482 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9483
42471775
AC
94842004-02-20 Andrew Cagney <cagney@redhat.com>
9485
9486 Fix PR tdep/1372.
9487 * configure.tgt: Delete target "none-*-*".
9488 * configure.host: Delete host "none-*-*".
9489 * config/none/none.mh: Delete file.
9490 * config/none/none.mt: Delete file.
9491 * config/none/xm-none.h: Delete file.
9492 * config/none/tm-none.h: Delete file.
9493 * config/none/nm-none.h: Delete file.
9494
960ccd7d
FF
94952004-02-19 Fred Fish <fnf@redhat.com>
9496
9497 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9498 cache->uses_fp prior to setting it.
9499
5f883edd
FF
95002004-02-19 Fred Fish <fnf@redhat.com>
9501
9502 Fix for PR breakpoint/1558.
9503 * sh-tdep.c (IS_JSR): New macro.
9504 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9505
f98c22d5
JB
95062004-02-19 Jim Blandy <jimb@redhat.com>
9507
9508 * findvar.c (value_from_register): Doc fix.
9509
95051d27
JJ
95102004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9511
9512 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9513 type being greater than sizeof of host's LONGEST. Always use
9514 unpack_long() unless format 'f' chosen.
9515
ccefbec3
EZ
95162004-02-19 Joel Brobecker <brobecker@gnat.com>
9517
9518 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9519
ccefbec3
EZ
9520 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9521 contains a symbol wich is the best, non-exact match for the given
9522 pc. Update comments.
9523
95242004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9525
2ede629f
EZ
9526 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9527 macro, which was part of the now removed Mach 3 port.
9528 * utils.c (request_quit): Ditto.
9529
567ee972
MK
95302004-02-18 Mark Kettenis <kettenis@gnu.org>
9531
9532 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9533 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9534
50cca7bb
MK
95352004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9536
9537 Committed by Mark Kettenis <kettenis@gnu.org>.
9538
9539 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9540 Define.
9541
226361c4
AC
95422004-02-18 Andrew Cagney <cagney@redhat.com>
9543
9544 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9545 CONFIG_INSTALL and CONFIG_UNINSTALL.
9546 * configure: Re-generate.
9547 * interps.h (INTERP_TUI): Define.
9548 * Makefile.in: Update dependencies.
9549 (TUI): New macro.
9550 (tui-main.o): Specify dependencies.
9551 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9552 * tui/tui-main.c: New file.
9553
49cfa46f
MK
95542004-02-18 Mark Kettenis <kettenis@gnu.org>
9555
e2879ccb
MK
9556 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9557 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9558 dependencies.
9559 * configure.host: Add x86_64-*-openbsd*.
9560 * configure.tgt: Add x86_64-*-openbsd*.
9561 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9562
c43f4bec
MK
9563 * tui/tui.c: Don't include <malloc.h>.
9564
09ae75b6
MK
9565 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9566 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9567 amd64nbsd-tdep.c.
9568
49cfa46f 9569 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9570 static. Remove extraneous whitespace.
49cfa46f
MK
9571 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9572 static.
9573
05957fdb
JB
95742004-02-17 Jim Blandy <jimb@redhat.com>
9575
9576 * findvar.c (value_from_register): Doc fix.
9577
d0f54f9d
JB
95782004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9579
9580 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9581
8a1dac83 9582 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9583 CORE_ADDR as type for selectors. Correct types for GNU run time
9584 message lookup function to use double indirection.
9585 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9586 * objc-lang.h (lookup_child_selector): Adapt prototype.
9587
9cbd5950
JB
9588 * s390-nat.c (SUBOFF): New macro.
9589 (supply_gregset, fill_gregset): Use it to handle debugging
9590 of 32-bit exectuables running under a 64-bit kernel.
9591 * s390-tdep.c: Include "solib-svr4.h".
9592 (s390_svr4_fetch_link_map_offset): New function.
9593 (s390x_svr_fetch_link_map_offset): Likewise.
9594 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9595 * Makefile.in (s390-tdep.o): Update dependencies.
9596
a8c99f38
JB
9597 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9598 "frame-unwind.h".
9599 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9600 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9601 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9602 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9603 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9604 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9605 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9606 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9607 (struct frame_extra_info): Remove.
9608 (s390_memset_extra_info): Remove.
f73b1eff
JB
9609 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9610 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9611 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9612 (is_rse): Renamed to ...
9613 (is_rsy): ... this. Support long displacements.
9614 (is_rxe): Renamed to ...
9615 (is_rxy): ... this. Support long displacements.
9616 (compute_x_addr): Support long displacements.
9617 (struct s390_prologue_data): New data type.
9618 (s390_on_stack): Change API to use struct s390_prologue_data.
9619 (s390_store): Reimplement.
9620 (s390_load): New function.
9621 (s390_get_signal_frame_info): Remove.
9622 (s390_get_frame_info): Remove, replace by ...
9623 (s390_analyze_prolog): ... this new function.
9624 (s390_check_function_end): Remove.
9625 (s390_function_start): Remove.
9626 (s390_frameless_function_invokation): Remove.
9627 (s390_is_sigreturn): Remove.
9628 (s390_init_frame_pc_first): Remove.
9629 (s390_init_frame_extra_info): Remove.
9630 (s390_frame_init_saved_regs): Remove.
9631 (s390_frame_saved_pc_nofix): Remove.
9632 (s390_frame_saved_pc): Remove.
9633 (s390_frame_chain): Remove.
9634 (s390_fp_regnum, s390_read_fp): Remove.
9635 (s390_pop_frame_regular, s390_pop_frame): Remove.
9636 (s390_saved_pc_after_call): Remove.
9637 (s390_skip_prologue): Reimplement.
9638 (s390_in_function_epilogue_p): Support long displacements.
9639 (struct s390_unwind_cache): New data structure.
9640 (s390_frame_unwind_cache): New function.
9641 (s390_prologue_frame_unwind_cache): Likewise.
9642 (s390_backchain_frame_unwind_cache): Likewise.
9643 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9644 (s390_frame_unwind): Define.
9645 (s390_frame_sniffer): New function.
9646 (struct s390_pltstub_unwind_cache): New data structure.
9647 (s390_pltstub_frame_unwind_cache): New function.
9648 (s390_pltstub_frame_this_id): Likewise.
9649 (s390_pltstub_frame_prev_register): Likewise.
9650 (s390_pltstub_frame_unwind): Define.
9651 (s390_pltstub_frame_sniffer): New function.
9652 (struct s390_sigtramp_unwind_cache): New data structure.
9653 (s390_sigtramp_frame_unwind_cache): New function.
9654 (s390_sigtramp_frame_this_id): Likewise.
9655 (s390_sigtramp_frame_prev_register): Likewise.
9656 (s390_sigtramp_frame_unwind): Define.
9657 (s390_sigtramp_frame_sniffer): New function.
9658 (s390_frame_base_address, s390_local_base_address): New functions.
9659 (s390_frame_base): Define.
9660 (s390_unwind_pc, s390_unwind_sp): New function.
9661 (s390_push_dummy_call): Use new frame base location.
9662 (s390_unwind_dummy_id): Likewise.
9663 (s390_gdbarch_init): Remove calls to:
9664 set_gdbarch_frameless_function_invocation,
9665 set_gdbarch_deprecated_init_frame_pc,
9666 set_gdbarch_deprecated_frame_chain,
9667 set_gdbarch_deprecated_frame_init_saved_regs,
9668 set_gdbarch_deprecated_pop_frame,
9669 set_gdbarch_deprecated_init_extra_frame_info,
9670 set_gdbarch_deprecated_init_frame_pc_first,
9671 set_gdbarch_deprecated_target_read_fp,
9672 set_gdbarch_deprecated_frame_saved_pc,
9673 set_gdbarch_deprecated_saved_pc_after_call,
9674 set_gdbarch_deprecated_fp_regnum.
9675 Add calls to:
9676 set_gdbarch_in_solib_call_trampoline,
9677 frame_unwind_append_sniffer,
9678 frame_base_set_default,
9679 set_gdbarch_unwind_pc,
9680 set_gdbarch_unwind_sp.
9681 * Makefile.in (s390-tdep.o): Update dependencies.
9682
b0cf273e
JB
9683 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9684 (S390_STACK_FRAME_OVERHEAD): Remove.
9685 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9686 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9687 (s390_promote_integer_argument): Remove.
9688 (s390_cannot_extract_struct_value_address): Remove.
9689 (s390_use_struct_convention, s390_store_struct_return): Remove.
9690 (s390_extract_return_value, s390_store_return_value): Remove.
9691 (s390_return_value_convention, s390_return_value): New functions.
9692 (is_float_singleton): Handle typedefs.
8a1dac83 9693 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9694 Remove, replace by ...
9695 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9696 s390_function_arg_integer): ... these new functions.
9697 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9698 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9699 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9700 Fill in tdep->abi.
9701 Remove calls to:
9702 set_gdbarch_deprecated_store_struct_return,
9703 set_gdbarch_deprecated_extract_return_value,
9704 set_gdbarch_deprecated_store_return_value,
9705 set_gdbarch_use_struct_convention,
9706 set_gdbarch_extract_struct_value_address,
9707 set_gdbarch_deprecated_pc_in_call_dummy,
9708 set_gdbarch_deprecated_push_arguments,
9709 set_gdbarch_deprecated_save_dummy_frame_tos,
9710 set_gdbarch_deprecated_push_return_address,
9711 set_gdbarch_deprecated_sizeof_call_dummy_words,
9712 set_gdbarch_deprecated_call_dummy_words,
9713 set_gdbarch_deprecated_dummy_write_sp.
9714 Add calls to:
9715 set_gdbarch_push_dummy_call,
9716 set_gdbarch_unwind_dummy_id,
9717 set_gdbarch_return_value.
8a1dac83 9718
e1457d83
JB
9719 * config/s390/nm-linux.h: Update comments.
9720 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9721 (STOPPED_BY_WATCHPOINT): Redefine.
9722 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9723 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9724 (s390_stopped_by_watchpoint): Likewise.
9725 (watch_area_cnt): Remove.
9726 * s390-nat.c: Update comments.
9727 (watch_area): Remove typedef.
9728 Global replace watch_area by struct watch_area.
9729 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9730 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9731 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9732 (s390_fix_watch_points): Remove pid argument,
9733 use s390_inferior_tid. Recompute area spanned by watchpoints.
9734 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9735 argument. Reimplement.
9736
d0f54f9d
JB
9737 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9738 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9739 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9740 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9741 core-regset.o.
9742 * config/s390/s390x.mt: Remove.
9743 * config/s390/tm-s390.h: Remove.
9744 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9745 (TARGET_ELF64): Remove.
9746 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9747 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9748 s390*-*-* case; always set gdb_target to s390.
9749 * regformats/reg-s390.dat: Remove control registers.
9750 * regformats/reg-s390x.dat: Likewise.
9751 * s390-tdep.h: New file.
8a1dac83 9752 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9753 Include "inferior.h" and "s390-tdep.h".
9754 Remove private definition of offsetof.
9755 (s390_register_u_addr): Remove.
9756 (regmap_gregset, regmap_fpregset): Define.
9757 (supply_gregset, fill_gregset): Reimplement.
9758 (supply_fpregset, fill_fpregset): Likewise.
9759 (s390_inferior_tid): New function.
9760 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9761 (fetch_inferior_registers, store_inferior_registers): Likewise.
9762 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9763 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9764 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9765 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9766 (struct gdbarch_tdep): Define.
9767 (struct s390_register_info): Define.
9768 (s390_register_info): New variable.
9769 (s390_register_name): Reimplement.
9770 (s390_register_type): New function.
9771 (s390_register_raw_size, s390x_register_raw_size): Remove.
9772 (s390_cannot_fetch_register): Remove.
9773 (s390_register_byte): Remove.
9774 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9775 (s390_dwarf_regmap): New variable.
9776 (s390_dwarf_reg_to_regnum): New function.
9777 (s390_stab_reg_to_regnum): Remove.
9778 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9779 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9780 (s390_convert_register_p): Likewise.
9781 (s390_register_to_value, s390_value_to_register): Likewise.
9782 (s390_register_reggroup_p): Likewise.
9783 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9784 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9785 (s390_supply_regset, s390_regset_from_core_section): New functions.
9786 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9787 (S390_FPR_SIZE): Likewise.
9788 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9789 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9790 (S390_NUM_GPRS): Move here from tm-s390.h.
9791 (S390_NUM_FPRS): Likewise.
9792 (s390_in_function_epilogue_p): New function.
9793 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9794 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9795 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9796 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9797 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9798 Remove calls to:
9799 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9800 set_gdbarch_deprecated_max_register_virtual_size,
9801 set_gdbarch_deprecated_register_byte,
d0f54f9d 9802 set_gdbarch_cannot_fetch_register,
8a1dac83 9803 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9804 set_gdbarch_deprecated_register_size,
9805 set_gdbarch_deprecated_register_raw_size,
9806 set_gdbarch_deprecated_register_virtual_size,
9807 set_gdbarch_deprecated_register_virtual_type,
9808 set_gdbarch_deprecated_register_bytes.
9809 Add calls to:
9810 set_gdbarch_num_pseudo_regs,
9811 set_gdbarch_register_type,
9812 set_gdbarch_convert_register_p,
9813 set_gdbarch_register_to_value,
9814 set_gdbarch_value_to_register,
9815 set_gdbarch_register_reggroup_p,
9816 set_gdbarch_regset_from_core_section,
9817 set_gdbarch_pseudo_register_read,
9818 set_gdbarch_pseudo_register_write,
9819 set_gdbarch_in_function_epilogue_p.
9820 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9821 (s390_tdep_h): New variable.
9822
8cfe231d
JB
98232004-02-17 Jim Blandy <jimb@redhat.com>
9824
4589a601
JB
9825 * findvar.c (value_from_register): If the type has no length, just
9826 return an acceptable value --- don't report an internal error.
9827
8cfe231d
JB
9828 * stabsread.c (read_type): If we find any type numbers that are
9829 forward references, complain if the references aren't resolved by
9830 the time we're finished reading.
9831 (cleanup_undefined_types): Make error message more appropriate for
9832 a complaint.
9833
5bf0017e
EZ
98342004-02-17 Elena Zannoni <ezannoni@redhat.com>
9835
9d62932d
EZ
9836 * Makefile.in (defs_h): Remove dependency on progress_h.
9837 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9838 progress.h.
9839 * main.c (captured_main): Delete use of START_PROGRESS and
9840 END_PROGRESS.
9841
98422004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9843
5bf0017e
EZ
9844 * objfiles.c (terminate_minimal_symbol_table): Add back
9845 initialization of MSYMBOL_TYPE.
9846
9fc9f5e2
AC
98472004-02-17 David Mosberger <davidm@hpl.hp.com>
9848
9849 Committed by Andrew Cagney.
9850 * Makefile.in (ia64_tdep_h): New macro.
9851 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9852 (ia64-tdep.o): Likewise.
9853 * ia64-tdep.h: New file.
9854 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9855 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9856 (ia64_aix_sigcontext_register_address): Likewise.
9857 (ia64_linux_getunwind_table): Delete declaration.
9858 * ia64-linux-tdep.c: Likewise.
9859
76cd2bd9
CV
98602004-02-17 Corinna Vinschen <vinschen@redhat.com>
9861
9862 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9863 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9864 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9865
634aa483
AC
98662004-02-17 Andrew Cagney <cagney@redhat.com>
9867
9868 * symtab.c (skip_prologue_using_sal): New function.
9869 * symtab.h (skip_prologue_using_sal): Declare.
9870 * frv-tdep.c: Include "symtab.h".
9871 (skip_prologue_using_sal): Delete function.
9872 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9873 * rs6000-tdep.c (refine_prologue_limit): Mention
9874 skip_prologue_using_sal.
9875 * ia64-tdep.c (refine_prologue_limit): Ditto.
9876 * Makefile.in: Update dependencies.
9877
98782004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9879
39ce7b3f
AC
9880 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9881 START_INFERIOR_TRAPS_EXPECTED.
9882 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9883 START_INFERIOR_TRAPS_EXPECTED.
9884 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9885 Delete macro.
9886 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9887 macro, moved to "nm-osf.h". Update copyright.
9888 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9889 update copyright.
9890
19772a2c
AC
9891 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9892 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9893 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9894 frameless_look_for_prologue.
9895 * frame.h (legacy_frameless_look_for_prologue): Rename
9896 frameless_look_for_prologue.
9897 * gdbarch.h, gdbarch.c: Re-generate.
9898 * sh64-tdep.c (sh64_gdbarch_init): Update.
9899 * sh-tdep.c (sh_gdbarch_init): Update.
9900 * s390-tdep.c (s390_gdbarch_init): Update.
9901 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9902 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9903 * m68k-tdep.c (m68k_gdbarch_init): Update.
9904 (delta68_frame_args_address): Update.
9905 * m32r-tdep.c (m32r_gdbarch_init): Update.
9906 * hppa-tdep.c (hppa_gdbarch_init): Update.
9907 * h8300-tdep.c (h8300_gdbarch_init): Update.
9908 * frv-tdep.c (frv_gdbarch_init): Update.
9909 (frv_frameless_function_invocation): Update.
9910 * cris-tdep.c (cris_gdbarch_init): Update.
9911 (cris_frameless_function_invocation): Update.
9912 * avr-tdep.c (avr_gdbarch_init): Update.
9913 * arm-tdep.c (arm_gdbarch_init): Update.
9914 * stack.c (frame_info): Update, call predicate.
9915 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9916 * frame.c (legacy_get_prev_frame): Update, call predicate..
9917 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9918 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9919 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9920 invocation.
9921 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9922 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9923 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9924
9925 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9926 function.
9927
7dcaac91
DJ
99282004-02-16 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9931 initializations.
9932
88289b6e
AC
99332004-02-16 Andrew Cagney <cagney@redhat.com>
9934
9935 * tui/tui-windata.c: Include "gdb_string.h".
9936 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9937 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9938 * Makefile.in: Update dependencies.
9939
9f976b41
DJ
99402004-02-16 Daniel Jacobowitz <drow@mvista.com>
9941
9942 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9943 * infrun.c: Include "gdb_assert.h".
9944 (singlestep_ptid, saved_singlestep_ptid)
9945 (stepping_past_singlestep_breakpoint): New variables.
9946 (resume): Set singlestep_ptid. Check for singlestep thread
9947 hop.
9948 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9949 (handle_inferior_event): Handle singlestep thread hop.
9950
c324d747
AC
99512004-02-16 Andrew Cagney <cagney@redhat.com>
9952
f090b9b1
AC
9953 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9954 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9955 (dwarf2_frame_init_reg): Ditto.
9956
fd33e6cb
AC
9957 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9958 suggested by Joshua Neuheisel
9959
c324d747
AC
9960 * configure.in: Always check for curses, including pdcurses.
9961 Warn, instead of error, when no curses are found. Enable TUI when
9962 curses is available.
9963 * configure: Re-generate.
9964
b66ba949
CV
99652004-02-16 Corinna Vinschen <vinschen@redhat.com>
9966
9967 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9968 sh_sh4_register_convert_to_virtual.
9969 (sh_register_convert_to_raw): Rename from
9970 sh_sh4_register_convert_to_raw.
9971 (sh_pseudo_register_read): Accomodate above name change.
9972 (sh_pseudo_register_write): Ditto.
9973
b58cbbf2
CV
99742004-02-16 Corinna Vinschen <vinschen@redhat.com>
9975
9976 * sh-tdep.c (sh_generic_register_name): Remove.
9977 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9978
5929a910
AC
99792004-02-15 Andrew Cagney <cagney@redhat.com>
9980
4566dfcf
AC
9981 * configure.in (build_warnings): Add -Wunused-function.
9982 * configure: Re-generate.
9983
db11ed55
AC
9984 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9985 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9986
46ac7a5d
AC
9987 * procfs.c (procfs_init_inferior): Assume that
9988 START_INFERIOR_TRAPS_EXPECTED is defined.
9989 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9990 * config/ns32k/tm-nbsd.h: Delete file,
9991 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9992
ba801595
AC
9993 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9994 * config/vax/tm-vax.h: Delete file.
9995
5929a910
AC
9996 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9997 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9998 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9999 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10000 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10001 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10002 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10003
8f22cb90
MK
100042004-02-15 Mark Kettenis <kettenis@gnu.org>
10005
10006 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10007 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10008 (struct dwarf2_frame_ops): New.
10009 (dwarf2_frame_default_init_reg): New function, based on
10010 dwarf2_frame_init_reg.
10011 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10012 (dwarf2_frame_init_reg): Call architecture-specific function.
10013 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10014 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10015 instead of dwarf2_frame_data.
10016 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10017 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10018
8132723e
AC
100192004-02-15 Andrew Cagney <cagney@redhat.com>
10020
046a4708
AC
10021 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10022 register_gdbarch_swap.
10023 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10024 * f-lang.c (_initialize_f_language): Update, use
10025 DEPRECATED_REGISTER_GDBARCH_SWAP.
10026 * remote.c (_initialize_remote): Ditto.
10027 * regcache.c (_initialize_regcache): Ditto.
10028 * parse.c (_initialize_parse): Ditto.
10029 * infrun.c (_initialize_infrun): Ditto.
10030 * mi/mi-main.c (_initialize_mi_main): Ditto.
10031 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10032
549c1eea
AC
10033 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10034 poking .cacheable directly.
10035 * symfile.c (symfile_bfd_open): Ditto.
10036
0c0b39de
AC
10037 * Makefile.in: Update all dependencies.
10038
8132723e
AC
10039 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10040 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10041 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10042 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10043 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10044
b9d26eb9
AC
100452004-02-14 Andrew Cagney <cagney@redhat.com>
10046
8e1f669a
AC
10047 * arch-utils.c (legacy_convert_register_p): Check
10048 DEPRECATED_REGISTER_CONVERTIBLE_P.
10049 * findvar.c (value_of_register): Ditto.
10050
cd0bfa36
AC
10051 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10052 * gdbarch.h, gdbarch.c: Re-generate.
10053 * arch-utils.c (deprecated_register_convertible_not): Delete.
10054 * arch-utils.h (deprecated_register_convertible_not): Delete.
10055 * mi/mi-main.c (get_register): Update. Update copyright.
10056 * infcmd.c (default_print_registers_info): Update.
10057
b9d26eb9
AC
10058 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10059 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10060 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10061 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10062 * frame.c (deprecated_get_next_frame_hack): Delete function.
10063 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10064 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10065 Update.
10066 * infcall.c (call_function_by_hand): Update.
10067
9ab9195f
EZ
100682004-02-14 Elena Zannoni <ezannoni@redhat.com>
10069
10070 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10071 from here...
9ab9195f
EZ
10072 * objfiles.c (init_entry_point_info, entry_point_address):..to
10073 here.
10074 * symfile.h (init_entry_point_info, entry_point_address): Remove
10075 prototypes.
10076 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10077 prototypes.
9ab9195f
EZ
10078 * cris-tdep.c: Remove include of symfile.h. Add include of
10079 objfiles.h.
10080 * infcall.c: Ditto.
10081 * mcore-tdep.c: Ditto.
10082 * mn10300-tdep.c: Ditto.
10083 * sh64-tdep.c: Ditto.
10084 * v850-tdep.c: Ditto.
10085 * arm-tdep.c: Remove include of symfile.h.
10086 * blockframe.c: Ditto.
10087 * coffread.c: Ditto.
10088 * dbxread.c: Ditto.
10089 * dwarf2read.c: Ditto.
10090 * dwarfread.c: Ditto.
8a1dac83 10091 * frv-tdep.c: Ditto.
9ab9195f
EZ
10092 * ia64-tdep.c: Ditto.
10093 * mdebugread.c: Ditto.
10094 * mipsread.c: Ditto.
8a1dac83 10095 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10096 * s390-tdep.c: Ditto.
10097 * sh-tdep.c: Ditto.
8a1dac83 10098 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10099 * gdbarch.sh: Remove include of symfile.h.
10100 * gdbarch.c: Regenerate.
10101 * solib-irix.c (enable_break): Use entry_point_address().
10102 Add comment about include file.
10103 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10104 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10105 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10106 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10107 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10108 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10109
c4c5b7ba
AC
101102004-02-13 Andrew Cagney <cagney@redhat.com>
10111
10112 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10113 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10114 copyright.
10115 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10116
3e7879de
FF
101172004-02-12 Fred Fish <fnf@redhat.com>
10118
10119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10120 set_gdbarch_store_return_value.
10121
6a7760b6
AC
101222004-02-12 Andrew Cagney <cagney@redhat.com>
10123
10124 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10125 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10126 (interrupt_query): Ditto.
10127 (ofunc): Delete unused variable.
10128 * cris-tdep.c (cris_abi): Delete unused function.
10129 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10130 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10131 (cris_get_asr_quick_shift_steps): Ditto.
10132 (cris_skip_prologue_frameless_p): Ditto.
10133 * arm-tdep.c (arm_push_return_address): Delete unused function.
10134 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10135 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10136 * s390-tdep.c (s390_function_start): Delete unused function.
10137
31687c3c
AC
101382004-02-12 Andrew Cagney <cagney@redhat.com>
10139
10140 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10141 gdbarch.h, gdbarch.c: Re-generate.
10142 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10143 to generic_prologue_frameless_p.
10144 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10145 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10146
6de918a6
DJ
101472004-02-11 Daniel Jacobowitz <drow@mvista.com>
10148
10149 * mips-linux-tdep.c: Include "frame.h".
10150 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10151 (mips_linux_skip_resolver): New functions.
10152 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10153 and set_gdbarch_in_solib_call_trampoline.
10154 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10155 to after set_gdbarch_in_solib_return_trampoline. Only set the
10156 solib hooks to mips16 functions if the OS ABI is unknown.
10157 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10158 including "config/tm-linux.h".
10159 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10160 * Makefile.in (mips-linux-tdep.o): Update.
10161
87b3ede8
DC
101622004-02-11 David Carlton <carlton@kealia.com>
10163
10164 * linespec.c (decode_compound): Only look for a class symbol when
10165 considering all but the rightmost component.
10166
5979bc46
AC
101672004-02-11 Andrew Cagney <cagney@redhat.com>
10168
10169 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10170 abi code are are separatly grouped.
10171
5867a2fb
AC
101722004-02-11 Andrew Cagney <cagney@redhat.com>
10173
10174 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10175 * gdbarch.h, gdbarch.c: Re-generate.
10176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10177 * v850-tdep.c (v850_gdbarch_init): Update.
10178 * sh64-tdep.c (sh64_gdbarch_init): Update.
10179 * sh-tdep.c (sh_gdbarch_init): Update.
10180 * s390-tdep.c (s390_gdbarch_init): Update.
10181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10182 * mips-tdep.c (mips_gdbarch_init): Update.
10183 * mcore-tdep.c (mcore_gdbarch_init): Update.
10184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10185 * m32r-tdep.c (m32r_gdbarch_init): Update.
10186 * ia64-tdep.c (ia64_gdbarch_init): Update.
10187 * hppa-tdep.c (hppa_gdbarch_init): Update.
10188 * h8300-tdep.c (h8300_gdbarch_init): Update.
10189 * frv-tdep.c (frv_gdbarch_init): Update.
10190 * d10v-tdep.c (d10v_gdbarch_init): Update.
10191 * cris-tdep.c (cris_gdbarch_init): Update.
10192 * avr-tdep.c (avr_gdbarch_init): Update.
10193 * arm-tdep.c (arm_gdbarch_init): Update.
10194 * alpha-tdep.c (alpha_gdbarch_init): Update.
10195
026a72f8
CV
101962004-02-11 Corinna Vinschen <vinschen@redhat.com>
10197
10198 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10199 comma.
10200 (sh_sh4al_dsp_register_name): Ditto.
10201
3903d437
AC
102022004-02-10 Andrew Cagney <cagney@redhat.com>
10203
10204 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10205 (mips_init_frame_pc_first): Delete function.
10206 (mips_frame_saved_pc): Delete function.
10207 (mips_frame_chain): Delete function.
10208 (mips_init_extra_frame_info): Delete function.
10209 (mips_xfer_register): Delete unused variable "reg".
10210 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10211 (mips_n32n64_return_value): Delete unused variable "reg".
10212 (mips_n32n64_return_value): Delete unused variable "pos".
10213 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10214 (mips_o32_return_value): Delete unused variable "pos".
10215 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10216 (mips_print_fp_register): Delete unused variable "namelen"
10217 (mips_print_fp_register): Delete unused variable "flt2"
10218 (get_frame_pointer): Delete function.
10219 (cached_proc_desc): Delete static variable.
10220 (mips_pop_frame): Delete function.
10221 (mips_find_saved_regs): Delete function.
10222 (mips_get_saved_register): Delete function.
10223 (mips_saved_pc_after_call): Delete function.
10224 (SIGFRAME_BASE): Delete macro.
10225 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10226 (SIGFRAME_PC_OFF): Delete macro.
10227 (SIGFRAME_REGSAVE_OFF): Delete macro.
10228 (mips_dump_tdep): Do not print deleted macro definitions.
10229
b9fb98bd
AC
102302004-02-10 Andrew Cagney <cagney@redhat.com>
10231
10232 * Makefile.in (SFILES): Remove explictly listed tui files.
10233 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10234
78ced177 102352004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10236
78ced177
JJ
10237 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10238 to use paddr functions to format ia64 addresses and long values.
10239 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10240 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10241 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10242 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10243 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10244
6a83354a
AC
102452004-02-10 Andrew Cagney <cagney@redhat.com>
10246
10247 * defs.h: Do not include "tui.h".
10248 * gdb_curses.h: New file.
10249 * tui/tui-hooks.h: New file.
10250 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10251 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10252 (tui_initialize_io): Delete declaration.
10253 (tui_initialize_readline: Delete redundant declaration.
10254 (struct tui_point): Delete definition.
10255 * tui/tui-data.h (struct tui_point): Define.
10256 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10257 * utils.c: Include "tui/tui.h".
10258 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10259 * printcmd.c [TUI]: Include "tui/tui.h".
10260 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10261 * tui/tui-command.c: Include "gdb_curses.h".
10262 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10263 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10264 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10265 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10266 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10267 * Makefile.in: Update all dependencies.
10268 (tui_hooks_h, gdb_curses_h): Define.
10269 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10270
997470ef
EZ
102712004-02-10 Elena Zannoni <ezannoni@redhat.com>
10272
10273 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10274 auxf2. Add comments about some other rarely used fields.
10275
4ff2cc4d
AC
102762004-02-10 Andrew Cagney <cagney@redhat.com>
10277
10278 * Makefile.in (init.c): Fix script removing duplicates. Problem
10279 reported by Peter Schauer.
10280
1ab21617
EZ
102812004-02-09 Elena Zannoni <ezannoni@redhat.com>
10282
10283 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10284 obstack_specify_allocation.
10285 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10286 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10287 (allocate_rt_common_objfile): Ditto.
10288 * symfile.c (reread_symbols): Ditto.
10289 * gdb_obstack.h: Add comment.
10290
17763fd9
EZ
102912004-02-09 Elena Zannoni <ezannoni@redhat.com>
10292
10293 * linespec.c (decode_line_1, locate_first_half)
10294 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10295 commented out code.
10296
ec5cdd75
DJ
102972004-02-09 Daniel Jacobowitz <drow@mvista.com>
10298
10299 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10300 obstack_free.
10301
43b54b88
AC
103022004-02-09 Andrew Cagney <cagney@redhat.com>
10303
10304 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10305 fails, try find_pc_section. Fix PR c++/1267.
10306 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10307 instead of find_pc_mapped_section.
10308 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10309 not default to the section containing PC. Fix PR symtab/1519.
10310
edfae063
AC
103112004-02-09 Andrew Cagney <cagney@redhat.com>
10312
10313 * Makefile.in (mips-tdep.o): Update dependencies.
10314 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10315 "trad-frame.h".
10316 (mips_unwind_pc): Return the pseudo PC register.
10317 (mips_unwind_dummy_id): New function.
10318 (mips16_fetch_instruction): New function.
10319 (mips32_fetch_instruction): New function.
10320 (struct mips_frame_cache): Define.
10321 (mips_mdebug_frame_cache): New function.
10322 (mips_mdebug_frame_this_id): New function.
10323 (mips_mdebug_frame_prev_register): New function.
10324 (mips_mdebug_frame_unwind): Define.
10325 (mips_mdebug_frame_sniffer): New function.
10326 (mips_mdebug_frame_base_address): New function.
10327 (mips_mdebug_frame_base): Define.
10328 (mips_mdebug_frame_base_sniffer): New function.
10329 (mips_gdbarch_init): Append unwind and base sniffers. Set
10330 unwind_dummy_id.
10331
defc864c
AC
103322004-02-08 Andrew Cagney <cagney@redhat.com>
10333
6764ddad
AC
10334 * frame.c: Print both the register number and name.
10335
defc864c
AC
10336 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10337 and a sed into a single sed. Make .c and .o patterns more robust.
10338 (OBS): Delete.
10339 (INIT_FILES): Replace OBS with COMMON_OBS.
10340 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10341
645d6d10
MK
103422004-02-08 Mark Kettenis <kettenis@gnu.org>
10343
10344 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10345 the PT_WCOOKIE request.
10346
23e3c3fc
AC
103472004-02-08 Andrew Cagney <cagney@redhat.com>
10348
58dfe9ff
AC
10349 * mips-tdep.c (mips_unwind_pc): New function.
10350 (mips_gdbarch_init): Set mips_unwind_pc.
10351
1152e35e
AC
10352 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10353 (get_frame_id): Allow the UNKNOWN_FRAME.
10354 (frame_register_unwind, get_frame_type): Ditto.
10355
31b75dbf
AC
10356 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10357 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10358 unwind_dummy_id indicates a legacy frame.
10359
3483b318
AC
10360 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10361 * configure: Re-generate.
10362
23e3c3fc
AC
10363 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10364 methods.
10365
33f8ca73
AC
103662004-02-08 Andrew Cagney <cagney@redhat.com>
10367
10368 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10369 makefile macro.
10370 * configure: Re-generate.
10371 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10372 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10373 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10374 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10375 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10376 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10377 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10378 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10379 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10380 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10381
6ba8e26f 103822004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10383
20d286a5
AC
10384 * Makefile.in: Update all dependencies.
10385
d836ee13
AC
10386 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10387 * configure: Re-generate.
10388 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10389 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10390 (COMMON_OBS): Add "main.o" and "annotate.o".
10391 (ANNOTATE_OBS): Delete.
10392 (OBS): Remove ANNOTATE_OBS.
10393 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10394 CONFIG_INITS.
10395 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10396 against CONFIG_OBS and "main.o".
10397 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10398 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10399
d02c80cd
AC
10400 * tui/tui-command.c: Include "gdb_string.h", delete register
10401 attribute, use ISO-C function signatures.
10402 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10403 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10404 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10405 * tui/tui.c: Ditto.
6ba8e26f
AC
10406
10407 * tui/tui-command.c: Change variable and function names to lower
10408 case.
10409 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10410 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10411 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10412 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10413 * tui/tui-winsource.c, tui/tui.c: Ditto.
10414
4a146b47
EZ
104152004-02-07 Elena Zannoni <ezannoni@redhat.com>
10416
10417 * buildsym.c (free_pending_blocks, finish_block)
10418 (record_pending_block, make_blockvector, end_symtab): Replace
10419 symbol_obstack with objfile_obstack.
8a1dac83 10420 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10421 (coff_read_enum_type): Ditto.
8a1dac83 10422 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10423 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10424 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10425 (dwarf2_symbol_mark_computed): Ditto.
10426 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10427 * elfread.c (elf_symtab_read): Ditto.
10428 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10429 (hpread_read_enum_type, hpread_read_function_type)
10430 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10431 Ditto.
8a1dac83 10432 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10433 (java_link_class_type): Ditto.
8a1dac83 10434 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10435 (new_symbol): Ditto.
10436 * minsyms.c (install_minimal_symbols): Ditto.
10437 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10438 (terminate_minimal_symbol_table): Replace symbol_obstack with
10439 objfile_obstack.
10440 (free_objfile): Remove freeing of symbol_obstack.
10441 * objfiles.h: Remove symbol_obstack field.
10442 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10443 objfile_obstack.
10444 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10445 symbol_obstack.
10446 (solib_add_common_symbols): Replace symbol_obstack with
10447 objfile_obstack.
10448 * somsolib.c (som_solib_add): Ditto.
10449 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10450 (common_block_start, common_block_end): Ditto.
10451 * symfile.c (reread_symbols): Remove freeing and init of
10452 symbol_obstack.
10453 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10454 * symfile.h: Update comment.
10455 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10456 stats printing.
10457 * symtab.c (symbol_set_names): Replace symbol_obstack with
10458 objfile_obstack.
10459 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10460 Update comments.
10461 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10462 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10463 objfile_obstack.
10464
6d012f14
AC
104652004-02-07 Andrew Cagney <cagney@redhat.com>
10466
10467 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10468 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10469 fields and variables.
10470 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10471 (m_beInvisible): Delete macro.
10472 * tui/tui-data.h: Fix case case fields and variables.
10473 (m_genWinPtrIsNull): Delete macro.
10474 (tui_win_list): Rename winList.
10475 (TUI_SRC_WIN): Rename srcWin.
10476 (TUI_DISASM_WIN): Rename disassemWin.
10477 (TUI_DATA_WIN): Rename dataWin.
10478 (TUI_CMD_WIN): Rename cmdWin.
10479 (m_genWinPtrNotNull): Delete macro.
10480 (m_winPtrIsNull): Delete macro.
10481 (m_winPtrNotNull): Delete macro.
10482 (tui_win_is_source_type): Replace m_winIsSourceType
10483 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10484 (tui_win_has_locator): Replace m_hasLocator.
10485 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10486 m_setWinHighlightOff.
10487 * tui/tui-data.c: Update references.
10488 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10489 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10490 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10491 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10492 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10493 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10494 * tui/tui-winsource.c, tui/tui.c: Ditto.
10495
7d34766b
MK
104962004-02-07 Mark Kettenis <kettenis@gnu.org>
10497
1c800673
MK
10498 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10499 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10500 StackGhost.
10501
7d34766b
MK
10502 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10503 variable `i6' to `i7'.
10504 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10505
22940a24
AC
105062004-02-07 Andrew Cagney <cagney@redhat.com>
10507
10508 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10509 (TuiPoint, TuiPointPtr): Ditto.
10510 (TuiStatus, TuiStatusPtr): Ditto.
10511 (TuiWinType, TuiWinTypePtr): Ditto.
10512 (struct tui_point): Rename _TuiPoint.
10513 (tui_get_low_disassembly_address): Rename
10514 tuiGetLowDisassemblyAddress.
10515 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10516 (tuiFree): Delete declaration.
10517 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10518 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10519 * tui/tui.c (tuiFree): Delete function.
10520 * cli/cli-cmds.c (disassemble_command): Update references.
10521 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10522 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10523 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10524 * tui/tui-winsource.c: Ditto.
10525
8b92e4d5
EZ
105262004-02-07 Elena Zannoni <ezannoni@redhat.com>
10527
10528 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10529 coffstab_build_psymtabs, elfstab_build_psymtabs)
10530 (stabsect_build_psymtabs): Replace psymbol_obstack with
10531 objfile_obstack.
10532 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10533 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10534 Ditto.
10535 * dwarfread.c (scan_compilation_units): Ditto.
10536 * elfread.c (elfstab_offset_sections): Ditto.
10537 * hppa-tdep.c (read_unwind_info): Ditto.
10538 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10539 (hpread_end_psymtab): Ditto.
10540 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10541 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10542 Ditto.
10543 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10544 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10545 (build_objfile_section_table): Ditto.
10546 (allocate_objfile): Remove init of psymbol_obstack.
10547 (free_objfile): Remove freeing of psymbol_obstack.
10548 * objfiles.h (struct objfile): Remove field
10549 psymbol_obstack. Update comments.
10550 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10551 psymbol_obstack with objfile_obstack.
10552 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10553 psymbol_obstack.
10554 * somread.c (som_symfile_offsets, init_import_symbols)
10555 (init_export_symbols): Replace psymbol_obstack with
10556 objfile_obstack.
10557 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10558 * symfile.c (default_symfile_offsets, syms_from_objfile)
10559 (reread_symbols): Remove freeing and init of psymbol_obstack.
10560 (cashier_psymtab): Update comment.
10561 * symmisc.c (print_objfile_statistics): Don't report stats for
10562 psymbol obstack.
10563 * symtab.h (struct general_symbol_info, struct partial_symtab):
10564 Update comments.
10565 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10566 (xcoff_symfile_offsets): Replace psymbol_obstack with
10567 objfile_obstack.
10568
b99607ea
EZ
105692004-02-07 Elena Zannoni <ezannoni@redhat.com>
10570
10571 * objfiles.h (struct objfile): Add objfile_obstack field.
10572 Remove type_obstack field.
10573
10574 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10575 read_structure_scope read_enumeration, new_symbol): Replace
10576 type_obstack with objfile_obstack.
10577 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10578 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10579 (lookup_fundamental_type): Ditto.
10580 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10581 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10582 (hpread_read_doc_function_type, hpread_read_struct_type)
10583 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10584 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10585 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10586 (java_link_class_type): Ditto.
10587 * mdebugread.c (parse_type): Ditto.
10588 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10589 * solib-sunos.c (solib_add_common_symbols): Ditto.
10590 * stabsread.c (define_symbol, read_type, read_member_functions,
10591 read_cpp_abbrev, read_one_struct_field): Ditto.
10592 * symfile.c (reread_symbols): Ditto.
10593 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10594
2a8854a7
AC
105952004-02-07 Andrew Cagney <cagney@redhat.com>
10596
10597 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10598 (tui_exec_info_content): Rename TuiExecInfoContent.
10599 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10600 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10601 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10602 (TuiList, TuiListPtr): Ditto.
10603 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10604 (TuiDataType, TuiDataTypePtr): Ditto.
10605 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10606 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10607 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10608 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10609 (TuiDataElement, TuiDataElementPtr): Ditto.
10610 (TuiWinElement, TuiWinElementPtr): Ditto.
10611 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10612 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10613 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10614 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10615 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10616 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10617 * tui/tui-command.c, tui/tui-data.c: Update references.
10618 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10619 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10620 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10621 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10622
05cbe71a
MK
106232004-02-07 Mark Kettenis <kettenis@gnu.org>
10624
10625 * dwarf2-frame.h: Update copyright.
10626 (enum dwarf2_frame_reg_rule): New.
10627 (struct dwarf2_frame_state_reg): New.
10628 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10629 * dwarf2-frame.c: Update copyright.
10630 (enum dwarf2_reg_rule): Remove.
10631 (struct dwarf2_frame_state): Remove defenition of `struct
10632 dwarf2_frame_state_reg'.
10633 (read_reg): Call get_frame_arch to get the architecture instead of
10634 using CURRENT_GDBARCH.
10635 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10636 DWARF2_FRAME_.
10637 (dwarf2_frame_init_reg): New function.
10638 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10639 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10640 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10641 tags with DWARF2_FRAME_.
10642 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10643 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10644 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10645
ec7d9e56
AC
106462004-02-06 Andrew Cagney <cagney@redhat.com>
10647
dd1abb8c
AC
10648 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10649 (enum tui_data_type): Rename _TuiDataType.
10650 (struct tui_layout_def): Rename _TuiLayoutDef.
10651 (struct tui_source_element): Rename _TuiSourceElement.
10652 (struct tui_data_element): Rename _TuiDataElement.
10653 (struct tui_command_element): Rename _TuiCommandElement.
10654 (struct tui_locator_element): Rename _TuiLocatorElement.
10655 (union tui_which_element): Define.
10656 (struct tui_win_element): Rename _TuiWinElement.
10657 (struct tui_data_info): Rename _TuiDataInfo.
10658 (struct tui_source_info): Rename _TuiSourceInfo.
10659 (struct tui_command_info): Rename _TuiCommandInfo.
10660 (tui_initialize_static_data): Rename initializeStaticData.
10661 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10662 (tui_alloc_win_info): Rename allocWinInfo.
10663 (tui_init_generic_part): Rename initGenericPart.
10664 (tui_init_win_info): Rename initWinInfo.
10665 (tui_alloc_content): Rename allocContent.
10666 (tui_add_content_elements): Rename addContentElements.
10667 (tui_init_content_element): Rename initContentElement.
10668 (tui_free_window): Rename freeWindow.
10669 (tui_free_win_content): Rename freeWinContent.
10670 (tui_free_data_content): Rename freeDataContent.
10671 (tui_free_all_source_wins_content): Rename
10672 freeAllSourceWinsContent.
10673 (tui_del_window): Rename tuiDelWindow.
10674 (tui_del_data_windows): Rename tuiDelDataWindows.
10675 (tui_partial_win_by_name): Rename partialWinByName.
10676 (tui_win_name): Rename winName.
10677 (tui_current_layout): Rename currentLayout.
10678 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10679 (tui_term_height): Rename termHeight.
10680 (tui_set_term_height_to): Rename setTermHeightTo.
10681 (tui_term_width): Rename termWidth.
10682 (tui_set_term_width_to): Rename setTermWidthTo.
10683 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10684 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10685 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10686 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10687 (tui_source_windows): Rename sourceWindows.
10688 (tui_clear_source_windows): Rename clearSourceWindows.
10689 (tui_clear_source_windows_detail): Rename
10690 clearSourceWindowsDetail.
10691 (tui_clear_win_detail): Rename clearWinDetail.
10692 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10693 (tui_default_tab_len): Rename tuiDefaultTabLen.
10694 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10695 (tui_win_with_focus): Rename tuiWinWithFocus.
10696 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10697 (tui_layout_def): Rename tuiLayoutDef.
10698 (tui_win_resized): Rename tuiWinResized.
10699 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10700 (tui_next_win): Rename tuiNextWin.
10701 (tui_prev_win): Rename tuiPrevWin.
10702 (tui_add_to_source_windows): Rename addToSourceWindows.
10703 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10704 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10705 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10706 * tui/tui.c, tui/tui-data.c: Ditto.
10707 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10708 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10709
a358af15
AC
10710 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10711 (struct symtab): Declare.
10712 (tui_set_source_content): Rename tuiSetSourceContent.
10713 (tui_show_symtab_source): Rename tuiShowSource.
10714 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10715 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10716 * tui/tui-source.c: Update copyright. Update references.
10717 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10718 * tui/tui-stack.c: Update references.
10719
a21fcd8f
AC
10720 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10721 (struct tui_win_info): Declare.
10722 (tui_scroll_forward): Rename tuiScrollForward.
10723 (tui_scroll_backward): Rename tuiScrollBackward.
10724 (tui_scroll_left): Rename tuiScrollLeft.
10725 (tui_scroll_right): Rename tuiScrollRight.
10726 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10727 (tui_resize_all): Rename tuiResizeAll.
10728 (tui_refresh_all_win): Rename tuiRefreshAll.
10729 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10730 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10731 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10732 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10733
edae1ccf
AC
10734 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10735 (tui_erase_data_content): Rename tuiEraseDataContent.
10736 (tui_display_all_data): Rename tuiDisplayAllData.
10737 (tui_check_data_values): Rename tuiCheckDataValues.
10738 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10739 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10740 (tui_first_data_element_no_in_line): Rename
10741 tuiFirstDataElementNoInLine.
10742 (tui_delete_data_content_windows): Rename
10743 tuiDeleteDataContentWindows.
10744 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10745 (tui_display_data_from): Rename tuiDisplayDataFrom.
10746 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10747 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10748 * tui/tui-win.c, tui/tui-regs.c: Update references.
10749 * tui/tui-layout.c, tui/tui.c: Update references.
10750
ec7d9e56
AC
10751 * tui/tui-wingeneral.h: Update copyright.
10752 (m_allBeVisible): Delete macro.
8a1dac83 10753 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10754 (struct tui_gen_win_info): Declare.
10755 (struct tui_win_info): Declare.
10756 (tui_unhighlight_win): Rename unhighlightWin.
10757 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10758 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10759 (tui_make_window): Rename makeWindow.
10760 (tui_copy_win): Rename copyWin.
10761 (tui_box_win): Rename boxWin.
10762 (tui_highlight_win): Rename highlightWin.
10763 (tui_check_and_display_highlight_if_needed): Rename
10764 checkAndDisplayHighlightIfNeeded.
10765 (tui_refresh_all): Rename refreshAll.
10766 (tui_delete_win): Rename tuiDelwin.
10767 (tui_refresh_win): Rename tuiRefreshWin.
10768 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10769 (tui_make_visible, tui_make_invisible): New functions.
10770 (tui_make_all_visible, tui_make_all_invisible): New functions.
10771 (make_all_visible): Rename makeAllVisible.
10772 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10773 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10774 * tui/tui-windata.c, tui/tui-win.c: Update references.
10775 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10776 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10777
1e52e2eb
MK
107782004-02-06 Mark Kettenis <kettenis@gnu.org>
10779
10780 * proc-api.c (write_with_trace): Initialize local variable to
10781 silence compiler warning.
10782
f80bda8e
AC
107832004-02-06 Andrew Cagney <cagney@redhat.com>
10784
10785 * tui/tui-source.h: Do not include "defs.h".
10786 (struct tui_win_info): Declare.
10787 (tui_set_source_content_nil): Declare.
10788 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10789 (union tui_line_or_address): Rename _TuiLineOrAddress.
10790 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10791 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10792 (tui_update_source_window_as_is): Rename
10793 tuiUpdateSourceWindowAsIs.
10794 (tui_update_source_windows_with_addr): Rename
10795 tuiUpdateSourceWindowsWithAddr.
10796 (tui_update_source_windows_with_line): Rename
10797 tuiUpdateSourceWindowsWithLine.
10798 (tui_clear_source_content): Rename tuiClearSourceContent.
10799 (tui_erase_source_content): Rename tuiEraseSourceContent.
10800 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10801 (tui_show_source_content): Rename tuiShowSourceContent.
10802 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10803 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10804 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10805 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10806 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10807 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10808 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10809 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10810 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10811 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10812 (struct tui_win_info): Declare.
10813 * tui/tui-stack.c: Update references.
10814 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10815 * tui/tui-win.c, tui/tui-source.c: Ditto.
10816 * tui/tui.c, tui/tui-disasm.c: Ditto.
10817
9fbfb822
MK
108182004-02-06 Mark Kettenis <kettenis@gnu.org>
10819
10820 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10821 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10822
03cebad2
MK
108232004-02-05 Mark Kettenis <kettenis@gnu.org>
10824
10825 * infrun.c (handle_inferior_event): Allow for breakpoint
10826 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10827 and SIGEMT. Update comments.
10828 * NEWS (Revised SPARC target): Mention support for non-executable
10829 stack.
10830
290281b1
MK
108312004-02-04 Mark Kettenis <kettenis@gnu.org>
10832
10833 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10834 * inftarg.c: Update copyright year.
10835 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10836 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10837 (sparc_xfer_wcookie): New function.
10838 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10839 * Makefile.in (sparc-nat.o): Update dependencies.
10840 * config/sparc/nm-nbsd.h: Include "target.h".
10841 (NATIVE_XFER_WCOOKIE): New define.
10842 (sparc_xfer_wcookie): New prototype.
10843
212161df
AC
108442004-02-04 Andrew Cagney <cagney@redhat.com>
10845
10846 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10847 SYSCALL_TRAP function.
10848 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10849
6e4c6c91
DJ
108502004-02-04 Andrew Cagney <cagney@redhat.com>
10851 Daniel Jacobowitz <drow@mvista.com>
10852
10853 * objfiles.h: Delete comments refering to inside_entry_func and
10854 DEPRECATED_FRAME_CHAIN_VALID.
10855 * defs.h (inside_entry_func): Update prototype..
10856 * blockframe.c (inside_entry_func): Rename to
10857 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10858 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10859
cae688ec
JJ
108602004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10861
10862 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10863 outside of #ifdef SOLIB_ADD region.
10864 (do_restore_lang_radix_cleanup): Ditto.
10865 (resolve_pending_breakpoint): Ditto.
10866
19217676
AC
108672004-02-03 Andrew Cagney <cagney@redhat.com>
10868
10869 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10870 (process_note_abi_tag_sections): Delete unused function.
10871 (ia64_read_fp): Delete unused function.
10872 (gdbarch_extract_struct_value_address): Delete declaration.
10873
876753be
AC
108742004-02-02 Andrew Cagney <cagney@redhat.com>
10875
10876 * vax-tdep.c (vax_frame_chain): Delete call to
10877 deprecated_inside_entry_file.
10878 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10879
d4f10bf2
MK
108802004-02-02 Mark Kettenis <kettenis@gnu.org>
10881
10882 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10883 column that's "empty" or "same value" when eliminating REG_RA
10884 rules.
10885
cae688ec
JJ
108862004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10887
10888 * NEWS: Add information about new pending breakpoint support.
10889
0101ce28
JJ
108902004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10891
10892 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10893 and pending fields for pending breakpoint support.
10894 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10895 (condition_command): Only parse condition if not a pending
10896 breakpoint.
10897 (print_one_breakpoint): Add support for pending breakpoints.
10898 (describe_other_breakpoints): Add checks to verify we are not
10899 dealing with pending breakpoints.
10900 (check_duplicates): Don't check pending breakpoints.
10901 (set_raw_breakpoint): Initialize pending flag.
10902 (do_restore_lang_radix_cleanup): New cleanup routine.
10903 (resolve_pending_breakpoint): New function.
10904 (re_enable_breakpoints_in_shlibs): Try and resolve any
10905 pending breakpoints via resolve_pending_breakpoint.
10906 (mention): Add pending breakpoint support.
10907 (parse_breakpoint_sals): Add new parameter to pass to
10908 decode_line_1 to indicate silent errors when files or functions
10909 are not found. Change all callers.
10910 (do_captured_parse_breakpoint): New function.
10911 (break_command_1): Change prototype to return an rc value and to
10912 take an optional pending breakpoint pointer. Support creating
10913 a pending breakpoint if a "not found" form of error occurs when
10914 parsing the breakpoint. Also support resolving an existing pending
10915 breakpoint and be silent if the resolution fails.
10916 (create_breakpoints): Change prototype to take pending breakpoint
10917 pointer. When resolving a pending breakpoint, use the new pointer
10918 to provide a conditional or commands added by the end-user.
10919 (delete_breakpoint): Add appropriate check for pending.
10920 (breakpoint_re_set_one): Ditto.
10921 (do_enable_breakpoint): Ditto.
10922
8d577d32
DC
109232004-02-02 David Carlton <carlton@kealia.com>
10924
10925 * valops.c (enum oload_classification): New.
10926 (find_overload_match): Break implementation into separate
10927 functions; delete #if 0'd code; look for symbols within
10928 namespaces.
10929 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10930 (find_oload_champ,oload_method_static,classify_oload_match): New.
10931 * cp-support.h: Add declaration for cp_func_name; update
10932 declaration for make_symbol_overload_list.
10933 * cp-support.c (cp_func_name): New.
10934 (overload_list_add_symbol): Fix comment, use
10935 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10936 (make_symbol_overload_list): Take a function name and a namespace
10937 instead of a symbol; change implementation.
10938 (make_symbol_overload_list_using): New.
10939 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10940
22e8e3c7
FF
109412004-02-02 Fred Fish <fnf@redhat.com>
10942
10943 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10944 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10945 * remote-sim.c (gdb_os_write_stderr): Write output to
10946 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10947 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10948 gdb_stderr stream and update copyright years.
22e8e3c7 10949
6b753f60
DJ
109502004-02-01 Daniel Jacobowitz <drow@mvista.com>
10951
10952 * Makefile.in (mips-linux-nat.o): Update dependencies.
10953 * mips-linux-nat.c: Include mips-tdep.h.
10954
109552004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10956
10957 * sol-thread.c (sol_thread_xfer_partial): New function.
10958 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10959 (init_sol_core_ops): Likewise.
10960
10961 * procfs.c (procfs_xfer_partial): New function.
10962 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10963 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10964
10965 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10966 procfs_xfer_auxv function.
10967
10968 * procfs.c (procfs_make_note_section): If we can read
10969 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10970 * linux-proc.c (linux_make_note_section): Likewise.
10971
10972 * auxv.h: New file.
10973 * auxv.c: New file.
10974 * Makefile.in (auxv_h): New variable.
10975 (COMMON_OBS): Add auxv.o here.
10976 (auxv.o): New target.
10977
10978 * corelow.c (core_xfer_partial): New function.
10979 (init_core_ops): Use it for core_ops.to_xfer_partial.
10980
10981 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10982 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10983 macro if that is defined.
10984
fa5281d0
DJ
109852004-02-01 Daniel Jacobowitz <drow@mvista.com>
10986
10987 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10988 and check the specified thread for each breakpoint.
10989 * breakpoint.h (bpstat_stop_status): Update prototype.
10990 * infrun.c (handle_inferior_event): Update calls to
10991 bpstat_stop_status.
10992
26ee262d
DJ
109932004-02-01 Daniel Jacobowitz <drow@mvista.com>
10994
10995 * Makefile.in (cli-cmds.o): Add $(readline_h).
10996
d9b52655
DJ
109972004-02-01 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * cli/cli-cmds.c: Include readline.h.
11000 (complete_command): Pass the start of the last word to
11001 complete_line.
11002
9709f61c
DJ
110032004-01-31 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11006 argument, and change first argument to a CORE_ADDR.
11007 * breakpoint.h (bpstat_stop_status): Update prototype.
11008 * infrun.c (adjust_pc_after_break): Add a new comment.
11009 (handle_inferior_event): Update calls to bpstat_stop_status.
11010
4f1280bb
DJ
110112004-01-31 Daniel Jacobowitz <drow@mvista.com>
11012
11013 * breakpoint.h: Update copyright years.
11014
4fa8626c
DJ
110152004-01-31 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11018 (bpstat_stop_status): Don't decrement PC.
11019 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11020 prototype.
11021 * infrun.c (adjust_pc_after_break): New function.
11022 (handle_inferior_event): Call it, early. Remove later references
11023 to DECR_PC_AFTER_BREAK.
11024 (normal_stop): Add commentary.
11025
fad0733a
DJ
110262004-01-31 Daniel Jacobowitz <drow@mvista.com>
11027
11028 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11029 2004-01-27 double-free fix.
11030
42cdca6c
MK
110312004-01-31 Mark Kettenis <kettenis@gnu.org>
11032
11033 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11034 (sparc32_frame_prev_register): Handle StackGhost.
11035 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11036
932d5416
RM
110372004-01-29 Roland McGrath <roland@redhat.com>
11038
11039 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11040 * configure: Regenerated.
11041
11042 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11043 * Makefile.in (procfs.o): Add dep.
11044
47d3492a
AC
110452004-01-28 Andrew Cagney <cagney@redhat.com>
11046
11047 * tui/tui-stack.h: Update copyright.
11048 (struct frame_info): Add opaque declaration.
11049 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11050 (tui_show_locator_content): Rename tuiShowLocatorContent.
11051 (tui_show_frame_info): Rename tuiShowFrameInfo.
11052 * tui/tui-stack.c: Update copyright. Update references.
11053 * tui/tui-winsource.c: Update references.
11054 * tui/tui-win.c: Update references.
11055 * tui/tui-layout.c: Update references.
11056 * tui/tui-hooks.c: Update copyright, update references.
11057 * tui/tui.c: Update copyright, update references.
11058 * tui/tui-disasm.c: Update references.
11059
5d51ca54
DC
110602004-01-28 David Carlton <carlton@kealia.com>
11061
11062 * dwarf2read.c (add_partial_structure): Use demangled name if
11063 namespace equals "".
11064
086ed43d
JB
110652004-01-27 Jim Blandy <jimb@redhat.com>
11066
11067 Clean up misapplied patch:
11068 * dwarf2read.c (determine_prefix): Change one of the two forward
11069 declarations for 'determine_prefix_aux' to a declaration for this.
11070 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11071 argument to 'die_specification'.
11072
2a35147e
JB
11073 * dwarf2read.c (read_func_scope): Re-indent comment.
11074
a355c7de 110752004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11076
a355c7de
AC
11077 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11078 b->exp to NULL after freeing so that error during re-parsing or
11079 evaluation of expressions associated with breakpoint don't
11080 eventually lead to re-freeing of storage.
11081 Committed by Andrew Cagney.
11082
63ff5125
AC
110832004-01-27 Andrew Cagney <cagney@redhat.com>
11084
11085 * source.c (ambiguous_line_spec): Delete undefined declaration.
11086 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11087 (m32r_set_server_address, m32r_set_download_path): Ditto.
11088 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11089
e142c38c
DJ
110902004-01-27 Daniel Jacobowitz <drow@mvista.com>
11091
11092 * dwarf2read.c: Update calls to changed and renamed functions, and
11093 references to moved variables.
11094
11095 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11096 language, language_defn, list_in_scope, and ftypes members.
11097 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11098 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11099 (baseaddr): Remove globals.
11100
11101 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11102 (set_cu_language, die_is_declaration, die_specification)
11103 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11104 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11105 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11106 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11107
11108 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11109 cu.list_in_scope. Don't initialize cu_header_offset.
11110 (add_partial_symbol): Add local baseaddr.
11111 (psymtab_to_symtab_1): Add local baseaddr. Use
11112 objfile->section_offsets for consistency. Don't initialize
11113 cu_header_offset; do initialize cu.header.offset and
11114 cu.list_in_scope.
11115 (read_file_scope, read_func_scope, read_lexical_block_scope)
11116 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11117
c6e06ede
MC
111182004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11119
fb328ecc 11120 * PROBLEMS: Add gdb/1516.
c6e06ede 11121
48184fd4
AC
111222003-12-29 Robert Millan <robertmh@gnu.org>
11123
11124 Patch committed by Andrw Cagney.
11125 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11126 * configure.tgt: Match knetbsd*-gnu.
11127
c1321b30
AC
111282004-01-26 Andrew Cagney <cagney@redhat.com>
11129
f3699be3
AC
11130 * breakpoint.c (catch_command_1): Delete #ifdef code.
11131 (catch_fork_command_1): Delete #ifdef wrapper.
11132 (catch_exec_command_1): Ditto.
11133 (catch_load_command_1): Ditto.
11134 (catch_unload_command_1): Ditto.
11135
c1321b30
AC
11136 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11137 (catch_breakpoint): Delete #if0ed function.
11138 (disable_catch_breakpoint): Ditto.
11139 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11140 (disable_catch, enable_catch, delete_catch): Ditto.
11141
b4501125
AC
111422004-01-26 Andrew Cagney <cagney@redhat.com>
11143
11144 * remote.c (echo_check, quit_flag): Delete variables.
11145 (cisco_kernel_mode): Delete variable.
11146 (minitelnet_return, tty_input, escape_count): Delete variables.
11147 (remote_cisco_mode): Delete variable.
11148 (remote_cisco_open, remote_cisco_close): Delete function.
11149 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11150 (init_remote_cisco_ops): Delete function.
11151 (_initialize_remote): Do not install "remote cisco" code.
11152 (read_frame): Delete cisco specific code.
11153 (remote_info_process): Delete function.
11154 (remote_wait): Delete cisco specific code.
11155 (remote_cisco_section_offsets): Delete function.
11156 (remote_cisco_objfile_relocate): Delete function.
11157 (remote_async_wait): Delete cisco specific code.
11158 (minitelnet, readtty, readsocket): Delete function.
11159
74055713
AC
111602004-01-26 Andrew Cagney <cagney@redhat.com>
11161
11162 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11163 comments mentioning extract_returned_value_address.
11164 * infcmd.c (print_return_value): Update. Add comments on
11165 extract_returned_value_address.
11166 * stack.c (return_command): Add comments on
11167 extract_returned_value_address.
11168 * values.c: Update comment.
11169 * m32r-tdep.c: Update comment.
11170 * sparc-tdep.c: Update comment.
11171 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11173 * sh64-tdep.c (sh64_gdbarch_init): Update.
11174 * sh-tdep.c (sh_gdbarch_init): Update.
11175 * s390-tdep.c (s390_gdbarch_init): Update.
11176 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11177 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11178 * m68k-tdep.c (m68k_gdbarch_init): Update.
11179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11180 * m32r-tdep.c (m32r_gdbarch_init): Update.
11181 * ia64-tdep.c (ia64_gdbarch_init): Update.
11182 * h8300-tdep.c (h8300_gdbarch_init): Update.
11183 * frv-tdep.c (frv_gdbarch_init): Update.
11184 * arm-tdep.c (arm_gdbarch_init): Update.
11185 * alpha-tdep.c (alpha_gdbarch_init): Update.
11186
a67af2b9
AC
111872004-01-26 Andrew Cagney <cagney@redhat.com>
11188
11189 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11190 SYMBOL_LOCATION_FUNCS
11191 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11192 "struct symbol_ops".
11193 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11194 type to "struct symbol_ops".
11195 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11196 (struct symbol): Replace ".aux_value.loc.funcs" and
11197 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11198 (SYMBOL_OBJFILE): Delete macro.
11199 (SYMBOL_LOCATION_FUNCS): Delete macro.
11200 (SYMBOL_LOCATION_BATON): Update.
11201 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11202 intead of SYMBOL_LOCATION_FUNCS.
11203 * ax-gdb.c (gen_var_ref): Ditto.
11204 * printcmd.c (address_info): Ditto.
11205 * findvar.c (read_var_value): Ditto.
11206 (symbol_read_needs_frame): Ditto.
11207
c034e007
AC
112082004-01-26 Andrew Cagney <cagney@redhat.com>
11209
11210 * dwarf2read.c (read_func_scope): Document frame-base hack.
11211
bb472c1e
MK
112122004-01-25 Mark Kettenis <kettenis@gnu.org>
11213
11214 * infcmd.c (print_return_value): Plug memory leak; delete
11215 ui_stream object. Rename argument `structure_return' to
11216 `struct_return'.
11217
c8e737d5
MK
112182004-01-25 Mark Kettenis <kettenis@gnu.org>
11219
f941662f
MK
11220 * infcmd.c (print_return_value): Wrap long lines.
11221 (finish_command_continuation, finish_command): Remove unused
11222 variable `funcaddr'. Fix some coding-standards problems.
11223
c558d81a 11224 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11225 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11226 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11227 TDEP->fpregset to zero.
11228
bf1e5861 11229 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11230 floating-point registers for traditional NetBSD core files.
11231 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11232 TDEP->sizeof_fpregset here.
11233
4c72d57a
MK
112342004-01-25 Mark Kettenis <kettenis@gnu.org>
11235
566626fa
MK
11236 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11237 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11238 function with code split out from
11239 sparc32nbsd_sigcontext_frame_cache.
11240 (sparc32nbsd_sigcontext_frame_cache): Use
11241 sparc32nbsd_sigcontext_saved_regs.
11242 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11243 OpenBSD.
11244 * sparcobsd-tdep.c: New file.
11245 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11246 (sparcobsd-tdep.o): New dependency.
11247 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11248 * config/sparc/obsd.mt: New file.
11249
4c72d57a
MK
11250 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11251 TDEP->fpregset to be initialized to enable core file register
11252 sets.
11253
7e5e9f88
MK
112542004-01-24 Mark Kettenis <kettenis@gnu.org>
11255
f0f207fd 11256 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11257 Add opaque declarations.
11258 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11259 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11260 function with code split out from
11261 sparc64nbsd_sigcontext_frame_cache.
11262 (sparc64nbsd_sigcontext_frame_cache): Use
11263 sparc64nbsd_sigcontext_saved_regs.
11264 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11265 OpenBSD.
11266 * sparc64obsd-tdep.c: New file.
11267 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11268 (sparc64obsd-tdep.o): New dependency.
11269 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11270 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11271 * config/sparc/obsd64.mt: New file.
11272
690668cc
MK
11273 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11274 read the instruction at PC.
11275
7e5e9f88
MK
11276 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11277 value of GDB_OSABI_DEFAULT.
11278 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11279 instead of GDB_OSABI_NETBSD_AOUT.
11280
68b6dce9
NR
112812004-01-24 Nick Roberts <nick@nick.uklinux.net>
11282
11283 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11284 copyright.
11285
080ce8c0
AC
112862004-01-23 Andrew Cagney <cagney@redhat.com>
11287
11288 * printcmd.c (display_command): Replace tui_set_display call with
11289 tui_set_layout_for_display_command.
11290 * tui/tui.h (enum tui_win_type): Define.
11291 (tui_set_layout): Delete declaration.
11292 (tui_set_layout_for_display_command): Rename set_tui_layout.
11293 * tui/tui-data.h (enum tui_layout_type): Define.
11294 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11295 "tui.h".
11296 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11297 (tui_default_win_height): Rename tuiDefaultWinHeight.
11298 (tui_default_win_viewport_height): Rename
11299 tuiDefaultWinViewportHeight.
11300 (tui_set_layout): RenametuiSetLayout.
11301 * tui/tui-layout.c: Update references.
11302 * tui/tui.c: Update references.
11303 * tui/tui-disasm.c: Update references.
11304
b368761e
DC
113052004-01-23 David Carlton <carlton@kealia.com>
11306
11307 Partial workaround for PR c++/1511:
11308 * cp-namespace.c: Include frame.h.
11309 (cp_lookup_transparent_type): New
11310 (cp_lookup_transparent_type_loop): New.
11311 * cp-support.h: Declare cp_lookup_transparent_type.
11312 * symtab.c (basic_lookup_transparent_type): Renamed from
11313 lookup_transparent_type.
11314 (lookup_transparent_type): Replace old body by a call to
11315 current_language->la_lookup_transparent_type.
11316 * symtab.h: Update copyright. Declare
11317 basic_lookup_transparent_type.
11318 * language.h: Update copyright.
11319 (struct language_defn): Add la_lookup_transparent_type.
11320 * language.c: Update copyright.
11321 (unknown_language_defn): Add basic_lookup_transparent_type.
11322 (auto_language_defn): Add basic_lookup_transparent_type.
11323 (local_language_defn): Add basic_lookup_transparent_type.
11324 * ada-lang.c: Update copyright.
11325 (ada_language_defn): Add basic_lookup_transparent_type.
11326 * c-lang.c: Update copyright.
11327 (c_language_defn): Add basic_lookup_transparent_type.
11328 (cplus_language_defn): Add basic_lookup_transparent_type.
11329 (asm_language_defn): Add basic_lookup_transparent_type.
11330 (minimal_language_defn): Add basic_lookup_transparent_type.
11331 * f-lang.c: Update copyright.
11332 (f_language_defn): Add basic_lookup_transparent_type.
11333 * jv-lang.c: Update copyright.
11334 (java_language_defn): Add basic_lookup_transparent_type.
11335 * m2-lang.c: Update copyright.
11336 (m2_language_defn): Add basic_lookup_transparent_type.
11337 * objc-lang.c: Update copyright.
11338 (objc_language_defn): Add basic_lookup_transparent_type.
11339 * p-lang.c: Update copyright.
11340 (p_language_defn): Add basic_lookup_transparent_type.
11341 * scm-lang.c: Update copyright.
11342 (scm_language_defn): Add basic_lookup_transparent_type.
11343 * Makefile.in (cp-namespace.o): Depend on frame.h.
11344
fdde2d81
DC
113452004-01-23 David Carlton <carlton@kealia.com>
11346
11347 Patch for PR c++/1520:
11348 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11349 properly if we have a specification die.
11350 (determine_prefix_aux): Rename from determine_prefix.
11351 (determine_prefix): Like the old determine_prefix, but never
11352 returns NULL.
11353
5b828b6b
TR
113542004-01-23 Theodore A. Roth <troth@openavr.org>
11355
11356 * avr-tdep.c: Update copyright.
11357 (avr_iaddr_p): Delete unused function.
11358 (avr_saddr_p): Delete unused function.
11359
a1b8c067
DC
113602004-01-23 David Carlton <carlton@kealia.com>
11361
11362 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11363 Fix for PR symtab/1534.
11364
f2cab569
MK
113652004-01-23 Mark Kettenis <kettenis@gnu.org>
11366
11367 * NEWS (New native configurations): Mention OpenBSD/sparc and
11368 OpenBSD/sparc64.
11369 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11370 * configure.host: Likewise.
11371 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11372 handler for OpenBSD.
11373 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11374
642d8300
MK
113752004-01-22 Mark Kettenis <kettenis@gnu.org>
11376
89aac506
MK
11377 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11378 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11379
36662fde
MK
11380 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11381 * cli/cli-cmds.c (shell_escape): Likewise.
11382
642d8300
MK
11383 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11384 OpenBSD .note.openbsd.ident sections.
11385
fae299cd
DC
113862004-01-22 David Carlton <carlton@kealia.com>
11387
11388 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11389 get_scope_pc_bounds.
11390 (read_file_scope): Ditto.
11391 (get_scope_pc_bounds): New function, produced by extracting code
11392 from the above two functions, consolidating it, and adding support
11393 for DW_TAG_namespace.
11394
a49d618c
MK
113952004-01-22 Mark Kettenis <kettenis@gnu.org>
11396
11397 * osabi.c (MAX_NOTESZ): New define.
11398 (check_note): New function.
11399 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11400 check_note.
11401
fe61caab
RM
114022004-01-21 Roland McGrath <roland@redhat.com>
11403
11404 * MAINTAINERS (write after approval): Add myself.
11405
ec145965
EZ
114062004-01-21 Eli Zaretskii <eliz@gnu.org>
11407
11408 * utils.c (init_page_info): Move declarations of `rows' and
11409 `cols' before the __GO32__-specific code. Move the closing brace
11410 outside the #ifdef __GO32__..#endif block.
11411 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11412
877522db
PB
114132004-01-21 Paul Brook <paul@codesourcery.com>
11414
11415 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11416 BPSTAT_WHAT_CHECK_SHLIBS.
11417
dbf5be1c
PB
114182004-01-21 Paul Brook <paul@codesourcery.com>
11419
11420 * MAINTAINERS: Add myself to write-after-approval.
11421
81f08b92
AC
114222004-01-20 Andrew Cagney <cagney@redhat.com>
11423
5a1efed7
AC
11424 * ax-gdb.c (print_axs_value): Delete unused function.
11425 * jv-lang.c (java_lookup_type): Delete unused function.
11426 * cli/cli-dump.c (dump_filetype): Delete unused function.
11427 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11428 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11429 (mips_getstring): Delete unused function.
11430 (pmon_insert_breakpoint): Delete #if0ed function.
11431 (PMON_MAX_BP): Delete #if0ed MACRO.
11432 (mips_pmon_bp_info): Delete #if0ed variable.
11433 (pmon_remove_breakpoint): Delete #if0ed function.
11434 * monitor.c (monitor_write_even_block): Delete unused function.
11435 (monitor_write_memory_block): Delete #if0ed code.
11436 * dink32-rom.c (dink32_load): Delete unused function.
11437 (_initialize_dink32_rom): Delete #if0ed code.
11438 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11439
b0a30fce
AC
11440 * tui/tui-command.c: Update references.
11441 * tui/tui-io.c: Update references.
11442 * tui/tui-command.h: Update copyright.
11443 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11444
81f08b92
AC
11445 * source.c (ambiguous_line_spec): Delete never-defined function.
11446 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11447 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11448 * cli/cli-cmds.c (validate_comname): Ditto.
11449
65f05602
AC
11450 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11451 "tui-data.h".
11452 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11453 (tui_show_disassem): Rename tuiShowDisassem.
11454 (tui_show_disassem_and_update_source): Rename
11455 tuiVerticalDisassemScroll.
11456 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11457 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11458 * tui/tui.h: Update copyright.
11459 (enum tui_status): Define.
11460 * tui/tui-data.h (enum tui_scroll_direction): Define.
11461 * tui/tui-disasm.c: Update copyright. Update references.
11462 * tui/tui-winsource.c: Update copyright. Update references.
11463 * tui/tui-win.c: Update references.
11464 * tui/tui-layout.c: Update references.
11465
6bb0384f
AC
114662004-01-20 Andrew Cagney <cagney@redhat.com>
11467
11468 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11469 sym2 to start of block.
11470
9175c9a3
MC
114712004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11472
11473 * MAINTAINERS: Delete mmalloc.
11474 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11475 * NEWS: Mention removal of --with-malloc.
11476 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11477 * config.in: Regenerate.
11478 * configure: Regenerate.
6bb0384f
AC
11479 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11480 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11481 * gdbinit.in: Remove mmalloc.
11482 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11483 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11484 * config/i386/go32.mh: Likewise.
11485 * config/i386/interix.mh: Likewise.
11486 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11487
4fcef00a
JJ
114882004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11489
11490 * linespec.c (decode_variable, symtab_from_filename): Call
11491 error_silent with error message instead of throwing an exception
11492 directly.
11493 * defs.h (error_silent, error_output_message): Add prototypes.
11494 (catch_exceptions_with_msg): Ditto.
11495 * utils.c (error_silent, error_output_message): New functions.
11496 * top.c (catch_exceptions_with_msg): New function.
11497
8e94b928
NR
114982004-01-20 Nick Roberts <nick@nick.uklinux.net>
11499
11500 * mi/mi-cmds.h (enum print_values): Add definition.
11501
11502 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11503 type and value for simple data types and just the name and type
11504 for complex ones, if required.
11505
11506 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11507 children, if required.
11508
a02d6af8
KB
115092004-01-19 Kevin Buettner <kevinb@redhat.com>
11510
11511 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11512 unused declarations.
11513
78a4a9b9
AC
115142004-01-19 Andrew Cagney <cagney@redhat.com>
11515
11516 * top.h (mapped_symbol_files): Delete declaration.
11517 * main.c (captured_main): Delete option "m" and "mapped".
11518 * objfiles.c (mapped_symbol_files): Delete variable.
11519 * symfile.c (symbol_file_command): Delete mmap code.
11520 (symbol_file_add_with_addrs_or_offsets): Ditto.
11521 (add_symbol_file_command, reread_separate_symbols): Ditto.
11522 * objfiles.h (OBJF_MAPPED): Delete.
11523 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11524 (free_objfile) [USE_MMALLOC]: Ditto.
11525 (open_existing_mapped_file): Delete function.
11526 (open_mapped_file): Delete function.
11527 (map_to_file): Delete function.
11528
2dbd5e30
KB
115292004-01-19 Kevin Buettner <kevinb@redhat.com>
11530
11531 * infrun.c (step_into_function): Account for possible breakpoint
11532 adjustment when computing ``stop_func_start''.
11533
437b434f
KB
115342004-01-19 Kevin Buettner <kevinb@redhat.com>
11535
11536 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11537 the region size against the size of a pointer, not the size of
11538 a register as given by DEPRECATED_REGISTER_SIZE.
11539
55fb0713
AC
115402004-01-19 Andrew Cagney <cagney@redhat.com>
11541
11542 * tui/tui-regs.h: Include "tui-data.h".
11543 (tuiFirstRegElementNoInLine): Delete declaration.
11544 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11545 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11546 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11547 (tui_calculate_regs_column_count): Rename
11548 tuiCalculateRegsColumnCount.
11549 (tui_check_register_values): Rename tuiCheckRegisterValues.
11550 (tui_show_registers): Rename tuiShowRegisters.
11551 (tui_display_registers_from_line): Rename
11552 tuiDisplayRegistersFromLine.
11553 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11554 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11555 (tui_first_reg_element_no_inline): Rename
11556 tuiFirstRegElementNoInLine.
11557 * tui/tui-data.h: Update copyright.
11558 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11559 * tui/tui-windata.c: Update copyright, update references.
11560 * tui/tui-regs.c: Update copyright, update references.
11561 * tui/tui-win.c: Update copyright, update references.
11562 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11563
cebe9500
AC
115642004-01-18 Andrew Cagney <cagney@redhat.com>
11565
bcdf1568
AC
11566 * tui/tui-io.c: Update copyright.
11567 (key_is_end_sequence, key_is_backspace): New functions.
11568 (key_is_command_char, key_is_start_sequence): New function.
11569 (tui_getc): Update references.
11570 * tui/tui-io.h: Update copyright.
11571 (m_tuiStartNewLine): Delete macro.
11572 (m_isBackspace, m_isDeleteChar): Delete macros.
11573 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11574 (m_isNextPage, m_isPrevPage): Delete macros.
11575 (m_isLeftArrow, m_isRightArrow): Delete macros.
11576 (m_isXdbStyleCommandChar): Delete macro.
11577 (key_is_start_sequence): Declare, replace m_isStartSequence.
11578 (key_is_end_sequence): Declare, replace m_isEndSequence.
11579 (key_is_backspace): Declare ,replace m_isBackspace.
11580 (key_is_command_char): Declare, replace m_isCommandChar.
11581 * tui/tui-command.c: Update copyright.
11582 (tuiDispatchCtrlChar): Update references.
11583
130d87e6
AC
11584 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11585 tuiSourceWin.h.
11586
d7b2e967
AC
11587 * tui/tui-command.c: Rename tui/tuiCommand.c.
11588 * tui/tui-command.h: Rename tui/tuiCommand.h.
11589 * tui/tui-data.c: Rename tui/tuiData.c.
11590 * tui/tui-data.h: Rename tui/tuiData.h.
11591 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11592 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11593 * tui/tui-io.c: Rename tui/tuiIO.c.
11594 * tui/tui-io.h: Rename tui/tuiIO.h.
11595 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11596 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11597 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11598 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11599 * tui/tui-source.c: Rename tui/tuiSource.c.
11600 * tui/tui-source.h: Rename tui/tuiSource.h.
11601 * tui/tui-stack.c: Rename tui/tuiStack.c.
11602 * tui/tui-stack.h: Rename tui/tuiStack.h.
11603 * tui/tui-win.c: Rename tui/tuiWin.c.
11604 * tui/tui-win.h: Rename tui/tuiWin.h.
11605 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11606 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11607 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11608 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11609 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11610 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11611 * tui/tui-file.c: Update includes.
11612 * tui/tui-hooks.c: Update includes.
11613 * tui/tui-interp.c: Update includes.
11614 * tui/tui.c: Update includes.
11615 * Makefile.in: Update all tui/ dependencies.
11616 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11617
b2100910
AC
11618 * Makefile.in: Update copyright. Update dependencies.
11619
cebe9500
AC
11620 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11621 problem.
11622
c6f0559b
AC
116232004-01-18 Andrew Cagney <cagney@redhat.com>
11624
43e9390b
AC
11625 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11626 instead of register_gdbarch_init.
11627
c6f0559b
AC
11628 * remote-sds.c (tohex): Delete unused function. Update copyright.
11629 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11630 * v850-tdep.c (v850_register_virtual_size): Ditto.
11631 * target.c (normal_target_post_startup_inferior): Ditto.
11632 * source.c (ambiguous_line_spec): Ditto.
11633 * remote.c (adapt_remote_get_threadinfo): Ditto.
11634 * mi/mi-out.c (out_field_fmt): Ditto.
11635 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11636 (output_control_change_notification): Ditto.
11637 * m68k-tdep.c (m68k_register_byte): Ditto.
11638 (m68k_remote_breakpoint_from_pc): Ditto.
11639 * ui-out.c (init_ui_out_state): Delete unused declaration.
11640 * stabsread.c (search_value): Ditto.
11641 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11642 * maint.c (print_section_table): Ditto.
11643 * infrun.c (set_follow_fork_mode_command): Ditto.
11644
a8504492
MK
116452004-01-18 Mark Kettenis <kettenis@gnu.org>
11646
11647 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11648 DW_CFA_def_cfa_exporession. Add support for
11649 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11650 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11651
0bd8997e
AC
116522004-01-18 Andrew Cagney <cagney@redhat.com>
11653
11654 * ocd.c: Update copyright.
11655 (bdm_read_register_command): Delete unused function.
11656 (_initialize_remote_ocd): Delete commented out reference.
11657 (get_quoted_char, reset_packet): Delete #if0ed function.
11658 (output_packet, put_quoted_char): Delete #if0ed function.
11659 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11660 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11661 (BDM_BREAKPOINT): Delete #if0ed macro.
11662 (remote_timeout): Delete #if0ed variable.
11663
31bb40e4
MK
116642004-01-18 Mark Kettenis <kettenis@gnu.org>
11665
11666 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11667 (core-sol2.o): Remove dependency.
11668 * core-sol2.c: Remove file.
11669
887432a5
AC
116702004-01-17 Andrew Cagney <cagney@redhat.com>
11671
11672 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11673 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11674 enums.
11675
29182b13
DJ
116762004-01-17 Daniel Jacobowitz <drow@mvista.com>
11677
11678 * remote.c: Update copyright years.
11679
2963ee1d
DJ
116802004-01-17 Daniel Jacobowitz <drow@mvista.com>
11681
11682 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11683
79d45cd4
AC
116842004-01-17 Andrew Cagney <cagney@redhat.com>
11685
ee300cd4
AC
11686 * mdebugread.c: Update copyright.
11687 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11688 (parse_type, parse_procedure): Ditto.
11689 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11690
fcacc9c2
AC
11691 * cris-tdep.c (cris_store_struct_return): Put back accidently
11692 deleted function.
11693
79d45cd4
AC
11694 * gdbarch.sh: Update copyright year.
11695 * gdbarch.h, gdbarch.c: Re-generate.
11696
b263358a
DJ
116972004-01-17 Daniel Jacobowitz <drow@mvista.com>
11698
11699 Suggested by George Anzinger.
11700 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11701 correct stack offset. Include unknown opcode numbers in the error
11702 message.
11703
931aecf5
AC
117042004-01-17 Andrew Cagney <cagney@redhat.com>
11705
11706 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11707 extract_struct_value_address, i386 does not set it.
11708 * sparc64-tdep.c (sparc64_init_abi): Do not set
11709 extract_struct_value_address, never called.
11710 (sparc64_extract_struct_value_address): Delete function.
11711 * m68hc11-tdep.c: Update copyright.
11712 (m68hc11_gdbarch_init): Delete redundant assignment of
11713 extract_struct_value_address.
11714 * i386-tdep.c: Update copyright.
11715 (i386_gdbarch_init): Do not set extract_struct_value_address,
11716 never called.
11717 (i386_extract_struct_value_address): Delete function.
11718 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11719 extract_struct_value_address, never called.
11720 (sparc32_extract_struct_value_address): #if 0 function. Add
11721 comments explaining its future.
11722
756fe439
DJ
117232004-01-17 Daniel Jacobowitz <drow@mvista.com>
11724
11725 * arm-tdep.c (arm_write_pc): New function.
11726 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11727
e74f0f02
DJ
117282004-01-17 Daniel Jacobowitz <drow@mvista.com>
11729
11730 * breakpoint.c (must_shift_inst_regs): Delete.
11731 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11732 and SHIFT_INST_REGS.
11733 * infcmd.c (step_1, step_1_continuation): Delete references to
11734 SHIFT_INST_REGS.
11735 * infrun.c (keep_going): Likewise.
11736 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11737 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11738
b6cb9035
AC
117392004-01-17 Andrew Cagney <cagney@redhat.com>
11740
444a1e2e
AC
11741 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11742 * gdbarch.h, gdbarch.c: Re-generate.
11743 * infcmd.c (print_return_value): Delete reference to
11744 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11745
def7e6ed
AC
11746 * cris-tdep.c (cris_gdbarch_init): Do not set
11747 deprecated_extract_struct_value_address.
11748
07be497a
AC
11749 * xstormy16-tdep.c: Update copyright.
11750 (xstormy16_extract_struct_value_address): Update to current
11751 extract struct value address interface.
11752 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11753 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11754 current extract struct value address interface.
11755 (sh64_gdbarch_init): Set extract_struct_value_address.
11756
6b4d5c91
AC
11757 * cris-tdep.c: Update copyright.
11758 (cris_extract_struct_value_address): Delete function.
11759 (struct_return_address): Delete variable.
11760 (cris_store_struct_return): Do not set struct_return_address.
11761
464e0365
AC
11762 * mcore-tdep.c: Update copyright.
11763 (mcore_extract_struct_value_address): Delete function. Update
11764 comments.
11765 (mcore_gdbarch_init): Update.
11766 * mn10300-tdep.c: Update copyright.
11767 (mn10300_extract_struct_value_address): Delete function.
11768 (mn10300_gdbarch_init): Update.
11769 * v850-tdep.c: Update copyright.
11770 (v850_extract_struct_value_address): Delete.
11771 (v850_gdbarch_init): Update.
11772 * ns32k-tdep.c: Update copyright.
11773 (ns32k_extract_struct_value_address): Delete.
11774 (ns32k_gdbarch_init): Update.
11775 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11776 (hppa_gdbarch_init): Update.
11777 * vax-tdep.c: Update copyright.
11778 (vax_extract_struct_value_address): Delete.
11779 (vax_gdbarch_init): Update.
11780
afb18d0f
AC
11781 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11782 * gdbarch.h, gdbarch.c: Re-generate.
11783 * procfs.c (procfs_fetch_registers): Delete reference to
11784 DEPRECATED_NPC_REGNUM.
11785 (procfs_store_registers): Ditto.
11786 * regcache.c (generic_target_write_pc): Simplify.
11787 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11788
a698f53e
AC
11789 * core-sol2.c (fetch_core_registers): Replace
11790 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11791
adc11376
AC
11792 * hppa-tdep.c: Update copyright year.
11793 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11794 NPC_REGNUM.
11795 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11796
b6cb9035
AC
11797 * mips-tdep.c (mips_write_pc): New function.
11798 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11799 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11800 (mips_find_saved_regs, mips_software_single_step: Ditto.
11801 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11802 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11803
6d82d43b
AC
118042004-01-17 Andrew Cagney <cagney@redhat.com>
11805
11806 * mips-tdep.c: Re-indent. Group functions by ABI.
11807
71bd6bd4
AC
118082004-01-17 Andrew Cagney <cagney@redhat.com>
11809
11810 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11811 * gdbarch.c: Re-generate.
11812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11813 DECR_PC_AFTER_BREAK to zero.
11814 * vax-tdep.c (vax_gdbarch_init): Ditto.
11815 * v850-tdep.c (v850_gdbarch_init): Ditto.
11816 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11817 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11818 * sh-tdep.c (sh_gdbarch_init): Ditto.
11819 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11820 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11821 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11822 * mips-tdep.c (mips_gdbarch_init): Ditto.
11823 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11825 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11826 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11827 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11828 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11830 * frv-tdep.c (frv_gdbarch_init): Ditto.
11831 * cris-tdep.c (cris_gdbarch_init): Ditto.
11832 * avr-tdep.c (avr_gdbarch_init): Ditto.
11833 * arm-tdep.c (arm_gdbarch_init): Ditto.
11834 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11835
a02abb62
JB
118362004-01-17 J. Brobecker <brobecker@gnat.com>
11837
11838 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11839 Delete, no longer used.
11840 (read_subrange_type): New function, mostly extracted from
11841 read_array_type().
11842 (read_array_type): Replace extracted code by call to
11843 read_subrange_type().
11844 (dwarf2_get_attr_constant_value): New function.
11845 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11846 (add_partial_symbol): Likewise.
11847 (process_die): Likewise.
11848 (new_symbol): Likewise.
11849 (read_type_die): Likewise.
11850
cf5b2f1b
AC
118512004-01-16 Andrew Cagney <cagney@redhat.com>
11852
11853 * symfile.c: Update copyright year.
11854 (compare_symbols): Delete unused function.
11855 * stabsread.c: Update copyright year.
11856 (lrs_general_complaint): Delete unused function.
11857 (ref_search_value): Ditto.
11858 (get_substring): Delete declaration.
11859 * sh64-tdep.c: Update copyright year.
11860 (sh64_get_gdb_regnum): Delete unused function.
11861 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11862 Delete unused function.
11863
d33b9831
MK
118642004-01-17 Mark Kettenis <kettenis@gnu.org>
11865
11866 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11867 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11868
7aea86e6
AC
118692004-01-16 Andrew Cagney <cagney@redhat.com>
11870
11871 Changes from Peter Schauer.
11872 * rs6000-tdep.c: Update copyright year.
11873 (rs6000_push_dummy_call): Update the stack pointer before
11874 accessing the corresponding stack region.
11875 * rs6000-nat.c: Update copyright year.
11876 (set_host_arch): Set "info.abfd" to "exec_bfd".
11877
26b0da32
MK
118782004-01-15 Mark Kettenis <kettenis@gnu.org>
11879
11880 * blockframe.c: Update copyright year.
11881 (inside_entry_func): Don't treat a zero PC specially.
11882
86fbe6cc
EZ
118832004-01-14 Elena Zannoni <ezannoni@redhat.com>
11884
11885 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11886 variable.
11887 (gcore_create_callback): Ditto. Skip any memory segment that has
11888 no permissions set.
11889
63d06c5c
DC
118902004-01-14 David Carlton <carlton@kealia.com>
11891
11892 Change symbols for C++ nested types to contain the fully qualified
11893 name, if possible. (At least in the DWARF-2 case.) Partial fix
11894 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11895 c++/895.
11896 * c-exp.y (qualified_type): Handle types nested within classes.
11897 * cp-namespace.c: Update comments.
11898 (cp_set_block_scope): Delete #if 0.
11899 (cp_lookup_nested_type): Handle types nested within classes.
11900 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11901 when appropriate.
11902 (add_partial_symbol): Add the name of the enclosing namespace to
11903 types.
11904 (pdi_needs_namespace): New.
11905 (add_partial_namespace): Tweak comment.
11906 (add_partial_structure): New.
11907 (psymtab_to_symtab_1): Initialize processing_current_prefix
11908 here...
11909 (process_die): instead of here.
11910 (read_structure_scope): Try to figure out the name of the class or
11911 namespace that the structure might be defined within.
11912 (read_enumeration): Generate fully-qualified names, if possible.
11913 (read_namespace): Don't set name to NULL.
11914 (die_specification): New.
11915 (new_symbol): Generate fully-qualified names for types.
11916 (read_type_die): Determine appropriate prefix.
11917 (determine_prefix): New.
11918 (typename_concat): New.
11919 (class_name): New.
11920 * valops.c (value_aggregate_elt): Pass NOSIDE to
11921 value_struct_elt_for_reference.
11922 (value_struct_elt_for_reference): Make static, add NOSIDE
11923 parameter, call value_maybe_namespace_elt as a last resort.
11924 (value_namespace_elt): Break out code into
11925 value_maybe_namespace_elt.
11926 (value_maybe_namespace_elt): New.
11927
87783b8b
AC
119282004-01-12 Andrew Cagney <cagney@redhat.com>
11929
11930 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11931 cooked floating-point registers.
11932 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11933 and value_to_register.
11934
6503b91e
AC
119352004-01-13 Andrew Cagney <cagney@redhat.com>
11936
11937 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11938 * gdbarch.c: Re-generate.
11939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11940 FUNCTION_START_OFFSET.
11941 * v850-tdep.c (v850_gdbarch_init): Ditto.
11942 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11943 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11944 * sh-tdep.c (sh_gdbarch_init): Ditto.
11945 * s390-tdep.c (s390_gdbarch_init): Ditto.
11946 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11947 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11948 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11949 * mips-tdep.c (mips_gdbarch_init): Ditto.
11950 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11951 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11953 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11954 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11955 * i386-tdep.c (i386_gdbarch_init): Ditto.
11956 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11957 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11958 * frv-tdep.c (frv_gdbarch_init): Ditto.
11959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11960 * cris-tdep.c (cris_gdbarch_init): Ditto.
11961 * avr-tdep.c (avr_gdbarch_init): Ditto.
11962 * arm-tdep.c (arm_gdbarch_init): Ditto.
11963 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11964
ea1dd7bc
DJ
119652004-01-13 Daniel Jacobowitz <drow@mvista.com>
11966
11967 * infrun.c (follow_fork_mode_ask): Remove.
11968 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11969 (follow_fork): Simplify and remove internal error for
11970 follow_fork_mode_ask.
11971 (_initialize_infrun): Update "set follow-fork-mode" help text.
11972
0f0cffd2
AC
119732004-01-13 Andrew Cagney <cagney@redhat.com>
11974
11975 * configure.in: Update copyright year.
11976 (build_warnings): Add -Wunused-label.
11977 * configure: Re-generate.
11978
de38af99
AC
119792004-01-12 Andrew Cagney <cagney@redhat.com>
11980
954a7fba
AC
11981 * exec.h (exec_ops): Make "extern".
11982
de38af99
AC
11983 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11984 the function is void.
11985 (mips_pseudo_register_write): Ditto.
11986
1a111ce3
AC
119872004-01-12 Andrew Cagney <cagney@redhat.com>
11988
11989 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11990 call. Never defined.
11991 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11992 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11993 (struct sparc_gregset, struct regcache): Ditto.
11994 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11995
48efe704
AC
119962004-01-12 Andrew Cagney <cagney@redhat.com>
11997
11998 * mi/ChangeLog: Delete file. Renamed to ...
11999 * mi/ChangeLog-1999-2003: New file.
12000 * tui/ChangeLog: Delete file. Renamed to ...
12001 * tui/ChangeLog-1998-2003: New file.
fe61caab 12002
a54124c5
MK
120032004-01-11 Mark Kettenis <kettenis@gnu.org>
12004
2ca62865
MK
12005 * sparc64nbsd-tdep.c: Include "regset.h".
12006 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12007 Remove variables.
12008 (fetch_core_registers): Remove function.
12009 (sparc64nbsd_core_fns): Remove variable.
12010 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12011 functions.
12012 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12013 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12014 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12015
ca9d58e9
MK
12016 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12017 sparc_extract_struct_value_address.
12018 (sparc32_gdbarch_init): Set extract_struct_value_address.
12019 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12020 function.
12021 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12022 return_value_on_stack.
12023
3cc87ec0
MK
12024 * NEWS: Mention that %cs and %ss have been added to the AMD64
12025 configurations
12026
5bf00f29
MK
12027 * frame.c: Update copyright year.
12028 (get_prev_frame): Improve comment.
12029
4f7ec84e
MK
12030 * sparc64fbsd-tdep.c: Include "regset.h".
12031 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12032 Remove variables.
12033 (fetch_core_registers): Remove function.
12034 (sparc64fbsd_core_fns): Remove variable.
12035 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12036 functions.
12037 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12038 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12039 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12040
4e7b0cd3
MK
12041 * sparcnbsd-tdep.c: Include "regset.h".
12042 (fetch_core_registers): Remove function.
12043 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12044 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12045 functions.
12046 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12047 TDEP->fpregset.
46b58ce9 12048 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12049
a54124c5
MK
12050 * sparc-tdep.h (struct regset): Provide opaque declaration.
12051 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12052 fpregset and sizeof_fpregset members.
12053 * sparc-tdep.c (struct regset): Provide opaque declaration.
12054 (sparc_regset_from_core_section): New function.
12055 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12056 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12057 Set regset_from_core_section when appropriate.
12058
29ff87c5
MK
120592004-01-10 Mark Kettenis <kettenis@gnu.org>
12060
79b1ab3d
MK
12061 * x86-64-tdep.c (amd64_non_pod_p): New function.
12062 (amd64_classify_aggregate): Return class memory for non-POD
12063 C++ structure types.
12064
6470d250
MK
12065 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12066 argument. Use it to reserve a register if necessary.
12067 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12068 amd64_push_arguments.
12069
562c50c2
MK
12070 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12071
af233647
MK
12072 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12073 register numbers in comments.
12074 * x86-64-tdep.h: Update copyright year.
12075 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12076 Adjust for addition of %cs and %ss.
12077 * amd64fbsd-nat.c: Update copyright year.
12078 (reg_offset): Add register offsets for %cs and %ss.
12079 * amd64fbsd-tdep.c: Update copyright year.
12080 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12081 (amd64fbsd_sc_reg_offset): Likewise.
12082 * x86-64-linux-nat.c: Update copyright year.
12083 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12084 and %ss.
12085 * amd64nbsd-nat.c: Update copyright year.
12086 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12087 * amd64nbsd-tdep.c: Update copyright year.
12088 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12089 * x86-64-linux-tdep.c: Update copyright year.
12090 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12091 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12092 * regformats/reg-x86-64.dat: Add %cs and %ss.
12093
29ff87c5
MK
12094 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12095 variables to prevent long lines. Update comments to reflect
12096 reality.
12097
38d518c9
EZ
120982004-01-09 David Carlton <carlton@kealia.com>
12099
12100 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12101 * dwarf2read.c (read_namespace): Pull out name-generating code
12102 into namespace_name. Rename previous_namespace to previous_prefix
12103 and processing_current_namespace to processing_current_prefix..
12104 (namespace_name): New function.
12105 (add_partial_symbol): Substitute uses of pdi->name with
12106 actual_name.
12107 * cp-support.h: Rename processing_current_namespace to
12108 processing_current_prefix.
12109 Update copyright year.
12110 * cp-namespace.c: Rename processing_current_namespace to
12111 processing_current_prefix.
12112 Update copyright year.
fe61caab 12113
1e4728e7
AC
121142004-01-09 Andrew Cagney <cagney@redhat.com>
12115
12116 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12117
c77c642a
MK
121182004-01-09 Mark Kettenis <kettenis@gnu.org>
12119
12120 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12121 complaining.
12122 (process_one_symbol): Deal with N_PATCH stabs.
12123
b44e9041
EZ
121242004-01-09 Elena Zannoni <ezannoni@redhat.com>
12125
12126 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12127 ifdeffed code.
12128 Update copyright year.
38d518c9 12129
eccfb640
MC
121302004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12131
12132 * config/pa/tm-hppa.h: Update extern declarations for
12133 hppa32_hpux_frame_saved_pc_in_sigtramp,
12134 hppa32_hpux_frame_base_before_sigtramp, and
12135 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12136
848c5feb
MC
121372004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12138
12139 * config/pa/tm-hppah.h: Update copyright years.
12140
3cc5d663
AC
121412004-01-08 Andrew Cagney <cagney@redhat.com>
12142
12143 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12144 (mips_o32_reg_struct_has_addr): Delete function.
12145 (mips_gdbarch_init): Update.
12146 (mips_extract_struct_value_address): Delete function.
12147
bfec0b41
JJ
121482004-01-08 David Mosberger <davidm@hpl.hp.com>
12149
12150 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12151 reality.
12152
16e109ca
AC
121532004-01-07 Andrew Cagney <cagney@redhat.com>
12154
6214a8a1
AC
12155 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12156 architecture's elf flags (when available).
12157
8d5838b5
AC
12158 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12159 FPU to the start, check the MIPS FPU when looking for an old
12160 architecture.
12161 (set_mipsfpu_single_command): Update the architecture.
12162 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12163
480d3dd2
AC
12164 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12165 (mips_mask_address_p): Add "tdep" parameter.
12166 (show_mask_address, mips_addr_bits_remove): Update.
12167 (mips_dump_tdep): Update.
12168 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12169 (MIPS_STACK_ARGSIZE): Delete macro.
12170 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12171 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12172 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12173 (mips_dump_tdep): Update.
12174 (MIPS_SAVED_REGSIZE): Delete macro.
12175 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12176 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12177 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12178 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12179 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12180 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12181 (mips_pop_frame, return_value_location): Update.
12182 (mips_n32n64_return_value, mips_dump_tdep): Update.
12183
ec03c1ac
AC
12184 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12185 MIPS ABI.
12186
16e109ca
AC
12187 * mips-tdep.c: Update copyright.
12188 (mips_gdbarch_init): Merge two code blocks handling the register
12189 name and number layout.
12190
15255275
MS
121912004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12192
12193 * tracepoint.c (validate_actionline): Fix segv at EOF
12194
9f9057da
MC
121952004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12196
12197 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12198 properly for static fields.
12199
0127c0d3 122002004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12201 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12202
12203 * disasm.c: Update copyright to include 2004.
12204 (do_mixed_source_and_assembly): For uiout asm list
12205 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12206 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12207 the tuple/list. Move check for whether to close off the
fe61caab 12208 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12209 on each loop iteration.
12210
5269965e
AC
122112004-01-05 Andrew Cagney <cagney@redhat.com>
12212
54f1137d
AC
12213 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12214 should be a switch case and not a label.
12215 * mips-tdep.c (mips32_next_pc): Delete unused labels
12216 "greater_equal_branch" and "less_zero_branch".
12217 * jv-valprint.c (java_print_value_fields): Delete unused label
12218 "flush_it".
12219
5269965e
AC
12220 * target.c (unpush_target): Only close a target that is in the
12221 target stack.
12222
dbc22fa1
MK
122232004-01-05 Mark Kettenis <kettenis@gnu.org>
12224
9515395e
MK
12225 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12226 address from [sp + 64] instead of %o2.
12227
dbc22fa1
MK
12228 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12229 fixes PR backtrace/1476.
12230
5439edaa
AC
122312004-01-05 Andrew Cagney <cagney@redhat.com>
12232
12233 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12234 move to start of file.
12235 * i386-tdep.h (struct regcache): Add opaque declaration.
12236 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12237 declaration.
12238 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12239 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12240 * win32-nat.c (fake_create_process): Use ISO C style definition.
12241 * stabsread.c (define_symbol): Delete #ifndef
12242 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12243 stabs_argument_has_addr call, macro never defined.
12244
19061abe
MC
122452004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12246
12247 * op50-rom.c: Delete.
12248 * w89k-rom.c: Delete.
12249 * Makefile.in: Remove references.
12250
e53bef9f
MK
122512004-01-04 Mark Kettenis <kettenis@gnu.org>
12252
12253 * x86-64-tdep.c: Update copyright year.
12254 (struct amd64_register_info): Rename from x86_64_register_info.
12255 (amd64_register_info): Rename from x86_64_register_info.
12256 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12257 (amd64_register_name): Rename from x86_64_register_name.
12258 (amd64_register_type): Rename from x86_64_register_type.
12259 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12260 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12261 (amd64_dwarf_reg_to_regnum): Rename from
12262 x86_64_dwarf_reg_to_regnum.
12263 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12264 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12265 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12266 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12267 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12268 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12269 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12270 (amd64_frame_cache): Rename from x86_64_frame_cache.
12271 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12272 (amd64_frame_prev_register): Rename from
12273 x86_64_frame_prev_register.
12274 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12275 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12276 (amd64_sigtramp_frame_cache): Rename from
12277 x86_64_sigtramp_frame_cache.
12278 (amd64_sigtramp_frame_prev_register): Rename from
12279 x86_64_sigtramp_frame_prev_register.
12280 (amd64_sigtramp_frame_unwind): Rename from
12281 x86_64_sigtramp_frame_unwind.
12282 (amd64_sigtramp_frame_sniffer): Rename from
12283 x86_64_sigtramp_frame_sniffer.
12284 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12285 (amd64_frame_base): Rename from x86_64_frame_base.
12286 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12287 (amd64_frame_align): Rename from x86_64_frame_align.
12288 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12289 (amd64_regset_from_core_section): Rename from
12290 x86_64_regset_from_core_section.
12291 (x86_64_init_abi): Update comments.
12292
fca6aa58
NR
122932004-01-04 Nick Roberts <nick@nick.uklinux.net>
12294
12295 * MAINTAINERS (write after approval): Add myself.
12296
8ada74e3
MK
122972004-01-04 Mark Kettenis <kettenis@gnu.org>
12298
12299 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12300 `float' arguments.
12301
5154b0cd
MK
123022004-01-04 Mark Kettenis <kettenis@gnu.org>
12303
12304 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12305 such that it mentions a specific version of GCC that exhibits this
12306 bug.
12307
fb316966
MK
123082004-01-03 Mark Kettenis <kettenis@gnu.org>
12309
200cc553
MK
12310 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12311 structure that has a single `float' member, store it in %f1 in
12312 addition to %f0.
12313
e226a4a0
MK
12314 * sparc-sol2-nat.c: Add missing '\'.
12315
b9d4c5ed
MK
12316 * sparc-tdep.c (sparc32_return_value): New function.
12317 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12318 Remove functions.
12319 (sparc32_gdbarch_init): Set return_value, don't set
12320 extract_return_value, store_return_value, use_struct_convention
12321 and return_value_on_stack.
12322
fb316966
MK
12323 * sparc-sol2-nat.c: Add missing ')'.
12324
1af510a8
JB
123252004-01-03 J. Brobecker <brobecker@gnat.com>
12326
12327 * infrun.c (handle_step_into_function): New function.
12328 (handle_inferior_event): Extract out some code into the new
12329 function above.
12330
5cf4d23a
JB
123312004-01-03 J. Brobecker <brobecker@gnat.com>
12332
12333 * infrun.c (handle_inferior_event): Move the declaration of
12334 real_stop_pc inside the if blocks where it is used.
12335
60af1db2
MK
123362004-01-03 Mark Kettenis <kettenis@gnu.org>
12337
12338 * sparc64-tdep.c (sparc64_16_byte_align_p)
12339 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12340 Use check_typedef to get subtypes of structures and unions.
12341 (sparc64_store_return_value): Fix calculation of the appropriate
12342 offset into VALBUF when storing a structure or union.
12343 (sparc64_return_value): New function.
12344 (sparc64_use_struct_convention): Remove function.
12345 (sparc64_init_abi): Set return_value, don't set
12346 extract_return_value, store_return_value and
12347 use_struct_convention.
12348
1a901d3f
EZ
123492004-01-03 Eli Zaretskii <eliz@elta.co.il>
12350
12351 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12352 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12353 gdb/config/alpha/xm-alphaosf.h,
12354 gdb/config/powerpc/tm-ppcle-eabi.h,
12355 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12356 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12357 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12358 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12359 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12360 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12361 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12362 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12363 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12364 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12365 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12366 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12367 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12368 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12369 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12370 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12371 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12372 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12373 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12374 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12375 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12376 Remove lines for .cvsignore files.
12377
ef52e463
JB
123782004-01-03 J. Brobecker <brobecker@gnat.com>
12379
12380 * infrun.c: Back out the previous change.
12381
cb1bf9dc
MK
123822004-01-03 Mark Kettenis <kettenis@gnu.org>
12383
f0424ef6
MK
12384 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12385 sparc-*-sunos4* to the list of REMOVED configurations.
12386
cb1bf9dc
MK
12387 * configure.tgt: Add back sparc-*-vxworks*.
12388 * remote-vxsparc.c: Remove all includes except for "defs.h",
12389 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12390 Include "sparc-tdep.h".
12391 (SPARC_R_G1): New define.
12392 (vxsparc_gregset): New variable.
12393 (ext_format_sparc): Remove extern declaration.
12394 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12395 sparc32_supply_fpregset.
12396 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12397 sparc_collect_rwindow and sparc32_collect_fpregset.
12398 * config/sparc/tm-vxworks.h: New file, based on recently removed
12399 tm-vxsparc.h.
12400 * config/sparc/vxworks.mt: New file, based on recently removed
12401 vxworks.mt.
fe61caab 12402
5e938f9f
JB
124032004-01-03 J. Brobecker <brobecker@gnat.com>
12404
12405 * infrun.c (handle_step_into_function): New function.
12406 (handle_inferior_event): Extract out some code into the new
12407 function above.
12408
386c036b
MK
124092004-01-02 Mark Kettenis <kettenis@gnu.org>
12410
12411 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12412 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12413 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12414 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12415 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12416 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12417 (sparc_nat_h): New variable.
12418 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12419 (tm-sun4os4.h): Remove dependency.
12420 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12421 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12422 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12423 sparc-tdep.o): Update dependencies.
12424 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12425 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12426 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12427 dependencies.
12428 * configure.host: Remove existing sparc-*-lynxos*,
12429 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12430 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12431 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12432 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12433 triplets.
12434 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12435 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12436 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12437 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12438 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12439 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12440 sparc64-*-solaris2* and sparc64-*-* triplets.
12441 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12442 "symtab.h" and "objfiles.h".
12443 (BIAS): Remove define.
12444 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12445 (X_DISP19): Remove macros.
12446 (sparc_fetch_instruction): Remove function.
12447 (struct gdbarch_tdep): Remove definition.
12448 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12449 (sparc_breakpoint_from_pc): Remove function.
12450 (struct sparc64_frame_cache): Remove definition.
12451 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12452 sparc64_unwind_pc): Remove functions.
12453 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12454 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12455 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12456 (sparc64_frame_cache): Change return type to `struct
12457 sparc_frame_cache *'. Simply call sparc_frame_cache.
12458 (sparc64_frame_this_id, sparc64_frame_prev_register,
12459 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12460 instead of `struct sparc64_frame_cache.
12461 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12462 sparc_analyze_control_transfer, sparc_software_single_step,
12463 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12464 _initialize_sparc64_tdep): Remove functions.
12465 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12466 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12467 macros.
12468 (sparc64_supply_gregset, sparc64_collect_gregset,
12469 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12470 (sparc64_init_abi): New function.
12471 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12472 inclusion guard. Include "sparc-tdep.h".
12473 (BIAS): Define.
12474 (r_tstate_offset, r_fprs_offset): New defines.
12475 (enum sparc_regnum): Remove defenition.
12476 (enum sparc64_regnum): Reformat.
12477 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12478 (sparc64_init_abi, sparc64_supply_gregset,
12479 sparc64_collect_gregset, sparc64_supply_fpregset,
12480 sparc64_collect_fpregset): New prototypes.
12481 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12482 Add extern declarations.
12483 (sparc64_sol2_init_abi): New prototype.
12484 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12485 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12486 prototypes.
12487 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12488 "sparnbsd-nat.h".
12489 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12490 functions.
12491 (_initialize_sparc64fbsd_nat): Remove initialization of
12492 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12493 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12494 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12495 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12496 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12497 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12498 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12499 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12500 (sparc64fbsd_r_y_offset): Remove variables.
12501 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12502 Make static and const.
12503 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12504 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12505 functions.
12506 (sparc64fbsd_gregset): New variable.
12507 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12508 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12509 and sparc64_supply_fpregset.
12510 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12511 (sparc64fbsd_sigtramp_frame_this_id)
12512 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12513 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12514 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12515 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12516 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12517 * sparcnbsd-tdep.c: Update copyright year. Include
12518 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12519 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12520 "value.h" and "sparcnbsd-tdep.h".
12521 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12522 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12523 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12524 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12525 defines.
12526 (sparcnbsd_gregset): New variable.
12527 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12528 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12529 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12530 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12531 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12532 variables.
12533 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12534 (sparc32nbsd_sigcontext_frame_this_id)
12535 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12536 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12537 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12538 (sparcnbsd_get_longjmp_target_32,
12539 sparcnbsd_get_longjmp_target_64): Remove functions.
12540 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12541 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12542 sparcnbsd_init_elf): Remove.
12543 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12544 (sparcnbsd_elf_init_abi): New functions.
12545 (_initialize_sparcnbsd_tdep): New prototype.
12546 (_initialize_sparnbsd_tdep): Update.
12547 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12548 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12549 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12550 * config/sparc/linux.mh: Update comment.
12551 (XM_FILE, HOST_IPC): Remove variables.
12552 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12553 sparc-linux-nat.o.
12554 * config/sparc/linux.mt: Update comment.
12555 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12556 * config/sparc/nbsd.mt: Reformat.
12557 * config/sparc/nbsd64.mh: Update comment.
12558 (NATDEPFILES): Add sparc-nat.o.
12559 * config/sparc/nbsd64.mt: Update comment.
12560 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12561 (TM_FILE): Set to tm-nbsd.h.
12562 * config/sparc/nbsdelf.mh: Update comment.
12563 (NATDEPFILES): Add sparc-nat.o.
12564 (XM_FILE): Delete.
12565 * config/sparc/nbsdaout.mh: Update comment.
12566 (NATDEPFILES): Add sparc-nat.o
12567 (XM_FILE): Delete.
12568 * config/sparc/nm-linux.h: Update copyright year. Don't include
12569 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12570 inclusion.
12571 (KERNEL_U_SIZE): Remove define.
12572 (kernel_u_size): Remove prototype.
12573 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12574 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12575 "regcache.h".
12576 (CHILD_PREPARE_TO_STORE): Remove define.
12577 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12578 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12579 sparcnbsd-nat.c: Rewrite files.
12580 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12581 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12582 sparcnbsd-tdep.h: Remove files.
12583 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12584 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12585 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12586 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12587 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12588 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12589 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12590 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12591 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12592 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12593 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12594 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12595 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12596 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12597 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12598 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12599 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12600 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12601 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12602
ee84457a
AC
126032004-01-02 Andrew Cagney <cagney@redhat.com>
12604
12605 From 2003-12-18 Kazuhiro Inaoka:
12606 * configure.host: Add m32r-linux target.
12607
0bc2134e
MC
126082004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12609
12610 * top.c (print_gdb_version): Update year to 2004.
12611
89a72f9c
MM
126122004-01-02 Mark Mitchell <mark@codesourcery.com>
12613
12614 * MAINTAINERS: Add myself to the write-after-approval category.
12615
86b013ed
DJ
126162004-01-02 Daniel Jacobowitz <drow@mvista.com>
12617
12618 From Bernardo Innocenti <bernie@develer.com>:
12619 * configure.tgt: Add uClinux target.
12620
e42c9534
AC
126212004-01-02 Andrew Cagney <cagney@redhat.com>
12622
12623 * utils.c (do_my_cleanups): Make static, add forward declaration.
12624 * defs.h (do_my_cleanups): Delete declaration.
12625
162467d3
EZ
126262004-01-02 Eli Zaretskii <eliz@elta.co.il>
12627
12628 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12629 bfd/ChangeLog-0203.
12630
78434e59
MK
126312004-01-02 Mark Kettenis <kettenis@gnu.org>
12632
12633 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12634 in <machine/reg.h>.
12635 * configure, config.in: Regenerate.
12636
48efe704
AC
12637For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12638tui/ChangeLog-1998-2003.
c906108c
SS
12639\f
12640Local Variables:
12641mode: change-log
12642left-margin: 8
12643fill-column: 74
12644version-control: never
12645End:
This page took 1.446015 seconds and 4 git commands to generate.