* sh-tdep.c (sh_return_value_nofpu): New function, implementing
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c0409442
CV
12004-10-06 Corinna Vinschen <vinschen@redhat.com>
2
3 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
4 RETURN_VALUE.
5 (sh_return_value_fpu): Ditto for CPUs with FPU.
6 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
8 Install sh_return_value_nofpu resp. sh_return_value_fpu as
9 RETURN_VALUE functions.
10
9bed62d7
CV
112004-10-06 Corinna Vinschen <vinschen@redhat.com>
12
13 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
14 (sh_pseudo_register_write): Ditto.
15
03131d99
CV
162004-10-06 Corinna Vinschen <vinschen@redhat.com>
17
18 * sh-tdep.c (IS_MACL_STS): New define.
19 (IS_MOVI20): Ditto.
20 (IS_MACL_LDS): Ditto.
21 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
22 instructions in prologue.
23 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
24 instructions in epilogue.
25
da962468
CV
262004-10-06 Corinna Vinschen <vinschen@redhat.com>
27
28 * sh-tdep.c (SH_NUM_REGS): Define as 67.
29 (sh_sh_register_name): Add eight empty register names.
30 (sh_sh3_register_name): Ditto.
31 (sh_sh3e_register_name): Ditto.
32 (sh_sh2e_register_name): Ditto.
33 (sh_sh2a_register_name): New function, defining SH2A register set.
34 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
35 in nofpu case.
36 (sh_sh_dsp_register_name): Add eight empty register names.
37 (sh_sh3_dsp_register_name): Ditto.
38 (sh_sh4_register_name): Ditto.
39 (sh_sh4_nofpu_register_name): Ditto.
40 (sh_sh4al_dsp_register_name): Ditto.
41 (sh2a_show_regs): New function.
42 (sh2a_nofpu_show_regs): New function.
43 (sh_sh2a_register_type): New function.
44 (do_bank_register_info): New function.
45 (sh_print_pseudo_register): Call do_bank_register_info.
46 Call sh_print_pseudo_register for valid "bank" register.
47 (sh_sh2a_register_sim_regno): New function.
48 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
49 Increment pseudo register count by one for all sh variants with
50 pseudo registers to accomodate pseudo bank register.
51 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
52 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
53 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
54 Increment pseudo register numbers.
55
1326e61b
CV
562004-10-06 Corinna Vinschen <vinschen@redhat.com>
57
58 * dwarf2read.c (read_subroutine_type): Call make_function_type
59 instead of lookup_function_type.
60
146c42e3
JB
612004-10-05 Jim Blandy <jimb@redhat.com>
62
63 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
64 (Previous change missed some uses.)
65
1df84f13
AC
662004-10-05 Andrew Cagney <cagney@gnu.org>
67
68 * target.h (deprecated_child_ops): Rename child_ops.
69 * wince.c: Update copyright. Rename child_ops.
70 * win32-nat.c: Rename child_ops.
71 * target.c: Rename child_ops.
72 * rs6000-nat.c: Rename child_ops.
73 * linux-nat.c: Rename child_ops.
74 * infttrace.c: Rename child_ops.
75 * inftarg.c: Rename child_ops.
76 * infptrace.c: Rename child_ops.
77 * hppah-nat.c: Update copyright. Rename child_ops.
78 * hpux-thread.c: Update copyright. Rename child_ops.
79
21e3b9b9
DJ
802004-10-05 Daniel Jacobowitz <dan@debian.org>
81
82 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
83
de83afe7
AC
842004-10-05 Andrew Cagney <cagney@gnu.org>
85
86 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
87
10b3939b
DJ
882004-10-05 Daniel Jacobowitz <dan@debian.org>
89
90 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
91 (die_ref_table): Remove.
92 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
93 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
94 the usage of this type.
95 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
96 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
97 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
98 (dwarf2_create_include_psymtab): Update comment.
99 (find_partial_die): Remove third argument. Remove unreachable call
100 to error ().
101 (dwarf2_find_containing_comp_unit): Update comments. Change one
102 assertion to an error. Remove an unreachable error.
103 (dwarf2_find_comp_unit): Update comments.
104 (type_at_offset): Remove dead code.
105 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
106 (store_in_ref_table): Add CU argument.
107 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
108 inter-compilation-unit references.
109 (load_full_comp_unit, process_full_comp_unit): New functions, based
110 on psymtab_to_symtab_1.
111 (psymtab_to_symtab_1): Use them.
112 (dwarf2_add_dependence): New function.
113 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
114 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
115 (partial_die_parent_scope, guess_structure_name): Update for changes
116 to find_partial_die.
117 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
118 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
119 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
120 (read_die_and_children): Update call to store_in_ref_table.
121 (do_free_die_list_cleanup): Remove.
122 (fixup_partial_die): Update for changes to find_partial_die.
123 (read_full_die): Handle queueing absolute references.
124 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
125 (dwarf2_attr, die_specification, die_type)
126 (die_containing_type, dwarf2_extension): Update calls to
127 follow_die_ref.
128 (dump_die): Update DW_FORM_ref* handling.
129 (dwarf2_get_ref_die_offset): Likewise.
130 (free_one_comp_unit): Release the dies list.
131 (dwarf2_mark_helper): New function.
132 (dwarf2_mark): Use it.
133
998bdd68
MK
1342004-10-05 Mark Kettenis <kettenis@jive.nl>
135
136 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
137 when writing to memory.
138
14588880
KI
1392004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
140
141 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
142 (m32r_extract_struct_value_address): Delete function.
143 (m32r_return_value): New function.
144 (m32r_gdbarch_init): Instead of store_return_value,
145 extract_return_value, deprecated_extract_struct_value_address
146 and deprecated_use_struct_convention, set return_value.
147
dd5e6932
DJ
1482004-10-03 Daniel Jacobowitz <dan@debian.org>
149
150 * dwarf2read.c (read_subrange_type): Add comment for variable
151 sized arrays.
152
7dc1ef8d
PH
1532004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
154
155 * Makefile.in (.l.c): Modify rule for compatibility with recent
156 versions of flex, and remove most command-line options.
157 * ada-lex.l: Add %options line in place of -I -i and -s command-line
158 options.
159
1f8173e6
PH
1602004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
161
162 Turn on initial Ada support (mainly expression evaluation).
163
164 * Makefile.in (SFILES): Remove ada-tasks.c.
165 (HFILES_NO_SRCDIR): Add ada-lang.h.
166 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
167 (YYOBJ): Add ada-exp.o.
168 (rule .l.c): Generalize to not mention ada.
169 * symtab.c: Include ada-lang.h.
170 (symbol_natural_name, symbol_demangled_name)
171 (symbol_search_name): Add Ada case.
172
cb85a953
AC
1732004-10-01 Andrew Cagney <cagney@gnu.org>
174
3f3db248
AC
175 * Makefile.in (COMMON_OBS): Add inf-child.o.
176 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
177 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
178 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
179 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
180 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
181 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
182 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
183 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
184 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
185 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
186 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
187 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
188 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
189
cb85a953
AC
190 * target.c (xfer_using_stratum): Change return type to LONGEST.
191 On each iteration offset, readbuf and writebuf.
192 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
193 partial_length, and read/modify/write predicate, update comments.
194 Pass buffer.word to ptrace write.
195
963a6417
PH
1962004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
197
198 * symfile.c (init_filename_language_table): Add extensions for
199 Ada.
200 * defs.h (enum language): Add language_ada.
201 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
202 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
203 (add_symbols_from_enclosing_procs): Make a no-op for now.
204 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
205 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
206 (find_line_in_linetable, find_next_line_in_linetable)
207 (read_all_symtabs, is_plausible_func_for_line)
208 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
209 (is_runtime_sym_defined, check_size): Remove declaration.
210 (function_name_from_pc, ada_translate_error_message)
211 (ada_lookup_minimal_symbol): Remove definition.
212 (ada_add_block_symbols): Remove useless label.
213 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
214 useless declaration.
215 (ada_is_exception_sym): Likewise.
216
9b32d526
KI
2172004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
218
219 Add m32r-linux support.
220 * configure.tgt: Add m32r*-*-linux*.
221 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
222 and m32r-linux-tdep.c.
223 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
224 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
225 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
226 m32r-linux-tdep.c.
227 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
228 config/m32r/linux.mh, config/m32r/linux.mt,
229 config/m32r/nm-linux.h: New files.
230
2de118d3
JB
2312004-09-30 Joel Brobecker <brobecker@gnat.com>
232
233 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
234 (mips32_fetch_instruction): Remove, unused.
235
a9fe69d1
JB
2362004-09-30 Joel Brobecker <brobecker@gnat.com>
237
238 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
239 conditions that will always be true.
240
bc8ffc12
MK
2412004-09-30 Mark Kettenis <kettenis@gnu.org>
242
ba0cd111
MK
243 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
244 (vaxbsd_fetch_inferior_registers): Rename from
245 fetch_inferior_registers. Make static.
246 (vaxbsd_store_inferior_registers): Rename from
247 store_inferior_registers. Make static.
248 (_initialize_vaxbsd_nat): Construct and add target vector.
249 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
250 inftarg.o. Add inf-child.o and inf-ptrace.o.
251 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
252 inftarg.o. Add inf-child.o and inf-ptrace.o.
253 (NAT_FILE): Remove.
254 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
255 inftarg.o. Add inf-child.o and inf-ptrace.o.
256 (NAT_FILE): Remove.
257 * Makefile.in (vaxbsd-nat.o): Update dependencies.
258
bc8ffc12
MK
259 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
260 (m88kbsd_fetch_inferior_registers): Rename from
261 fetch_inferior_registers. Make static.
262 (m88kbsd_store_inferior_registers): Rename from
263 store_inferior_registers. Make static.
264 (_initialize_m88kbsd_nat): New prototype and function.
265 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
266 inftarg.o. Add inf-child.o and inf-ptrace.o.
267 (NAT_FILE): Remove.
268 * Makefile.in (m88kbsd-nat.o): Update dependencies.
269
27394598
AC
2702004-09-30 Andrew Cagney <cagney@gnu.org>
271
272 * target.c (target_xfer_partial): New function.
273 (target_read_memory_partial, target_write_memory_partial)
274 (default_xfer_partial, target_read_partial, target_write_partial)
275 (xfer_using_stratum): Use.
276 (debug_to_xfer_partial): Delete function.
277 (setup_target_debug): Do not override to_xfer_partial.
278
74a4fe32
MK
2792004-09-30 Mark Kettenis <kettenis@chello.nl>
280
281 * fork-child.c: Update copyright year. Fix coding style.
282
982526a1
MK
2832004-09-29 Mark Kettenis <kettenis@gnu.org>
284
285 * defs.h (msavestring, mstrsave): Remove prototypes.
286 * utils.c (msavestring, mstrsave): Remove functions.
287 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
288 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
289 of mstrsave.
290 * source.c (find_and_open_source): Use xstrdup instead of
291 mstrsave.
292
b8eb5af0
AC
2932004-09-30 Andrew Cagney <cagney@gnu.org>
294
0779438d
AC
295 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
296 (inf_ptrace_xfer_memory): Delete.
297 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
298 (target_read_memory, target_write_memory): Use xfer_using_stratum
299 when target_xfer_partial_p.
300 (debug_target): Move to start of file.
301 (target_read_memory_partial, target_write_memory_partial): Use
302 to_xfer_partial when target_xfer_partial_p.
303
f929a579
AC
304 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
305 inf_ptrace_xfer_memory with equivalent code.
306 * inftarg.c (child_xfer_partial): When performing a write, pass
307 writebuf to child_xfer_memory.
308
b8eb5af0
AC
309 * target.c (target_read_string): Use target_read_memory instead of
310 target_xfer_memory.
311
ee21b650
AC
3122004-09-29 Andrew Cagney <cagney@gnu.org>
313
d3e05d0d
AC
314 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
315 the address of status.
316
ee21b650
AC
317 * infptrace.c (ptrace_wait): Mention problem with HPUX.
318 (kill_inferior): Inline ptrace_wait call.
319 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
320 * inftarg.c (child_wait): Inline ptrace_wait call.
321
a182eed6
AC
322 * target.h (struct target_ops): Delete field to_post_wait.
323 (target_post_wait): Delete macro.
324 (child_post_wait): Delete declaration.
325 * target.c (update_current_target, update_current_target)
326 (debug_to_post_wait, setup_target_debug): Delete functions and
327 references.
328 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
329 * inftarg.c (child_post_wait): Delete.
330 (init_child_ops): Do not set to_post_wait.
331 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
332 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
333 * inf-child.c (inf_child_post_wait): Delete.
334 (inf_child_target): Do not set to_post_wait.
335 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
336 (inf_ptrace_target): Do not set to_post_wait.
337
ba0c540b
AC
338 * wince.c (child_ops): Delete.
339 * win32-nat.c (child_ops): Delete.
340
81977402
AC
341 * inftarg.c (inftarg_set_find_memory_regions)
342 (inftarg_set_make_corefile_notes): Delete functions.
343 (_initialize_linux_nat): Inline calls.
344
5ac10fd1
AC
345 * target.h (child_ops): Declare.
346 * inftarg.c (child_ops): Move from here ...
347 * target.c (child_ops): ... to here.
348 * wince.c (child_ops): Delete extern declaration.
349 * win32-nat.c (child_ops): Delete extern declaration.
350 * linux-nat.c (child_ops): Delete extern declaration.
351 * hpux-thread.c (child_ops): Delete extern declaration.
352
663408c2 3532004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
354
355 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
356
0dad8a66
MK
3572004-09-28 Mark Kettenis <kettenis@gnu.org>
358
359 * configure.in: Only set host_makefile_frag when building a native
360 debugger.
361 * configure: Regenerate.
e8d74ed3
MK
362
363 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
364 for OpenBSD ELF.
365
dba24537
AC
3662004-09-28 Andrew Cagney <cagney@gnu.org>
367
e979516b
AC
368 Problem identified by Paul Hilfinger.
369 * Makefile.in (ada_lex_c): Define.
370 (ada-lex.o): Delete rule.
371
dba24537
AC
372 * linux-proc.c: Delete file.
373 * Makefile.in: Update.
374 * config/sparc/linux64.mh (NATDEPFILES):
375 * config/sparc/linux.mh (NATDEPFILES): Update.
376 * config/s390/s390.mh (NATDEPFILES): Update.
377 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
378 * config/powerpc/linux.mh (NATDEPFILES): Update.
379 * config/pa/linux.mh (NATDEPFILES): Update.
380 * config/mips/linux.mh (NATDEPFILES): Update.
381 * config/m68k/linux.mh (NATDEPFILES): Update.
382 * config/ia64/linux.mh (NATDEPFILES): Update.
383 * config/i386/linux64.mh (NATDEPFILES): Update.
384 * config/i386/linux.mh (NATDEPFILES): Update.
385 * config/arm/linux.mh (NATDEPFILES): Update.
386 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
387 * linux-nat.c: Update copyright. Include <sys/param.h>,
388 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
389 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
390 (O_LARGEFILE): Possibly define.
391 (_initialize_linux_nat, linux_proc_pending_signals)
392 (add_line_to_sigset, linux_proc_xfer_memory)
393 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
394 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
395 (struct linux_corefile_thread_data)
396 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
397 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
398
d6b0e80f
AC
3992004-09-16 Andrew Cagney <cagney@gnu.org>
400
401 * lin-lwp.c: Delete file.
402 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
403 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
404 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
405 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
406 (linux_nat_attach, detach_callback, linux_nat_detach)
407 (resume_callback, resume_clear_callback, linux_nat_resume)
408 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
409 (stop_wait_callback, linux_nat_has_pending, flush_callback)
410 (status_callback, running_callback, count_events_callback)
411 (select_singlestep_lwp_callback, select_event_lwp_callback)
412 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
413 (child_wait, stop_and_resume_callback, linux_nat_wait)
414 (kill_callback, kill_wait_callback, linux_nat_kill)
415 (linux_nat_create_inferior, linux_nat_mourn_inferior)
416 (linux_nat_xfer_memory, linux_nat_thread_alive)
417 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
418 (_initialize_linux_nat): New functions.
419 * Makefile.in: Update all dependencies.
420 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
421 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
422 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
423 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
424 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
425 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
426 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
427 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
428 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
429 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
430 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
431 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
432 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
433
5a174d79
MK
4342004-09-27 Mark Kettenis <kettenis@gnu.org>
435
2f604c28
MK
436 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
437 config/i386/obsd64.mh (NAT_FILE): Remove variable.
438
5a174d79
MK
439 * configure.in: Don't comment out NATDEPFILES in the generated
440 Makefile if NAT_FILE is unset.
441 * configure: Regenerate.
442
b2ed1746
AC
4432004-09-27 Andrew Cagney <cagney@gnu.org>
444
44cbf7b5
AC
445 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
446 (insert_step_resume_breakpoint): Delete.
447 (insert_step_resume_breakpoint_at_frame): New function.
448 (insert_step_resume_breakpoint_at_sal): New function.
449 (handle_inferior_event, step_into_function)
450 (insert_step_resume_breakpoint): Simplify by using same.
451
b2ed1746
AC
452 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
453
3691b3be
MK
4542004-09-26 Mark Kettenis <kettenis@gnu.org>
455
36f391e8
MK
456 * fbsd-proc.c: Remove file.
457 * Makefile.in (fbsd-proc.o): Remove dependency.
458
771e236c
MK
459 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
460 code together.
461
3691b3be
MK
462 * config/i386/nm-fbsd64.h: Remove file.
463 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
464
6a5c78a3
MK
4652004-09-26 Mark Kettenis <kettenis@gnu.org>
466
467 * amd64-nat.h: Update copyright year.
468 (amd64bsd_target): New prototype.
469 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
470 (amd64bsd_target): New function.
471 (amd64bsd_fetch_inferior_registers): Rename from
472 fetch_inferior_registers. Make static.
473 (amd64bsd_store_inferior_registers): Rename from
474 store_inferior_registers. Make static.
475 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
476 (_initialize_amd64fbsd_nat): Construct and add target vector.
477 * amd64nbsd-nat.o: Include "target.h".
478 (_initialize_amd64nbsd_nat): Construct and add target vector.
479 * amd64obsd-nat.c: Include "target.h".
480 (_initialize_amd64obsd_nat): Construct and add target vector.
481 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
482 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
483 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
484 fbsd-nat.o.
485 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
486 Remove infptrace.o and inftarg.o. Add inf-child.o and
487 inf-ptrace.o.
488 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
489 (amd64obsd-nat.o): Update dependencies.
490
27acbe61
MK
4912004-09-25 Mark Kettenis <kettenis@gnu.org>
492
509a5e7d
MK
493 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
494 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
495 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
496 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
497 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
498
6e1e94ea
MK
499 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
500 Inline attach call.
501 (inf_ptrace_detach): Inline detach call.
502
8b9cf735
MK
503 * configure.in: Check for waddstr instead of mvwaddstr when
504 searching for curses library. Check for wborder.
505 * configure, config.in: Regenerate.
506 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
507 available.
508
27acbe61
MK
509 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
510
b96ec7ac
AC
5112004-09-24 Robert Picco <Robert.Picco@hp.com>
512
513 Committed by Andrew Cagney.
514 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
515 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
516 configuration.
517 (fetch_register_using_p): Implement 'p' packet. Based on code by
518 Fernando Nasser.
519 (remote_fetch_registers): Call fetch_register_using_p.
520 (init_all_packet_configs, show_remote_cmd)
521 (_initialize_remote): Add p-packet.
522
62ece330
MK
5232004-09-24 Mark Kettenis <kettenis@gnu.org>
524
525 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
526 instead of call_ptrace. Call wait directly instead of
527 ptrace_wait.
528 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
529 (inf_ptrace_wait): Inline ptrace_wait call.
530
00937274
PH
5312004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
532
533 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
534 rolled back instead.
535
3f2c7a45
PH
5362004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
537
538 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
539 the new argument order.
540
b6fcb393
CV
5412004-09-23 Corinna Vinschen <vinschen@redhat.com>
542
543 * MAINTAINERS: Remove "broken" from XStormy16 entry.
544 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
545 (struct gdbarch_tdep): Remove.
546 (struct xstormy16_frame_cache): New frame cache structure.
547 (xstormy16_register_byte, xstormy16_register_raw_size)
548 (xstormy16_reg_virtual_type, xstormy16_register_type)
549 (xstormy16_push_arguments, xstormy16_push_return_address)
550 (xstormy16_pop_frame, xstormy16_store_struct_return)
551 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
552 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
553 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
554 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
555 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
556 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
557 (xstormy16_use_struct_convention): Drop gcc_p parameter.
558 (xstormy16_extract_return_value, xstormy16_store_return_value):
559 Regcachify. Drop useless struct convention handling.
560 (xstormy16_register_type, xstormy16_return_value)
561 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
562 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
563 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
564 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
565 (xstormy16_unwind_sp, xstormy16_unwind_pc)
566 (xstormy16_unwind_dummy_id) : New functions.
567 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
568 of xstormy16_scan_prologue.
569 (xstormy16_frame_unwind): New frame_unwind structure.
570 (xstormy16_frame_base): New frame_base structure.
571 (xstormy16_gdbarch_init): Accomodate all of the above changes.
572 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
573
1285b746
MK
5742004-09-22 Mark Kettenis <kettenis@gnu.org>
575
576 * language.c (language_gdbarch_post_init): Fix off-by one error.
577
1c379e20
DJ
5782004-09-21 Daniel Jacobowitz <dan@debian.org>
579
580 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
581 (struct dwarf2_offset_and_type): New.
582 (set_die_type, reset_die_and_siblings_types, get_die_type)
583 (offset_and_type_hash, offset_and_type_eq): New functions.
584 (read_structure_type, read_enumeration_type, read_array_type)
585 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
586 (read_tag_reference_type, read_tag_const_type)
587 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
588 (read_typedef, read_base_type, read_subrange_type): Use
589 set_die_type.
590
ae038cb0
DJ
5912004-09-20 Daniel Jacobowitz <dan@debian.org>
592
593 * Makefile.in (dwarf2read.o): Update dependencies.
594 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
595 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
596 and read_in_chain.
597 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
598 mark, and has_form_ref_addr.
599 (struct dwarf2_per_cu_data): New.
600 (dwarf2_max_cache_age): New.
601 (dwarf2_build_psymtabs_hard): Free cached compilation units
602 after loading. Create and manage the list of compilation units.
603 Remove unnecessary NULL initialization. Fix indentation.
604 (psymtab_to_symtab_1): Initialize all of CU.
605 (dwarf2_read_abbrevs): Set has_form_ref_addr.
606 (find_partial_die): Use dwarf2_find_containing_comp_unit
607 and load_comp_unit.
608 (free_stack_comp_unit): Update comments. Clear the per-cu
609 pointer. Handle aging.
610 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
611 (age_cached_comp_units, free_one_cached_comp_unit)
612 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
613 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
614 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
615 (show_dwarf2_cmd): New.
616 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
617 and "maint show dwarf2 max-cache-age".
618 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
619 externs.
620 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
621 global.
622
987504bb
JJ
6232004-09-20 Jeff Johnston <jjohnstn@redhat.com>
624
625 * dwarf2read.c (typename_concat): Change prototype to accept obstack
626 and dwarf2_cu struct pointer as arguments. Change function to use
627 obstack if provided and use dwarf2_cu to determine language-specific
628 separator.
629 (partial_die_parent_scope): Change comment to include java. Use
630 new version of typename_concat instead of obconcat.
631 (partial_die_full_name): Use typename_concat.
632 (read_namespace): Ditto.
633 (read_enumeration_type): Use typename_concat instead of obconcat.
634 (new_symbol): Ditto.
635 (add_partial_symbol): Enhance tests for C++ to also test for Java.
636 (guess_structure_name): Ditto.
637 (read_subroutine_type): Ditto.
638 (read_structure_type): Ditto.
639 (is_vtable_name): Add Java support.
640 (determine_class_name): Switch to new typename_concat call.
641 (determine_prefix): Switch to new typename_concat call.
642 * jv-exp.y (FuncStart): New pattern.
643 (MethodInvocation): Add support for simple function calls. Change
644 warning message for other forms of inferior call currently not
645 supported.
646 * valarith.c (value_subscript): Treat an array with upper-bound
647 of -1 as unknown size.
648
d9c8471e
DJ
6492004-09-20 Daniel Jacobowitz <dan@debian.org>
650
651 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
652 (lookup_partial_symtab): Use symtab_to_fullname.
653
d73f140a
JB
6542004-09-19 Jim Blandy <jimb@redhat.com>
655
656 * minsyms.c (lookup_minimal_symbol): Doc fix.
657
adbef1f0
AC
6582004-09-20 Andrew Cagney <cagney@gnu.org>
659
660 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
661 CHILD_RESUME.
662 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
663 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
664 KILL_INFERIOR.
665 * infptrace.c: Update.
666
d092d1a2
DJ
6672004-09-19 Daniel Jacobowitz <dan@debian.org>
668
669 * symtab.c (output_source_filename): Mark first argument as const.
670 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
671 for "info sources" output.
672
86d9e1d7
MK
6732004-09-20 Mark Kettenis <kettenis@gnu.org>
674
675 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
676 <machine/vmparam.h>.
677 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
678 (register_u_addr): Remove prototype.
679
9a6c8ef4
MK
6802004-09-19 Mark Kettenis <kettenis@gnu.org>
681
9692934b
MK
682 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
683 (i386bsd_fetch_inferior_registers): Rename from
684 fetch_inferior_registers. Make static.
685 (i386bsd_store_inferior_registers): Rename from
686 store_inferior_registers. Make static.
687 (i386bsd_target): New function.
688 * i386bsd-nat.h: New file.
689 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
690 "i386bsd-nat.h".
691 (i386fbsd_resume): Rename from child_resume. Make static.
692 (_initialize_i386fbsd_nat): Construct and add target vector.
693 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
694 (_initialize_i386nbsd_nat): Construct and add target vector.
695 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
696 Remove defines.
697 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
698 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
699 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
700 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
701 (LOADLIBES): New variable.
702 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
703 inf-ptrace.o. Remove inftarg.o.
704 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
705 inf-ptrace.o. Remove inftarg.o.
706 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
707 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
708 (LOADLIBES): New variable.
709 * Makefile.in (i386bsd_nat_h): New variable.
710 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
711 dependencies.
712
3510d1f2
MK
713 * sparc64nbsd-tdep.c: Include "objfiles.h".
714 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
715 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
716 svr4_lp64_fetch_link_map_offsets.
717 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
718 "nbsd-tdep.h".
719 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
720 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
721 svr4_lp64_fetch_link_map_offsets.
722 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
723 dependencies.
724
578c1c03
MK
725 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
726 * fbsd-nat.h: New file.
727 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
728 (fbsd_nat_h): New variable.
729 (fbsd-nat.o): New dependency.
730
7a7b73b7
MK
731 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
732 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
733
9a6c8ef4
MK
734 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
735 comment.
736
72d5681a
PH
7372004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
738
739 * ada-exp.y (type_int): New function to add layer of abstraction
740 around references to expression types.
741 (type_long): Ditto.
742 (type_long_long): Ditto.
743 (type_float): Ditto.
744 (type_double): Ditto.
745 (type_long_double): Ditto.
746 (type_char): Ditto.
747 (type_system_address): Ditto.
748 (simple_exp): Use type_* functions in place of builtin_*
749 variables.
750 (exp): Ditto.
751 (write_var_from_name): Ditto.
752 (write_object_renaming): Ditto.
753 * ada-lang.c (ada_create_fundamental_type): Remove redundant
754 declaration.
755 (build_ada_types): Remove, replacing with...
756 (ada_language_arch_info): New function to initialize primitive
757 type vector in language_arch_info.
758 (ada_array_length): Remove use of builtin_type_ada_int.
759 (value_pos_atr): Ditto.
760 (ada_evaluate_subexp): Ditto.
761 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
762 builtin_type_ada_long_long, builtin_type_ada_char,
763 builtin_type_ada_float, builtin_type_ada_double,
764 builtin_type_ada_long_double, builtin_type_ada_natural,
765 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
766 (ada_builtin_types): Remove.
767 (ada_language_defn): Remove entries for la_builtin_type_vector and
768 string_char_type and use ada_language_arch_info.
769 (_initialize_ada_language): Do type-vector initialization along
770 the lines of c-lang.c.
771 (ada_create_fundamental_type): Break up line.
772 (ada_dump_symtab): Remove unused function.
773 (enum ada_primitive_types): Define.
774 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
775 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
776 builtin_type_ada_float, builtin_type_ada_double,
777 builtin_type_ada_long_double, builtin_type_ada_natural,
778 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
779 * ada-lex.l: Use type_* functions in place of builtin_* variables.
780 (processInt): Ditto.
781 (processReal): Ditto.
782 (name_lookup): Ditto.
783 * ada-typeprint.c (print_range): Use builtin_type_int, not
784 builtin_type_ada_int.
785
4f0be353
MK
7862004-09-18 Mark Kettenis <kettenis@gnu.org>
787
30b0e2d8
MK
788 * i386-tdep.c (i386_register_name): Rename regno to regnum.
789
4f0be353
MK
790 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
791 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
792 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
793 * configure.in: Improve checks for curses library by checking for
794 mvwaddstr instead of initscr. Drop HP curses in favour of
795 standard curses on HP-UX.
796 * configure: Regenerated.
797
72d5681a 7982004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
799
800 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
801 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
802 Minor formatting changes.
803 (empty_array): Slight rewrite for formatting.
804 (emit_char,parse,ada_language_defn,build_ada_types,
805 ada_is_exception_sym, _initialize_ada_language): Move
806 definitions around.
807 (ada_dump_symtab): Remove unused definition.
808 (ada_maybe_exception_partial_symbol): Remove unused definition.
809
1c8c7407
AC
8102004-09-16 Andrew Cagney <cagney@gnu.org>
811
7681f339
AC
812 * inf-child.c: Include "gdb_string.h".
813 (inf_child_core_file_to_sym_file): Delete.
814 (inf_child_target): Set to_fetch_registers and to_store_registers.
815 * inf-ptrace.c: Include "gdb_string.h".
816 * Makefile.in: Update all dependencies.
817
1c8c7407
AC
818 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
819 problem.
820
65596487
JB
8212004-09-14 Joel Brobecker <brobecker@gnat.com>
822
823 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
824 call to heuristic_proc_desc. Remove code that became redundant
825 as a consequence.
826 (read_next_frame_reg): Remove special case for SP_REGNUM.
827 (set_reg_offset): Fix small typo.
828 (reset_saved_regs): New procedure.
829 (mips32_heuristic_proc_desc): No longer compute a fake
830 procedure descriptor. Compute the full frame cache instead.
831 Some minor comment reformatting.
832
95575b2e
AC
8332004-09-14 Andrew Cagney <cagney@gnu.org>
834
f200c492
AC
835 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
836 maintainer.
837
95575b2e
AC
838 * thread-db.c (thread_db_new_objfile): Assume that there is a
839 child process.
840
69657671
JB
8412004-09-13 Jim Blandy <jimb@redhat.com>
842
843 * valops.c (value_assign): Move 'buffer' to the enclosing block,
844 so that its storage isn't referenced after its lifetime ends.
845
6c4182dd
JB
846 * valops.c (value_assign): 'use_buffer' is initialized to zero,
847 and never assigned to. Delete it, and the 'if (use_buffer)'
848 clauses. Delete 'raw_buffer', since it is now unused.
849
ee31a58d
AC
8502004-09-13 Andrew Cagney <cagney@gnu.org>
851
2c0fc042
AC
852 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
853 * configure: Re-generate.
854 * nlm/Makefile.in (TAGS): Update.
855 * Makefile.in (TAGS): Update.
856 * config/vax/nbsd.mt (TM_FILE): Update.
857 * config/sparc/vxworks.mt (TM_FILE): Update.
858 * config/sparc/sol2.mt (TM_FILE): Update.
859 * config/sparc/sol2-64.mt (TM_FILE): Update.
860 * config/sparc/obsd64.mt (TM_FILE): Update.
861 * config/sparc/obsd.mt (TM_FILE): Update.
862 * config/sparc/nbsd64.mt (TM_FILE): Update.
863 * config/sparc/nbsd.mt (TM_FILE): Update.
864 * config/sparc/linux64.mt (TM_FILE): Update.
865 * config/sparc/linux.mt (TM_FILE): Update.
866 * config/sparc/fbsd.mt (TM_FILE): Update.
867 * config/sh/wince.mt (TM_FILE): Update.
868 * config/sh/nbsd.mt (TM_FILE): Update.
869 * config/sh/linux.mt (TM_FILE): Update.
870 * config/sh/embed.mt (TM_FILE): Update.
871 * config/s390/s390.mt (TM_FILE): Update.
872 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
873 * config/rs6000/rs6000.mt (TM_FILE): Update.
874 * config/rs6000/aix4.mt (TM_FILE): Update.
875 * config/powerpc/vxworks.mt (TM_FILE): Update.
876 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
877 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
878 * config/powerpc/obsd.mt (TM_FILE): Update.
879 * config/powerpc/nbsd.mt (TM_FILE): Update.
880 * config/powerpc/linux.mt (TM_FILE): Update.
881 * config/powerpc/aix.mt (TM_FILE): Update.
882 * config/pa/obsd.mt (TM_FILE): Update.
883 * config/pa/linux.mt (TM_FILE): Update.
884 * config/pa/hppahpux.mt (TM_FILE): Update.
885 * config/pa/hppa64.mt (TM_FILE): Update.
886 * config/pa/hppa.mt (TM_FILE): Update.
887 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
888 * config/mips/wince.mt (TM_FILE): Update.
889 * config/mips/vxmips.mt (TM_FILE): Update.
890 * config/mips/nbsd.mt (TM_FILE): Update.
891 * config/mips/linux.mt (TM_FILE): Update.
892 * config/mips/irix6.mt (TM_FILE): Update.
893 * config/mips/irix5.mt (TM_FILE): Update.
894 * config/mips/embed.mt (TM_FILE): Update.
895 * config/m68k/vxworks68.mt (TM_FILE): Update.
896 * config/m68k/st2000.mt (TM_FILE): Update.
897 * config/m68k/os68k.mt (TM_FILE): Update.
898 * config/m68k/obsd.mt (TM_FILE): Update.
899 * config/m68k/nbsd.mt (TM_FILE): Update.
900 * config/m68k/monitor.mt (TM_FILE): Update.
901 * config/m68k/linux.mt (TM_FILE): Update.
902 * config/m68k/cisco.mt (TM_FILE): Update.
903 * config/ia64/linux.mt (TM_FILE): Update.
904 * config/ia64/aix.mt (TM_FILE): Update.
905 * config/ia64/ia64.mt (TM_FILE): Update.
906 * config/i386/vxworks.mt (TM_FILE): Update.
907 * config/i386/obsd64.mt (TM_FILE): Update.
908 * config/i386/obsd.mt (TM_FILE): Update.
909 * config/i386/nto.mt (TM_FILE): Update.
910 * config/i386/nbsd64.mt (TM_FILE): Update.
911 * config/i386/nbsd.mt (TM_FILE): Update.
912 * config/i386/linux64.mt (TM_FILE): Update.
913 * config/i386/linux.mt (TM_FILE): Update.
914 * config/i386/i386sol2.mt (TM_FILE): Update.
915 * config/i386/i386lynx.mt (TM_FILE): Update.
916 * config/i386/fbsd64.mt (TM_FILE): Update.
917 * config/i386/fbsd.mt (TM_FILE): Update.
918 * config/i386/cygwin.mt (TM_FILE): Update.
919 * config/h8300/h8300.mt (TM_FILE): Update.
920 * config/frv/frv.mt (TM_FILE): Update.
921 * config/cris/cris.mt (TM_FILE): Update.
922 * config/arm/wince.mt (TM_FILE): Update.
923 * config/arm/nbsd.mt (TM_FILE): Update.
924 * config/arm/linux.mt (TM_FILE): Update.
925 * config/arm/embed.mt (TM_FILE): Update.
926 * config/alpha/nbsd.mt (TM_FILE): Update.
927 * config/alpha/fbsd.mt (TM_FILE): Update.
928 * config/alpha/alpha.mt (TM_FILE): Update.
929 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
930 * config/alpha/alpha-linux.mt (TM_FILE): Update.
931
362646f5
AC
932 Eliminate event_loop_p, always has the value 1.
933 * defs.h (event_loop_p): Delete macro.
934 * breakpoint.c (until_break_command): Simplify.
935 * utils.c (prompt_for_continue): Simplify.
936 * tracepoint.c (read_actions): Simplify.
937 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
938 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
939 (set_prompt, init_main): Simplify.
940 (init_signals, disconnect): Delete, unused.
941 * remote.c (remote_async_resume)
942 (extended_remote_async_create_inferior): Simplify.
943 * mi/mi-interp.c (mi_input): Delete, unused.
944 (mi_interpreter_resume, mi_command_loop): Simplify.
945 * interps.c (current_interp_command_loop): Simplify.
946 * infrun.c (proceed): Simplify.
947 * infcmd.c (run_command, continue_command, step_1, jump_command)
948 (until_command, advance_command, finish_command)
949 (interrupt_target_command): Simplify.
950 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
951
ee31a58d
AC
952 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
953 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
954 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
955 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
956 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
957 * mips-tdep.c (mips_dump_tdep): Do not print same.
958
b7ffc4a8
AC
9592004-09-12 Andrew Cagney <cagney@gnu.org>
960
2bfb72ee
AC
961 * valprint.c (print_longest): Use fputs_filtered. Make "val"
962 const.
963 * Makefile.in (valprint.o): Delete explict rule.
964
4f17c3c1
AC
965 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
966 reported by Dave Anderson.
967
f810308b
AC
968 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
969
b7ffc4a8
AC
970 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
971
28b41c52
AC
9722004-09-12 Salvador E. Tropea <set@users.sf.net>
973 Andrew Cagney <cagney@gnu.org>
974
975 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
976 (mi_cmd_data_list_register_values)
977 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
978 the register number computation.
979
5bf970f9
AC
9802004-09-12 Andrew Cagney <cagney@gnu.org>
981
982 * ppcnbsd-nat.c: Include "inf-ptrace.h".
983 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
984 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
985 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
986 target.
987 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
988 inf-ptrace.o and inf-child.o.
989 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
990 * Makefile.in: Update dependencies.
991
0759e0bf
AC
9922004-09-11 Andrew Cagney <cagney@gnu.org>
993
994 * language.c (hex_string, hex_string_custom): Move from here ...
995 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
996 (CELLSIZE): Increase to 50.
997 * language.h (hex_string, hex_string_custom): Move from here ...
998 * defs.h: ... to here.
999 * Makefile.in: Update all dependencies.
1000
bb599908
PH
10012004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1002
1003 * language.c (local_hex_format_custom): Remove.
1004 (local_hex_string): Rename to hex_string, use C format, and move to
1005 utils.c
1006 (local_hex_string_custom): Rename to hex_string_custom and change
1007 interface. Now uses C format. Move to utils.c
1008 (local_octal_format_custom): Remove.
1009 (local_decimal_format_custom): Remove.
1010 (unknown_language_defn): Remove language-specific number
1011 formatting entries.
1012 (auto_language_defn): Ditto.
1013 (local_language_defn): Ditto.
1014 * language.h (struct language_format_info): Delete declaration.
1015 (struct language_defn): Remove language_format_info fields
1016 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1017 (local_binary_format): Remove macro.
1018 (local_binary_format_prefix): Remove macro.
1019 (local_binary_format_specifier): Remove macro.
1020 (local_binary_format_suffix): Remove macro.
1021 (local_octal_format): Remove macro.
1022 (local_octal_format_prefix): Remove macro.
1023 (local_octal_format_specifier): Remove macro.
1024 (local_octal_format_suffix): Remove macro.
1025 (local_decimal_format): Remove macro.
1026 (local_decimal_format_prefix): Remove macro.
1027 (local_decimal_format_specifier): Remove macro.
1028 (local_decimal_format_suffix): Remove macro.
1029 (local_hex_format): Remove macro.
1030 (local_hex_format_prefix): Remove macro.
1031 (local_hex_format_specifier): Remove macro.
1032 (local_hex_format_suffix): Remove macro.
1033 (local_decimal_format_custom): Remove.
1034 (local_octal_format_custom): Remove.
1035 (local_hex_format_custom): Remove.
1036 (local_hex_string): Rename to hex_string and move to defs.h.
1037 (local_hex_string_custom): Rename to hex_string_custom, change
1038 interface, and move to defs.h.
1039 * utils.c: (int_string): New function.
1040 (hex_string): New function (from language.c).
1041 (hex_string_custom): New function (from language.c).
1042 (octal2str): New function.
1043 (decimal2str): Add width parameter.
1044 (paddr_u): Use new decimal2str interface.
1045 (paddr_d): Ditto.
1046 * defs.h (hex_string): Declare.
1047 (hex_string_custom): Declare.
1048 (int_string): Declare.
1049 * printcmd.c (print_scalar_formatted): Remove localized binary
1050 formatting.
1051 * valprint.c (print_longest): Use int_string.
1052 (print_floating): Use C hex format.
1053 (print_hex_chars): Ditto.
1054 (print_binary_chars): Remove language-specific formatting.
1055 (print_octal_chars): Use C octal format.
1056 (print_decimal_chars): Delocalize format.
1057 (print_decimal): Remove.
1058 * ada-lang.c (ada_language_defn): Remove language-specific number
1059 formatting entries.
1060 * p-lang.c (pascal_language_defn): Ditto.
1061 * c-lang.c (c_language_defn): Ditto.
1062 (cplus_language_defn): Ditto.
1063 (asm_language_defn): Ditto.
1064 (minimal_language_defn): Ditto.
1065 * f-lang.c (f_language_defn): Ditto.
1066 * jv-lang.c (java_language_defn): Ditto.
1067 * m2-lang.c (m2_language_defn): Ditto.
1068 * scm-lang.c (scm_language_defn): Ditto.
1069 * objc-lang.c (objc_language_defn): Ditto.
1070 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1071 new interface.
1072 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1073 * ui-out.c (ui_out_field_core_addr): Ditto.
1074 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1075 * exec.c (print_section_info): Ditto.
1076 * i387-tdep.c (print_i387_status_word): Ditto.
1077 (print_i387_control_word): Ditto.
1078 (i387_print_float_info): Ditto.
1079 * maint.c (maint_print_section_info): Ditto.
1080 * solib.c (info_sharedlibrary_command): Ditto.
1081 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1082 * symtab.c (print_msymbol_info): Ditto.
1083 * tracepoint.c (tracepoints_info): Ditto.
1084 * solib-frv.c (lm_base): Ditto.
1085 (frv_current_sos): Ditto.
1086 (enable_break2): Ditto.
1087 (enable_break): Ditto.
1088 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1089 (process_one_symbol): Ditto.
1090 * infcmd.c (program_info): Ditto.
1091 * mdebugread.c (parse_partial_symbols): Ditto.
1092 * symfile.c (add_symbol_file_command): Ditto.
1093 * cli/cli-cmds.c (edit_command): Ditto.
1094 (list_command): Ditto.
1095 * infcall.c (call_function_by_hand): Ditto.
1096 * remote-vx.c (vx_run_files_info): Ditto.
1097 (vx_wait): Ditto.
1098 (vx_attach): Ditto.
1099 (vx_detach): Ditto.
1100 (vx_kill): Ditto.
1101 * aix-thread.c (pdc_symbol_addrs): Ditto.
1102 (pdc_read_regs): Ditto.
1103 (pdc_write_regs): Ditto.
1104 (pdc_read_data): Ditto.
1105 (pdc_write_data): Ditto.
1106 * d10v-tdep.c (display_trace): Ditto.
1107 * rs6000-nat.c (find_toc_address): Ditto.
1108 * aix-thread.c: Don't include language.h.
1109 * buildsym.c: Ditto.
1110 * dbxread.c: Ditto.
1111 * mdebugread.c: Ditto.
1112 * rs6000-nat.c: Ditto.
1113 * buildsym.c (make_blockvector): Use renamed hex_string.
1114
33f2d567
JM
11152004-09-10 Jason Molenda (jmolenda@apple.com)
1116
1117 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1118 chars after 'if' or 'while' commands in user-defined commands.
1119
7b90c3f9
JB
11202004-09-08 Jim Blandy <jimb@redhat.com>
1121
1122 Fix bug reported and analyzed by Olivier Crete:
1123 * symfile.c (copy_section_addr_info): New function.
1124 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1125 original set of address arguments, instead of handwritten code
1126 that uses one length to allocate and a different length to
1127 initialize. Use make_cleanup_free_section_addr_info.
1128 * symfile.h (copy_section_addr_info): New declaration.
1129 * utils.c: #include "symfile.h".
1130 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1131 New functions.
1132 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1133 * Makefile.in (utils.o): Update dependencies.
1134
b26a6851
AC
11352004-09-08 Andrew Cagney <cagney@gnu.org>
1136
1137 * thread-db.c (keep_thread_db): Delete.
1138 (thread_db_new_objfile, thread_db_create_inferior)
1139 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1140
be24b061
MK
11412004-09-08 Mark Kettenis <kettenis@gnu.org>
1142
f6792ef4
MK
1143 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1144 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1145 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1146 (i386_frameless_signal_p): Remove prototype.
1147 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1148 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1149 I386_SSE_NUM_REGS.
1150 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1151 instead of FP0_REGNUM.
1152 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1153 of FP0_REGNUM and FPC_REGNUM.
1154
eeefdaa7
MK
1155 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1156 (sunos_solib_create_inferior_hook): Don't call
1157 sunos_relocate_main_executable.
1158
be24b061
MK
1159 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1160 solib_svr4_fetch_link_map_offsets to
1161 svr4_ilp32_fetch_link_map_offsets.
1162 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1163 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1164 svr4_ilp32_fetch_link_map_offsets.
1165 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1166
7c679d16
JB
11672004-09-07 Jim Blandy <jimb@redhat.com>
1168
1169 * frame.h (frame_register): Doc fix.
1170
1f04aa62
AC
11712004-09-07 Andrew Cagney <cagney@gnu.org>
1172
1173 * vx-share/wait.h: Delete #ifdef USG.
1174 * utils.c (request_quit): Ditto.
1175 * tui/tui.c (tui_reset): Ditto.
1176 * remote.c: Ditto.
1177 * remote-sds.c: Ditto.
1178 * remote-rdi.c: Ditto.
1179 * mdebugread.c: Ditto.
1180 * m68klinux-nat.c: Ditto.
1181 * infttrace.c: Ditto.
1182 * infptrace.c: Ditto.
1183 * i386v-nat.c: Ditto.
1184 * exec.c: Ditto.
1185 * dbxread.c: Ditto.
1186 * core-aout.c: Ditto.
1187
90edbfbc
JB
11882004-09-05 Joel Brobecker <brobecker@gnat.com>
1189
1190 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1191 heuristic_proc_desc.
1192 (mips_insn32_frame_cache): Likewise.
1193
01f4bf2b
JB
11942004-09-04 Joel Brobecker <brobecker@gnat.com>
1195
1196 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1197 left behind by error.
1198
8511a048
JB
11992004-09-04 Joel Brobecker <brobecker@gnat.com>
1200
1201 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1202 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1203
649dfe9f
JB
12042004-09-04 Joel Brobecker <brobecker@gnat.com>
1205
1206 * config/rs6000/xm-aix4.h: Remove this file.
1207 * config/rs6000/aix4.mh (XM_FILE): Delete.
1208
6e50f889
JB
12092004-09-04 Joel Brobecker <brobecker@gnat.com>
1210
1211 * config/rs6000/xm-rs6000.h: Remove this file.
1212 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1213
b8c4aece
AC
12142004-09-03 Andrew Cagney <cagney@gnu.org>
1215
fb603883
AC
1216 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1217 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1218 only use.
1219
c9343fd1
AC
1220 * mips-tdep.c (temp_saved_regs): Delete.
1221 (set_reg_offset): Replace saved_regs parameter with this_cache.
1222 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1223 (mips32_heuristic_proc_desc): Add this_cache parameter.
1224 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1225 (after_prologue): Pass a NULL this_cache.
1226
9733cfe1
AC
1227 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1228 non-kernel trap prologues.
1229
0d5febcc
AC
1230 * mips-tdep.c (find_proc_desc): Delete function.
1231 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1232 simplify.
1233 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1234 mips_insn32_frame_cache.
1235
9733cfe1 1236 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1237 Simplify as NEXT_FRAME is NULL.
1238 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1239
177f84a3
AC
1240 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1241 local variable.
1242 (mips_skip_prologue): Update.
1243
465f7520
AC
1244 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1245 "cur_frame" parameter.
177f84a3
AC
1246 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1247 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1248
e38b8658
AC
1249 * config/vax/nm-obsd.h: Delete file.
1250 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1251 * config/vax/nm-nbsd.h: Delete file.
1252 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1253 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1254 * config/sh/nm-nbsd.h: Delete file.
1255 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1256 * config/rs6000/nm-rs6000ly.h: Delete file.
1257 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1258 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1259 * config/powerpc/nm-obsd.h: Delete file.
1260 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1261 * config/powerpc/nm-nbsd.h: Delete file.
1262 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1263 * config/pa/nm-obsd.h: Delete file.
1264 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1265 * config/mips/nm-nbsd.h: Delete file.
1266 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1267 * config/m88k/nm-obsd.h: Delete file.
1268 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1269 * config/m68k/nm-nbsd.h: Delete file.
1270 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1271 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1272 * config/i386/nm-nbsd.h: Delete file.
1273 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1274 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1275 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1276 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1277 * config/i386/nm-i386lynx.h: Delete file.
1278 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1279 * config/arm/nm-nbsd.h: Delete file.
1280 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1281 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1282
be1ed680
AC
1283 * config/i386/tm-fbsd.h: Delete file.
1284 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1285 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1286
4b392b26
AC
1287 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1288 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1289 * config/rs6000/aix4.mt (TM_FILE): Set to
1290 config/rs6000/tm-rs6000.h.
1291 * config/powerpc/tm-ppc-aix.h: Delete file.
1292 * config/powerpc/aix.mt (TM_FILE): Set to
1293 config/rs6000/tm-rs6000.h.
1294 * config/m68k/tm-linux.h: Delete file.
1295 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1296 * config/i386/tm-linux64.h: Delete file.
1297 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1298 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1299
f3219c75
AC
1300 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1301 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1302 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1303 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1304 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1305 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1306 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1307 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1308 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1309
b8c4aece
AC
1310 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1311 gdb_host_cpu.
1312
8ac2e020
JB
13132004-09-02 Joel Brobecker <brobecker@gnat.com>
1314
1315 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1316 Minor reformatting. Some code factoring.
1317
c185a355
AC
13182004-09-02 Andrew Cagney <cagney@gnu.org>
1319
63f22f0d
AC
1320 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1321 * config/vax/tm-nbsd.h: Delete file.
1322 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1323 * config/sparc/tm-vxworks.h: Delete file.
1324 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1325 * config/sparc/tm-nbsd.h: Delete file.
1326 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1327 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1328 * config/sparc/tm-linux.h: Delete file.
1329 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1330 * config/s390/tm-linux.h: Delete file.
1331 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1332 * config/pa/tm-bsd.h: Delete file.
1333 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1334 * config/m68k/tm-obsd.h: Delete file.
1335 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1336 * config/m68k/tm-nbsd.h: Delete file.
1337 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1338 * config/i386/tm-vxworks.h: Delete file.
1339 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1340 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1341 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1342 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1343 * config/i386/tm-nbsd.h: Delete file.
1344 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1345 * config/i386/tm-i386lynx.h: Delete file.
1346 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1347 * config/cris/tm-cris.h: Delete file.
1348
0f475e27
AC
1349 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1350 * configure: Re-generate.
1351 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1352 * config/arm/tm-nbsd.h: Delete file.
1353
458ed000
AC
1354 * config/powerpc/tm-ppcle-sim.h: Delete.
1355 * config/powerpc/tm-ppcle-eabi.h: Delete.
1356 * config/powerpc/tm-nbsd.h: Delete.
1357 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1358 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1359 tm-ppcle-eabi.h.
1360
f14375f3
AC
1361 * config/i386/nto.mh (NAT_FILE): Delete.
1362 * config/i386/nm-nto.h: Delete.
1363
c34d127c
AC
1364 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1365 * config/m68k/tm-os68k.h: Ditto.
1366 * config/m68k/tm-monitor.h: Ditto.
1367 * config/m68k/tm-cisco.h: Ditto.
1368 * config/m68k/st2000.mt (TM_FILE): Delete.
1369 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1370 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1371 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1372 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1373
f7f0fe03
AC
1374 * config/m68k/tm-st2000.h: Delete.
1375 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1376 * config/sparc/fbsd.mt (TM_FILE): Delete.
1377 * config/sparc/tm-fbsd.h: Delete.
1378
a2558533
AC
1379 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1380 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1381 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1382
b78960be
AC
1383 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1384 GDB_TM_FILE and GDB_XM_FILE.
1385 * gdbarch.c: Re-generate.
1386 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1387 quotes in macro definition.
1388 * configure.in: Re-generate.
1389
4d60522e
AC
1390 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1391 validating architecture methods.
1392 * gdbarch.c: Re-generate.
1393
5010d38b
AC
1394 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1395 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1396 GDB_MULTI_ARCH_PARTIAL.
1397 * gdbarch.h: Re-generate.
1398
c185a355
AC
1399 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1400 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1401 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1402 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1403 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1404 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1405 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1406 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1407 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1408 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1409 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1410 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1411
14aaa6ab
AC
14122004-09-01 Andrew Cagney <cagney@gnu.org>
1413
1414 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1415 and main_func_highpc.
1416 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1417 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1418 * nlmread.c (nlm_symfile_read): Update.
1419
a343eb3c
JB
14202004-09-01 Joel Brobecker <brobecker@gnat.com>
1421
1422 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1423 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1424 (find_proc_desc): Remove dead code.
1425
4fbbbd07
JB
14262004-09-01 Joel Brobecker <brobecker@gnat.com>
1427
1428 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1429
84acb35a
JJ
14302004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1431
1432 * observer.sh: Add struct so_list declaration.
1433 * Makefile.in: Add dependencies on observer.h for solib.c and
1434 breakpoint.c.
1435 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1436 function.
1437 (_initialize_breakpoint): Register
1438 disable_breakpoints_in_unloaded_shlib as an observer of the
1439 "solib unloaded" observation event.
1440 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1441 call decode_line_1 so unfound breakpoint errors are silent.
1442 * solib.c (update_solib_list): When a solib is discovered to have
1443 been unloaded by the program, notify all observers of the
1444 "solib unloaded" observation event.
1445
c8cd9f6c
AC
14462004-09-01 Andrew Cagney <cagney@gnu.org>
1447
1448 * frame.c: Include "objfiles.h".
1449 (inside_main_func): New function.
1450 (get_prev_frame): Use new inside_main_func.
1451 * Makefile.in (frame.o): Update dependencies.
1452 * defs.h (inside_main_func): Delete declaration.
1453 * blockframe.c (inside_main_func): Delete function.
1454
1168df01
JB
14552004-08-31 Jim Blandy <jimb@redhat.com>
1456
1457 * dwarf2read.c (is_vtable_name): New function, based on logic from
1458 read_structure_type, but passing the correct length to strncmp,
1459 and using 'sizeof' instead of 'strlen'.
1460 (read_structure_type): Call it.
1461
f14f9744
JB
14622004-08-31 Joel Brobecker <brobecker@gnat.com>
1463
1464 * config/powerpc/aix.mh: Add comment.
1465
386d4518
PG
14662004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1467
1468 * MAINTAINERS: Add self to Write-After-Approval.
1469
7d97d5e2
MI
14702004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1471
1472 * MAINTAINERS: Add self to Write-After-Approval.
1473
68f53502
AC
14742004-08-30 Andrew Cagney <cagney@gnu.org>
1475
1476 Fix PR breakpoints/1757.
1477 * infrun.c (struct execution_control_state): Replace
1478 remove_breakpoints_on_following_step with
1479 step_after_step_resume_breakpoint.
1480 (init_execution_control_state): Update.
1481 (handle_inferior_event): For signals, when stepping off a
1482 breakpoint, set step_after_step_resume_breakpoint. When
1483 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1484 (keep_going): Delete code handling
1485 remove_breakpoints_on_following_step.
1486
7ca2d3a3
DL
14872004-08-29 David Lecomber <david@streamline-computing.com>
1488
1489 Fix PR gdb/648
1490 * language.h (enum array_ordering): New enum.
1491 * language.h (struct language_defn): New la_array_ordering
1492 attribute.
1493 * language.c (unknown_language_defn, auto_language_defn)
1494 (local_language_defn): Ditto.
1495 * ada-lang.c (ada_language_defn): Ditto.
1496 * c-lang.c (c_language_defn, cplus_language_defn)
1497 (asm_language_defn, minimal_language_defn): Ditto.
1498 * f-lang.c (f_language_defn): Ditto.
1499 * jv-lang.c (java_language_defn): Ditto.
1500 * m2-lang.c (f_language_defn): Ditto.
1501 * objc-lang.c (objc_language_defn): Ditto.
1502 * p-lang.c (pascal_language_defn): Ditto.
1503 * scm-lang.c (scm_language_defn): Ditto.
1504 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1505 oriented large to small in type structure.
1506 * dwarf2read.c (read_array_order): New function.
1507 (read_array_type): Use read_array_order to check row/column
1508 major ordering.
1509
e354df01
NW
15102004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1511
1512 * target.c (target_resize_to_sections): Check
1513 current_target.to_sections for an old value when updating.
1514
9185ddce
JB
15152004-08-27 Joel Brobecker <brobecker@gnat.com>
1516
1517 * procfs.c (dbx_link_bpt_addr): New static global variable.
1518 (dbx_link_shadow_contents): New static global variable.
1519 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1520 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1521 if we just hit it.
1522 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1523 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1524 from run to run.
1525 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1526 after the inferior has been forked.
1527 (remove_dbx_link_breakpoint): New function.
1528 (dbx_link_addr): New function.
1529 (insert_dbx_link_bpt_in_file): New function.
1530 (insert_dbx_link_bpt_in_region): New function.
1531 (insert_dbx_link_breakpoint): New function.
1532 (proc_trace_syscalls_1): New function, extracted from
1533 proc_trace_syscalls.
1534 (proc_trace_syscalls): Replace extract code by call to
1535 proc_trace_syscalls_1.
1536 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1537 is no longer valid.
1538
e6742ace
JB
15392004-08-25 Jim Blandy <jimb@redhat.com>
1540
1541 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1542
8fb3e588
AC
15432004-08-25 Andrew Cagney <cagney@gnu.org>
1544
629a41ee
AC
1545 * infrun.c (struct execution_control_state): Delete field
1546 "stepping_through_sigtramp".
1547 (init_execution_control_state): Do not set same.
1548 (context_switch): Do not pass same to save_infrun_state and
1549 load_infrun_state.
1550 * gdbthread.h (struct thread_info): Delete field
1551 stepping_through_sigtramp.
1552 (save_infrun_state, load_infrun_state): Delete parameter
1553 stepping_through_sigtramp.
1554 * thread.c (load_infrun_state, save_infrun_state): Update.
1555
8fb3e588
AC
1556 * infrun.c: Re-indent. Move expression operators to the beginning
1557 of the line. Remove long disabled #if 0 code.
1558
49c54768
AC
15592004-08-24 Andrew Cagney <cagney@gnu.org>
1560
1561 * doublest.h (floatformat_ieee_quad): Rename
1562 floatformat_ia64_quad.
1563 * doublest.c (floatformat_ieee_quad): Rename
1564 floatformat_ia64_quad.
1565 (_initialize_doublest): Update.
1566
5ca2e327
JB
15672004-08-24 Jim Blandy <jimb@redhat.com>
1568
87808bd6
JB
1569 * dwarf2expr.h (struct dwarf_expr_context): New members
1570 'num_pieces' and 'pieces', for returning the result of an
1571 expression that uses DW_OP_piece.
1572 (struct dwarf_expr_piece): New struct type.
1573 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1574 pieces.
1575 (free_dwarf_expr_context): Free pieces, if any.
1576 (add_piece): New function.
1577 (execute_stack_op): Implement DW_OP_piece.
1578 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1579 expression is a list of pieces, print an error message.
1580 (dwarf2_loc_desc_needs_frame): If the expression yields
1581 pieces, and any piece is in a register, then we need a frame.
1582
5ca2e327
JB
1583 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1584 the stack until we've decided what sort of result the evaluation
1585 has produced. Use separate variables, with more specific names.
1586
2afeb6b8
RE
15872004-08-23 Richard Earnshaw <rearnsha@arm.com>
1588
1589 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1590 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1591 (arm_netbsd_init_abi_common): Register them.
1592
5885ab49
MK
15932004-08-22 Mark Kettenis <kettenis@gnu.org>
1594
fda820a6
MK
1595 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1596
1c5bf419
MK
1597 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1598 safe_frame_unwind_memory instead of target_read_memory.
1599
8cbba7c8
MK
1600 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1601 Reorder includes.
1602 (fetch_register, store_register): Remove prototypes.
1603 (child_resume): Reorganize code and comments such that it is
1604 grouped a bit more logically.
1605 (attach): Explicitly compare errno against 0.
1606 (detach): Likewise. Use perror_with_name instead of
1607 print_sys_errmsg.
1608 * Makefile.in (infptrace.o): Update dependencies.
1609
c5fa4245
MK
1610 * ia64-linux-nat.c: Update copyright year.
1611 (fetch_debug_register, store_debug_register)
1612 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1613 PTRACE_TYPE_ARG3.
1614 * config/ia64/nm-linux.h: Update copyright year.
1615 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1616
387c058c
MK
1617 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1618 from CORE_ADDR to struct frame_info *. Use
1619 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1620 (amd64_linux_sigtramp_p): Adjust for changed signature of
1621 and64_linux_sigtramp_start
1622
277215a6
MK
1623 * gdb_ptrace.h: GNU/Linux.
1624
25f6178e
MK
1625 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1626 Remove defines.
1627
652fc137
MK
1628 * infptrace.c: Include "gdb_assert.h".
1629 (PTRACE_XFER_TYPE): Remove define.
1630 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1631 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1632 Tweak comment.
1633 (fetch_inferior_registers, store_inferior_registers): Remove
1634 redundant culry braces. Tweak comment. s/regno/regnum.
1635 * Makefile.in (infptrace.o): Update dependencies.
1636
5885ab49
MK
1637 * configure.in: Change test for return type of ptrace to default
1638 to `long' instead of `int'.
1639 * configure: Regenerate.
1640
11003ae3
MK
16412004-08-21 Mark Kettenis <kettenis@gnu.org>
1642
6b95110c
MK
1643 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1644
bcb3dc3d
MK
1645 * configure.in: Check for ttrace function.
1646 * configure, config.in: Regenerate.
1647
11003ae3
MK
1648 * gdb_ptrace.h: New file.
1649 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1650 <sys/ptrace.h>.
1651 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1652 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1653 (attach): Don't define PT_ATTACH.
1654 (detach): Don't define PT_DETACH.
1655 * Makefile.in (gdb_ptrace_h): New variable.
1656 (infptrace.o): Update dependencies.
1657
f8707cac
MK
16582004-08-16 Mark Kettenis <kettenis@gnu.org>
1659
1660 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1661 instead of `int' if not already defined.
1662 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1663 PTRACE_TYPE_ARG3.
1664 * infptrace.c (call_ptrace): Revert change that replaced
1665 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1666
655c5466
MK
16672004-08-15 Mark Kettenis <kettenis@gnu.org>
1668
156e5ba7
MK
1669 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1670 Remove defines.
1671
de9a9e51
MK
1672 * linux-nat.c (kill_inferior): Add missing third and fourth
1673 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1674
88800403
MK
1675 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1676 PTRACE_TYPE_RET.
1677
849a1d7c
MK
1678 * proc-why.c (proc_prettyfprint_why): Fix format string.
1679
61ad16d1
MK
1680 * solib-osf.c (osf_current_sos): Remove unsused label.
1681
a6ed5501
MK
1682 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1683 curses headers.
1684 * configure, config.in: Regenerate.
1685 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1686 <ncurses/ncurses.h>.
1687
016ddeca
MK
1688 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1689 * config/nm-nbsd.h: Update copyright year.
1690 (PTRACE_ARG3_TYPE): Remove define.
1691
49ec097f
MK
1692 * sparc-nat.c (fetch_inferior_registers)
1693 (store_inferior_registers, sparc_xfer_wcookie):
1694 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1695
9f8e0089
MK
1696 * alphabsd-nat.c (fetch_inferior_registers):
1697 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1698 PTRACE_TYPE_ARG3.
1699 * amd64bsd-nat.c (fetch_inferior_registers)
1700 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1701 PTRACE_TYPE_ARG3.
1702 * armnbsd-nat.c: Update copyright year.
1703 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1704 (store_register, store_regs, store_fp_register, store_fp_regs):
1705 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1706 * hppabsd-nat.c (fetch_inferior_registers)
1707 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1708 PTRACE_TYPE_ARG3.
1709 * i386bsd-nat.c (fetch_inferior_registers)
1710 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1711 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1712 * m68kbsd-nat.c (fetch_inferior_registers)
1713 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1714 PTRACE_TYPE_ARG3.
1715 * m88kbsd-nat.c (fetch_inferior_registers)
1716 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1717 PTRACE_TYPE_ARG3.
1718 * mipsnbsd-nat.c: Update copyright year.
1719 (fetch_inferior_registers, store_inferior_registers):
1720 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1721 * ns32knbsd-nat.c: Update copyright year.
1722 (fetch_inferior_registers, store_inferior_registers):
1723 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1724 * ppcnbsd-nat.c (fetch_inferior_registers):
1725 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1726 PTRACE_TYPE_ARG3.
1727 * ppcobsd-nat.c (fetch_inferior_registers):
1728 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1729 PTRACE_TYPE_ARG3.
1730 * shnbsd-nat.c: Update copyright year.
1731 (fetch_inferior_registers, store_inferior_registers):
1732 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1733 * vaxbsd-nat.c (fetch_inferior_registers)
1734 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1735 PTRACE_TYPE_ARG3.
1736
655c5466
MK
1737 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1738 PTRACE_TYPE_ARG3.
1739 * infptrace.c (call_ptrace, child_resume, attach, detach)
1740 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1741 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1742 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1743 PTRACE_TYPE_ARG3.
1744
c40d0d10
MK
17452004-08-14 Mark Kettenis <kettenis@gnu.org>
1746
5cb0ff31
MK
1747 * defs.h: Remove out-of-date comment.
1748 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1749 [!GETENV_PROVIDED] (getenv): Remove prototype.
1750
5f0f34cb
MK
1751 * standalone.c: Remove file.
1752 * Makefile.in (standalone.o): Remove dependency.
1753
7532965f
MK
1754 * i386-linux-nat.c (dummy_sse_values): Remove function and
1755 prototype.
1756 (i386_linux_dr_get): Fix typo in comment.
1757 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1758
1bdc6c53
MK
1759 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1760
c40d0d10
MK
1761 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1762 from declaration.
1763 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1764 from definition.
1765
64218d3e
MK
17662004-08-13 Mark Kettenis <kettenis@gnu.org>
1767
1768 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1769 parenthesis in definition.
1770 * configure: Regenerated.
1771
926c94e7
MC
17722004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1773
1774 * PROBLEMS: Mention build/1411.
1775
69489883
NN
17762004-08-09 Robert Millan <robertmh@gnu.org>
1777
1778 Committed by Nathanael Nerode.
1779 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1780 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1781
ebb7c577
AC
17822004-08-12 Andrew Cagney <cagney@gnu.org>
1783
1784 * NEWS: Mention fixes in GDB 6.2.1.
1785 * PROBLEMS: Remove mention of mips-irix.
1786
232d697c
JB
17872004-08-11 Joel Brobecker <brobecker@gnat.com>
1788
1789 * config/powerpc/xm-aix.h: Delete.
1790 * config/powerpc/aix.mh (MH_FILE): Remove.
1791 * config/powerpc/aix432.mh (MH_FILE): Remove.
1792
72f4e82b
JB
17932004-08-11 Joel Brobecker <brobecker@gnat.com>
1794
1795 * config/powerpc/aix.mh: Remove obsolete comment.
1796 * config/powerpc/aix432.mh: Likewise.
1797
0687ccb2
JB
17982004-08-11 Joel Brobecker <brobecker@gnat.com>
1799
1800 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1801
dbf3ada7
JB
18022004-08-11 Joel Brobecker <brobecker@gnat.com>
1803
e08e1886
JB
1804 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1805 this file is now empty.
1806 * config/xm-aix4.h: Remove, this file is no longer included
1807 anywhere.
1808
18092004-08-11 Joel Brobecker <brobecker@gnat.com>
1810
1811 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1812 that file is now empty.
dbf3ada7
JB
1813 (termdef): Remove prototype, function no longer used.
1814
4c525ef6
JB
18152004-08-11 Joel Brobecker <brobecker@gnat.com>
1816
1817 * doc/gdbint.texinfo (Host Definition): Remove documentation
1818 for USE_O_NOCTTY, no longer used.
1819 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1820 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1821
82e0b968
JB
18222004-08-11 Joel Brobecker <brobecker@gnat.com>
1823
1824 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1825 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1826 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1827
f2acbe1c
MK
18282004-08-11 Mark Kettenis <kettenis@gnu.org>
1829
daa98270
MK
1830 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1831 instead of FIVE_ARG_PTRACE.
1832
f2acbe1c
MK
1833 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1834 (new_tty): Use O_NOCTTY unconditionally.
1835
cc377e6b
MK
18362004-08-10 Mark Kettenis <kettenis@gnu.org>
1837
1838 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1839 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1840 fflush on stdout.
1841
3bcc18fa
JB
18422004-08-10 Joel Brobecker <brobecker@gnat.com>
1843
1844 * xcoff_symfile_finish: Replace last call to xmfree by call
1845 to xfree.
1846
7936743b
AC
18472004-08-10 Andrew Cagney <cagney@gnu.org>
1848
cc503c8a
AC
1849 * main.c (captured_main): Delete call to init_malloc.
1850 * defs.h (init_malloc): Delete declaration.
1851 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1852 (init_malloc): Delete functions.
1853
2dc74dc1
AC
1854 * defs.h (xmfree): Delete.
1855 * utils.c (xmfree): Delete function.
1856 (xfree): Inline calls to xmfree and mfree.
1857 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1858 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1859 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1860 * somread.c (som_symfile_finish): Ditto.
1861 * objfiles.c (allocate_objfile, free_objfile):
1862 * nlmread.c (nlm_symfile_finish): Ditto.
1863 * hpread.c (hpread_symfile_finish): Ditto.
1864 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1865 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1866 * coffread.c (coff_symfile_finish): Ditto.
1867
aa2ee5f6
AC
1868 * defs.h (xmcalloc): Delete declaration.
1869 * utils.c (xmcalloc): Delete.
1870 (xcalloc): Inline calls to xmcalloc and mcalloc.
1871 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1872 xcalloc and xfree.
1873 * symtab.c (create_demangled_names_hash): Ditto.
1874
0efffb96
AC
1875 * defs.h (xmrealloc): Delete.
1876 * utils.c (xmrealloc): Delete.
1877 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1878 * symmisc.c (extend_psymbol_list): Use xrealloc.
1879 * source.c (find_source_lines): Ditto.
1880 * hpread.c (hpread_lookup_type): Ditto.
1881 * dbxread.c (add_bincl_to_list): Ditto.
1882
7936743b
AC
1883 * utils.c (xmmalloc): Delete.
1884 (xmalloc): Inline xmmalloc and mmalloc calls.
1885 (msavestring): Use xmalloc.
1886 * defs.h (xmmalloc): Delete declaration.
1887 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1888 xmmalloc.
1889 * symmisc.c (extend_psymbol_list): Ditto.
1890 * symfile.c (init_psymbol_list): Ditto.
1891 * source.c (find_source_lines): Ditto.
1892 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1893 * elfread.c (elf_symtab_read): Ditto.
1894 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1895 * coffread.c (coff_symfile_init): Ditto.
1896
252ab814
DC
18972004-08-10 David Carlton <carlton@bactrian.org>
1898
1899 * MAINTAINERS: Remove David Carlton from c++ testsuite
1900 maintainers.
1901
8f5ba92b
JG
19022004-08-10 Jerome Guitton <guitton@gnat.com>
1903
1904 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1905 print a line feed before the prompt.
1906
21749010
MK
19072004-08-10 Mark Kettenis <kettenis@gnu.org>
1908
1909 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1910
1f011ce2
JB
19112004-08-09 Joel Brobecker <brobecker@gnat.com>
1912
1913 General cleanup of the AIX xm include file:
1914 * config/xm-aix4.h (fd_set): Remove undefine.
1915 Remove include of <sys/select.h>.
1916 (HAVE_TERMIO): Remove define.
1917 (USG): Likewise.
1918 (NULL): Remove redefine.
1919 (alloca): Remove #pragma.
1920 (vfork): Remove define.
1921 (termdef): Remove.
1922 (SIGWINCH_HANDLER): Remove.
1923 (SIGWINCH_HANDLER_BODY): Remove.
1924
cf4e7692
MK
19252004-08-09 Mark Kettenis <kettenis@gnu.org>
1926
1927 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1928 GDB_OSABI_OPENBSD_ELF.
1929
ac5754fa
MK
19302004-08-07 Robert Millan <robertmh@gnu.org>
1931
1932 * bsd-kvm.c: Check for nlist.h before including it.
1933
086ec9eb
MK
19342004-08-09 Mark Kettenis <kettenis@gnu.org>
1935
bbe06c74
MK
1936 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1937 sigcontext' offset consistency checks for ancient BSD.
1938
3aa7b3b3
MK
1939 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1940
086ec9eb
MK
1941 * configure.in: Check for <sys/types.h>. Check return and
1942 argument types of ptrace.
1943 * configure, config.in: Regenerate.
1944
09991fa0
JB
19452004-08-09 Jim Blandy <jimb@redhat.com>
1946
1947 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1948 rs6000_register_sim_regno): Doc fixes.
1949
fed7ba43
JB
19502004-08-08 Joel Brobecker <brobecker@gnat.com>
1951
1952 * mips-tdep.c: Include "floatformat.h".
1953 (n32n64_floatformat_always_valid): New function.
1954 (floatformat_n32n64_long_double_big): New constant.
1955 (mips_gdbarch_init): Set size and format of long double
1956 for N32 and N64 ABIs.
1957 * Makefile.in (mips-tdep.o): Update dependencies.
1958
456fcf94
AC
19592004-08-08 Andrew Cagney <cagney@gnu.org>
1960
2f9b146e
AC
1961 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1962 print. Improve script's error messages.
1963 * gdbarch.h: Re-generate.
1964
456fcf94
AC
1965 * gdbarch.sh (pformat): New function.
1966 (float_format, double_format, long_double_format): List with bit
1967 members. Use pformat when printing.
1968 * gdbarch.c, gdbarch.h: Re-generate.
1969
69e9e646
NW
19702004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1971
1972 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1973 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1974 (ppcnbsd_supply_pcb): New function.
1975 (_initialize_ppcnbsd_nat): New prototype and function.
1976 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1977 (LOADLIBES): New variable.
1978 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1979
5ef2d0aa
AC
19802004-08-08 Andrew Cagney <cagney@gnu.org>
1981
1982 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1983 (builtin_type_ieee_double, builtin_type_ia64_quad)
1984 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1985 BE/LE floating-point types.
1986 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1987 (builtin_type_ieee_double, builtin_type_ia64_quad)
1988 (builtin_type_ia64_spill): Declare.
1989 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1990 (floatformat_ieee_double, floatformat_arm_ext)
1991 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1992 of LE/BE floatformats.
1993 * doublest.h: (struct floatformat, floatformat_ieee_single)
1994 (floatformat_ieee_double, floatformat_arm_ext)
1995 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1996
5c7f2947
MK
19972004-08-08 Mark Kettenis <kettenis@gnu.org>
1998
ecac404d
MK
1999 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2000
9b8607ce
MK
2001 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2002 instead of regcache_raw_supply when storing the registers.
2003
f6052080
MK
2004 * i386gnu-nat.c: Update copyright year.
2005 (gnu_store_registers): Don't use deprecated_registers and
2006 deprecated_registers_valid. Use regcache_valid_p and
2007 regcache_raw_supply instead.
2008
17777823
MK
2009 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2010 frame_pc_unwind.
2011
5240ceac
MK
2012 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2013 variables. Incapitalized "process".
2014
5c7f2947
MK
2015 * configure.in: Add cursesX to the list of possible curses libs.
2016 Add cursesX.h to the list of possible curses headers.
2017 * configure, config.in: Regenerate.
2018
da7d81e3
NW
20192004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2020
2021 * configure.in: Test for struct lwp in <sys/lwp.h>.
2022 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2023 the offset of l_addr in struct lwp.
2024
7f245d65
NW
20252004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2026
2027 * bsd-kvm.c: Include "gdbcore.h"
2028 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2029
47b3f456
AC
20302004-08-07 Andrew Cagney <cagney@gnu.org>
2031
70bd8e24
AC
2032 * gdbtypes.c (build_flt, build_complex): New functions.
2033 (gdbtypes_post_init): Use.
2034
9b0dea39
AC
2035 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2036
5cf7abac
AC
2037 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2038 through to builtin_type_uint128.
2039
64d2b26d
AC
2040 * c-exp.y: Use builtin_type function to obtain builtin types.
2041
7ad6570d
AC
2042 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2043 builtin_uint128.
2044 * gdbtypes.c (gdbtypes_post_init): Update.
2045 (build_gdbtypes): Move initialization of builtin_type_int0
2046 through to builtin_type_uint128 from here ...
2047 (_initialize_gdbtypes): ... to here.
2048 * d10v-tdep.c (d10v_register_type): Update.
2049
47b3f456
AC
2050 * doublest.c: Update copyright.
2051 (floatformat_from_length): Call error when floatformat is NULL.
2052 (extract_floating_by_length): Remove NULL fmt check.
2053 (store_floating_by_length): Ditto.
2054
0a8146bf
AC
20552004-08-07 Andrew Cagney <cagney@gnu.org>
2056
2057 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2058 that the register is valid.
2059
c0ccb908
MK
20602004-08-05 Mark Kettenis <kettenis@chello.nl>
2061
8e6bed05
MK
2062 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2063 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2064 struct frame_info *. Use safe_frame_unwind_memory instead of
2065 deprecated_read_memory_nobpt.
2066 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2067 changed signature of i386_linux_sigtramp_start and
2068 i386_linux_rt_sigtramp_start.
2069
24f9f5e3
MK
2070 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2071 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2072 instead of deprecated_read_memory_nobpt.
2073 (i386nbsd_sigtramp_p): Adjust for changed signature of
2074 i386nbsd_sigtramp_offset.
2075
c822af0c
MK
2076 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2077 safe_frame_unwind_memory instead of target_read_memory.
2078
c0ccb908
MK
2079 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2080 !NO_SYS_FILE.
2081 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2082 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2083 (_initialize_kernel_u_addr): Remove prototype and function.
2084 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2085 !NO_SYS_FILE.
2086 * xcoffread.c: Likewise.
2087
b9e1c0d6
MK
20882004-08-06 Mark Kettenis <kettenis@gnu.org>
2089
2090 * vax-nat.c: New file.
2091 * vaxbsd-nat.c: Tweak comment.
2092 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2093 vaxnbsd-tdep.c.
2094 (vax-nat.o): New dependency.
2095 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2096 (vax-*-ultrix2*): Remove.
2097 * config/vax/vax.mh: New file.
2098 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2099 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2100 (vax_register_u_addr): New prototype.
2101 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2102 * config/vax/vaxult2.mh: Remove file.
2103 * config/vax/vaxult.mh: Remove file.
2104 * config/vax/vaxbsd.mh: Remove file.
2105 * config/vax/vax.mt (TM_FILE): Remove.
2106 * config/vax/tm-vaxbsd.h: Remove file.
2107
9ad7bec7
JB
21082004-08-06 Joel Brobecker <brobecker@gnat.com>
2109
2110 * aix-thread.c (get_signaled_thread): New function.
2111 (iter_trap): Delete, no longer used.
2112 (iter_tid): New function.
2113 (pd_update): Find the thread that received the SIGTRAP signal
2114 by first locating the kernel thread, and then finding its
2115 associated thread.
2116
bf0d233d
UW
21172004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2118
2119 * lin-lwp.c (child_wait): Continue inferior after processing
2120 PTRACE_EVENT_CLONE event.
2121
d0f853e1
NN
21222004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2123
2124 * MAINTAINERS: Add self to Write-After-Approval.
2125
ab14aeb0
JJ
21262004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2127
2128 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2129 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2130
9c8dbfa9
AC
21312004-08-05 Andrew Cagney <cagney@gnu.org>
2132
c8f3ca46
AC
2133 * config/xm-sysv4.h: Delete file.
2134 * config/mips/xm-irix5.h: Delete file.
2135 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2136 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2137 * config/ia64/xm-aix.h: Delete file.
2138 * config/ia64/aix.mh (XM_FILE): Delete.
2139 * config/pa/xm-hppah.h: Delete file.
2140 * config/pa/hpux11w.mh (XM_FILE): Delete.
2141 * config/pa/hpux11.mh (XM_FILE): Delete.
2142 * config/pa/hpux1020.mh (XM_FILE): Delete.
2143 * config/pa/hppahpux.mh (XM_FILE): Delete.
2144
5f7daaff
AC
2145 * config/alpha/xm-alphalinux.h: Delete file.
2146 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2147 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2148 * config/alpha/xm-alphaosf.h: Delete file.
2149 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2150 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2151 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2152 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2153
69babf95
AC
2154 * config/i386/xm-i386v.h: Delete file.
2155 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2156 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2157 * config/i386/xm-i386sco.h: Delete file.
2158 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2159 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2160 * config/i386/xm-i386v4.h: Delete file.
2161 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2162 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2163 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2164 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2165
6f009c8a
AC
2166 * config/vax/xm-vax.h: Delete file.
2167 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2168 * config/vax/xm-vaxult2.h: Delete file.
2169 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2170 * config/vax/vaxult2.mh (XM_FILE): Delete.
2171 * config/vax/xm-vaxult.h: Delete file.
2172 * config/vax/vaxult.mh (XM_FILE): Delete.
2173 * config/vax/xm-vaxbsd.h: Delete file.
2174 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2175
9c8dbfa9
AC
2176 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2177 * gdbarch.h, gdbarch.c: Re-generate.
2178 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2179 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2180 * frame.h: Delete deprecated_read_fp from comments.
2181 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2182 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2183
84367a3e
MK
21842004-08-04 Mark Kettenis <kettenis@gnu.org>
2185
9c8e3411
MK
2186 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2187 trampoline in OpenBSD 3.5-current.
2188
b87bc0d8
MK
2189 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2190 SSE registers.
2191
84367a3e
MK
2192 * Makefile.in: Remove embedded page breaks.
2193
a44bddec
JB
21942004-08-04 Jim Blandy <jimb@redhat.com>
2195
7ab3286f
JB
2196 * regcache.c (regcache_raw_read): Assert that, after calling
2197 target_fetch_registers, the register we're reading is cached.
2198
a44bddec
JB
2199 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2200 a call to 'internal_error', with a more helpful error message.
2201 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2202 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2203
35124113
AC
22042004-08-04 Andrew Cagney <cagney@gnu.org>
2205
2206 * Makefile.in: Update dependencies.
2207
9f643768
JB
22082004-08-04 Jim Blandy <jimb@redhat.com>
2209
6ced10dd
JB
2210 Change the layout of the PowerPC E500 raw register cache to allow
2211 the lower 32-bit halves of the GPRS to be their own raw registers,
2212 not pseudoregisters.
2213 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2214 add ppc_ev0_upper_regnum flag.
2215 * rs6000-tdep.c: #include "reggroups.h".
2216 (spe_register_p): Recognize the ev upper half registers as SPE
2217 registers.
2218 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2219 registers.
2220 (e500_move_ev_register): New function.
2221 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2222 vector registers are the pseudo-registers now, formed by splicing
2223 together the gprs and the upper-half registers.
2224 (e500_register_reggroup_p): New function.
2225 (P): Macro deleted.
2226 (P8, A4): New macro.
2227 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2228 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2229 macros.
2230 (registers_e500): Rearrange register set so that the raw register
2231 set contains 32-bit GPRs and upper-half registers, and the SPE
2232 vector registers become pseudo-registers.
2233 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2234 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2235 register numbers are now the same for the E500 as they are for
2236 other PowerPC variants. Register e500_register_reggroup_p as the
2237 register group function for the E500.
2238 * Makefile.in (rs6000-tdep.o): Update dependencies.
2239
2240 Adapt PPC E500 native support to the new raw regcache layout.
2241 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2242 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2243 (fetch_spe_register, store_spe_register): Handle fetching/storing
2244 all the SPE registers at once, if regno == -1. These now take
2245 over the job of fetch_spe_registers and store_spe_registers.
2246 (fetch_spe_registers, store_spe_registers): Deleted.
2247 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2248 unconditionally; they're always raw. Fetch/store SPE upper half
2249 registers, if present, instead of ev registers.
2250 (fetch_register, store_register): Remove sanity checks: gprs are
2251 never pseudo-registers now, so we never need to even mention any
2252 registers that are ever pseudoregisters.
2253
9f643768
JB
2254 Use a fixed register numbering when communicating with the PowerPC
2255 simulator.
2256 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2257 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2258 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2259 New functions.
2260 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2261 init_sim_regno_table.
2262 * Makefile.in (gdb_sim_ppc_h): New variable.
2263 (rs6000-tdep.o): Update dependencies.
2264
1e2279c8
AC
22652004-08-02 Andrew Cagney <cagney@gnu.org>
2266
1d94326f
AC
2267 * cris-tdep.c (cris_register_size): Restore function, still used
2268 locally.
2269
331ae7ed
AC
2270 * gdbarch.sh (deprecated_target_read_fp)
2271 (deprecated_frame_locals_address, deprecated_frame_args_address)
2272 (deprecated_frame_chain_valid, deprecated_frame_chain)
2273 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2274 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2275 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2276 * gdbarch.h, gdbarch.c: Re-generate.
2277 * regcache.c (deprecated_read_fp): Do not call
2278 DEPRECATED_TARGET_READ_FP_P.
2279 * infcmd.c (default_print_registers_info): Do not call
2280 DEPRECATED_DO_REGISTERS_INFO.
2281 * frame-base.c (default_frame_locals_address): Do not call
2282 DEPRECATED_FRAME_LOCALS_ADDRESS.
2283 (default_frame_args_address): Do not call
2284 DEPRECATED_FRAME_ARGS_ADDRESS.
2285
1e2279c8
AC
2286 * gdbarch.sh (deprecated_register_raw_size)
2287 (deprecated_register_virtual_size:int): Delete.
2288 * gdbarch.h, gdbarch.c: Re-generate.
2289 * cris-tdep.c (cris_register_size): Delete.
2290 (cris_gdbarch_init): Update.
2291 * alpha-tdep.c (alpha_register_raw_size)
2292 (alpha_register_virtual_size): Delete.
2293 (alpha_gdbarch_init): Update.
2294
a90c06b4
AC
2295 * gdbarch.sh (deprecated_register_virtual_type)
2296 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2297 (deprecated_dummy_write_sp): Delete.
2298 * gdbarch.h, gdbarch.c: Re-generate.
2299
f42accbe
AC
2300 * gdbarch.sh (deprecated_register_bytes): Delete.
2301 * gdbarch.h, gdbarch.c: Re-generate.
2302 * regcache.c (deprecated_register_bytes): New function.
2303 * regcache.h (deprecated_register_bytes): Declare.
2304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2305 * v850-tdep.c (v850_gdbarch_init): Update.
2306 * sh64-tdep.c (sh64_gdbarch_init): Update.
2307 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2309 * mcore-tdep.c (mcore_gdbarch_init): Update.
2310 * cris-tdep.c (cris_gdbarch_init): Update.
2311 * arm-tdep.c (arm_gdbarch_init): Update.
2312 * remote.c (init_remote_state): Update.
2313 * remote-vx.c (vx_prepare_to_store): Update.
2314 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2315 * irix5-nat.c (fetch_core_registers): Update.
2316 * cris-tdep.c (cris_register_bytes_ok): Update.
2317 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2318
45c9dd44
AC
2319 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2320 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2321 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2322 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2323 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2324 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2325 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2326 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2327 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2328 with mips_insn16 and mips_insn32.
2329
3acba339
AC
2330 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2331 * rs6000-tdep.c (rs6000_push_dummy_call)
2332 (rs6000_extract_return_value): Use register_size.
2333 * xstormy16-tdep.c (xstormy16_get_saved_register)
2334 (xstormy16_extract_return_value): Ditto.
2335 * valops.c (value_assign): Ditto.
2336 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2337 * v850-tdep.c (v850_extract_return_value): Ditto.
2338 * tracepoint.c (collect_symbol): Ditto.
2339 * target.c (debug_print_register): Ditto.
2340 * stack.c (frame_info): Ditto.
2341 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2342 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2343 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2344 (store_register_using_P): Ditto.
2345 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2346 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2347 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2348 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2349 * regcache.c (deprecated_read_register_bytes)
2350 (deprecated_write_register_bytes, read_register)
2351 (write_register): Ditto.
2352 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2353 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2354 * monitor.c (monitor_supply_register, monitor_fetch_register)
2355 (monitor_store_register): Ditto.
2356 * mn10300-tdep.c (mn10300_pop_frame_regular)
2357 (mn10300_print_register): Ditto.
2358 * mipsv4-nat.c (fill_fpregset): Ditto.
2359 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2360 (mips64_fill_fpregset): Ditto.
2361 * mi/mi-main.c (register_changed_p, get_register)
2362 (mi_cmd_data_write_register_values): Ditto.
2363 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2364 * irix5-nat.c (fill_gregset, fetch_core_registers):
2365 * infrun.c (write_inferior_status_register): Ditto.
2366 * infptrace.c (fetch_register, store_register): Ditto.
2367 * infcmd.c (default_print_registers_info): Ditto.
2368 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2369 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2370 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2371 * hpux-thread.c (hpux_thread_fetch_registers)
2372 (hpux_thread_store_registers): Ditto.
2373 * hppah-nat.c (store_inferior_registers, fetch_register):
2374 * findvar.c (value_from_register): Ditto.
2375 * dve3900-rom.c (fetch_bitmapped_register):
2376 * cris-tdep.c (cris_gdbarch_init): Ditto.
2377 * alpha-tdep.h: Ditto.
2378 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2379
01e1877c
AC
2380 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2381 DEPRECATED_REGISTER_RAW_SIZE from comments.
2382 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2383 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2384 DEPRECATED_REGISTER_RAW_SIZE.
2385 * findvar.c (value_of_register): Simplify by assuming that the
2386 registers raw and virtual sizes are identical.
2387 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2388 comment.
2389 * arch-utils.c (generic_register_size): Simplify by assuming
2390 register_type.
2391
73f458fb
AC
2392 * regcache.c (legacy_read_register_gen, real_register)
2393 (legacy_write_register_gen): Delete, not used.
2394
336a3131
AC
2395 * regcache.c (struct regcache_descr): Delete legacy_p.
2396 (init_legacy_regcache_descr): Delete function.
2397 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2398 Do not use deprecated register functions.
2399 (regcache_raw_read, deprecated_write_register_gen):
2400 (deprecated_read_register_gen, regcache_raw_write): Delete code
2401 predicated on legacy_p.
2402 (register_size): Delete check against register raw size.
2403
c1d546cd
AC
2404 * cris-tdep.c (cris_register_type): Replace
2405 cris_register_virtual_type.
2406 (cris_gdbarch_init): Update, set register_type.
2407
48c2c0a6
AC
2408 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2409 * gdbarch.h, gdbarch.c: Re-generate.
2410 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2411 (arm_gdbarch_init) Do not set frameless function invocation.
2412 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2413 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2414 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2415 (frv_gdbarch_init): Do not set frameless function invocation.
2416 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2417 * sh-tdep.c (sh_gdbarch_init): Ditto.
2418 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2420 * avr-tdep.c (avr_gdbarch_init): Ditto.
2421
474093a6
AC
2422 * blockframe.c (legacy_frame_chain_valid): Delete function.
2423
3c109c8b
AC
2424 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2425 and pc. Update comments.
2426 (pc_in_dummy_frame): Delete function.
2427 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2428 use the "id".
2429 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2430 call_hi, top and pc, use the id.
2431 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2432
96860204
AC
2433 * dummy-frame.c: Include "gdb_string.h".
2434 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2435 (generic_save_dummy_frame_tos): Delete.
2436 (dummy_frame_push): New function, replaces above.
2437 * dummy-frame.h: Update copyright.
2438 (dummy_frame_push): Declare.
2439 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2440 (generic_save_call_dummy_addr): Delete declarations.
2441 * infcall.c: Include "dummy-frame.h".
2442 (call_function_by_hand): Add locals caller_regcache,
2443 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2444 with call to frame_save_as_regcache plus cleanup. Delete calls to
2445 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2446 Move clear_proceed_status to just before the resume, add call to
2447 dummy_frame_push (discard cleanup).
2448 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2449 (dummy-frame.o): Add $(gdb_string_h).
2450
d67ec5db
AC
24512004-08-01 Andrew Cagney <cagney@gnu.org>
2452
2453 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2454 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2455 * dummy-frame.c (find_dummy_frame): Delete.
2456 (struct dummy_frame_cache, dummy_frame_sniffer)
2457 (dummy_frame_prev_register, dummy_frame_this_id)
2458 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2459 frame unwinder using a dummy_frame_cache.
2460
a81dcb05
AC
24612004-08-01 Andrew Cagney <cagney@gnu.org>
2462
2463 * frame.h (frame_save_as_regcache): Declare.
2464 * frame.c (frame_save_as_regcache): New function.
2465 (do_frame_read_register): Replace do_frame_unwind_register.
2466 (frame_pop): Use frame_save_as_regcache.
2467 * dummy-frame.c (generic_push_dummy_frame): Use
2468 frame_save_as_regcache.
2469
aa495d11
JB
24702004-08-01 Joel Brobecker <brobecker@gnat.com>
2471
2472 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2473 file as included until we record the first line in the linetable.
2474
ff65ac78
AC
24752004-08-01 Andrew Cagney <cagney@gnu.org>
2476
2477 * frame.h (deprecated_pop_dummy_frame)
2478 (deprecated_read_register_dummy)
2479 (deprecated_generic_find_dummy_frame): Delete.
2480 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2481 (deprecated_read_register_dummy)
2482 (deprecated_find_dummy_frame_regcache)
2483 (discard_innermost_dummy)
2484 (deprecated_pop_dummy_frame): Delete.
2485 (dummy_frame_this_id): Simplify.
2486 (struct dummy_frame): Delete "fp" and "sp".
2487 (find_dummy_frame): Simplify.
2488 (generic_push_dummy_frame): Do not set "fp" or "sp".
2489 (fprint_dummy_frames): Do not print "fp" and "sp"
2490
37bdc87e
MK
24912004-08-01 Mark Kettenis <kettenis@gnu.org>
2492
2493 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2494 (struct i386_insn): New structure.
2495 (i386_match_insn): New function.
2496 (i386_frame_setup_skip_insns): New variable.
2497 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2498 array i386_frame_setup_insns of instructions that should be
2499 skipped inside the frame setup sequence.
2500
8241eaa6
AC
25012004-08-01 Andrew Cagney <cagney@gnu.org>
2502
5bc602c7
AC
2503 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2504 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2505 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2506 * stack.c (frame_info): Delete references to
2507 DEPRECATED_FRAME_INIT_SAVED_REGS and
2508 deprecated_get_frame_saved_regs.
2509 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2510 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2511 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2512 (frame_unwind_register_signed)
2513 (frame_unwind_register_unsigned)
2514 (frame_unwind_unsigned_register): Use register_size.
2515 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2516 (deprecated_frame_xmalloc_with_cleanup)
2517 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2518 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2519
03d363a1
AC
2520 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2521 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2522 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2523 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2524
8241eaa6
AC
2525 * infcall.c (call_function_by_hand): Do not use
2526 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2527 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2528 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2529 DEPRECATED_STACK_ALIGN.
2530
f00df8b7
AC
25312004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2532
2533 Committed by Andrew Cagney.
2534 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2535
eec63939
AC
25362004-08-01 Andrew Cagney <cagney@gnu.org>
2537
2538 * mips-tdep.c (mips16_frame_cache)
2539 (mips16_frame_this_id, mips16_frame_prev_register)
2540 (mips16_frame_unwind, mips16_frame_sniffer)
2541 (mips16_frame_base_address, mips16_frame_base)
2542 (mips16_frame_base_sniffer, mips32_frame_cache)
2543 (mips32_frame_this_id, mips32_frame_prev_register)
2544 (mips32_frame_unwind, mips32_frame_sniffer)
2545 (mips32_frame_base_address, mips32_frame_base)
2546 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2547 separate heuristic mips16 and mips32 unwinders.
2548 (mips_stub_frame_cache, mips_stub_frame_this_id)
2549 (mips_stub_frame_prev_register)
2550 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2551 (mips_stub_frame_base_address, mips_stub_frame_base)
2552 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2553 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2554 match true mdebug frames.
2555 (non_heuristic_proc_desc): Add forward declaration.
2556
e66299b3
AC
25572004-08-01 Andrew Cagney <cagney@gnu.org>
2558
83cbbf3e
AC
2559 * config/mips/tm-irix6.h: Delete file.
2560 * config/mips/tm-irix5.h: Delete file.
2561 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2562 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2563
22d41b37
AC
2564 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2565 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2566 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2567 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2568 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2569 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2570 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2571 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2572 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2573 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2574 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2575 (TARGET_SIGNAL_RAW_VALUES): Delete.
2576 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2577 Delete.
2578 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2579 (TARGET_HW_WATCH_LIMIT): Delete.
2580 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2581 * minimon.h: Delete file.
2582
e66299b3
AC
2583 * trad-frame.c (trad_frame_get_this_base)
2584 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2585 functions.
2586 * trad-frame.h (trad_frame_set_this_base)
2587 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2588
1f67027d
AC
25892004-07-31 Andrew Cagney <cagney@gnu.org>
2590
2591 * trad-frame.c (trad_frame_get_prev_register): Rename
2592 trad_frame_get_prev_register.
2593 * vax-tdep.c (vax_frame_prev_register): Update.
2594 * trad-frame.h: Update.
2595 * trad-frame.c (trad_frame_get_register): Update.
2596 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2597 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2598 Update.
2599 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2600 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2601 Update.
2602 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2603 Update.
2604 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2605 Update.
2606 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2607 Update.
2608 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2609 Update.
2610 * s390-tdep.c (s390_frame_prev_register)
2611 (s390_stub_frame_prev_register)
2612 (s390_sigtramp_frame_prev_register): Update.
2613 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2614 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2615 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2616 * m88k-tdep.c (m88k_frame_prev_register)
2617 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2618 * m32r-tdep.c (m32r_frame_prev_register): Update.
2619 * hppa-tdep.c (hppa_frame_prev_register_helper)
2620 * frv-tdep.c (frv_frame_prev_register): Update.
2621 * d10v-tdep.c (d10v_frame_prev_register): Update.
2622 * cris-tdep.c (cris_frame_prev_register): Update.
2623 * avr-tdep.c (avr_frame_prev_register): Update.
2624 * arm-tdep.c (arm_prologue_prev_register)
2625 (arm_sigtramp_prev_register): Update.
2626
c1bf6f65
AC
26272004-07-31 Andrew Cagney <cagney@gnu.org>
2628
2629 * frame.h (legacy_saved_regs_unwind)
2630 (legacy_frame_chain_valid, legacy_frame_p)
2631 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2632 * dummy-frame.c (dummy_frame_this_id): Simplify.
2633 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2634 * frame.c (struct frame_info): Delete the field "type".
2635 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2636 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2637 (legacy_saved_regs_unwind, legacy_frame_p)
2638 (frame_type_from_pc): Delete.
2639 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2640 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2641
dc856692
MK
26422004-07-31 Mark Kettenis <kettenis@gnu.org>
2643
5a5effe1
MK
2644 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2645 indentation.
2646
d4fd50a6
MK
2647 * mips-nat.c: Remove file.
2648 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2649 (mips-nat.o): Remove dependency.
2650
2689df5a
MK
2651 * infptrace.c: Update copyright year.
2652 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2653 explicitly setting the buffer to all zeroes.
2654
dc856692
MK
2655 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2656 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2657
763910e0
AC
26582004-07-30 Andrew Cagney <cagney@gnu.org>
2659
2660 * GDB 6.2 released from gdb_6_2-branch.
2661
0b66e38c
EZ
26622004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2663
2664 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2665
2666 * exec.c (exec_file_attach):
2667 * nto-tdep.c (nto_find_and_open_solib):
2668 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2669 * solib.c (solib_open):
2670 * somsolib.c (som_solib_sizeof_symbol_table):
2671 * source.c (is_regular_file, openp, open_source_file):
2672 * symfile.c (symfile_bfd_open):
2673 * wince.c (upload_to_device): Differentiate between the search for
2674 binary and source files.
2675
be7d7357
AC
26762004-07-30 Andrew Cagney <cagney@gnu.org>
2677
2678 * complaints.c (_initialize_complaints): Pass NULL to
2679 add_setshow_zinteger_cmd for help_doc.
2680 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2681
ddc9cd0f
AC
26822004-07-30 Andrew Cagney <cagney@gnu.org>
2683
2684 Fix PR i18n/761.
2685 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2686 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2687 $(PACKAGE).pot and update-po.
2688 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2689 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2690 (update-po): New rules.
2691 (localedir): Define using autoconf.
2692 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2693 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2694 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2695 * configure.in: Generate CATALOGS and LINGUAS from contents of
2696 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2697 * configure: Re-generate.
2698 * po/gdbtext: New file
2699
e92f3704
JG
27002004-07-30 Jerome Guitton <guitton@gnat.com>
2701
2702 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2703 order.
2704
b0f35d58
DL
27052004-07-30 David Lecomber <dsl@sources.redhat.com>
2706
2707 * dwarf2read.c (read_file_scope): Set producer if attribute
2708 present.
2709 (struct dwarf2_cu): Added new member producer.
2710
ce7d4522
JG
27112004-07-30 Jerome Guitton <guitton@gnat.com>
2712
2713 * inflow.c (kill_command): release file handles in BFD.
2714 * exec.c (exec_file_attach): Ditto.
2715 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2716
05ee07c7
AC
27172004-07-29 Andrew Cagney <cagney@gnu.org>
2718
2719 * PROBLEMS (mips-irix): Note that it is broken.
2720
62eceb47
AC
27212004-07-29 Andrew Cagney <cagney@gnu.org>
2722
e57b8d41
AC
2723 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2724 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2725
d334389b
AC
2726 * config/xm-nbsd.h: Delete file.
2727 * config/arm/xm-nbsd.h: Delete file.
2728 * config/i386/xm-nbsd.h: Delete file.
2729 * config/ns32k/xm-nbsd.h: Delete file.
2730 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2731 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2732 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2733 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2734 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2735
e910f676
AC
2736 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2737 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2738 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2739 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2740 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2741 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2742
6fa856b9
AC
2743 * config/powerpc/xm-linux.h: Delete empty file.
2744 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2745 * config/powerpc/linux.mh (XM_FILE): Delete.
2746 * config/m68k/xm-linux.h: Delete empty file.
2747 * config/m68k/linux.mh (XM_FILE): Delete.
2748 * config/ia64/xm-linux.h: Delete empty file.
2749 * config/ia64/linux.mh (XM_FILE): Delete.
2750 * config/arm/xm-linux.h: Delete empty file.
2751 * config/arm/linux.mh (XM_FILE): Delete.
2752
471ae5ae
AC
2753 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2754 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2755 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2756 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2757 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2758 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2759 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2760 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2761
62eceb47
AC
2762 * config/m68k/xm-m68k.h: Delete file.
2763 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2764 copyright.
2765 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2766 * config/pa/xm-linux.h: Delete empty file.
2767 * config/pa/linux.mh (XM_FILE): Delete.
2768 * config/i386/xm-i386.h: Delete empty file.
2769 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2770 "i386/xm-i386.h".
2771 * config/i386/obsdaout.mh (XM_FILE): Delete.
2772 * config/i386/obsd64.mh (XM_FILE): Delete.
2773 * config/i386/fbsd64.mh (XM_FILE): Delete.
2774 * config/i386/nto.mh (XM_FILE): Delete.
2775 * config/i386/obsd.mh (XM_FILE): Delete.
2776 * config/i386/linux64.mh (XM_FILE): Delete.
2777 * config/i386/linux.mh (XM_FILE): Delete.
2778 * config/i386/i386sol2.mh (XM_FILE): Delete.
2779 * config/i386/i386gnu.mh (XM_FILE): Delete.
2780 * config/i386/fbsd.mh (XM_FILE): Delete.
2781 * config/i386/nbsd64.mh (XM_FILE): Delete.
2782
c35f4ffc
AC
27832004-07-29 Andrew Cagney <cagney@gnu.org>
2784
2785 * config/pa/xm-linux.h: Do not include "floatformat.h".
2786 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2787 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2788 * config/i386/xm-i386.h: Do not include "floatformat.h".
2789 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2790 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2791 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2792 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2793 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2794 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2795 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2796 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2797 * configure, config.in: Regenerate.
2798 * configure.host (gdb_host_float_format, gdb_host_double_format)
2799 (gdb_host_long_double_format): Set according to the host.
2800
624a44a3
AC
28012004-07-29 Andrew Cagney <cagney@gnu.org>
2802
2803 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2804
0dea2468
AC
28052004-07-28 Andrew Cagney <cagney@gnu.org>
2806
2807 * PROBLEMS: Mention threads/1650.
2808 * NEWS: Mention the NPTL fix.
2809
b3f42336
AC
28102004-07-28 Andrew Cagney <cagney@gnu.org>
2811
2812 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2813 (add_setshow_cmd_full): Make static.
2814 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2815 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2816 * cli/cli-decode.c (add_setshow_filename_cmd)
2817 (add_setshow_string_cmd): New functions.
2818 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2819 * mips-tdep.c (_initialize_mips_tdep): Update.
2820 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2821 * cli/cli-logging.c (_initialize_cli_logging): Update.
2822 * complaints.c (_initialize_complaints): Update.
2823 * remote.c (_initialize_remote): Update.
2824
3b64bf98
AC
28252004-07-28 Andrew Cagney <cagney@gnu.org>
2826
2827 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2828 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2829 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2830 print parameters. Make string parameters constant.
2831 * command.h: Update. Update copyright.
2832 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2833 * observer.c (_initialize_observer): Ditto.
2834 * frame.c (_initialize_frame): Ditto.
2835 * complaints.c (_initialize_complaints): Ditto.
2836 * maint.c (_initialize_maint_cmds): Ditto.
2837 * target.c (initialize_targets): Ditto.
2838 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2839 * infcall.c (_initialize_infcall): Ditto.
2840 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2841 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2842 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2843 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2844 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2845
e9667a65
AC
28462004-07-28 Andrew Cagney <cagney@gnu.org>
2847
54a5b07d
AC
2848 * gdbtypes.c (lookup_primitive_typename): Delete function.
2849 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2850 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2851 * gdbtypes.c (lookup_typename): Ditto.
2852 * f-exp.y (yylex): Ditto.
2853 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2854
e9667a65
AC
2855 * scm-lang.c (c_builtin_types): Delete extern declaration.
2856 (scm_language_defn): Replace
2857 string_char_type and primitive_type_vector with
2858 la_language_arch_info.
2859 * jv-lang.c (java_language_defn): Replace
2860 string_char_type and primitive_type_vector with
2861 la_language_arch_info.
2862 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2863 c_builtin_types in comment.
2864 * c-lang.h (struct language_arch_info): Declare opaque.
2865 (c_language_arch_info): Declare.
2866 (c_builtin_types): Delete declaration.
2867 * c-lang.c (c_language_arch_info): Set string_char_type to
2868 builtin_char, not builtin_true_char. Make global.
2869 (c_builtin_types): Delete array.
2870 (asm_language_defn, minimal_language_defn): Replace
2871 string_char_type and primitive_type_vector with
2872 la_language_arch_info.
2873
685419e2
AC
28742004-07-28 Andrew Cagney <cagney@gnu.org>
2875
2876 * gdbtypes.h (struct builtin_type): Rename true_char to
2877 builtin_true_char.
2878 * gdbtypes.c (gdbtypes_post_init): Update.
2879 * c-lang.c (arch_info): New function.
2880 (enum c_primitive_types): New enum.
2881 (c_language_defn): Instead of string_char_type and
2882 primitive_type_vector set la_language_arch_info.
2883
5a44ea29
AC
28842004-07-28 Andrew Cagney <cagney@gnu.org>
2885
2886 * language.h (struct language_arch_info): Fix typo
2887 s/primative/primitive/.
2888 * gdbtypes.c (lookup_primitive_typename): Ditto.
2889 * language.c (language_lookup_primitive_type_by_name)
2890 (unknown_language_arch_info): Ditto.
2891
f290d38e
AC
28922004-07-27 Andrew Cagney <cagney@gnu.org>
2893
2894 * defs.h (enum language): Add nr_languages.
2895 * language.h (struct language_arch_info): Define.
2896 (struct language_defn): Add la_language_arch_info.
2897 (language_lookup_primative_type_by_name): Declare.
2898 (language_string_char_type): Declare.
2899 * language.c (_initialize_language, language_gdbarch_post_init)
2900 (struct language_gdbarch, language_gdbarch_data): Implement
2901 per-architecture language information.
2902 (unknown_language_arch_info, language_string_char_type)
2903 (language_lookup_primative_type_by_name): New functions.
2904 (unknown_language_defn, auto_language_defn)
2905 (local_language_defn): Set la_language_arch_info to
2906 unknown_language_arch_info.
2907 (unknown_builtin_types): Delete.
2908 * gdbtypes.c (lookup_primitive_typename): Use
2909 language_lookup_primative_type_by_name.
2910 (create_string_type): Use language_string_char_type.
2911 * values.c (value_from_string): Use language_string_char_type.
2912 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2913 * p-lang.c (pascal_language_defn): Ditto.
2914 * m2-lang.c (m2_language_defn): Ditto.
2915 * jv-lang.c (java_language_defn): Ditto.
2916 * objc-lang.c (objc_language_defn): Ditto.
2917 * f-lang.c (f_language_defn): Ditto.
2918 * c-lang.c (c_language_defn, cplus_language_defn)
2919 (asm_language_defn, minimal_language_defn): Ditto.
2920
000177f0
AC
29212004-07-27 Andrew Cagney <cagney@gnu.org>
2922
2923 * gdbtypes.h (struct builtin_type): Declare.
2924 (builtin_type): Declare.
2925 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2926 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2927 (gdbtypes_post_init): New function.
2928 (builtin_type): New function.
2929
e22f895c
KI
29302004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2931
2932 * remote-m32r-sdi.c: Fix breakpoint bug.
2933 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2934 recv_char_data, recv_long_data): New functions to replace communication
2935 sequences.
2936
536517dd
MC
29372004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2938
2939 Document PR threads/1650.
2940 * PROBLEMS (Threads): Document problem with many threads
2941
a0a44d18
AC
29422004-07-26 Andrew Cagney <cagney@gnu.org>
2943
2944 * gdb-mi.el: Move from here ...
2945 * mi/gdb-mi.el: ... to here.
2946
7ac4ac06
AC
29472004-07-26 Andrew Cagney <cagney@gnu.org>
2948
2949 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2950 * main.c (captured_main): When in batch mode always detach.
2951
a1b461bf
AC
29522004-07-26 Andrew Cagney <cagney@gnu.org>
2953
2954 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2955 and h8300 as broken.
2956 * NEWS: END-OF-LIFE frame compatibility module.
2957 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2958 specific comments.
2959
cb1a6d5f
AC
29602004-07-26 Andrew Cagney <cagney@gnu.org>
2961
2962 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2963 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2964 * wince.c (_initialize_wince): Update.
2965 * win32-nat.c (_initialize_win32_nat): Update.
2966 * varobj.c (_initialize_varobj): Update.
2967 * valops.c (_initialize_valops): Update.
2968 * utils.c (initialize_utils, initialize_utils): Update.
2969 * tui/tui-win.c (_initialize_tui_win): Update.
2970 * top.c (init_main): Update.
2971 * symfile.c (_initialize_symfile): Update.
2972 * source.c (_initialize_source): Update.
2973 * somsolib.c (_initialize_som_solib): Update.
2974 * solib.c (_initialize_solib): Update.
2975 * solib-frv.c (_initialize_frv_solib): Update.
2976 * serial.c (_initialize_serial): Update.
2977 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2978 * remote.c (_initialize_remote, _initialize_remote): Update.
2979 * remote-vx.c (_initialize_vx): Update.
2980 * remote-utils.c (_initialize_sr_support): Update.
2981 * remote-sds.c (_initialize_remote_sds): Update.
2982 * remote-mips.c (_initialize_remote_mips): Update.
2983 * remote-e7000.c (_initialize_remote_e7000): Update.
2984 * proc-api.c (_initialize_proc_api): Update.
2985 * printcmd.c: Update.
2986 * parse.c (_initialize_parse): Update.
2987 * pa64solib.c (_initialize_pa64_solib): Update.
2988 * p-valprint.c (_initialize_pascal_valprint): Update.
2989 * monitor.c (_initialize_remote_monitors): Update.
2990 * mips-tdep.c (_initialize_mips_tdep): Update.
2991 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2992 * maint.c (_initialize_maint_cmds): Update.
2993 * lin-lwp.c (_initialize_lin_lwp): Update.
2994 * language.c (_initialize_language): Update.
2995 * kod.c (_initialize_kod): Update.
2996 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2997 * i386-tdep.c (_initialize_i386_tdep): Update.
2998 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2999 * gdbarch.sh: Update.
3000 * gdbarch.c: Re-generate.
3001 * gdb-events.sh: Update.
3002 * gdb-events.c: Re-generate.
3003 * frame.c (_initialize_frame): Update.
3004 * exec.c: Update.
3005 * demangle.c (_initialize_demangler): Update.
3006 * dcache.c (_initialize_dcache): Update.
3007 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3008 * cp-valprint.c (_initialize_cp_valprint): Update.
3009 * corefile.c (_initialize_core): Update.
3010 * command.h: Update.
3011 * cli/cli-decode.h: Update.
3012 * cli/cli-cmds.c (init_cli_cmds): Update.
3013 * charset.c (_initialize_charset): Update.
3014 * breakpoint.c (_initialize_breakpoint): Update.
3015 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3016 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3017 * aix-thread.c (_initialize_aix_thread): Update.
3018
b4632131
MK
30192004-07-24 Mark Kettenis <kettenis@gnu.org>
3020
3021 Partial fix for PR backtrace/1718.
3022 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3023 that GCC migrates into the prolugue. Don't handle any
3024 instructions that clobber %ebx.
3025
822c9732
AC
30262004-07-23 Andrew Cagney <cagney@gnu.org>
3027
3028 Use regcache_raw_collect instead of regcache_collect.
3029 * regcache.h (regcache_collect): Delete declaration.
3030 * regcache.c (regcache_colect): Delete function.
3031 * win32-nat.c (do_child_store_inferior_registers): Update.
3032 * sol-thread.c (sol_thread_store_registers): Update.
3033 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3034 * rs6000-nat.c (store_register): Update.
3035 * remote.c (store_register_using_P, remote_store_registers): Update.
3036 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3037 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3038 (fill_vrregset, store_spe_registers, fill_gregset)
3039 (fill_gregset): Update.
3040 * nto-procfs.c (procfs_store_registers): Update.
3041 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3042 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3043 * m68klinux-nat.c (store_register, fill_gregset): Update.
3044 * m68k-tdep.c (fill_gregset): Update.
3045 * infptrace.c (store_register): Update.
3046 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3047 * i386-linux-nat.c (store_register, fill_gregset): Update.
3048 * hppa-linux-nat.c (fill_gregset): Update.
3049 * go32-nat.c (store_register): Update.
3050 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3051 (store_fp_regs): Update.
3052 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3053 (store_nwfpe_extended, store_fpregister, store_fpregs)
3054 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3055 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3056 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3057 (store_regs_user_thread, store_regs_kernel_thread): Update.
3058
32b05c07
MK
30592004-07-24 Mark Kettenis <kettenis@gnu.org>
3060
3061 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3062 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3063 encoding.
3064 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3065 member of `struct comp_unit'.
3066
8567c30f
AC
30672004-07-23 Andrew Cagney <cagney@gnu.org>
3068
3069 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3070 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3071
f6da8dd8
MH
30722004-07-23 Martin Hunt <hunt@redhat.com>
3073 Kevin Buettner <kevinb@redhat.com>
3074
3075 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3076 alignment was being added to the offset instead of multiplied.
3077
bd921882
MK
30782004-07-23 Mark Kettenis <kettenis@gnu.org>
3079
24f033e8
MK
3080 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3081 changed signal trampoline in OpenBSD 3.5-current.
3082
90f3cecd
MK
3083 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3084 <machine/pcb.h> and "bsd-kvm.h".
3085 (sparc64nbsd_supply_pcb): New function.
3086 (_initialize_sparc64nbsd_nat): Renamed from
3087 _initialize_sparcnbsd_nat. Enable libkvm interface.
3088 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3089 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3090 (LOADLIBES): New variable.
3091
a4954a62
MK
3092 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3093
bd921882
MK
3094 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3095
23a6d369
AC
30962004-07-21 Andrew Cagney <cagney@gnu.org>
3097
3098 Use regcache_raw_supply instead of supply_register.
3099 * regcache.h (supply_register): Delete declaration.
3100 * regcache.c (supply_register): Delete function.
3101 * wince.c (do_child_fetch_inferior_registers): Update.
3102 * win32-nat.c (do_child_fetch_inferior_registers)
3103 (fetch_elf_core_registers): Update.
3104 * v850ice.c (v850ice_fetch_registers): Update.
3105 * thread-db.c (thread_db_store_registers): Update.
3106 * sol-thread.c (sol_thread_store_registers): Update.
3107 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3108 * rs6000-nat.c (fetch_register): Update.
3109 * rom68k-rom.c (rom68k_supply_one_register): Update.
3110 * remote.c (remote_wait, remote_async_wait): Update.
3111 * remote-st.c (get_hex_regs): Update.
3112 * remote-sim.c (gdbsim_fetch_register): Update.
3113 * remote-sds.c (sds_fetch_registers): Update.
3114 * remote-rdp.c (remote_rdp_fetch_register): Update.
3115 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3116 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3117 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3118 * remote-hms.c (init_hms_cmds): Update.
3119 * remote-est.c (init_est_cmds): Update.
3120 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3121 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3122 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3123 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3124 (fetch_register, supply_vrregset, supply_vrregset)
3125 (fetch_spe_registers): Update.
3126 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3127 * monitor.c (monitor_supply_register): Update.
3128 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3129 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3130 (mipsnbsd_supply_fpreg): Update.
3131 * mips-nat.c (fetch_inferior_registers)
3132 (fetch_core_registers): Update.
3133 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3134 (supply_fpregset, mips64_supply_gregset)
3135 (mips64_supply_fpregset): Update.
3136 * m68klinux-nat.c (fetch_register, supply_gregset)
3137 (supply_fpregset): Update.
3138 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3139 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3140 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3141 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3142 * infptrace.c (fetch_register): Update.
3143 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3144 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3145 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3146 (gnu_fetch_registers, gnu_store_registers): Update.
3147 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3148 * i386-linux-nat.c (fetch_register, supply_gregset)
3149 (dummy_sse_values): Update.
3150 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3151 * hppah-nat.c (fetch_register): Update.
3152 * hppa-linux-nat.c (fetch_register, supply_gregset)
3153 (supply_fpregset): Update.
3154 * go32-nat.c (fetch_register): Update.
3155 * dve3900-rom.c (fetch_bitmapped_register)
3156 (_initialize_r3900_rom): Update.
3157 * cris-tdep.c (supply_gregset): Update.
3158 * abug-rom.c (init_abug_cmds): Update.
3159 * core-aout.c (fetch_core_registers): Update.
3160 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3161 (fetch_register, fetch_fp_register): Update.
3162 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3163 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3164 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3165 * alphanbsd-tdep.c (fetch_core_registers): Update.
3166 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3167 * alpha-nat.c (fetch_osf_core_registers)
3168 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3169 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3170 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3171
73cc75f3
AC
31722004-07-21 Andrew Cagney <cagney@gnu.org>
3173
3174 * PROBLEMS: Mention breakpoints/1702.
3175 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3176 that is known to work.
3177
a53c66de
AC
31782004-07-21 Andrew Cagney <cagney@gnu.org>
3179
3180 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3181 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3182 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3183 (handle_inferior_event): Wrap call to deprecated
3184 IGNORE_HELPER_CALL in #ifdef.
3185 * config/mips/tm-nbsd.h: Update.
3186
708ff411
JB
31872004-07-20 Jim Blandy <jimb@redhat.com>
3188
412b3060
JB
3189 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3190 bfd_mach_ppc has no segment registers.
3191
13ac140c
JB
3192 Include PowerPC SPR numbers for special-purpose registers.
3193 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3194 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3195 new member in initializer.
3196 (S, S4, SN4, S64): New macros for defining special-purpose
3197 registers.
3198 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3199 registers_403, registers_403GC, registers_505, registers_860,
3200 registers_601, registers_602, registers_603, registers_604,
3201 registers_750, registers_e500): Use them.
3202
708ff411
JB
3203 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3204 replace references with expression used to initialize variable.
3205
1f602b35
AC
32062004-07-20 Andrew Cagney <cagney@gnu.org>
3207
3208 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3209 read_memory_nobpt.
3210 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3211 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3212 (s390_sigtramp_frame_sniffer): Update.
3213 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3214 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3215 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3216 (mips32_fetch_instruction): Update.
3217 * mcore-tdep.c (get_insn): Update.
3218 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3219 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3220 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3221 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3222 (i386_linux_rt_sigtramp_start): Update.
3223 * i386-linux-nat.c (child_resume): Update.
3224 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3225 * hppa-linux-tdep.c (insns_match_pattern): Update.
3226 * gdbcore.h: Update.
3227 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3228 * frame.c (safe_frame_unwind_memory): Update.
3229 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3230 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3231 * alpha-tdep.c (alpha_read_insn): Update.
3232
2cd8546d
AC
32332004-07-20 Andrew Cagney <cagney@gnu.org>
3234
3235 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3236 containing both bytes and mask. Add "frame_type".
3237 * tramp-frame.c (tramp_frame_start): Update.
3238 (tramp_frame_prepend_unwinder): Update.
3239 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3240 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3241 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3242 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3243
f928dd62
EZ
32442004-07-19 Eli Zaretskii <eliz@gnu.org>
3245
3246 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3247 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3248 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3249 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3250
d5c560f7
AC
32512004-07-17 Andrew Cagney <cagney@gnu.org>
3252
860660cb
AC
3253 * NEWS, PROBLEMS: Update for 6.2.
3254
8c266f54
AC
3255 * README: Update to 6.2.
3256
a552edd9
AC
3257 * utils.c (xvasprintf): Call xstrvprintf.
3258
c4a172b5
AC
3259 * parse.c: Update copyright.
3260 (null_post_parser): Eliminate ARGSUSED.
3261
da745b36
AC
3262 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3263 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3264 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3265
9cbc6ef0
AC
3266 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3267 * ppc-linux-nat.c: Use "Linux kernel".
3268 * hppa-linux-tdep.c: Use GNU/Linux.
3269 * hppa-linux-nat.c: Use GNU/Linux.
3270 * dwarfread.c: Add [sic] to use of Linux.
3271
1b89295f
AC
3272 * hppa-linux-nat.c: Do not include <string.h>.
3273 (supply_fpregset): Remove "register" attribute.
3274
d5c560f7
AC
3275 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3276
7ddd7709
MK
32772004-07-17 Mark Kettenis <kettenis@gnu.org>
3278
b1d19a62
MK
3279 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3280 * configure, config.in: Regenerated.
3281
7ddd7709
MK
3282 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3283 "bsd-kvm.h".
3284 (vaxbsd_supply_pcb): New function.
3285 (_initialize_vaxbsd_nat): New prototype and function.
3286 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3287 solib-sunos.o.
3288 (LOADLIBES): New variable.
3289 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3290 (LOADLIBES): New variable.
3291 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3292 (LOADLIBES): New variable.
3293 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3294
2c07db7a
AC
32952004-07-16 Andrew Cagney <cagney@gnu.org>
3296
3297 * defs.h (event_loop_p): Replace variable declaration with macro,
3298 always 1.
3299 * main.c (captured_main): Delete options "-async" and "-noasync".
3300 (event_loop_p): Delete variable.
3301 * NEWS: Mention that "-async" and "-noasync" were removed.
3302
717eb1cf
AC
33032004-07-16 Andrew Cagney <cagney@gnu.org>
3304
3305 * remote-m32r-sdi.c: Re-indent.
3306
c101bc14
JB
33072004-07-16 Jim Blandy <jimb@redhat.com>
3308
5109a438
JB
3309 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3310 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3311 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3312 missing MPC823 SPRs.
3313 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3314 incorrect. (This was corrected in GDB's register name tables on
3315 2004-07-14.)
3316
c101bc14
JB
3317 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3318 should be "esasrr" ("ESA Save and Restore Register").
3319
7ce450bd
AC
33202004-07-16 Andrew Cagney <cagney@gnu.org>
3321
3322 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3323 calls, no longer applicable. Update comments and rename parameter
3324 "step_frame" to "return_frame".
3325
ca73dd9d
AC
33262004-07-16 Andrew Cagney <cagney@gnu.org>
3327
3328 * frame.c (fprint_field): New function.
3329 (fprint_frame_id): Use fprint_field.
3330
31941f6d
JB
33312004-07-15 Joel Brobecker <brobecker@gnat.com>
3332
3333 * ada-lang.c (ada_language_defn): Remove commented out code.
3334
f86a7158
JB
33352004-07-15 Jim Blandy <jimb@redhat.com>
3336
3337 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3338 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3339
c24791ec
JB
33402004-07-14 Jim Blandy <jimb@redhat.com>
3341
29bb1356
JB
3342 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3343
cc98b5cc
JB
3344 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3345
8f088af7
JB
3346 * ppc-tdep.h (ppc_num_srs): New enum constant.
3347
0ea0ec5f
JB
3348 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3349 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3350 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3351 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3352 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3353 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3354 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3355 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3356 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3357 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3358 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3359 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3360 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3361 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3362 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3363 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3364 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3365 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3366 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3367 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3368 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3369 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3370 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3371 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3372 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3373 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3374 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3375 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3376 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3377 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3378 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3379 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3380 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3381 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3382 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3383 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3384 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3385 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3386 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3387 special-purpose register numbers.
3388
c24791ec
JB
3389 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3390 manual mentions 'md_twb', but many mention 'm_twb', and at that
3391 point in the register list.)
3392
d833db3b
AC
33932004-07-14 Andrew Cagney <cagney@gnu.org>
3394
3395 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3396 instead of "internal-error".
3397
080228b2
JB
33982004-07-10 Joel Brobecker <brobecker@gnat.com>
3399
3400 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3401 that was inserted inside a comment.
3402
c268433a
RC
34032004-07-10 Randolph Chung <tausq@debian.org>
3404
3405 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3406 function.
3407 (hppa_hpux_push_dummy_code): New function.
3408 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3409 Set find_global_pointer method.
3410
71009278
MK
34112004-07-10 Mark Kettenis <kettenis@gnu.org>
3412
3413 * NEWS: Mention BSD libkvm interface.
3414
b2fa5097
MS
34152004-07-10 Michael Snyder <msnyder@redhat.com>
3416
3417 * symfile.c (generic_load): Comment typo.
3418 * stack.c (get_selected_block): Ditto.
3419 * regcache.c (regcache_cooked_read): Ditto.
3420 * monitor.c (monitor_debug): Ditto.
3421 * mips-tdep.c (mips_read_pc): Ditto.
3422 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3423 * gdb_mbuild.sh: Ditto.
3424 * gdbarch.sh: Ditto.
3425 * gdbarch.h: Ditto.
3426
c3e5cd34
PH
34272004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3428
8a2225b2
PH
3429 * ada-tasks.c: Remove file.
3430
c3e5cd34
PH
3431 Remove ARI problems:
3432
3433 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3434 beginning of line.
3435
3436 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3437 Add comment.
3438 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3439 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3440 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3441 (UMIN_OF_SIZE): Remove.
3442 (max_of_type): New function to replace orphan macro in gdbtypes.h
3443 (min_of_type): Ditto.
3444 (discrete_type_high_bound): Use max_of_type.
3445 (discrete_type_low_bound): Use min_of_type.
3446 (possible_user_operator_p): Move operator to beginning of line.
3447 (ada_is_variant_part): Ditto.
3448 (ensure_lval): Rewrite to avoid deprecated operations.
3449 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3450 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3451 (ada_enum_name): Remove assignments in 'if' statements.
3452 (build_ada_types): Add gdbarch parameter.
3453 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3454 with gdbarch_data_register_post_init.
3455 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3456 add_show_from_set.
3457
3458 * ada-valprint.c (inspect_it): Remove declaration.
3459 (repeat_count_threshold): Remove declaration.
3460 (ada_print_floating): Remove assignments in 'if' statements.
3461 (print_str): Move operator to beginning of line.
3462
61ce229a
JB
34632004-07-08 Jim Blandy <jimb@redhat.com>
3464
3465 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3466
09bcec80
BR
34672004-07-08 Bob Rossi <bob@brasko.net>
3468
3469 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3470
31c27f77
JJ
34712004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3472
3473 * language.h (struct_language_defn): Add new function pointer:
3474 la_class_name_from_physname. Also add new prototype for
3475 language_class_name_from_physname.
3476 * language.c (language_class_name_from_physname): New function.
3477 (unk_lang_class_name): Ditto.
3478 (unknown_language_defn, auto_language_defn): Change
3479 to add unk_lang_class_name function pointer for
3480 la_class_name_from_physname.
3481 (local_language_defn): Ditto.
3482 * dwarf2read.c (guess_structure_name): Change to call
3483 language_class_name_from_physname.
3484 (determine_class_name): Ditto.
3485 * cp-support.c (class_name_from_physname): Renamed.
3486 (cp_class_name_from_physname): New name of function.
3487 * cp-support.h: Ditto.
3488 * c-lang.c (c_language_defn): Change to add NULL
3489 for class_name_from_physname function pointer.
3490 (cplus_language_defn): Change to add cp_class_name_from_physname.
3491 * jv-lang.c (java_class_name_physname): New function.
3492 (java_find_last_component): New static routine.
3493 (java_language_defn): Add java_class_name_from_physname pointer.
3494 * ada-lang.c (ada_language_defn): Change to add NULL
3495 for class_name_from_physname function pointer.
3496 * f-lang.c (f_language_defn): Ditto.
3497 * m2-lang.c (m2_language_defn): Ditto.
3498 * objc-lang.c (objc_language_defn): Ditto.
3499 * p-lang.c (pascal_language_defn): Ditto.
3500 * scm-lang.c (scm_language_defn): Ditto.
3501
ee28ca0f
AC
35022004-07-06 Andrew Cagney <cagney@gnu.org>
3503
3504 Patch from Bart Robinson.
3505 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3506 (O_LARGEFILE): Define to 0, if not defined.
3507
fdb1bf9d
MK
35082004-07-03 Mark Kettenis <kettenis@gnu.org>
3509
cb162ff6
MK
3510 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3511 <machine/pcb.h> and "bsd-kvm.h".
3512 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3513 (m68kbsd_supply_pcb): New function.
3514 (_initialize_m68kbsd_nat): New prototype and function.
3515 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3516 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3517 (LOADLIBES): New variable.
3518 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3519 (LOADLIBES): New variable.
3520
fdb1bf9d
MK
3521 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3522
963c4174
MK
35232004-07-03 Mark Kettenis <kettenis@gnu.org>
3524
3525 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3526 <sys/proc.h>.
3527 (bsd_kvm_cmdlist): New variable.
3528 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3529 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3530 command and "kvm proc" command.
3531 * Makefile.in (bsd-kvm.o): Update dependencies.
3532
533f1d8f
MK
35332004-07-02 Mark Kettenis <kettenis@gnu.org>
3534
3535 * osabi.c: Update copyright year.
3536 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3537 notes if EI_OSABI is set to ELFOSABI_HPUX.
3538
6780dcde
MS
35392004-07-01 Michael Snyder <msnyder@redhat.com>
3540
3541 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3542 that seems to have gotten whacked out of line.
3543
67bebe79
MK
35442004-07-01 Mark Kettenis <kettenis@gnu.org>
3545
3546 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3547 code.
3548
0b5d8877
PH
35492004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3550
3551 * ada-lang.c (decode_packed_array): Minor change to comment.
3552 (ada_value_slice_ptr): New function.
3553 (ada_value_slice): New function.
3554 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3555 test. Don't know why it is there.
3556 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3557 to avoid dereferencing huge arrays from which one is slicing.
3558 (empty_array): Correct to return an array rather than
3559 a subrange value.
3560 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3561 on empty arrays (let'em use 'FIRST instead).
3562
19c1ef65
PH
35632004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3564
3565 Address complaints from gdb_ari.sh:
3566
3567 * ada-exp.y: Include gdb_string.h rather than string.h.
3568 (convert_char_literal): Reformat declaration.
3569 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3570 * ada-lex.l: Change use of free to xfree (the macro would do so
3571 anyway, but this is harmless).
3572 Include gdb_string.h rather than string.h.
3573 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3574
3575 * ada-lang.c (parse): Remove K&Rism in parameter list.
3576 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3577
d81cbc94
MK
35782004-06-30 Mark Kettenis <kettenis@gnu.org>
3579
3580 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3581 dead code.
3582
07681759
MK
35832004-06-30 Mark Kettenis <kettenis@gnu.org>
3584
3585 * alphabsd-nat.c: Update copyright year.
3586 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3587
f7948b5f
JB
35882004-06-29 Joel Brobecker <brobecker@gnat.com>
3589
6e0cdd28 3590 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3591 (i386_cygwin_in_solib_call_trampoline): New function.
3592 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3593 and skip_trampoline_code gdbarch methods.
3594
8f113c9a
JB
35952004-06-29 Jim Blandy <jimb@redhat.com>
3596
3597 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3598 name actually used in the dependency lists.
3599
97dc871c
RC
36002004-06-29 Randolph Chung <tausq@debian.org>
3601
3602 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3603
47216e51
CV
36042004-06-29 Corinna Vinschen <vinschen@redhat.com>
3605
3606 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3607 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3608 functionality.
3609
e623b504
AC
36102004-06-28 Andrew Cagney <cagney@gnu.org>
3611
3612 * defs.h (xstrvprintf): Declare.
3613 * utils.c (xstrvprintf): New function.
3614 (internal_vproblem, xstrprintf, xasprintf)
3615 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3616 * serial.c (serial_printf): Ditto.
3617 * complaints.c (vcomplaint): Ditto.
3618
79acc9b3
CV
36192004-06-29 Corinna Vinschen <vinschen@redhat.com>
3620
3621 * infcmd.c (attach_command): Move call to target_terminal_inferior
3622 behind loading symbol table.
3623
1daf35d9
AC
36242004-06-28 Andrew Cagney <cagney@gnu.org>
3625
3626 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3627 change - add back extern deprecated_ui_loop_hook declaration.
3628
b435e160
AC
36292004-06-28 Andrew Cagney <cagney@gnu.org>
3630
3631 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3632 xstrprintf.
3633 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3634 (c_value_of_variable): Ditto.
3635 * utils.c (internal_vproblem): Ditto.
3636 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3637 * remote.c (add_packet_config_cmd): Ditto.
3638 * remote-rdp.c (rdp_set_command_line): Ditto.
3639 * regcache.c (regcache_dump): Ditto.
3640 * frv-tdep.c (new_variant, new_variant): Ditto.
3641 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3642 (fbsd_find_memory_regions): Ditto.
3643 * breakpoint.c (create_thread_event_breakpoint)
3644 (create_breakpoints): Ditto.
3645 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3646 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3647
06d5cf63
JB
36482004-06-28 Joel Brobecker <brobecker@gnat.com>
3649
3650 * ada-lang.c: Re-indent file, with some massaging to help indent
3651 a bit when the result is otherwise really too ugly.
3652
35809fad
UW
36532004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3654
3655 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3656 code_addr_p and special_addr_p to 'unsigned int'.
3657
40e20472
MK
36582004-06-27 Mark Kettenis <kettenis@gnu.org>
3659
3660 * i386v4-nat.c: Update copyright year and tweak comment.
3661 (regmap): Remove trailing comma.
3662 (supply_gregset): Rename local variable i to regnum. Call
3663 regcache_raw_supply instead of supply_register.
3664 (fill_gregset): Rename argument regno to regnum. Call
3665 regcache_raw_collect instead of regcache_collect.
3666
12b0b6de
UW
36672004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3668
3669 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3670 and special_addr_p.
3671 (frame_id_build, frame_id_build_special): Update comments.
3672 (frame_id_build_wild): New prototype.
3673 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3674 struct frame_id fields.
3675 (frame_id_build_wild): New function.
3676 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3677
47b42a3e
MK
36782004-06-27 Mark Kettenis <kettenis@gnu.org>
3679
3680 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3681 hppabsd-tdep.c.
3682
1265e4aa
JB
36832004-06-27 Joel Brobecker <brobecker@gnat.com>
3684
3685 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3686
76a01679
JB
36872004-06-27 Joel Brobecker <brobecker@gnat.com>
3688
3689 * ada-lang.c: Re-indent file.
3690
7aca490a
JB
36912004-06-27 Joel Brobecker <brobecker@gnat.com>
3692
3693 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3694 (no_symtab_msg): Likewise.
3695
5e987968
AS
36962004-06-27 Andreas Schwab <schwab@suse.de>
3697
3698 * source.c: Fix whitespace.
3699
315c4276
MK
37002004-06-27 Mark Kettenis <kettenis@gnu.org>
3701
d15be926
MK
3702 * configure.in: Include <sys/param.h> for td_pcb test.
3703 * configure: Regenerated.
3704
9062529b
MK
3705 * i386nbsd-nat.c: New file.
3706 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3707 i386obsd-nat.c and i386obsd-tdep.c.
3708 (i386nbsd-nat.o): New dependency.
3709 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3710 bsd-kvm.o.
3711 (LOADLIBES): New variable.
3712 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3713 bsd-kvm.o.
3714 (LOADLIBES): New variable.
3715
8010310e
MK
3716 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3717 (LOADLIBES): New variable.
3718
efe1d7b9
MK
3719 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3720 fetching from BSD_KVM_PADDR. Correctly lookup address for
3721 "_thread0".
3722
315c4276
MK
3723 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3724 "bsd-kvm.h".
3725 (amd64fbsd_supply_pcb): New funcion.
3726 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3727
399cfac6
DL
37282004-06-27 <david@streamline-computing.com>
3729
3730 Partial fix for PR cli/1056.
3731 * valarith.c: Check for zero in division and remainder
3732 evaluation.
3733
6235f9c8
MK
37342004-06-27 Mark Kettenis <kettenis@gnu.org>
3735
3736 * i387-tdep.c: Remove excessive whitespace.
3737
2726dafc
AC
37382004-06-26 Andrew Cagney <cagney@gnu.org>
3739
3740 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3741 * gdb-events.h, gdb-events.c: Re-generate.
3742 * tui/tui-hooks.c (tui_install_hooks): Update.
3743 (tui_remove_hooks): Update.
3744 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3745
0e56aeaf
MK
37462004-06-26 Mark Kettenis <kettenis@gnu.org>
3747
cb461069
MK
3748 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3749 (gregset_t, fpregset_t): Remove typedefs.
3750 (REG_OFFSET): Rename argument.
3751 (amd64bsd_r_reg_offset): Rename from reg_offset.
3752 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3753 Remove functions.
3754 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3755 of reg_offset.
3756 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3757
ecba89de
MK
3758 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3759
4cd80476
MK
3760 * vax-tdep.c: Tweak comment.
3761
0e56aeaf
MK
3762 Add OpenBSD/hppa support.
3763 * NEWS (New native configurations): Mention OpenBSD/hppa.
3764 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3765 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3766 files.
3767 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3768 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3769 * configure.host: Add hppa*-*-openbsd*.
3770 * configure.tgt: Add hppa*-*-openbsd*.
3771
98bbd631
AC
37722004-06-25 Andrew Cagney <cagney@gnu.org>
3773
3774 * defs.h (deprecated_ui_loop_hook): Deprecated.
3775 * wince.c (child_wait): Update.
3776 * win32-nat.c (child_wait): Update.
3777 * v850ice.c (v850ice_wait): Update.
3778 * top.c (deprecated_ui_loop_hook): Update.
3779 * serial.h: Update.
3780 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3781 (do_unix_readchar): Update.
3782 * ser-tcp.c (net_open): Update.
3783 * remote-sim.c (gdb_os_poll_quit): Update.
3784 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3785
769d7dc4
AC
37862004-06-24 Andrew Cagney <cagney@gnu.org>
3787
3788 * defs.h (deprecated_pre_add_symbol_hook)
3789 (deprecated_post_add_symbol_hook): Deprecated.
3790 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3791 (symbol_file_add_with_addrs_or_offsets): Update references.
3792
11c949aa
AC
37932004-06-24 Andrew Cagney <cagney@gnu.org>
3794
3795 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3796 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3797 * wince.c (ui_loop_hook): Delete extern declaration.
3798 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3799 * v850ice.c (ui_loop_hook): Delete extern declaration..
3800 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3801 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3802 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3803 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3804 ui_loop_hook declaration.
3805
eedc19af
AC
38062004-06-24 Andrew Cagney <cagney@gnu.org>
3807
3808 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3809 entry_func_highpc fields.
3810 * objfiles.c (init_entry_point_info): Do not clear
3811 entry_func_lowpc and entry_func_highpc.
3812 (objfile_relocate): Do not relocate entry_func_lowpc and
3813 entry_func_highpc.
3814 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3815 entry_func_highpc.
3816 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3817 entry_func_highpc.
3818 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3819 entry_func_lowpc and entry_func_highpc with call to
3820 inside_entry_func.
3821
d47079be
MK
38222004-06-24 Mark Kettenis <kettenis@gnu.org>
3823
3824 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3825 quad-precision floating point arguments in registers.
3826
2107e348
MK
38272004-06-24 Mark Kettenis <kettenis@gnu.org>
3828
3829 From Michael Mueller <m.mueller99@kay-mueller.de>:
3830 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3831 account.
3832
46587c42
JJ
38332004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3834
3835 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3836 to -1.
3837 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3838 untriggered watchpoints to a separate if clause. Update function
3839 comment regarding STOPPED_BY_WATCHPOINT argument.
3840
226f5cf4
JB
38412004-06-22 Jim Blandy <jimb@redhat.com>
3842
3843 * gdbarch.sh: Doc fix.
3844
f10683bb
MH
38452004-06-21 Martin Hunt <hunt@redhat.com>
3846 Kevin Buettner <kevinb@redhat.com>
3847
3848 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3849 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3850 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3851 to set_gdbarch_sp_regnum(). Use cooked register number.
3852 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3853
412d5987
AC
38542004-06-21 Andrew Cagney <cagney@gnu.org>
3855
3856 * gdbarch.sh: When the macro field is empty, do not generate a
3857 macro definition. When the macro field is "=", generate the macro
3858 name from the upper-case function name.
3859 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3860 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3861 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3862 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3863 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3864 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3865 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3866 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3867 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3868 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3869 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3870 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3871 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3872 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3873 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3874 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3875 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3876 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3877 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3878 (DEPRECATED_USE_STRUCT_CONVENTION)
3879 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3880 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3881 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3882 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3883 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3884 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3885 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3886 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3887 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3888 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3889 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3890 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3891 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3892 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3893 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3894 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3895 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3896 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3897
68908a3e
AC
38982004-06-21 Andrew Cagney <cagney@gnu.org>
3899
48f7351b
AC
3900 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3901 macro name, and the function rather than macro value. Only wrap
3902 macro print statements in #ifdef. Move format logic to where it
3903 is needed.
3904 * gdbarch.c: Re-generate.
3905
283354d8
AC
3906 * gdbarch.sh (read): Delete "print_p" and "description", add
3907 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3908 Delete references to print_p.
3909 (TARGET_ARCHITECTURE): Delete print predicate.
3910 * gdbarch.c: Re-generate.
3911
68908a3e
AC
3912 * gdbarch.sh: Check that multi-arch methods do not provide a
3913 macro.
3914 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3915 (print_registers_info, print_float_info, print_vector_info)
3916 (adjust_breakpoint_address, remote_translate_xfer_address)
3917 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3918 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3919 name from the multi-arch definition.
3920
a2428dbe
AC
39212004-06-20 Andrew Cagney <cagney@gnu.org>
3922
3923 * gdbarch.sh: Sort by the function, instead of macro name.
3924 * gdbarch.c: Re-generate.
3925
750eb019
AC
39262004-06-20 Andrew Cagney <cagney@gnu.org>
3927
66d659b1
AC
3928 * gdbarch.sh: Use the function, instead of macro name in
3929 errors and the log file.
3930 (return_value): Remove stray ":" in spec.
3931
750eb019
AC
3932 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3933 * gdbarch.h, gdbarch.c: Re-generate.
3934 * Makefile.in (arch-utils.o): Update dependencies.
3935 * values.c (using_struct_return): Move code calling
3936 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3937 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3938 to legacy_return_value, simplify.
3939 * infcmd.c (print_return_value): Move code calling
3940 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3941 to legacy_return_value, simplify.
3942 * infcall.c (call_function_by_hand): Move code calling
3943 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3944 * arch-utils.c: Update copyright. Include "gdbcore.h".
3945 (legacy_return_value): New function.
3946 * arch-utils.h: Update copyright.
3947 (legacy_return_value): Declare.
3948
b5622e8d
AC
39492004-06-20 Andrew Cagney <cagney@gnu.org>
3950
3951 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3952 * gdbarch.h, gdbarch.c: Re-generate.
3953 * values.c (using_struct_return): Update call.
3954 * mcore-tdep.c: Update comment.
3955 * infcall.c (call_function_by_hand): Update comment.
3956 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3957 * arch-utils.h (always_use_struct_convention): Update.
3958 * v850-tdep.c (v850_gdbarch_init): Update.
3959 * sh64-tdep.c (sh64_gdbarch_init): Update.
3960 * sh-tdep.c (sh_gdbarch_init): Update.
3961 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3962 * mips-tdep.c (mips_gdbarch_init): Update.
3963 * mcore-tdep.c (mcore_gdbarch_init): Update.
3964 * m32r-tdep.c (m32r_gdbarch_init): Update.
3965 * ia64-tdep.c (ia64_gdbarch_init): Update.
3966 * h8300-tdep.c (h8300_gdbarch_init): Update.
3967 * frv-tdep.c (frv_gdbarch_init): Update.
3968 * cris-tdep.c (cris_gdbarch_init): Update.
3969 * arm-tdep.c (arm_gdbarch_init): Update.
3970 * alpha-tdep.c (alpha_gdbarch_init): Update.
3971
5191de37
MC
39722004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3973
3974 * PROBLEMS: Add more specific information, and a work-around,
3975 for PR gdb/1458.
3976
782263ab
AC
39772004-06-18 Andrew Cagney <cagney@gnu.org>
3978
3979 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3980 * gdbarch.h, gdbarch.c: Re-generate.
3981 * ada-lang.c (ada_finish_decode_line_1): Update.
3982 * infrun.c (handle_inferior_event): Update.
3983 * infcall.c (find_function_addr): Update.
3984 * linespec.c (minsym_found): Update.
3985 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3986 Update.
3987 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3988 * cli/cli-cmds.c (disassemble_command): Update.
3989 * vax-tdep.c (vax_gdbarch_init): Update.
3990
2f305df1
MK
39912004-06-18 Mark Kettenis <kettenis@gnu.org>
3992
3993 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3994
e5fe55f7
AC
39952004-06-17 Andrew Cagney <cagney@gnu.org>
3996
3997 GDB 6.1.1 released from the GDB 6.1 branch.
3998 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3999 * PROBLEMS: Ditto.
4000
473b7be6
DJ
40012004-06-16 Daniel Jacobowitz <dan@debian.org>
4002
4003 PR gdb/1658
4004 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4005 operation as a uleb128. Found by Michael Coulter.
4006
96d887e8
PH
40072004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4008
4009 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4010 make it non-static.
4011 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4012 to ada-lang.h; this is needed to be able to implement the kill command
4013 in multi-task mode.
4014 (task_ptid): Ditto.
4015 (task_entry): Ditto.
4016 (task_list): Ditto.
4017 (ada_build_task_list): Ditto.
4018
4019 * ada-lang.c: Conditionalize routines and data structures related
4020 to breakpoints, exceptions, completion, and symbol caching on
4021 GNAT_GDB, since these are not yet used in the submitted public sources.
4022 (ada_main_name): Editorial: Move definition out of exception-related
4023 code.
4024
31eef181
AC
40252004-06-15 Andrew Cagney <cagney@gnu.org>
4026
4027 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4028 deprecated_pc_in_call_dummy.
4029
2c500098
AM
40302004-06-15 Alan Modra <amodra@bigpond.net.au>
4031
4032 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4033 bfd_get_section_size_before_reloc or _raw_size.
4034 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4035 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4036 (dwarf2_read_section): Likewise.
4037 * elfread.c (elf_locate_sections): Likewise.
4038 * gcore.c (derive_heap_segment): Likewise.
4039 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4040 * remote-e7000.c (e7000_load): Likewise.
4041 * remote-m32r-sdi.c (m32r_load): Likewise.
4042 * remote-mips.c (mips_load_srec): Likewise.
4043 (pmon_load_fast): Likewise.
4044 * remote.c (compare_sections_command): Likewise.
4045 * symfile.c (add_section_size_callback): Likewise.
4046 (load_section_callback): Likewise.
4047 (pc_in_unmapped_range): Likewise.
4048 (pc_in_mapped_range): Likewise.
4049 (sections_overlap): Likewise.
4050 (list_overlays_command): Likewise.
4051 (simple_overlay_update_1): Likewise.
4052 (simple_overlay_update): Likewise.
4053 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4054 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4055
90f943f1
RC
40562004-06-14 Randolph Chung <tausq@debian.org>
4057
4058 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4059 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4060 static.
4061 (hppa_hpux_inferior_created): New function.
4062 (hppa_hpux_init_abi): Register observer.
4063 * symfile.c (hp_cxx_exception_support_initialized)
4064 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4065 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4066
700c15aa
RC
40672004-06-14 Randolph Chung <tausq@debian.org>
4068
3973a7d3
AC
4069 * MAINTAINERS (Write After Approval): Alphabetize my entry
4070 correctly.
700c15aa 4071
cea4838c
AC
40722004-06-14 Andrew Cagney <cagney@gnu.org>
4073
4074 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4075 testsuite maintainer.
4076
97092415
AC
40772004-06-13 Andrew Cagney <cagney@gnu.org>
4078
e8c3165b
AC
4079 * infcmd.c (print_return_value): Fix logic, allow
4080 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4081
bceabdd8
AC
4082 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4083 defining any macros.
4084 * gdbarch.h: Re-generate.
4085
57010b1c
AC
4086 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4087 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4088 * gdbarch.h: Re-generate.
4089
bc87dfa0
AC
4090 * values.c (generic_use_struct_convention): Don't check gcc_p.
4091
15ac804d
AC
4092 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4093 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4094 * gdbarch.h, gdbarch.c: Regenerate.
4095 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4096 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4098 deprecated_max_register_raw_size and
4099 deprecated_max_register_virtual_size.
4100 * v850-tdep.c (v850_gdbarch_init): Ditto.
4101 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4103 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4104 * cris-tdep.c (cris_gdbarch_init): Ditto.
4105
97092415
AC
4106 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4107 * gdbarch.h, gdbarch.c: Re-generate.
4108 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4109 (m68hc11_use_struct_convention): Delete function.
4110 (m68hc11_extract_struct_value_address): Delete function.
4111 (m68hc11_return_value): New function.
4112 (m68hc11_gdbarch_init): Instead of store_return_value,
4113 extract_return_value, return_value_on_stack,
4114 deprecated_extract_struct_value_address and use_struct_convention,
4115 set return_value.
4116 * values.c (using_struct_return): Do not call
4117 RETURN_VALUE_ON_STACK.
4118 * arch-utils.h (generic_return_value_on_stack_not): Delete
4119 declaration.
4120 * arch-utils.c (generic_return_value_on_stack_not): Delete
4121 function.
4122
44e5158b
AC
41232004-06-12 Andrew Cagney <cagney@gnu.org>
4124
4125 * values.c (register_value_being_returned): Delete function.
4126 * infcmd.c (legacy_return_value): Delete function.
4127 * infcall.c (call_function_by_hand): Inline
4128 "register_value_being_returned", simplify.
4129 * values.c (using_struct_return): Update comment, refer to
4130 print_return_value instead of register_value_being_returned.
4131 * infcmd.c (print_return_value): Inline calls to
4132 register_value_being_returned and legacy_return_value. Simplify.
4133
b887c273
RC
41342004-06-11 Randolph Chung <tausq@debian.org>
4135
4136 * somread.c (som_symtab_read): Exclude gcc local symbols.
4137
1b2bfbb9
RC
41382004-06-11 Randolph Chung <tausq@debian.org>
4139
3973a7d3
AC
4140 * infrun.c (handle_inferior_event): Handle the case when a
4141 trampoline ends up in the runtime resolver, and if the trampoline
4142 has no name. Rearrange the code so that all the trampoline
4143 processing happens before other step-out-of-range handling.
1b2bfbb9 4144
a9d61c86
MH
41452004-06-11 Martin Hunt <hunt@redhat.com>
4146
4147 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4148 has no fpu.
4149
2c87cf5a
AC
41502004-06-10 Andrew Cagney <cagney@gnu.org>
4151
4152 * blockframe.c (legacy_inside_entry_func): Delete.
4153 (legacy_frame_chain_valid): Inline call to
4154 legacy_inside_entry_func, simplify.
4155
0b67b468 41562004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4157
4158 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4159 * dwarf2read.c (partial_die_info): Add dirname field.
4160 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4161 (read_partial_die): Save away DW_AT_comp_dir.
4162 * defs.h (symtab_to_filename): Removed.
4163 * source.c (find_and_open_source): Added.
57c22c6c 4164 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4165 (symtab_to_filename): Removed.
4166 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4167 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4168 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4169 symtab_to_filename.
4170 * symtab.h (partial_symtab): Add dirname field.
4171 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4172 (mi_cmd_file_list_exec_source_file): Call new function
4173 symtab_to_fullname to find fullname.
57c22c6c 4174 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4175 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4176 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4177
9a1dd1ad
AC
41782004-06-10 Andrew Cagney <cagney@gnu.org>
4179
239ae8c7
AC
4180 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4181 to generic_use_struct_convention, the default value.
4182
fc720350
AC
4183 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4184 of abort.
4185
9a1dd1ad
AC
4186 * ns32k-tdep.c (ns32k_push_arguments): New function.
4187 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4188 * infcall.c (call_function_by_hand): Call error instead of
4189 legacy_push_arguments.
4190 * value.h (legacy_push_arguments): Delete declaration.
4191 * valops.c (legacy_push_arguments): Delete function.
4192 (value_push): Delete function.
4193
fea25152
BF
41942004-06-10 Brian Ford <ford@vss.fsi.com>
4195
4196 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4197 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4198 info.
4199 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4200
30a4a8e0
AC
42012004-06-10 Andrew Cagney <cagney@gnu.org>
4202
4203 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4204 * gdbarch.h, gdbarch.c: Re-generate.
4205 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4206 parameters.
4207 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4208 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4209 deprecated_pc_in_call_dummy instead of
4210 DEPRECATED_PC_IN_CALL_DUMMY.
4211 (arm_skip_prologue): Ditto.
4212 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4213 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4214 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4215 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4216 Ditto.
4217 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4218 (sh64_init_extra_frame_info, sh64_get_saved_register)
4219 (sh64_pop_frame): Ditto.
4220 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4221 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4222 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4223 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4224 (h8300_pop_frame): Ditto.
4225 * blockframe.c (legacy_inside_entry_func)
4226 (legacy_frame_chain_valid): Ditto.
4227 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4228 to deprecated_pc_in_call_dummy.
4229
81cfbe54
AC
42302004-06-09 Andrew Cagney <cagney@gnu.org>
4231
a1f4a1b6
AC
4232 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4233 provide a default value.
4234 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4235 * gdbarch.h, gdbarch.c: Re-generate.
4236 * arch-utils.c (generic_convert_register_p): Rename
4237 legacy_convert_register_p
4238 (legacy_register_to_value, legacy_value_to_register): Delete
4239 functions.
4240 * arch-utils.h (generic_convert_register_p): Rename
4241 legacy_convert_register_p.
4242 (legacy_register_to_value, legacy_value_to_register): Delete
4243 declarations.
4244
9730f241
AC
4245 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4246 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4247 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4248 * gdbarch.h, gdbarch.c: Re-generate.
4249 * infcmd.c (default_print_registers_info): Simplify.
4250 * findvar.c (value_of_register): Simplify.
4251 * mi/mi-main.c (get_register): Simplify.
4252 * arch-utils.c (legacy_convert_register_p): Always return 0.
4253 (legacy_register_to_value, legacy_value_to_register): Always call
4254 internal_error.
4255
8a1bf479
AC
4256 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4257 #ifdef CLEAR_INSN_CACHE code.
4258 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4259 Delete #ifdef CLEAR_DEFERRED_STORES code.
4260
4b38d6f1
AC
4261 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4262
2d62ecc7
AC
4263 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4264 copyright.
4265 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4266
be4f7469
AC
4267 * config/mips/mipsv4.mh: Delete file.
4268
81cfbe54
AC
4269 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4270 unreferenced macro.
4271 (hpread_adjust_stack_address): Delete declaration.
4272
d966f0cb
AC
42732004-06-08 Andrew Cagney <cagney@gnu.org>
4274
4275 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4276 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4277 PTRACE_ATTACH / PTRACE_DETACH available call error.
4278 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4279 * infttrace.c (update_thread_state_after_attach, attach, detach):
4280 Remove #ifdef wrappers.
4281 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4282 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4283 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4284 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4285 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4286 * config/nm-linux.h (ATTACH_DETACH): Delete.
4287 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4288 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4289 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4290 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4291 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4292
d91670b9
CV
42932004-06-08 Corinna Vinschen <vinschen@redhat.com>
4294
4295 * configure.in: Set $configdir to the right OS specific value.
4296 Use value when setting $tcldir and $tkdir.
4297 * configure: Regenerate.
4298
28ba0b33
PB
42992004-06-06 Paul Brook <paul@codesourcery.com>
4300
4301 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4302 records.
4303
f26caa11
PH
43042004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4305
4306 * ada-lang.c (lookup_symbol_in_language): New function to allow
4307 re-use of another language's symbol lookup code. (Placed here
4308 temporarily while Ada support is being integrated into the public
4309 tree).
4310 (restore_language): New auxiliary function for
4311 lookup_symbol_in_language.
4312 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4313 temporarily while Ada support is being integrated into the public
4314 tree).
4315
d560a54b
AO
43162004-06-08 Alexandre Oliva <aoliva@redhat.com>
4317
e75d110c
AO
4318 * Makefile.in (check//%): New.
4319
d560a54b
AO
4320 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4321 (mn10300_store_return_value): Rewrite.
4322 (mn10300_type_align): New.
4323 (mn10300_use_struct_convention): Rewrite.
4324 (mn10300_return_value): New, using all of the above.
4325 (mn10300_pop_frame_regular): Add saved_regs_size.
4326 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4327
a72fbdb7
AO
4328 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4329 regs if PC is on movm.
4330
01904826
JB
43312004-06-07 Jim Blandy <jimb@redhat.com>
4332
4333 Add native Linux support for the PowerPC E500.
4334 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4335 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4336 all architectures except the E500.
4337 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4338 #definitions.
4339 (struct gdb_evrregset_t): New type.
4340 (have_ptrace_getsetevrregs): New variable.
4341 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4342 fetch_spe_registers): New functions.
4343 (fetch_register): Call fetch_spe_register as appropriate.
4344 Assert that we're only passed raw register numbers.
4345 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4346 Don't fetch gprs if they're pseudoregisters.
4347 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4348 store_spe_registers): New functions.
4349 (store_register): Call store_spe_register as appropriate.
4350 Assert that we're only passed raw register numbers.
4351 (store_ppc_registers): Call store_spe_registers as appropriate.
4352 Don't store gprs if they're pseudoregisters.
4353
f90ef764
JJ
43542004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4355
4356 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4357 struct if one exists, even if we are dealing with a zombie thread.
4358
45b75230
AC
43592004-06-07 Andrew Cagney <cagney@gnu.org>
4360
4361 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4362 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4363 Rename PC_REQUIRES_RUN_BEFORE_USE.
4364 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4365 #ifdef.
4366
1658da49
RC
43672004-06-07 Randolph Chung <tausq@debian.org>
4368
4369 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4370 unwinding after sp has been saved to the stack but before the end
4371 of the prologue, and after the fp has been modified but before it has
4372 been saved to the stack.
4373 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4374 Remove superfluous definitions.
4375 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4376
9a727a3c
RC
43772004-06-07 Guy Martin <gmsoft@gentoo.org>
4378
4379 Committed by Randolph Chung.
4380 * hppa-linux-nat.c: Include the correct version of the header file
4381 depending on the kernel version.
4382
9e500012
RC
43832004-06-06 Randolph Chung <tausq@debian.org>
4384
4385 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4386 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4387
3388d7ff
RC
43882004-06-06 Randolph Chung <tausq@debian.org>
4389
4390 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4391 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4392 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4393 * hppa-tdep.c (hppa_symbol_address): New function definition.
4394 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4395
d49771ef
RC
43962004-06-06 Randolph Chung <tausq@debian.org>
4397
4398 * hppa-tdep.h (struct value): Forward declaration.
4399 (gdbarch_tdep): Define tdep find_global_pointer method.
4400 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4401 associated with the function we are trying to call, and write it
4402 to the gp register.
4403 (hppa32_convert_from_funct_ptr_addr): New function.
4404 (hppa_find_global_pointer): New function.
4405 (hppa_gdbarch_init): Set default find_global_pointer method; set
4406 convert_from_func_ptr_addr method.
4407 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4408 (hppa_linux_init_abi): Set find_global_pointer method.
4409 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4410
7d9b040b
RC
44112004-06-06 Randolph Chung <tausq@debian.org>
4412
4413 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4414 to struct value *function.
4415 * gdbarch.c: Regenerate.
4416 * gdbarch.h: Likewise.
4417 * infcall.c (call_function_by_hand): Pass entire function value
4418 to push_dummy_call.
4419
4420 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4421 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4422 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4423 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4424 * arm-tdep.c (arm_push_dummy_call): Likewise.
4425 * avr-tdep.c (avr_push_dummy_call): Likewise.
4426 * cris-tdep.c (cris_push_dummy_call): Likewise.
4427 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4428 * frv-tdep.c (frv_push_dummy_call): Likewise.
4429 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4430 * hppa-tdep.c (hppa32_push_dummy_call)
4431 (hppa64_push_dummy_call): Likewise.
4432 * i386-tdep.c (i386_push_dummy_call): Likewise.
4433 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4434 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4435 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4436 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4437 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4438 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4439 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4440 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4441 (ppc64_sysv_abi_push_dummy_call): Likewise.
4442 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4443 (ppc64_sysv_abi_push_dummy_call): Likewise.
4444 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4445 * s390-tdep.c (s390_push_dummy_call): Likewise.
4446 * sh-tdep.c (sh_push_dummy_call_fpu)
4447 (sh_push_dummy_call_nofpu): Likewise.
4448 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4449 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4450 * vax-tdep.c (vax_push_dummy_call): Likewise.
4451
4a19ea35
JB
44522004-06-04 Jim Blandy <jimb@redhat.com>
4453
8327ccee
JB
4454 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4455 gdbarch argument to register_size.
4456
a3c001ce
JB
4457 * rs6000-tdep.c (rs6000_store_return_value): Use
4458 regcache_cooked_write_part instead of
4459 deprecated_write_register_bytes.
4460 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4461 not gdbarch_deprecated_store_return_value.
4462
4a19ea35
JB
4463 * ppc-linux-nat.c (store_register, fetch_register): Remove
4464 incorrect assertions. Simplify and generalize handling of
4465 transfers whose sizes are not multiples of, or less than, sizeof
4466 (PTRACE_XFER_TYPE).
4467
b9b5d7ea
JJ
44682004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4469
4470 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4471 as a new thread event.
720c7d64 4472 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4473 zombie, return TD_THR_ZOMBIE.
720c7d64 4474 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4475 TD_THR_ZOMBIE, check if the thread is still on the thread list
4476 and return a -1 ptid if not found.
4477 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4478 change the status to TARGET_WAITKIND_SPURIOUS.
4479
c8a3b559
CV
44802004-06-03 Corinna Vinschen <vinschen@redhat.com>
4481
4482 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4483 double values in little endian mode.
4484
20605361
AC
44852004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4486
4487 Committed by Andrew Cagney.
4488 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4489 after last enum constant to avoid error from IBM C
4490 compiler.
4491
bc97b3ba
JB
44922004-06-02 Jim Blandy <jimb@redhat.com>
4493
4494 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4495 to 'message', and make it local to the lone block that uses it.
4496
1da28ab0
JB
4497 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4498
4c4b4cd2
PH
44992004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4500
8a2225b2
PH
4501 * ada-exp.y: Update copyright notice.
4502 Include block.h.
4503
4504 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4505 SPECIAL_VARIABLE and unify the treatment of these cases.
4506
4507 (write_attribute_call0): Remove.
4508 (write_attribute_call1): Remove.
4509 (write_attribute_calln): Remove.
4510 (save_qualifier): Add missing semicolon.
4511
4512 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4513 temporarily disabled to allow compilation with FSF head version.
4514
4515 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4516 use individual operators (OP_*) for all attributes.
4517 (exp syntax): Use write_int.
4518 Handle STRING literals with OP_STRING.
4519 (variable syntax): Add limit parameter to calls to
4520 write_object_renaming.
4521
4522 (temp_parse_space): New definition to hold entities that need
4523 only live until the next call to ada_parse.
4524 (string_to_operator): Rename fields of ada_opname_table entries.
4525
4526 (write_var_from_sym): Record block.
4527 (write_var_from_name): Minor reformatting.
4528 Make sure saved name is properly encoded in the case of multiple
4529 matches, and set its language to Ada.
4530 Update comment.
4531 Modify to indicate unresolved name as symbol in the UNRESOLVED
4532 namespace, allocated in temp_parse_space.
4533 (write_int): New function.
4534
4535 (write_object_renaming): Add max_depth parameter to limit
4536 chains of object renamings.
4537 Handle case where root of renaming expression is itself a renaming.
4538 Use temp_parse_space for temporary name buffer.
4539 Handle renamings to dereferenced pointers (___XEXA suffices).
4540
4541 (ada_parse, yyerror, string_to_operator,
4542 write_var_from_sym, write_var_from_name, write_attribute_call0,
4543 write_attribute_call1, write_attribute_calln,
4544 write_object_renaming): Protoize.
4545
4546 (_initialize_ada_exp): New function.
4547
4548 * ada-lang.c: Update copyright notice.
4549 General terminology change to conform to GNAT compiler usage:
4550 mangle => encode, demangle => decode
4551 Include gdb_obstack.h.
4552 Include gdb_regex.h
4553 Include frame.h
4554 Include hashtab.h
4555 Include completer.h
4556 Include gdb_stat.h
4557 Include block.h
4558 Include infcall.h
4559
4560 (ADA_RETAIN_DOTS): Make sure this is defined.
4561 (TRUNCATION_TOWARDS_ZERO): Define.
4562 (struct string_vector): Define.
4563 (unresolved_names): Remove definition.
4564 (xnew_string_vector): New function.
4565 (string_vector_append): New function.
4566 (extract_string): Make static.
4567 (ada_unqualified_name): New function.
4568 (add_angle_brackets): New function.
4569 (function_name_from_pc): New function.
4570 (place_on_stack): Rename to ensure_lval.
4571
4572 (ensure_lval): Renamed from place_on_stack.
4573 Make identity on lvals.
4574 Update comment.
4575 (is_nonfunction): New interface.
4576 Only symbols in LOC_CONST class can be enumerals.
4577 (fill_in_ada_prototype): Remove; now independent of language.
4578 (add_defn_to_vec): Add obstack and symtab arguments.
4579 Use obstack to hold collected definitions.
4580 (num_defns_collected): New function.
4581 (defns_collected): New function.
4582 (ada_resolve_subexp): Rename to resolve_subexp.
4583 (resolve_subexp): Renamed from ada_resolve_subexp.
4584 (ada_op_name): Return non-const result.
4585 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4586 other purposes.
4587
4588 (to_fixed_array_type): Add declaration.
4589 (coerce_unspec_val_to_type): Remove offset parameter.
4590 (find_sal_from_funcs_and_line): New interface.
4591 (find_line_in_linetable): Ditto.
4592
4593 (all_sals_for_line): Rename to ada_sals_for_line and make
4594 global.
4595 Add new parameter. When set, do not ask the user to choose the
4596 instance, but use the first one found instead.
4597 Use given line number in returned sals.
4598 Fix comment.
4599 Skip the prologue if funfirstline is set.
4600 Correct for memory leak when 0 lines found.
4601
4602 (value_pos_atr): Use pos_atr.
4603 (pos_atr): New function.
4604 (standard_lookup): Add block parameter.
4605
4606 (makeTimeStart): Remove declaration and uses.
4607 (makeTimeStop): Remove declaration and uses.
4608
4609 (ada_completer_word_break_characters): Allow for VMS.
4610 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4611 (raise_sym_name): New constant.
4612 (raise_unhandled_sym_name): New constant.
4613 (raise_assert_sym_name): New constant.
4614 (process_raise_exception_name): New constant.
4615 (longest_exception_template): New constant.
4616 (warning_limit): New variable to limit warnings during expression
4617 evaluation.
4618 (warnings_issued): New variable to keep track of warnings issued.
4619 (known_runtime_file_name_patterns): New constant.
4620 (known_auxiliary_function_name_patterns): New constant.
4621 (symbol_list_obstack): New variable.
4622
4623 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4624 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4625 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4626 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4627 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4628 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4629 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4630 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4631 and strcmp.
4632
4633 (ada_get_field_index): New function.
4634 (lim_warning): New function.
4635 (ada_translate_error_message): New function.
4636 (MAX_OF_SIZE): New function.
4637 (MIN_OF_SIZE): New function.
4638 (UMAX_OF_SIZE): New function.
4639 (UMIN_OF_SIZE): New function.
4640 (discrete_type_high_bound): New function.
4641 (discrete_type_low_bound): New function.
4642 (base_type): New function.
4643 (do_command): Remove.
4644
4645 (ada_update_initial_language): Use language_ada, not language_unknown.
4646 (ada_encode): Renamed from ada_mangle.
4647 Obey ADA_RETAIN_DOTS.
4648 (ada_decode): Renamed from ada_demangle.
4649 Update coding conventions.
4650 (decoded_names_store): New hash table.
4651 (ada_decode_symbol): New function.
4652 (ada_la_decode): New function.
4653
4654 (modify_general_field): Correct computations of offset and bit
4655 position.
4656 (desc_base_type): Handle ref types, too.
4657 (ada_is_direct_array_type): New function.
4658
4659 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4660 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4661 (ada_is_bogus_array_descriptor,ada_type_of_array,
4662 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4663 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4664 ada_is_array_descriptor_type.
4665
4666 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4667 (ada_is_packed_array_type): Handle pointers or
4668 references to packed arrays as well.
4669 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4670 (decode_packed_array_type): Search for the packed array type
4671 symbol in the currently selected block and associated
4672 superblocks too.
4673 Use lookup_symbol again.
4674
4675 (decode_packed_array): Handle pointers and references.
4676 Update call to coerce_unspec_val_to_type.
4677 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4678 (ada_value_primitive_packed_val): Improve comment.
4679
4680 (ada_index_type): Substitute int type for "undefined".
4681 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4682 ada_array_langth, ada_is_string_type): Use renamed
4683 ada_is_simple_array_type.
4684 (empty_array): New function.
4685
4686 (ada_resolve): Rename to resolve.
4687 (resolve): Make static.
4688 Call renamed resolve_subexp.
4689 Update comment.
4690 (ada_resolve_subexp): Rename to resolve_subexp.
4691 (resolve_subexp): Update comment.
4692 Decomment disabled code.
4693 Add LOC_COMPUTED* cases.
4694 Modify to use temporary struct symbols (marked as being in
4695 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4696 OP_UNRESOLVED_VALUE.
4697 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4698 Add OP_STRING case.
4699 Remove OP_ARRAY.
4700 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4701 Use new ada_lookup_symbol_list interface.
4702 Use new ada_resolve_function interface.
4703 Remove OP_TYPE case.
4704
4705 (ada_args_match): Idiot proof against null actuals.
4706 Use intermediate variables to clarify.
4707 (ada_resolve_function): Update comment and interface.
4708 (mangled_ordered_before): Rename to encoded_ordered_before and
4709 update comment.
4710 (sort_choices): Update comment and interface.
4711 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4712 (user_select_syms): New interface.
4713 Use new sort_choices interface.
4714 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4715 (possible_user_operator_p): Idiot-proof against null values.
4716 (ada_simple_renamed_entity): Don't make cleanup; rely on
4717 caller to free result string.
4718 Remove const from return type.
4719 (make_array_descriptor): Rename uses of place_on_stack to
4720 ensure_lval.
4721 Make sure that arrays are on stack.
4722
4723 (HASH_SIZE): Define.
4724 (struct cache_entry): Define.
4725 (cache_space): Define.
4726 (cache): Define.
4727 (clear_ada_sym_cache): New function.
4728 (find_entry): New function.
4729 (lookup_cached_symbol): New function.
4730 (defn_vector_size): Define.
4731 (cache_symbol): New function.
4732 (defn_symbols): Remove.
4733
4734 (standard_lookup): Use lookup_symbol_in_language to get effect of
4735 C lookup.
4736 Cache results.
4737
4738 (symbol_completion_match): New function.
4739 (symbol_completion_add): New function.
4740 (ada_make_symbol_completion_list): New function.
4741
4742 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4743 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4744 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4745 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4746
4747 (ada_lookup_simple_minsym): New function.
4748 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4749
4750 (add_symbols_from_enclosing_procs): New interface.
4751 Conditionalize more helpfully.
4752 Don't bother if program isn't running.
4753 Use new interface to get_frame_block.
4754 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4755
4756 (remove_extra_symbols): New interface.
4757 (xget_renaming_scope): New function.
4758 (is_package_name): New function.
4759 (renaming_is_visible): New function.
4760 (remove_out_of_scope_renamings): New function.
4761
4762 (ada_lookup_symbol_list): New interface.
4763 Properly reinitialize the symbol list obstack.
4764 Don't call add_symbols_from_enclosing_procs if we start from a
4765 static or global block.
4766 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4767 add_symbols_from_enclosing_procs.
4768 Add symtab data to cached entries.
4769 Handle symbols prefixed with
4770 "standard__" specially; strip prefix and don't look in local symbols.
4771 Do not include out of scope renaming symbols in list of
4772 symbols returned.
4773 Add const to block parameter.
4774 Move check for non-local, non-global symbols earlier.
4775 Remove timing stuff.
4776 (ada_lookup_symbol): New interface.
4777 Find symtab as well.
4778 (ada_lookup_symbol_nonlocal): New function.
4779
4780 (is_name_suffix): Enhance suffix detection to recognize
4781 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4782 (is_dot_digits_suffix): New function.
4783 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4784
4785 (ada_add_block_symbols): New interface. Use obstack to return results
4786 in a vector of struct ada_symbol_infos. Add symtab argument.
4787 Use new interface to add_defn_to_vec.
4788 Remove calls to fill_in_ada_prototype.
4789 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4790
4791 (ada_finish_decode_line_1): Add const qualification to local to fix
4792 warning.
4793 Start looking in static block for functions to avoid attempts
4794 to search frame chain for up-level variables.
4795 Adapt to new ada_sals_for_line interface.
4796 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4797 Handle quoting of the function name inside the spec string.
4798 Skip prologue when funfirstline is set and update the
4799 function documentation to that effect.
4800
4801 (debug_print_lines, debug_print_block, debug_print_blocks,
4802 debug_print_symtab): Remove.
4803
4804 (ada_main_name): New function.
4805 (ada_exception_breakpoint_type): New function.
4806 (is_known_support_routine): New function.
4807 (ada_find_printable_frame): Renamed from find_printable_frame and made
4808 global.
4809 Remove level parameter.
4810 Use new interface to select_frame.
4811
4812 (begin_command): Remove.
4813 (ada_adjust_exception_stop): New function.
4814 (ada_print_exception_stop): New function.
4815 (exception_name_from_cond): New function.
4816 (ada_report_exception_break): Replace disabled code with
4817 conditionalization on GNAT_GDB.
4818 Get the exception name from the condition string.
4819 Remove and move functionality into new functions
4820 ada_print_exception_breakpoint_task and
4821 ada_print_exception_breakpoint_nontask.
4822 (error_breakpoint_runtime_sym_not_found): New function.
4823 (is_runtime_sym_defined): New function.
4824 (ada_breakpoint_rewrite): Uncomment suppressed code.
4825 Use symbolic error-message and runtime-symbol names.
4826 Surround runtime symbol names in quotes.
4827 Allow non-specific breakpoints on exceptions and assertions before
4828 program starts.
4829
4830 (ada_is_tagged_type): Add parameter.
4831 (ada_is_tag_type): New function.
4832 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4833 (ada_variant_discrim_type): Ditto.
4834 (value_tag_from_contents_and_address): New function.
4835 (type_from_tag): New function.
4836 (struct tag_args): New structure used to communicate with
4837 ada_tag_name_1.
4838 (ada_tag_name_1): New function.
4839 (ada_tag_name): New function.
4840
4841 (ada_scan_number): Update comment.
4842 (find_struct_field): New function.
4843 (ada_search_struct_field): Make static.
4844 (ada_value_struct_elt): New version that returns references when
4845 given pointers or references to structs.
4846 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4847 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4848 interface.
4849 (ada_value_ind): Use new ada_to_fixed_value interface.
4850 (ada_coerce_ref): Ditto.
4851 (field_offset): Remove.
4852
4853 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4854 (ada_find_renaming_symbol): New function.
4855 (ada_prefer_type): Prefer named types over unnamed ones.
4856 (variant_field_index): New function.
4857 (contains_variant_part): Removed: subsumed by variant_field_index.
4858 (ada_template_to_fixed_record_type): New function, mostly from
4859 template_to_fixed_record_type.
4860 (template_to_fixed_record_type):
4861 Do not scan the type fields beyond the last one; prevents a
4862 potential SEGV.
4863 Handle case where variant field is listed BEFORE discriminant it
4864 depends on.
4865 Fix calculation of record length when bit length is
4866 not evenly divisible by char length.
4867 Move code to ada_template_to_fixed_record_type and call it.
4868
4869 (template_to_static_fixed_type): Revise comment.
4870 Modify to work on ordinary record types as well as templates,
4871 so as to handle fields that use ___XVE or ___XVU encodings.
4872 (to_record_with_fixed_variant_part): Fill out comment.
4873 Initialize C++ stuff in right type.
4874 Allow case where DVAL is null.
4875 Handle case where variant field is not last.
4876 Fix typo concerning record length.
4877 (to_fixed_record_type): Decomment disabled code.
4878 (to_fixed_record_type): Use variant_field_index instead of
4879 contains_variant_part.
4880 (to_fixed_variant_branch_type): Ditto.
4881 (to_fixed_array_type): Decomment disabled code.
4882 (ada_to_fixed_type): Convert tagged types to the specific type.
4883 Deactivate the size-check for array types in order to avoid
4884 some false size alarms.
4885 (to_static_fixed_type): Decomment disabled code.
4886 Modify to call template_to_static_fixed_type
4887 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4888 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4889 Remove valaddr argument, as it is never really used.
4890 (ada_to_fixed_value): Change interface to act on single struct value*
4891 operand.
4892 (adjust_pc_past_prologue): New function.
4893 (ada_attribute_name): Modify to take enum exp_opcode argument.
4894
4895 (ada_enum_name): Recognize new homonym-distinguishing convention.
4896 Adjust local variable's type to remove compiler warning.
4897 Fix a small problem in the part that unqualifies the enumeration name.
4898 (ada_value_binop): New function.
4899 (ada_value_equal): New function.
4900
4901 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4902 Don't give error message when not doing normal evaluation
4903 and a tagged type doesn't seem to contain a structure member.
4904 Give error message for packed arrays.
4905 For indexing arrays, handle pointers to packed arrays correctly.
4906 Handle case of 'first and 'last attributes of bare integral type
4907 without encoded subtype info.
4908 Remove some unnecessary casts.
4909 Fix uninitialized value of type in computing 'first, 'last, or 'length
4910 of array object.
4911 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4912 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4913 calls.
4914 Attributes are now exp_opcode values.
4915 Correct treatment of 'modulus.
4916 Better error message for taking 'length of wrong kind of type;
4917 improve comment.
4918 Change EVAL_NORMAL to noside for consistency.
4919 Use ada_value_binop for DIV, MOD, REM.
4920 Make special case out of array of length 0, since an argument
4921 of 0 upsets some platforms' malloc.
4922 Use OP_STRING instead of OP_ARRAY.
4923 For slice, add check that we have an array type before extracting
4924 a slice out of it. Avoids a SEGV.
4925 When evaluating an array slice, if the array type is a reference to
4926 an aligner type, then replace the aligner type by the actual type.
4927 Decomment disabled code.
4928 Remove some dead code.
4929 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4930 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4931 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4932 and UNOP_MBR to UNOP_IN_RANGE.
4933 If an array type has a parallel ___XVE type, then use it.
4934 Turn arrays into pointers for lvalue arrays.
4935 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4936 bounds error and handle 0-length slices.
4937 Use lim_warning.
4938 When selecting fields, apply ada_to_fixed_value (because the fields
4939 might have ___XVU or ___XVE encodings even if not dynamic.)
4940 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4941 (ada_is_system_address_type): New function.
4942
4943 (get_var_value): Use new interface to ada_lookup_symbol_list.
4944 (get_int_var_value): New interface.
4945 (to_fixed_range_type): Allow unknown bound, with warning.
4946 (ada_is_modular_type): Decomment disabled code.
4947 (ADA_OPERATORS): New definition.
4948 (ada_operator_length): New function.
4949 (ada_expr_op_name): New function.
4950 (ada_forward_operator_length): New function.
4951 (ada_dump_subexp_body): New function.
4952 (ada_print_subexp): New function.
4953 (ada_exp_descriptor): New constant.
4954 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4955 (ada_language_defn): Add ada_exp_descriptor entry.
4956 Change ada_parse => parse.
4957 Add post-parser entry.
4958 Use ada-specific non-local symbol lookup.
4959 Don't use C-style arrays.
4960 String lower-bound is 1.
4961 Decomment disabled code.
4962 (parse): New function.
4963 New fields ada_translate_error_message, ada_lookup_symbol,
4964 ada_lookup_minimal_symbol.
4965
4966 * ada-lang.h: Update copyright dates.
4967 Replace the mangle/demangle terminology throughout by the
4968 more appropriate encode/decode one.
4969 Include breakpoint.h.
4970 Forward declare struct partial_symbol, struct block.
4971 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4972 (EXTRACT_ADDRESS): Remove.
4973 (EXTRACT_INT): Remove.
4974 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4975 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4976 (MAX_RENAMING_CHAIN_LENGTH): Define.
4977 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4978
4979 (enum task_states): Remove.
4980 ada_task_states: Remove.
4981 (fat_string): Remove.
4982 (struct entry_call): Remove.
4983 (struct task_fields): Remove.
4984 (struct task_entry): Remove.
4985
4986 (struct ada_symbol_info): Define.
4987 (enum ada_attribute): Remove.
4988 (enum ada_operator): Define.
4989
4990 (ada_get_field_index): Declare.
4991 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4992 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4993 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4994 (ada_lookup_symbol_list): New interface.
4995 (ada_decode_symbol): Declare.
4996 (ada_decode): Declare.
4997 (ada_lookup_symbol): New interface.
4998 (ada_update_initial_language): Declare.
4999 (ada_lookup_simple_minsym): Declare.
5000 (user_select_syms): New interface.
5001 (ada_sals_for_line): Declare.
5002 (ada_is_tagged_type): New interface.
5003 (ada_tag_name): Declare.
5004 (ada_lookup_struct_elt_type): Remove declaration.
5005 (ada_search_struct_field): Remove declaration.
5006 (ada_attribute_name): New interface.
5007 (ada_is_system_address_type): Declare.
5008 (ada_to_fixed_value): Remove declaration.
5009 (ada_template_to_fixed_record_type_1): Declare.
5010 (get_int_var_value): New interface.
5011 (ada_find_any_symbol): Declare.
5012 (ada_find_renaming_symbol): Declare.
5013 (ada_mangle): Rename to ada_encode.
5014 (ada_simple_renamed_entity): Remove const.
5015 (ada_main_name): Declare.
5016 (get_current_task): Rename to ada_get_current_task.
5017 (get_entry_number): Remove declaration.
5018 (ada_report_exception_break): Remove declaration.
5019 (ada_print_exception_breakpoint_nontask): Declare.
5020 (ada_print_exception_breakpoint_task): Declare.
5021 (ada_find_printable_frame): Declare.
5022
5023 * ada-lex.l: Update copyright notices.
5024 Use xmalloc and xfree instead of malloc and free.
5025 Use new interface to name_lookup.
5026 Use new interface to
5027 ada_mangle=>ada_encode.
5028 Redo handling of '$...' variable to parallel current treatment
5029 in c-exp.y.
5030 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5031 digit_to_int, strtoulst, processInt, processReal, processId,
5032 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5033 yywrap): Protoize.
5034
5035 (processInt): Use cast to remove harmless warning.
5036 (processReal): Modify to get rid of compiler warning on scan formats.
5037
5038 (processId): Replace xmalloc with obstack_alloc for name and remove
5039 call to ada_name_string_cleanup.
5040 Remove obsolete disabled code.
5041 (name_lookup): Ditto.
5042 New interface.
5043 Use obsavestring on temp_parse_space instead of savestring
5044 on name, and remove call to ada_name_string_cleanup.
5045 Free string returned from ada_simple_renamed_entity.
5046 Use new interface to ada_lookup_symbol_list.
5047 Decomment disabled code.
5048 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5049 not types.
5050 When a type name lookup succeeds as a result of
5051 lookup_primitive_typename, check for regular type entry that has not
5052 yet been read in.
5053 Limit length of chain of renamed symbols we are willing to follow.
5054 Do not break names beginning with "standard__" into segments.
5055 (block_lookup): Use new interface to ada_lookup_symbol_list.
5056
5057 * ada-typeprint.c: Update copyright notice.
5058 (demangled_type_name): Rename to decoded_type_name.
5059 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5060 (print_range_bound): Correct handling of negative
5061 bounds that make the index type looked unsigned under STABS.
5062 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5063 (print_range_type_named): Use the builtin int type if no type
5064 corresponding to the given type name could be found.
5065 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5066 Add some bullet-proofing.
5067 (print_variant_clauses): Allow for variant branches with ___XVU
5068 encodings that are not dynamic fields.
5069 Use new interface to ada_is_tagged_type.
5070 (print_record_type): Allow for fields with ___XVE encodings that
5071 are not dynamic fields.
5072 Use new interface to ada_is_tagged_type.
5073 (ada_print_type): ada_is_array_descriptor =>
5074 ada_is_array_descriptor_type.
5075
5076 * ada-valprint.c: Update copyright notice.
5077 Include gdb_string.h
5078 Include infcall.h
5079 (ui_memcpy): New function.
5080 (ada_print_floating): New function.
5081 (ada_print_str): Order arguments correctly.
5082 Correct handling of empty arrays and arrays of 0-length items.
5083 ada_is_array_descriptor => ada_is_array_descriptor_type
5084 Print values of type System.Address in hexadecimal format.
5085 Use ada_print_floating to print floating-point numbers in Ada format.
5086 Print class tag values with type names.
5087 No longer print the address of reference values. Avoids
5088 a potential confusion.
5089 (ada_value_print): Stop printing the object type for reference
5090 values, but preserve that behavior for access types. Avoids
5091 a potential confusion.
5092 Simplify one conditional expression, as the first part is now
5093 necessarily true.
5094 ada_is_array_descriptor => ada_is_array_descriptor_type
5095 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5096
f65f91b5
JB
50972004-06-01 Jim Blandy <jimb@redhat.com>
5098
5099 * ppc-tdep.h: Delete unused 'regoff' member.
5100 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5101
d4687fa0
MC
51022004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5103
5104 Fix PR symtab/1661.
5105 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5106 (hpread_read_struct_type): Likewise.
5107
de169ec9
AC
51082004-06-01 Andrew Cagney <cagney@gnu.org>
5109
c6902d46
AC
5110 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5111 instead of xasprintf.
5112 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5113 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5114 (mi_cmd_data_list_register_names)
5115 (mi_cmd_data_list_changed_registers)
5116 (mi_cmd_data_list_register_values)
5117 (get_register, mi_cmd_data_write_register_values)
5118 (mi_cmd_data_write_register_values)
5119 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5120 (mi_cmd_target_download, mi_cmd_target_select)
5121 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5122 (mi_execute_cli_command, mi_execute_async_cli_command)
5123 (mi_execute_async_cli_command): Ditto.
5124 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5125 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5126
6085fc2d
AC
5127 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5128 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5129 error_last_message instead of mi_error_last_message.
5130 * mi/mi-main.c (mi_error_last_message): Delete function.
5131
de169ec9
AC
5132 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5133 "invalid number of columns" error. Delete redundant "out of
5134 memory" check.
5135
1fc7d519
MK
51362004-05-31 Mark Kettenis <kettenis@gnu.org>
5137
6cfb2041
MK
5138 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5139 (gregset_t, fpregset_t): Remove typedefs.
5140 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5141 (REG_OFFSET): Rename argument.
5142 (i386bsd_r_reg_offset): Rename from reg_offset.
5143 (REG_ADDR): Remove macro.
5144 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5145 functions.
5146 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5147 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5148 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5149 instead of supply_gregset.
5150 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5151 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5152 instead of fill_gregset.
5153 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5154
1fc7d519
MK
5155 * i386bsd-nat.c: Don't include "gregset.h".
5156 (supply_gregset, fill_gregset): Make static.
5157 (supply_fpregset, fill_fpregset): Remove.
5158 * Makefile.in (i386bsd-nat.o): Update dependencies.
5159
2c34abbe
MK
51602004-05-30 Mark Kettenis <kettenis@gnu.org>
5161
448724fb
MK
5162 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5163 "gdb_assert.h". Con't include "gregset.h".
5164 (fbsd_make_corefile_notes): Use regset-based core file support
5165 instead off fill_gregset and fill_fpregset.
5166 * Makefile.in (fbsd-proc.o): Update dependencies.
5167
5ca8ca7c
MK
5168 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5169 instructions.
5170 (m88k_frame_prev_register): Simplify code a bit.
5171
593adc23
MK
5172 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5173 (amd64_collect_fpregset): New function.
5174 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5175
8d1b517b
MK
5176 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5177
7fdafb5a
MK
5178 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5179 (i386_collect_gregset): New function.
5180 (i386_supply_fpregset): Adjust comment.
5181 (i386_collect_fpregset): New function.
5182 (i386_regset_from_core_section): Use i386_collect_gregset and
5183 i386_collect_fpregset.
5184
8693c419
MK
5185 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5186 handle VALUEP being null.
5187
2c34abbe
MK
5188 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5189
45d134d8
MK
51902004-05-29 Mark Kettenis <kettenis@gnu.org>
5191
1698f4e7
MK
5192 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5193
45d134d8
MK
5194 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5195 assembler in OpenBSD 3.5-current.
5196 (amd64obsd_sigcontext_addr): Likewise.
5197
691d145a
JB
51982004-05-28 Jim Blandy <jimb@redhat.com>
5199
5200 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5201 register set, so our regcache isn't declared "legacy" and our E500
5202 pseudoregister read and write functions aren't ignored.
5203 (rs6000_register_byte, rs6000_register_raw_size,
5204 rs6000_register_virtual_type, rs6000_register_convertible,
5205 rs6000_register_convert_to_virtual,
5206 rs6000_register_convert_to_raw): Deleted.
5207 (rs6000_register_type, rs6000_convert_register_p,
5208 rs6000_register_to_value, rs6000_value_to_register): New
5209 functions.
5210 (rs6000_gdbarch_init): Don't register
5211 gdbarch_deprecated_register_size,
5212 gdbarch_deprecated_register_bytes,
5213 gdbarch_deprecated_register_byte,
5214 gdbarch_deprecated_register_raw_size,
5215 gdbarch_deprecated_register_virtual_type,
5216 gdbarch_deprecated_register_convertible,
5217 gdbarch_deprecated_register_convert_to_virtual, or
5218 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5219 register gdbarch_register_type, gdbarch_convert_register_p,
5220 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5221
18ed0c4e
JB
52222004-05-26 Jim Blandy <jimb@redhat.com>
5223
5224 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5225 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5226 functions, updated to match the register numberings used in GCC.
5227 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5228 rs6000_dwarf2_reg_to_regnum as register number conversions
5229 functions for STABS and Dwarf2.
5230
779af9e3
RC
52312004-05-26 Randolph Chung <tausq@debian.org>
5232
5233 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5234 in header file.
5235
c23968a2
JB
52362004-05-25 Joel Brobecker <brobecker@gnat.com>
5237
5238 * NEWS: Document new "start" command.
5239
3a7d1c27
RC
52402004-05-25 Randolph Chung <tausq@debian.org>
5241
5242 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5243 hppa-linux.
5244
43613416
RC
52452004-05-25 Randolph Chung <tausq@debian.org>
5246
5247 * hppa-hpux-tdep.c (offsetof): Define.
5248 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5249 (hppa32_hpux_frame_base_before_sigtramp)
5250 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5251 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5252 (hppa64_hpux_frame_base_before_sigtramp)
5253 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5254 functions.
5255 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5256 (hppa_hpux_sigtramp_frame_unwind_cache)
5257 (hppa_hpux_sigtramp_frame_this_id)
5258 (hppa_hpux_sigtramp_frame_prev_register)
5259 (hppa_hpux_sigtramp_frame_unwind)
5260 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5261 (hppa_hpux_init_abi): Register sigtramp unwinder.
5262 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5263
6d1be3f1
RC
52642004-05-25 Randolph Chung <tausq@debian.org>
5265
5266 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5267 and multiple stack unwinds.
5268 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5269
97c34f65
AC
52702004-05-25 Andrew Cagney <cagney@gnu.org>
5271
5272 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5273 * symfile-mem.h: Delete file.
5274 * symfile-mem.c: Do not include "symfile-mem.h".
5275 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5276 "struct bfd_section". When an error do not bother returning NULL.
5277 (add_symbol_file_from_memory_command): Use "struct bfd" and
5278 "struct bfd_section".
5279 * Makefile.in (symfile_mem_h): Delete.
5280 (symfile-mem.o): Update dependencies.
5281
e23cbd82
NR
52822004-05-25 Nick Roberts <nickrob@gnu.org>
5283
5284 * gdb-mi.el: New file.
5285
20d2ca3e
AC
52862004-05-25 Andrew Cagney <cagney@gnu.org>
5287
5288 * inftarg.c: Include "observer.h".
5289 (child_attach, child_create_inferior): Notify inferior_created.
5290 * corelow.c: Include "observer.h".
5291 (core_open): Notify inferior_created.
5292 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5293
c27cda74
AC
52942004-05-25 Andrew Cagney <cagney@gnu.org>
5295
5296 * target.h (struct target_ops): Add from_tty to
5297 to_create_inferior.
5298 (target_create_inferior, find_default_create_inferior): Update.
5299 * infcmd.c (run_command): Update.
5300 * wince.c (child_create_inferior): Update.
5301 * win32-nat.c (child_create_inferior): Update.
5302 * uw-thread.c (uw_thread_create_inferior): Update.
5303 * thread-db.c (thread_db_create_inferior): Update.
5304 * target.c (debug_to_create_inferior)
5305 (find_default_create_inferior): Update.
5306 (maybe_kill_then_create_inferior): Update.
5307 * sol-thread.c (sol_thread_create_inferior): Update.
5308 * remote.c (extended_remote_async_create_inferior)
5309 (extended_remote_create_inferior): Update.
5310 * remote-vx.c (vx_create_inferior): Update.
5311 * remote-st.c (st2000_create_inferior): Update.
5312 * remote-sim.c (gdbsim_create_inferior): Update.
5313 * remote-sds.c (sds_create_inferior): Update.
5314 * remote-rdp.c (remote_rdp_create_inferior): Update.
5315 * remote-rdi.c (arm_rdi_create_inferior): Update.
5316 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5317 * remote-e7000.c (e7000_create_inferior): Update.
5318 * procfs.c (procfs_create_inferior): Update.
5319 * ocd.c (ocd_create_inferior): Update.
5320 * ocd.h (ocd_create_inferior): Update.
5321 * nto-procfs.c (procfs_create_inferior): Update.
5322 * monitor.c (monitor_create_inferior): Update.
5323 * lin-lwp.c (lin_lwp_create_inferior): Update.
5324 * inftarg.c (child_create_inferior): Update.
5325 * hpux-thread.c (hpux_thread_create_inferior): Update.
5326 * gnu-nat.c (gnu_create_inferior): Update.
5327
1db2a798
AC
53282004-05-25 Andrew Cagney <cagney@gnu.com>
5329
5330 * MAINTAINERS: Update e-mail address.
5331
007d08bb
RC
53322004-05-24 Randolph Chung <tausq@debian.org>
5333
5334 * thread.c (info_threads_command, thread_apply_all_command)
5335 (thread_apply_command, thread_command, do_captured_thread_select):
5336 Remove HPUXHPPA-specific code.
5337
69e7b95e
RC
53382004-05-24 Randolph Chung <tausq@debian.org>
5339
5340 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5341 unused symbols.
5342 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5343 references.
5344
a4d5f2e0
JB
53452004-05-24 Joel Brobecker <brobecker@gnat.com>
5346
5347 * infcmd.c (kill_if_already_running): New function, extracted
5348 from run_command().
5349 (run_command): Replace extracted code by call to
5350 kill_if_already_running().
5351 (start_command): New function.
5352 (_initialize_infcmd): Add "start" command.
5353
bf2ca189
MK
53542004-05-24 Mark Kettenis <kettenis@gnu.org>
5355
5356 Add OpenBSD/m88k support.
5357 * NEWS (New native configurations): Mention OpenBSD/m88k.
5358 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5359 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5360 * Makefile.in (m88k_tdep_h): New variable.
5361 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5362 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5363 * configure.host: Add m88*-*-openbsd*.
5364 * configure.tgt: Add m88*-*-openbsd*.
5365
80fadb11
JB
53662004-05-24 Jim Blandy <jimb@redhat.com>
5367
5368 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5369 to approve changes.
5370
19e2d14b
KB
53712004-05-24 Kevin Buettner <kevinb@redhat.com>
5372
5373 * symtab.c (fixup_section): Search section table when lookup by
5374 name fails.
5375
1b07b470
RC
53762004-05-24 Randolph Chung <tausq@debian.org>
5377
5378 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5379 be "small_struct".
5380
368702b1
MK
53812004-05-24 Mark Kettenis <kettenis@gnu.org>
5382
5df97fde
MK
5383 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5384 register number in regcache_raw_collect call.
5385 (m68kbsd_collect_fpregset): Likewise.
5386 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5387
368702b1
MK
5388 * regset.h (struct regset): Add back `regset' member.
5389
a770d4ec
MK
53902004-05-23 Mark Kettenis <kettenis@gnu.org>
5391
70f9f479
MK
5392 * configure.in: Check for td_pcb in `struct thread'.
5393 * configure, config.in: Regenerated.
5394
2e16d79e
MK
5395 * dpx2-nat.c: Remove file.
5396 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5397 (dpx2-nat.o): Remove dependencies.
5398
492cf391
MK
5399 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5400 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5401 (amd64obsd_supply_pcb): New function.
5402 (_initialize_amd64obsd_nat): Enable libkvm interface.
5403 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5404 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5405 (LOADLIBES): New variable.
5406
a770d4ec
MK
5407 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5408 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5409 (sparc32nbsd_supply_pcb): New function.
5410 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5411 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5412 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5413 (LOADLIBES): New variable.
5414
9ea75c57
MK
54152004-05-22 Mark Kettenis <kettenis@gnu.org>
5416
2e0c3539
MK
5417 * bsd-kvm.c, bsd-kvm.h: New files.
5418 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5419 "bsd-kvm.h".
5420 (i386fbsd_supply_pcb): New function.
5421 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5422 (i386fbsd-nat.o): Update dependencies.
5423 (bsd_kvm_h): New variable.
5424 (bsd-kvm.o): New dependency.
5425 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5426 (LOADLIBES): New variable.
5427
9ea75c57
MK
5428 * regset.c: Tweak comment.
5429 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5430 macro.
5431 * regset.h: Update copyright year.
5432 (struct regset): Remove `descr' member, add `gdbarch' member.
5433 (regset_alloc): Adjust prototype and comment.
5434 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5435 (i386_supply_fpregset): Likewise.
5436 (i386_regset_from_core_section): Update call to regset_alloc.
5437 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5438 REGSET->arch.
5439 (i386obsd_aout_regset_from_core_section): Update call to
5440 regset_alloc.
5441 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5442 REGSET->arch.
5443 (i386nbsd_aout_regset_from_core_section): Update call to
5444 regset_alloc.
5445 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5446 REGSET->arch.
5447 (amd64_regset_from_core_section): Update call to regset_alloc.
5448 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5449 REGSET->arch.
5450 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5451 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5452 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5453 (sparc32nbsd_init_abi): Update call to regset_alloc.
5454 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5455 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5456 (sparc64obsd_init_abi): Update call to regset_alloc.
5457 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5458 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5459 (sparc64nbsd_init_abi): Update call to regset_alloc.
5460 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5461 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5462 (sparc64fbsd_init_abi): Update call to regset_alloc.
5463
867e2dc5
JB
54642004-05-22 Jim Blandy <jimb@redhat.com>
5465
5466 * ppc-tdep.h (spe_register_p): New declaration.
5467 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5468 ppc_spefscr_regnum.
5469 * rs6000-tdep.c (spe_register_p): New function.
5470 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5471 spefscr.
5472 (rs6000_gdbarch_init): Initialize the new members of the tdep
5473 structure.
5474
617a4cba
JB
54752004-05-21 Jim Blandy <jimb@redhat.com>
5476
0397dee1
JB
5477 * ppc-linux-nat.c (fetch_register): Move code back to be next
5478 to the comment that describes it. (Moved code, instead of
5479 comment, for symmetry with store_register.)
5480
617a4cba
JB
5481 Allocate regset structures in the gdbarch's obstack, not using
5482 xmalloc.
5483 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5484 Add 'arch' argument. Allocate the regset on arch's obstack, not
5485 using xmalloc.
5486 * regset.h (regset_alloc): Update declaration.
5487 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5488 gdbarch argument.
5489 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5490 * i386-tdep.c (i386_regset_from_core_section): Same.
5491 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5492 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5493 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5494 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5495 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5496 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5497
9aa3914d
JB
54982004-05-21 Joel Brobecker <brobecker@gnat.com>
5499
5500 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5501
99c87dab
JB
55022004-05-21 Jim Blandy <jimb@redhat.com>
5503
5504 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5505 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5506
c2b6b4aa
JB
55072004-05-20 Jim Blandy <jimb@redhat.com>
5508
5509 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5510
144529d0
MK
55112004-05-20 Mark Kettenis <kettenis@gnu.org>
5512
5513 * regset.h: Make prototype const-correct.
5514 * regset.c (regset_xmalloc): Make const-correct.
5515
4725b721
PH
55162004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5517
5518 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5519 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5520 (symbol_search_name): Declare.
5521
5522 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5523 (iter_name_next_hashed): Ditto.
5524 (iter_name_next_linear): Ditto.
5525 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5526
5527 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5528 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5529 (symbol_search_name): New function.
5530
5531 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5532
5533 * minsyms.c (build_minimal_symbol_hash_tables): Change
5534 test for adding to demangled hash table to check for difference
5535 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5536
be07a590
JB
55372004-05-19 Jim Blandy <jimb@redhat.com>
5538
5539 Use a constructor function to create regset structures.
5540 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5541 (struct regset): Use supply_regset_ftype. Add new
5542 'collect_regset' member.
5543 (regset_xmalloc): New declaration.
5544 * regset.c: New file.
5545 * am64-tdep.c (amd64_regset_from_core_section): Use
5546 regset_xmalloc to construct regset structures.
5547 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5548 * i386-tdep.c (i386_regset_from_core_section): Same.
5549 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5550 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5551 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5552 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5553 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5554 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5555 * Makefile.in (COMMON_OBS): Add regset.o.
5556 (regset.o): New rule.
5557
604368f5
JB
55582004-05-19 Joel Brobecker <brobecker@gnat.com>
5559
5560 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5561 and pthread_cond_wait.c.
5562
82d69f8b
JB
55632004-05-18 Jim Blandy <jimb@redhat.com>
5564
5565 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5566 before the mach-specific switch, and then let the individual cases
5567 override the defaults, rather than leaving them uninitialized
5568 until the switch and then setting them in each case.
5569
5859efe5
RC
55702004-05-18 Randolph Chung <tausq@debian.org>
5571
5572 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5573 millicode functions.
5574
9ca80cf8
RC
55752004-05-18 Randolph Chung <tausq@debian.org>
5576
5577 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5578 references to dld_flags_buffer consistent.
5579
ed70ba00
RC
55802004-05-18 Randolph Chung <tausq@debian.org>
5581
5582 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5583 it for unwinding the stack.
5584
63100632
RC
55852004-05-18 Randolph Chung <tausq@debian.org>
5586
5587 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5588 Undefine these so we can overide them using gdbarch.
5589
090ccbb7
RC
55902004-05-18 Randolph Chung <tausq@debian.org>
5591
5592 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5593 handling for 64-bit HPUX (elf).
5594
594706e6
DJ
55952004-05-18 Daniel Jacobowitz <dan@debian.org>
5596
5597 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5598 constants.
5599 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5600 * ia64-tdep.c (examine_prologue): Likewise.
5601 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5602 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5603
e5483145
MK
56042004-05-18 Mark Kettenis <kettenis@gnu.org>
5605
5606 * vax-tdep.c (vax_return_value): Implement
5607 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5608
caed1a45
MK
56092004-05-17 Mark Kettenis <kettenis@gnu.org>
5610
5611 * vax-tdep.c (vax_return_value): Fix typo.
5612
3c0b7db2
AC
56132004-05-17 Andrew Cagney <cagney@redhat.com>
5614
5aae53e5
AC
5615 * MAINTAINERS: Mark Salter was also responsible for
5616 testsuite/config/
5617
3c0b7db2
AC
5618 * NEWS: Mention signal fixes.
5619
22b0923d
RC
56202004-05-17 Randolph Chung <tausq@debian.org>
5621
5622 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5623 check to see if we are unwinding an export stub. Export stubs clobber
5624 the %rp in the call path and stores the original rp in a stack slot.
5625
22f2b2f3
JB
56262004-05-17 Jim Blandy <jimb@redhat.com>
5627
5628 * MAINTAINERS: Update address for J.T. Conklin.
5629
cea96d64
RC
56302004-05-17 Randolph Chung <tausq@debian.org>
5631
5632 * hppa-tdep.c: Remove superfluous #include's.
5633 * Makefile.in (hppa-tdep.o): Update dependencies.
5634
f08f6a4a
RC
56352004-05-17 Randolph Chung <tausq@debian.org>
5636
5637 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5638 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5639 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5640 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5641 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5642 Remove static function declarations.
5643
51da707a
MK
56442004-05-17 Mark Kettenis <kettenis@gnu.org>
5645
caed1a45
MK
5646 * alphabsd-nat.c: Update copyright year.
5647 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5648
c0c2b0db
MK
5649 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5650 and M68K_A2_REGNUM.
5651
51da707a
MK
5652 * m68k-tdep.c (m68k_svr4_return_value): Implement
5653 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5654
8d027a04
MK
56552004-05-16 Mark Kettenis <kettenis@gnu.org>
5656
5657 * sol-thread.c Update copyright year. Fix various coding
5658 standards violations. Tweak a few comments.
5659 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5660 Delete prototypes.
5661
0d99fdb9
RC
56622004-05-15 Randolph Chung <tausq@debian.org>
5663
5664 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5665 as pointer instead of array reference since HPUX compiler does
5666 not accept unsized array arguments.
5667 * somsolib.c (dld_flags_buffer): Use constant array size.
5668
f7e3843a
MK
56692004-05-15 Mark Kettenis <kettenis@gnu.org>
5670
0fe85704
MK
5671 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5672 offset with decimal offset.
5673 (amd64obsd_sigcontext_addr): Return correct address for entire
5674 signal trampoline.
5675
a54f9a00
MK
5676 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5677 instead of get_frame_base.
5678
feae6502
MK
5679 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5680 (fill_gregset): Use regcache_raw_collect.
5681
0382d099
MK
5682 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5683 ppcobsd-tdep.c.
5684
f7e3843a
MK
5685 * config/sparc/tm-nbsd64.h: Remove file.
5686 * config/tm-sunos.h: Remove file.
5687
773df3e5
JB
56882004-05-15 Joel Brobecker <brobecker@gnat.com>
5689
5690 * rs6000-tdep.c (store_param_on_stack_p): New function,
5691 an improved version of some code extracted from skip_prologue().
5692 (skip_prologue): Use store_param_on_stack_p() to detect
5693 instructions saving a parameter on the stack. Detect when r0
5694 is used to save a parameter.
5695 Do not mark "li rx, SIMM" instructions as part of the prologue,
5696 unless the following instruction is also part of the prologue.
5697
95918acb
AC
56982004-05-14 Andrew Cagney <cagney@redhat.com>
5699
06f32659
AC
5700 * infrun.c (handle_inferior_event): Simplify
5701 STEP_OVER_UNDEBUGGABLE.
5702
95918acb
AC
5703 * infrun.c (handle_step_into_function): Delete function.
5704 (handle_inferior_event): Inline calls to
5705 handle_step_into_function.
5706
40711ff1 57072004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5708
5709 * rs6000-nat.c: Fix a comment.
5710
02f60eae
JB
57112004-05-12 David Anderson <davea@sgi.com>
5712
5713 Committed by Jim Blandy <jimb@redhat.com>:
5714 * regcache.c (struct regcache_descr): fix comment spelling.
5715
552e377b
JB
57162004-05-13 J. Brobecker <brobecker@gnat.com>
5717
5718 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5719 Fixes a link link failure.
5720
349766b2
JB
57212004-05-13 J. Brobecker <brobecker@gnat.com>
5722
5723 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5724 error that was causing the build to fail.
5725
0d4d5484
JB
57262004-05-13 J. Brobecker <brobecker@gnat.com>
5727
5728 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5729 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5730
0b30808c
AC
57312004-05-13 Andrew Cagney <cagney@redhat.com>
5732
5733 * infrun.c (handle_inferior_event): Check for
5734 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5735 calls. Update comments.
5736
cdf2c5f5
JB
57372004-05-13 Jim Blandy <jimb@redhat.com>
5738
063715bf
JB
5739 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5740 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5741 (store_regs_user_thread, store_regs_kernel_thread): Use
5742 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5743 * ppc-linux-nat.c (fill_gregset): Same.
5744 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5745 (ppc_linux_sigtramp_cache): Same.
5746 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5747 (ppcnbsd_sigtramp_cache_init): Same.
5748 * rs6000-nat.c (fetch_core_registers): Same.
5749 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5750 (rs6000_frame_cache): Same.
5751
cdf2c5f5
JB
5752 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5753 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5754 of assuming that the gprs are numbered starting with zero.
5755 * ppc-linux-nat.c (fill_gregset): Same.
5756 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5757 * ppcnbsd-nat.c (getregs_supplies): Same.
5758 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5759 * rs6000-nat.c (fetch_core_registers): Same.
5760 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5761
450bd37b
MS
57622004-05-07 Michael Snyder <msnyder@redhat.com>
5763
5764 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5765 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5766
4a72a2a6
AC
57672004-05-13 Andrew Cagney <cagney@redhat.com>
5768
5769 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5770
8edfa926
BM
57712004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5772
5773 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5774 base_address for shared libraries.
5775
723e0e3d
BM
57762004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5777
5778 * MAINTAINERS (write after approval): Add myself.
5779
00d4360e
UW
57802004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5781
5782 * breakpoint.c (bpstat_stop_status): Add new argument
5783 STOPPED_BY_WATCHPOINT. Use it instead of testing
5784 target_stopped_data_address agaist 0 to check whether
5785 or not we stopped due to a hardware watchpoint.
5786 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5787 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5788 with new argument.
5789
ec76baa5
JB
57902004-05-12 Jim Blandy <jimb@redhat.com>
5791
5792 * configure.in: When checking whether we should use the -bbigtoc
5793 option, don't forget to restore the original value of LDFLAGS.
5794 * configure: Regenerated.
5795
f2c9ca08
AC
57962004-05-12 Andrew Cagney <cagney@redhat.com>
5797
5798 * thread.c (load_infrun_state): Delete step_sp.
5799 * infrun.c (context_switch): Ditto.
5800 * inferior.h (step_sp): Ditto.
5801 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5802 * gdbthread.h (struct thread_info, save_infrun_state)
5803 (restore_infrun_state): Ditto.
5804
090ddb2a
UW
58052004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5806
5807 * MAINTAINERS (write after approval): Add myself.
5808
8aad930b
AC
58092004-05-12 Andrew Cagney <cagney@redhat.com>
5810
5811 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5812 eliminate reference to step_sp.
5813 (struct execution_control_state, init_execution_control_state)
5814 (handle_inferior_event, keep_going): Delete update_step_sp and
5815 step_sp.
5816 * infcmd.c (step_sp): Note that variable is unused.
5817
922d5ae0
AC
58182004-05-11 Andrew Cagney <cagney@redhat.com>
5819
5820 * infrun.c (step_over_function): Delete function.
5821 (handle_step_into_function): Use insert_step_resume_breakpoint.
5822 (insert_step_resume_breakpoint): Fix assertion.
5823
017c5ca5
NR
58242004-05-11 Nick Roberts <nickrob@gnu.org>
5825
5826 * utils.c (defaulted_query): Just use the normal query input type
5827 when printing the annotations.
5828
42edda50
AC
58292004-05-11 Andrew Cagney <cagney@redhat.com>
5830
5831 * infrun.c (handle_inferior_event): Simplify code handling
5832 step-into or return-from a signal trampoline.
5833
d28b44a7
AC
58342004-05-11 Andrew Cagney <cagney@redhat.com>
5835
5836 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5837 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5838
383f0f5b
JB
58392004-05-10 Jim Blandy <jimb@redhat.com>
5840
d0b57c3a
JB
5841 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5842 with a call to internal_error.
5843
383f0f5b
JB
5844 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5845 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5846 processor variant lacks those registers.
5847 (ppc_floating_point_unit_p): Change description to make it clear
5848 that this returns info about the ISA, not the ABI.
5849 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5850 return true or false by checking tdep->ppc_fp0_regnum and
5851 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5852 arch/mach switching done in rs6000_gdbarch_init; it's better to
5853 keep that logic there, and just check the results here.
5854 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5855 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5856 floating-point registers.
5857 (ppc_supply_fpregset, ppc_collect_fpregset)
5858 (rs6000_push_dummy_call, rs6000_extract_return_value)
5859 (rs6000_store_return_value): Assert that we have floating-point
5860 registers.
5861 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5862 (rs6000_frame_cache): Don't note the locations at which
5863 floating-point registers were saved if we have no fprs.
5864 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5865 registers.
5866 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5867 (store_regs_user_thread, store_regs_kernel_thread): Only call
5868 supply_fprs / fill_fprs if we actually have floating-point
5869 registers.
5870 (special_register_p): Check ppc_fpscr_regnum before matching
5871 against it.
5872 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5873 supply / collect fpscr if we don't have it.
5874 * ppc-bdm.c: #include "gdb_assert.h".
5875 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5876 have floating-point registers, since I can't test this code on
5877 FP-free systems to adapt it.
5878 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5879 fpscr and floating point register numbers if they don't exist.
5880 (fetch_register): Assert that we have floating-point registers
5881 before we reach the code that handles them.
5882 (store_register): Same. And use tdep instead of calling
5883 gdbarch_tdep again.
5884 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5885 don't have them.
5886 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5887 fprs and fpscr if we don't have them.
5888 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5889 don't have them.
5890 * ppcnbsd-nat.c: #include "gdb_assert.h".
5891 (getfpregs_supplies): Assert that we have floating-point registers.
5892 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5893 * ppcobsd-tdep.c: #include "gdb_assert.h".
5894 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5895 have floating-point registers.
5896 * rs6000-nat.c (regmap): Don't match against the fpscr and
5897 floating point register numbers if they don't exist.
5898 (fetch_inferior_registers, store_inferior_registers,
5899 fetch_core_registers): Only fetch / store / supply the
5900 floating-point registers and the fpscr if we have them.
5901 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5902 (ppcobsd-tdep.o): Update dependencies.
5903
15960608
AC
59042004-05-10 Andrew Cagney <cagney@redhat.com>
5905
5906 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5907 (context_switch): Do not switch through_sigtramp_breakpoint.
5908 * gdbthread.h (save_infrun_state, load_infrun_state)
5909 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5910 and structure member.
5911 * thread.c (load_infrun_state, save_infrun_state): Update.
5912
5ab5aa0f
MK
59132004-05-10 Mark Kettenis <kettenis@gnu.org>
5914
5915 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5916
da78b0e7
DJ
59172004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5918
5919 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5920 throughout.
5921 * aclocal.m4: Regenerate.
5922
cca0d3b0
NW
59232004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5924
5925 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5926
d303a6c7
AC
59272004-05-10 Andrew Cagney <cagney@redhat.com>
5928
5929 * infrun.c (check_sigtramp2): Delete function.
5930 (handle_inferior_event): When single stepping, and taking a
5931 signal, set a breakpoint at the signal return address. Delete
5932 redundant calls to check_sigtramp2.
5933 (insert_step_resume_breakpoint): New function.
5934 (through_sigtramp_breakpoint, handle_inferior_event)
5935 (follow_exec, wait_for_inferior, fetch_inferior_event)
5936 (currently_stepping, keep_going): Delete most uses of
5937 through_sigtramp_breakpoint, not that it should be deleted.
5938 (delete_breakpoint_current_contents): Delete function.
5939
03f4cc20
RC
59402004-05-10 Randolph Chung <tausq@debian.org>
5941
5942 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5943 target.
5944 * config/pa/tm-linux.h: New file.
5945
37fc812e
DJ
59462004-05-10 Daniel Jacobowitz <drow@mvista.com>
5947
5948 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5949 of prefixes. Don't print the prefix twice in the CLI.
5950
26c0b942
JB
59512004-05-10 Jim Blandy <jimb@redhat.com>
5952
2e56e9c1
JB
5953 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5954 collect all the gprs.
5955
26c0b942
JB
5956 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5957 loop collecting gprs.
5958
dc497459
AC
59592004-05-09 Andrew Cagney <cagney@redhat.com>
5960
5961 * remote-vx.c (net_step): Delete step-range code.
5962 * remote.c (remote_resume, init_all_packet_configs)
5963 (set_remote_protocol_E_packet_cmd)
5964 (show_remote_protocol_E_packet_cmd)
5965 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5966 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5967 (show_remote_protocol_e_packet_cmd): Ditto.
5968
0543f387
MK
59692004-05-09 Mark Kettenis <kettenis@gnu.org>
5970
c481d1ca
MK
5971 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5972
f626a069
MK
5973 * hppa-tdep.h: Update copyright year.
5974 (struct trad_frame_saved_reg): Add opaque declaration.
5975
6fa57a7d
MK
5976 * amd64-tdep.c (amd64_return_value): Implement
5977 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5978
e47577ab
MK
5979 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5980 (m68k_value_to_register): New functions.
5981 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5982 value_to_register.
5983
31db7b6c
MK
5984 * defs.h (enum return_value_convention): Add
5985 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5986 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5987 * infcmd.c (legacy_return_value): New function.
5988 (print_return_value): Rwerite to implement
5989 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5990 * values.c (using_struct_return): Check for inequality to
5991 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5992 RETURN_VALUE_STRUCT_CONVENTION.
5993 * i386-tdep.c (i386_return_value): Implement
5994 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5995
0543f387
MK
5996 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5997 include "symtab.h", "opcode/vax.h" and "inferior.h".
5998 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5999 to read_memory_unsigned_integer.
6000 (vax_gdbarch_init): Reorder.
6001 (_initialize_vax_tdep): Spell out prototype.
6002 * Makefile.in (vax-tdep.o): Update dependencies.
6003
0c93b7b6
AC
60042004-05-08 Andrew Cagney <cagney@redhat.com>
6005
e6b55ae2
AC
6006 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6007 * target.c (target_detach, target_disconnect): Ditto.
6008
1ac839b8
AC
6009 * infcall.c (call_function_by_hand): When no
6010 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6011 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6012 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6013 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6014 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6015
28954179
AC
6016 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6017 * gdbarch.h, gdbarch.c: Re-generate.
6018 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6019 deprecated_fix_call_dummy.
6020 * v850-tdep.c (v850_gdbarch_init): Ditto.
6021 * infcall.c (call_function_by_hand): Do not call
6022 DEPRECATED_FIX_CALL_DUMMY.
6023
434b87dd
AC
6024 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6025 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6026 * gdbarch.h, gdbarch.c: Re-generate.
6027 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6028 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6029 deprecated_sizeof_call_dummy_words.
6030 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6032 * v850-tdep.c (v850_gdbarch_init): Ditto.
6033 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6034 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6035 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6036 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6037 * arch-utils.h (legacy_call_dummy_words)
6038 (legacy_sizeof_call_dummy_words): Delete declarations.
6039 * arch-utils.c (legacy_call_dummy_words)
6040 (legacy_sizeof_call_dummy_words): Delete variables.
6041
58d28df8
AC
6042 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6043 * gdbarch.h, gdbarch.c: Re-generate.
6044 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6045 * infcall.c (call_function_by_hand): Eliminate call to
6046 DEPRECATED_PUSH_DUMMY_FRAME.
6047 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6048 push_dummy_frame.
6049 (ns32k_push_dummy_frame): Delete function.
6050
e4a2df64
AC
6051 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6052 deprecated_call_dummy_breakpoint_offset or
6053 deprecated_call_dummy_start_offset.
6054 * dummy-frame.c, arm-tdep.c: Update comments.
6055 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6056 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6057 * gdbarch.h, gdbarch.c: Re-generate.
6058
d3712828
AC
6059 * infcall.c (legacy_push_dummy_code): Delete function.
6060 (push_dummy_code): Delete call.
6061
7a882905
AC
6062 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6063 * gdbarch.h, gdbarch.c: Re-generate.
6064 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6065 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6066 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6067 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6068
0ec5872b
AC
6069 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6070 (struct frame_info): Delete opaque declaration.
6071 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6072 * frame.c (get_frame_type): Delete call.
6073
0c93b7b6
AC
6074 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6075 pc_in_call_dummy.
6076 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6077 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6078
75536971
MK
60792004-05-08 Mark Kettenis <kettenis@gnu.org>
6080
527ca6bb
MK
6081 * alphanbsd-tdep.c: Include "gdb_string.h".
6082 * armnbsd-tdep.c: Update copyright year.
6083 Include "gdb_string.h".
6084 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6085 dependencies.
6086
d39fdc61
MK
6087 * delta68-nat.c: Remove file.
6088 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6089 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6090 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6091 (delta68-nat.o): Remove dependency.
6092
75536971
MK
6093 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6094 function.
6095 (m68k_gdbarch_init): Don't set
6096 deprecated_frameless_function_invocation.
6097
f4ca1d1f
RC
60982004-05-07 Randolph Chung <tausq@debian.org>
6099
6100 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6101 read_memory_nobpt for code reading when doing frame unwinding.
6102 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6103
2f0e8c7a
RC
61042004-05-07 Randolph Chung <tausq@debian.org>
6105
6106 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6107 instead of sp, handle sigaltstack case.
6108 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6109 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6110 signal handler and not that of the caller.
6111 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6112 hppa_linux_sigtramp_find_sigcontext.
6113
959464ff
RC
61142004-05-07 Randolph Chung <tausq@debian.org>
6115
6116 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6117 hppa-linux-nat.c.
6118 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6119 * hppa-linux-nat.c (fetch_register, store_register): Define.
6120 (fetch_inferior_registers, store_inferior_registers): Define.
6121 (supply_gregset): Add comment and clean up some unneeded code.
6122 (fill_gregset): Add comment and fix so that it saves registers in
6123 the right place in the gregset.
6124 (fill_fpregset): Fix buffer overrun problem.
6125 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6126
0da28f8a
RC
61272004-05-07 Randolph Chung <tausq@debian.org>
6128
6129 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6130 do common handling of the pcoqt register.
6131 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6132 to use helper function.
6133 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6134 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6135 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6136 generic fallback unwinder when all else fails.
6137 (hppa_gdbarch_init): Add fallback sniffer.
6138 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6139 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6140 to use helper function.
6141
b9ec757a
JB
61422004-05-08 Joel Brobecker <brobecker@gnat.com>
6143
6144 * config/djgpp/fnchange.lst: Add translation rules for
6145 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6146
756e95f1
MK
61472004-05-08 Mark Kettenis <kettenis@gnu.org>
6148
6149 * frame.c (get_prev_frame_1): Work around GCC bug.
6150 * frame.h: Add comment about GCC bug.
6151
2b4855ab
AC
61522004-05-07 Andrew Cagney <cagney@redhat.com>
6153
6154 * observer.c: Include "commands.h" and "gdbcmd.h".
6155 (observer_debug, _initialize_observer): Add the
6156 command "set/show debug observer".
6157 * observer.sh: When observer debugging, log notify calls.
6158 * Makefile.in (observer.o): Update dependencies.
6159
ba3e8e46
JM
61602004-05-07 Jason Molenda (jmolenda@apple.com)
6161
6162 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6163
16796152
JB
61642004-05-07 Jim Blandy <jimb@redhat.com>
6165
daf6dc85
JB
6166 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6167 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6168 to recognize gpr regnums, instead of assuming that
6169 tdep->ppc_fp0_regnum marks the end of the general-purpose
6170 registers.
6171
16796152
JB
6172 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6173 the given architecture has floating-point registers.
6174
c69b8bfc
AC
61752004-05-07 Andrew Cagney <cagney@redhat.com>
6176
6177 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6178 macro defined to 1.
6179 * gdbarch.h, gdbarch.c: Re-generate.
6180 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6181 deprecated_use_generic_dummy_frames.
6182
7243600a
BF
61832004-05-07 Brian Ford <ford@vss.fsi.com>
6184
6185 * NEWS: Mention Cygwin DWARF 2 support.
6186
73c1e0a1
AC
61872004-05-07 Andrew Cagney <cagney@redhat.com>
6188
6189 * objfiles.h (struct entry_info): Delete unused fields
6190 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6191 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6192 * mipsread.c (mipscoff_symfile_read): Update.
6193 * mdebugread.c (parse_partial_symbols): Update.
6194 * dwarfread.c (read_file_scope): Update.
6195 * dwarf2read.c (read_file_scope): Update.
6196 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6197 * coffread.c (complete_symtab): Update.
6198
1d3056ac
MK
61992004-05-07 Mark Kettenis <kettenis@gnu.org>
6200
6201 * infcall.c (_initialize_infcall): Fix typo.
6202
15170568
AC
62032004-05-07 Andrew Cagney <cagney@redhat.com>
6204
6205 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6206 * command.h (add_setshow_zinteger_cmd): Declare.
6207
34f75cc1
RC
62082004-05-06 Randolph Chung <tausq@debian.org>
6209
6210 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6211 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6212 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6213 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6214 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6215 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6216 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6217 definitions ...
6218 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6219 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6220 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6221 (hppa64_hpux_frame_find_saved_regs_in_sig)
6222 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6223 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6224 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6225 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6226 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6227 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6228 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6229 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6230 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6231 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6232 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6233 (hppa32_register_type, hppa_cannot_store_register)
6234 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6235 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6236 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6237 * pa64solib.c (pa64_solib_have_load_event)
6238 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6239 (pa64_solib_unloaded_library_pathname): Likewise.
6240 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6241 (som_solib_library_pathname): Likewise.
6242
0a5e7efe
JI
62432004-05-05 Jim Ingham <jingham@apple.com>
6244
6245 * breakpoint.c (create_breakpoints): Copy the ignore count and
6246 thread id over from the pended breakpoint to the actual
6247 breakpoint.
6248
10a4b113
AC
62492004-05-05 Andrew Cagney <cagney@redhat.com>
6250
6251 * gdbarch.sh (PARM_BOUNDARY): Delete.
6252 gdbarch.h, gdbarch.c: Re-generate.
6253 * valops.c (PARM_BOUNDARY): Delete macro.
6254 (value_push): Delete PARM_BOUNDARY code.
6255 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6256
366f009f
JB
62572004-05-04 Jim Blandy <jimb@redhat.com>
6258
32b99774
JB
6259 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6260 Don't assume that the gprs, fprs, and UISA sprs are
6261 contiguous, start at register number zero, and end with fpscr.
6262 Instead, use the numbers from the tdep structure.
6263
366f009f
JB
6264 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6265 should no longer be used in code specific to the RS6000 and its
6266 derivatives.
6267 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6268 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6269 tdep->ppc_fp0_regnum.
6270 (ppc_supply_fpregset, ppc_collect_fpregset)
6271 (rs6000_push_dummy_call, rs6000_extract_return_value)
6272 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6273 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6274 FP0_REGNUM.
6275 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6276 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6277 Same.
6278 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6279 bdm_ppc_store_registers): Same.
6280 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6281 (store_register, fill_fpregset): Same.
6282 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6283 (ppc_linux_supply_fpregset): Same.
6284 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6285 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6286 Same.
6287 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6288 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6289 ppc64_sysv_abi_return_value): Same.
6290 * rs6000-nat.c (regmap, fetch_inferior_registers)
6291 (store_inferior_registers, fetch_core_registers): Same.
6292
827f338d
MK
62932004-05-01 Mark Kettenis <kettenis@gnu.org>
6294
6295 * m68knbsd-nat.c: Remove file.
6296 * m68knbsd-tdep.c: Remove file.
6297 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6298 dependencies.
6299 * configure.host: Add m68k-*-netbsdelf*.
6300 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6301 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6302 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6303 (XM_FILE): Remove.
6304 * config/m68k/nbsdelf.mh: New file.
6305 * config/m68k/nbsd.mt: New file.
6306 * config/m68k/nbsdaout.mt: Remove file.
6307 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6308 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6309 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6310 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6311 (use_struct_convention): Remove prototype.
6312 (USE_STRUCT_CONVENTION): Remove define.
6313 * config/m68k/xm-nbsd.h: Remove file.
6314
66894781
MS
63152004-05-04 Michael Snyder <msnyder@redhat.com>
6316
6317 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6318 reg_struct_return method (as gcc usually does for cross targets).
6319
f0f63663
AC
63202004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6321
6322 Committed by Andrew Cagney.
6323 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6324 alignment padding when accessing ucontext struct members.
6325
edf61169
JB
63262004-05-04 Jim Blandy <jimb@redhat.com>
6327
8bf659e8
JB
6328 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6329 'ppc_gplast_regnum' member.
6330 (ppc_num_gprs): New enum constant.
6331 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6332 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6333 * rs6000-nat.c (regmap, fetch_inferior_registers,
6334 store_inferior_registers): Same.
6335 * rs6000-tdep.c (e500_pseudo_register_read)
6336 (e500_pseudo_register_write): Same.
6337 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6338
b967e06f
JB
6339 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6340 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6341 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6342 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6343 FPLAST_REGNUM.
6344 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6345 Same.
6346 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6347 * rs6000-nat.c (regmap, fetch_inferior_registers)
6348 (store_inferior_registers): Same.
6349
edf61169
JB
6350 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6351 with FPLAST_REGNUM.
6352
58a9656e
JB
63532004-05-03 Joel Brobecker <brobecker@gnat.com>
6354
6355 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6356 failure detected by recent versions of GCC.
6357 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6358 to be consistent with the usage in dwarf2_create_include_psymtab.
6359
dc305454
MS
63602004-05-03 Michael Snyder <msnyder@redhat.com>
6361
6362 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6363 (heuristic_proc_start): Whitespace cleanup.
6364
29972665
MK
63652004-05-04 Mark Kettenis <kettenis@gnu.org>
6366
6b57680d
MK
6367 * sun3-nat.c: Remove file.
6368 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6369 dependencies.
6370 (ALLDEPFILES): Remove sun3-nat.c.
6371 (sun3-nat.o): Remove dependencies.
6372
29972665
MK
6373 * i386-interix-nat.c, i386-interix-tdep.c,
6374 config/i386/nm-interix.h, config/i386/interix.mh,
6375 config/i386/interix.mt: Remove files.
6376 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6377 dependencies.
6378
f595cb19
MK
63792004-05-03 Mark Kettenis <kettenis@gnu.org>
6380
6381 * m68k-tdep.h (struct gdbarch_tdep): Add member
6382 struct_value_regnum.
6383 (m68k_svr4_init_abi): New prototype.
6384 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6385 different calling conventions.
6386 (m68k_extract_return_value): Remove code dealing with single-field
6387 structs.
6388 (m68k_store_return_value): Remove code dealing with single-field
6389 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6390 (m68k_extract_struct_value_address): Remove function.
6391 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6392 (m68k_reg_struct_return_p, m68k_return_value)
6393 (m68k_svr4_return_value): New functions.
6394 (m68k_use_struct_convention): Remove function.
6395 (m68k_push_dummy_call): Use new struct_value_regnum member of
6396 `struct gdbarch_tdep' instead of hardcoded register number to
6397 store STRUCT_ADDR.
6398 (m68k_svr4_init_abi): New function.
6399 (m68k_gdbarch_init): Don't set extract_return_value,
6400 store_return_values, deprecated_extract_struct_value_address and
6401 use_struct_convention. Set return_value instead. Initialize new
6402 struct_value_regnum member of `struct gdbarch_tdep'.
6403 * m68klinux-tdep.c: Update copyright year.
6404 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6405 (m68k_linux_extract_struct_value_address): Remove function.
6406 (m68k_linux_init_abi): Don't set extract_return_value,
6407 store_return_values, deprecated_extract_struct_value_address and
6408 use_struct_convention. Call m68k_svr4_init_abi but override the
6409 new struct_value_regnum member of `struct gdbarch_tdep'.
6410 * Makefile.in (m68k-tdep.o): Update dependencies.
6411
aaa75496
JB
64122004-05-03 J. Brobecker <brobecker@gnat.com>
6413
6414 * dwarf2read.c (line_header): Add new included_p field in
6415 field file_names.
6416 (partial_die_info): New field has_stmt_list. New field line_offset.
6417 (dwarf2_create_include_psymtab): New function.
6418 (dwarf2_build_include_psymtabs): New function.
6419 (add_file_name): Add forward declaration. Initialize new field.
6420 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6421 to be able to determine the list of files included by the
6422 given unit, and build their associated psymtabs.
6423 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6424 files as well.
6425 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6426 (read_file_scope): Update call to dwarf_decode_lines.
6427 (read_partial_die): Handle DW_AT_stmt_list attributes.
6428
c848556f
MC
64292004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6430
6431 Unfix PR gdb/1626.
6432 * configure.in: Revert special case for osf5.*.
6433 * configure: Regenerate.
6434
eb4556d7
JB
64352004-05-02 Jim Blandy <jimb@redhat.com>
6436
6437 Move the symbol-file-from-memory functions into their own file.
6438 * symfile-mem.c, symfile-mem.h: New files.
6439 * symfile.c (symbol_file_add_from_bfd): New function.
6440 (symbol_file_add): Call symbol_file_add_from_bfd.
6441 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6442 Moved to symfile-mem.c.
6443 (_initialize_symfile): Move definition of
6444 add-symbol-file-from-memory command to symfile-mem.c.
6445 * symfile.h (symbol_file_add_from_bfd): New declaration.
6446 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6447 * config/powerpc/linux.mt (TDEPFILES): Same.
6448 * Makefile.in (SFILES): Add symfile-mem.c.
6449 (symfile_mem_h): New variable.
6450 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6451 (symfile-mem.o): New rule.
6452
80bb239e
AC
64532004-05-01 Andrew Cagney <cagney@redhat.com>
6454
7789d0fa
AC
6455 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6456 frame_find_by_id instead of frame_relative_level.
6457 (do_enable_breakpoint): Ditto.
6458 * thread.c: Update copyright.
6459 (info_threads_command): Ditto, simplify.
6460
80bb239e
AC
6461 * frame.c (deprecated_generic_get_saved_register): Delete
6462 function, moved to "xstormy16-tdep.c".
6463 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6464 deprecated_generic_get_saved_register from "frame.c".
6465 (xstormy16_frame_saved_register): Call
6466 xstormy16_get_saved_register.
6467 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6468 static.
6469 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6470 * frame.h (deprecated_generic_get_saved_register): Delete.
6471
b2a871dd
MC
64722004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6473
6474 * dwarfread.c: Update documentation on the state of dwarf-1.
6475
0e100dab
AC
64762004-05-01 Andrew Cagney <cagney@redhat.com>
6477
acd8056e
AC
6478 * stack.c (select_frame_command): Delete call to
6479 frame_relative_level.
6480 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6481 Delete #if0 code.
6482 (frame_info): Do not print FRAMELESS.
6483 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6484 (catch_info): Delete #if0 code.
6485
0e100dab
AC
6486 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6487 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6488 of frame_relative_level.
6489 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6490 to SENTINEL_FRAME.
6491 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6492 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6493 frame_relative_level.
6494
55699d59
AC
6495 * frame.h (deprecated_set_frame_type): Delete declaration.
6496 * frame.c (deprecated_set_frame_type): Delete function, update
6497 comments.
6498
fcf70625
AC
6499 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6500 * gdbarch.h, gdbarch.c: Re-generate.
6501 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6502 (shnbsd_pc_in_sigtramp): Delete.
6503 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6504 pc_in_sigtramp.
6505 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6506 pc_in_sigtramp.
6507 * frame.h: Update comments.
6508 * ppc-linux-tdep.c: Update comments.
6509 * breakpoint.c (bpstat_what): Update comments.
6510
ac5eccb7
AC
6511 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6512 m68klinux-tdep.o's dependencies, were previously added to
6513 m68klinux-nat.o.
6514
f2524b93
AC
6515 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6516 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6517 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6518 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6519 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6520
17e20bce
AC
6521 * Makefile.in (m68klinux-nat.o): Update dependencies.
6522 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6523 (m68k_linux_sigtramp_frame_cache)
6524 (m68k_linux_sigtramp_frame_this_id)
6525 (m68k_linux_sigtramp_frame_prev_register)
6526 (m68k_linux_sigtramp_frame_unwind)
6527 (m68k_linux_sigtramp_frame_sniffer)
6528 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6529 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6530 names, use trad-frame.h.
6531 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6532 (struct m68k_sigtramp_info): Delete.
6533 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6534 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6535 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6536 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6537 "m68klinux-tdep.c".
6538
c8864fa2
AC
6539 * infrun.c (check_sigtramp2): Delete check for
6540 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6541
511dd2cd
MK
65422004-05-01 Mark Kettenis <kettenis@gnu.org>
6543
6544 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6545
8c6b0e06
AC
65462004-05-01 Andrew Cagney <cagney@redhat.com>
6547
9df0bb3f
AC
6548 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6549 (frv_linux_sigtramp_frame_cache)
6550 (frv_linux_sigtramp_frame_this_id)
6551 (frv_linux_sigtramp_frame_prev_register)
6552 (frv_linux_sigtramp_frame_unwind)
6553 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6554 include "linux" in function and variable names, directly call
6555 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6556 the latest trad-frame code.
6557 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6558 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6559 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6560 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6561 * frv-tdep.c (frv_sigtramp_frame_cache)
6562 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6563 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6564 frv-linux-tdep.c.
6565 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6566 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6567 (frv_set_sigcontext_reg_addr): Delete function.
6568
8c6b0e06
AC
6569 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6570 (DEPRECATED_SIGTRAMP_END): Delete.
6571 * gdbarch.h, gdbarch.c: Re-generate.
6572 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6573 * config/vax/tm-vaxbsd.h: Update copyright.
6574 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6575 (DEPRECATED_IN_SIGTRAMP): Define.
6576 * config/m68k/tm-nbsd.h: Update copyright.
6577 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6578 (DEPRECATED_IN_SIGTRAMP): Define.
6579
50ea7769
MK
65802004-05-01 Mark Kettenis <kettenis@gnu.org>
6581
03ac2a74
MK
6582 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6583 encondings. Fixes PR gdb/1628.
6584
50ea7769
MK
6585 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6586 DW_CFA_restore state without a matching DW_CFA_remember_state
6587 instead of aborting. Fixes PR backtrace/1589.
6588
9a5d7be1
JB
65892004-04-30 Joel Brobecker <brobecker@gnat.com>
6590
6591 * MAINTAINERS: Add self as AIX maintainer.
6592 Update my e-mail address in write-after-approval section.
6593
2593d1cd
AC
65942004-04-30 Andrew Cagney <cagney@redhat.com>
6595
ce12bbf9
AC
6596 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6597 (legacy_get_prev_frame): Ditto.
6598
36710c63
AC
6599 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6600 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6601 * mipsread.c (sigtramp_address): Delete extern variable.
6602 (mipscoff_new_init): Delete reference.
6603 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6604 (fixup_sigtramp): Delete function.
6605 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6606 (fixup_sigtramp): Delete declarations.
6607
2593d1cd
AC
6608 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6609 deprecated_pc_in_sigtramp.
6610 (ppcnbsd_pc_in_sigtramp): Delete function.
6611
2a25f91c
MK
66122004-05-01 Mark Kettenis <kettenis@gnu.org>
6613
6614 * config/m68k/nm-nbsd.h: Tweak comments.
6615 * config/m68k/nm-nbsdaout.h: Likewise.
6616
0b281939
AC
66172004-04-30 Andrew Cagney <cagney@redhat.com>
6618
6619 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6620 legacy_pc_in_sigtramp.
6621 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6622
8f2d3ea0
MK
66232004-05-01 Mark Kettenis <kettenis@gnu.org>
6624
6625 Add OpenBSD/m68k support.
6626 * NEWS (New native configurations): Mention OpenBSD/m68k.
6627 * m68kbsd-tdep.c: New file.
6628 * m68kbsd-nat.c: New file.
6629 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6630 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6631 * configure.host: Add m68k-*-openbsd.
6632 * configure.tgt: Add m68k-*-openbsd.
6633 * config/m68k/tm-obsd.h: New file.
6634 * config/m68k/obsd.mt: New file.
6635 * config/m68k/obsd.mh: New file.
6636 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6637 m68kbsd-tdep.c.
6638
c40f49a4
AC
66392004-04-30 Andrew Cagney <cagney@redhat.com>
6640
6641 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6642 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6643
e81554cd
MK
66442004-04-30 Mark Kettenis <kettenis@gnu.org>
6645
6646 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6647 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6648
d4dc1a91
BF
66492004-04-30 Brian Ford <ford@vss.fsi.com>
6650
6651 Revert 2004-04-16 change.
6652 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6653 (i386_coff_init_abi): Remove.
6654 * i386-tdep.h (i386_coff_init_abi): Remove.
6655 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6656
2f72f850
AC
66572004-04-30 Andrew Cagney <cagney@redhat.com>
6658
e492f9d6
AC
6659 * blockframe.c (find_pc_partial_function): Delete use of
6660 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6661 DEPRECATED_SIGTRAMP_END.
6662
7b7adad0
AC
6663 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6664 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6665 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6666 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6667 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6668
2f72f850
AC
6669 * defs.h (deprecated_inside_entry_file): Delete declaration.
6670 * blockframe.c (deprecated_inside_entry_file): Delete function.
6671 (legacy_frame_chain_valid): Delete call.
6672 * sh64-tdep.c (sh64_frame_chain): Delete call.
6673 * objfiles.h: Update comments.
6674 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6675 call.
6676 * frame.c (get_prev_frame): Delete call, update comments.
6677
283f90a7
BF
66782004-04-30 Brian Ford <ford@vss.fsi.com>
6679
6680 * MAINTAINERS (Write After Approval): Add myself.
6681
8ee56bcf
AC
66822004-04-30 Andrew Cagney <cagney@redhat.com>
6683
6684 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6685 * gdbarch.h, gdbarch.c: Re-generate.
6686 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6687 code.
6688
ee27e1b6
AC
66892004-04-30 Andrew Cagney <cagney@redhat.com>
6690
6691 * gdb-events.sh (selected_thread_changed)
6692 (selected_frame_level_changed, target_changed): Delete.
6693 * gdb-events.h, gdb-events.c: Re-generate.
6694 * valops.c (value_assign): Update.
6695 * stack.c (select_frame_command, up_silently_base)
6696 (down_silently_base): Update.
6697
d5ac5a39
AC
66982004-04-29 Andrew Cagney <cagney@redhat.com>
6699
6700 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6701 registers correctly.
6702 (print_gp_register_row, mips32_heuristic_proc_desc)
6703 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6704 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6705 references to mips_isa_regsize.
6706
ceae6e75
AC
67072004-04-29 Andrew Cagney <cagney@redhat.com>
6708
6709 * mips-tdep.c (struct gdbarch_tdep): Delete
6710 mips_fp_register_double.
6711 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6712 mips_abi_regsize.
6713 (mips_gdbarch_init): Do not set mips_fp_register_double.
6714 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6715
a587af0b
AC
67162004-04-29 Joel Brobecker <brobecker@gnat.com>
6717
6718 Committed by Andrew Cagney.
6719 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6720 function calls.
6721
13326b4e
AC
67222004-04-29 Andrew Cagney <cagney@redhat.com>
6723
6724 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6725 gdbarch, use mips_abi, update callers.
6726 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6727 mips_abi_regsize, update callers.
6728 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6729 mips_default_abi_regsize.
6730 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6731 mips_default_abi_regsize.
6732
711cc5cd
AC
67332004-04-29 Andrew Cagney <cagney@redhat.com>
6734
1b13c4f6
AC
6735 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6736 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6737 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6738 mips_default_abi_regsize.
6739 (mips_isa_regsize): Rename mips_regisze.
6740 * mipsnbsd-tdep.c: Update.
6741 * mips-linux-tdep.c: Update.
6742 * irix5-nat.c: Update.
6743 * mips-tdep.h (mips_isa_regsize): Update.
6744
711cc5cd
AC
6745 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6746 Delete all disabled code.
6747 * gdb-events.h, gdb-events.c: Re-generate.
6748
e63bbc88
MK
67492004-04-19 Jerome Guitton <guitton@gnat.com>
6750 Mark Kettenis <kettenis@gnu.org>
6751
6752 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6753 the function begins with a branch instruction.
6754
fd35795f
MK
67552004-04-29 Mark Kettenis <kettenis@gnu.org>
6756
6757 * i386-tdep.c: Fix spelling mistakes.
6758
c960c18f
AC
67592004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6760 Andrew Cagney <cagney@redhat.com>
6761
6762 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6763 <sys/proc.h>.
6764 * acconfig.h: Provide default _KMEMUSER value.
6765 * config.in, configure: Re-generate.
6766 * NEWS: Mention fix.
6767
50306a9d
RC
67682004-04-24 Randolph Chung <tausq@debian.org>
6769
6770 * configure.host (hppa*-*-linux*): New target.
6771 * configure.tgt (hppa*-*-linux*): Likewise.
6772 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6773 gdbarch_init_osabi() call earlier so that osabi-specific frame
6774 unwinders can be registered first.
6775 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6776 hppa-linux-nat.c.
6777 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6778 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6779 * config/pa/linux.mh: New file.
6780 * config/pa/linux.mt: New file.
6781 * config/pa/nm-linux.h: New file.
6782 * config/pa/xm-linux.h: New file.
6783 * hppa-linux-nat.c: New file.
6784 * hppa-linux-tdep.c: New file.
6785
2a6228ef
RC
67862004-04-28 Randolph Chung <tausq@debian.org>
6787
6788 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6789 return values.
6790 (hppa32_push_dummy_call): Fix small struct and floating point argument
6791 passing, and make sure the stack frame is properly aligned.
6792
82c10df6
AC
67932004-04-28 Andrew Cagney <cagney@redhat.com>
6794
d762c46a
AC
6795 * stack.c (print_stack_frame): Fix description.
6796
82c10df6
AC
6797 * NEWS: Mention gdb/gdbserver/configure execute permission
6798 changed. PR server/519.
6799
0faf0076
AC
68002004-04-28 Andrew Cagney <cagney@redhat.com>
6801
6802 * stack.c (print_stack_frame_stub): Delete declaration.
6803 (struct print_stack_frame_args, print_stack_frame)
6804 (print_frame_info, print_frame): Replace "source" with print what.
6805 Replace "print" with "print_level". Replace "args" with
6806 "print_args".
6807 * frame.h (show_and_print_stack_frame, print_stack_frame)
6808 (print_frame_info): Update declarations.
6809 * stack.c (select_and_print_frame, frame_command)
6810 (current_frame_command, up_command, down_command): Update calls -
6811 use get_selected_frame, pass "enum print_what" for source, do not
6812 call frame_relative_level.
6813 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6814 * remote-rdp.c (remote_rdp_open): Ditto.
6815 * remote-mips.c (common_open): Ditto.
6816 * remote-e7000.c (e7000_start_remote): Ditto.
6817 * ocd.c (ocd_start_remote): Ditto.
6818 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6819 * infrun.c (normal_stop): Ditto.
6820 * inflow.c (kill_command): Ditto.
6821 * infcmd.c (finish_command): Ditto.
6822 * corelow.c (core_open): Ditto.
6823 * tracepoint.c (finish_tfind_command): Ditto.
6824 * thread.c (info_threads_command, info_threads_command)
6825 (restore_current_thread, do_captured_thread_select): Ditto.
6826 * ada-tasks.c (task_command): Ditto.
6827
f4c5303c
OF
68282004-04-26 Orjan Friberg <orjanf@axis.com>
6829
6830 * frame.c: Include "observer.h".
6831 (frame_observer_target_changed): New function.
6832 (_initialize_frame): Attach target_changed observer.
6833 * regcache.c: Include "observer.h".
6834 (regcache_observer_target_changed): New function.
6835 (_initialize_regcache): Attach target_changed observer.
6836 * valops.c: Include "observer.h".
6837 (value_assign): Notify target_changed event when modifying register.
6838 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6839
7270d8f2
OF
68402004-04-26 Orjan Friberg <orjanf@axis.com>
6841
6842 From Paul Koning <pkoning@equallogic.com>:
6843 * breakpoint.c (free_valchain): New function.
6844 (insert_bp_location, delete_breakpoint): Use free_valchain.
6845 (remove_breakpoint): Do not remove the valchain.
6846 (bpstat_stop_status): If not stopped by watchpoint, skip
6847 watchpoints when generating stop status list.
6848 * infrun.c (handle_inferior_event): Make
6849 stepped_after_stopped_by_watchpoint a global variable.
6850 * remote.c (remote_stopped_data_address): Return watch data
6851 address rather than zero if stepped_after_stopped_by_watchpoint is
6852 set.
6853
02d62932
MC
68542004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6855
6856 Fix PR gdb/1626.
6857 * configure.in: Check for curses after termcap.
6858 On osf5.*, do not check for ncurses.
6859 * configure: Regenerate.
6860
3e9a183c
MK
68612004-04-25 Mark Kettenis <kettenis@gnu.org>
6862
c79ac407
MK
6863 * ppcobsd-nat.c: Include "ppc-tdep.h".
6864 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6865
3e9a183c
MK
6866 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6867 Fixes PR tdep/1623 and PR tdep/1624.
6868
38cc9c28
MC
68692004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6870
6871 * xmodem.h, xmodem.c: Remove files.
6872 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6873
7f07c5b6
RC
68742004-04-23 Randolph Chung <tausq@debian.org>
6875
6876 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6877 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6878 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6879 for handling stackless frames.
6880 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6881
9f7194c3
RC
68822004-04-23 Randolph Chung <tausq@debian.org>
6883
6884 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6885 starts at a pc before the frame is created.
6886
dcff6009
JB
68872004-04-23 Joel Brobecker <brobecker@gnat.com>
6888
6889 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6890
40711ff1 68912004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6892
6893 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6894 use convert_typed_floating to get the appropriate format.
6895
abc485a1
RC
68962004-04-22 Randolph Chung <tausq@debian.org>
6897
6898 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6899 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6900 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6901 (hppa_sign_extend): Add prototype.
6902 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6903 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6904 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6905 hppa targets will also use these functions.
6906 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6907 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6908 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6909 (hppa_gdbarch_init): Remove gdbarch setting of
6910 skip_trampoline_code, in_solib_call_trampoline and
6911 in_solib_return_trampoline.
6912 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6913 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6914 hppa_in_solib_call_trampoline.
6915 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6916 Moved from hppa-tdep.c.
6917 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6918 in_solib_call_trampoline and in_solib_return_trampoline.
6919
369aa520
RC
69202004-04-22 Randolph Chung <tausq@debian.org>
6921
6922 * hppa-tdep.c (hppa_debug): New variable.
6923 (find_unwind_entry, hppa_frame_cache): Add debug output.
6924 (_initialize_hppa_tdep): Add command to set debug flag.
6925
476be15e
AC
69262004-04-22 Andrew Cagney <cagney@redhat.com>
6927
6928 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6929 "trad-frame.h".
6930 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6931 signal trampoline unwinder.
6932 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6933
d195bc9f
MK
69342004-04-22 Mark Kettenis <kettenis@gnu.org>
6935
6936 Add OpenBSD/powerpc support.
6937 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6938 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6939 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6940 (ppc_collect_fpregset): New prototypes.
6941 * ppcobsd-nat.c: New file.
6942 * ppcobsd-tdep.c: New file.
6943 * ppcobsd-tdep.h: New file.
6944 * rs6000-tdep.c: Include "regset.h".
6945 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6946 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6947 New functions.
6948 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6949 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6950 (rs6000-tdep.o): Update dependencies.
6951 * configure.host: Add powerpc-*-openbsd.
6952 * configure.tgt: Add powerpc-*-openbsd.
6953 * config/powerpc/obsd.mh: New file.
6954 * config/powerpc/nm-obsd.h: New file.
6955 * config/powerpc/obsd.mt: New file.
6956
6f14cc33
AC
69572004-04-22 Andrew Cagney <cagney@redhat.com>
6958
fcf29e5f
AC
6959 * frame.h (show_frame_info): Delete declaration.
6960
6f14cc33
AC
6961 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6962 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6963 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6964 * frv-tdep.c (frv_frame_this_id): Ditto.
6965 * avr-tdep.c (avr_frame_this_id): Ditto.
6966
e5786a5c
EZ
69672004-04-22 Elena Zannoni <ezannoni@redhat.com>
6968
6969 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6970
26e75e5c
JB
69712004-04-22 Jim Blandy <jimb@redhat.com>
6972
6973 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6974 register number zero.
6975
d8d65dd3
MS
69762004-04-21 Michael Snyder <msnyder@redhat.com>
6977
6978 * mips-tdep.c (heuristic_proc_start):
6979 Warning() already prefixes "Warning: ".
6980
9a4105ab
AC
69812004-04-21 Andrew Cagney <cagney@redhat.com>
6982
6983 * annotate.h (deprecated_annotate_starting_hook)
6984 (deprecated_annotate_stopped_hook)
6985 (deprecated_annotate_exited_hook)
6986 (deprecated_annotate_signal_hook)
6987 (deprecated_annotate_signalled_hook): Deprecate.
6988 * tracepoint.h (deprecated_create_tracepoint_hook)
6989 (deprecated_delete_tracepoint_hook)
6990 (deprecated_modify_tracepoint_hook)
6991 (deprecated_trace_find_hook)
6992 (deprecated_trace_start_stop_hook): Deprecate.
6993 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6994 * remote.h (deprecated_target_resume_hook)
6995 (deprecated_target_wait_loop_hook): Deprecate.
6996 * gdbcore.h (deprecated_exec_file_display_hook)
6997 (deprecated_file_changed_hook): Deprecate.
6998 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6999 * defs.h (deprecated_modify_breakpoint_hook)
7000 (deprecated_command_loop_hook, deprecated_show_load_progress)
7001 (deprecated_print_frame_info_listing_hook)
7002 (deprecated_query_hook, deprecated_warning_hook)
7003 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7004 (deprecated_delete_breakpoint_hook)
7005 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7006 (deprecated_readline_begin_hook, deprecated_readline_hook)
7007 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7008 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7009 (deprecated_context_hook, deprecated_target_wait_hook)
7010 (deprecated_attach_hook, deprecated_detach_hook)
7011 (deprecated_call_command_hook, deprecated_set_hook)
7012 (deprecated_error_hook, deprecated_error_begin_hook)
7013 (deprecated_ui_load_progress_hook): Deprecate.
7014 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7015 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7016 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7017 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7018 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7019 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7020 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7021 * annotate.c, aix-thread.c: Update.
7022
62cf13cc
AC
70232004-04-21 Andrew Cagney <cagney@redhat.com>
7024
b2e31a62
AC
7025 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7026 * vaxnbsd-tdep.c: Include "gdb_string.h".
7027
62cf13cc
AC
7028 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7029 (add_symbol_file_from_memory_command): #if 0 function body, call
7030 error instead.
7031
00e32a35
AC
70322004-04-21 Andrew Cagney <cagney@redhat.com>
7033
7034 * gdbcore.h: Update copyright.
7035 (deprecated_add_core_fns): Rename add_core_fns.
7036 * win32-nat.c (_initialize_core_win32): Update.
7037 * sun3-nat.c (_initialize_core_sun3): Update.
7038 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7039 * rs6000-nat.c (_initialize_core_rs6000): Update.
7040 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7041 * nto-tdep.c (_initialize_nto_tdep): Update.
7042 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7043 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7044 * mips-nat.c (_initialize_core_mips): Update.
7045 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7046 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7047 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7048 * lynx-nat.c (_initialize_core_lynx): Update.
7049 * irix5-nat.c (_initialize_core_irix5): Update.
7050 * i386-interix-nat.c (_initialize_core_interix): Update.
7051 * cris-tdep.c (_initialize_cris_tdep): Update.
7052 * corelow.c (deprecated_add_core_fns): Update.
7053 * core-regset.c (_initialize_core_regset): Update.
7054 * core-aout.c (_initialize_core_aout): Update.
7055 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7056 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7057 * alpha-nat.c (_initialize_core_alpha): Update.
7058
13c7b1ca
JB
70592004-04-21 Jim Blandy <jimb@redhat.com>
7060
7061 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7062
7b5a2f43
DJ
70632004-04-19 Daniel Jacobowitz <drow@mvista.com>
7064
7065 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7066 Delete.
7067 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7068 (read_attribute_value): Update calls to dwarf_alloc_block.
7069 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7070 dwarf2_tmp_obstack.
7071 (psymtab_to_symtab_1): Likewise. Clean up using
7072 free_stack_comp_unit.
7073 (add_to_cu_func_list): Use the comp_unit_obstack.
7074
05cf31d1
JB
70752004-04-19 Joel Brobecker <brobecker@gnat.com>
7076
7077 * dwarf2read.c (dwarf2_flag_true_p): New function.
7078 (die_is_declaration): Use the function above. Add some comments.
7079
adf93a2f
MK
70802004-04-19 Mark Kettenis <kettenis@gnu.org>
7081
7082 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7083 architecture when registering sparcnbsd_core_osabi_sniffer.
7084 Adjust comment.
7085
748894bf
MK
70862004-04-18 Mark Kettenis <kettenis@gnu.org>
7087
f622ad42
MK
7088 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7089 return value.
7090
c4fc7f1b
MK
7091 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7092 * i386-tdep.c: Correct register numbering scheme comments
7093 throughout.
7094 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7095 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7096 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7097 (i386_gdb_arch_init): Likewise.
7098
b4ead1bd
MK
7099 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7100 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7101 ppcnbsd-tdep.o.
7102
748894bf
MK
7103 * m68k-tdep.h: Tweak comments.
7104 * m68k-tdep.c: Tweak comment.
7105
fdd72f95
RC
71062004-04-17 Randolph Chung <tausq@debian.org>
7107
7108 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7109 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7110 (hppa_hpux_som_init_abi): Set is_elf to 0.
7111 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7112 * hppa-tdep.c (low_text_segment_address): Remove global.
7113 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7114 section offset to calculate segment address.
7115 (internalize_unwinds): Define low_text_segment_address as local and
7116 pass to record_text_segment_lowaddr for ELF targets.
7117 (hppa_gdbarch_init): Zero fill tdep structure.
7118 (hppa_dump_tdep): Print tdep structure.
7119 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7120
0f8d9d59
RC
71212004-04-17 Randolph Chung <tausq@debian.org>
7122
7123 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7124 (hppa_gdbarch_init): Set pseudo_register_read.
7125 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7126 * regcache.c (supply_register): Remove check for
7127 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7128
7c46b9fb
RC
71292004-04-17 Randolph Chung <tausq@debian.org>
7130
7131 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7132 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7133 (hpread_adjust_stack_address): Move to hpread.c.
7134 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7135 obj_private_struct): Move from tm-hppa.h.
7136 * hpread.c (hppa-tdep.h): Include.
7137 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7138 (hpread_read_function_type, hpread_read_doc_function_type)
7139 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7140 directly.
7141 * pa64solib.c (hppa-tdep.h): Include.
7142 * somsolib.c (hppa-tdep.h): Include.
7143 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7144 inferior_status): Remove unused forward declarations.
7145 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7146 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7147 obj_private_struct): Move to hppa-tdep.h.
7148 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7149
8d153463
RC
71502004-04-17 Randolph Chung <tausq@debian.org>
7151
7152 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7153 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7154 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7155 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7156 Remove forward declaration and make static.
7157 (hppa_reg_struct_has_addr): Remove.
7158
350c2e5b
JB
71592004-04-16 Joel Brobecker <brobecker@gnat.com>
7160
7161 * observer.sh: Move comments in sed command to first column.
7162
bbde78fa
JM
71632004-04-16 Jason Molenda (jmolenda@apple.com)
7164
7165 * frame.c: Minor typeo corrections in comments.
7166
e0270fd9
JB
71672004-04-16 Joel Brobecker <brobecker@gnat.com>
7168
7169 * observer.c (observer_test_first_notification_function): Update
7170 function profile.
7171 (observer_test_second_notification_function): Likewise.
7172 (observer_test_third_notification_function): Likewise.
7173
3d049254
MK
71742004-04-16 Mark Kettenis <kettenis@gnu.org>
7175
7176 From Brian Ford <ford@vss.fsi.com>:
7177 * i386-tdep.c (i386_coff_init_abi): New function.
7178 * i386-tdep.h (i386_coff_init_abi): New prototype.
7179 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7180 register number translation functions for DWARF and DWARF 2.
7181
7867684d
JB
71822004-04-16 Joel Brobecker <brobecker@gnat.com>
7183
7184 * dwarf2read.c: Back out my previous change, it was incorrect.
7185
72bf9492
DJ
71862004-04-16 Daniel Jacobowitz <drow@mvista.com>
7187
7188 * dwarf2read.c: Include "hashtab.h".
7189 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7190 has_namespace_info.
7191 (struct partial_die_info): Add comments. Use bitfields to reduce
7192 memory footprint. Add scope, scope_set, has_specification,
7193 spec_offset, die_parent, die_child, and die_sibling.
7194 (peek_die_abbrev): Add prototype.
7195 (partial_read_comp_unit_head): New function, broken out from
7196 dwarf2_build_psymtabs_hard.
7197 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7198 Use partial_read_comp_unit_head. Initialize the CU and
7199 comp_unit_obstack. Update calls to read_partial_die and
7200 scan_partial_symbols. Use free_stack_comp_unit and
7201 load_partial_dies.
7202 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7203 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7204 Update calls to helper functions. Remove NAMESPACE argument.
7205 Update comments.
7206 (partial_die_parent_scope, partial_die_full_name): New functions.
7207 (add_partial_symbol): Remove namespace argument. Update call to
7208 pdi_needs_namespace. Use partial_die_full_name. Handle
7209 DW_TAG_namespace. Check has_namespace_info flag.
7210 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7211 tag. Handle namespaces.
7212 (add_partial_namespace, add_partial_enumeration): Simplify.
7213 (guess_structure_name): New function, derived from
7214 add_partial_structure.
7215 (add_partial_structure): Remove.
7216 (determine_class_name): Update comment.
7217 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7218 (is_type_tag_for_partial, load_partial_dies): New functions.
7219 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7220 Record specifications instead of following them immediately.
7221 (find_partial_die_in_comp_unit, find_partial_die)
7222 (fixup_partial_die, free_stack_comp_unit)
7223 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7224 (partial_die_hash, partial_die_eq): New functions.
7225 * Makefile.in (hashtab_h): Define.
7226 (dwarf2read.o): Update dependencies.
7227 (observer_inc, observer_h): Move to the correct section.
7228
fdc860a3
JB
72292004-04-15 Joel Brobecker <brobecker@gnat.com>
7230
7231 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7232 (die_is_declaration): Use the function above. Add comment.
7233
dc718098
JB
72342004-04-15 Joel Brobecker <brobecker@gnat.com>
7235
7236 * dwarf2read.c (read_structure_scope): Identify stub types
7237 using die_is_declaration() only.
7238
8718a420
RM
72392004-04-15 Roland McGrath <roland@redhat.com>
7240
7241 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7242 argument instead of NAME.
7243 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7244 in call to symbol_file_add_with_addrs_or_offsets.
7245 (build_addr_info): New function, helper for ...
7246 (symbol_file_add_from_memory): New function.
7247 (add_symbol_file_from_memory_command): New function using that.
7248 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7249 (pre_add_symbol_hook): Add const to argument type.
7250 * symfile.h (symbol_file_add_from_memory): Declare it.
7251
8b910bab
MK
72522004-04-15 Mark Kettenis <kettenis@gnu.org>
7253
9f076e7a
MK
7254 * NEWS (New native configurations): Mention OpenBSD/vax.
7255 * configure.host: Add vax-*-openbsd*.
7256 * config/vax/obsd.mh: New file.
7257 * config/vax/nm-obsd.h: New file.
7258
8b910bab
MK
7259 * vax-tdep.c: Include "regset.h".
7260 (vax_supply_gregset): New function.
7261 (vax_gregset): New variable.
7262 (vax_regset_from_core_section): New function.
7263 (vax_gdbarch_init): Set regset_from_core_section.
7264 * Makefile.in (vax-tdep.o): Update dependencies.
7265
7a464420
AC
72662004-04-15 Andrew Cagney <cagney@redhat.com>
7267
7268 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7269 (observer_normal_stop_notification_stub)
7270 (observer_attach_normal_stop, observer_detach_normal_stop):
7271 Delete, replaced by #include "observer.inc".
7272 * infrun.c (normal_stop): Pass "stop_bpstat" to
7273 observer_notify_normal_stop.
7274 * Makefile.in (observer_inc): Define.
7275 (observer.o): Update dependencies.
7276 (observer.h, observer.inc): New rules.
7277 * observer.h: Delete file.
7278 * observer.sh: New file.
7279
e36ad527
MK
72802004-04-15 Mark Kettenis <kettenis@gnu.org>
7281
7282 * vax-tdep.c (vax_frame_cache): Fix typo.
7283
67b441e1
MK
72842004-04-14 Mark Kettenis <kettenis@gnu.org>
7285
6f606e1c
MK
7286 * NEWS (New native configurations): Mention NetBSD/vax.
7287 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7288 * config/vax/nbsdelf.mh: New file.
7289 * config/vax/nbsdaout.mh: New file.
7290 * config/vax/nm-nbsd.h: New file.
7291 * config/vax/nm-nbsdaout.h: New file.
7292
9c5519a5
MK
7293 * vaxnbsd-tdep.c: New file.
7294 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7295 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7296 * config/vax/nbsd.mt: New file.
7297 * config/vax/tm-nbsd.h: New file.
7298
4844a614
MK
7299 * Makefile.in (vaxbsd-nat.o): New dependency.
7300
67b441e1
MK
7301 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7302 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7303 struct_addr arguments. Don't push return value address.
7304 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7305 arguments to vax_store_arguments. Store return value address in
7306 R1.
7307 (vax_store_struct_return, vax_extract_return_value)
7308 (vax_store_return_value): Remove functions.
7309 (vax_return_value): New function.
7310 (vax_gdbarch_init): Set return value. Don't set
7311 deprecated_store_struct_return, deprecated_extract_struct_return
7312 and deprecated_store_return_value.
7313
6672f2ae
AS
73142004-04-14 Andreas Schwab <schwab@suse.de>
7315
7316 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7317 value buffer.
7318 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7319
7346c184
MK
73202004-04-14 Mark Kettenis <kettenis@gnu.org>
7321
7322 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7323 (vax_unwind_dummy_id): New functions.
7324 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7325 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7326 variables.
7327 (vax_fix_call_dummy): Remove function.
7328 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7329 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7330 call_dummy_location, deprecated_call_dummy_words,
7331 deprecated_sizeof_call_dummy_words,
7332 deprecated_call_dummy_breakpoint_offset,
7333 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7334 and deprecated_dummy_write_sp.
7335
58e23df4
DC
73362004-04-13 David Carlton <carlton@kealia.com>
7337
7338 * MAINTAINERS: Move myself to "paper trail" section.
7339
5e6b39ff
MK
73402004-04-12 Mark Kettenis <kettenis@gnu.org>
7341
7def7fef
MK
7342 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7343 "trad-frame.h".
7344 (vax_frame_init_saved_regs): Remove function.
7345 (vax_sigtramp_saved_pc): Remove function.
7346 (vax_frame_saved_pc): Remove function.
7347 (vax_frame_args_address): Remove function.
7348 (vax_frame_num_args): Rewrite.
7349 (vax_frame_chain): Remove function.
7350 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7351 VAX_FP_REGNUM.
7352 (vax_pop_frame): Likewise.
7353 (vax_saved_pc_after_call): Remove function.
7354 (struct vax_frame_cache): New structure.
7355 (vax_frame_cache): New function.
7356 (vax_frame_this_id): New function.
7357 (vax_frame_prev_register): New function.
7358 (vax_frame_unwind): New variable.
7359 (vax_frame_sniffer): New function.
7360 (vax_frame_base_address): New function.
7361 (vax_frame_args_address): New function.
7362 (vax_frame_base): New variable.
7363 (vax_unwind_pc): New function.
7364 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7365 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7366 deprecated_frame_chain, deprecated_frame_saved_pc,
7367 deprecated_frame_args_address and
7368 deprecated_frame_init_saved_regs.
7369 * Makefile.in (vax-tdep.o): Update dependencies.
7370
53284fc1
MK
7371 * vaxbsd-nat.c: New file.
7372
5e6b39ff
MK
7373 * vax-tdep.h: Update copyright year. Adjust comments.
7374 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7375 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7376 (vax_regnum): New enum. Replacing...
7377 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7378 (VAX_PS_REGNUM): ... these removed macros.
7379 * vax-tdep.c (vax_register_name): Remove prototype.
7380 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7381 (vax_register_byte, vax_register_raw_size,
7382 vax_register_virtual_size, vax_register_virtual_type): Remove
7383 functions.
7384 (vax_register_type): New function.
7385 (vax_breakpoint_from_pc): Reorganize.
7386 (vax_gdbarch_init): Set register_type. Don't set
7387 deprecated_register_size, deprecated_register_bytes,
7388 deprecated_register_byte, deprecated_register_raw_size,
7389 deprecated_max_register_raw_size,
7390 deprecated_register_virtual_size,
7391 deprecated_max_register_virtual_size and
7392 deprecated_register_virtual_type. Add comment on stack direction.
7393
e9c71e9f
MK
73942004-04-11 Mark Kettenis <kettenis@gnu.org>
7395
7396 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7397 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7398 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7399
d46f1176 74002004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7401
d46f1176
RC
7402 * MAINTAINERS (write after approval): Add myself.
7403
a2a84a72
RC
74042004-04-07 Randolph Chung <tausq@debian.org>
7405
7406 * hppa-tdep.c (hppa_inner_than): Remove.
7407 (is_pa_2): Remove unused static variable.
8718a420 7408 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7409
e85c3284
PH
74102004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7411
7412 * language.h (language_defn): Add new la_post_parser field.
7413 * parser-defs.h (null_post_parser): New declaration (default for
7414 la_post_parser).
8718a420 7415
e85c3284
PH
7416 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7417 insert call to that function.
7418 (parse_exp_in_context): New function, including code formerly in
8718a420 7419 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7420 prefixification.
7421 (parse_expression_in_context): New exported function.
7422 (null_post_parser): New definition.
7423 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7424
e85c3284
PH
7425 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7426 * c-lang.c (c_language_defn): Ditto.
7427 (cplus_language_defn): Ditto.
7428 (asm_language_defn): Ditto.
7429 (minimal_language_defn): Ditto.
7430 * f-lang.c (f_language_defn): Ditto.
7431 * jv-lang.c (java_language_defn): Ditto.
7432 * language.c (unknown_language_defn): Ditto.
7433 (auto_language_defn): Ditto.
7434 (local_language_defn): Ditto.
7435 * m2-lang.c (m2_language_defn): Ditto.
7436 * scm-lang.c (scm_language_defn): Ditto.
7437 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7438
d9f8c85b
MK
74392004-04-10 Mark Kettenis <kettenis@gnu.org>
7440
fa34704a
MK
7441 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7442 (amd64nbsd_mcontext_addr): New function.
7443 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7444 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7445 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7446
403e1656
MK
7447 * corelow.c (core_xfer_partial): Fix coding standards violation.
7448 Add support for TARGET_OBJECT_WCOOKIE.
7449
a57e5a95
MK
7450 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7451 deprecated_pc_in_sigtramp.
7452 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7453 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7454 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7455 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7456 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7457 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7458 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7459
377d9ebd
MK
7460 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7461 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7462 Fix typo.
7463
f0ef85a5
MK
7464 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7465 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7466 (amd64_collect_fxsave): Likewise.
7467
d9f8c85b
MK
7468 * i386-sol2-tdep.c: Include "gdb_string.h".
7469 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7470 name.
7471 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7472
75f501b5
MK
74732004-04-10 Mark Kettenis <kettenis@gnu.org>
7474
7475 * i386-sol2-tdep.c: Include "solib-svr4.h".
7476 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7477 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7478 * config/i386/tm-i386sol2.h: Include :solib.h".
7479 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7480 solib-svr4.o and solib-legacy.o.
7481 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7482 solib-svr4.o.
7483
b31bc724
MK
74842004-04-09 Mark Kettenis <kettenis@gnu.org>
7485
18bbbd9e
MK
7486 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7487 whether a register is supplied by PTRACE_GETFPREGS.
7488 (store_inferior_registers): Likewise.
7489 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7490 whether a register is supplied by PT_GETFPREGS.
7491 (store_inferior_registers): Likewise.
7492
3c30bf1b
MK
7493 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7494 * config/i386/linux64.mt (TDEPFILES): Likewise.
7495
a4194092
MK
7496 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7497
911bc6ee
MK
7498 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7499 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7500 the program counter is in the range specified by `struct
7501 gdbarch_tdep'.
7502 * amd64-linux-tdep.c: Include "symtab.h".
7503 (amd64_linux_pc_in_sigtramp): Remove function.
7504 (amd64_linux_sigtramp_p): New function.
7505 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7506 deprecated_pc_in_sigtramp.
7507 * amd64nbsd-tdep.c: Include "symtab.h".
7508 (amd64nbsd_sigtramp_p): New function.
7509 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7510 deprecated_pc_in_sigtramp.
7511 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7512 few comments.
7513 (amd64obsd_pc_in_sigtramp): Remove function.
7514 (amd64obsd_sigtramp_p): New function.
7515 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7516 deprecated_pc_in_sigtramp.
7517 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7518 (i386bsd_pc_ins_sigtramp): Remove prototype.
7519 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7520 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7521 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7522 the program counter is in the range specified by `struct
7523 gdbarch_tdep'.
7524 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7525 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7526 (i386_go32_pc_in_sigtramp): Remove function.
7527 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7528 Initialize TDEP->sigtramp_p.
7529 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7530 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7531 deprecated_pc_in_sigtramp.
7532 * i386-linux-tdep.c: Adjust comments.
7533 (i386_linux_pc_in_sigtramp): Remove function.
7534 (i386_linux_sigtramp_p): New function.
7535 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7536 deprecated_pc_in_sigtramp.
7537 * i386-nto-tdep.c: Update copyright year.
7538 (i386nto_pc_in_sigtramp): Remove function.
7539 (i386nto_sigtramp_p): New function.
7540 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7541 SP_REGNUM.
7542 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7543 deprecated_pc_in_sigtramp.
7544 * i386-sol2-tdep.c: Update copyright year.
7545 (i386_sol2_pc_in_sigtramp): Remove function.
7546 (i386_sol2_sigtramp_p): New function.
7547 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7548 deprecated_pc_in_sigtramp.
7549 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7550 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7551 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7552 deprecated_sigtramp_start and deprecated_sigtramp_end.
7553 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7554 (i386nbsd_pc_in_sigtramp): Remove function.
7555 (i386nbsd_sigtramp_p): New function.
7556 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7557 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7558 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7559 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7560 (i386obsd_pc_in_sigtramp): Remove function.
7561 (i386obsd_sigtramp_p): New function.
7562 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7563 functions.
7564 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7565 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7566 TDEP->sigtramp_p.
7567 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7568 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7569 dependencies.
7570
e083e6ec
MK
7571 * config/i386/i386aout.mt: Remove file.
7572
bd153b94
MK
7573 * configure.tgt: Remove i[34567]86-*-go32*,
7574 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7575 and i[34567]86-*-isc*. Set gdb_target to i386 for
7576 i[34567]86-*-netware* and i[34567]86-*-*.
7577 * config/i386/i386.mt: New file.
7578 * config/i386/embed.mt: Remove file.
7579 * config/i386/go32.mt: Remove file.
7580 * config/i386/i386nw.mt: Remove file.
7581 * config/i386/i386v.mt: Remove file.
7582 * config/i386/tm-go32.h: Remove file.
7583
4a1bcc8c
MK
7584 * tui/tui-hooks.c: Include "readline/readline.h" after
7585 "gdb_curses.h" instead of before.
7586 * tui/tui-io.c: Likewise.
7587
f9a79064
MK
7588 * tui/tui.c: Fix typo in comment.
7589
b31bc724
MK
7590 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7591
f83f82bc
AC
75922004-04-08 Andrew Cagney <cagney@redhat.com>
7593
7594 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7595 (deprecated_exception_support_initialized): Declare.
8718a420 7596 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7597 (initialize_hp_cxx_exception_support)
7598 (child_enable_exception_callback): Update.
7599 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7600 (deprecated_exception_support_initialized): Rename
7601 deprecated_exception_catchpoints_are_fragile and
7602 deprecated_exception_support_initialized.
7603 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7604
7605 * symtab.c (deprecated_hp_som_som_object_present): Rename
7606 hp_som_som_object_present.
7607 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7608 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7609 Update. Delete extern declaration.
7610 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7611 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7612 (parse_nested_classes_for_hpacc): Ditto.
7613 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7614 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7615 (initialize_hp_cxx_exception_support): Ditto.
7616 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7617 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7618 (cp_print_class_method): Ditto.
8718a420 7619 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7620 (c_type_print_base): Ditto.
7621 * c-exp.y (hp_som_som_object_present): Ditto.
7622
fb2be677
AC
76232004-04-08 Andrew Cagney <cagney@redhat.com>
7624
7625 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7626 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7627 (frame_unwind_find_by_frame): Re-implement the unwind code so
7628 that it can both prepend and append sniffers. Replace
7629 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7630 * tramp-frame.c (tramp_frame_append): Use
7631 frame_unwind_prepend_unwinder.
7632 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7633 frame_unwind_register_unwinder.
7634 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7635 tramp_frame_append.
7636 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7637 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7638 (mips_linux_init_abi): Update.
7639
67faf007
KB
76402004-04-08 Kevin Buettner <kevinb@redhat.com>
7641
7642 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7643 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7644 file support.
7645
8973ff21
KB
76462004-04-07 Kevin Buettner <kevinb@redhat.com>
7647
7648 * ia64-tdep.c (elf.h): Don't include.
7649 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7650
4a0e2f88
JM
76512004-04-07 Jason Molenda (jmolenda@apple.com)
7652
7653 * frame.h: Typeo corrections in comments.
7654
9872ad24
JB
76552004-04-07 Jim Blandy <jimb@redhat.com>
7656
7657 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7658 %esp and %ebp
7659
70b216c8
MK
76602004-04-07 Mark Kettenis <kettenis@gnu.org>
7661
11d5789c
MK
7662 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7663 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7664 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7665 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7666 and solib-legacy.o.
7667 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7668 solib-svr4.o.
7669 * config/sparc/tm-sol2.h: Update copyright year. Include
7670 "solib.h".
7671
70b216c8
MK
7672 * sparc-sol2-tdep.c: Update copyright year. Include
7673 "solib-svr4.h".
7674 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7675 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7676 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7677 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7678 dependencies.
7679
6339dc9e
AC
76802004-04-06 Andrew Cagney <cagney@redhat.com>
7681
7682 * infttrace.c: Include "infttrace.h".
7683 * infttrace.h: Include "target.h".
7684 * Makefile.in (infttrace_h): Update.
7685 (infttrace.o): Update.
8718a420 7686
93449403
AC
76872004-04-06 Andrew Cagney <cagney@redhat.com>
7688
6d518969
AC
7689 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7690 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7691 move extern declarations from here ...
7692 * infttrace.h: ... to here.
7693 * Makefile.in (hppah-nat.o): Update dependencies.
7694
85f4f2d8
AC
7695 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7696 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7697 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7698 (hppa_breakpoint_from_pc): Delete.
7699
93449403
AC
7700 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7701
71456ec6
AC
77022004-04-05 Andrew Cagney <cagney@redhat.com>
7703
7704 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7705 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7706 <sys/file.h>.
8718a420 7707
4c02c60c
AC
77082004-04-06 Randolph Chung <tausq@debian.org>
7709
7710 Committed by Andrew Cagney (mechanical change).
7711 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7712 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7713 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7714 child_enable_exception_callback, current_ex_event,
7715 null_symtab_and_line, child_get_current_exception_event,
7716 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7717 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7718 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7719 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7720 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7721 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7722 Move hpux-specific definitions ...
7723 * hppa-hpux-tdep.c: ... to here.
7724
3a515653
AC
77252004-04-05 Andrew Cagney <cagney@redhat.com>
7726
7727 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7728 skip_prologue_using_sal.
7729
c1730d02
AC
77302004-04-05 Andrew Cagney <cagney@redhat.com>
7731
7732 * config/i386/tm-i386.h: Delete file.
7733 * config/i386/tm-vxworks.h: Update copyright, do not include
7734 "tm-i386.h".
7735 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7736 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7737 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7738 * config/i386/ncr3000.mt (TM_FILE): Delete.
7739 * config/i386/interix.mt (TM_FILE): Delete.
7740 * config/i386/i386v.mt (TM_FILE): Delete.
7741 * config/i386/i386nw.mt (TM_FILE): Delete.
7742 * config/i386/i386gnu.mt (TM_FILE): Delete.
7743 * config/i386/i386aout.mt (TM_FILE): Delete.
7744 * config/i386/embed.mt (TM_FILE): Delete.
7745
8b67aa36
KB
77462004-04-05 Kevin Buettner <kevinb@redhat.com>
7747
7748 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7749 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7750 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7751 (accg7_regnum): New constants.
7752 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7753 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7754 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7755 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7756 for accg registers.
7757 (frv_register_sim_regno): Update spr_map[].
7758
3c7012f5
AC
77592004-04-04 Andrew Cagney <cagney@redhat.com>
7760
7761 * config/mips/xm-riscos.h: Delete.
7762 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7763 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7764 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7765 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7766 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7767 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7768 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7769 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7770 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7771 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7772 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7773 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7774 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7775 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7776 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7777 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7778 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7779 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7780 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7781 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7782 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7783 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7784 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7785 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7786 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7787 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7788
3c7012f5
AC
7789 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7790 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7791 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7792 * configure.host: Remove m680[01]0-sun-sunos3*,
7793 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7794 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7795 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7796 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7797 mips-*-riscos*.
7798 * NEWS: Mention removed systems.
7799
99d16a21
AC
78002004-04-04 Andrew Cagney <cagney@redhat.com>
7801
7802 GDB 6.1 release created from 6.1 branch.
7803
6cdf9d98
AC
78042004-04-04 Andrew Cagney <cagney@redhat.com>
7805
98d346c3
AC
7806 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7807 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7808 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7809
6cdf9d98
AC
7810 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7811 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7812 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7813
859a326d
JB
78142004-04-03 Jim Blandy <jimb@redhat.com>
7815
7816 * MAINTAINERS: Chris Faylor has changed employers; add him to
7817 "paper trail" section, and update his E-mail address.
7818
b87178c3
AC
78192004-04-03 Andrew Cagney <cagney@redhat.com>
7820
4ea2acf0
AC
7821 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7822 generic dummy frames.
7823 * dummy-frame.c: Update copyright.
7824 (dummy_frame_sniffer): Delete check for generic dummy frames.
7825
d0bd2d18 7826 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7827 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7828 (REG_PARM_STACK_SPACE): Delete.
7829 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7830 Inline reference to REG_PARM_STACK_SPACE.
7831
b87178c3
AC
7832 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7833 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7834 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7835 (FRAME_BASE_BEFORE_SIGTRAMP)
7836 (hppa32_hpux_frame_base_before_sigtramp)
7837 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7838 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7839 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7840 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7841 (FRAME_BASE_BEFORE_SIGTRAMP)
7842 (hppa64_hpux_frame_base_before_sigtramp)
7843 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7844
43e2e1a0
AC
78452004-04-03 Andrew Cagney <cagney@redhat.com>
7846
7847 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7848
ddc135a4
AC
78492004-04-02 Andrew Cagney <cagney@redhat.com>
7850
7851 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7852 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7853 * dummy-frame.h: Delete out-of-date comments.
7854 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7855 * gdbarch.h, gdbarch.c: Re-generate.
7856
d15bfd3a 78572004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7858
d15bfd3a
AC
7859 Committed by Andrew Cagney <cagney@redhat.com>.
7860 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7861 into account an instruction saving a register if we have already
7862 seen an earlier instruction saving that same register.
7863
f04ceafa
AC
78642004-04-02 Andrew Cagney <cagney@redhat.com>
7865
08be3abd
AC
7866 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7867 * gdbarch.h, gdbarch.c: Re-generate.
7868 * frame.c (legacy_get_prev_frame): Delete references to
7869 DEPRECATED_INIT_FRAME_PC_FIRST.
7870
f04ceafa
AC
7871 * infrun.c (pc_in_sigtramp): Delete function.
7872 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7873 get_frame_type.
7874
08e69816
AC
78752004-04-02 Andrew Cagney <cagney@redhat.com>
7876
7877 * infrun.c (handle_step_into_function): Delete code conditional on
7878 legacy_frame_p.
7879 (handle_inferior_event, step_over_function): Ditto.
7880
adb54772
AC
78812004-04-02 Andrew Cagney <cagney@redhat.com>
7882
7883 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7884 "previous frame inner to this frame" test.
7885
304396fb
AC
78862004-04-02 Andrew Cagney <cagney@redhat.com>
7887
7888 * frame.c (safe_frame_unwind_memory): New function.
7889 * frame.h (safe_frame_unwind_memory): Declare. Update description
7890 of /safe_/ methods.
7891 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7892 "next_frame". Use safe_frame_unwind_memory.
7893 (tramp_frame_sniffer): Update call to tramp_frame_start.
7894
6502dd73
DJ
78952004-04-01 Daniel Jacobowitz <drow@mvista.com>
7896
7897 * dwarf2read.c (dwarf2_objfile_data_key): New.
7898 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7899 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7900 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7901 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7902 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7903 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7904 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7905 Remove variables.
7906 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7907 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7908 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7909 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7910 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7911 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7912 Remove macros.
7913 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7914 data.
7915 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7916 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7917 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7918 (read_partial_die, read_full_die, read_indirect_string)
7919 (dwarf_decode_line_header, dwarf_decode_macros)
7920 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7921 Update uses of removed variables.
7922 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7923 of removed macros.
7924 (_initialize_dwarf2_read): New function.
7925 * symfile.h (dwarf2_has_info): Update prototype.
7926 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7927 * elfread.c (elf_symfile_read): Likewise.
7928
408752b0
JB
79292004-04-01 Jim Blandy <jimb@redhat.com>
7930
9f744501
JB
7931 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7932 function for register numbers on all the rs6000-derived targets.
7933 (rs6000_gdbarch_init): Don't register a separate
7934 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7935 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7936 variants.
7937
408752b0
JB
7938 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7939 numbering.
7940
2de41bce
PH
79412004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7942
7943 * valarith.c: Update copyright notice.
7944 (value_add): Handle range types.
7945 (value_sub): Ditto.
7946 (value_equal): Ditto.
7947 (value_less): Ditto.
7948 (value_neg): Ditto.
7949 (value_complement): Ditto.
8718a420 7950 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7951 eliminiating unnecessary COERCE_ENUMs.
8718a420 7952
5613d8d3
AC
79532004-03-31 Andrew Cagney <cagney@redhat.com>
7954
7955 * frame.h (frame_unwind_id): Declare.
7956 * frame.c (frame_unwind_id): New function.
7957 (get_prev_frame_1): New function.
7958 (frame_debug_got_null_frame): New function.
7959 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7960 code proper to prev_frame, update description.
7961 * infrun.c (step_over_function): Use frame_unwind_id.
7962
c4557624
JB
79632004-04-31 J. Brobecker <brobecker@gnat.com>
7964
7965 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7966 (hppa64_push_dummy_call): Likewise.
7967
3e6bb910
JB
79682004-03-30 Jim Blandy <jimb@redhat.com>
7969
7970 From Ulrich Weigand:
7971 * utils.c (query): Do not use a va_list variable multiple times.
7972
a2f23071
DJ
79732004-03-29 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * Makefile.in (linux_nat_h): Update dependencies.
7976 * configure.in: Check for <gnu/libc-version.h>.
7977 * configure: Regenerate.
7978 * config.in: Regenerate.
7979 * linux-nat.h: Include "target.h". Add waitstatus field to
7980 struct lwp_info.
7981 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7982 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7983 to.
7984 (lin_lwp_handle_extended): New function. Handle clone events.
7985 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7986 thread exit events.
7987 (child_wait): Handle clone events.
7988 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7989 * linux-nat.c (linux_enable_event_reporting): Turn on
7990 PTRACE_O_TRACECLONE.
7991 (linux_handle_extended_wait): Handle clone events.
7992 * thread-db.c: Include <gnu/libc-version.h>.
7993 (struct private_thread_info): Add dying flag.
7994 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7995 higher.
7996 (attach_thread): Update comments. Handle dying threads.
7997 (detach_thread): Set the dying flag.
7998 (check_event): Always call attach_thread.
7999
8d5f9dcb
DJ
80002004-03-29 Daniel Jacobowitz <drow@mvista.com>
8001
8002 * mips-tdep.c (mips_pdr_data): New.
8003 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8004 (_initialize_mips_tdep): Initialize mips_pdr_data.
8005
66337bb1
CV
80062004-03-29 Corinna Vinschen <vinschen@redhat.com>
8007
8008 * minsyms.c (install_minimal_symbols): Move dropping leading
8009 char from linkage name from here...
8010 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8011 test for "__gnu_compiled*" symbols.
8012
e802b915
JB
80132004-03-28 Jim Blandy <jimb@redhat.com>
8014
8015 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8016 registers to temp register r0 and byte stores as prologue
8017 instructions.
8018
72b56458
AC
80192004-03-28 Andrew Cagney <cagney@redhat.com>
8020
8021 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8022 arm*-*-*.
8023
0bfbda3b
SC
80242004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8025
8026 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8027 and switch the layout to force a display of register window.
8028
5a7225ed
JB
80292004-02-26 J. Brobecker <brobecker@gnat.com>
8030
8031 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8032 of the INTEGER class.
8033
81a07a45
JB
80342004-03-26 Jim Blandy <jimb@redhat.com>
8035
8036 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8037 bytes long on PPC GNU/Linux.
8038
8c691c7a
DC
80392004-03-26 David Carlton <carlton@kealia.com>
8040
8041 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8042
103a0089
AC
80432004-03-25 Andrew Cagney <cagney@redhat.com>
8044
8045 * PROBLEMS: Add general section titles, remove references to
8046 specific releases.
8047
7a5ea0d4
DJ
80482004-03-25 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8051 INT_REGISTER_SIZE.
8052 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8053 FP_REGISTER_VIRTUAL_SIZE.
8054 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8055 of DEPRECATED_REGISTER_RAW_SIZE.
8056 (arm_register_type): Add gdbarch argument.
8057 (arm_register_raw_size, arm_register_virtual_size): Delete.
8058 (arm_register_byte, arm_extract_return_value)
8059 (arm_store_return_value, arm_get_longjmp_target): Update references
8060 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8061 (arm_gdbarch_init): Likewise. Don't set
8062 deprecated_register_raw_size, deprecated_register_virtual_size,
8063 deprecated_max_register_raw_size,
8064 deprecated_max_register_virtual_size, or
8065 deprecated_max_register_virtual_type. Do set register_type.
8066 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8067 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8068 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8069 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8070 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8071 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8072 INT_REGISTER_SIZE.
8073 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8074 (remote_rdp_store_register): Likewise.
8075
5792a79b
DJ
80762004-03-24 Daniel Jacobowitz <drow@mvista.com>
8077
8078 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8079 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8080 to after osabi initialization.
8081 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8082 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8083 functions.
8084 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8085 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8086 variables.
8087 (mips_linux_init_abi): Append signal trampoline unwinders.
8088
1196bfda
AC
80892004-03-24 Andrew Cagney <cagney@redhat.com>
8090
8091 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8092 * tramp-frame.c: Include "gdb_assert.h".
8093 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8094 correct sizeof.
8095 (tramp_frame_append): Validate the tramp frame's instructions.
8096 * Makefile.in (tramp-frame.o): Update dependencies.
8097
4be282b4
AC
80982004-03-23 Andrew Cagney <cagney@redhat.com>
8099
8100 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8101
69aec09b
AC
81022004-03-23 Andrew Cagney <cagney@redhat.com>
8103
8104 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8105 Nasser as past testsuite/lib/ (and other) maintainers.
8106
63ed89b4
DJ
81072004-03-23 Daniel Jacobowitz <drow@mvista.com>
8108
8109 * infcmd.c (attach_command): Reread symbols if we already have
8110 an exec file.
8111
f3b36427
AC
81122004-03-23 Andrew Cagney <cagney@redhat.com>
8113
8114 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8115
aa2a3f87
AC
81162004-03-23 Andrew Cagney <cagney@redhat.com>
8117
8118 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8119 * gdbarch.h, gdbarch.c: Re-generate.
8120 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8121 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8122 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8123 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8124 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8125 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8126 (DEPRECATED_SIGTRAMP_START): Update.
8127 * blockframe.c (find_pc_sect_partial_function): Update.
8128 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8129
00cac895
DJ
81302004-03-23 Daniel Jacobowitz <drow@mvista.com>
8131
8132 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8133 if necessary.
8134
f561f026
AC
81352004-03-23 Andrew Cagney <cagney@redhat.com>
8136
8137 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8138 predicate, deprecate.
8139 * gdbarch.h, gdbarch.c: Re-generate.
8140 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8141 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8142 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8143 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8144 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8145 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8146 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8147 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8148 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8149 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8150 * blockframe.c (find_pc_partial_function): Update.
8151 * breakpoint.c (bpstat_what): Update.
8152 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8153 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8154 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8155 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8156 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8157 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8158 * i386-nto-tdep.c (i386nto_init_abi): Update.
8159 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8160 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8161 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8162 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8163 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8164 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8165 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8166 * infrun.c (pc_in_sigtramp): Update.
8167 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8168 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8169 * mips-tdep.c (mips_gdbarch_init): Update.
8170 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8171 * ppc-linux-tdep.c: Update comment.
8172 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8173 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8174 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8175 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8176 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8177 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8178 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8179 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8180 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8181 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8182
8050c72f
AC
81832004-03-23 Andrew Cagney <cagney@redhat.com>
8184
d2259dd3
AC
8185 * tramp-frame.h, tramp-frame.h: New files.
8186 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8187 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8188
8050c72f
AC
8189 * Makefile.in: Update all dependencies.
8190
0db9b4b7
AC
81912004-03-23 Andrew Cagney <cagney@redhat.com>
8192
8193 * Makefile.in (trad_frame_h): Add $(frame_h).
8194 * trad-frame.h: Update copyright. Include "frame.h".
8195 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8196 (trad_frame_set_id, trad_frame_get_id): Declare.
8197 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8198 * trad-frame.c: Update copyright.
8199 (struct trad_frame_cache): Define.
8200 (trad_frame_cache_zalloc): New function.
8201 (trad_frame_set_id, trad_frame_get_id): New functions.
8202 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8203
8e645ae7
AC
82042004-03-22 Andrew Cagney <cagney@redhat.com>
8205
8206 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8207 s390_pltstub_unwind_cache.
8208 (s390_stub_frame_unwind_cache): Rename
8209 s390_pltstub_frame_unwind_cache.
8210 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8211 (s390_stub_frame_prev_register): Rename
8212 s390_pltstub_frame_prev_register.
8213 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8214 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8215
8216 From Ulrich Weigand:
8217 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8218 pointer calls like PLT calls.
8219
34fcf120
DJ
82202004-03-22 Daniel Jacobowitz <drow@mvista.com>
8221
8222 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8223 PC rather than the partial function start address. Use the start
8224 address to sanity check the found PDR.
8225
5b917078
DJ
82262004-03-22 Daniel Jacobowitz <drow@mvista.com>
8227
8228 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8229 linux_handle_extended_wait.
8230
8adf9e78
AC
82312004-03-22 Andrew Cagney <cagney@redhat.com>
8232
c3122434
AC
8233 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8234 function.
8235
8adf9e78
AC
8236 * frame.h (generic_pop_current_frame): Delete declaration.
8237 (deprecate_pop_dummy_frame): Deprecate
8238 generic_pop_dummy_frame.
8239 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8240 (generic_pop_current_frame): Delete function.
8241 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8242 generic_pop_current_frame.
8243 * v850-tdep.c (v850_pop_frame): Update.
8244 * mcore-tdep.c (mcore_pop_frame): Update.
8245 * sh64-tdep.c (sh64_pop_frame): Update.
8246 * h8300-tdep.c (h8300_pop_frame): Update.
8247
90ba813f
AC
82482004-03-22 Andrew Cagney <cagney@redhat.com>
8249
8250 * frame.h (deprecated_pc_in_call_dummy): Rename
8251 generic_pc_in_call_dummy.
8252 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8253 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8254 generic_pc_in_call_dummy.
8255 (pc_in_dummy_frame): Make static.
8256 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8257 * gdbarch.h, gdbarch.c: Re-generate.
8258 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8259 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8260 (legacy_get_prev_frame): Ditto.
8261 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8262 comment.
8718a420 8263
ca4bb888
AC
82642004-03-21 Andrew Cagney <cagney@redhat.com>
8265
244675f9
AC
8266 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8267 declaration and out-of-date comment.
8268 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8269 Delete function.
8270 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8271 deprecated_pc_in_call_dummy.
8272
ca4bb888
AC
8273 * infrun.c (handle_inferior_event): For non legacy frames, use the
8274 frame ID and frame type to identify a signal trampoline. Update
8275 comments.
8276
1777c7b4
NW
82772004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8278
8279 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8280 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8281
82417da5
AC
82822004-03-21 Andrew Cagney <cagney@redhat.com>
8283
8284 * frame-unwind.h: Update copyright.
8285 (struct frame_data): Add opaque declaration.
8286 (frame_sniffer_ftype): Declare.
8287 (struct frame_unwind): Add "unwind_data" and "sniffer".
8288 (frame_unwind_register_unwinder): Declare.
8289 (frame_unwind_find_by_frame): Add parameter "this_cache".
8290 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8291 (legacy_get_prev_frame, legacy_get_prev_frame)
8292 (get_frame_type): Pass the prologue_cache to
8293 frame_unwind_find_by_frame.
8294 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8295 "unwinder".
8296 (frame_unwind_register_unwinder): New function.
8297 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8298
b2ba182e
PH
82992004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8300
8301 * bcache.c (print_percentage): Use floating point to avoid
8302 incorrect results when portion*100 overflows.
8303
81332287
KB
83042004-03-19 Kevin Buettner <kevinb@redhat.com>
8305
8306 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8307 (ppc_linux_init_extra_frame_info)
8308 (ppc_linux_frameless_function_invocation)
8309 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8310 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8311 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8312 (rs6000_frame_chain): Delete declarations.
8313 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8314 (ppc_linux_init_extra_frame_info)
8315 (ppc_linux_frameless_function_invocation)
8316 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8317 (ppc_linux_init_abi): Remove registration of above deleted functions.
8318 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8319 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8320 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8321 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8322 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8323 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8324 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8325 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8326 frame management for all OSABIs.
8327
61a65099
KB
83282004-03-19 Andrew Cagney <cagney@redhat.com>
8329
8330 Committed by Kevin Buettner <kevinb@redhat.com>.
8331
8332 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8333 Update copyright.
8334 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8335 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8336 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8337 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8338 unwinders. #ifdef legacy frame code.
8339 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8340 "frame-base.h".
8341 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8342 (struct rs6000_frame_cache, rs6000_frame_cache)
8343 (rs6000_frame_this_id, rs6000_frame_prev_register)
8344 (rs6000_frame_sniffer, rs6000_frame_unwind)
8345 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8346 (rs6000_frame_base): Implement a traditional frame unwinder.
8347 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8348 frame unwinder.
8349
88f7da05
KB
83502004-03-19 Kevin Buettner <kevinb@redhat.com>
8351
8352 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8353 breakpoint address for watchpoints or the catch eventpoints.
8354 Add new paramter ``bptype''. Adjust all callers.
8355
f826dce1
AC
83562004-03-19 Andrew Cagney <cagney@redhat.com>
8357
33cb8b0f
AC
8358 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8359
f826dce1
AC
8360 * PROBLEMS: Delete note that ARM does not use frame code, problem
8361 fixed.
8362
43b1ab88
AC
83632004-03-18 Andrew Cagney <cagney@redhat.com>
8364
292ab034
AC
8365 * stack.c (return_command): Delete code wrapped in #ifdef
8366 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8367
43b1ab88
AC
8368 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8369
dbfe4626
AC
83702004-03-18 Andrew Cagney <cagney@redhat.com>
8371
8372 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8373 DEPRECATED_IN_SIGTRAMP.
8374 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8375 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8376 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8377 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8378 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8379 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8380 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8381 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8382 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8383 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8384
0cad6aec
AC
83852004-03-18 Andrew Cagney <cagney@redhat.com>
8386
8387 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8388 (struct frame_base_table_entry): Define.
8389 (struct frame_base_table): Re-implement as a linked list.
8390 (frame_base_init): Re-implement.
8391 (frame_base_table): Delete function.
8392 (append_predicate): Delete function.
8393 (frame_base_append_sniffer): Update.
8394 (frame_base_set_default): Update.
8395 (frame_base_find_by_frame): Update.
8396 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8397 * Makefile.in (frame-base.o): Update dependencies.
8398
9982c2e7
AC
83992004-03-17 Andrew Cagney <cagney@redhat.com>
8400
8401 * frame.c (legacy_get_prev_frame): Pass correct frame to
8402 frame_unwind_find_by_frame.
8403
8dfe8985
DC
84042004-03-17 David Carlton <carlton@kealia.com>
8405
8406 * NEWS: Mention C++ nested types and namespaces
8407
ed47347a
MC
84082004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8409
8410 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8411 and "Regressions since gdb 5.3.". Add known regressions since
8412 gdb 6.0.
8413
90aeadfc
DC
84142004-03-16 David Carlton <carlton@kealia.com>
8415
8416 * dwarf2read.c (process_structure_scope): Process children even
8417 when we're a declaration.
8418
73912b9b
AC
84192004-03-16 Andrew Cagney <cagney@redhat.com>
8420
8421 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8422 * blockframe.c (find_pc_partial_function)
8423 (find_pc_sect_partial_function): Merge into a single
8424 find_pc_partial_function.
8425
283accbc
MK
84262004-03-16 Mark Kettenis <kettenis@gnu.org>
8427
8428 * i386bsd-nat.c: s/regno/regnum/g.
8429 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8430 FP0_REGNUM.
8431 (store_inferior_registers): Likewise.
8432
f5b1afdf
MK
84332004-03-16 Mark Kettenis <kettenis@gnu.org>
8434
8435 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8436 of i387_fill_fsave.
8437 (store_inferior_registers): Call i387_collect_fsave and
8438 i387_collect_fxsave instead of i387_fill_fsave and
8439 i387_fill_fxsave.
8440
41fe5eb3
AC
84412004-03-15 Andrew Cagney <cagney@redhat.com>
8442
8443 * Makefile.in (frame-unwind.o): Update dependencies.
8444 * frame-unwind.c: Include "gdb_obstack.h".
8445 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8446 parameter.
8447 (append_predicate): Delete function.
8448 (struct frame_unwind_table_entry): New structure.
8449 (struct frame_unwind_table): Replace "sniffer" with "head" and
8450 "tail".
8451 (frame_unwind_append_sniffer): Update.
8452 (frame_unwind_find_by_frame): Update.
8453 (_initialize_frame_unwind): Registe frame_unwind_init using
8454 gdbarch_data_register_pre_init.
8455
3f63813d
MK
84562004-03-15 Mark Kettenis <kettenis@gnu.org>
8457
8458 * i386bsd-nat.c: Update copyright year.
8459 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8460 define unconditionally.
8461
3248c325 84622004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8463
8464 * i387-tdep.h (i387_collect_fsave): New prototype.
8465 * i387-tdep.c (i387_collect_fsave): New function containing most
8466 of the code from i387_fill_fsave.
3248c325 8467 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8468
871fbe6a
MK
84692004-03-15 Mark Kettenis <kettenis@gnu.org>
8470
8471 * i386-linux-tdep.c: Update copyright year.
8472 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8473 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8474 svr4_ilp32_link_map_offsets instead of
8475 i386_linux_svr4_fetch_link_map_offsets.
8476
8176b9b8
DC
84772004-03-15 David Carlton <carlton@kealia.com>
8478
8479 Fix for PR c++/1553:
8480 * dwarf2read.c (read_structure_type): Determine type name by
8481 calling determine_class_name.
8482 (determine_class_name): New.
8483 (determine_prefix): Look at TYPE_TAG_NAME and call
8484 determine_class_name when appropriate.
8485 (determine_prefix_aux, class_name): Delete.
9d58e29d 8486 (read_namespace): Set die->type.
8176b9b8 8487
fe8bf7d7
KB
84882004-03-15 Kevin Buettner <kevinb@redhat.com>
8489
8490 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8491 unused macro definition. The definition in target.h (or perhaps
8492 elsewhere) takes precedence.
8493
ed6edd9b
AC
84942004-03-15 Andrew Cagney <cagney@redhat.com>
8495
f9be684a
AC
8496 * ppc-tdep.h: Update copyright.
8497 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8498 function signatures to match "regsets.h".
8499 * ppc-linux-tdep.c: Include "regset.h".
8500 (ELF_GREGSET_SIZE): Delete.
8501 (right_supply_register): New function.
8502 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8503 using right_supply_register.
8504 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8505 functions.
8506 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8507 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8508 (_initialize_ppc_linux_tdep): Do not register
8509 ppc_linux_regset_core_fns.
8510 (ppc_linux_regset_from_core_section): Replace
8511 fetch_core_registers.
8512 (ppc_linux_regset_core_fns): Delete.
8513 * ppc-linux-nat.c: (right_fill_reg): New function.
8514 (supply_gregset): Update call to ppc_linux_supply_gregset.
8515 (fill_gregset): Clear the register set, use right_fill_reg.
8516 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8517 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8518
ed6edd9b
AC
8519 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8520 unsigned.
8521
030f20e1
AC
85222004-03-15 Andrew Cagney <cagney@redhat.com>
8523
8524 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8525 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8526 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8527 and register_gdbarch_data.
8528 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8529 (struct gdbarch_data): Replace "init" by "pre_init" and
8530 "post_init".
8531 * gdbarch.h, gdbarch.c: Re-generate.
8532 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8533 with"obstack", use OBSTACK_ZALLOC.
8534 (dwarf2_frame_ops): Delete.
8535 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8536 (dwarf2_frame_init_reg): Use gdbarch_data.
8537 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8538 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8539 (_initialize_svr4_solib): Update.
8540 * user-regs.c (_initialize_user_regs): Update.
8541 * reggroups.c (_initialize_reggroup): Update.
8542 * regcache.c (_initialize_regcache): Update.
8543 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8544 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8545 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8546 * frame-unwind.c (_initialize_frame_unwind): Update.
8547 * frame-base.c (_initialize_frame_base): Update.
8548 * user-regs.c (user_reg_add): Update.
8549 * reggroups.c (reggroup_add): Update.
8550 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8551 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8552 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8553 * frame-base.c (frame_base_table): Update.
8554 * remote.c (_initialize_remote): Update.
8555 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8556
3111a3fc
AC
85572004-03-15 Andrew Cagney <cagney@redhat.com>
8558
8559 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8560
5ecb7103
KB
85612004-03-15 Kevin Buettner <kevinb@redhat.com>
8562
8563 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8564 * frv-linux-tdep.c: New file.
8565 * frv-tdep.c (struct gdbarch_tdep): Add new field
8566 ``sigcontext_reg_addr''.
8567 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8568 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8569 (frv_sigramp_frame_sniffer): New functions.
8570 (frv_sigtramp_frame_unwind): New static global.
8571 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8572 sniffers.
8573 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8574 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8575
1ccda5e9
KB
85762004-03-15 Kevin Buettner <kevinb@redhat.com>
8577
8578 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8579 but not via a call to error(), when unable to read memory.
8580
b375a0a5
KB
85812004-03-15 Kevin Buettner <kevinb@redhat.com>
8582
8583 * frv-tdep.c (frv_call_dummy_words): Delete.
8584 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8585
4fdf6121
AC
85862004-03-15 Andrew Cagney <cagney@redhat.com>
8587
8588 * infrun.c (handle_step_into_function, step_over_function): Only
8589 update and use STEP_FRAME_ID when the system is using legacy
8590 frames. Update comments.
8591
34021503
MK
85922004-03-14 Mark Kettenis <kettenis@gnu.org>
8593
187e21d1
MK
8594 * amd64-linux-tdep.h: Remove file.
8595 * amd64-linux-tdep.c: Don't include "inferior.h" and
8596 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8597 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8598 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8599 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8600 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8601 macros.
8602 (user_to_gdb_regmap): Remove variable.
8603 (amd64_linux_gregset_reg_offset): New variable.
8604 (amd64_core_fns): Remove variable.
8605 (fetch_core_registers): Remove function.
8606 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8607 functions.
8608 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8609 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8610 * Makefile.in (amd64_linux_tdep_h): Remove.
8611 (amd64-linux-nat.o): Update dependencies.
8612 (amd64-linux-tdep.o): Update dependencies.
8613
99679982
MK
8614 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8615 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8616 functions.
8617 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8618
34021503
MK
8619 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8620 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8621
134d01f1
DJ
86222004-03-14 Daniel Jacobowitz <drow@mvista.com>
8623
8624 * dwarf2read.c (read_structure_type): Rename from
8718a420 8625 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8626 Return immediately if die->type is set. Call read_type_die before
8627 dwarf2_add_member_fn.
8628 (process_structure_scope): New function.
8629 (read_enumeration_type, process_enumeration_scope): New functions,
8630 broken out from read_enumeration. Don't create the enumeration
8631 type if it has already been created.
8632 (read_enumeration): Removed.
8633 (process_die): Call read_structure_type, process_structure_scope,
8634 read_enumeration_type, and process_enumeration_scope. Just call
8635 new_symbol for base and subrange types. Add a comment about other
8636 type dies.
8637 (read_type_die): Call read_enumeration_type.
8638 (add_partial_structure, new_symbol): Update comments.
8639
65760afb
SC
86402004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8641
8642 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8643
10f59415
SC
86442004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8645
8646 * tui/tui-win.h (tui_get_cmd_list): Declare.
8647 * tui/tui-win.c (tui_command): New function.
8648 (tui_get_cmd_list): New function.
8649 (_initialize_tui_win): Moved initialization of tui command in
8650 tui_get_cmd_list.
8651
8652 * tui/tui-data.c (init_content_element): Setup new data members.
8653 (init_win_info): Likewise.
8654 (free_content_elements): Free it.
8655 * tui/tui-data.h (struct tui_data_element): Store the register
8656 content to print.
8657 (struct tui_data_info): Keep the current register group.
8658
8659 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8660
8661 * tui/tui-regs.h (tui_show_registers): Update prototype.
8662 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8663 (tui_resize_all): No need to calculate anything for register window.
8664 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8665 (tui_set_register_element, tui_set_general_regs_content): Remove.
8666 (tui_set_special_regs_content): Remove.
8667 (tui_set_general_and_special_regs_content): Remove.
8668 (tui_set_float_regs_content): Remove.
8669 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8670 (tui_set_regs_content): Remove.
8671 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8672 (tui_v_show_registers_command_support): Remove.
8673 (tui_show_registers): Use a reggroup to specify the registers to show.
8674 (tui_show_register_group): New function.
8675 (tui_display_registers_from): Compute the layout of register window
8676 and refresh with new API; be sure to delete old register windows.
8677 (tui_check_register_values): Update to use tui_get_register and
8678 tui_display_data.
8679 (tui_display_register): Just refresh the register window part.
8680 (tui_register_format): Format registers and save in tui_data_element.
8681 (tui_get_register): New to combine tui_reg_value_has_changed and
8682 tui_get_register_raw_value; fix to use the new gdb API.
8683 (tui_show_float_command): Renamed tui_reg_float_command.
8684 (tui_show_general_command): Renamed tui_reg_general_command.
8685 (tui_show_special_command): Renamed tui_reg_system_command.
8686 (_initialize_tui_regs): Remove unused commands.
8687
c3364ea4
MK
86882004-03-13 Mark Kettenis <kettenis@gnu.org>
8689
27d1e716
MK
8690 * NEWS (New native configurations): Mention OpenBSD/amd64.
8691
c3364ea4
MK
8692 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8693 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8694 Remove defines.
8695 * config/i386/nm-fbsd64.h: Likewise.
8696 * config/i386/nm-obsd.h: Likewise.
8697 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8698 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8699
b2d6d697
KB
87002004-03-12 Kevin Buettner <kevinb@redhat.com>
8701
8702 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8703 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8704 New constants.
8705
76e43199
KB
8706 From Richard Sandiford <rsandifo@redhat.com>:
8707 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8708
34ce532e
KB
87092004-03-12 Kevin Buettner <kevinb@redhat.com>
8710
8711 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8712 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8713 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8714 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8715 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8716 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8717 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8718 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8719 definitions from frv-tdep.c to frv-tdep.h.
8720
c4d10515
KB
87212004-03-12 Kevin Buettner <kevinb@redhat.com>
8722
8723 Add shared library support for FR-V FDPIC ABI:
8724 * Makefile.in (solib-frv.o): Add dependencies.
8725 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8726 New functions.
8727 (frv_push_dummy_call): Add support for FDPIC ABI.
8728 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8729 for FDPIC ABI.
8730 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8731 (frv_fdpic_find_canonical_descriptor): Declare.
8732 * solib-frv.c: New file.
8733 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8734 * config/frv/tm-frv.h (solib.h): Include.
8735
ed1bd989
KB
87362004-03-12 Kevin Buettner <kevinb@redhat.com>
8737
8738 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8739 (frv-tdep.o): Update dependencies.
8740 * frv-tdep.h: New file.
8741 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8742 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8743 constants.
8744 (struct gdbarch_tdep): Add new member ``frv_abi''.
8745 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8746 functions.
8747 (new_variant): Set ``frv_abi'' field.
8748 (gdb_arch_init): Detect FDPIC executables.
8749
82b38f72
MK
87502004-03-12 Mark Kettenis <kettenis@gnu.org>
8751
8752 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8753 wrapper.
8754
db1ea9ba
AC
87552004-03-11 Andrew Cagney <cagney@redhat.com>
8756
8757 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8758
f8766ec1
KB
87592004-03-11 Kevin Buettner <kevinb@redhat.com>
8760
8761 * solist.h (master_so_list): New function.
8762 * solib.c (master_so_list): Likewise.
8763 * solib-svr4.c (enable_break): Iterate over so_list entries
8764 obtained from master list instead of entries obtained directly
8765 via svr4_current_sos().
8766
523f6a27
BE
87672004-03-10 Ben Elliston <bje@gnu.org>
8768
8769 * MAINTAINERS: Update my mail address.
8770
37814c18
KI
87712004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8772
8773 * remote-m32r-sdi.c: Support hardware watchpoint.
8774
8b9740d8
DJ
87752004-03-09 Daniel Jacobowitz <drow@mvista.com>
8776
8777 * user-regs.c: Update copyright years.
8778 (struct user_regs): Rename to gdb_user_regs.
8779 (append_user_reg, builtin_user_regs, user_regs_init)
8780 (user_reg_add, user_reg_map_name_to_regnum)
8781 (usernum_to_user_reg): Update.
8782
4bb7a0a7
DJ
87832004-03-09 Daniel Jacobowitz <drow@mvista.com>
8784
8785 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8786 (skip_children): New functions.
8787 (locate_pdi_sibling): Call skip_children.
8788
44e1a9eb
DJ
87892004-03-09 Daniel Jacobowitz <drow@mvista.com>
8790
8791 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8792 * gdbtypes.c (check_typedef): Update comments.
8793
f3dd6933
DJ
87942004-03-09 Daniel Jacobowitz <drow@mvista.com>
8795
8796 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8797 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8798 pointer. Update comment about comp_unit_head.
8799 (struct abbrev_info): Shorten two int flags.
8800 (dwarf_alloc_abbrev): Take a CU argument.
8801 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8802 each time through the loop. Update cleanup argument.
8803 (psymtab_to_symtab_1): Update cleanup call.
8804 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8805 abbrev_obstack.
8806 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8807 Just call obstack_free and clear the pointer.
8808
b40c7d58
DJ
88092004-03-09 Daniel Jacobowitz <drow@mvista.com>
8810
8811 * infrun.c (handle_inferior_event): Remove short-circuit code for
8812 events in a different thread.
8813
333dabeb
DJ
88142004-03-09 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8817 print the whole transfer.
8818 (initialize_targets): Update description of "set debug target".
8819
aa17d93e
DJ
88202004-03-09 Daniel Jacobowitz <drow@mvista.com>
8821
8822 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8823
0b71f08f
NW
88242004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8825
8826 * MAINTAINERS (write after approval): Add myself.
8827
3930f270
CV
88282004-03-08 Corinna Vinschen <vinschen@redhat.com>
8829
8830 * sh-tdep.c (sh_print_registers_info): Use for loop.
8831 Don't skip multiple registers when a float register is encountered.
8832
a2b4a96c
CV
88332004-03-08 Corinna Vinschen <vinschen@redhat.com>
8834
8835 Fix PR tdep/1291.
8836 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8837 to official SH documentation.
8838
f15a4bc0
AC
88392004-03-07 Andrew Cagney <cagney@redhat.com>
8840
8841 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8842 unused function.
8843
9498281f
DJ
88442004-03-07 Daniel Jacobowitz <drow@mvista.com>
8845
8846 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8847 (arm_get_next_pc): Handle BX and BLX.
8848
449e1137
AC
88492004-03-07 Andrew Cagney <cagney@redhat.com>
8850
eded0a31
AC
8851 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8852 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8853 HPPA_SP_REGNUM.
8854 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8855 (hppa_target_read_fp): Delete.
8856 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8857 register_virtual_size, max_register_raw_size,
8858 max_register_virtual_size, register_byte, register_size,
8859 target_read_fp, fp_regnum, and register_bytes. Set register_type
8860 instead of register_virtual_type.
8861 (hppa32_register_type, hppa64_register_type): Replace
8862 hppa32_register_virtual_type and hppa64_register_virtual_type.
8863 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8864 (HPPA_FP_REGNUM): Define.
8865
f5f907e2
AC
8866 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8867
69b4bbe4
AC
8868 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8869 (pa_do_registers_info): Delete.
8870 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8871 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8872 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8873
78161e48
AC
8874 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8875 GDB_TARGET_IS_HPPA code.
8876 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8877 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8878 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8879 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8880 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8881 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8882 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8883 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8884 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8885 (hppa_frameless_function_invocation, hppa64_store_return_value)
8886 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8887 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8888 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8889 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8890 (find_proc_framesize, deposit_21, restore_pc_queue)
8891 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8892 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8893
782eae8b
AC
8894 Unconditionally enable 64-bit frame and ABI code.
8895 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8896 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8897 push_dummy_frame, fix_call_dummy, push_arguments,
8898 call_dummy_location, extract_return_value, use_struct_convention,
8899 store_return_value, store_struct_return, saved_pc_after_call,
8900 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8901 frame_chain, frame_chain_valid, frameless_function_invocation,
8902 frame_saved_pc, and pop_frame.
78161e48 8903
449e1137
AC
8904 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8905 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8906 (hppa_gdbarch_init): Do not set PC_REGNUM.
8907
12507572
MK
89082004-03-06 Mark Kettenis <kettenis@gnu.org>
8909
8910 * config/alpha/tm-fbsd.h: Remove file.
8911 * config/alpha/fbsd.mt: Tweak comment.
8912 (TM_FILE): Set to tm-alpha.h.
8913
c107cc1b
AC
89142004-03-05 Andrew Cagney <cagney@redhat.com>
8915
8916 * infrun.c (step_over_function): When non-legacy code, and no
8917 step_frame_id, use the unwinder to get the caller's frame ID.
8918
f2e7c15d
MK
89192004-03-05 Mark Kettenis <kettenis@gnu.org>
8920
8b0c3633
MK
8921 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8922 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8923 bfd_arch_unknown. Adjust comment.
8924
f2e7c15d
MK
8925 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8926 * i386obsd-tdep.c: Correct spelling in comment.
8927 * i386nbsd-tdep.c: Correct spelling in comment.
8928 * sparc-tdep.c: Correct spelling in comments.
8929
1198ecbe
DC
89302004-03-05 David Carlton <carlton@kealia.com>
8931
8932 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8933 bug.
8934
9eb42ed1
MK
89352004-03-05 Mark Kettenis <kettenis@gnu.org>
8936
8937 * sparc-tdep.c: Fix typo in comment.
8938
52b5e991
JB
89392004-03-04 J. Brobecker <brobecker@gnat.com>
8940
8941 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8942
d8151005
DJ
89432004-03-04 Daniel Jacobowitz <drow@mvista.com>
8944
8945 * dwarf2read.c: Add comment describing memory lifetimes.
8946 (struct dwarf2_pinfo): Update comment.
8947 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8948 (read_enumeration, new_symbol): Don't use obsavestring.
8949
cbeae229
MK
89502004-03-04 Mark Kettenis <kettenis@gnu.org>
8951
722d18c2
MK
8952 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8953 instead of amd64_fill_fxsave.
8954 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8955 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8956
cbeae229
MK
8957 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8958 Reorganize code a bit.
8959
b4206d25
OF
89602004-03-04 Orjan Friberg <orjanf@axis.com>
8961
8962 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8963 when the frame pointer is pushed. Don't set the frame pointer's
8964 address on the stack unless it's actually located there.
b4206d25
OF
8965 Set the SRP's address on the stack correctly when the PC is still in
8966 the prologue.
8967 (cris_return_value): New function.
8968 (cris_gdbarch_init): Clear deprecated store_return_value,
8969 extract_return_value.
8970
49b0b195
JB
89712004-03-02 Jim Blandy <jimb@redhat.com>
8972
8973 * stabsread.c (reg_value_complaint): The maximum register number
8974 is one less than the number of registers.
8975
e9ff708b
AC
89762004-03-02 Andrew Cagney <cagney@redhat.com>
8977
8978 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8979 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8980 trailing comma and redundant assignment of I386_ST0_REGNUM.
8981 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8982 32-bit segment registers.
8983
d4715e41
AC
89842004-03-01 Andrew Cagney <cagney@redhat.com>
8985
8986 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8987 use frame_relative_level and get_next_frame.
8988
3ce2bf18
AC
89892004-02-29 Andrew Cagney <cagney@redhat.com>
8990
8991 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8992 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8993 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8994 Delete macro.
8995
2da6aac3
DJ
89962004-02-29 Daniel Jacobowitz <drow@mvista.com>
8997
8998 * inflow.c (terminal_inferior): Don't give up the terminal if we
8999 previously couldn't get the inferior's terminal state.
9000
6ba34a8d
DJ
90012004-02-29 Daniel Jacobowitz <drow@mvista.com>
9002
9003 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9004 PC_REGNUM.
9005
faae5abe
AC
90062004-02-28 Andrew Cagney <cagney@redhat.com>
9007
9008 * NEWS: Refer to GDB 6.1.
9009 * README: Refer to GDB 6.1.
9010 * PROBLEMS: Refer to GDB 6.1.
9011
2227a3c5
DJ
90122004-02-28 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * thread-db.c (disable_thread_signals): Remove unused function.
9015
80571bff
MK
90162004-02-28 Mark Kettenis <kettenis@gnu.org>
9017
041bd74b
MK
9018 * amd64-nat.c: Include "gdb_string.h".
9019 (amd64_collect_native_gregset): Zero-extend the 32-bit
9020 general-purpose registers and %eip.
9021
3c017e40
MK
9022 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9023 * amd64-tdep.c (amd64_collect_fxsave): New function.
9024 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9025
80571bff
MK
9026 * i387-tdep.h: Update copyright year.
9027 (i387_collect_fxsave): New prototype.
9028 * i387-tdep.c: Update copyright year.
9029 (i387_collect_fxsave): New function containing most of the code
9030 from i387_fill_fxsave.
9031 (i387_fill_fxsave): Call i387_collect_fxsave.
9032
50d71875
AC
90332004-02-28 Andrew Cagney <cagney@redhat.com>
9034
9035 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9036 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9037
4a28816e
MK
90382004-02-28 Mark Kettenis <kettenis@gnu.org>
9039
9040 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9041
dbda9972
AC
90422004-02-28 Andrew Cagney <cagney@redhat.com>
9043
9044 * utils.c: Use "", instead of <>, to include readline.
9045 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9046 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9047 * source.c, solib.c, exec.c, event-top.c: Ditto.
9048 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9049 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9050 * Makefile.in: Update all dependencies.
9051 (readline_tilde_h, readline_history_h): Define.
9052 (readline_headers): Delete.
9053
83277a99
MK
90542004-02-28 Mark Kettenis <kettenis@gnu.org>
9055
91ae4303
MK
9056 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9057 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9058 "config/i386/tm-lx64.h".
9059
83277a99
MK
9060 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9061 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9062 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9063
6e1d7d6c
AC
90642004-02-28 Andrew Cagney <cagney@redhat.com>
9065
ecc9ac84
AC
9066 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9067
6e1d7d6c
AC
9068 * breakpoint.c (_initialize_breakpoint): Use
9069 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9070 Add help to show command.
9071
9671aeef
MK
90722004-02-28 Mark Kettenis <kettenis@gnu.org>
9073
7fa2737c
MK
9074 * i386-nat.c: Reformat to be closer to coding standards.
9075 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9076 `retval'. Make variables `align' and `size' local to while-loop.
9077 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9078 (_initialize_i386_nat): New prototype.
9079
9671aeef
MK
9080 * tui/tui.c: Include <readline/readline.h> instead of
9081 "readline/readline.h". Include it after <term.h> and
9082 "gdb_curses.h".
9083
fca7aa43
AC
90842004-02-27 Andrew Cagney <cagney@redhat.com>
9085
412275d5
AC
9086 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9087 the new frame unwind code.
9088 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9089 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9090 PCOQ_HEAD_REGNUM.
9091
fca7aa43
AC
9092 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9093 "return_value" and "push_dummy_call".
9094 (hppa32_use_struct_convention): Delete unused function.
9095 (hppa32_store_return_value): Delete unused function.
9096 (hppa32_extract_return_value): Delete unused function.
9097 (hppa32_stack_align): Delete function.
9098
e6a8a7d2
EZ
90992004-02-27 Eli Zaretskii <eliz@elta.co.il>
9100
9101 * coffread.c (enter_linenos): Don't let rawptr reference memory
9102 outside linetab[]'s limits.
9103
1797a8f6
AC
91042004-02-27 Andrew Cagney <cagney@redhat.com>
9105
9106 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9107 inferior stack space - the stack needs to grow upwards.
9108 (hppa32_frame_align): New function.
9109 (hppa64_frame_align): Replace hppa_frame_align.
9110 (hppa_gdbarch_init): Update.
9111
2e4b5889
OF
91122004-02-26 Orjan Friberg <orjanf@axis.com>
9113
9114 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9115 (dwarf2-frame.h): Include.
9116 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9117 Remove static variables related to ABI setting.
9118 (struct gdbarch_tdep): Remove cris_abi member.
9119 (struct frame_extra_info): Remove.
9120 (cris_unwind_cache, stack_item): New structs.
9121 (cris_frame_unwind, cris_frame_base): New variables.
9122 (push_stack_item, pop_stack_item)
9123 (cris_frame_unwind_cache, cris_frame_this_id)
9124 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9125 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9126 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9127 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9128 (cris_reg_struct_has_addr): New functions.
9129 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9130 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9131 (cris_store_struct_return, cris_frameless_function_invocation)
9132 (cris_pop_frame, cris_skip_prologue_main)
9133 (cris_abi_original_store_return_value)
9134 (cris_abi_v2_store_return_value)
9135 (cris_abi_original_extract_return_value)
9136 (cris_abi_v2_extract_return_value)
9137 (cris_abi_original_reg_struct_has_addr)
9138 (cris_abi_v2_reg_struct_has_addr)
9139 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9140 (cris_push_return_address, cris_abi_update): Remove.
9141 (_initialize_cris_tdep): Remove ABI command.
9142 (cris_dump_tdep): Ditto.
8718a420 9143 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9144 Set store_return_value, extract_return_value, push_dummy_code,
9145 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9146 frame_unwind_append_sniffer, frame_base_set_default.
9147 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9148 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9149 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9150 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9151 init_extra_frame_info, frameless_function_invocation, frame_chain,
9152 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9153 dummy_write_sp.
8718a420 9154
6b9acc27
JJ
91552004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9156
9157 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9158 * valprint.c (print_hex_chars): Change from static to external.
9159 (print_char_chars): New function.
9160 * printcmd.c (print_scalar_formatted): For integer and enum types
9161 that are longer than LONGEST, perform processing via appropriate
9162 print_*_chars routines.
9163
a431654a
AC
91642004-02-26 Andrew Cagney <cagney@redhat.com>
9165
9166 * Makefile.in: Update dependencies.
9167 Changes from Ulrich Weigand,
9168 * s390-tdep.c: Include "dwarf2-frame.h".
9169 (s390_dwarf2_frame_init_reg): New function.
9170 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9171 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9172
fa8d40ab
JJ
91732004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9174
9175 * breakpoint.c (pending_break_support): New setting variable.
9176 (break_command_1): Account for pending_break_support setting
9177 when creating pending breakpoints.
9178 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9179 (_initialize_breakpoint): Add "set breakpoint pending" and
9180 "show breakpoint pending" commands.
9181
0dcd613f
AC
91822004-02-26 Andrew Cagney <cagney@redhat.com>
9183
9184 Fix PR i18n/1570.
9185 * charset.c (backslashable, backslashed, represented): Remove 'e'
9186 from list of escaped characters, not part of ISO-C.
9187
479272a3
JB
91882004-02-25 J. Brobecker <brobecker@gnat.com>
9189
9190 From Peter Schauer <schauer@pdf.de>:
9191 * tui/tui.c: Move system header includes after local includes.
9192 Fixes a build failure on solaris systems.
9193
7613d933
JB
91942004-02-25 J. Brobecker <brobecker@gnat.com>
9195
9196 * configure.in: Refine the previous change.
9197 * configure: Regenerate.
9198
9c1488cb
MK
91992004-02-25 Mark Kettenis <kettenis@gnu.org>
9200
9201 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9202 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9203 "amd64-tdep.h" instead of "x86-64-tdep.h".
9204 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9205 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9206 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9207 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9208 and "x86-64-tdep.c".
9209 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9210 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9211 and "x86-64-tdep.c".
9212 * amd64bsd-nat.c: Update copyright year.
9213 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9214 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9215 "x86-64-tdep.h".
9216 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9217 "x86-64-tdep.h".
9218 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9219 "x86-64-tdep.h".
9220 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9221 "x86-64-tdep.h".
9222 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9223 "x86-64-tdep.h".
9224 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9225 "x86-64-tdep.h".
8718a420 9226 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9227 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9228 * Makefile.in (amd64_linux_tdep_h): Renamed from
9229 x86_64_linux_tdep_h.
9230 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9231 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9232 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9233 (amd64obsd-tdep.o): Update dependencies.
9234 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9235 dependencies.
9236 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9237 dependencies.
9238 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9239 amd64-linux-nat.c amd64-linux-tdep.c.
9240 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9241 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9242 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9243 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9244 amd64-tdep.o and amd64-linux-tdep.o.
9245 (TM_FILE): Set to tm-linux64.h.
9246 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9247 (NAT_FILE): Set to nm-linux64.h.
9248 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9249 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9250 amd64-tdep.o.
9251 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9252 amd64-tdep.o.
9253 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9254 amd64-tdep.o.
9255
4b8dad4a
RM
92562004-02-25 Roland McGrath <roland@redhat.com>
9257
9258 * remote.c (remote_protocol_qPart_auxv): New variable.
9259 (init_all_packet_configs): Initialize it.
9260 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9261 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9262 (show_remote_cmd): Call it.
9263 (_initialize_remote): Initialize commands.
9264 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9265 service TARGET_OBJECT_AUXV requests.
9266
66745969
JB
92672004-02-25 J. Brobecker <brobecker@gnat.com>
9268
9269 * configure.in: Make sure that the wborder function is available.
9270 Otherwise, search for it in the cur_colr library.
9271 * configure: Regenerate.
9272
79508e1e
AC
92732004-02-25 Andrew Cagney <cagney@redhat.com>
9274
9275 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9276
571ee600
MK
92772004-02-25 Mark Kettenis <kettenis@gnu.org>
9278
9279 * config/i386/tm-x86-64linux.h: Tweak comments.
9280
2b1b322f 92812004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9282
9283 * MAINTAINERS: Add self to write-after-approval list.
9284
4d2acc65
AC
92852004-02-25 Andrew Cagney <cagney@redhat.com>
9286
4b8dad4a 9287 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9288 * cli/cli-script.c (execute_control_command): Unconditionally
9289 install a cleanup. Default "ret" to "invalid_control". Use
9290 "break" instead of "return" to escape from the switch.
9291
4cfcaf21
JB
92922004-02-24 J. Brobecker <brobecker@gnat.com>
9293
9294 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9295 with the lines macro defined in term.h on AiX.
9296 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9297 a collision with the label_width macro defined in term.h on AiX.
9298
54a5c8d8
KB
92992004-02-23 David Mosberger <davidm@hpl.hp.com>
9300
9301 Committed by Kevin Buettner <kevinb@redhat.com>.
9302
9303 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9304 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9305 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9306 instead of ia64_write_pc().
9307 * ia64-linux-tdep.c (regcache.h): Include.
9308 (ia64_linux_write_pc): New function.
4b8dad4a 9309
8a1dac83
RM
93102004-02-23 Roland McGrath <roland@redhat.com>
9311
9312 * auxv.c (info_auxv_command): Fix typos in error messages.
9313
90f90721
MK
93142004-02-23 Mark Kettenis <kettenis@gnu.org>
9315
8a1dac83 9316 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9317 (enum amd64_regnum): New.
9318 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9319 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9320 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9321 (X86_64_XMM1_REGNUM): Removed.
9322 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9323 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9324 prototypes for renamed functions.
9325 * x86-64-tdep.c: Fix typo.
9326 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9327 register numbers.
9328 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9329 Use constants from `enum amd64_regnum' for register numbers.
9330 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9331 (amd64_analyze_prologue, amd64_frame_cache,
9332 amd64_sigtramp_frame_cache): Use constants from `enum
9333 amd64_regnum' for register numbers.
9334 (amd64_supply_fpregset): Adjust for renamed functions.
9335 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9336 `enum amd64_regnum' for register numbers.
9337 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9338 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9339 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9340 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9341 (amd64_linux_fill_gregset): Adjust for renamed macros.
9342 (fetch_core_registers): Adjust for renamed functions.
9343 (amd64_linux_init_abi): Adjust for renamed functions.
9344 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9345 renamed functions.
9346 * amd64-nat.c: Adjust for renamed macros.
9347 * amd64bsd-nat.c (fetch_inferior_registers)
9348 (store_inferior_registers): Use constants from `enum amd64_regnum'
9349 for register numbers. Adjust for renamed variables.
9350 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9351 renamed variables.
9352 (_initialize_amd64fbsd_nat): Use constants from `enum
9353 amd64_regnum' for register numbers.
9354 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9355 `enum amd64_regnum' for register numbers.
9356 (amd64fbsd_init_abi): Adjust for renamed functions.
9357 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9358 `enum amd64_regnum' for register numbers.
9359 (amd64nbsd_init_abi): Adjust for renamed functions.
9360 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9361 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9362 `enum amd64_regnum' for register numbers.
9363 (amd64obsd_init_abi): Adjust for renamed functions.
9364 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9365
d5479188
JJ
93662004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9367
9368 * breakpoint.c (print_one_breakpoint): Do not output spaces
9369 after printing <PENDING> for a pending breakpoint.
9370
81cb7cc9
JJ
93712004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9372
9373 * printcmd.c (print_scalar_formatted): Initialize val_long
9374 to remove compiler warning message.
9375
cbdeadca
JJ
93762004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9377
9378 * defs.h (nquery, yquery): New prototypes.
9379 * breakpoint.c (break_command_1): Use new nquery interface.
9380 * utils.c (defaulted_query, nquery, yquery): New functions.
9381
da6bab63
AC
93822004-02-23 Andrew Cagney <cagney@redhat.com>
9383
2f690297
AC
9384 * hppa-tdep.c (hppa_frame_align): New function.
9385 (hppa32_push_dummy_call): New function.
9386 (hppa64_push_dummy_call): New function.
9387 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9388 disabled.
8a1dac83 9389
da6bab63
AC
9390 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9391 FIX_CALL_DUMMY when push_dummy_call is available.
9392 (call_function_by_hand, push_dummy_code): Ditto.
9393
abf9b42d
AC
93942004-02-22 Andrew Cagney <cagney@redhat.com>
9395
9396 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9397 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9398 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9399 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9400 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9401 call_dummy_location to ON_STACK.
9402
10fc94a4
MK
94032004-02-22 Mark Kettenis <kettenis@gnu.org>
9404
51433e4b
MK
9405 * x86-64-linux-tdep.c: Tweak comment.
9406 (amd64_linux_supply_gregset): Renamed from
9407 x86_64_linux_supply_gresget.
9408 (amd64_linux_fill_gregset): Renamed from
9409 x86_64_linux_fill_gregset.
9410 (fetch_core_registers): Adjust for renamed functions.
9411 (amd64_core_fns): Renamed from x86_64_core_fns.
9412 (amd64_linux_sigtramp_start): Renamed from
9413 x86_64_linux_sigtramp_start.
9414 (amd64_linux_pc_in_sigtramp): Renamed from
9415 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9416 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9417 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9418 (amd64_linux_sigcontext_addr): Renamed from
9419 x86_64_linux_sigcontext_addr.
9420 (amd64_linux_sc_reg_offset): Renamed from
9421 x86_64_linux_sc_reg_offset.
9422 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9423 Adjust for renamed functions and variables.
9424 (_initialize_amd64_linux_tdep): Renamed from
9425 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9426 variables.
9427 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9428 Adjust for renamed functions.
9429
430eaf2e
MK
9430 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9431 from x86_64_linux_gregset64_reg_offset.
9432 (amd64_linux_gregset32_reg_offset): Rename from
9433 x86_64_linux_gregset64_reg_offset.
9434 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9435 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9436 (amd64_linux_dr_set_control): Renamed from
9437 x86_64_linux_dr_set_control. Adjust for renamed functions.
9438 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9439 Adjust for renamed functions.
9440 (amd64_linux_dr_reset_addr): Renamed from
9441 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9442 (amd64_linux_dr_get_status): Renamed from
9443 x86_64_linux_dr_get_status. Adjust for renamed functions.
9444 (_initialize_amd64_linux_nat): Renamed from
9445 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9446 functions.
9447 * config/i386/nm-x86-64linux.h: Update copyright year.
9448 Adjust for renamed functions.
9449
10fc94a4
MK
9450 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9451 amd64fbsd_sigtramp_start.
9452 (amd64fbsd_sigtramp_end_addr): Renamed from
9453 amd64fbsd_sigtramp_end.
9454 (amd64fbsd_init_abi): Adjust for renamed variables.
9455 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9456 variables.
9457 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9458 amd64fbsd_sigtramp_start.
9459 (amd64fbsd_sigtramp_end_addr): Renamed from
9460 amd64fbsd_sigtramp_end.
9461
343af405
AC
94622004-02-22 Andrew Cagney <cagney@redhat.com>
9463
537987fc
AC
9464 * hppa-tdep.c (hppa32_return_value): New function.
9465 (hppa64_return_value): New function.
9466 (hppa_gdbarch_init): Set return_value; keep disabled.
9467
fad850b2
AC
9468 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9469 struct-return and inferior function call methods.
9470
26d08f08
AC
9471 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9472 "frame-base.h".
9473 (struct hppa_frame_cache): Define.
9474 (hppa_frame_cache, hppa_frame_this_id): New functions.
9475 (hppa_frame_prev_register): New function.
9476 (hppa_frame_unwind, hppa_frame_base): New variables.
9477 (hppa_frame_unwind_sniffer): New function.
9478 (hppa_frame_base_address, hppa_unwind_pc): New function.
9479 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9480 sniffer, and frame base sniffer; keep disabled.
9481 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9482 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9483
e7d7bd65
AC
9484 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9485 to predicates for "seriously old code".
9486
e963316f
AC
9487 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9488 runtime if(0).
9489
56132691
AC
9490 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9491 unsigned.
9492 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9493
343af405
AC
9494 * config/pa/tm-hppa.h: Update copyright.
9495 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9496 (deprecated_init_frame_pc_default): Delete declaration.
9497 (hppa_frame_init_saved_regs): Delete declaration.
9498 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9499 * hppa-tdep.c: Include "arch-utils.h".
9500 (hppa_gdbarch_init): Set deprecated init_frame_pc
9501 and deprecated frame_init_saved_regs.
9502 (hppa_frame_init_saved_regs): Make static.
9503
f5859b4d
MK
95042004-02-22 Mark Kettenis <kettenis@gnu.org>
9505
86f6f8e7 9506 Remove old 386BSD support.
cf7c5c23 9507 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9508 * configure.host: Remove i[34567]86-*-bsd*.
9509 * configure.tgt: Remove i[34567]86-*-bsd*.
9510 * i386b-nat.c: Removed.
9511 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9512 (i386b-nat.o): Remove dependencies.
9513
86f6f8e7
MK
9514 * config/i386/i386bsd.mh: Removed.
9515 * config/i386/i386bsd.mt: Removed.
9516 * config/i386/nm-i386bsd.h: Removed.
9517 * config/i386/tm-i386bsd.h: Removed.
9518 * config/i386/xm-i386bsd.h: Removed.
9519
971218cd
MK
9520 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9521
7e654c37
MK
9522 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9523 (amd64fbsd_init_abi): Set link map offsets.
9524 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9525 (amd64nbsd_init_abi): Set link map offsets.
9526 * amd64obsd-tdep.c: Include "solib-svr4.h".
9527 (amd64obsd_init_abi): Set link map offsets.
9528 * i386fbsd-tdep.c: Include "solib-svr4.h".
9529 (i386fbsd_init_abi): Set link map offsets.
9530 * i386nbsd-tdep.c: Include "solib-svr4.h".
9531 (i386nbsdelf_init_abi): Set link map offsets.
9532 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9533 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9534 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9535 solib-legacy.o and core-aout.o. Reformat.
9536 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9537 solib-svr4.o, solib-legacy.o. Reformat.
9538 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9539 * config/i386/nbsdelf.mh: Reformat.
9540 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9541 solib-svr4.o, solib-legacy.o and corelow.o.
9542 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9543 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9544 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9545 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9546 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9547 (TM_FILE): Set to tm-fbsd.h.
9548 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9549 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9550 solib-svr4.o.
9551 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9552 solib-svr4.o.
9553 (TM_FILE): Set to nm-nbsd.h.
9554 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9555 Simplify shared library support. Don't include "elf/common.h".
9556 (SVR4_SHARED_LIBS): Don't define.
9557 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9558 "solib.h".
9559 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9560 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9561 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9562 Don't include "i386/tm-i386.h". Include "solib.h".
9563 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9564 Don't include "i386/tm-i386.h".
9565 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9566 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9567 Include "i386/xm-i386.h".
9568 (HOST_LONG_DOUBLE_FORMAT): Remove.
9569
5d93ae8c
MK
9570 Fix OpenBSD/i386 sigtramp recognition.
9571 * i386-tdep.h: Update copyright year.
9572 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9573 (i386bsd_sigtramp_end): New prototypes.
9574 (i386fbsd_sigtramp_start_addr): Renamed from
9575 i386fbsd_sigtramp_start.
9576 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9577 (i386obsd_sigtramp_start_addr): Renamed from
9578 i386obsd_sigtramp_start.
9579 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9580 * i386bsd-tdep.c: Update copyright year.
9581 (i386bsd_pc_in_sigtramp): Make public.
9582 * i386fbsd-nat.c: Update copyright year.
9583 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9584 * i386fbsd-tdep.c: Update copyright year.
9585 (i386fbsd_sigtramp_start_addr): Renamed from
9586 i386fbsd_sigtramp_start.
9587 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9588 (i386fbsdaout_init_abi): Adjust for renamed variables.
9589 * i386obsd-nat.c: Update copyright year.
9590 (_initialize_i386obsd_nat): Adjust for renamed variables.
9591 * i386obsd-tdep.c: Include "target.h".
9592 (i386obsd_page_size): New variable.
9593 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9594 (i386obsd_sigtramp_end): New functions.
9595 (i386obsd_sigtramp_start_addr): Renamed from
9596 i386obsd_sigtramp_start.
9597 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9598 (i386obsd_init_abi): Adjust for renamed variables. Set
9599 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9600 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9601
84d04465
MK
9602 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9603 trampoline change in OpenBSD kernel.
9604
b053aceb
MK
9605 * amd64-nat.c: Update copyright year.
9606 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9607 architecture from REGCACHE.
9608
f5859b4d
MK
9609 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9610 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9611
e4bbbda8
MK
96122004-02-21 Mark Kettenis <kettenis@gnu.org>
9613
ba361932
MK
9614 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9615 i[34567]86-*-openbsd3.[0-3].
9616 * config/i386/obsdaout.mh: New file.
9617
d3e48264
MK
9618 * config/i386/obsd.mh (MH_FLAGS): Remove.
9619
60a6eeb6
MK
9620 Fix PR build/1549.
9621 * i386obsd-tdep.c: Update copyright years. Include
9622 "solib-svr4.h".
9623 (i386obsd_init_abi): Don't set regset_from_core_section here.
9624 (i386obsd_aout_init_abi): New function. Set
9625 regset_from_core_section here.
9626 (i386obsd_elf_init_abi): New function.
9627 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9628 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9629 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9630 (TM_FILE): Set to tm-nbsd.h.
9631
9632 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9633 solib-sunos.o.
9634
e4bbbda8
MK
9635 * solib-svr4.h: Update copyright year.
9636 (svr4_ilp32_fetch_link_map_offsets)
9637 (svr4_lp64_fetch_link_map_offsets): New prototype.
9638 * solib-svr4.c: Update copyright year.
9639 (svr4_ilp32_fetch_link_map_offsets)
9640 (svr4_lp64_fetch_link_map_offsets): New function.
9641
f6fe98ef
DJ
96422004-02-20 Daniel Jacobowitz <drow@mvista.com>
9643
9644 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9645 to the partial symbol table.
9646
589ca796
JB
96472004-02-20 J. brobecker <brobecker@gnat.com>
9648
9649 * PROBLEMS: Add description of problem documented under gdb/1560.
9650
2031c21a
MK
96512004-02-20 Mark Kettenis <kettenis@gnu.org>
9652
30b344b1
MK
9653 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9654 comments.
9655 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9656 functions.
9657 (amd64obsd_init_abi): Reorder initializations. Use
9658 amd64obsd_r_reg_offset to initialize the general-purpose register
9659 set details. Set regset_from_core_section.
9660 (_initialize_amd64obsd_tdep): Rename from
9661 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9662 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9663 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9664
2031c21a
MK
9665 * NEWS (New native configurations): Mention OpenBSD/alpha.
9666 * configure.tgt: Add alpha*-*-openbsd*.
9667 * configure.host: Add alpha*-*-openbsd*.
9668 * alphanbsd-tdep.c: Update copyright year.
9669 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9670
42471775
AC
96712004-02-20 Andrew Cagney <cagney@redhat.com>
9672
9673 Fix PR tdep/1372.
9674 * configure.tgt: Delete target "none-*-*".
9675 * configure.host: Delete host "none-*-*".
9676 * config/none/none.mh: Delete file.
9677 * config/none/none.mt: Delete file.
9678 * config/none/xm-none.h: Delete file.
9679 * config/none/tm-none.h: Delete file.
9680 * config/none/nm-none.h: Delete file.
9681
960ccd7d
FF
96822004-02-19 Fred Fish <fnf@redhat.com>
9683
9684 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9685 cache->uses_fp prior to setting it.
9686
5f883edd
FF
96872004-02-19 Fred Fish <fnf@redhat.com>
9688
9689 Fix for PR breakpoint/1558.
9690 * sh-tdep.c (IS_JSR): New macro.
9691 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9692
f98c22d5
JB
96932004-02-19 Jim Blandy <jimb@redhat.com>
9694
9695 * findvar.c (value_from_register): Doc fix.
9696
95051d27
JJ
96972004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9698
9699 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9700 type being greater than sizeof of host's LONGEST. Always use
9701 unpack_long() unless format 'f' chosen.
9702
ccefbec3
EZ
97032004-02-19 Joel Brobecker <brobecker@gnat.com>
9704
9705 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9706
ccefbec3
EZ
9707 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9708 contains a symbol wich is the best, non-exact match for the given
9709 pc. Update comments.
9710
97112004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9712
2ede629f
EZ
9713 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9714 macro, which was part of the now removed Mach 3 port.
9715 * utils.c (request_quit): Ditto.
9716
567ee972
MK
97172004-02-18 Mark Kettenis <kettenis@gnu.org>
9718
9719 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9720 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9721
50cca7bb
MK
97222004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9723
9724 Committed by Mark Kettenis <kettenis@gnu.org>.
9725
9726 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9727 Define.
9728
226361c4
AC
97292004-02-18 Andrew Cagney <cagney@redhat.com>
9730
9731 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9732 CONFIG_INSTALL and CONFIG_UNINSTALL.
9733 * configure: Re-generate.
9734 * interps.h (INTERP_TUI): Define.
9735 * Makefile.in: Update dependencies.
9736 (TUI): New macro.
9737 (tui-main.o): Specify dependencies.
9738 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9739 * tui/tui-main.c: New file.
9740
49cfa46f
MK
97412004-02-18 Mark Kettenis <kettenis@gnu.org>
9742
e2879ccb
MK
9743 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9744 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9745 dependencies.
9746 * configure.host: Add x86_64-*-openbsd*.
9747 * configure.tgt: Add x86_64-*-openbsd*.
9748 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9749
c43f4bec
MK
9750 * tui/tui.c: Don't include <malloc.h>.
9751
09ae75b6
MK
9752 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9753 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9754 amd64nbsd-tdep.c.
9755
49cfa46f 9756 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9757 static. Remove extraneous whitespace.
49cfa46f
MK
9758 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9759 static.
9760
05957fdb
JB
97612004-02-17 Jim Blandy <jimb@redhat.com>
9762
9763 * findvar.c (value_from_register): Doc fix.
9764
d0f54f9d
JB
97652004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9766
9767 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9768
8a1dac83 9769 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9770 CORE_ADDR as type for selectors. Correct types for GNU run time
9771 message lookup function to use double indirection.
9772 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9773 * objc-lang.h (lookup_child_selector): Adapt prototype.
9774
9cbd5950
JB
9775 * s390-nat.c (SUBOFF): New macro.
9776 (supply_gregset, fill_gregset): Use it to handle debugging
9777 of 32-bit exectuables running under a 64-bit kernel.
9778 * s390-tdep.c: Include "solib-svr4.h".
9779 (s390_svr4_fetch_link_map_offset): New function.
9780 (s390x_svr_fetch_link_map_offset): Likewise.
9781 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9782 * Makefile.in (s390-tdep.o): Update dependencies.
9783
a8c99f38
JB
9784 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9785 "frame-unwind.h".
9786 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9787 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9788 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9789 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9790 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9791 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9792 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9793 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9794 (struct frame_extra_info): Remove.
9795 (s390_memset_extra_info): Remove.
f73b1eff
JB
9796 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9797 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9798 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9799 (is_rse): Renamed to ...
9800 (is_rsy): ... this. Support long displacements.
9801 (is_rxe): Renamed to ...
9802 (is_rxy): ... this. Support long displacements.
9803 (compute_x_addr): Support long displacements.
9804 (struct s390_prologue_data): New data type.
9805 (s390_on_stack): Change API to use struct s390_prologue_data.
9806 (s390_store): Reimplement.
9807 (s390_load): New function.
9808 (s390_get_signal_frame_info): Remove.
9809 (s390_get_frame_info): Remove, replace by ...
9810 (s390_analyze_prolog): ... this new function.
9811 (s390_check_function_end): Remove.
9812 (s390_function_start): Remove.
9813 (s390_frameless_function_invokation): Remove.
9814 (s390_is_sigreturn): Remove.
9815 (s390_init_frame_pc_first): Remove.
9816 (s390_init_frame_extra_info): Remove.
9817 (s390_frame_init_saved_regs): Remove.
9818 (s390_frame_saved_pc_nofix): Remove.
9819 (s390_frame_saved_pc): Remove.
9820 (s390_frame_chain): Remove.
9821 (s390_fp_regnum, s390_read_fp): Remove.
9822 (s390_pop_frame_regular, s390_pop_frame): Remove.
9823 (s390_saved_pc_after_call): Remove.
9824 (s390_skip_prologue): Reimplement.
9825 (s390_in_function_epilogue_p): Support long displacements.
9826 (struct s390_unwind_cache): New data structure.
9827 (s390_frame_unwind_cache): New function.
9828 (s390_prologue_frame_unwind_cache): Likewise.
9829 (s390_backchain_frame_unwind_cache): Likewise.
9830 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9831 (s390_frame_unwind): Define.
9832 (s390_frame_sniffer): New function.
9833 (struct s390_pltstub_unwind_cache): New data structure.
9834 (s390_pltstub_frame_unwind_cache): New function.
9835 (s390_pltstub_frame_this_id): Likewise.
9836 (s390_pltstub_frame_prev_register): Likewise.
9837 (s390_pltstub_frame_unwind): Define.
9838 (s390_pltstub_frame_sniffer): New function.
9839 (struct s390_sigtramp_unwind_cache): New data structure.
9840 (s390_sigtramp_frame_unwind_cache): New function.
9841 (s390_sigtramp_frame_this_id): Likewise.
9842 (s390_sigtramp_frame_prev_register): Likewise.
9843 (s390_sigtramp_frame_unwind): Define.
9844 (s390_sigtramp_frame_sniffer): New function.
9845 (s390_frame_base_address, s390_local_base_address): New functions.
9846 (s390_frame_base): Define.
9847 (s390_unwind_pc, s390_unwind_sp): New function.
9848 (s390_push_dummy_call): Use new frame base location.
9849 (s390_unwind_dummy_id): Likewise.
9850 (s390_gdbarch_init): Remove calls to:
9851 set_gdbarch_frameless_function_invocation,
9852 set_gdbarch_deprecated_init_frame_pc,
9853 set_gdbarch_deprecated_frame_chain,
9854 set_gdbarch_deprecated_frame_init_saved_regs,
9855 set_gdbarch_deprecated_pop_frame,
9856 set_gdbarch_deprecated_init_extra_frame_info,
9857 set_gdbarch_deprecated_init_frame_pc_first,
9858 set_gdbarch_deprecated_target_read_fp,
9859 set_gdbarch_deprecated_frame_saved_pc,
9860 set_gdbarch_deprecated_saved_pc_after_call,
9861 set_gdbarch_deprecated_fp_regnum.
9862 Add calls to:
9863 set_gdbarch_in_solib_call_trampoline,
9864 frame_unwind_append_sniffer,
9865 frame_base_set_default,
9866 set_gdbarch_unwind_pc,
9867 set_gdbarch_unwind_sp.
9868 * Makefile.in (s390-tdep.o): Update dependencies.
9869
b0cf273e
JB
9870 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9871 (S390_STACK_FRAME_OVERHEAD): Remove.
9872 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9873 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9874 (s390_promote_integer_argument): Remove.
9875 (s390_cannot_extract_struct_value_address): Remove.
9876 (s390_use_struct_convention, s390_store_struct_return): Remove.
9877 (s390_extract_return_value, s390_store_return_value): Remove.
9878 (s390_return_value_convention, s390_return_value): New functions.
9879 (is_float_singleton): Handle typedefs.
8a1dac83 9880 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9881 Remove, replace by ...
9882 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9883 s390_function_arg_integer): ... these new functions.
9884 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9885 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9886 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9887 Fill in tdep->abi.
9888 Remove calls to:
9889 set_gdbarch_deprecated_store_struct_return,
9890 set_gdbarch_deprecated_extract_return_value,
9891 set_gdbarch_deprecated_store_return_value,
9892 set_gdbarch_use_struct_convention,
9893 set_gdbarch_extract_struct_value_address,
9894 set_gdbarch_deprecated_pc_in_call_dummy,
9895 set_gdbarch_deprecated_push_arguments,
9896 set_gdbarch_deprecated_save_dummy_frame_tos,
9897 set_gdbarch_deprecated_push_return_address,
9898 set_gdbarch_deprecated_sizeof_call_dummy_words,
9899 set_gdbarch_deprecated_call_dummy_words,
9900 set_gdbarch_deprecated_dummy_write_sp.
9901 Add calls to:
9902 set_gdbarch_push_dummy_call,
9903 set_gdbarch_unwind_dummy_id,
9904 set_gdbarch_return_value.
8a1dac83 9905
e1457d83
JB
9906 * config/s390/nm-linux.h: Update comments.
9907 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9908 (STOPPED_BY_WATCHPOINT): Redefine.
9909 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9910 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9911 (s390_stopped_by_watchpoint): Likewise.
9912 (watch_area_cnt): Remove.
9913 * s390-nat.c: Update comments.
9914 (watch_area): Remove typedef.
9915 Global replace watch_area by struct watch_area.
9916 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9917 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9918 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9919 (s390_fix_watch_points): Remove pid argument,
9920 use s390_inferior_tid. Recompute area spanned by watchpoints.
9921 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9922 argument. Reimplement.
9923
d0f54f9d
JB
9924 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9925 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9926 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9927 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9928 core-regset.o.
9929 * config/s390/s390x.mt: Remove.
9930 * config/s390/tm-s390.h: Remove.
9931 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9932 (TARGET_ELF64): Remove.
9933 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9934 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9935 s390*-*-* case; always set gdb_target to s390.
9936 * regformats/reg-s390.dat: Remove control registers.
9937 * regformats/reg-s390x.dat: Likewise.
9938 * s390-tdep.h: New file.
8a1dac83 9939 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9940 Include "inferior.h" and "s390-tdep.h".
9941 Remove private definition of offsetof.
9942 (s390_register_u_addr): Remove.
9943 (regmap_gregset, regmap_fpregset): Define.
9944 (supply_gregset, fill_gregset): Reimplement.
9945 (supply_fpregset, fill_fpregset): Likewise.
9946 (s390_inferior_tid): New function.
9947 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9948 (fetch_inferior_registers, store_inferior_registers): Likewise.
9949 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9950 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9951 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9952 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9953 (struct gdbarch_tdep): Define.
9954 (struct s390_register_info): Define.
9955 (s390_register_info): New variable.
9956 (s390_register_name): Reimplement.
9957 (s390_register_type): New function.
9958 (s390_register_raw_size, s390x_register_raw_size): Remove.
9959 (s390_cannot_fetch_register): Remove.
9960 (s390_register_byte): Remove.
9961 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9962 (s390_dwarf_regmap): New variable.
9963 (s390_dwarf_reg_to_regnum): New function.
9964 (s390_stab_reg_to_regnum): Remove.
9965 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9966 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9967 (s390_convert_register_p): Likewise.
9968 (s390_register_to_value, s390_value_to_register): Likewise.
9969 (s390_register_reggroup_p): Likewise.
9970 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9971 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9972 (s390_supply_regset, s390_regset_from_core_section): New functions.
9973 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9974 (S390_FPR_SIZE): Likewise.
9975 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9976 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9977 (S390_NUM_GPRS): Move here from tm-s390.h.
9978 (S390_NUM_FPRS): Likewise.
9979 (s390_in_function_epilogue_p): New function.
9980 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9981 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9982 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9983 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9984 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9985 Remove calls to:
9986 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9987 set_gdbarch_deprecated_max_register_virtual_size,
9988 set_gdbarch_deprecated_register_byte,
d0f54f9d 9989 set_gdbarch_cannot_fetch_register,
8a1dac83 9990 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9991 set_gdbarch_deprecated_register_size,
9992 set_gdbarch_deprecated_register_raw_size,
9993 set_gdbarch_deprecated_register_virtual_size,
9994 set_gdbarch_deprecated_register_virtual_type,
9995 set_gdbarch_deprecated_register_bytes.
9996 Add calls to:
9997 set_gdbarch_num_pseudo_regs,
9998 set_gdbarch_register_type,
9999 set_gdbarch_convert_register_p,
10000 set_gdbarch_register_to_value,
10001 set_gdbarch_value_to_register,
10002 set_gdbarch_register_reggroup_p,
10003 set_gdbarch_regset_from_core_section,
10004 set_gdbarch_pseudo_register_read,
10005 set_gdbarch_pseudo_register_write,
10006 set_gdbarch_in_function_epilogue_p.
10007 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10008 (s390_tdep_h): New variable.
10009
8cfe231d
JB
100102004-02-17 Jim Blandy <jimb@redhat.com>
10011
4589a601
JB
10012 * findvar.c (value_from_register): If the type has no length, just
10013 return an acceptable value --- don't report an internal error.
10014
8cfe231d
JB
10015 * stabsread.c (read_type): If we find any type numbers that are
10016 forward references, complain if the references aren't resolved by
10017 the time we're finished reading.
10018 (cleanup_undefined_types): Make error message more appropriate for
10019 a complaint.
10020
5bf0017e
EZ
100212004-02-17 Elena Zannoni <ezannoni@redhat.com>
10022
9d62932d
EZ
10023 * Makefile.in (defs_h): Remove dependency on progress_h.
10024 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10025 progress.h.
10026 * main.c (captured_main): Delete use of START_PROGRESS and
10027 END_PROGRESS.
10028
100292004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10030
5bf0017e
EZ
10031 * objfiles.c (terminate_minimal_symbol_table): Add back
10032 initialization of MSYMBOL_TYPE.
10033
9fc9f5e2
AC
100342004-02-17 David Mosberger <davidm@hpl.hp.com>
10035
10036 Committed by Andrew Cagney.
10037 * Makefile.in (ia64_tdep_h): New macro.
10038 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10039 (ia64-tdep.o): Likewise.
10040 * ia64-tdep.h: New file.
10041 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10042 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10043 (ia64_aix_sigcontext_register_address): Likewise.
10044 (ia64_linux_getunwind_table): Delete declaration.
10045 * ia64-linux-tdep.c: Likewise.
10046
76cd2bd9
CV
100472004-02-17 Corinna Vinschen <vinschen@redhat.com>
10048
10049 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10050 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10051 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10052
634aa483
AC
100532004-02-17 Andrew Cagney <cagney@redhat.com>
10054
10055 * symtab.c (skip_prologue_using_sal): New function.
10056 * symtab.h (skip_prologue_using_sal): Declare.
10057 * frv-tdep.c: Include "symtab.h".
10058 (skip_prologue_using_sal): Delete function.
10059 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10060 * rs6000-tdep.c (refine_prologue_limit): Mention
10061 skip_prologue_using_sal.
10062 * ia64-tdep.c (refine_prologue_limit): Ditto.
10063 * Makefile.in: Update dependencies.
10064
100652004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10066
39ce7b3f
AC
10067 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10068 START_INFERIOR_TRAPS_EXPECTED.
10069 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10070 START_INFERIOR_TRAPS_EXPECTED.
10071 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10072 Delete macro.
10073 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10074 macro, moved to "nm-osf.h". Update copyright.
10075 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10076 update copyright.
10077
19772a2c
AC
10078 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10079 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10080 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10081 frameless_look_for_prologue.
10082 * frame.h (legacy_frameless_look_for_prologue): Rename
10083 frameless_look_for_prologue.
10084 * gdbarch.h, gdbarch.c: Re-generate.
10085 * sh64-tdep.c (sh64_gdbarch_init): Update.
10086 * sh-tdep.c (sh_gdbarch_init): Update.
10087 * s390-tdep.c (s390_gdbarch_init): Update.
10088 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10089 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10090 * m68k-tdep.c (m68k_gdbarch_init): Update.
10091 (delta68_frame_args_address): Update.
10092 * m32r-tdep.c (m32r_gdbarch_init): Update.
10093 * hppa-tdep.c (hppa_gdbarch_init): Update.
10094 * h8300-tdep.c (h8300_gdbarch_init): Update.
10095 * frv-tdep.c (frv_gdbarch_init): Update.
10096 (frv_frameless_function_invocation): Update.
10097 * cris-tdep.c (cris_gdbarch_init): Update.
10098 (cris_frameless_function_invocation): Update.
10099 * avr-tdep.c (avr_gdbarch_init): Update.
10100 * arm-tdep.c (arm_gdbarch_init): Update.
10101 * stack.c (frame_info): Update, call predicate.
10102 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10103 * frame.c (legacy_get_prev_frame): Update, call predicate..
10104 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10105 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10106 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10107 invocation.
10108 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10109 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10110 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10111
10112 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10113 function.
10114
7dcaac91
DJ
101152004-02-16 Daniel Jacobowitz <drow@mvista.com>
10116
10117 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10118 initializations.
10119
88289b6e
AC
101202004-02-16 Andrew Cagney <cagney@redhat.com>
10121
10122 * tui/tui-windata.c: Include "gdb_string.h".
10123 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10124 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10125 * Makefile.in: Update dependencies.
10126
9f976b41
DJ
101272004-02-16 Daniel Jacobowitz <drow@mvista.com>
10128
10129 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10130 * infrun.c: Include "gdb_assert.h".
10131 (singlestep_ptid, saved_singlestep_ptid)
10132 (stepping_past_singlestep_breakpoint): New variables.
10133 (resume): Set singlestep_ptid. Check for singlestep thread
10134 hop.
10135 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10136 (handle_inferior_event): Handle singlestep thread hop.
10137
c324d747
AC
101382004-02-16 Andrew Cagney <cagney@redhat.com>
10139
f090b9b1
AC
10140 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10141 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10142 (dwarf2_frame_init_reg): Ditto.
10143
fd33e6cb
AC
10144 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10145 suggested by Joshua Neuheisel
10146
c324d747
AC
10147 * configure.in: Always check for curses, including pdcurses.
10148 Warn, instead of error, when no curses are found. Enable TUI when
10149 curses is available.
10150 * configure: Re-generate.
10151
b66ba949
CV
101522004-02-16 Corinna Vinschen <vinschen@redhat.com>
10153
10154 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10155 sh_sh4_register_convert_to_virtual.
10156 (sh_register_convert_to_raw): Rename from
10157 sh_sh4_register_convert_to_raw.
10158 (sh_pseudo_register_read): Accomodate above name change.
10159 (sh_pseudo_register_write): Ditto.
10160
b58cbbf2
CV
101612004-02-16 Corinna Vinschen <vinschen@redhat.com>
10162
10163 * sh-tdep.c (sh_generic_register_name): Remove.
10164 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10165
5929a910
AC
101662004-02-15 Andrew Cagney <cagney@redhat.com>
10167
4566dfcf
AC
10168 * configure.in (build_warnings): Add -Wunused-function.
10169 * configure: Re-generate.
10170
db11ed55
AC
10171 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10172 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10173
46ac7a5d
AC
10174 * procfs.c (procfs_init_inferior): Assume that
10175 START_INFERIOR_TRAPS_EXPECTED is defined.
10176 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10177 * config/ns32k/tm-nbsd.h: Delete file,
10178 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10179
ba801595
AC
10180 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10181 * config/vax/tm-vax.h: Delete file.
10182
5929a910
AC
10183 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10184 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10185 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10186 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10187 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10188 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10189 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10190
8f22cb90
MK
101912004-02-15 Mark Kettenis <kettenis@gnu.org>
10192
10193 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10194 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10195 (struct dwarf2_frame_ops): New.
10196 (dwarf2_frame_default_init_reg): New function, based on
10197 dwarf2_frame_init_reg.
10198 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10199 (dwarf2_frame_init_reg): Call architecture-specific function.
10200 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10201 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10202 instead of dwarf2_frame_data.
10203 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10204 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10205
8132723e
AC
102062004-02-15 Andrew Cagney <cagney@redhat.com>
10207
046a4708
AC
10208 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10209 register_gdbarch_swap.
10210 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10211 * f-lang.c (_initialize_f_language): Update, use
10212 DEPRECATED_REGISTER_GDBARCH_SWAP.
10213 * remote.c (_initialize_remote): Ditto.
10214 * regcache.c (_initialize_regcache): Ditto.
10215 * parse.c (_initialize_parse): Ditto.
10216 * infrun.c (_initialize_infrun): Ditto.
10217 * mi/mi-main.c (_initialize_mi_main): Ditto.
10218 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10219
549c1eea
AC
10220 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10221 poking .cacheable directly.
10222 * symfile.c (symfile_bfd_open): Ditto.
10223
0c0b39de
AC
10224 * Makefile.in: Update all dependencies.
10225
8132723e
AC
10226 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10227 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10228 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10229 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10230 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10231
b9d26eb9
AC
102322004-02-14 Andrew Cagney <cagney@redhat.com>
10233
8e1f669a
AC
10234 * arch-utils.c (legacy_convert_register_p): Check
10235 DEPRECATED_REGISTER_CONVERTIBLE_P.
10236 * findvar.c (value_of_register): Ditto.
10237
cd0bfa36
AC
10238 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10239 * gdbarch.h, gdbarch.c: Re-generate.
10240 * arch-utils.c (deprecated_register_convertible_not): Delete.
10241 * arch-utils.h (deprecated_register_convertible_not): Delete.
10242 * mi/mi-main.c (get_register): Update. Update copyright.
10243 * infcmd.c (default_print_registers_info): Update.
10244
b9d26eb9
AC
10245 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10246 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10247 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10248 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10249 * frame.c (deprecated_get_next_frame_hack): Delete function.
10250 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10251 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10252 Update.
10253 * infcall.c (call_function_by_hand): Update.
10254
9ab9195f
EZ
102552004-02-14 Elena Zannoni <ezannoni@redhat.com>
10256
10257 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10258 from here...
9ab9195f
EZ
10259 * objfiles.c (init_entry_point_info, entry_point_address):..to
10260 here.
10261 * symfile.h (init_entry_point_info, entry_point_address): Remove
10262 prototypes.
10263 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10264 prototypes.
9ab9195f
EZ
10265 * cris-tdep.c: Remove include of symfile.h. Add include of
10266 objfiles.h.
10267 * infcall.c: Ditto.
10268 * mcore-tdep.c: Ditto.
10269 * mn10300-tdep.c: Ditto.
10270 * sh64-tdep.c: Ditto.
10271 * v850-tdep.c: Ditto.
10272 * arm-tdep.c: Remove include of symfile.h.
10273 * blockframe.c: Ditto.
10274 * coffread.c: Ditto.
10275 * dbxread.c: Ditto.
10276 * dwarf2read.c: Ditto.
10277 * dwarfread.c: Ditto.
8a1dac83 10278 * frv-tdep.c: Ditto.
9ab9195f
EZ
10279 * ia64-tdep.c: Ditto.
10280 * mdebugread.c: Ditto.
10281 * mipsread.c: Ditto.
8a1dac83 10282 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10283 * s390-tdep.c: Ditto.
10284 * sh-tdep.c: Ditto.
8a1dac83 10285 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10286 * gdbarch.sh: Remove include of symfile.h.
10287 * gdbarch.c: Regenerate.
10288 * solib-irix.c (enable_break): Use entry_point_address().
10289 Add comment about include file.
10290 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10291 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10292 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10293 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10294 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10295 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10296
c4c5b7ba
AC
102972004-02-13 Andrew Cagney <cagney@redhat.com>
10298
10299 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10300 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10301 copyright.
10302 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10303
3e7879de
FF
103042004-02-12 Fred Fish <fnf@redhat.com>
10305
10306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10307 set_gdbarch_store_return_value.
10308
6a7760b6
AC
103092004-02-12 Andrew Cagney <cagney@redhat.com>
10310
10311 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10312 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10313 (interrupt_query): Ditto.
10314 (ofunc): Delete unused variable.
10315 * cris-tdep.c (cris_abi): Delete unused function.
10316 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10317 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10318 (cris_get_asr_quick_shift_steps): Ditto.
10319 (cris_skip_prologue_frameless_p): Ditto.
10320 * arm-tdep.c (arm_push_return_address): Delete unused function.
10321 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10322 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10323 * s390-tdep.c (s390_function_start): Delete unused function.
10324
31687c3c
AC
103252004-02-12 Andrew Cagney <cagney@redhat.com>
10326
10327 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10328 gdbarch.h, gdbarch.c: Re-generate.
10329 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10330 to generic_prologue_frameless_p.
10331 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10332 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10333
6de918a6
DJ
103342004-02-11 Daniel Jacobowitz <drow@mvista.com>
10335
10336 * mips-linux-tdep.c: Include "frame.h".
10337 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10338 (mips_linux_skip_resolver): New functions.
10339 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10340 and set_gdbarch_in_solib_call_trampoline.
10341 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10342 to after set_gdbarch_in_solib_return_trampoline. Only set the
10343 solib hooks to mips16 functions if the OS ABI is unknown.
10344 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10345 including "config/tm-linux.h".
10346 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10347 * Makefile.in (mips-linux-tdep.o): Update.
10348
87b3ede8
DC
103492004-02-11 David Carlton <carlton@kealia.com>
10350
10351 * linespec.c (decode_compound): Only look for a class symbol when
10352 considering all but the rightmost component.
10353
5979bc46
AC
103542004-02-11 Andrew Cagney <cagney@redhat.com>
10355
10356 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10357 abi code are are separatly grouped.
10358
5867a2fb
AC
103592004-02-11 Andrew Cagney <cagney@redhat.com>
10360
10361 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10362 * gdbarch.h, gdbarch.c: Re-generate.
10363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10364 * v850-tdep.c (v850_gdbarch_init): Update.
10365 * sh64-tdep.c (sh64_gdbarch_init): Update.
10366 * sh-tdep.c (sh_gdbarch_init): Update.
10367 * s390-tdep.c (s390_gdbarch_init): Update.
10368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10369 * mips-tdep.c (mips_gdbarch_init): Update.
10370 * mcore-tdep.c (mcore_gdbarch_init): Update.
10371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10372 * m32r-tdep.c (m32r_gdbarch_init): Update.
10373 * ia64-tdep.c (ia64_gdbarch_init): Update.
10374 * hppa-tdep.c (hppa_gdbarch_init): Update.
10375 * h8300-tdep.c (h8300_gdbarch_init): Update.
10376 * frv-tdep.c (frv_gdbarch_init): Update.
10377 * d10v-tdep.c (d10v_gdbarch_init): Update.
10378 * cris-tdep.c (cris_gdbarch_init): Update.
10379 * avr-tdep.c (avr_gdbarch_init): Update.
10380 * arm-tdep.c (arm_gdbarch_init): Update.
10381 * alpha-tdep.c (alpha_gdbarch_init): Update.
10382
026a72f8
CV
103832004-02-11 Corinna Vinschen <vinschen@redhat.com>
10384
10385 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10386 comma.
10387 (sh_sh4al_dsp_register_name): Ditto.
10388
3903d437
AC
103892004-02-10 Andrew Cagney <cagney@redhat.com>
10390
10391 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10392 (mips_init_frame_pc_first): Delete function.
10393 (mips_frame_saved_pc): Delete function.
10394 (mips_frame_chain): Delete function.
10395 (mips_init_extra_frame_info): Delete function.
10396 (mips_xfer_register): Delete unused variable "reg".
10397 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10398 (mips_n32n64_return_value): Delete unused variable "reg".
10399 (mips_n32n64_return_value): Delete unused variable "pos".
10400 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10401 (mips_o32_return_value): Delete unused variable "pos".
10402 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10403 (mips_print_fp_register): Delete unused variable "namelen"
10404 (mips_print_fp_register): Delete unused variable "flt2"
10405 (get_frame_pointer): Delete function.
10406 (cached_proc_desc): Delete static variable.
10407 (mips_pop_frame): Delete function.
10408 (mips_find_saved_regs): Delete function.
10409 (mips_get_saved_register): Delete function.
10410 (mips_saved_pc_after_call): Delete function.
10411 (SIGFRAME_BASE): Delete macro.
10412 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10413 (SIGFRAME_PC_OFF): Delete macro.
10414 (SIGFRAME_REGSAVE_OFF): Delete macro.
10415 (mips_dump_tdep): Do not print deleted macro definitions.
10416
b9fb98bd
AC
104172004-02-10 Andrew Cagney <cagney@redhat.com>
10418
10419 * Makefile.in (SFILES): Remove explictly listed tui files.
10420 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10421
78ced177 104222004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10423
78ced177
JJ
10424 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10425 to use paddr functions to format ia64 addresses and long values.
10426 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10427 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10428 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10429 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10430 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10431
6a83354a
AC
104322004-02-10 Andrew Cagney <cagney@redhat.com>
10433
10434 * defs.h: Do not include "tui.h".
10435 * gdb_curses.h: New file.
10436 * tui/tui-hooks.h: New file.
10437 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10438 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10439 (tui_initialize_io): Delete declaration.
10440 (tui_initialize_readline: Delete redundant declaration.
10441 (struct tui_point): Delete definition.
10442 * tui/tui-data.h (struct tui_point): Define.
10443 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10444 * utils.c: Include "tui/tui.h".
10445 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10446 * printcmd.c [TUI]: Include "tui/tui.h".
10447 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10448 * tui/tui-command.c: Include "gdb_curses.h".
10449 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10450 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10451 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10452 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10453 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10454 * Makefile.in: Update all dependencies.
10455 (tui_hooks_h, gdb_curses_h): Define.
10456 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10457
997470ef
EZ
104582004-02-10 Elena Zannoni <ezannoni@redhat.com>
10459
10460 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10461 auxf2. Add comments about some other rarely used fields.
10462
4ff2cc4d
AC
104632004-02-10 Andrew Cagney <cagney@redhat.com>
10464
10465 * Makefile.in (init.c): Fix script removing duplicates. Problem
10466 reported by Peter Schauer.
10467
1ab21617
EZ
104682004-02-09 Elena Zannoni <ezannoni@redhat.com>
10469
10470 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10471 obstack_specify_allocation.
10472 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10473 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10474 (allocate_rt_common_objfile): Ditto.
10475 * symfile.c (reread_symbols): Ditto.
10476 * gdb_obstack.h: Add comment.
10477
17763fd9
EZ
104782004-02-09 Elena Zannoni <ezannoni@redhat.com>
10479
10480 * linespec.c (decode_line_1, locate_first_half)
10481 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10482 commented out code.
10483
ec5cdd75
DJ
104842004-02-09 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10487 obstack_free.
10488
43b54b88
AC
104892004-02-09 Andrew Cagney <cagney@redhat.com>
10490
10491 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10492 fails, try find_pc_section. Fix PR c++/1267.
10493 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10494 instead of find_pc_mapped_section.
10495 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10496 not default to the section containing PC. Fix PR symtab/1519.
10497
edfae063
AC
104982004-02-09 Andrew Cagney <cagney@redhat.com>
10499
10500 * Makefile.in (mips-tdep.o): Update dependencies.
10501 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10502 "trad-frame.h".
10503 (mips_unwind_pc): Return the pseudo PC register.
10504 (mips_unwind_dummy_id): New function.
10505 (mips16_fetch_instruction): New function.
10506 (mips32_fetch_instruction): New function.
10507 (struct mips_frame_cache): Define.
10508 (mips_mdebug_frame_cache): New function.
10509 (mips_mdebug_frame_this_id): New function.
10510 (mips_mdebug_frame_prev_register): New function.
10511 (mips_mdebug_frame_unwind): Define.
10512 (mips_mdebug_frame_sniffer): New function.
10513 (mips_mdebug_frame_base_address): New function.
10514 (mips_mdebug_frame_base): Define.
10515 (mips_mdebug_frame_base_sniffer): New function.
10516 (mips_gdbarch_init): Append unwind and base sniffers. Set
10517 unwind_dummy_id.
10518
defc864c
AC
105192004-02-08 Andrew Cagney <cagney@redhat.com>
10520
6764ddad
AC
10521 * frame.c: Print both the register number and name.
10522
defc864c
AC
10523 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10524 and a sed into a single sed. Make .c and .o patterns more robust.
10525 (OBS): Delete.
10526 (INIT_FILES): Replace OBS with COMMON_OBS.
10527 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10528
645d6d10
MK
105292004-02-08 Mark Kettenis <kettenis@gnu.org>
10530
10531 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10532 the PT_WCOOKIE request.
10533
23e3c3fc
AC
105342004-02-08 Andrew Cagney <cagney@redhat.com>
10535
58dfe9ff
AC
10536 * mips-tdep.c (mips_unwind_pc): New function.
10537 (mips_gdbarch_init): Set mips_unwind_pc.
10538
1152e35e
AC
10539 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10540 (get_frame_id): Allow the UNKNOWN_FRAME.
10541 (frame_register_unwind, get_frame_type): Ditto.
10542
31b75dbf
AC
10543 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10544 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10545 unwind_dummy_id indicates a legacy frame.
10546
3483b318
AC
10547 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10548 * configure: Re-generate.
10549
23e3c3fc
AC
10550 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10551 methods.
10552
33f8ca73
AC
105532004-02-08 Andrew Cagney <cagney@redhat.com>
10554
10555 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10556 makefile macro.
10557 * configure: Re-generate.
10558 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10559 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10560 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10561 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10562 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10563 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10564 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10565 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10566 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10567 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10568
6ba8e26f 105692004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10570
20d286a5
AC
10571 * Makefile.in: Update all dependencies.
10572
d836ee13
AC
10573 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10574 * configure: Re-generate.
10575 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10576 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10577 (COMMON_OBS): Add "main.o" and "annotate.o".
10578 (ANNOTATE_OBS): Delete.
10579 (OBS): Remove ANNOTATE_OBS.
10580 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10581 CONFIG_INITS.
10582 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10583 against CONFIG_OBS and "main.o".
10584 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10585 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10586
d02c80cd
AC
10587 * tui/tui-command.c: Include "gdb_string.h", delete register
10588 attribute, use ISO-C function signatures.
10589 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10590 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10591 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10592 * tui/tui.c: Ditto.
6ba8e26f
AC
10593
10594 * tui/tui-command.c: Change variable and function names to lower
10595 case.
10596 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10597 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10598 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10599 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10600 * tui/tui-winsource.c, tui/tui.c: Ditto.
10601
4a146b47
EZ
106022004-02-07 Elena Zannoni <ezannoni@redhat.com>
10603
10604 * buildsym.c (free_pending_blocks, finish_block)
10605 (record_pending_block, make_blockvector, end_symtab): Replace
10606 symbol_obstack with objfile_obstack.
8a1dac83 10607 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10608 (coff_read_enum_type): Ditto.
8a1dac83 10609 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10610 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10611 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10612 (dwarf2_symbol_mark_computed): Ditto.
10613 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10614 * elfread.c (elf_symtab_read): Ditto.
10615 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10616 (hpread_read_enum_type, hpread_read_function_type)
10617 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10618 Ditto.
8a1dac83 10619 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10620 (java_link_class_type): Ditto.
8a1dac83 10621 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10622 (new_symbol): Ditto.
10623 * minsyms.c (install_minimal_symbols): Ditto.
10624 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10625 (terminate_minimal_symbol_table): Replace symbol_obstack with
10626 objfile_obstack.
10627 (free_objfile): Remove freeing of symbol_obstack.
10628 * objfiles.h: Remove symbol_obstack field.
10629 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10630 objfile_obstack.
10631 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10632 symbol_obstack.
10633 (solib_add_common_symbols): Replace symbol_obstack with
10634 objfile_obstack.
10635 * somsolib.c (som_solib_add): Ditto.
10636 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10637 (common_block_start, common_block_end): Ditto.
10638 * symfile.c (reread_symbols): Remove freeing and init of
10639 symbol_obstack.
10640 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10641 * symfile.h: Update comment.
10642 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10643 stats printing.
10644 * symtab.c (symbol_set_names): Replace symbol_obstack with
10645 objfile_obstack.
10646 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10647 Update comments.
10648 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10649 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10650 objfile_obstack.
10651
6d012f14
AC
106522004-02-07 Andrew Cagney <cagney@redhat.com>
10653
10654 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10655 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10656 fields and variables.
10657 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10658 (m_beInvisible): Delete macro.
10659 * tui/tui-data.h: Fix case case fields and variables.
10660 (m_genWinPtrIsNull): Delete macro.
10661 (tui_win_list): Rename winList.
10662 (TUI_SRC_WIN): Rename srcWin.
10663 (TUI_DISASM_WIN): Rename disassemWin.
10664 (TUI_DATA_WIN): Rename dataWin.
10665 (TUI_CMD_WIN): Rename cmdWin.
10666 (m_genWinPtrNotNull): Delete macro.
10667 (m_winPtrIsNull): Delete macro.
10668 (m_winPtrNotNull): Delete macro.
10669 (tui_win_is_source_type): Replace m_winIsSourceType
10670 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10671 (tui_win_has_locator): Replace m_hasLocator.
10672 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10673 m_setWinHighlightOff.
10674 * tui/tui-data.c: Update references.
10675 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10676 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10677 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10678 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10679 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10680 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10681 * tui/tui-winsource.c, tui/tui.c: Ditto.
10682
7d34766b
MK
106832004-02-07 Mark Kettenis <kettenis@gnu.org>
10684
1c800673
MK
10685 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10686 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10687 StackGhost.
10688
7d34766b
MK
10689 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10690 variable `i6' to `i7'.
10691 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10692
22940a24
AC
106932004-02-07 Andrew Cagney <cagney@redhat.com>
10694
10695 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10696 (TuiPoint, TuiPointPtr): Ditto.
10697 (TuiStatus, TuiStatusPtr): Ditto.
10698 (TuiWinType, TuiWinTypePtr): Ditto.
10699 (struct tui_point): Rename _TuiPoint.
10700 (tui_get_low_disassembly_address): Rename
10701 tuiGetLowDisassemblyAddress.
10702 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10703 (tuiFree): Delete declaration.
10704 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10705 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10706 * tui/tui.c (tuiFree): Delete function.
10707 * cli/cli-cmds.c (disassemble_command): Update references.
10708 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10709 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10710 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10711 * tui/tui-winsource.c: Ditto.
10712
8b92e4d5
EZ
107132004-02-07 Elena Zannoni <ezannoni@redhat.com>
10714
10715 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10716 coffstab_build_psymtabs, elfstab_build_psymtabs)
10717 (stabsect_build_psymtabs): Replace psymbol_obstack with
10718 objfile_obstack.
10719 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10720 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10721 Ditto.
10722 * dwarfread.c (scan_compilation_units): Ditto.
10723 * elfread.c (elfstab_offset_sections): Ditto.
10724 * hppa-tdep.c (read_unwind_info): Ditto.
10725 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10726 (hpread_end_psymtab): Ditto.
10727 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10728 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10729 Ditto.
10730 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10731 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10732 (build_objfile_section_table): Ditto.
10733 (allocate_objfile): Remove init of psymbol_obstack.
10734 (free_objfile): Remove freeing of psymbol_obstack.
10735 * objfiles.h (struct objfile): Remove field
10736 psymbol_obstack. Update comments.
10737 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10738 psymbol_obstack with objfile_obstack.
10739 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10740 psymbol_obstack.
10741 * somread.c (som_symfile_offsets, init_import_symbols)
10742 (init_export_symbols): Replace psymbol_obstack with
10743 objfile_obstack.
10744 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10745 * symfile.c (default_symfile_offsets, syms_from_objfile)
10746 (reread_symbols): Remove freeing and init of psymbol_obstack.
10747 (cashier_psymtab): Update comment.
10748 * symmisc.c (print_objfile_statistics): Don't report stats for
10749 psymbol obstack.
10750 * symtab.h (struct general_symbol_info, struct partial_symtab):
10751 Update comments.
10752 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10753 (xcoff_symfile_offsets): Replace psymbol_obstack with
10754 objfile_obstack.
10755
b99607ea
EZ
107562004-02-07 Elena Zannoni <ezannoni@redhat.com>
10757
10758 * objfiles.h (struct objfile): Add objfile_obstack field.
10759 Remove type_obstack field.
10760
10761 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10762 read_structure_scope read_enumeration, new_symbol): Replace
10763 type_obstack with objfile_obstack.
10764 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10765 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10766 (lookup_fundamental_type): Ditto.
10767 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10768 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10769 (hpread_read_doc_function_type, hpread_read_struct_type)
10770 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10771 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10772 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10773 (java_link_class_type): Ditto.
10774 * mdebugread.c (parse_type): Ditto.
10775 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10776 * solib-sunos.c (solib_add_common_symbols): Ditto.
10777 * stabsread.c (define_symbol, read_type, read_member_functions,
10778 read_cpp_abbrev, read_one_struct_field): Ditto.
10779 * symfile.c (reread_symbols): Ditto.
10780 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10781
2a8854a7
AC
107822004-02-07 Andrew Cagney <cagney@redhat.com>
10783
10784 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10785 (tui_exec_info_content): Rename TuiExecInfoContent.
10786 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10787 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10788 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10789 (TuiList, TuiListPtr): Ditto.
10790 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10791 (TuiDataType, TuiDataTypePtr): Ditto.
10792 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10793 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10794 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10795 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10796 (TuiDataElement, TuiDataElementPtr): Ditto.
10797 (TuiWinElement, TuiWinElementPtr): Ditto.
10798 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10799 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10800 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10801 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10802 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10803 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10804 * tui/tui-command.c, tui/tui-data.c: Update references.
10805 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10806 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10807 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10808 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10809
05cbe71a
MK
108102004-02-07 Mark Kettenis <kettenis@gnu.org>
10811
10812 * dwarf2-frame.h: Update copyright.
10813 (enum dwarf2_frame_reg_rule): New.
10814 (struct dwarf2_frame_state_reg): New.
10815 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10816 * dwarf2-frame.c: Update copyright.
10817 (enum dwarf2_reg_rule): Remove.
10818 (struct dwarf2_frame_state): Remove defenition of `struct
10819 dwarf2_frame_state_reg'.
10820 (read_reg): Call get_frame_arch to get the architecture instead of
10821 using CURRENT_GDBARCH.
10822 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10823 DWARF2_FRAME_.
10824 (dwarf2_frame_init_reg): New function.
10825 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10826 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10827 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10828 tags with DWARF2_FRAME_.
10829 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10830 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10831 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10832
ec7d9e56
AC
108332004-02-06 Andrew Cagney <cagney@redhat.com>
10834
dd1abb8c
AC
10835 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10836 (enum tui_data_type): Rename _TuiDataType.
10837 (struct tui_layout_def): Rename _TuiLayoutDef.
10838 (struct tui_source_element): Rename _TuiSourceElement.
10839 (struct tui_data_element): Rename _TuiDataElement.
10840 (struct tui_command_element): Rename _TuiCommandElement.
10841 (struct tui_locator_element): Rename _TuiLocatorElement.
10842 (union tui_which_element): Define.
10843 (struct tui_win_element): Rename _TuiWinElement.
10844 (struct tui_data_info): Rename _TuiDataInfo.
10845 (struct tui_source_info): Rename _TuiSourceInfo.
10846 (struct tui_command_info): Rename _TuiCommandInfo.
10847 (tui_initialize_static_data): Rename initializeStaticData.
10848 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10849 (tui_alloc_win_info): Rename allocWinInfo.
10850 (tui_init_generic_part): Rename initGenericPart.
10851 (tui_init_win_info): Rename initWinInfo.
10852 (tui_alloc_content): Rename allocContent.
10853 (tui_add_content_elements): Rename addContentElements.
10854 (tui_init_content_element): Rename initContentElement.
10855 (tui_free_window): Rename freeWindow.
10856 (tui_free_win_content): Rename freeWinContent.
10857 (tui_free_data_content): Rename freeDataContent.
10858 (tui_free_all_source_wins_content): Rename
10859 freeAllSourceWinsContent.
10860 (tui_del_window): Rename tuiDelWindow.
10861 (tui_del_data_windows): Rename tuiDelDataWindows.
10862 (tui_partial_win_by_name): Rename partialWinByName.
10863 (tui_win_name): Rename winName.
10864 (tui_current_layout): Rename currentLayout.
10865 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10866 (tui_term_height): Rename termHeight.
10867 (tui_set_term_height_to): Rename setTermHeightTo.
10868 (tui_term_width): Rename termWidth.
10869 (tui_set_term_width_to): Rename setTermWidthTo.
10870 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10871 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10872 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10873 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10874 (tui_source_windows): Rename sourceWindows.
10875 (tui_clear_source_windows): Rename clearSourceWindows.
10876 (tui_clear_source_windows_detail): Rename
10877 clearSourceWindowsDetail.
10878 (tui_clear_win_detail): Rename clearWinDetail.
10879 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10880 (tui_default_tab_len): Rename tuiDefaultTabLen.
10881 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10882 (tui_win_with_focus): Rename tuiWinWithFocus.
10883 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10884 (tui_layout_def): Rename tuiLayoutDef.
10885 (tui_win_resized): Rename tuiWinResized.
10886 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10887 (tui_next_win): Rename tuiNextWin.
10888 (tui_prev_win): Rename tuiPrevWin.
10889 (tui_add_to_source_windows): Rename addToSourceWindows.
10890 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10891 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10892 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10893 * tui/tui.c, tui/tui-data.c: Ditto.
10894 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10895 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10896
a358af15
AC
10897 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10898 (struct symtab): Declare.
10899 (tui_set_source_content): Rename tuiSetSourceContent.
10900 (tui_show_symtab_source): Rename tuiShowSource.
10901 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10902 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10903 * tui/tui-source.c: Update copyright. Update references.
10904 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10905 * tui/tui-stack.c: Update references.
10906
a21fcd8f
AC
10907 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10908 (struct tui_win_info): Declare.
10909 (tui_scroll_forward): Rename tuiScrollForward.
10910 (tui_scroll_backward): Rename tuiScrollBackward.
10911 (tui_scroll_left): Rename tuiScrollLeft.
10912 (tui_scroll_right): Rename tuiScrollRight.
10913 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10914 (tui_resize_all): Rename tuiResizeAll.
10915 (tui_refresh_all_win): Rename tuiRefreshAll.
10916 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10917 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10918 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10919 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10920
edae1ccf
AC
10921 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10922 (tui_erase_data_content): Rename tuiEraseDataContent.
10923 (tui_display_all_data): Rename tuiDisplayAllData.
10924 (tui_check_data_values): Rename tuiCheckDataValues.
10925 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10926 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10927 (tui_first_data_element_no_in_line): Rename
10928 tuiFirstDataElementNoInLine.
10929 (tui_delete_data_content_windows): Rename
10930 tuiDeleteDataContentWindows.
10931 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10932 (tui_display_data_from): Rename tuiDisplayDataFrom.
10933 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10934 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10935 * tui/tui-win.c, tui/tui-regs.c: Update references.
10936 * tui/tui-layout.c, tui/tui.c: Update references.
10937
ec7d9e56
AC
10938 * tui/tui-wingeneral.h: Update copyright.
10939 (m_allBeVisible): Delete macro.
8a1dac83 10940 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10941 (struct tui_gen_win_info): Declare.
10942 (struct tui_win_info): Declare.
10943 (tui_unhighlight_win): Rename unhighlightWin.
10944 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10945 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10946 (tui_make_window): Rename makeWindow.
10947 (tui_copy_win): Rename copyWin.
10948 (tui_box_win): Rename boxWin.
10949 (tui_highlight_win): Rename highlightWin.
10950 (tui_check_and_display_highlight_if_needed): Rename
10951 checkAndDisplayHighlightIfNeeded.
10952 (tui_refresh_all): Rename refreshAll.
10953 (tui_delete_win): Rename tuiDelwin.
10954 (tui_refresh_win): Rename tuiRefreshWin.
10955 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10956 (tui_make_visible, tui_make_invisible): New functions.
10957 (tui_make_all_visible, tui_make_all_invisible): New functions.
10958 (make_all_visible): Rename makeAllVisible.
10959 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10960 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10961 * tui/tui-windata.c, tui/tui-win.c: Update references.
10962 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10963 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10964
1e52e2eb
MK
109652004-02-06 Mark Kettenis <kettenis@gnu.org>
10966
10967 * proc-api.c (write_with_trace): Initialize local variable to
10968 silence compiler warning.
10969
f80bda8e
AC
109702004-02-06 Andrew Cagney <cagney@redhat.com>
10971
10972 * tui/tui-source.h: Do not include "defs.h".
10973 (struct tui_win_info): Declare.
10974 (tui_set_source_content_nil): Declare.
10975 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10976 (union tui_line_or_address): Rename _TuiLineOrAddress.
10977 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10978 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10979 (tui_update_source_window_as_is): Rename
10980 tuiUpdateSourceWindowAsIs.
10981 (tui_update_source_windows_with_addr): Rename
10982 tuiUpdateSourceWindowsWithAddr.
10983 (tui_update_source_windows_with_line): Rename
10984 tuiUpdateSourceWindowsWithLine.
10985 (tui_clear_source_content): Rename tuiClearSourceContent.
10986 (tui_erase_source_content): Rename tuiEraseSourceContent.
10987 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10988 (tui_show_source_content): Rename tuiShowSourceContent.
10989 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10990 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10991 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10992 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10993 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10994 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10995 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10996 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10997 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10998 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10999 (struct tui_win_info): Declare.
11000 * tui/tui-stack.c: Update references.
11001 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11002 * tui/tui-win.c, tui/tui-source.c: Ditto.
11003 * tui/tui.c, tui/tui-disasm.c: Ditto.
11004
9fbfb822
MK
110052004-02-06 Mark Kettenis <kettenis@gnu.org>
11006
11007 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11008 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11009
03cebad2
MK
110102004-02-05 Mark Kettenis <kettenis@gnu.org>
11011
11012 * infrun.c (handle_inferior_event): Allow for breakpoint
11013 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11014 and SIGEMT. Update comments.
11015 * NEWS (Revised SPARC target): Mention support for non-executable
11016 stack.
11017
290281b1
MK
110182004-02-04 Mark Kettenis <kettenis@gnu.org>
11019
11020 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11021 * inftarg.c: Update copyright year.
11022 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11023 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11024 (sparc_xfer_wcookie): New function.
11025 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11026 * Makefile.in (sparc-nat.o): Update dependencies.
11027 * config/sparc/nm-nbsd.h: Include "target.h".
11028 (NATIVE_XFER_WCOOKIE): New define.
11029 (sparc_xfer_wcookie): New prototype.
11030
212161df
AC
110312004-02-04 Andrew Cagney <cagney@redhat.com>
11032
11033 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11034 SYSCALL_TRAP function.
11035 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11036
6e4c6c91
DJ
110372004-02-04 Andrew Cagney <cagney@redhat.com>
11038 Daniel Jacobowitz <drow@mvista.com>
11039
11040 * objfiles.h: Delete comments refering to inside_entry_func and
11041 DEPRECATED_FRAME_CHAIN_VALID.
11042 * defs.h (inside_entry_func): Update prototype..
11043 * blockframe.c (inside_entry_func): Rename to
11044 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11045 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11046
cae688ec
JJ
110472004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11048
11049 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11050 outside of #ifdef SOLIB_ADD region.
11051 (do_restore_lang_radix_cleanup): Ditto.
11052 (resolve_pending_breakpoint): Ditto.
11053
19217676
AC
110542004-02-03 Andrew Cagney <cagney@redhat.com>
11055
11056 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11057 (process_note_abi_tag_sections): Delete unused function.
11058 (ia64_read_fp): Delete unused function.
11059 (gdbarch_extract_struct_value_address): Delete declaration.
11060
876753be
AC
110612004-02-02 Andrew Cagney <cagney@redhat.com>
11062
11063 * vax-tdep.c (vax_frame_chain): Delete call to
11064 deprecated_inside_entry_file.
11065 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11066
d4f10bf2
MK
110672004-02-02 Mark Kettenis <kettenis@gnu.org>
11068
11069 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11070 column that's "empty" or "same value" when eliminating REG_RA
11071 rules.
11072
cae688ec
JJ
110732004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11074
11075 * NEWS: Add information about new pending breakpoint support.
11076
0101ce28
JJ
110772004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11078
11079 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11080 and pending fields for pending breakpoint support.
11081 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11082 (condition_command): Only parse condition if not a pending
11083 breakpoint.
11084 (print_one_breakpoint): Add support for pending breakpoints.
11085 (describe_other_breakpoints): Add checks to verify we are not
11086 dealing with pending breakpoints.
11087 (check_duplicates): Don't check pending breakpoints.
11088 (set_raw_breakpoint): Initialize pending flag.
11089 (do_restore_lang_radix_cleanup): New cleanup routine.
11090 (resolve_pending_breakpoint): New function.
11091 (re_enable_breakpoints_in_shlibs): Try and resolve any
11092 pending breakpoints via resolve_pending_breakpoint.
11093 (mention): Add pending breakpoint support.
11094 (parse_breakpoint_sals): Add new parameter to pass to
11095 decode_line_1 to indicate silent errors when files or functions
11096 are not found. Change all callers.
11097 (do_captured_parse_breakpoint): New function.
11098 (break_command_1): Change prototype to return an rc value and to
11099 take an optional pending breakpoint pointer. Support creating
11100 a pending breakpoint if a "not found" form of error occurs when
11101 parsing the breakpoint. Also support resolving an existing pending
11102 breakpoint and be silent if the resolution fails.
11103 (create_breakpoints): Change prototype to take pending breakpoint
11104 pointer. When resolving a pending breakpoint, use the new pointer
11105 to provide a conditional or commands added by the end-user.
11106 (delete_breakpoint): Add appropriate check for pending.
11107 (breakpoint_re_set_one): Ditto.
11108 (do_enable_breakpoint): Ditto.
11109
8d577d32
DC
111102004-02-02 David Carlton <carlton@kealia.com>
11111
11112 * valops.c (enum oload_classification): New.
11113 (find_overload_match): Break implementation into separate
11114 functions; delete #if 0'd code; look for symbols within
11115 namespaces.
11116 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11117 (find_oload_champ,oload_method_static,classify_oload_match): New.
11118 * cp-support.h: Add declaration for cp_func_name; update
11119 declaration for make_symbol_overload_list.
11120 * cp-support.c (cp_func_name): New.
11121 (overload_list_add_symbol): Fix comment, use
11122 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11123 (make_symbol_overload_list): Take a function name and a namespace
11124 instead of a symbol; change implementation.
11125 (make_symbol_overload_list_using): New.
11126 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11127
22e8e3c7
FF
111282004-02-02 Fred Fish <fnf@redhat.com>
11129
11130 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11131 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11132 * remote-sim.c (gdb_os_write_stderr): Write output to
11133 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11134 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11135 gdb_stderr stream and update copyright years.
22e8e3c7 11136
6b753f60
DJ
111372004-02-01 Daniel Jacobowitz <drow@mvista.com>
11138
11139 * Makefile.in (mips-linux-nat.o): Update dependencies.
11140 * mips-linux-nat.c: Include mips-tdep.h.
11141
111422004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11143
11144 * sol-thread.c (sol_thread_xfer_partial): New function.
11145 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11146 (init_sol_core_ops): Likewise.
11147
11148 * procfs.c (procfs_xfer_partial): New function.
11149 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11150 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11151
11152 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11153 procfs_xfer_auxv function.
11154
11155 * procfs.c (procfs_make_note_section): If we can read
11156 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11157 * linux-proc.c (linux_make_note_section): Likewise.
11158
11159 * auxv.h: New file.
11160 * auxv.c: New file.
11161 * Makefile.in (auxv_h): New variable.
11162 (COMMON_OBS): Add auxv.o here.
11163 (auxv.o): New target.
11164
11165 * corelow.c (core_xfer_partial): New function.
11166 (init_core_ops): Use it for core_ops.to_xfer_partial.
11167
11168 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11169 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11170 macro if that is defined.
11171
fa5281d0
DJ
111722004-02-01 Daniel Jacobowitz <drow@mvista.com>
11173
11174 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11175 and check the specified thread for each breakpoint.
11176 * breakpoint.h (bpstat_stop_status): Update prototype.
11177 * infrun.c (handle_inferior_event): Update calls to
11178 bpstat_stop_status.
11179
26ee262d
DJ
111802004-02-01 Daniel Jacobowitz <drow@mvista.com>
11181
11182 * Makefile.in (cli-cmds.o): Add $(readline_h).
11183
d9b52655
DJ
111842004-02-01 Daniel Jacobowitz <drow@mvista.com>
11185
11186 * cli/cli-cmds.c: Include readline.h.
11187 (complete_command): Pass the start of the last word to
11188 complete_line.
11189
9709f61c
DJ
111902004-01-31 Daniel Jacobowitz <drow@mvista.com>
11191
11192 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11193 argument, and change first argument to a CORE_ADDR.
11194 * breakpoint.h (bpstat_stop_status): Update prototype.
11195 * infrun.c (adjust_pc_after_break): Add a new comment.
11196 (handle_inferior_event): Update calls to bpstat_stop_status.
11197
4f1280bb
DJ
111982004-01-31 Daniel Jacobowitz <drow@mvista.com>
11199
11200 * breakpoint.h: Update copyright years.
11201
4fa8626c
DJ
112022004-01-31 Daniel Jacobowitz <drow@mvista.com>
11203
11204 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11205 (bpstat_stop_status): Don't decrement PC.
11206 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11207 prototype.
11208 * infrun.c (adjust_pc_after_break): New function.
11209 (handle_inferior_event): Call it, early. Remove later references
11210 to DECR_PC_AFTER_BREAK.
11211 (normal_stop): Add commentary.
11212
fad0733a
DJ
112132004-01-31 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11216 2004-01-27 double-free fix.
11217
42cdca6c
MK
112182004-01-31 Mark Kettenis <kettenis@gnu.org>
11219
11220 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11221 (sparc32_frame_prev_register): Handle StackGhost.
11222 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11223
932d5416
RM
112242004-01-29 Roland McGrath <roland@redhat.com>
11225
11226 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11227 * configure: Regenerated.
11228
11229 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11230 * Makefile.in (procfs.o): Add dep.
11231
47d3492a
AC
112322004-01-28 Andrew Cagney <cagney@redhat.com>
11233
11234 * tui/tui-stack.h: Update copyright.
11235 (struct frame_info): Add opaque declaration.
11236 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11237 (tui_show_locator_content): Rename tuiShowLocatorContent.
11238 (tui_show_frame_info): Rename tuiShowFrameInfo.
11239 * tui/tui-stack.c: Update copyright. Update references.
11240 * tui/tui-winsource.c: Update references.
11241 * tui/tui-win.c: Update references.
11242 * tui/tui-layout.c: Update references.
11243 * tui/tui-hooks.c: Update copyright, update references.
11244 * tui/tui.c: Update copyright, update references.
11245 * tui/tui-disasm.c: Update references.
11246
5d51ca54
DC
112472004-01-28 David Carlton <carlton@kealia.com>
11248
11249 * dwarf2read.c (add_partial_structure): Use demangled name if
11250 namespace equals "".
11251
086ed43d
JB
112522004-01-27 Jim Blandy <jimb@redhat.com>
11253
11254 Clean up misapplied patch:
11255 * dwarf2read.c (determine_prefix): Change one of the two forward
11256 declarations for 'determine_prefix_aux' to a declaration for this.
11257 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11258 argument to 'die_specification'.
11259
2a35147e
JB
11260 * dwarf2read.c (read_func_scope): Re-indent comment.
11261
a355c7de 112622004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11263
a355c7de
AC
11264 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11265 b->exp to NULL after freeing so that error during re-parsing or
11266 evaluation of expressions associated with breakpoint don't
11267 eventually lead to re-freeing of storage.
11268 Committed by Andrew Cagney.
11269
63ff5125
AC
112702004-01-27 Andrew Cagney <cagney@redhat.com>
11271
11272 * source.c (ambiguous_line_spec): Delete undefined declaration.
11273 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11274 (m32r_set_server_address, m32r_set_download_path): Ditto.
11275 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11276
e142c38c
DJ
112772004-01-27 Daniel Jacobowitz <drow@mvista.com>
11278
11279 * dwarf2read.c: Update calls to changed and renamed functions, and
11280 references to moved variables.
11281
11282 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11283 language, language_defn, list_in_scope, and ftypes members.
11284 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11285 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11286 (baseaddr): Remove globals.
11287
11288 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11289 (set_cu_language, die_is_declaration, die_specification)
11290 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11291 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11292 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11293 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11294
11295 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11296 cu.list_in_scope. Don't initialize cu_header_offset.
11297 (add_partial_symbol): Add local baseaddr.
11298 (psymtab_to_symtab_1): Add local baseaddr. Use
11299 objfile->section_offsets for consistency. Don't initialize
11300 cu_header_offset; do initialize cu.header.offset and
11301 cu.list_in_scope.
11302 (read_file_scope, read_func_scope, read_lexical_block_scope)
11303 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11304
c6e06ede
MC
113052004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11306
fb328ecc 11307 * PROBLEMS: Add gdb/1516.
c6e06ede 11308
48184fd4
AC
113092003-12-29 Robert Millan <robertmh@gnu.org>
11310
11311 Patch committed by Andrw Cagney.
11312 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11313 * configure.tgt: Match knetbsd*-gnu.
11314
c1321b30
AC
113152004-01-26 Andrew Cagney <cagney@redhat.com>
11316
f3699be3
AC
11317 * breakpoint.c (catch_command_1): Delete #ifdef code.
11318 (catch_fork_command_1): Delete #ifdef wrapper.
11319 (catch_exec_command_1): Ditto.
11320 (catch_load_command_1): Ditto.
11321 (catch_unload_command_1): Ditto.
11322
c1321b30
AC
11323 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11324 (catch_breakpoint): Delete #if0ed function.
11325 (disable_catch_breakpoint): Ditto.
11326 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11327 (disable_catch, enable_catch, delete_catch): Ditto.
11328
b4501125
AC
113292004-01-26 Andrew Cagney <cagney@redhat.com>
11330
11331 * remote.c (echo_check, quit_flag): Delete variables.
11332 (cisco_kernel_mode): Delete variable.
11333 (minitelnet_return, tty_input, escape_count): Delete variables.
11334 (remote_cisco_mode): Delete variable.
11335 (remote_cisco_open, remote_cisco_close): Delete function.
11336 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11337 (init_remote_cisco_ops): Delete function.
11338 (_initialize_remote): Do not install "remote cisco" code.
11339 (read_frame): Delete cisco specific code.
11340 (remote_info_process): Delete function.
11341 (remote_wait): Delete cisco specific code.
11342 (remote_cisco_section_offsets): Delete function.
11343 (remote_cisco_objfile_relocate): Delete function.
11344 (remote_async_wait): Delete cisco specific code.
11345 (minitelnet, readtty, readsocket): Delete function.
11346
74055713
AC
113472004-01-26 Andrew Cagney <cagney@redhat.com>
11348
11349 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11350 comments mentioning extract_returned_value_address.
11351 * infcmd.c (print_return_value): Update. Add comments on
11352 extract_returned_value_address.
11353 * stack.c (return_command): Add comments on
11354 extract_returned_value_address.
11355 * values.c: Update comment.
11356 * m32r-tdep.c: Update comment.
11357 * sparc-tdep.c: Update comment.
11358 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11360 * sh64-tdep.c (sh64_gdbarch_init): Update.
11361 * sh-tdep.c (sh_gdbarch_init): Update.
11362 * s390-tdep.c (s390_gdbarch_init): Update.
11363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11364 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11365 * m68k-tdep.c (m68k_gdbarch_init): Update.
11366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11367 * m32r-tdep.c (m32r_gdbarch_init): Update.
11368 * ia64-tdep.c (ia64_gdbarch_init): Update.
11369 * h8300-tdep.c (h8300_gdbarch_init): Update.
11370 * frv-tdep.c (frv_gdbarch_init): Update.
11371 * arm-tdep.c (arm_gdbarch_init): Update.
11372 * alpha-tdep.c (alpha_gdbarch_init): Update.
11373
a67af2b9
AC
113742004-01-26 Andrew Cagney <cagney@redhat.com>
11375
11376 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11377 SYMBOL_LOCATION_FUNCS
11378 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11379 "struct symbol_ops".
11380 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11381 type to "struct symbol_ops".
11382 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11383 (struct symbol): Replace ".aux_value.loc.funcs" and
11384 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11385 (SYMBOL_OBJFILE): Delete macro.
11386 (SYMBOL_LOCATION_FUNCS): Delete macro.
11387 (SYMBOL_LOCATION_BATON): Update.
11388 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11389 intead of SYMBOL_LOCATION_FUNCS.
11390 * ax-gdb.c (gen_var_ref): Ditto.
11391 * printcmd.c (address_info): Ditto.
11392 * findvar.c (read_var_value): Ditto.
11393 (symbol_read_needs_frame): Ditto.
11394
c034e007
AC
113952004-01-26 Andrew Cagney <cagney@redhat.com>
11396
11397 * dwarf2read.c (read_func_scope): Document frame-base hack.
11398
bb472c1e
MK
113992004-01-25 Mark Kettenis <kettenis@gnu.org>
11400
11401 * infcmd.c (print_return_value): Plug memory leak; delete
11402 ui_stream object. Rename argument `structure_return' to
11403 `struct_return'.
11404
c8e737d5
MK
114052004-01-25 Mark Kettenis <kettenis@gnu.org>
11406
f941662f
MK
11407 * infcmd.c (print_return_value): Wrap long lines.
11408 (finish_command_continuation, finish_command): Remove unused
11409 variable `funcaddr'. Fix some coding-standards problems.
11410
c558d81a 11411 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11412 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11413 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11414 TDEP->fpregset to zero.
11415
bf1e5861 11416 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11417 floating-point registers for traditional NetBSD core files.
11418 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11419 TDEP->sizeof_fpregset here.
11420
4c72d57a
MK
114212004-01-25 Mark Kettenis <kettenis@gnu.org>
11422
566626fa
MK
11423 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11424 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11425 function with code split out from
11426 sparc32nbsd_sigcontext_frame_cache.
11427 (sparc32nbsd_sigcontext_frame_cache): Use
11428 sparc32nbsd_sigcontext_saved_regs.
11429 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11430 OpenBSD.
11431 * sparcobsd-tdep.c: New file.
11432 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11433 (sparcobsd-tdep.o): New dependency.
11434 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11435 * config/sparc/obsd.mt: New file.
11436
4c72d57a
MK
11437 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11438 TDEP->fpregset to be initialized to enable core file register
11439 sets.
11440
7e5e9f88
MK
114412004-01-24 Mark Kettenis <kettenis@gnu.org>
11442
f0f207fd 11443 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11444 Add opaque declarations.
11445 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11446 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11447 function with code split out from
11448 sparc64nbsd_sigcontext_frame_cache.
11449 (sparc64nbsd_sigcontext_frame_cache): Use
11450 sparc64nbsd_sigcontext_saved_regs.
11451 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11452 OpenBSD.
11453 * sparc64obsd-tdep.c: New file.
11454 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11455 (sparc64obsd-tdep.o): New dependency.
11456 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11457 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11458 * config/sparc/obsd64.mt: New file.
11459
690668cc
MK
11460 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11461 read the instruction at PC.
11462
7e5e9f88
MK
11463 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11464 value of GDB_OSABI_DEFAULT.
11465 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11466 instead of GDB_OSABI_NETBSD_AOUT.
11467
68b6dce9
NR
114682004-01-24 Nick Roberts <nick@nick.uklinux.net>
11469
11470 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11471 copyright.
11472
080ce8c0
AC
114732004-01-23 Andrew Cagney <cagney@redhat.com>
11474
11475 * printcmd.c (display_command): Replace tui_set_display call with
11476 tui_set_layout_for_display_command.
11477 * tui/tui.h (enum tui_win_type): Define.
11478 (tui_set_layout): Delete declaration.
11479 (tui_set_layout_for_display_command): Rename set_tui_layout.
11480 * tui/tui-data.h (enum tui_layout_type): Define.
11481 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11482 "tui.h".
11483 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11484 (tui_default_win_height): Rename tuiDefaultWinHeight.
11485 (tui_default_win_viewport_height): Rename
11486 tuiDefaultWinViewportHeight.
11487 (tui_set_layout): RenametuiSetLayout.
11488 * tui/tui-layout.c: Update references.
11489 * tui/tui.c: Update references.
11490 * tui/tui-disasm.c: Update references.
11491
b368761e
DC
114922004-01-23 David Carlton <carlton@kealia.com>
11493
11494 Partial workaround for PR c++/1511:
11495 * cp-namespace.c: Include frame.h.
11496 (cp_lookup_transparent_type): New
11497 (cp_lookup_transparent_type_loop): New.
11498 * cp-support.h: Declare cp_lookup_transparent_type.
11499 * symtab.c (basic_lookup_transparent_type): Renamed from
11500 lookup_transparent_type.
11501 (lookup_transparent_type): Replace old body by a call to
11502 current_language->la_lookup_transparent_type.
11503 * symtab.h: Update copyright. Declare
11504 basic_lookup_transparent_type.
11505 * language.h: Update copyright.
11506 (struct language_defn): Add la_lookup_transparent_type.
11507 * language.c: Update copyright.
11508 (unknown_language_defn): Add basic_lookup_transparent_type.
11509 (auto_language_defn): Add basic_lookup_transparent_type.
11510 (local_language_defn): Add basic_lookup_transparent_type.
11511 * ada-lang.c: Update copyright.
11512 (ada_language_defn): Add basic_lookup_transparent_type.
11513 * c-lang.c: Update copyright.
11514 (c_language_defn): Add basic_lookup_transparent_type.
11515 (cplus_language_defn): Add basic_lookup_transparent_type.
11516 (asm_language_defn): Add basic_lookup_transparent_type.
11517 (minimal_language_defn): Add basic_lookup_transparent_type.
11518 * f-lang.c: Update copyright.
11519 (f_language_defn): Add basic_lookup_transparent_type.
11520 * jv-lang.c: Update copyright.
11521 (java_language_defn): Add basic_lookup_transparent_type.
11522 * m2-lang.c: Update copyright.
11523 (m2_language_defn): Add basic_lookup_transparent_type.
11524 * objc-lang.c: Update copyright.
11525 (objc_language_defn): Add basic_lookup_transparent_type.
11526 * p-lang.c: Update copyright.
11527 (p_language_defn): Add basic_lookup_transparent_type.
11528 * scm-lang.c: Update copyright.
11529 (scm_language_defn): Add basic_lookup_transparent_type.
11530 * Makefile.in (cp-namespace.o): Depend on frame.h.
11531
fdde2d81
DC
115322004-01-23 David Carlton <carlton@kealia.com>
11533
11534 Patch for PR c++/1520:
11535 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11536 properly if we have a specification die.
11537 (determine_prefix_aux): Rename from determine_prefix.
11538 (determine_prefix): Like the old determine_prefix, but never
11539 returns NULL.
11540
5b828b6b
TR
115412004-01-23 Theodore A. Roth <troth@openavr.org>
11542
11543 * avr-tdep.c: Update copyright.
11544 (avr_iaddr_p): Delete unused function.
11545 (avr_saddr_p): Delete unused function.
11546
a1b8c067
DC
115472004-01-23 David Carlton <carlton@kealia.com>
11548
11549 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11550 Fix for PR symtab/1534.
11551
f2cab569
MK
115522004-01-23 Mark Kettenis <kettenis@gnu.org>
11553
11554 * NEWS (New native configurations): Mention OpenBSD/sparc and
11555 OpenBSD/sparc64.
11556 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11557 * configure.host: Likewise.
11558 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11559 handler for OpenBSD.
11560 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11561
642d8300
MK
115622004-01-22 Mark Kettenis <kettenis@gnu.org>
11563
89aac506
MK
11564 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11565 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11566
36662fde
MK
11567 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11568 * cli/cli-cmds.c (shell_escape): Likewise.
11569
642d8300
MK
11570 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11571 OpenBSD .note.openbsd.ident sections.
11572
fae299cd
DC
115732004-01-22 David Carlton <carlton@kealia.com>
11574
11575 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11576 get_scope_pc_bounds.
11577 (read_file_scope): Ditto.
11578 (get_scope_pc_bounds): New function, produced by extracting code
11579 from the above two functions, consolidating it, and adding support
11580 for DW_TAG_namespace.
11581
a49d618c
MK
115822004-01-22 Mark Kettenis <kettenis@gnu.org>
11583
11584 * osabi.c (MAX_NOTESZ): New define.
11585 (check_note): New function.
11586 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11587 check_note.
11588
fe61caab
RM
115892004-01-21 Roland McGrath <roland@redhat.com>
11590
11591 * MAINTAINERS (write after approval): Add myself.
11592
ec145965
EZ
115932004-01-21 Eli Zaretskii <eliz@gnu.org>
11594
11595 * utils.c (init_page_info): Move declarations of `rows' and
11596 `cols' before the __GO32__-specific code. Move the closing brace
11597 outside the #ifdef __GO32__..#endif block.
11598 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11599
877522db
PB
116002004-01-21 Paul Brook <paul@codesourcery.com>
11601
11602 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11603 BPSTAT_WHAT_CHECK_SHLIBS.
11604
dbf5be1c
PB
116052004-01-21 Paul Brook <paul@codesourcery.com>
11606
11607 * MAINTAINERS: Add myself to write-after-approval.
11608
81f08b92
AC
116092004-01-20 Andrew Cagney <cagney@redhat.com>
11610
5a1efed7
AC
11611 * ax-gdb.c (print_axs_value): Delete unused function.
11612 * jv-lang.c (java_lookup_type): Delete unused function.
11613 * cli/cli-dump.c (dump_filetype): Delete unused function.
11614 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11615 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11616 (mips_getstring): Delete unused function.
11617 (pmon_insert_breakpoint): Delete #if0ed function.
11618 (PMON_MAX_BP): Delete #if0ed MACRO.
11619 (mips_pmon_bp_info): Delete #if0ed variable.
11620 (pmon_remove_breakpoint): Delete #if0ed function.
11621 * monitor.c (monitor_write_even_block): Delete unused function.
11622 (monitor_write_memory_block): Delete #if0ed code.
11623 * dink32-rom.c (dink32_load): Delete unused function.
11624 (_initialize_dink32_rom): Delete #if0ed code.
11625 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11626
b0a30fce
AC
11627 * tui/tui-command.c: Update references.
11628 * tui/tui-io.c: Update references.
11629 * tui/tui-command.h: Update copyright.
11630 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11631
81f08b92
AC
11632 * source.c (ambiguous_line_spec): Delete never-defined function.
11633 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11634 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11635 * cli/cli-cmds.c (validate_comname): Ditto.
11636
65f05602
AC
11637 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11638 "tui-data.h".
11639 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11640 (tui_show_disassem): Rename tuiShowDisassem.
11641 (tui_show_disassem_and_update_source): Rename
11642 tuiVerticalDisassemScroll.
11643 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11644 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11645 * tui/tui.h: Update copyright.
11646 (enum tui_status): Define.
11647 * tui/tui-data.h (enum tui_scroll_direction): Define.
11648 * tui/tui-disasm.c: Update copyright. Update references.
11649 * tui/tui-winsource.c: Update copyright. Update references.
11650 * tui/tui-win.c: Update references.
11651 * tui/tui-layout.c: Update references.
11652
6bb0384f
AC
116532004-01-20 Andrew Cagney <cagney@redhat.com>
11654
11655 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11656 sym2 to start of block.
11657
9175c9a3
MC
116582004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11659
11660 * MAINTAINERS: Delete mmalloc.
11661 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11662 * NEWS: Mention removal of --with-malloc.
11663 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11664 * config.in: Regenerate.
11665 * configure: Regenerate.
6bb0384f
AC
11666 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11667 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11668 * gdbinit.in: Remove mmalloc.
11669 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11670 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11671 * config/i386/go32.mh: Likewise.
11672 * config/i386/interix.mh: Likewise.
11673 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11674
4fcef00a
JJ
116752004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11676
11677 * linespec.c (decode_variable, symtab_from_filename): Call
11678 error_silent with error message instead of throwing an exception
11679 directly.
11680 * defs.h (error_silent, error_output_message): Add prototypes.
11681 (catch_exceptions_with_msg): Ditto.
11682 * utils.c (error_silent, error_output_message): New functions.
11683 * top.c (catch_exceptions_with_msg): New function.
11684
8e94b928
NR
116852004-01-20 Nick Roberts <nick@nick.uklinux.net>
11686
11687 * mi/mi-cmds.h (enum print_values): Add definition.
11688
11689 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11690 type and value for simple data types and just the name and type
11691 for complex ones, if required.
11692
11693 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11694 children, if required.
11695
a02d6af8
KB
116962004-01-19 Kevin Buettner <kevinb@redhat.com>
11697
11698 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11699 unused declarations.
11700
78a4a9b9
AC
117012004-01-19 Andrew Cagney <cagney@redhat.com>
11702
11703 * top.h (mapped_symbol_files): Delete declaration.
11704 * main.c (captured_main): Delete option "m" and "mapped".
11705 * objfiles.c (mapped_symbol_files): Delete variable.
11706 * symfile.c (symbol_file_command): Delete mmap code.
11707 (symbol_file_add_with_addrs_or_offsets): Ditto.
11708 (add_symbol_file_command, reread_separate_symbols): Ditto.
11709 * objfiles.h (OBJF_MAPPED): Delete.
11710 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11711 (free_objfile) [USE_MMALLOC]: Ditto.
11712 (open_existing_mapped_file): Delete function.
11713 (open_mapped_file): Delete function.
11714 (map_to_file): Delete function.
11715
2dbd5e30
KB
117162004-01-19 Kevin Buettner <kevinb@redhat.com>
11717
11718 * infrun.c (step_into_function): Account for possible breakpoint
11719 adjustment when computing ``stop_func_start''.
11720
437b434f
KB
117212004-01-19 Kevin Buettner <kevinb@redhat.com>
11722
11723 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11724 the region size against the size of a pointer, not the size of
11725 a register as given by DEPRECATED_REGISTER_SIZE.
11726
55fb0713
AC
117272004-01-19 Andrew Cagney <cagney@redhat.com>
11728
11729 * tui/tui-regs.h: Include "tui-data.h".
11730 (tuiFirstRegElementNoInLine): Delete declaration.
11731 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11732 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11733 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11734 (tui_calculate_regs_column_count): Rename
11735 tuiCalculateRegsColumnCount.
11736 (tui_check_register_values): Rename tuiCheckRegisterValues.
11737 (tui_show_registers): Rename tuiShowRegisters.
11738 (tui_display_registers_from_line): Rename
11739 tuiDisplayRegistersFromLine.
11740 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11741 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11742 (tui_first_reg_element_no_inline): Rename
11743 tuiFirstRegElementNoInLine.
11744 * tui/tui-data.h: Update copyright.
11745 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11746 * tui/tui-windata.c: Update copyright, update references.
11747 * tui/tui-regs.c: Update copyright, update references.
11748 * tui/tui-win.c: Update copyright, update references.
11749 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11750
cebe9500
AC
117512004-01-18 Andrew Cagney <cagney@redhat.com>
11752
bcdf1568
AC
11753 * tui/tui-io.c: Update copyright.
11754 (key_is_end_sequence, key_is_backspace): New functions.
11755 (key_is_command_char, key_is_start_sequence): New function.
11756 (tui_getc): Update references.
11757 * tui/tui-io.h: Update copyright.
11758 (m_tuiStartNewLine): Delete macro.
11759 (m_isBackspace, m_isDeleteChar): Delete macros.
11760 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11761 (m_isNextPage, m_isPrevPage): Delete macros.
11762 (m_isLeftArrow, m_isRightArrow): Delete macros.
11763 (m_isXdbStyleCommandChar): Delete macro.
11764 (key_is_start_sequence): Declare, replace m_isStartSequence.
11765 (key_is_end_sequence): Declare, replace m_isEndSequence.
11766 (key_is_backspace): Declare ,replace m_isBackspace.
11767 (key_is_command_char): Declare, replace m_isCommandChar.
11768 * tui/tui-command.c: Update copyright.
11769 (tuiDispatchCtrlChar): Update references.
11770
130d87e6
AC
11771 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11772 tuiSourceWin.h.
11773
d7b2e967
AC
11774 * tui/tui-command.c: Rename tui/tuiCommand.c.
11775 * tui/tui-command.h: Rename tui/tuiCommand.h.
11776 * tui/tui-data.c: Rename tui/tuiData.c.
11777 * tui/tui-data.h: Rename tui/tuiData.h.
11778 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11779 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11780 * tui/tui-io.c: Rename tui/tuiIO.c.
11781 * tui/tui-io.h: Rename tui/tuiIO.h.
11782 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11783 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11784 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11785 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11786 * tui/tui-source.c: Rename tui/tuiSource.c.
11787 * tui/tui-source.h: Rename tui/tuiSource.h.
11788 * tui/tui-stack.c: Rename tui/tuiStack.c.
11789 * tui/tui-stack.h: Rename tui/tuiStack.h.
11790 * tui/tui-win.c: Rename tui/tuiWin.c.
11791 * tui/tui-win.h: Rename tui/tuiWin.h.
11792 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11793 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11794 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11795 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11796 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11797 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11798 * tui/tui-file.c: Update includes.
11799 * tui/tui-hooks.c: Update includes.
11800 * tui/tui-interp.c: Update includes.
11801 * tui/tui.c: Update includes.
11802 * Makefile.in: Update all tui/ dependencies.
11803 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11804
b2100910
AC
11805 * Makefile.in: Update copyright. Update dependencies.
11806
cebe9500
AC
11807 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11808 problem.
11809
c6f0559b
AC
118102004-01-18 Andrew Cagney <cagney@redhat.com>
11811
43e9390b
AC
11812 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11813 instead of register_gdbarch_init.
11814
c6f0559b
AC
11815 * remote-sds.c (tohex): Delete unused function. Update copyright.
11816 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11817 * v850-tdep.c (v850_register_virtual_size): Ditto.
11818 * target.c (normal_target_post_startup_inferior): Ditto.
11819 * source.c (ambiguous_line_spec): Ditto.
11820 * remote.c (adapt_remote_get_threadinfo): Ditto.
11821 * mi/mi-out.c (out_field_fmt): Ditto.
11822 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11823 (output_control_change_notification): Ditto.
11824 * m68k-tdep.c (m68k_register_byte): Ditto.
11825 (m68k_remote_breakpoint_from_pc): Ditto.
11826 * ui-out.c (init_ui_out_state): Delete unused declaration.
11827 * stabsread.c (search_value): Ditto.
11828 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11829 * maint.c (print_section_table): Ditto.
11830 * infrun.c (set_follow_fork_mode_command): Ditto.
11831
a8504492
MK
118322004-01-18 Mark Kettenis <kettenis@gnu.org>
11833
11834 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11835 DW_CFA_def_cfa_exporession. Add support for
11836 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11837 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11838
0bd8997e
AC
118392004-01-18 Andrew Cagney <cagney@redhat.com>
11840
11841 * ocd.c: Update copyright.
11842 (bdm_read_register_command): Delete unused function.
11843 (_initialize_remote_ocd): Delete commented out reference.
11844 (get_quoted_char, reset_packet): Delete #if0ed function.
11845 (output_packet, put_quoted_char): Delete #if0ed function.
11846 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11847 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11848 (BDM_BREAKPOINT): Delete #if0ed macro.
11849 (remote_timeout): Delete #if0ed variable.
11850
31bb40e4
MK
118512004-01-18 Mark Kettenis <kettenis@gnu.org>
11852
11853 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11854 (core-sol2.o): Remove dependency.
11855 * core-sol2.c: Remove file.
11856
887432a5
AC
118572004-01-17 Andrew Cagney <cagney@redhat.com>
11858
11859 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11860 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11861 enums.
11862
29182b13
DJ
118632004-01-17 Daniel Jacobowitz <drow@mvista.com>
11864
11865 * remote.c: Update copyright years.
11866
2963ee1d
DJ
118672004-01-17 Daniel Jacobowitz <drow@mvista.com>
11868
11869 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11870
79d45cd4
AC
118712004-01-17 Andrew Cagney <cagney@redhat.com>
11872
ee300cd4
AC
11873 * mdebugread.c: Update copyright.
11874 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11875 (parse_type, parse_procedure): Ditto.
11876 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11877
fcacc9c2
AC
11878 * cris-tdep.c (cris_store_struct_return): Put back accidently
11879 deleted function.
11880
79d45cd4
AC
11881 * gdbarch.sh: Update copyright year.
11882 * gdbarch.h, gdbarch.c: Re-generate.
11883
b263358a
DJ
118842004-01-17 Daniel Jacobowitz <drow@mvista.com>
11885
11886 Suggested by George Anzinger.
11887 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11888 correct stack offset. Include unknown opcode numbers in the error
11889 message.
11890
931aecf5
AC
118912004-01-17 Andrew Cagney <cagney@redhat.com>
11892
11893 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11894 extract_struct_value_address, i386 does not set it.
11895 * sparc64-tdep.c (sparc64_init_abi): Do not set
11896 extract_struct_value_address, never called.
11897 (sparc64_extract_struct_value_address): Delete function.
11898 * m68hc11-tdep.c: Update copyright.
11899 (m68hc11_gdbarch_init): Delete redundant assignment of
11900 extract_struct_value_address.
11901 * i386-tdep.c: Update copyright.
11902 (i386_gdbarch_init): Do not set extract_struct_value_address,
11903 never called.
11904 (i386_extract_struct_value_address): Delete function.
11905 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11906 extract_struct_value_address, never called.
11907 (sparc32_extract_struct_value_address): #if 0 function. Add
11908 comments explaining its future.
11909
756fe439
DJ
119102004-01-17 Daniel Jacobowitz <drow@mvista.com>
11911
11912 * arm-tdep.c (arm_write_pc): New function.
11913 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11914
e74f0f02
DJ
119152004-01-17 Daniel Jacobowitz <drow@mvista.com>
11916
11917 * breakpoint.c (must_shift_inst_regs): Delete.
11918 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11919 and SHIFT_INST_REGS.
11920 * infcmd.c (step_1, step_1_continuation): Delete references to
11921 SHIFT_INST_REGS.
11922 * infrun.c (keep_going): Likewise.
11923 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11924 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11925
b6cb9035
AC
119262004-01-17 Andrew Cagney <cagney@redhat.com>
11927
444a1e2e
AC
11928 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11929 * gdbarch.h, gdbarch.c: Re-generate.
11930 * infcmd.c (print_return_value): Delete reference to
11931 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11932
def7e6ed
AC
11933 * cris-tdep.c (cris_gdbarch_init): Do not set
11934 deprecated_extract_struct_value_address.
11935
07be497a
AC
11936 * xstormy16-tdep.c: Update copyright.
11937 (xstormy16_extract_struct_value_address): Update to current
11938 extract struct value address interface.
11939 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11940 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11941 current extract struct value address interface.
11942 (sh64_gdbarch_init): Set extract_struct_value_address.
11943
6b4d5c91
AC
11944 * cris-tdep.c: Update copyright.
11945 (cris_extract_struct_value_address): Delete function.
11946 (struct_return_address): Delete variable.
11947 (cris_store_struct_return): Do not set struct_return_address.
11948
464e0365
AC
11949 * mcore-tdep.c: Update copyright.
11950 (mcore_extract_struct_value_address): Delete function. Update
11951 comments.
11952 (mcore_gdbarch_init): Update.
11953 * mn10300-tdep.c: Update copyright.
11954 (mn10300_extract_struct_value_address): Delete function.
11955 (mn10300_gdbarch_init): Update.
11956 * v850-tdep.c: Update copyright.
11957 (v850_extract_struct_value_address): Delete.
11958 (v850_gdbarch_init): Update.
11959 * ns32k-tdep.c: Update copyright.
11960 (ns32k_extract_struct_value_address): Delete.
11961 (ns32k_gdbarch_init): Update.
11962 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11963 (hppa_gdbarch_init): Update.
11964 * vax-tdep.c: Update copyright.
11965 (vax_extract_struct_value_address): Delete.
11966 (vax_gdbarch_init): Update.
11967
afb18d0f
AC
11968 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11969 * gdbarch.h, gdbarch.c: Re-generate.
11970 * procfs.c (procfs_fetch_registers): Delete reference to
11971 DEPRECATED_NPC_REGNUM.
11972 (procfs_store_registers): Ditto.
11973 * regcache.c (generic_target_write_pc): Simplify.
11974 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11975
a698f53e
AC
11976 * core-sol2.c (fetch_core_registers): Replace
11977 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11978
adc11376
AC
11979 * hppa-tdep.c: Update copyright year.
11980 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11981 NPC_REGNUM.
11982 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11983
b6cb9035
AC
11984 * mips-tdep.c (mips_write_pc): New function.
11985 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11986 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11987 (mips_find_saved_regs, mips_software_single_step: Ditto.
11988 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11989 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11990
6d82d43b
AC
119912004-01-17 Andrew Cagney <cagney@redhat.com>
11992
11993 * mips-tdep.c: Re-indent. Group functions by ABI.
11994
71bd6bd4
AC
119952004-01-17 Andrew Cagney <cagney@redhat.com>
11996
11997 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11998 * gdbarch.c: Re-generate.
11999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12000 DECR_PC_AFTER_BREAK to zero.
12001 * vax-tdep.c (vax_gdbarch_init): Ditto.
12002 * v850-tdep.c (v850_gdbarch_init): Ditto.
12003 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12004 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12005 * sh-tdep.c (sh_gdbarch_init): Ditto.
12006 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12007 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12009 * mips-tdep.c (mips_gdbarch_init): Ditto.
12010 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12012 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12013 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12014 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12015 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12016 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12017 * frv-tdep.c (frv_gdbarch_init): Ditto.
12018 * cris-tdep.c (cris_gdbarch_init): Ditto.
12019 * avr-tdep.c (avr_gdbarch_init): Ditto.
12020 * arm-tdep.c (arm_gdbarch_init): Ditto.
12021 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12022
a02abb62
JB
120232004-01-17 J. Brobecker <brobecker@gnat.com>
12024
12025 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12026 Delete, no longer used.
12027 (read_subrange_type): New function, mostly extracted from
12028 read_array_type().
12029 (read_array_type): Replace extracted code by call to
12030 read_subrange_type().
12031 (dwarf2_get_attr_constant_value): New function.
12032 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12033 (add_partial_symbol): Likewise.
12034 (process_die): Likewise.
12035 (new_symbol): Likewise.
12036 (read_type_die): Likewise.
12037
cf5b2f1b
AC
120382004-01-16 Andrew Cagney <cagney@redhat.com>
12039
12040 * symfile.c: Update copyright year.
12041 (compare_symbols): Delete unused function.
12042 * stabsread.c: Update copyright year.
12043 (lrs_general_complaint): Delete unused function.
12044 (ref_search_value): Ditto.
12045 (get_substring): Delete declaration.
12046 * sh64-tdep.c: Update copyright year.
12047 (sh64_get_gdb_regnum): Delete unused function.
12048 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12049 Delete unused function.
12050
d33b9831
MK
120512004-01-17 Mark Kettenis <kettenis@gnu.org>
12052
12053 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12054 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12055
7aea86e6
AC
120562004-01-16 Andrew Cagney <cagney@redhat.com>
12057
12058 Changes from Peter Schauer.
12059 * rs6000-tdep.c: Update copyright year.
12060 (rs6000_push_dummy_call): Update the stack pointer before
12061 accessing the corresponding stack region.
12062 * rs6000-nat.c: Update copyright year.
12063 (set_host_arch): Set "info.abfd" to "exec_bfd".
12064
26b0da32
MK
120652004-01-15 Mark Kettenis <kettenis@gnu.org>
12066
12067 * blockframe.c: Update copyright year.
12068 (inside_entry_func): Don't treat a zero PC specially.
12069
86fbe6cc
EZ
120702004-01-14 Elena Zannoni <ezannoni@redhat.com>
12071
12072 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12073 variable.
12074 (gcore_create_callback): Ditto. Skip any memory segment that has
12075 no permissions set.
12076
63d06c5c
DC
120772004-01-14 David Carlton <carlton@kealia.com>
12078
12079 Change symbols for C++ nested types to contain the fully qualified
12080 name, if possible. (At least in the DWARF-2 case.) Partial fix
12081 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12082 c++/895.
12083 * c-exp.y (qualified_type): Handle types nested within classes.
12084 * cp-namespace.c: Update comments.
12085 (cp_set_block_scope): Delete #if 0.
12086 (cp_lookup_nested_type): Handle types nested within classes.
12087 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12088 when appropriate.
12089 (add_partial_symbol): Add the name of the enclosing namespace to
12090 types.
12091 (pdi_needs_namespace): New.
12092 (add_partial_namespace): Tweak comment.
12093 (add_partial_structure): New.
12094 (psymtab_to_symtab_1): Initialize processing_current_prefix
12095 here...
12096 (process_die): instead of here.
12097 (read_structure_scope): Try to figure out the name of the class or
12098 namespace that the structure might be defined within.
12099 (read_enumeration): Generate fully-qualified names, if possible.
12100 (read_namespace): Don't set name to NULL.
12101 (die_specification): New.
12102 (new_symbol): Generate fully-qualified names for types.
12103 (read_type_die): Determine appropriate prefix.
12104 (determine_prefix): New.
12105 (typename_concat): New.
12106 (class_name): New.
12107 * valops.c (value_aggregate_elt): Pass NOSIDE to
12108 value_struct_elt_for_reference.
12109 (value_struct_elt_for_reference): Make static, add NOSIDE
12110 parameter, call value_maybe_namespace_elt as a last resort.
12111 (value_namespace_elt): Break out code into
12112 value_maybe_namespace_elt.
12113 (value_maybe_namespace_elt): New.
12114
87783b8b
AC
121152004-01-12 Andrew Cagney <cagney@redhat.com>
12116
12117 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12118 cooked floating-point registers.
12119 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12120 and value_to_register.
12121
6503b91e
AC
121222004-01-13 Andrew Cagney <cagney@redhat.com>
12123
12124 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12125 * gdbarch.c: Re-generate.
12126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12127 FUNCTION_START_OFFSET.
12128 * v850-tdep.c (v850_gdbarch_init): Ditto.
12129 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12130 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12131 * sh-tdep.c (sh_gdbarch_init): Ditto.
12132 * s390-tdep.c (s390_gdbarch_init): Ditto.
12133 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12134 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12136 * mips-tdep.c (mips_gdbarch_init): Ditto.
12137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12138 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12140 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12141 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12142 * i386-tdep.c (i386_gdbarch_init): Ditto.
12143 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12144 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12145 * frv-tdep.c (frv_gdbarch_init): Ditto.
12146 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12147 * cris-tdep.c (cris_gdbarch_init): Ditto.
12148 * avr-tdep.c (avr_gdbarch_init): Ditto.
12149 * arm-tdep.c (arm_gdbarch_init): Ditto.
12150 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12151
ea1dd7bc
DJ
121522004-01-13 Daniel Jacobowitz <drow@mvista.com>
12153
12154 * infrun.c (follow_fork_mode_ask): Remove.
12155 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12156 (follow_fork): Simplify and remove internal error for
12157 follow_fork_mode_ask.
12158 (_initialize_infrun): Update "set follow-fork-mode" help text.
12159
0f0cffd2
AC
121602004-01-13 Andrew Cagney <cagney@redhat.com>
12161
12162 * configure.in: Update copyright year.
12163 (build_warnings): Add -Wunused-label.
12164 * configure: Re-generate.
12165
de38af99
AC
121662004-01-12 Andrew Cagney <cagney@redhat.com>
12167
954a7fba
AC
12168 * exec.h (exec_ops): Make "extern".
12169
de38af99
AC
12170 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12171 the function is void.
12172 (mips_pseudo_register_write): Ditto.
12173
1a111ce3
AC
121742004-01-12 Andrew Cagney <cagney@redhat.com>
12175
12176 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12177 call. Never defined.
12178 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12179 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12180 (struct sparc_gregset, struct regcache): Ditto.
12181 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12182
48efe704
AC
121832004-01-12 Andrew Cagney <cagney@redhat.com>
12184
12185 * mi/ChangeLog: Delete file. Renamed to ...
12186 * mi/ChangeLog-1999-2003: New file.
12187 * tui/ChangeLog: Delete file. Renamed to ...
12188 * tui/ChangeLog-1998-2003: New file.
fe61caab 12189
a54124c5
MK
121902004-01-11 Mark Kettenis <kettenis@gnu.org>
12191
2ca62865
MK
12192 * sparc64nbsd-tdep.c: Include "regset.h".
12193 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12194 Remove variables.
12195 (fetch_core_registers): Remove function.
12196 (sparc64nbsd_core_fns): Remove variable.
12197 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12198 functions.
12199 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12200 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12201 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12202
ca9d58e9
MK
12203 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12204 sparc_extract_struct_value_address.
12205 (sparc32_gdbarch_init): Set extract_struct_value_address.
12206 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12207 function.
12208 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12209 return_value_on_stack.
12210
3cc87ec0
MK
12211 * NEWS: Mention that %cs and %ss have been added to the AMD64
12212 configurations
12213
5bf00f29
MK
12214 * frame.c: Update copyright year.
12215 (get_prev_frame): Improve comment.
12216
4f7ec84e
MK
12217 * sparc64fbsd-tdep.c: Include "regset.h".
12218 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12219 Remove variables.
12220 (fetch_core_registers): Remove function.
12221 (sparc64fbsd_core_fns): Remove variable.
12222 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12223 functions.
12224 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12225 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12226 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12227
4e7b0cd3
MK
12228 * sparcnbsd-tdep.c: Include "regset.h".
12229 (fetch_core_registers): Remove function.
12230 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12231 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12232 functions.
12233 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12234 TDEP->fpregset.
46b58ce9 12235 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12236
a54124c5
MK
12237 * sparc-tdep.h (struct regset): Provide opaque declaration.
12238 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12239 fpregset and sizeof_fpregset members.
12240 * sparc-tdep.c (struct regset): Provide opaque declaration.
12241 (sparc_regset_from_core_section): New function.
12242 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12243 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12244 Set regset_from_core_section when appropriate.
12245
29ff87c5
MK
122462004-01-10 Mark Kettenis <kettenis@gnu.org>
12247
79b1ab3d
MK
12248 * x86-64-tdep.c (amd64_non_pod_p): New function.
12249 (amd64_classify_aggregate): Return class memory for non-POD
12250 C++ structure types.
12251
6470d250
MK
12252 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12253 argument. Use it to reserve a register if necessary.
12254 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12255 amd64_push_arguments.
12256
562c50c2
MK
12257 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12258
af233647
MK
12259 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12260 register numbers in comments.
12261 * x86-64-tdep.h: Update copyright year.
12262 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12263 Adjust for addition of %cs and %ss.
12264 * amd64fbsd-nat.c: Update copyright year.
12265 (reg_offset): Add register offsets for %cs and %ss.
12266 * amd64fbsd-tdep.c: Update copyright year.
12267 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12268 (amd64fbsd_sc_reg_offset): Likewise.
12269 * x86-64-linux-nat.c: Update copyright year.
12270 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12271 and %ss.
12272 * amd64nbsd-nat.c: Update copyright year.
12273 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12274 * amd64nbsd-tdep.c: Update copyright year.
12275 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12276 * x86-64-linux-tdep.c: Update copyright year.
12277 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12278 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12279 * regformats/reg-x86-64.dat: Add %cs and %ss.
12280
29ff87c5
MK
12281 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12282 variables to prevent long lines. Update comments to reflect
12283 reality.
12284
38d518c9
EZ
122852004-01-09 David Carlton <carlton@kealia.com>
12286
12287 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12288 * dwarf2read.c (read_namespace): Pull out name-generating code
12289 into namespace_name. Rename previous_namespace to previous_prefix
12290 and processing_current_namespace to processing_current_prefix..
12291 (namespace_name): New function.
12292 (add_partial_symbol): Substitute uses of pdi->name with
12293 actual_name.
12294 * cp-support.h: Rename processing_current_namespace to
12295 processing_current_prefix.
12296 Update copyright year.
12297 * cp-namespace.c: Rename processing_current_namespace to
12298 processing_current_prefix.
12299 Update copyright year.
fe61caab 12300
1e4728e7
AC
123012004-01-09 Andrew Cagney <cagney@redhat.com>
12302
12303 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12304
c77c642a
MK
123052004-01-09 Mark Kettenis <kettenis@gnu.org>
12306
12307 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12308 complaining.
12309 (process_one_symbol): Deal with N_PATCH stabs.
12310
b44e9041
EZ
123112004-01-09 Elena Zannoni <ezannoni@redhat.com>
12312
12313 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12314 ifdeffed code.
12315 Update copyright year.
38d518c9 12316
eccfb640
MC
123172004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12318
12319 * config/pa/tm-hppa.h: Update extern declarations for
12320 hppa32_hpux_frame_saved_pc_in_sigtramp,
12321 hppa32_hpux_frame_base_before_sigtramp, and
12322 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12323
848c5feb
MC
123242004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12325
12326 * config/pa/tm-hppah.h: Update copyright years.
12327
3cc5d663
AC
123282004-01-08 Andrew Cagney <cagney@redhat.com>
12329
12330 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12331 (mips_o32_reg_struct_has_addr): Delete function.
12332 (mips_gdbarch_init): Update.
12333 (mips_extract_struct_value_address): Delete function.
12334
bfec0b41
JJ
123352004-01-08 David Mosberger <davidm@hpl.hp.com>
12336
12337 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12338 reality.
12339
16e109ca
AC
123402004-01-07 Andrew Cagney <cagney@redhat.com>
12341
6214a8a1
AC
12342 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12343 architecture's elf flags (when available).
12344
8d5838b5
AC
12345 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12346 FPU to the start, check the MIPS FPU when looking for an old
12347 architecture.
12348 (set_mipsfpu_single_command): Update the architecture.
12349 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12350
480d3dd2
AC
12351 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12352 (mips_mask_address_p): Add "tdep" parameter.
12353 (show_mask_address, mips_addr_bits_remove): Update.
12354 (mips_dump_tdep): Update.
12355 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12356 (MIPS_STACK_ARGSIZE): Delete macro.
12357 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12358 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12359 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12360 (mips_dump_tdep): Update.
12361 (MIPS_SAVED_REGSIZE): Delete macro.
12362 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12363 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12364 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12365 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12366 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12367 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12368 (mips_pop_frame, return_value_location): Update.
12369 (mips_n32n64_return_value, mips_dump_tdep): Update.
12370
ec03c1ac
AC
12371 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12372 MIPS ABI.
12373
16e109ca
AC
12374 * mips-tdep.c: Update copyright.
12375 (mips_gdbarch_init): Merge two code blocks handling the register
12376 name and number layout.
12377
15255275
MS
123782004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12379
12380 * tracepoint.c (validate_actionline): Fix segv at EOF
12381
9f9057da
MC
123822004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12383
12384 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12385 properly for static fields.
12386
0127c0d3 123872004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12388 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12389
12390 * disasm.c: Update copyright to include 2004.
12391 (do_mixed_source_and_assembly): For uiout asm list
12392 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12393 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12394 the tuple/list. Move check for whether to close off the
fe61caab 12395 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12396 on each loop iteration.
12397
5269965e
AC
123982004-01-05 Andrew Cagney <cagney@redhat.com>
12399
54f1137d
AC
12400 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12401 should be a switch case and not a label.
12402 * mips-tdep.c (mips32_next_pc): Delete unused labels
12403 "greater_equal_branch" and "less_zero_branch".
12404 * jv-valprint.c (java_print_value_fields): Delete unused label
12405 "flush_it".
12406
5269965e
AC
12407 * target.c (unpush_target): Only close a target that is in the
12408 target stack.
12409
dbc22fa1
MK
124102004-01-05 Mark Kettenis <kettenis@gnu.org>
12411
9515395e
MK
12412 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12413 address from [sp + 64] instead of %o2.
12414
dbc22fa1
MK
12415 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12416 fixes PR backtrace/1476.
12417
5439edaa
AC
124182004-01-05 Andrew Cagney <cagney@redhat.com>
12419
12420 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12421 move to start of file.
12422 * i386-tdep.h (struct regcache): Add opaque declaration.
12423 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12424 declaration.
12425 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12426 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12427 * win32-nat.c (fake_create_process): Use ISO C style definition.
12428 * stabsread.c (define_symbol): Delete #ifndef
12429 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12430 stabs_argument_has_addr call, macro never defined.
12431
19061abe
MC
124322004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12433
12434 * op50-rom.c: Delete.
12435 * w89k-rom.c: Delete.
12436 * Makefile.in: Remove references.
12437
e53bef9f
MK
124382004-01-04 Mark Kettenis <kettenis@gnu.org>
12439
12440 * x86-64-tdep.c: Update copyright year.
12441 (struct amd64_register_info): Rename from x86_64_register_info.
12442 (amd64_register_info): Rename from x86_64_register_info.
12443 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12444 (amd64_register_name): Rename from x86_64_register_name.
12445 (amd64_register_type): Rename from x86_64_register_type.
12446 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12447 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12448 (amd64_dwarf_reg_to_regnum): Rename from
12449 x86_64_dwarf_reg_to_regnum.
12450 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12451 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12452 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12453 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12454 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12455 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12456 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12457 (amd64_frame_cache): Rename from x86_64_frame_cache.
12458 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12459 (amd64_frame_prev_register): Rename from
12460 x86_64_frame_prev_register.
12461 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12462 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12463 (amd64_sigtramp_frame_cache): Rename from
12464 x86_64_sigtramp_frame_cache.
12465 (amd64_sigtramp_frame_prev_register): Rename from
12466 x86_64_sigtramp_frame_prev_register.
12467 (amd64_sigtramp_frame_unwind): Rename from
12468 x86_64_sigtramp_frame_unwind.
12469 (amd64_sigtramp_frame_sniffer): Rename from
12470 x86_64_sigtramp_frame_sniffer.
12471 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12472 (amd64_frame_base): Rename from x86_64_frame_base.
12473 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12474 (amd64_frame_align): Rename from x86_64_frame_align.
12475 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12476 (amd64_regset_from_core_section): Rename from
12477 x86_64_regset_from_core_section.
12478 (x86_64_init_abi): Update comments.
12479
fca6aa58
NR
124802004-01-04 Nick Roberts <nick@nick.uklinux.net>
12481
12482 * MAINTAINERS (write after approval): Add myself.
12483
8ada74e3
MK
124842004-01-04 Mark Kettenis <kettenis@gnu.org>
12485
12486 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12487 `float' arguments.
12488
5154b0cd
MK
124892004-01-04 Mark Kettenis <kettenis@gnu.org>
12490
12491 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12492 such that it mentions a specific version of GCC that exhibits this
12493 bug.
12494
fb316966
MK
124952004-01-03 Mark Kettenis <kettenis@gnu.org>
12496
200cc553
MK
12497 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12498 structure that has a single `float' member, store it in %f1 in
12499 addition to %f0.
12500
e226a4a0
MK
12501 * sparc-sol2-nat.c: Add missing '\'.
12502
b9d4c5ed
MK
12503 * sparc-tdep.c (sparc32_return_value): New function.
12504 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12505 Remove functions.
12506 (sparc32_gdbarch_init): Set return_value, don't set
12507 extract_return_value, store_return_value, use_struct_convention
12508 and return_value_on_stack.
12509
fb316966
MK
12510 * sparc-sol2-nat.c: Add missing ')'.
12511
1af510a8
JB
125122004-01-03 J. Brobecker <brobecker@gnat.com>
12513
12514 * infrun.c (handle_step_into_function): New function.
12515 (handle_inferior_event): Extract out some code into the new
12516 function above.
12517
5cf4d23a
JB
125182004-01-03 J. Brobecker <brobecker@gnat.com>
12519
12520 * infrun.c (handle_inferior_event): Move the declaration of
12521 real_stop_pc inside the if blocks where it is used.
12522
60af1db2
MK
125232004-01-03 Mark Kettenis <kettenis@gnu.org>
12524
12525 * sparc64-tdep.c (sparc64_16_byte_align_p)
12526 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12527 Use check_typedef to get subtypes of structures and unions.
12528 (sparc64_store_return_value): Fix calculation of the appropriate
12529 offset into VALBUF when storing a structure or union.
12530 (sparc64_return_value): New function.
12531 (sparc64_use_struct_convention): Remove function.
12532 (sparc64_init_abi): Set return_value, don't set
12533 extract_return_value, store_return_value and
12534 use_struct_convention.
12535
1a901d3f
EZ
125362004-01-03 Eli Zaretskii <eliz@elta.co.il>
12537
12538 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12539 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12540 gdb/config/alpha/xm-alphaosf.h,
12541 gdb/config/powerpc/tm-ppcle-eabi.h,
12542 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12543 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12544 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12545 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12546 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12547 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12548 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12549 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12550 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12551 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12552 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12553 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12554 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12555 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12556 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12557 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12558 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12559 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12560 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12561 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12562 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12563 Remove lines for .cvsignore files.
12564
ef52e463
JB
125652004-01-03 J. Brobecker <brobecker@gnat.com>
12566
12567 * infrun.c: Back out the previous change.
12568
cb1bf9dc
MK
125692004-01-03 Mark Kettenis <kettenis@gnu.org>
12570
f0424ef6
MK
12571 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12572 sparc-*-sunos4* to the list of REMOVED configurations.
12573
cb1bf9dc
MK
12574 * configure.tgt: Add back sparc-*-vxworks*.
12575 * remote-vxsparc.c: Remove all includes except for "defs.h",
12576 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12577 Include "sparc-tdep.h".
12578 (SPARC_R_G1): New define.
12579 (vxsparc_gregset): New variable.
12580 (ext_format_sparc): Remove extern declaration.
12581 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12582 sparc32_supply_fpregset.
12583 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12584 sparc_collect_rwindow and sparc32_collect_fpregset.
12585 * config/sparc/tm-vxworks.h: New file, based on recently removed
12586 tm-vxsparc.h.
12587 * config/sparc/vxworks.mt: New file, based on recently removed
12588 vxworks.mt.
fe61caab 12589
5e938f9f
JB
125902004-01-03 J. Brobecker <brobecker@gnat.com>
12591
12592 * infrun.c (handle_step_into_function): New function.
12593 (handle_inferior_event): Extract out some code into the new
12594 function above.
12595
386c036b
MK
125962004-01-02 Mark Kettenis <kettenis@gnu.org>
12597
12598 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12599 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12600 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12601 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12602 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12603 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12604 (sparc_nat_h): New variable.
12605 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12606 (tm-sun4os4.h): Remove dependency.
12607 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12608 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12609 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12610 sparc-tdep.o): Update dependencies.
12611 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12612 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12613 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12614 dependencies.
12615 * configure.host: Remove existing sparc-*-lynxos*,
12616 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12617 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12618 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12619 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12620 triplets.
12621 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12622 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12623 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12624 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12625 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12626 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12627 sparc64-*-solaris2* and sparc64-*-* triplets.
12628 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12629 "symtab.h" and "objfiles.h".
12630 (BIAS): Remove define.
12631 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12632 (X_DISP19): Remove macros.
12633 (sparc_fetch_instruction): Remove function.
12634 (struct gdbarch_tdep): Remove definition.
12635 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12636 (sparc_breakpoint_from_pc): Remove function.
12637 (struct sparc64_frame_cache): Remove definition.
12638 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12639 sparc64_unwind_pc): Remove functions.
12640 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12641 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12642 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12643 (sparc64_frame_cache): Change return type to `struct
12644 sparc_frame_cache *'. Simply call sparc_frame_cache.
12645 (sparc64_frame_this_id, sparc64_frame_prev_register,
12646 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12647 instead of `struct sparc64_frame_cache.
12648 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12649 sparc_analyze_control_transfer, sparc_software_single_step,
12650 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12651 _initialize_sparc64_tdep): Remove functions.
12652 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12653 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12654 macros.
12655 (sparc64_supply_gregset, sparc64_collect_gregset,
12656 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12657 (sparc64_init_abi): New function.
12658 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12659 inclusion guard. Include "sparc-tdep.h".
12660 (BIAS): Define.
12661 (r_tstate_offset, r_fprs_offset): New defines.
12662 (enum sparc_regnum): Remove defenition.
12663 (enum sparc64_regnum): Reformat.
12664 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12665 (sparc64_init_abi, sparc64_supply_gregset,
12666 sparc64_collect_gregset, sparc64_supply_fpregset,
12667 sparc64_collect_fpregset): New prototypes.
12668 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12669 Add extern declarations.
12670 (sparc64_sol2_init_abi): New prototype.
12671 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12672 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12673 prototypes.
12674 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12675 "sparnbsd-nat.h".
12676 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12677 functions.
12678 (_initialize_sparc64fbsd_nat): Remove initialization of
12679 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12680 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12681 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12682 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12683 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12684 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12685 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12686 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12687 (sparc64fbsd_r_y_offset): Remove variables.
12688 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12689 Make static and const.
12690 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12691 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12692 functions.
12693 (sparc64fbsd_gregset): New variable.
12694 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12695 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12696 and sparc64_supply_fpregset.
12697 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12698 (sparc64fbsd_sigtramp_frame_this_id)
12699 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12700 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12701 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12702 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12703 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12704 * sparcnbsd-tdep.c: Update copyright year. Include
12705 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12706 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12707 "value.h" and "sparcnbsd-tdep.h".
12708 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12709 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12710 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12711 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12712 defines.
12713 (sparcnbsd_gregset): New variable.
12714 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12715 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12716 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12717 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12718 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12719 variables.
12720 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12721 (sparc32nbsd_sigcontext_frame_this_id)
12722 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12723 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12724 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12725 (sparcnbsd_get_longjmp_target_32,
12726 sparcnbsd_get_longjmp_target_64): Remove functions.
12727 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12728 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12729 sparcnbsd_init_elf): Remove.
12730 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12731 (sparcnbsd_elf_init_abi): New functions.
12732 (_initialize_sparcnbsd_tdep): New prototype.
12733 (_initialize_sparnbsd_tdep): Update.
12734 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12735 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12736 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12737 * config/sparc/linux.mh: Update comment.
12738 (XM_FILE, HOST_IPC): Remove variables.
12739 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12740 sparc-linux-nat.o.
12741 * config/sparc/linux.mt: Update comment.
12742 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12743 * config/sparc/nbsd.mt: Reformat.
12744 * config/sparc/nbsd64.mh: Update comment.
12745 (NATDEPFILES): Add sparc-nat.o.
12746 * config/sparc/nbsd64.mt: Update comment.
12747 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12748 (TM_FILE): Set to tm-nbsd.h.
12749 * config/sparc/nbsdelf.mh: Update comment.
12750 (NATDEPFILES): Add sparc-nat.o.
12751 (XM_FILE): Delete.
12752 * config/sparc/nbsdaout.mh: Update comment.
12753 (NATDEPFILES): Add sparc-nat.o
12754 (XM_FILE): Delete.
12755 * config/sparc/nm-linux.h: Update copyright year. Don't include
12756 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12757 inclusion.
12758 (KERNEL_U_SIZE): Remove define.
12759 (kernel_u_size): Remove prototype.
12760 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12761 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12762 "regcache.h".
12763 (CHILD_PREPARE_TO_STORE): Remove define.
12764 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12765 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12766 sparcnbsd-nat.c: Rewrite files.
12767 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12768 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12769 sparcnbsd-tdep.h: Remove files.
12770 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12771 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12772 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12773 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12774 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12775 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12776 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12777 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12778 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12779 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12780 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12781 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12782 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12783 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12784 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12785 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12786 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12787 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12788 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12789
ee84457a
AC
127902004-01-02 Andrew Cagney <cagney@redhat.com>
12791
12792 From 2003-12-18 Kazuhiro Inaoka:
12793 * configure.host: Add m32r-linux target.
12794
0bc2134e
MC
127952004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12796
12797 * top.c (print_gdb_version): Update year to 2004.
12798
89a72f9c
MM
127992004-01-02 Mark Mitchell <mark@codesourcery.com>
12800
12801 * MAINTAINERS: Add myself to the write-after-approval category.
12802
86b013ed
DJ
128032004-01-02 Daniel Jacobowitz <drow@mvista.com>
12804
12805 From Bernardo Innocenti <bernie@develer.com>:
12806 * configure.tgt: Add uClinux target.
12807
e42c9534
AC
128082004-01-02 Andrew Cagney <cagney@redhat.com>
12809
12810 * utils.c (do_my_cleanups): Make static, add forward declaration.
12811 * defs.h (do_my_cleanups): Delete declaration.
12812
162467d3
EZ
128132004-01-02 Eli Zaretskii <eliz@elta.co.il>
12814
12815 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12816 bfd/ChangeLog-0203.
12817
78434e59
MK
128182004-01-02 Mark Kettenis <kettenis@gnu.org>
12819
12820 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12821 in <machine/reg.h>.
12822 * configure, config.in: Regenerate.
12823
48efe704
AC
12824For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12825tui/ChangeLog-1998-2003.
c906108c
SS
12826\f
12827Local Variables:
12828mode: change-log
12829left-margin: 8
12830fill-column: 74
12831version-control: never
12832End:
This page took 1.15668 seconds and 4 git commands to generate.