2004-10-08 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c8e73a31
AC
12004-10-08 Andrew Cagney <cagney@gnu.org>
2
3 * target.h (struct target_ops): Rename to_xfer_memory to
4 deprecated_xfer_memory.
5 * target.c: Update.
6 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
7 * wince.c: Update.
8 * win32-nat.c: Update.
9 * v850ice.c: Update.
10 * uw-thread.c: Update.
11 * thread-db.c: Update.
12 * sol-thread.c: Update.
13 * remote.c: Update.
14 * remote-vx.c: Update.
15 * remote-st.c: Update.
16 * remote-sim.c: Update.
17 * remote-sds.c: Update.
18 * remote-rdp.c: Update.
19 * remote-rdi.c: Update.
20 * remote-mips.c: Update.
21 * remote-m32r-sdi.c: Update.
22 * remote-e7000.c: Update.
23 * procfs.c: Update.
24 * ppc-bdm.c: Update.
25 * nto-procfs.c: Update.
26 * monitor.c: Update.
27 * linux-nat.c: Update.
28 * inftarg.c: Update.
29 * hpux-thread.c: Update.
30 * go32-nat.c: Update.
31 * gnu-nat.c: Update.
32 * exec.c: Update.
33 * corelow.c: Update.
34 * bsd-kvm.c: Update.
35 * aix-thread.c: Update.
36
aa869812
AC
372004-10-08 Andrew Cagney <cagney@gnu.org>
38
39 * target.c (debug_target): Move to near start of file.
40 (target_stopped_data_address_p): Re-org logic, add casts.
41
8dcef9cf
MK
422004-10-02 Mark Kettenis <kettenis@gnu.org>
43
44 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
45 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
46 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
47 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
48 New defines.
49
4aa7a7f5
JJ
502004-10-08 Jeff Johnston <jjohnstn@redhat.com>
51
52 * target.h (to_stopped_data_address): Change prototype to
53 take a CORE_ADDR pointer and return an int.
54 * target.c (update_current_target): Change to_stopped_data_address
55 to match new prototype.
56 (debug_to_stopped_data_address): Change appropriately.
57 * breakpoint.c (bpstat_stop_status): Change call to
58 target_stopped_data_address to use new prototype.
59 * frv-tdep.c (frv_have_stopped_data_address): New function.
60 (frv_stopped_data_address): Change to new prototype and
61 functionality.
62 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
63 prototype and functionality.
64 (ia64_stopped_by_watchpoint): New function.
65 * i386-nat.c (i386_stopped_data_address): Change to new
66 prototype and functionality.
67 (i386_stopped_by_watchpoint): New function.
68 * remote.c (remote_stopped_data_address): Change to new prototype
69 and functionality.
70 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
71 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
72 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
73 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
74 new i386_stopped_by_watchpoint function.
75 (i386_stopped_by_watchpoint): New prototype.
76 (i386_stoppped_data_address): Change to new prototype.
77 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
78 new ia64_stopped_by_watchpoint function.
79 (ia64_stopped_by_watchpoint): New prototype.
80 (ia64_stopped_data_address): Ditto.
81
61ee279c
PH
822004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
83
84 * ada-typeprint.c (ada_print_type): Use int_string for printing
85 modulus of modular type.
86 * ada-lang.h (ada_modulus): Change return type to unsigned.
87 * ada-lang.c (ada_language_arch_info): Correct type of
88 string_char_type.
89 (ada_modulus): Return unsigned result.
90 (ada_lookup_symbol): Remove user disambiguation and modify comment
91 accordingly.
92
932004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
94
95 Committed by Paul Hilfinger.
96 * ada-lang.c (decode_packed_array): On big-endian targets,
97 left-justify the value if it comes with a modular type.
98
992004-10-08 Joel Brobecker <brobecker@gnat.com>
100
101 Committed by Paul Hilfinger.
102 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
103 (is_name_suffix): Add support for "___JM" suffixes.
104 (ada_check_typedef): Renames ada_completed_type.
105 Update all users of CHECK_TYPEDEF, check_typedef, and
106 ada_complete_type to call ada_check_typedef.
107 * ada-typeprint.c: Likewise.
108 * ada-valprint.c: Likewise.
109
b6c25a56
CV
1102004-10-08 Corinna Vinschen <vinschen@redhat.com>
111
112 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
113
83ca6a46
NR
1142004-10-08 Nick Roberts <nickrob@snap.net.nz>
115
116 * MAINTAINERS: Update e-mail address.
117
1fd8cd20
DJ
1182004-10-07 Daniel Jacobowitz <dan@debian.org>
119
120 From Maciej W. Rozycki <macro@mips.com>:
121 * mips-tdep.c (mips32_next_pc): Check the register's contents,
122 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
123
cea15572
KI
1242004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
125
126 * m32r-tdep.c (decode_prologue): Support functions written
127 in assembler language. Recognize trap instructions as the
128 end of prologue.
129 (m32r_frame_unwind_cache): Ditto.
130 (m32r_skip_prologue): Extend search limit. Quit analyzing
131 prologue if pc's location is not readable.
132
23485554
PH
1332004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
134
135 * Makefile.in (.l.c): Do conversions of names of alloc and free
136 functions that are done for .y.c files, plus special one
137 for yy_flex_realloc. Also, correct missing-file tests here.
138 * ada-lex.l (malloc, free): Remove macros.
139 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
140 xrealloc.
141 (ada_flex_use): Dummy definition to remove warnings about unused
142 functions.
143 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
144 to suppress warning.
145
c0409442
CV
1462004-10-06 Corinna Vinschen <vinschen@redhat.com>
147
148 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
149 RETURN_VALUE.
150 (sh_return_value_fpu): Ditto for CPUs with FPU.
151 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
152 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
153 Install sh_return_value_nofpu resp. sh_return_value_fpu as
154 RETURN_VALUE functions.
155
9bed62d7
CV
1562004-10-06 Corinna Vinschen <vinschen@redhat.com>
157
158 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
159 (sh_pseudo_register_write): Ditto.
160
03131d99
CV
1612004-10-06 Corinna Vinschen <vinschen@redhat.com>
162
163 * sh-tdep.c (IS_MACL_STS): New define.
164 (IS_MOVI20): Ditto.
165 (IS_MACL_LDS): Ditto.
166 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
167 instructions in prologue.
168 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
169 instructions in epilogue.
170
da962468
CV
1712004-10-06 Corinna Vinschen <vinschen@redhat.com>
172
173 * sh-tdep.c (SH_NUM_REGS): Define as 67.
174 (sh_sh_register_name): Add eight empty register names.
175 (sh_sh3_register_name): Ditto.
176 (sh_sh3e_register_name): Ditto.
177 (sh_sh2e_register_name): Ditto.
178 (sh_sh2a_register_name): New function, defining SH2A register set.
179 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
180 in nofpu case.
181 (sh_sh_dsp_register_name): Add eight empty register names.
182 (sh_sh3_dsp_register_name): Ditto.
183 (sh_sh4_register_name): Ditto.
184 (sh_sh4_nofpu_register_name): Ditto.
185 (sh_sh4al_dsp_register_name): Ditto.
186 (sh2a_show_regs): New function.
187 (sh2a_nofpu_show_regs): New function.
188 (sh_sh2a_register_type): New function.
189 (do_bank_register_info): New function.
190 (sh_print_pseudo_register): Call do_bank_register_info.
191 Call sh_print_pseudo_register for valid "bank" register.
192 (sh_sh2a_register_sim_regno): New function.
193 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
194 Increment pseudo register count by one for all sh variants with
195 pseudo registers to accomodate pseudo bank register.
196 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
197 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
198 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
199 Increment pseudo register numbers.
200
1326e61b
CV
2012004-10-06 Corinna Vinschen <vinschen@redhat.com>
202
203 * dwarf2read.c (read_subroutine_type): Call make_function_type
204 instead of lookup_function_type.
205
146c42e3
JB
2062004-10-05 Jim Blandy <jimb@redhat.com>
207
208 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
209 (Previous change missed some uses.)
210
1df84f13
AC
2112004-10-05 Andrew Cagney <cagney@gnu.org>
212
213 * target.h (deprecated_child_ops): Rename child_ops.
214 * wince.c: Update copyright. Rename child_ops.
215 * win32-nat.c: Rename child_ops.
216 * target.c: Rename child_ops.
217 * rs6000-nat.c: Rename child_ops.
218 * linux-nat.c: Rename child_ops.
219 * infttrace.c: Rename child_ops.
220 * inftarg.c: Rename child_ops.
221 * infptrace.c: Rename child_ops.
222 * hppah-nat.c: Update copyright. Rename child_ops.
223 * hpux-thread.c: Update copyright. Rename child_ops.
224
21e3b9b9
DJ
2252004-10-05 Daniel Jacobowitz <dan@debian.org>
226
227 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
228
de83afe7
AC
2292004-10-05 Andrew Cagney <cagney@gnu.org>
230
231 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
232
10b3939b
DJ
2332004-10-05 Daniel Jacobowitz <dan@debian.org>
234
235 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
236 (die_ref_table): Remove.
237 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
238 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
239 the usage of this type.
240 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
241 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
242 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
243 (dwarf2_create_include_psymtab): Update comment.
244 (find_partial_die): Remove third argument. Remove unreachable call
245 to error ().
246 (dwarf2_find_containing_comp_unit): Update comments. Change one
247 assertion to an error. Remove an unreachable error.
248 (dwarf2_find_comp_unit): Update comments.
249 (type_at_offset): Remove dead code.
250 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
251 (store_in_ref_table): Add CU argument.
252 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
253 inter-compilation-unit references.
254 (load_full_comp_unit, process_full_comp_unit): New functions, based
255 on psymtab_to_symtab_1.
256 (psymtab_to_symtab_1): Use them.
257 (dwarf2_add_dependence): New function.
258 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
259 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
260 (partial_die_parent_scope, guess_structure_name): Update for changes
261 to find_partial_die.
262 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
263 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
264 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
265 (read_die_and_children): Update call to store_in_ref_table.
266 (do_free_die_list_cleanup): Remove.
267 (fixup_partial_die): Update for changes to find_partial_die.
268 (read_full_die): Handle queueing absolute references.
269 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
270 (dwarf2_attr, die_specification, die_type)
271 (die_containing_type, dwarf2_extension): Update calls to
272 follow_die_ref.
273 (dump_die): Update DW_FORM_ref* handling.
274 (dwarf2_get_ref_die_offset): Likewise.
275 (free_one_comp_unit): Release the dies list.
276 (dwarf2_mark_helper): New function.
277 (dwarf2_mark): Use it.
278
998bdd68
MK
2792004-10-05 Mark Kettenis <kettenis@jive.nl>
280
281 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
282 when writing to memory.
283
14588880
KI
2842004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
285
286 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
287 (m32r_extract_struct_value_address): Delete function.
288 (m32r_return_value): New function.
289 (m32r_gdbarch_init): Instead of store_return_value,
290 extract_return_value, deprecated_extract_struct_value_address
291 and deprecated_use_struct_convention, set return_value.
292
dd5e6932
DJ
2932004-10-03 Daniel Jacobowitz <dan@debian.org>
294
295 * dwarf2read.c (read_subrange_type): Add comment for variable
296 sized arrays.
297
7dc1ef8d
PH
2982004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
299
300 * Makefile.in (.l.c): Modify rule for compatibility with recent
301 versions of flex, and remove most command-line options.
302 * ada-lex.l: Add %options line in place of -I -i and -s command-line
303 options.
304
1f8173e6
PH
3052004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
306
307 Turn on initial Ada support (mainly expression evaluation).
308
309 * Makefile.in (SFILES): Remove ada-tasks.c.
310 (HFILES_NO_SRCDIR): Add ada-lang.h.
311 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
312 (YYOBJ): Add ada-exp.o.
313 (rule .l.c): Generalize to not mention ada.
314 * symtab.c: Include ada-lang.h.
315 (symbol_natural_name, symbol_demangled_name)
316 (symbol_search_name): Add Ada case.
317
cb85a953
AC
3182004-10-01 Andrew Cagney <cagney@gnu.org>
319
3f3db248
AC
320 * Makefile.in (COMMON_OBS): Add inf-child.o.
321 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
322 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
323 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
324 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
325 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
326 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
327 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
328 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
329 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
330 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
331 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
332 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
333 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
334
cb85a953
AC
335 * target.c (xfer_using_stratum): Change return type to LONGEST.
336 On each iteration offset, readbuf and writebuf.
337 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
338 partial_length, and read/modify/write predicate, update comments.
339 Pass buffer.word to ptrace write.
340
963a6417
PH
3412004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
342
343 * symfile.c (init_filename_language_table): Add extensions for
344 Ada.
345 * defs.h (enum language): Add language_ada.
346 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
347 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
348 (add_symbols_from_enclosing_procs): Make a no-op for now.
349 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
350 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
351 (find_line_in_linetable, find_next_line_in_linetable)
352 (read_all_symtabs, is_plausible_func_for_line)
353 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
354 (is_runtime_sym_defined, check_size): Remove declaration.
355 (function_name_from_pc, ada_translate_error_message)
356 (ada_lookup_minimal_symbol): Remove definition.
357 (ada_add_block_symbols): Remove useless label.
358 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
359 useless declaration.
360 (ada_is_exception_sym): Likewise.
361
9b32d526
KI
3622004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
363
364 Add m32r-linux support.
365 * configure.tgt: Add m32r*-*-linux*.
366 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
367 and m32r-linux-tdep.c.
368 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
369 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
370 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
371 m32r-linux-tdep.c.
372 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
373 config/m32r/linux.mh, config/m32r/linux.mt,
374 config/m32r/nm-linux.h: New files.
375
2de118d3
JB
3762004-09-30 Joel Brobecker <brobecker@gnat.com>
377
378 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
379 (mips32_fetch_instruction): Remove, unused.
380
a9fe69d1
JB
3812004-09-30 Joel Brobecker <brobecker@gnat.com>
382
383 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
384 conditions that will always be true.
385
bc8ffc12
MK
3862004-09-30 Mark Kettenis <kettenis@gnu.org>
387
ba0cd111
MK
388 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
389 (vaxbsd_fetch_inferior_registers): Rename from
390 fetch_inferior_registers. Make static.
391 (vaxbsd_store_inferior_registers): Rename from
392 store_inferior_registers. Make static.
393 (_initialize_vaxbsd_nat): Construct and add target vector.
394 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
395 inftarg.o. Add inf-child.o and inf-ptrace.o.
396 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
397 inftarg.o. Add inf-child.o and inf-ptrace.o.
398 (NAT_FILE): Remove.
399 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
400 inftarg.o. Add inf-child.o and inf-ptrace.o.
401 (NAT_FILE): Remove.
402 * Makefile.in (vaxbsd-nat.o): Update dependencies.
403
bc8ffc12
MK
404 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
405 (m88kbsd_fetch_inferior_registers): Rename from
406 fetch_inferior_registers. Make static.
407 (m88kbsd_store_inferior_registers): Rename from
408 store_inferior_registers. Make static.
409 (_initialize_m88kbsd_nat): New prototype and function.
410 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
411 inftarg.o. Add inf-child.o and inf-ptrace.o.
412 (NAT_FILE): Remove.
413 * Makefile.in (m88kbsd-nat.o): Update dependencies.
414
27394598
AC
4152004-09-30 Andrew Cagney <cagney@gnu.org>
416
417 * target.c (target_xfer_partial): New function.
418 (target_read_memory_partial, target_write_memory_partial)
419 (default_xfer_partial, target_read_partial, target_write_partial)
420 (xfer_using_stratum): Use.
421 (debug_to_xfer_partial): Delete function.
422 (setup_target_debug): Do not override to_xfer_partial.
423
74a4fe32
MK
4242004-09-30 Mark Kettenis <kettenis@chello.nl>
425
426 * fork-child.c: Update copyright year. Fix coding style.
427
982526a1
MK
4282004-09-29 Mark Kettenis <kettenis@gnu.org>
429
430 * defs.h (msavestring, mstrsave): Remove prototypes.
431 * utils.c (msavestring, mstrsave): Remove functions.
432 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
433 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
434 of mstrsave.
435 * source.c (find_and_open_source): Use xstrdup instead of
436 mstrsave.
437
b8eb5af0
AC
4382004-09-30 Andrew Cagney <cagney@gnu.org>
439
0779438d
AC
440 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
441 (inf_ptrace_xfer_memory): Delete.
442 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
443 (target_read_memory, target_write_memory): Use xfer_using_stratum
444 when target_xfer_partial_p.
445 (debug_target): Move to start of file.
446 (target_read_memory_partial, target_write_memory_partial): Use
447 to_xfer_partial when target_xfer_partial_p.
448
f929a579
AC
449 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
450 inf_ptrace_xfer_memory with equivalent code.
451 * inftarg.c (child_xfer_partial): When performing a write, pass
452 writebuf to child_xfer_memory.
453
b8eb5af0
AC
454 * target.c (target_read_string): Use target_read_memory instead of
455 target_xfer_memory.
456
ee21b650
AC
4572004-09-29 Andrew Cagney <cagney@gnu.org>
458
d3e05d0d
AC
459 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
460 the address of status.
461
ee21b650
AC
462 * infptrace.c (ptrace_wait): Mention problem with HPUX.
463 (kill_inferior): Inline ptrace_wait call.
464 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
465 * inftarg.c (child_wait): Inline ptrace_wait call.
466
a182eed6
AC
467 * target.h (struct target_ops): Delete field to_post_wait.
468 (target_post_wait): Delete macro.
469 (child_post_wait): Delete declaration.
470 * target.c (update_current_target, update_current_target)
471 (debug_to_post_wait, setup_target_debug): Delete functions and
472 references.
473 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
474 * inftarg.c (child_post_wait): Delete.
475 (init_child_ops): Do not set to_post_wait.
476 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
477 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
478 * inf-child.c (inf_child_post_wait): Delete.
479 (inf_child_target): Do not set to_post_wait.
480 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
481 (inf_ptrace_target): Do not set to_post_wait.
482
ba0c540b
AC
483 * wince.c (child_ops): Delete.
484 * win32-nat.c (child_ops): Delete.
485
81977402
AC
486 * inftarg.c (inftarg_set_find_memory_regions)
487 (inftarg_set_make_corefile_notes): Delete functions.
488 (_initialize_linux_nat): Inline calls.
489
5ac10fd1
AC
490 * target.h (child_ops): Declare.
491 * inftarg.c (child_ops): Move from here ...
492 * target.c (child_ops): ... to here.
493 * wince.c (child_ops): Delete extern declaration.
494 * win32-nat.c (child_ops): Delete extern declaration.
495 * linux-nat.c (child_ops): Delete extern declaration.
496 * hpux-thread.c (child_ops): Delete extern declaration.
497
663408c2 4982004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
499
500 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
501
0dad8a66
MK
5022004-09-28 Mark Kettenis <kettenis@gnu.org>
503
504 * configure.in: Only set host_makefile_frag when building a native
505 debugger.
506 * configure: Regenerate.
e8d74ed3
MK
507
508 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
509 for OpenBSD ELF.
510
dba24537
AC
5112004-09-28 Andrew Cagney <cagney@gnu.org>
512
e979516b
AC
513 Problem identified by Paul Hilfinger.
514 * Makefile.in (ada_lex_c): Define.
515 (ada-lex.o): Delete rule.
516
dba24537
AC
517 * linux-proc.c: Delete file.
518 * Makefile.in: Update.
519 * config/sparc/linux64.mh (NATDEPFILES):
520 * config/sparc/linux.mh (NATDEPFILES): Update.
521 * config/s390/s390.mh (NATDEPFILES): Update.
522 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
523 * config/powerpc/linux.mh (NATDEPFILES): Update.
524 * config/pa/linux.mh (NATDEPFILES): Update.
525 * config/mips/linux.mh (NATDEPFILES): Update.
526 * config/m68k/linux.mh (NATDEPFILES): Update.
527 * config/ia64/linux.mh (NATDEPFILES): Update.
528 * config/i386/linux64.mh (NATDEPFILES): Update.
529 * config/i386/linux.mh (NATDEPFILES): Update.
530 * config/arm/linux.mh (NATDEPFILES): Update.
531 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
532 * linux-nat.c: Update copyright. Include <sys/param.h>,
533 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
534 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
535 (O_LARGEFILE): Possibly define.
536 (_initialize_linux_nat, linux_proc_pending_signals)
537 (add_line_to_sigset, linux_proc_xfer_memory)
538 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
539 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
540 (struct linux_corefile_thread_data)
541 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
542 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
543
d6b0e80f
AC
5442004-09-16 Andrew Cagney <cagney@gnu.org>
545
546 * lin-lwp.c: Delete file.
547 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
548 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
549 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
550 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
551 (linux_nat_attach, detach_callback, linux_nat_detach)
552 (resume_callback, resume_clear_callback, linux_nat_resume)
553 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
554 (stop_wait_callback, linux_nat_has_pending, flush_callback)
555 (status_callback, running_callback, count_events_callback)
556 (select_singlestep_lwp_callback, select_event_lwp_callback)
557 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
558 (child_wait, stop_and_resume_callback, linux_nat_wait)
559 (kill_callback, kill_wait_callback, linux_nat_kill)
560 (linux_nat_create_inferior, linux_nat_mourn_inferior)
561 (linux_nat_xfer_memory, linux_nat_thread_alive)
562 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
563 (_initialize_linux_nat): New functions.
564 * Makefile.in: Update all dependencies.
565 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
566 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
567 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
568 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
569 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
570 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
571 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
572 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
573 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
574 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
575 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
576 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
577 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
578
5a174d79
MK
5792004-09-27 Mark Kettenis <kettenis@gnu.org>
580
2f604c28
MK
581 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
582 config/i386/obsd64.mh (NAT_FILE): Remove variable.
583
5a174d79
MK
584 * configure.in: Don't comment out NATDEPFILES in the generated
585 Makefile if NAT_FILE is unset.
586 * configure: Regenerate.
587
b2ed1746
AC
5882004-09-27 Andrew Cagney <cagney@gnu.org>
589
44cbf7b5
AC
590 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
591 (insert_step_resume_breakpoint): Delete.
592 (insert_step_resume_breakpoint_at_frame): New function.
593 (insert_step_resume_breakpoint_at_sal): New function.
594 (handle_inferior_event, step_into_function)
595 (insert_step_resume_breakpoint): Simplify by using same.
596
b2ed1746
AC
597 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
598
3691b3be
MK
5992004-09-26 Mark Kettenis <kettenis@gnu.org>
600
36f391e8
MK
601 * fbsd-proc.c: Remove file.
602 * Makefile.in (fbsd-proc.o): Remove dependency.
603
771e236c
MK
604 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
605 code together.
606
3691b3be
MK
607 * config/i386/nm-fbsd64.h: Remove file.
608 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
609
6a5c78a3
MK
6102004-09-26 Mark Kettenis <kettenis@gnu.org>
611
612 * amd64-nat.h: Update copyright year.
613 (amd64bsd_target): New prototype.
614 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
615 (amd64bsd_target): New function.
616 (amd64bsd_fetch_inferior_registers): Rename from
617 fetch_inferior_registers. Make static.
618 (amd64bsd_store_inferior_registers): Rename from
619 store_inferior_registers. Make static.
620 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
621 (_initialize_amd64fbsd_nat): Construct and add target vector.
622 * amd64nbsd-nat.o: Include "target.h".
623 (_initialize_amd64nbsd_nat): Construct and add target vector.
624 * amd64obsd-nat.c: Include "target.h".
625 (_initialize_amd64obsd_nat): Construct and add target vector.
626 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
627 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
628 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
629 fbsd-nat.o.
630 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
631 Remove infptrace.o and inftarg.o. Add inf-child.o and
632 inf-ptrace.o.
633 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
634 (amd64obsd-nat.o): Update dependencies.
635
27acbe61
MK
6362004-09-25 Mark Kettenis <kettenis@gnu.org>
637
509a5e7d
MK
638 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
639 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
640 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
641 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
642 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
643
6e1e94ea
MK
644 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
645 Inline attach call.
646 (inf_ptrace_detach): Inline detach call.
647
8b9cf735
MK
648 * configure.in: Check for waddstr instead of mvwaddstr when
649 searching for curses library. Check for wborder.
650 * configure, config.in: Regenerate.
651 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
652 available.
653
27acbe61
MK
654 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
655
b96ec7ac
AC
6562004-09-24 Robert Picco <Robert.Picco@hp.com>
657
658 Committed by Andrew Cagney.
659 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
660 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
661 configuration.
662 (fetch_register_using_p): Implement 'p' packet. Based on code by
663 Fernando Nasser.
664 (remote_fetch_registers): Call fetch_register_using_p.
665 (init_all_packet_configs, show_remote_cmd)
666 (_initialize_remote): Add p-packet.
667
62ece330
MK
6682004-09-24 Mark Kettenis <kettenis@gnu.org>
669
670 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
671 instead of call_ptrace. Call wait directly instead of
672 ptrace_wait.
673 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
674 (inf_ptrace_wait): Inline ptrace_wait call.
675
00937274
PH
6762004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
677
678 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
679 rolled back instead.
680
3f2c7a45
PH
6812004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
682
683 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
684 the new argument order.
685
b6fcb393
CV
6862004-09-23 Corinna Vinschen <vinschen@redhat.com>
687
688 * MAINTAINERS: Remove "broken" from XStormy16 entry.
689 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
690 (struct gdbarch_tdep): Remove.
691 (struct xstormy16_frame_cache): New frame cache structure.
692 (xstormy16_register_byte, xstormy16_register_raw_size)
693 (xstormy16_reg_virtual_type, xstormy16_register_type)
694 (xstormy16_push_arguments, xstormy16_push_return_address)
695 (xstormy16_pop_frame, xstormy16_store_struct_return)
696 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
697 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
698 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
699 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
700 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
701 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
702 (xstormy16_use_struct_convention): Drop gcc_p parameter.
703 (xstormy16_extract_return_value, xstormy16_store_return_value):
704 Regcachify. Drop useless struct convention handling.
705 (xstormy16_register_type, xstormy16_return_value)
706 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
707 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
708 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
709 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
710 (xstormy16_unwind_sp, xstormy16_unwind_pc)
711 (xstormy16_unwind_dummy_id) : New functions.
712 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
713 of xstormy16_scan_prologue.
714 (xstormy16_frame_unwind): New frame_unwind structure.
715 (xstormy16_frame_base): New frame_base structure.
716 (xstormy16_gdbarch_init): Accomodate all of the above changes.
717 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
718
1285b746
MK
7192004-09-22 Mark Kettenis <kettenis@gnu.org>
720
721 * language.c (language_gdbarch_post_init): Fix off-by one error.
722
1c379e20
DJ
7232004-09-21 Daniel Jacobowitz <dan@debian.org>
724
725 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
726 (struct dwarf2_offset_and_type): New.
727 (set_die_type, reset_die_and_siblings_types, get_die_type)
728 (offset_and_type_hash, offset_and_type_eq): New functions.
729 (read_structure_type, read_enumeration_type, read_array_type)
730 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
731 (read_tag_reference_type, read_tag_const_type)
732 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
733 (read_typedef, read_base_type, read_subrange_type): Use
734 set_die_type.
735
ae038cb0
DJ
7362004-09-20 Daniel Jacobowitz <dan@debian.org>
737
738 * Makefile.in (dwarf2read.o): Update dependencies.
739 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
740 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
741 and read_in_chain.
742 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
743 mark, and has_form_ref_addr.
744 (struct dwarf2_per_cu_data): New.
745 (dwarf2_max_cache_age): New.
746 (dwarf2_build_psymtabs_hard): Free cached compilation units
747 after loading. Create and manage the list of compilation units.
748 Remove unnecessary NULL initialization. Fix indentation.
749 (psymtab_to_symtab_1): Initialize all of CU.
750 (dwarf2_read_abbrevs): Set has_form_ref_addr.
751 (find_partial_die): Use dwarf2_find_containing_comp_unit
752 and load_comp_unit.
753 (free_stack_comp_unit): Update comments. Clear the per-cu
754 pointer. Handle aging.
755 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
756 (age_cached_comp_units, free_one_cached_comp_unit)
757 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
758 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
759 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
760 (show_dwarf2_cmd): New.
761 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
762 and "maint show dwarf2 max-cache-age".
763 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
764 externs.
765 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
766 global.
767
987504bb
JJ
7682004-09-20 Jeff Johnston <jjohnstn@redhat.com>
769
770 * dwarf2read.c (typename_concat): Change prototype to accept obstack
771 and dwarf2_cu struct pointer as arguments. Change function to use
772 obstack if provided and use dwarf2_cu to determine language-specific
773 separator.
774 (partial_die_parent_scope): Change comment to include java. Use
775 new version of typename_concat instead of obconcat.
776 (partial_die_full_name): Use typename_concat.
777 (read_namespace): Ditto.
778 (read_enumeration_type): Use typename_concat instead of obconcat.
779 (new_symbol): Ditto.
780 (add_partial_symbol): Enhance tests for C++ to also test for Java.
781 (guess_structure_name): Ditto.
782 (read_subroutine_type): Ditto.
783 (read_structure_type): Ditto.
784 (is_vtable_name): Add Java support.
785 (determine_class_name): Switch to new typename_concat call.
786 (determine_prefix): Switch to new typename_concat call.
787 * jv-exp.y (FuncStart): New pattern.
788 (MethodInvocation): Add support for simple function calls. Change
789 warning message for other forms of inferior call currently not
790 supported.
791 * valarith.c (value_subscript): Treat an array with upper-bound
792 of -1 as unknown size.
793
d9c8471e
DJ
7942004-09-20 Daniel Jacobowitz <dan@debian.org>
795
796 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
797 (lookup_partial_symtab): Use symtab_to_fullname.
798
d73f140a
JB
7992004-09-19 Jim Blandy <jimb@redhat.com>
800
801 * minsyms.c (lookup_minimal_symbol): Doc fix.
802
adbef1f0
AC
8032004-09-20 Andrew Cagney <cagney@gnu.org>
804
805 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
806 CHILD_RESUME.
807 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
808 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
809 KILL_INFERIOR.
810 * infptrace.c: Update.
811
d092d1a2
DJ
8122004-09-19 Daniel Jacobowitz <dan@debian.org>
813
814 * symtab.c (output_source_filename): Mark first argument as const.
815 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
816 for "info sources" output.
817
86d9e1d7
MK
8182004-09-20 Mark Kettenis <kettenis@gnu.org>
819
820 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
821 <machine/vmparam.h>.
822 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
823 (register_u_addr): Remove prototype.
824
9a6c8ef4
MK
8252004-09-19 Mark Kettenis <kettenis@gnu.org>
826
9692934b
MK
827 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
828 (i386bsd_fetch_inferior_registers): Rename from
829 fetch_inferior_registers. Make static.
830 (i386bsd_store_inferior_registers): Rename from
831 store_inferior_registers. Make static.
832 (i386bsd_target): New function.
833 * i386bsd-nat.h: New file.
834 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
835 "i386bsd-nat.h".
836 (i386fbsd_resume): Rename from child_resume. Make static.
837 (_initialize_i386fbsd_nat): Construct and add target vector.
838 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
839 (_initialize_i386nbsd_nat): Construct and add target vector.
840 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
841 Remove defines.
842 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
843 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
844 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
845 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
846 (LOADLIBES): New variable.
847 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
848 inf-ptrace.o. Remove inftarg.o.
849 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
850 inf-ptrace.o. Remove inftarg.o.
851 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
852 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
853 (LOADLIBES): New variable.
854 * Makefile.in (i386bsd_nat_h): New variable.
855 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
856 dependencies.
857
3510d1f2
MK
858 * sparc64nbsd-tdep.c: Include "objfiles.h".
859 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
860 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
861 svr4_lp64_fetch_link_map_offsets.
862 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
863 "nbsd-tdep.h".
864 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
865 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
866 svr4_lp64_fetch_link_map_offsets.
867 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
868 dependencies.
869
578c1c03
MK
870 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
871 * fbsd-nat.h: New file.
872 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
873 (fbsd_nat_h): New variable.
874 (fbsd-nat.o): New dependency.
875
7a7b73b7
MK
876 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
877 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
878
9a6c8ef4
MK
879 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
880 comment.
881
72d5681a
PH
8822004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
883
884 * ada-exp.y (type_int): New function to add layer of abstraction
885 around references to expression types.
886 (type_long): Ditto.
887 (type_long_long): Ditto.
888 (type_float): Ditto.
889 (type_double): Ditto.
890 (type_long_double): Ditto.
891 (type_char): Ditto.
892 (type_system_address): Ditto.
893 (simple_exp): Use type_* functions in place of builtin_*
894 variables.
895 (exp): Ditto.
896 (write_var_from_name): Ditto.
897 (write_object_renaming): Ditto.
898 * ada-lang.c (ada_create_fundamental_type): Remove redundant
899 declaration.
900 (build_ada_types): Remove, replacing with...
901 (ada_language_arch_info): New function to initialize primitive
902 type vector in language_arch_info.
903 (ada_array_length): Remove use of builtin_type_ada_int.
904 (value_pos_atr): Ditto.
905 (ada_evaluate_subexp): Ditto.
906 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
907 builtin_type_ada_long_long, builtin_type_ada_char,
908 builtin_type_ada_float, builtin_type_ada_double,
909 builtin_type_ada_long_double, builtin_type_ada_natural,
910 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
911 (ada_builtin_types): Remove.
912 (ada_language_defn): Remove entries for la_builtin_type_vector and
913 string_char_type and use ada_language_arch_info.
914 (_initialize_ada_language): Do type-vector initialization along
915 the lines of c-lang.c.
916 (ada_create_fundamental_type): Break up line.
917 (ada_dump_symtab): Remove unused function.
918 (enum ada_primitive_types): Define.
919 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
920 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
921 builtin_type_ada_float, builtin_type_ada_double,
922 builtin_type_ada_long_double, builtin_type_ada_natural,
923 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
924 * ada-lex.l: Use type_* functions in place of builtin_* variables.
925 (processInt): Ditto.
926 (processReal): Ditto.
927 (name_lookup): Ditto.
928 * ada-typeprint.c (print_range): Use builtin_type_int, not
929 builtin_type_ada_int.
930
4f0be353
MK
9312004-09-18 Mark Kettenis <kettenis@gnu.org>
932
30b0e2d8
MK
933 * i386-tdep.c (i386_register_name): Rename regno to regnum.
934
4f0be353
MK
935 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
936 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
937 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
938 * configure.in: Improve checks for curses library by checking for
939 mvwaddstr instead of initscr. Drop HP curses in favour of
940 standard curses on HP-UX.
941 * configure: Regenerated.
942
72d5681a 9432004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
944
945 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
946 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
947 Minor formatting changes.
948 (empty_array): Slight rewrite for formatting.
949 (emit_char,parse,ada_language_defn,build_ada_types,
950 ada_is_exception_sym, _initialize_ada_language): Move
951 definitions around.
952 (ada_dump_symtab): Remove unused definition.
953 (ada_maybe_exception_partial_symbol): Remove unused definition.
954
1c8c7407
AC
9552004-09-16 Andrew Cagney <cagney@gnu.org>
956
7681f339
AC
957 * inf-child.c: Include "gdb_string.h".
958 (inf_child_core_file_to_sym_file): Delete.
959 (inf_child_target): Set to_fetch_registers and to_store_registers.
960 * inf-ptrace.c: Include "gdb_string.h".
961 * Makefile.in: Update all dependencies.
962
1c8c7407
AC
963 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
964 problem.
965
65596487
JB
9662004-09-14 Joel Brobecker <brobecker@gnat.com>
967
968 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
969 call to heuristic_proc_desc. Remove code that became redundant
970 as a consequence.
971 (read_next_frame_reg): Remove special case for SP_REGNUM.
972 (set_reg_offset): Fix small typo.
973 (reset_saved_regs): New procedure.
974 (mips32_heuristic_proc_desc): No longer compute a fake
975 procedure descriptor. Compute the full frame cache instead.
976 Some minor comment reformatting.
977
95575b2e
AC
9782004-09-14 Andrew Cagney <cagney@gnu.org>
979
f200c492
AC
980 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
981 maintainer.
982
95575b2e
AC
983 * thread-db.c (thread_db_new_objfile): Assume that there is a
984 child process.
985
69657671
JB
9862004-09-13 Jim Blandy <jimb@redhat.com>
987
988 * valops.c (value_assign): Move 'buffer' to the enclosing block,
989 so that its storage isn't referenced after its lifetime ends.
990
6c4182dd
JB
991 * valops.c (value_assign): 'use_buffer' is initialized to zero,
992 and never assigned to. Delete it, and the 'if (use_buffer)'
993 clauses. Delete 'raw_buffer', since it is now unused.
994
ee31a58d
AC
9952004-09-13 Andrew Cagney <cagney@gnu.org>
996
2c0fc042
AC
997 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
998 * configure: Re-generate.
999 * nlm/Makefile.in (TAGS): Update.
1000 * Makefile.in (TAGS): Update.
1001 * config/vax/nbsd.mt (TM_FILE): Update.
1002 * config/sparc/vxworks.mt (TM_FILE): Update.
1003 * config/sparc/sol2.mt (TM_FILE): Update.
1004 * config/sparc/sol2-64.mt (TM_FILE): Update.
1005 * config/sparc/obsd64.mt (TM_FILE): Update.
1006 * config/sparc/obsd.mt (TM_FILE): Update.
1007 * config/sparc/nbsd64.mt (TM_FILE): Update.
1008 * config/sparc/nbsd.mt (TM_FILE): Update.
1009 * config/sparc/linux64.mt (TM_FILE): Update.
1010 * config/sparc/linux.mt (TM_FILE): Update.
1011 * config/sparc/fbsd.mt (TM_FILE): Update.
1012 * config/sh/wince.mt (TM_FILE): Update.
1013 * config/sh/nbsd.mt (TM_FILE): Update.
1014 * config/sh/linux.mt (TM_FILE): Update.
1015 * config/sh/embed.mt (TM_FILE): Update.
1016 * config/s390/s390.mt (TM_FILE): Update.
1017 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1018 * config/rs6000/rs6000.mt (TM_FILE): Update.
1019 * config/rs6000/aix4.mt (TM_FILE): Update.
1020 * config/powerpc/vxworks.mt (TM_FILE): Update.
1021 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1022 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1023 * config/powerpc/obsd.mt (TM_FILE): Update.
1024 * config/powerpc/nbsd.mt (TM_FILE): Update.
1025 * config/powerpc/linux.mt (TM_FILE): Update.
1026 * config/powerpc/aix.mt (TM_FILE): Update.
1027 * config/pa/obsd.mt (TM_FILE): Update.
1028 * config/pa/linux.mt (TM_FILE): Update.
1029 * config/pa/hppahpux.mt (TM_FILE): Update.
1030 * config/pa/hppa64.mt (TM_FILE): Update.
1031 * config/pa/hppa.mt (TM_FILE): Update.
1032 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1033 * config/mips/wince.mt (TM_FILE): Update.
1034 * config/mips/vxmips.mt (TM_FILE): Update.
1035 * config/mips/nbsd.mt (TM_FILE): Update.
1036 * config/mips/linux.mt (TM_FILE): Update.
1037 * config/mips/irix6.mt (TM_FILE): Update.
1038 * config/mips/irix5.mt (TM_FILE): Update.
1039 * config/mips/embed.mt (TM_FILE): Update.
1040 * config/m68k/vxworks68.mt (TM_FILE): Update.
1041 * config/m68k/st2000.mt (TM_FILE): Update.
1042 * config/m68k/os68k.mt (TM_FILE): Update.
1043 * config/m68k/obsd.mt (TM_FILE): Update.
1044 * config/m68k/nbsd.mt (TM_FILE): Update.
1045 * config/m68k/monitor.mt (TM_FILE): Update.
1046 * config/m68k/linux.mt (TM_FILE): Update.
1047 * config/m68k/cisco.mt (TM_FILE): Update.
1048 * config/ia64/linux.mt (TM_FILE): Update.
1049 * config/ia64/aix.mt (TM_FILE): Update.
1050 * config/ia64/ia64.mt (TM_FILE): Update.
1051 * config/i386/vxworks.mt (TM_FILE): Update.
1052 * config/i386/obsd64.mt (TM_FILE): Update.
1053 * config/i386/obsd.mt (TM_FILE): Update.
1054 * config/i386/nto.mt (TM_FILE): Update.
1055 * config/i386/nbsd64.mt (TM_FILE): Update.
1056 * config/i386/nbsd.mt (TM_FILE): Update.
1057 * config/i386/linux64.mt (TM_FILE): Update.
1058 * config/i386/linux.mt (TM_FILE): Update.
1059 * config/i386/i386sol2.mt (TM_FILE): Update.
1060 * config/i386/i386lynx.mt (TM_FILE): Update.
1061 * config/i386/fbsd64.mt (TM_FILE): Update.
1062 * config/i386/fbsd.mt (TM_FILE): Update.
1063 * config/i386/cygwin.mt (TM_FILE): Update.
1064 * config/h8300/h8300.mt (TM_FILE): Update.
1065 * config/frv/frv.mt (TM_FILE): Update.
1066 * config/cris/cris.mt (TM_FILE): Update.
1067 * config/arm/wince.mt (TM_FILE): Update.
1068 * config/arm/nbsd.mt (TM_FILE): Update.
1069 * config/arm/linux.mt (TM_FILE): Update.
1070 * config/arm/embed.mt (TM_FILE): Update.
1071 * config/alpha/nbsd.mt (TM_FILE): Update.
1072 * config/alpha/fbsd.mt (TM_FILE): Update.
1073 * config/alpha/alpha.mt (TM_FILE): Update.
1074 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1075 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1076
362646f5
AC
1077 Eliminate event_loop_p, always has the value 1.
1078 * defs.h (event_loop_p): Delete macro.
1079 * breakpoint.c (until_break_command): Simplify.
1080 * utils.c (prompt_for_continue): Simplify.
1081 * tracepoint.c (read_actions): Simplify.
1082 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1083 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1084 (set_prompt, init_main): Simplify.
1085 (init_signals, disconnect): Delete, unused.
1086 * remote.c (remote_async_resume)
1087 (extended_remote_async_create_inferior): Simplify.
1088 * mi/mi-interp.c (mi_input): Delete, unused.
1089 (mi_interpreter_resume, mi_command_loop): Simplify.
1090 * interps.c (current_interp_command_loop): Simplify.
1091 * infrun.c (proceed): Simplify.
1092 * infcmd.c (run_command, continue_command, step_1, jump_command)
1093 (until_command, advance_command, finish_command)
1094 (interrupt_target_command): Simplify.
1095 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1096
ee31a58d
AC
1097 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1098 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1099 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1100 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1101 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1102 * mips-tdep.c (mips_dump_tdep): Do not print same.
1103
b7ffc4a8
AC
11042004-09-12 Andrew Cagney <cagney@gnu.org>
1105
2bfb72ee
AC
1106 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1107 const.
1108 * Makefile.in (valprint.o): Delete explict rule.
1109
4f17c3c1
AC
1110 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1111 reported by Dave Anderson.
1112
f810308b
AC
1113 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1114
b7ffc4a8
AC
1115 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1116
28b41c52
AC
11172004-09-12 Salvador E. Tropea <set@users.sf.net>
1118 Andrew Cagney <cagney@gnu.org>
1119
1120 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1121 (mi_cmd_data_list_register_values)
1122 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1123 the register number computation.
1124
5bf970f9
AC
11252004-09-12 Andrew Cagney <cagney@gnu.org>
1126
1127 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1128 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1129 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1130 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1131 target.
1132 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1133 inf-ptrace.o and inf-child.o.
1134 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1135 * Makefile.in: Update dependencies.
1136
0759e0bf
AC
11372004-09-11 Andrew Cagney <cagney@gnu.org>
1138
1139 * language.c (hex_string, hex_string_custom): Move from here ...
1140 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1141 (CELLSIZE): Increase to 50.
1142 * language.h (hex_string, hex_string_custom): Move from here ...
1143 * defs.h: ... to here.
1144 * Makefile.in: Update all dependencies.
1145
bb599908
PH
11462004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1147
1148 * language.c (local_hex_format_custom): Remove.
1149 (local_hex_string): Rename to hex_string, use C format, and move to
1150 utils.c
1151 (local_hex_string_custom): Rename to hex_string_custom and change
1152 interface. Now uses C format. Move to utils.c
1153 (local_octal_format_custom): Remove.
1154 (local_decimal_format_custom): Remove.
1155 (unknown_language_defn): Remove language-specific number
1156 formatting entries.
1157 (auto_language_defn): Ditto.
1158 (local_language_defn): Ditto.
1159 * language.h (struct language_format_info): Delete declaration.
1160 (struct language_defn): Remove language_format_info fields
1161 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1162 (local_binary_format): Remove macro.
1163 (local_binary_format_prefix): Remove macro.
1164 (local_binary_format_specifier): Remove macro.
1165 (local_binary_format_suffix): Remove macro.
1166 (local_octal_format): Remove macro.
1167 (local_octal_format_prefix): Remove macro.
1168 (local_octal_format_specifier): Remove macro.
1169 (local_octal_format_suffix): Remove macro.
1170 (local_decimal_format): Remove macro.
1171 (local_decimal_format_prefix): Remove macro.
1172 (local_decimal_format_specifier): Remove macro.
1173 (local_decimal_format_suffix): Remove macro.
1174 (local_hex_format): Remove macro.
1175 (local_hex_format_prefix): Remove macro.
1176 (local_hex_format_specifier): Remove macro.
1177 (local_hex_format_suffix): Remove macro.
1178 (local_decimal_format_custom): Remove.
1179 (local_octal_format_custom): Remove.
1180 (local_hex_format_custom): Remove.
1181 (local_hex_string): Rename to hex_string and move to defs.h.
1182 (local_hex_string_custom): Rename to hex_string_custom, change
1183 interface, and move to defs.h.
1184 * utils.c: (int_string): New function.
1185 (hex_string): New function (from language.c).
1186 (hex_string_custom): New function (from language.c).
1187 (octal2str): New function.
1188 (decimal2str): Add width parameter.
1189 (paddr_u): Use new decimal2str interface.
1190 (paddr_d): Ditto.
1191 * defs.h (hex_string): Declare.
1192 (hex_string_custom): Declare.
1193 (int_string): Declare.
1194 * printcmd.c (print_scalar_formatted): Remove localized binary
1195 formatting.
1196 * valprint.c (print_longest): Use int_string.
1197 (print_floating): Use C hex format.
1198 (print_hex_chars): Ditto.
1199 (print_binary_chars): Remove language-specific formatting.
1200 (print_octal_chars): Use C octal format.
1201 (print_decimal_chars): Delocalize format.
1202 (print_decimal): Remove.
1203 * ada-lang.c (ada_language_defn): Remove language-specific number
1204 formatting entries.
1205 * p-lang.c (pascal_language_defn): Ditto.
1206 * c-lang.c (c_language_defn): Ditto.
1207 (cplus_language_defn): Ditto.
1208 (asm_language_defn): Ditto.
1209 (minimal_language_defn): Ditto.
1210 * f-lang.c (f_language_defn): Ditto.
1211 * jv-lang.c (java_language_defn): Ditto.
1212 * m2-lang.c (m2_language_defn): Ditto.
1213 * scm-lang.c (scm_language_defn): Ditto.
1214 * objc-lang.c (objc_language_defn): Ditto.
1215 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1216 new interface.
1217 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1218 * ui-out.c (ui_out_field_core_addr): Ditto.
1219 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1220 * exec.c (print_section_info): Ditto.
1221 * i387-tdep.c (print_i387_status_word): Ditto.
1222 (print_i387_control_word): Ditto.
1223 (i387_print_float_info): Ditto.
1224 * maint.c (maint_print_section_info): Ditto.
1225 * solib.c (info_sharedlibrary_command): Ditto.
1226 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1227 * symtab.c (print_msymbol_info): Ditto.
1228 * tracepoint.c (tracepoints_info): Ditto.
1229 * solib-frv.c (lm_base): Ditto.
1230 (frv_current_sos): Ditto.
1231 (enable_break2): Ditto.
1232 (enable_break): Ditto.
1233 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1234 (process_one_symbol): Ditto.
1235 * infcmd.c (program_info): Ditto.
1236 * mdebugread.c (parse_partial_symbols): Ditto.
1237 * symfile.c (add_symbol_file_command): Ditto.
1238 * cli/cli-cmds.c (edit_command): Ditto.
1239 (list_command): Ditto.
1240 * infcall.c (call_function_by_hand): Ditto.
1241 * remote-vx.c (vx_run_files_info): Ditto.
1242 (vx_wait): Ditto.
1243 (vx_attach): Ditto.
1244 (vx_detach): Ditto.
1245 (vx_kill): Ditto.
1246 * aix-thread.c (pdc_symbol_addrs): Ditto.
1247 (pdc_read_regs): Ditto.
1248 (pdc_write_regs): Ditto.
1249 (pdc_read_data): Ditto.
1250 (pdc_write_data): Ditto.
1251 * d10v-tdep.c (display_trace): Ditto.
1252 * rs6000-nat.c (find_toc_address): Ditto.
1253 * aix-thread.c: Don't include language.h.
1254 * buildsym.c: Ditto.
1255 * dbxread.c: Ditto.
1256 * mdebugread.c: Ditto.
1257 * rs6000-nat.c: Ditto.
1258 * buildsym.c (make_blockvector): Use renamed hex_string.
1259
33f2d567
JM
12602004-09-10 Jason Molenda (jmolenda@apple.com)
1261
1262 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1263 chars after 'if' or 'while' commands in user-defined commands.
1264
7b90c3f9
JB
12652004-09-08 Jim Blandy <jimb@redhat.com>
1266
1267 Fix bug reported and analyzed by Olivier Crete:
1268 * symfile.c (copy_section_addr_info): New function.
1269 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1270 original set of address arguments, instead of handwritten code
1271 that uses one length to allocate and a different length to
1272 initialize. Use make_cleanup_free_section_addr_info.
1273 * symfile.h (copy_section_addr_info): New declaration.
1274 * utils.c: #include "symfile.h".
1275 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1276 New functions.
1277 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1278 * Makefile.in (utils.o): Update dependencies.
1279
b26a6851
AC
12802004-09-08 Andrew Cagney <cagney@gnu.org>
1281
1282 * thread-db.c (keep_thread_db): Delete.
1283 (thread_db_new_objfile, thread_db_create_inferior)
1284 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1285
be24b061
MK
12862004-09-08 Mark Kettenis <kettenis@gnu.org>
1287
f6792ef4
MK
1288 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1289 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1290 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1291 (i386_frameless_signal_p): Remove prototype.
1292 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1293 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1294 I386_SSE_NUM_REGS.
1295 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1296 instead of FP0_REGNUM.
1297 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1298 of FP0_REGNUM and FPC_REGNUM.
1299
eeefdaa7
MK
1300 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1301 (sunos_solib_create_inferior_hook): Don't call
1302 sunos_relocate_main_executable.
1303
be24b061
MK
1304 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1305 solib_svr4_fetch_link_map_offsets to
1306 svr4_ilp32_fetch_link_map_offsets.
1307 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1308 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1309 svr4_ilp32_fetch_link_map_offsets.
1310 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1311
7c679d16
JB
13122004-09-07 Jim Blandy <jimb@redhat.com>
1313
1314 * frame.h (frame_register): Doc fix.
1315
1f04aa62
AC
13162004-09-07 Andrew Cagney <cagney@gnu.org>
1317
1318 * vx-share/wait.h: Delete #ifdef USG.
1319 * utils.c (request_quit): Ditto.
1320 * tui/tui.c (tui_reset): Ditto.
1321 * remote.c: Ditto.
1322 * remote-sds.c: Ditto.
1323 * remote-rdi.c: Ditto.
1324 * mdebugread.c: Ditto.
1325 * m68klinux-nat.c: Ditto.
1326 * infttrace.c: Ditto.
1327 * infptrace.c: Ditto.
1328 * i386v-nat.c: Ditto.
1329 * exec.c: Ditto.
1330 * dbxread.c: Ditto.
1331 * core-aout.c: Ditto.
1332
90edbfbc
JB
13332004-09-05 Joel Brobecker <brobecker@gnat.com>
1334
1335 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1336 heuristic_proc_desc.
1337 (mips_insn32_frame_cache): Likewise.
1338
01f4bf2b
JB
13392004-09-04 Joel Brobecker <brobecker@gnat.com>
1340
1341 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1342 left behind by error.
1343
8511a048
JB
13442004-09-04 Joel Brobecker <brobecker@gnat.com>
1345
1346 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1347 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1348
649dfe9f
JB
13492004-09-04 Joel Brobecker <brobecker@gnat.com>
1350
1351 * config/rs6000/xm-aix4.h: Remove this file.
1352 * config/rs6000/aix4.mh (XM_FILE): Delete.
1353
6e50f889
JB
13542004-09-04 Joel Brobecker <brobecker@gnat.com>
1355
1356 * config/rs6000/xm-rs6000.h: Remove this file.
1357 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1358
b8c4aece
AC
13592004-09-03 Andrew Cagney <cagney@gnu.org>
1360
fb603883
AC
1361 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1362 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1363 only use.
1364
c9343fd1
AC
1365 * mips-tdep.c (temp_saved_regs): Delete.
1366 (set_reg_offset): Replace saved_regs parameter with this_cache.
1367 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1368 (mips32_heuristic_proc_desc): Add this_cache parameter.
1369 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1370 (after_prologue): Pass a NULL this_cache.
1371
9733cfe1
AC
1372 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1373 non-kernel trap prologues.
1374
0d5febcc
AC
1375 * mips-tdep.c (find_proc_desc): Delete function.
1376 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1377 simplify.
1378 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1379 mips_insn32_frame_cache.
1380
9733cfe1 1381 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1382 Simplify as NEXT_FRAME is NULL.
1383 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1384
177f84a3
AC
1385 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1386 local variable.
1387 (mips_skip_prologue): Update.
1388
465f7520
AC
1389 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1390 "cur_frame" parameter.
177f84a3
AC
1391 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1392 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1393
e38b8658
AC
1394 * config/vax/nm-obsd.h: Delete file.
1395 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1396 * config/vax/nm-nbsd.h: Delete file.
1397 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1398 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1399 * config/sh/nm-nbsd.h: Delete file.
1400 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1401 * config/rs6000/nm-rs6000ly.h: Delete file.
1402 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1403 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1404 * config/powerpc/nm-obsd.h: Delete file.
1405 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1406 * config/powerpc/nm-nbsd.h: Delete file.
1407 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1408 * config/pa/nm-obsd.h: Delete file.
1409 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1410 * config/mips/nm-nbsd.h: Delete file.
1411 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1412 * config/m88k/nm-obsd.h: Delete file.
1413 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1414 * config/m68k/nm-nbsd.h: Delete file.
1415 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1416 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1417 * config/i386/nm-nbsd.h: Delete file.
1418 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1419 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1420 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1421 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1422 * config/i386/nm-i386lynx.h: Delete file.
1423 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1424 * config/arm/nm-nbsd.h: Delete file.
1425 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1426 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1427
be1ed680
AC
1428 * config/i386/tm-fbsd.h: Delete file.
1429 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1430 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1431
4b392b26
AC
1432 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1433 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1434 * config/rs6000/aix4.mt (TM_FILE): Set to
1435 config/rs6000/tm-rs6000.h.
1436 * config/powerpc/tm-ppc-aix.h: Delete file.
1437 * config/powerpc/aix.mt (TM_FILE): Set to
1438 config/rs6000/tm-rs6000.h.
1439 * config/m68k/tm-linux.h: Delete file.
1440 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1441 * config/i386/tm-linux64.h: Delete file.
1442 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1443 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1444
f3219c75
AC
1445 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1446 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1447 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1448 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1449 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1450 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1451 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1452 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1453 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1454
b8c4aece
AC
1455 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1456 gdb_host_cpu.
1457
8ac2e020
JB
14582004-09-02 Joel Brobecker <brobecker@gnat.com>
1459
1460 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1461 Minor reformatting. Some code factoring.
1462
c185a355
AC
14632004-09-02 Andrew Cagney <cagney@gnu.org>
1464
63f22f0d
AC
1465 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1466 * config/vax/tm-nbsd.h: Delete file.
1467 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1468 * config/sparc/tm-vxworks.h: Delete file.
1469 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1470 * config/sparc/tm-nbsd.h: Delete file.
1471 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1472 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1473 * config/sparc/tm-linux.h: Delete file.
1474 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1475 * config/s390/tm-linux.h: Delete file.
1476 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1477 * config/pa/tm-bsd.h: Delete file.
1478 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1479 * config/m68k/tm-obsd.h: Delete file.
1480 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1481 * config/m68k/tm-nbsd.h: Delete file.
1482 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1483 * config/i386/tm-vxworks.h: Delete file.
1484 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1485 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1486 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1487 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1488 * config/i386/tm-nbsd.h: Delete file.
1489 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1490 * config/i386/tm-i386lynx.h: Delete file.
1491 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1492 * config/cris/tm-cris.h: Delete file.
1493
0f475e27
AC
1494 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1495 * configure: Re-generate.
1496 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1497 * config/arm/tm-nbsd.h: Delete file.
1498
458ed000
AC
1499 * config/powerpc/tm-ppcle-sim.h: Delete.
1500 * config/powerpc/tm-ppcle-eabi.h: Delete.
1501 * config/powerpc/tm-nbsd.h: Delete.
1502 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1503 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1504 tm-ppcle-eabi.h.
1505
f14375f3
AC
1506 * config/i386/nto.mh (NAT_FILE): Delete.
1507 * config/i386/nm-nto.h: Delete.
1508
c34d127c
AC
1509 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1510 * config/m68k/tm-os68k.h: Ditto.
1511 * config/m68k/tm-monitor.h: Ditto.
1512 * config/m68k/tm-cisco.h: Ditto.
1513 * config/m68k/st2000.mt (TM_FILE): Delete.
1514 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1515 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1516 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1517 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1518
f7f0fe03
AC
1519 * config/m68k/tm-st2000.h: Delete.
1520 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1521 * config/sparc/fbsd.mt (TM_FILE): Delete.
1522 * config/sparc/tm-fbsd.h: Delete.
1523
a2558533
AC
1524 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1525 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1526 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1527
b78960be
AC
1528 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1529 GDB_TM_FILE and GDB_XM_FILE.
1530 * gdbarch.c: Re-generate.
1531 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1532 quotes in macro definition.
1533 * configure.in: Re-generate.
1534
4d60522e
AC
1535 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1536 validating architecture methods.
1537 * gdbarch.c: Re-generate.
1538
5010d38b
AC
1539 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1540 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1541 GDB_MULTI_ARCH_PARTIAL.
1542 * gdbarch.h: Re-generate.
1543
c185a355
AC
1544 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1545 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1546 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1547 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1548 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1549 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1550 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1551 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1552 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1553 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1554 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1555 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1556
14aaa6ab
AC
15572004-09-01 Andrew Cagney <cagney@gnu.org>
1558
1559 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1560 and main_func_highpc.
1561 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1562 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1563 * nlmread.c (nlm_symfile_read): Update.
1564
a343eb3c
JB
15652004-09-01 Joel Brobecker <brobecker@gnat.com>
1566
1567 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1568 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1569 (find_proc_desc): Remove dead code.
1570
4fbbbd07
JB
15712004-09-01 Joel Brobecker <brobecker@gnat.com>
1572
1573 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1574
84acb35a
JJ
15752004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1576
1577 * observer.sh: Add struct so_list declaration.
1578 * Makefile.in: Add dependencies on observer.h for solib.c and
1579 breakpoint.c.
1580 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1581 function.
1582 (_initialize_breakpoint): Register
1583 disable_breakpoints_in_unloaded_shlib as an observer of the
1584 "solib unloaded" observation event.
1585 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1586 call decode_line_1 so unfound breakpoint errors are silent.
1587 * solib.c (update_solib_list): When a solib is discovered to have
1588 been unloaded by the program, notify all observers of the
1589 "solib unloaded" observation event.
1590
c8cd9f6c
AC
15912004-09-01 Andrew Cagney <cagney@gnu.org>
1592
1593 * frame.c: Include "objfiles.h".
1594 (inside_main_func): New function.
1595 (get_prev_frame): Use new inside_main_func.
1596 * Makefile.in (frame.o): Update dependencies.
1597 * defs.h (inside_main_func): Delete declaration.
1598 * blockframe.c (inside_main_func): Delete function.
1599
1168df01
JB
16002004-08-31 Jim Blandy <jimb@redhat.com>
1601
1602 * dwarf2read.c (is_vtable_name): New function, based on logic from
1603 read_structure_type, but passing the correct length to strncmp,
1604 and using 'sizeof' instead of 'strlen'.
1605 (read_structure_type): Call it.
1606
f14f9744
JB
16072004-08-31 Joel Brobecker <brobecker@gnat.com>
1608
1609 * config/powerpc/aix.mh: Add comment.
1610
386d4518
PG
16112004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1612
1613 * MAINTAINERS: Add self to Write-After-Approval.
1614
7d97d5e2
MI
16152004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1616
1617 * MAINTAINERS: Add self to Write-After-Approval.
1618
68f53502
AC
16192004-08-30 Andrew Cagney <cagney@gnu.org>
1620
1621 Fix PR breakpoints/1757.
1622 * infrun.c (struct execution_control_state): Replace
1623 remove_breakpoints_on_following_step with
1624 step_after_step_resume_breakpoint.
1625 (init_execution_control_state): Update.
1626 (handle_inferior_event): For signals, when stepping off a
1627 breakpoint, set step_after_step_resume_breakpoint. When
1628 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1629 (keep_going): Delete code handling
1630 remove_breakpoints_on_following_step.
1631
7ca2d3a3
DL
16322004-08-29 David Lecomber <david@streamline-computing.com>
1633
1634 Fix PR gdb/648
1635 * language.h (enum array_ordering): New enum.
1636 * language.h (struct language_defn): New la_array_ordering
1637 attribute.
1638 * language.c (unknown_language_defn, auto_language_defn)
1639 (local_language_defn): Ditto.
1640 * ada-lang.c (ada_language_defn): Ditto.
1641 * c-lang.c (c_language_defn, cplus_language_defn)
1642 (asm_language_defn, minimal_language_defn): Ditto.
1643 * f-lang.c (f_language_defn): Ditto.
1644 * jv-lang.c (java_language_defn): Ditto.
1645 * m2-lang.c (f_language_defn): Ditto.
1646 * objc-lang.c (objc_language_defn): Ditto.
1647 * p-lang.c (pascal_language_defn): Ditto.
1648 * scm-lang.c (scm_language_defn): Ditto.
1649 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1650 oriented large to small in type structure.
1651 * dwarf2read.c (read_array_order): New function.
1652 (read_array_type): Use read_array_order to check row/column
1653 major ordering.
1654
e354df01
NW
16552004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1656
1657 * target.c (target_resize_to_sections): Check
1658 current_target.to_sections for an old value when updating.
1659
9185ddce
JB
16602004-08-27 Joel Brobecker <brobecker@gnat.com>
1661
1662 * procfs.c (dbx_link_bpt_addr): New static global variable.
1663 (dbx_link_shadow_contents): New static global variable.
1664 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1665 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1666 if we just hit it.
1667 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1668 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1669 from run to run.
1670 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1671 after the inferior has been forked.
1672 (remove_dbx_link_breakpoint): New function.
1673 (dbx_link_addr): New function.
1674 (insert_dbx_link_bpt_in_file): New function.
1675 (insert_dbx_link_bpt_in_region): New function.
1676 (insert_dbx_link_breakpoint): New function.
1677 (proc_trace_syscalls_1): New function, extracted from
1678 proc_trace_syscalls.
1679 (proc_trace_syscalls): Replace extract code by call to
1680 proc_trace_syscalls_1.
1681 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1682 is no longer valid.
1683
e6742ace
JB
16842004-08-25 Jim Blandy <jimb@redhat.com>
1685
1686 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1687
8fb3e588
AC
16882004-08-25 Andrew Cagney <cagney@gnu.org>
1689
629a41ee
AC
1690 * infrun.c (struct execution_control_state): Delete field
1691 "stepping_through_sigtramp".
1692 (init_execution_control_state): Do not set same.
1693 (context_switch): Do not pass same to save_infrun_state and
1694 load_infrun_state.
1695 * gdbthread.h (struct thread_info): Delete field
1696 stepping_through_sigtramp.
1697 (save_infrun_state, load_infrun_state): Delete parameter
1698 stepping_through_sigtramp.
1699 * thread.c (load_infrun_state, save_infrun_state): Update.
1700
8fb3e588
AC
1701 * infrun.c: Re-indent. Move expression operators to the beginning
1702 of the line. Remove long disabled #if 0 code.
1703
49c54768
AC
17042004-08-24 Andrew Cagney <cagney@gnu.org>
1705
1706 * doublest.h (floatformat_ieee_quad): Rename
1707 floatformat_ia64_quad.
1708 * doublest.c (floatformat_ieee_quad): Rename
1709 floatformat_ia64_quad.
1710 (_initialize_doublest): Update.
1711
5ca2e327
JB
17122004-08-24 Jim Blandy <jimb@redhat.com>
1713
87808bd6
JB
1714 * dwarf2expr.h (struct dwarf_expr_context): New members
1715 'num_pieces' and 'pieces', for returning the result of an
1716 expression that uses DW_OP_piece.
1717 (struct dwarf_expr_piece): New struct type.
1718 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1719 pieces.
1720 (free_dwarf_expr_context): Free pieces, if any.
1721 (add_piece): New function.
1722 (execute_stack_op): Implement DW_OP_piece.
1723 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1724 expression is a list of pieces, print an error message.
1725 (dwarf2_loc_desc_needs_frame): If the expression yields
1726 pieces, and any piece is in a register, then we need a frame.
1727
5ca2e327
JB
1728 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1729 the stack until we've decided what sort of result the evaluation
1730 has produced. Use separate variables, with more specific names.
1731
2afeb6b8
RE
17322004-08-23 Richard Earnshaw <rearnsha@arm.com>
1733
1734 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1735 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1736 (arm_netbsd_init_abi_common): Register them.
1737
5885ab49
MK
17382004-08-22 Mark Kettenis <kettenis@gnu.org>
1739
fda820a6
MK
1740 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1741
1c5bf419
MK
1742 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1743 safe_frame_unwind_memory instead of target_read_memory.
1744
8cbba7c8
MK
1745 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1746 Reorder includes.
1747 (fetch_register, store_register): Remove prototypes.
1748 (child_resume): Reorganize code and comments such that it is
1749 grouped a bit more logically.
1750 (attach): Explicitly compare errno against 0.
1751 (detach): Likewise. Use perror_with_name instead of
1752 print_sys_errmsg.
1753 * Makefile.in (infptrace.o): Update dependencies.
1754
c5fa4245
MK
1755 * ia64-linux-nat.c: Update copyright year.
1756 (fetch_debug_register, store_debug_register)
1757 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1758 PTRACE_TYPE_ARG3.
1759 * config/ia64/nm-linux.h: Update copyright year.
1760 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1761
387c058c
MK
1762 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1763 from CORE_ADDR to struct frame_info *. Use
1764 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1765 (amd64_linux_sigtramp_p): Adjust for changed signature of
1766 and64_linux_sigtramp_start
1767
277215a6
MK
1768 * gdb_ptrace.h: GNU/Linux.
1769
25f6178e
MK
1770 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1771 Remove defines.
1772
652fc137
MK
1773 * infptrace.c: Include "gdb_assert.h".
1774 (PTRACE_XFER_TYPE): Remove define.
1775 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1776 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1777 Tweak comment.
1778 (fetch_inferior_registers, store_inferior_registers): Remove
1779 redundant culry braces. Tweak comment. s/regno/regnum.
1780 * Makefile.in (infptrace.o): Update dependencies.
1781
5885ab49
MK
1782 * configure.in: Change test for return type of ptrace to default
1783 to `long' instead of `int'.
1784 * configure: Regenerate.
1785
11003ae3
MK
17862004-08-21 Mark Kettenis <kettenis@gnu.org>
1787
6b95110c
MK
1788 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1789
bcb3dc3d
MK
1790 * configure.in: Check for ttrace function.
1791 * configure, config.in: Regenerate.
1792
11003ae3
MK
1793 * gdb_ptrace.h: New file.
1794 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1795 <sys/ptrace.h>.
1796 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1797 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1798 (attach): Don't define PT_ATTACH.
1799 (detach): Don't define PT_DETACH.
1800 * Makefile.in (gdb_ptrace_h): New variable.
1801 (infptrace.o): Update dependencies.
1802
f8707cac
MK
18032004-08-16 Mark Kettenis <kettenis@gnu.org>
1804
1805 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1806 instead of `int' if not already defined.
1807 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1808 PTRACE_TYPE_ARG3.
1809 * infptrace.c (call_ptrace): Revert change that replaced
1810 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1811
655c5466
MK
18122004-08-15 Mark Kettenis <kettenis@gnu.org>
1813
156e5ba7
MK
1814 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1815 Remove defines.
1816
de9a9e51
MK
1817 * linux-nat.c (kill_inferior): Add missing third and fourth
1818 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1819
88800403
MK
1820 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1821 PTRACE_TYPE_RET.
1822
849a1d7c
MK
1823 * proc-why.c (proc_prettyfprint_why): Fix format string.
1824
61ad16d1
MK
1825 * solib-osf.c (osf_current_sos): Remove unsused label.
1826
a6ed5501
MK
1827 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1828 curses headers.
1829 * configure, config.in: Regenerate.
1830 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1831 <ncurses/ncurses.h>.
1832
016ddeca
MK
1833 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1834 * config/nm-nbsd.h: Update copyright year.
1835 (PTRACE_ARG3_TYPE): Remove define.
1836
49ec097f
MK
1837 * sparc-nat.c (fetch_inferior_registers)
1838 (store_inferior_registers, sparc_xfer_wcookie):
1839 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1840
9f8e0089
MK
1841 * alphabsd-nat.c (fetch_inferior_registers):
1842 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1843 PTRACE_TYPE_ARG3.
1844 * amd64bsd-nat.c (fetch_inferior_registers)
1845 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1846 PTRACE_TYPE_ARG3.
1847 * armnbsd-nat.c: Update copyright year.
1848 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1849 (store_register, store_regs, store_fp_register, store_fp_regs):
1850 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1851 * hppabsd-nat.c (fetch_inferior_registers)
1852 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1853 PTRACE_TYPE_ARG3.
1854 * i386bsd-nat.c (fetch_inferior_registers)
1855 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1856 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1857 * m68kbsd-nat.c (fetch_inferior_registers)
1858 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1859 PTRACE_TYPE_ARG3.
1860 * m88kbsd-nat.c (fetch_inferior_registers)
1861 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1862 PTRACE_TYPE_ARG3.
1863 * mipsnbsd-nat.c: Update copyright year.
1864 (fetch_inferior_registers, store_inferior_registers):
1865 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1866 * ns32knbsd-nat.c: Update copyright year.
1867 (fetch_inferior_registers, store_inferior_registers):
1868 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1869 * ppcnbsd-nat.c (fetch_inferior_registers):
1870 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1871 PTRACE_TYPE_ARG3.
1872 * ppcobsd-nat.c (fetch_inferior_registers):
1873 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1874 PTRACE_TYPE_ARG3.
1875 * shnbsd-nat.c: Update copyright year.
1876 (fetch_inferior_registers, store_inferior_registers):
1877 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1878 * vaxbsd-nat.c (fetch_inferior_registers)
1879 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1880 PTRACE_TYPE_ARG3.
1881
655c5466
MK
1882 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1883 PTRACE_TYPE_ARG3.
1884 * infptrace.c (call_ptrace, child_resume, attach, detach)
1885 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1886 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1887 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1888 PTRACE_TYPE_ARG3.
1889
c40d0d10
MK
18902004-08-14 Mark Kettenis <kettenis@gnu.org>
1891
5cb0ff31
MK
1892 * defs.h: Remove out-of-date comment.
1893 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1894 [!GETENV_PROVIDED] (getenv): Remove prototype.
1895
5f0f34cb
MK
1896 * standalone.c: Remove file.
1897 * Makefile.in (standalone.o): Remove dependency.
1898
7532965f
MK
1899 * i386-linux-nat.c (dummy_sse_values): Remove function and
1900 prototype.
1901 (i386_linux_dr_get): Fix typo in comment.
1902 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1903
1bdc6c53
MK
1904 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1905
c40d0d10
MK
1906 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1907 from declaration.
1908 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1909 from definition.
1910
64218d3e
MK
19112004-08-13 Mark Kettenis <kettenis@gnu.org>
1912
1913 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1914 parenthesis in definition.
1915 * configure: Regenerated.
1916
926c94e7
MC
19172004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1918
1919 * PROBLEMS: Mention build/1411.
1920
69489883
NN
19212004-08-09 Robert Millan <robertmh@gnu.org>
1922
1923 Committed by Nathanael Nerode.
1924 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1925 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1926
ebb7c577
AC
19272004-08-12 Andrew Cagney <cagney@gnu.org>
1928
1929 * NEWS: Mention fixes in GDB 6.2.1.
1930 * PROBLEMS: Remove mention of mips-irix.
1931
232d697c
JB
19322004-08-11 Joel Brobecker <brobecker@gnat.com>
1933
1934 * config/powerpc/xm-aix.h: Delete.
1935 * config/powerpc/aix.mh (MH_FILE): Remove.
1936 * config/powerpc/aix432.mh (MH_FILE): Remove.
1937
72f4e82b
JB
19382004-08-11 Joel Brobecker <brobecker@gnat.com>
1939
1940 * config/powerpc/aix.mh: Remove obsolete comment.
1941 * config/powerpc/aix432.mh: Likewise.
1942
0687ccb2
JB
19432004-08-11 Joel Brobecker <brobecker@gnat.com>
1944
1945 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1946
dbf3ada7
JB
19472004-08-11 Joel Brobecker <brobecker@gnat.com>
1948
e08e1886
JB
1949 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1950 this file is now empty.
1951 * config/xm-aix4.h: Remove, this file is no longer included
1952 anywhere.
1953
19542004-08-11 Joel Brobecker <brobecker@gnat.com>
1955
1956 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1957 that file is now empty.
dbf3ada7
JB
1958 (termdef): Remove prototype, function no longer used.
1959
4c525ef6
JB
19602004-08-11 Joel Brobecker <brobecker@gnat.com>
1961
1962 * doc/gdbint.texinfo (Host Definition): Remove documentation
1963 for USE_O_NOCTTY, no longer used.
1964 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1965 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1966
82e0b968
JB
19672004-08-11 Joel Brobecker <brobecker@gnat.com>
1968
1969 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1970 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1971 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1972
f2acbe1c
MK
19732004-08-11 Mark Kettenis <kettenis@gnu.org>
1974
daa98270
MK
1975 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1976 instead of FIVE_ARG_PTRACE.
1977
f2acbe1c
MK
1978 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1979 (new_tty): Use O_NOCTTY unconditionally.
1980
cc377e6b
MK
19812004-08-10 Mark Kettenis <kettenis@gnu.org>
1982
1983 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1984 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1985 fflush on stdout.
1986
3bcc18fa
JB
19872004-08-10 Joel Brobecker <brobecker@gnat.com>
1988
1989 * xcoff_symfile_finish: Replace last call to xmfree by call
1990 to xfree.
1991
7936743b
AC
19922004-08-10 Andrew Cagney <cagney@gnu.org>
1993
cc503c8a
AC
1994 * main.c (captured_main): Delete call to init_malloc.
1995 * defs.h (init_malloc): Delete declaration.
1996 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1997 (init_malloc): Delete functions.
1998
2dc74dc1
AC
1999 * defs.h (xmfree): Delete.
2000 * utils.c (xmfree): Delete function.
2001 (xfree): Inline calls to xmfree and mfree.
2002 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2003 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2004 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2005 * somread.c (som_symfile_finish): Ditto.
2006 * objfiles.c (allocate_objfile, free_objfile):
2007 * nlmread.c (nlm_symfile_finish): Ditto.
2008 * hpread.c (hpread_symfile_finish): Ditto.
2009 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2010 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2011 * coffread.c (coff_symfile_finish): Ditto.
2012
aa2ee5f6
AC
2013 * defs.h (xmcalloc): Delete declaration.
2014 * utils.c (xmcalloc): Delete.
2015 (xcalloc): Inline calls to xmcalloc and mcalloc.
2016 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2017 xcalloc and xfree.
2018 * symtab.c (create_demangled_names_hash): Ditto.
2019
0efffb96
AC
2020 * defs.h (xmrealloc): Delete.
2021 * utils.c (xmrealloc): Delete.
2022 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2023 * symmisc.c (extend_psymbol_list): Use xrealloc.
2024 * source.c (find_source_lines): Ditto.
2025 * hpread.c (hpread_lookup_type): Ditto.
2026 * dbxread.c (add_bincl_to_list): Ditto.
2027
7936743b
AC
2028 * utils.c (xmmalloc): Delete.
2029 (xmalloc): Inline xmmalloc and mmalloc calls.
2030 (msavestring): Use xmalloc.
2031 * defs.h (xmmalloc): Delete declaration.
2032 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2033 xmmalloc.
2034 * symmisc.c (extend_psymbol_list): Ditto.
2035 * symfile.c (init_psymbol_list): Ditto.
2036 * source.c (find_source_lines): Ditto.
2037 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2038 * elfread.c (elf_symtab_read): Ditto.
2039 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2040 * coffread.c (coff_symfile_init): Ditto.
2041
252ab814
DC
20422004-08-10 David Carlton <carlton@bactrian.org>
2043
2044 * MAINTAINERS: Remove David Carlton from c++ testsuite
2045 maintainers.
2046
8f5ba92b
JG
20472004-08-10 Jerome Guitton <guitton@gnat.com>
2048
2049 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2050 print a line feed before the prompt.
2051
21749010
MK
20522004-08-10 Mark Kettenis <kettenis@gnu.org>
2053
2054 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2055
1f011ce2
JB
20562004-08-09 Joel Brobecker <brobecker@gnat.com>
2057
2058 General cleanup of the AIX xm include file:
2059 * config/xm-aix4.h (fd_set): Remove undefine.
2060 Remove include of <sys/select.h>.
2061 (HAVE_TERMIO): Remove define.
2062 (USG): Likewise.
2063 (NULL): Remove redefine.
2064 (alloca): Remove #pragma.
2065 (vfork): Remove define.
2066 (termdef): Remove.
2067 (SIGWINCH_HANDLER): Remove.
2068 (SIGWINCH_HANDLER_BODY): Remove.
2069
cf4e7692
MK
20702004-08-09 Mark Kettenis <kettenis@gnu.org>
2071
2072 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2073 GDB_OSABI_OPENBSD_ELF.
2074
ac5754fa
MK
20752004-08-07 Robert Millan <robertmh@gnu.org>
2076
2077 * bsd-kvm.c: Check for nlist.h before including it.
2078
086ec9eb
MK
20792004-08-09 Mark Kettenis <kettenis@gnu.org>
2080
bbe06c74
MK
2081 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2082 sigcontext' offset consistency checks for ancient BSD.
2083
3aa7b3b3
MK
2084 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2085
086ec9eb
MK
2086 * configure.in: Check for <sys/types.h>. Check return and
2087 argument types of ptrace.
2088 * configure, config.in: Regenerate.
2089
09991fa0
JB
20902004-08-09 Jim Blandy <jimb@redhat.com>
2091
2092 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2093 rs6000_register_sim_regno): Doc fixes.
2094
fed7ba43
JB
20952004-08-08 Joel Brobecker <brobecker@gnat.com>
2096
2097 * mips-tdep.c: Include "floatformat.h".
2098 (n32n64_floatformat_always_valid): New function.
2099 (floatformat_n32n64_long_double_big): New constant.
2100 (mips_gdbarch_init): Set size and format of long double
2101 for N32 and N64 ABIs.
2102 * Makefile.in (mips-tdep.o): Update dependencies.
2103
456fcf94
AC
21042004-08-08 Andrew Cagney <cagney@gnu.org>
2105
2f9b146e
AC
2106 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2107 print. Improve script's error messages.
2108 * gdbarch.h: Re-generate.
2109
456fcf94
AC
2110 * gdbarch.sh (pformat): New function.
2111 (float_format, double_format, long_double_format): List with bit
2112 members. Use pformat when printing.
2113 * gdbarch.c, gdbarch.h: Re-generate.
2114
69e9e646
NW
21152004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2116
2117 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2118 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2119 (ppcnbsd_supply_pcb): New function.
2120 (_initialize_ppcnbsd_nat): New prototype and function.
2121 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2122 (LOADLIBES): New variable.
2123 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2124
5ef2d0aa
AC
21252004-08-08 Andrew Cagney <cagney@gnu.org>
2126
2127 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2128 (builtin_type_ieee_double, builtin_type_ia64_quad)
2129 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2130 BE/LE floating-point types.
2131 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2132 (builtin_type_ieee_double, builtin_type_ia64_quad)
2133 (builtin_type_ia64_spill): Declare.
2134 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2135 (floatformat_ieee_double, floatformat_arm_ext)
2136 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2137 of LE/BE floatformats.
2138 * doublest.h: (struct floatformat, floatformat_ieee_single)
2139 (floatformat_ieee_double, floatformat_arm_ext)
2140 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2141
5c7f2947
MK
21422004-08-08 Mark Kettenis <kettenis@gnu.org>
2143
ecac404d
MK
2144 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2145
9b8607ce
MK
2146 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2147 instead of regcache_raw_supply when storing the registers.
2148
f6052080
MK
2149 * i386gnu-nat.c: Update copyright year.
2150 (gnu_store_registers): Don't use deprecated_registers and
2151 deprecated_registers_valid. Use regcache_valid_p and
2152 regcache_raw_supply instead.
2153
17777823
MK
2154 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2155 frame_pc_unwind.
2156
5240ceac
MK
2157 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2158 variables. Incapitalized "process".
2159
5c7f2947
MK
2160 * configure.in: Add cursesX to the list of possible curses libs.
2161 Add cursesX.h to the list of possible curses headers.
2162 * configure, config.in: Regenerate.
2163
da7d81e3
NW
21642004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2165
2166 * configure.in: Test for struct lwp in <sys/lwp.h>.
2167 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2168 the offset of l_addr in struct lwp.
2169
7f245d65
NW
21702004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2171
2172 * bsd-kvm.c: Include "gdbcore.h"
2173 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2174
47b3f456
AC
21752004-08-07 Andrew Cagney <cagney@gnu.org>
2176
70bd8e24
AC
2177 * gdbtypes.c (build_flt, build_complex): New functions.
2178 (gdbtypes_post_init): Use.
2179
9b0dea39
AC
2180 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2181
5cf7abac
AC
2182 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2183 through to builtin_type_uint128.
2184
64d2b26d
AC
2185 * c-exp.y: Use builtin_type function to obtain builtin types.
2186
7ad6570d
AC
2187 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2188 builtin_uint128.
2189 * gdbtypes.c (gdbtypes_post_init): Update.
2190 (build_gdbtypes): Move initialization of builtin_type_int0
2191 through to builtin_type_uint128 from here ...
2192 (_initialize_gdbtypes): ... to here.
2193 * d10v-tdep.c (d10v_register_type): Update.
2194
47b3f456
AC
2195 * doublest.c: Update copyright.
2196 (floatformat_from_length): Call error when floatformat is NULL.
2197 (extract_floating_by_length): Remove NULL fmt check.
2198 (store_floating_by_length): Ditto.
2199
0a8146bf
AC
22002004-08-07 Andrew Cagney <cagney@gnu.org>
2201
2202 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2203 that the register is valid.
2204
c0ccb908
MK
22052004-08-05 Mark Kettenis <kettenis@chello.nl>
2206
8e6bed05
MK
2207 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2208 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2209 struct frame_info *. Use safe_frame_unwind_memory instead of
2210 deprecated_read_memory_nobpt.
2211 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2212 changed signature of i386_linux_sigtramp_start and
2213 i386_linux_rt_sigtramp_start.
2214
24f9f5e3
MK
2215 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2216 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2217 instead of deprecated_read_memory_nobpt.
2218 (i386nbsd_sigtramp_p): Adjust for changed signature of
2219 i386nbsd_sigtramp_offset.
2220
c822af0c
MK
2221 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2222 safe_frame_unwind_memory instead of target_read_memory.
2223
c0ccb908
MK
2224 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2225 !NO_SYS_FILE.
2226 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2227 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2228 (_initialize_kernel_u_addr): Remove prototype and function.
2229 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2230 !NO_SYS_FILE.
2231 * xcoffread.c: Likewise.
2232
b9e1c0d6
MK
22332004-08-06 Mark Kettenis <kettenis@gnu.org>
2234
2235 * vax-nat.c: New file.
2236 * vaxbsd-nat.c: Tweak comment.
2237 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2238 vaxnbsd-tdep.c.
2239 (vax-nat.o): New dependency.
2240 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2241 (vax-*-ultrix2*): Remove.
2242 * config/vax/vax.mh: New file.
2243 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2244 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2245 (vax_register_u_addr): New prototype.
2246 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2247 * config/vax/vaxult2.mh: Remove file.
2248 * config/vax/vaxult.mh: Remove file.
2249 * config/vax/vaxbsd.mh: Remove file.
2250 * config/vax/vax.mt (TM_FILE): Remove.
2251 * config/vax/tm-vaxbsd.h: Remove file.
2252
9ad7bec7
JB
22532004-08-06 Joel Brobecker <brobecker@gnat.com>
2254
2255 * aix-thread.c (get_signaled_thread): New function.
2256 (iter_trap): Delete, no longer used.
2257 (iter_tid): New function.
2258 (pd_update): Find the thread that received the SIGTRAP signal
2259 by first locating the kernel thread, and then finding its
2260 associated thread.
2261
bf0d233d
UW
22622004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2263
2264 * lin-lwp.c (child_wait): Continue inferior after processing
2265 PTRACE_EVENT_CLONE event.
2266
d0f853e1
NN
22672004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2268
2269 * MAINTAINERS: Add self to Write-After-Approval.
2270
ab14aeb0
JJ
22712004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2272
2273 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2274 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2275
9c8dbfa9
AC
22762004-08-05 Andrew Cagney <cagney@gnu.org>
2277
c8f3ca46
AC
2278 * config/xm-sysv4.h: Delete file.
2279 * config/mips/xm-irix5.h: Delete file.
2280 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2281 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2282 * config/ia64/xm-aix.h: Delete file.
2283 * config/ia64/aix.mh (XM_FILE): Delete.
2284 * config/pa/xm-hppah.h: Delete file.
2285 * config/pa/hpux11w.mh (XM_FILE): Delete.
2286 * config/pa/hpux11.mh (XM_FILE): Delete.
2287 * config/pa/hpux1020.mh (XM_FILE): Delete.
2288 * config/pa/hppahpux.mh (XM_FILE): Delete.
2289
5f7daaff
AC
2290 * config/alpha/xm-alphalinux.h: Delete file.
2291 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2292 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2293 * config/alpha/xm-alphaosf.h: Delete file.
2294 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2295 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2296 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2297 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2298
69babf95
AC
2299 * config/i386/xm-i386v.h: Delete file.
2300 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2301 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2302 * config/i386/xm-i386sco.h: Delete file.
2303 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2304 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2305 * config/i386/xm-i386v4.h: Delete file.
2306 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2307 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2308 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2309 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2310
6f009c8a
AC
2311 * config/vax/xm-vax.h: Delete file.
2312 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2313 * config/vax/xm-vaxult2.h: Delete file.
2314 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2315 * config/vax/vaxult2.mh (XM_FILE): Delete.
2316 * config/vax/xm-vaxult.h: Delete file.
2317 * config/vax/vaxult.mh (XM_FILE): Delete.
2318 * config/vax/xm-vaxbsd.h: Delete file.
2319 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2320
9c8dbfa9
AC
2321 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2322 * gdbarch.h, gdbarch.c: Re-generate.
2323 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2324 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2325 * frame.h: Delete deprecated_read_fp from comments.
2326 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2327 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2328
84367a3e
MK
23292004-08-04 Mark Kettenis <kettenis@gnu.org>
2330
9c8e3411
MK
2331 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2332 trampoline in OpenBSD 3.5-current.
2333
b87bc0d8
MK
2334 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2335 SSE registers.
2336
84367a3e
MK
2337 * Makefile.in: Remove embedded page breaks.
2338
a44bddec
JB
23392004-08-04 Jim Blandy <jimb@redhat.com>
2340
7ab3286f
JB
2341 * regcache.c (regcache_raw_read): Assert that, after calling
2342 target_fetch_registers, the register we're reading is cached.
2343
a44bddec
JB
2344 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2345 a call to 'internal_error', with a more helpful error message.
2346 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2347 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2348
35124113
AC
23492004-08-04 Andrew Cagney <cagney@gnu.org>
2350
2351 * Makefile.in: Update dependencies.
2352
9f643768
JB
23532004-08-04 Jim Blandy <jimb@redhat.com>
2354
6ced10dd
JB
2355 Change the layout of the PowerPC E500 raw register cache to allow
2356 the lower 32-bit halves of the GPRS to be their own raw registers,
2357 not pseudoregisters.
2358 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2359 add ppc_ev0_upper_regnum flag.
2360 * rs6000-tdep.c: #include "reggroups.h".
2361 (spe_register_p): Recognize the ev upper half registers as SPE
2362 registers.
2363 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2364 registers.
2365 (e500_move_ev_register): New function.
2366 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2367 vector registers are the pseudo-registers now, formed by splicing
2368 together the gprs and the upper-half registers.
2369 (e500_register_reggroup_p): New function.
2370 (P): Macro deleted.
2371 (P8, A4): New macro.
2372 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2373 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2374 macros.
2375 (registers_e500): Rearrange register set so that the raw register
2376 set contains 32-bit GPRs and upper-half registers, and the SPE
2377 vector registers become pseudo-registers.
2378 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2379 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2380 register numbers are now the same for the E500 as they are for
2381 other PowerPC variants. Register e500_register_reggroup_p as the
2382 register group function for the E500.
2383 * Makefile.in (rs6000-tdep.o): Update dependencies.
2384
2385 Adapt PPC E500 native support to the new raw regcache layout.
2386 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2387 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2388 (fetch_spe_register, store_spe_register): Handle fetching/storing
2389 all the SPE registers at once, if regno == -1. These now take
2390 over the job of fetch_spe_registers and store_spe_registers.
2391 (fetch_spe_registers, store_spe_registers): Deleted.
2392 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2393 unconditionally; they're always raw. Fetch/store SPE upper half
2394 registers, if present, instead of ev registers.
2395 (fetch_register, store_register): Remove sanity checks: gprs are
2396 never pseudo-registers now, so we never need to even mention any
2397 registers that are ever pseudoregisters.
2398
9f643768
JB
2399 Use a fixed register numbering when communicating with the PowerPC
2400 simulator.
2401 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2402 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2403 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2404 New functions.
2405 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2406 init_sim_regno_table.
2407 * Makefile.in (gdb_sim_ppc_h): New variable.
2408 (rs6000-tdep.o): Update dependencies.
2409
1e2279c8
AC
24102004-08-02 Andrew Cagney <cagney@gnu.org>
2411
1d94326f
AC
2412 * cris-tdep.c (cris_register_size): Restore function, still used
2413 locally.
2414
331ae7ed
AC
2415 * gdbarch.sh (deprecated_target_read_fp)
2416 (deprecated_frame_locals_address, deprecated_frame_args_address)
2417 (deprecated_frame_chain_valid, deprecated_frame_chain)
2418 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2419 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2420 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2421 * gdbarch.h, gdbarch.c: Re-generate.
2422 * regcache.c (deprecated_read_fp): Do not call
2423 DEPRECATED_TARGET_READ_FP_P.
2424 * infcmd.c (default_print_registers_info): Do not call
2425 DEPRECATED_DO_REGISTERS_INFO.
2426 * frame-base.c (default_frame_locals_address): Do not call
2427 DEPRECATED_FRAME_LOCALS_ADDRESS.
2428 (default_frame_args_address): Do not call
2429 DEPRECATED_FRAME_ARGS_ADDRESS.
2430
1e2279c8
AC
2431 * gdbarch.sh (deprecated_register_raw_size)
2432 (deprecated_register_virtual_size:int): Delete.
2433 * gdbarch.h, gdbarch.c: Re-generate.
2434 * cris-tdep.c (cris_register_size): Delete.
2435 (cris_gdbarch_init): Update.
2436 * alpha-tdep.c (alpha_register_raw_size)
2437 (alpha_register_virtual_size): Delete.
2438 (alpha_gdbarch_init): Update.
2439
a90c06b4
AC
2440 * gdbarch.sh (deprecated_register_virtual_type)
2441 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2442 (deprecated_dummy_write_sp): Delete.
2443 * gdbarch.h, gdbarch.c: Re-generate.
2444
f42accbe
AC
2445 * gdbarch.sh (deprecated_register_bytes): Delete.
2446 * gdbarch.h, gdbarch.c: Re-generate.
2447 * regcache.c (deprecated_register_bytes): New function.
2448 * regcache.h (deprecated_register_bytes): Declare.
2449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2450 * v850-tdep.c (v850_gdbarch_init): Update.
2451 * sh64-tdep.c (sh64_gdbarch_init): Update.
2452 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2454 * mcore-tdep.c (mcore_gdbarch_init): Update.
2455 * cris-tdep.c (cris_gdbarch_init): Update.
2456 * arm-tdep.c (arm_gdbarch_init): Update.
2457 * remote.c (init_remote_state): Update.
2458 * remote-vx.c (vx_prepare_to_store): Update.
2459 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2460 * irix5-nat.c (fetch_core_registers): Update.
2461 * cris-tdep.c (cris_register_bytes_ok): Update.
2462 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2463
45c9dd44
AC
2464 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2465 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2466 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2467 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2468 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2469 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2470 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2471 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2472 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2473 with mips_insn16 and mips_insn32.
2474
3acba339
AC
2475 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2476 * rs6000-tdep.c (rs6000_push_dummy_call)
2477 (rs6000_extract_return_value): Use register_size.
2478 * xstormy16-tdep.c (xstormy16_get_saved_register)
2479 (xstormy16_extract_return_value): Ditto.
2480 * valops.c (value_assign): Ditto.
2481 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2482 * v850-tdep.c (v850_extract_return_value): Ditto.
2483 * tracepoint.c (collect_symbol): Ditto.
2484 * target.c (debug_print_register): Ditto.
2485 * stack.c (frame_info): Ditto.
2486 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2487 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2488 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2489 (store_register_using_P): Ditto.
2490 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2491 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2492 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2493 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2494 * regcache.c (deprecated_read_register_bytes)
2495 (deprecated_write_register_bytes, read_register)
2496 (write_register): Ditto.
2497 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2498 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2499 * monitor.c (monitor_supply_register, monitor_fetch_register)
2500 (monitor_store_register): Ditto.
2501 * mn10300-tdep.c (mn10300_pop_frame_regular)
2502 (mn10300_print_register): Ditto.
2503 * mipsv4-nat.c (fill_fpregset): Ditto.
2504 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2505 (mips64_fill_fpregset): Ditto.
2506 * mi/mi-main.c (register_changed_p, get_register)
2507 (mi_cmd_data_write_register_values): Ditto.
2508 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2509 * irix5-nat.c (fill_gregset, fetch_core_registers):
2510 * infrun.c (write_inferior_status_register): Ditto.
2511 * infptrace.c (fetch_register, store_register): Ditto.
2512 * infcmd.c (default_print_registers_info): Ditto.
2513 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2514 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2515 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2516 * hpux-thread.c (hpux_thread_fetch_registers)
2517 (hpux_thread_store_registers): Ditto.
2518 * hppah-nat.c (store_inferior_registers, fetch_register):
2519 * findvar.c (value_from_register): Ditto.
2520 * dve3900-rom.c (fetch_bitmapped_register):
2521 * cris-tdep.c (cris_gdbarch_init): Ditto.
2522 * alpha-tdep.h: Ditto.
2523 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2524
01e1877c
AC
2525 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2526 DEPRECATED_REGISTER_RAW_SIZE from comments.
2527 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2528 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2529 DEPRECATED_REGISTER_RAW_SIZE.
2530 * findvar.c (value_of_register): Simplify by assuming that the
2531 registers raw and virtual sizes are identical.
2532 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2533 comment.
2534 * arch-utils.c (generic_register_size): Simplify by assuming
2535 register_type.
2536
73f458fb
AC
2537 * regcache.c (legacy_read_register_gen, real_register)
2538 (legacy_write_register_gen): Delete, not used.
2539
336a3131
AC
2540 * regcache.c (struct regcache_descr): Delete legacy_p.
2541 (init_legacy_regcache_descr): Delete function.
2542 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2543 Do not use deprecated register functions.
2544 (regcache_raw_read, deprecated_write_register_gen):
2545 (deprecated_read_register_gen, regcache_raw_write): Delete code
2546 predicated on legacy_p.
2547 (register_size): Delete check against register raw size.
2548
c1d546cd
AC
2549 * cris-tdep.c (cris_register_type): Replace
2550 cris_register_virtual_type.
2551 (cris_gdbarch_init): Update, set register_type.
2552
48c2c0a6
AC
2553 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2554 * gdbarch.h, gdbarch.c: Re-generate.
2555 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2556 (arm_gdbarch_init) Do not set frameless function invocation.
2557 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2558 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2559 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2560 (frv_gdbarch_init): Do not set frameless function invocation.
2561 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2562 * sh-tdep.c (sh_gdbarch_init): Ditto.
2563 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2565 * avr-tdep.c (avr_gdbarch_init): Ditto.
2566
474093a6
AC
2567 * blockframe.c (legacy_frame_chain_valid): Delete function.
2568
3c109c8b
AC
2569 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2570 and pc. Update comments.
2571 (pc_in_dummy_frame): Delete function.
2572 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2573 use the "id".
2574 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2575 call_hi, top and pc, use the id.
2576 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2577
96860204
AC
2578 * dummy-frame.c: Include "gdb_string.h".
2579 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2580 (generic_save_dummy_frame_tos): Delete.
2581 (dummy_frame_push): New function, replaces above.
2582 * dummy-frame.h: Update copyright.
2583 (dummy_frame_push): Declare.
2584 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2585 (generic_save_call_dummy_addr): Delete declarations.
2586 * infcall.c: Include "dummy-frame.h".
2587 (call_function_by_hand): Add locals caller_regcache,
2588 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2589 with call to frame_save_as_regcache plus cleanup. Delete calls to
2590 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2591 Move clear_proceed_status to just before the resume, add call to
2592 dummy_frame_push (discard cleanup).
2593 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2594 (dummy-frame.o): Add $(gdb_string_h).
2595
d67ec5db
AC
25962004-08-01 Andrew Cagney <cagney@gnu.org>
2597
2598 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2599 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2600 * dummy-frame.c (find_dummy_frame): Delete.
2601 (struct dummy_frame_cache, dummy_frame_sniffer)
2602 (dummy_frame_prev_register, dummy_frame_this_id)
2603 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2604 frame unwinder using a dummy_frame_cache.
2605
a81dcb05
AC
26062004-08-01 Andrew Cagney <cagney@gnu.org>
2607
2608 * frame.h (frame_save_as_regcache): Declare.
2609 * frame.c (frame_save_as_regcache): New function.
2610 (do_frame_read_register): Replace do_frame_unwind_register.
2611 (frame_pop): Use frame_save_as_regcache.
2612 * dummy-frame.c (generic_push_dummy_frame): Use
2613 frame_save_as_regcache.
2614
aa495d11
JB
26152004-08-01 Joel Brobecker <brobecker@gnat.com>
2616
2617 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2618 file as included until we record the first line in the linetable.
2619
ff65ac78
AC
26202004-08-01 Andrew Cagney <cagney@gnu.org>
2621
2622 * frame.h (deprecated_pop_dummy_frame)
2623 (deprecated_read_register_dummy)
2624 (deprecated_generic_find_dummy_frame): Delete.
2625 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2626 (deprecated_read_register_dummy)
2627 (deprecated_find_dummy_frame_regcache)
2628 (discard_innermost_dummy)
2629 (deprecated_pop_dummy_frame): Delete.
2630 (dummy_frame_this_id): Simplify.
2631 (struct dummy_frame): Delete "fp" and "sp".
2632 (find_dummy_frame): Simplify.
2633 (generic_push_dummy_frame): Do not set "fp" or "sp".
2634 (fprint_dummy_frames): Do not print "fp" and "sp"
2635
37bdc87e
MK
26362004-08-01 Mark Kettenis <kettenis@gnu.org>
2637
2638 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2639 (struct i386_insn): New structure.
2640 (i386_match_insn): New function.
2641 (i386_frame_setup_skip_insns): New variable.
2642 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2643 array i386_frame_setup_insns of instructions that should be
2644 skipped inside the frame setup sequence.
2645
8241eaa6
AC
26462004-08-01 Andrew Cagney <cagney@gnu.org>
2647
5bc602c7
AC
2648 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2649 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2650 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2651 * stack.c (frame_info): Delete references to
2652 DEPRECATED_FRAME_INIT_SAVED_REGS and
2653 deprecated_get_frame_saved_regs.
2654 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2655 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2656 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2657 (frame_unwind_register_signed)
2658 (frame_unwind_register_unsigned)
2659 (frame_unwind_unsigned_register): Use register_size.
2660 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2661 (deprecated_frame_xmalloc_with_cleanup)
2662 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2663 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2664
03d363a1
AC
2665 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2666 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2667 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2668 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2669
8241eaa6
AC
2670 * infcall.c (call_function_by_hand): Do not use
2671 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2672 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2673 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2674 DEPRECATED_STACK_ALIGN.
2675
f00df8b7
AC
26762004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2677
2678 Committed by Andrew Cagney.
2679 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2680
eec63939
AC
26812004-08-01 Andrew Cagney <cagney@gnu.org>
2682
2683 * mips-tdep.c (mips16_frame_cache)
2684 (mips16_frame_this_id, mips16_frame_prev_register)
2685 (mips16_frame_unwind, mips16_frame_sniffer)
2686 (mips16_frame_base_address, mips16_frame_base)
2687 (mips16_frame_base_sniffer, mips32_frame_cache)
2688 (mips32_frame_this_id, mips32_frame_prev_register)
2689 (mips32_frame_unwind, mips32_frame_sniffer)
2690 (mips32_frame_base_address, mips32_frame_base)
2691 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2692 separate heuristic mips16 and mips32 unwinders.
2693 (mips_stub_frame_cache, mips_stub_frame_this_id)
2694 (mips_stub_frame_prev_register)
2695 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2696 (mips_stub_frame_base_address, mips_stub_frame_base)
2697 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2698 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2699 match true mdebug frames.
2700 (non_heuristic_proc_desc): Add forward declaration.
2701
e66299b3
AC
27022004-08-01 Andrew Cagney <cagney@gnu.org>
2703
83cbbf3e
AC
2704 * config/mips/tm-irix6.h: Delete file.
2705 * config/mips/tm-irix5.h: Delete file.
2706 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2707 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2708
22d41b37
AC
2709 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2710 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2711 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2712 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2713 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2714 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2715 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2716 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2717 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2718 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2719 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2720 (TARGET_SIGNAL_RAW_VALUES): Delete.
2721 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2722 Delete.
2723 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2724 (TARGET_HW_WATCH_LIMIT): Delete.
2725 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2726 * minimon.h: Delete file.
2727
e66299b3
AC
2728 * trad-frame.c (trad_frame_get_this_base)
2729 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2730 functions.
2731 * trad-frame.h (trad_frame_set_this_base)
2732 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2733
1f67027d
AC
27342004-07-31 Andrew Cagney <cagney@gnu.org>
2735
2736 * trad-frame.c (trad_frame_get_prev_register): Rename
2737 trad_frame_get_prev_register.
2738 * vax-tdep.c (vax_frame_prev_register): Update.
2739 * trad-frame.h: Update.
2740 * trad-frame.c (trad_frame_get_register): Update.
2741 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2742 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2743 Update.
2744 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2745 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2746 Update.
2747 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2748 Update.
2749 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2750 Update.
2751 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2752 Update.
2753 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2754 Update.
2755 * s390-tdep.c (s390_frame_prev_register)
2756 (s390_stub_frame_prev_register)
2757 (s390_sigtramp_frame_prev_register): Update.
2758 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2759 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2760 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2761 * m88k-tdep.c (m88k_frame_prev_register)
2762 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2763 * m32r-tdep.c (m32r_frame_prev_register): Update.
2764 * hppa-tdep.c (hppa_frame_prev_register_helper)
2765 * frv-tdep.c (frv_frame_prev_register): Update.
2766 * d10v-tdep.c (d10v_frame_prev_register): Update.
2767 * cris-tdep.c (cris_frame_prev_register): Update.
2768 * avr-tdep.c (avr_frame_prev_register): Update.
2769 * arm-tdep.c (arm_prologue_prev_register)
2770 (arm_sigtramp_prev_register): Update.
2771
c1bf6f65
AC
27722004-07-31 Andrew Cagney <cagney@gnu.org>
2773
2774 * frame.h (legacy_saved_regs_unwind)
2775 (legacy_frame_chain_valid, legacy_frame_p)
2776 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2777 * dummy-frame.c (dummy_frame_this_id): Simplify.
2778 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2779 * frame.c (struct frame_info): Delete the field "type".
2780 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2781 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2782 (legacy_saved_regs_unwind, legacy_frame_p)
2783 (frame_type_from_pc): Delete.
2784 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2785 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2786
dc856692
MK
27872004-07-31 Mark Kettenis <kettenis@gnu.org>
2788
5a5effe1
MK
2789 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2790 indentation.
2791
d4fd50a6
MK
2792 * mips-nat.c: Remove file.
2793 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2794 (mips-nat.o): Remove dependency.
2795
2689df5a
MK
2796 * infptrace.c: Update copyright year.
2797 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2798 explicitly setting the buffer to all zeroes.
2799
dc856692
MK
2800 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2801 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2802
763910e0
AC
28032004-07-30 Andrew Cagney <cagney@gnu.org>
2804
2805 * GDB 6.2 released from gdb_6_2-branch.
2806
0b66e38c
EZ
28072004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2808
2809 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2810
2811 * exec.c (exec_file_attach):
2812 * nto-tdep.c (nto_find_and_open_solib):
2813 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2814 * solib.c (solib_open):
2815 * somsolib.c (som_solib_sizeof_symbol_table):
2816 * source.c (is_regular_file, openp, open_source_file):
2817 * symfile.c (symfile_bfd_open):
2818 * wince.c (upload_to_device): Differentiate between the search for
2819 binary and source files.
2820
be7d7357
AC
28212004-07-30 Andrew Cagney <cagney@gnu.org>
2822
2823 * complaints.c (_initialize_complaints): Pass NULL to
2824 add_setshow_zinteger_cmd for help_doc.
2825 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2826
ddc9cd0f
AC
28272004-07-30 Andrew Cagney <cagney@gnu.org>
2828
2829 Fix PR i18n/761.
2830 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2831 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2832 $(PACKAGE).pot and update-po.
2833 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2834 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2835 (update-po): New rules.
2836 (localedir): Define using autoconf.
2837 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2838 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2839 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2840 * configure.in: Generate CATALOGS and LINGUAS from contents of
2841 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2842 * configure: Re-generate.
2843 * po/gdbtext: New file
2844
e92f3704
JG
28452004-07-30 Jerome Guitton <guitton@gnat.com>
2846
2847 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2848 order.
2849
b0f35d58
DL
28502004-07-30 David Lecomber <dsl@sources.redhat.com>
2851
2852 * dwarf2read.c (read_file_scope): Set producer if attribute
2853 present.
2854 (struct dwarf2_cu): Added new member producer.
2855
ce7d4522
JG
28562004-07-30 Jerome Guitton <guitton@gnat.com>
2857
2858 * inflow.c (kill_command): release file handles in BFD.
2859 * exec.c (exec_file_attach): Ditto.
2860 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2861
05ee07c7
AC
28622004-07-29 Andrew Cagney <cagney@gnu.org>
2863
2864 * PROBLEMS (mips-irix): Note that it is broken.
2865
62eceb47
AC
28662004-07-29 Andrew Cagney <cagney@gnu.org>
2867
e57b8d41
AC
2868 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2869 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2870
d334389b
AC
2871 * config/xm-nbsd.h: Delete file.
2872 * config/arm/xm-nbsd.h: Delete file.
2873 * config/i386/xm-nbsd.h: Delete file.
2874 * config/ns32k/xm-nbsd.h: Delete file.
2875 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2876 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2877 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2878 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2879 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2880
e910f676
AC
2881 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2882 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2883 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2884 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2885 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2886 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2887
6fa856b9
AC
2888 * config/powerpc/xm-linux.h: Delete empty file.
2889 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2890 * config/powerpc/linux.mh (XM_FILE): Delete.
2891 * config/m68k/xm-linux.h: Delete empty file.
2892 * config/m68k/linux.mh (XM_FILE): Delete.
2893 * config/ia64/xm-linux.h: Delete empty file.
2894 * config/ia64/linux.mh (XM_FILE): Delete.
2895 * config/arm/xm-linux.h: Delete empty file.
2896 * config/arm/linux.mh (XM_FILE): Delete.
2897
471ae5ae
AC
2898 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2899 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2900 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2901 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2902 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2903 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2904 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2905 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2906
62eceb47
AC
2907 * config/m68k/xm-m68k.h: Delete file.
2908 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2909 copyright.
2910 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2911 * config/pa/xm-linux.h: Delete empty file.
2912 * config/pa/linux.mh (XM_FILE): Delete.
2913 * config/i386/xm-i386.h: Delete empty file.
2914 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2915 "i386/xm-i386.h".
2916 * config/i386/obsdaout.mh (XM_FILE): Delete.
2917 * config/i386/obsd64.mh (XM_FILE): Delete.
2918 * config/i386/fbsd64.mh (XM_FILE): Delete.
2919 * config/i386/nto.mh (XM_FILE): Delete.
2920 * config/i386/obsd.mh (XM_FILE): Delete.
2921 * config/i386/linux64.mh (XM_FILE): Delete.
2922 * config/i386/linux.mh (XM_FILE): Delete.
2923 * config/i386/i386sol2.mh (XM_FILE): Delete.
2924 * config/i386/i386gnu.mh (XM_FILE): Delete.
2925 * config/i386/fbsd.mh (XM_FILE): Delete.
2926 * config/i386/nbsd64.mh (XM_FILE): Delete.
2927
c35f4ffc
AC
29282004-07-29 Andrew Cagney <cagney@gnu.org>
2929
2930 * config/pa/xm-linux.h: Do not include "floatformat.h".
2931 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2932 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2933 * config/i386/xm-i386.h: Do not include "floatformat.h".
2934 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2935 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2936 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2937 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2938 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2939 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2940 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2941 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2942 * configure, config.in: Regenerate.
2943 * configure.host (gdb_host_float_format, gdb_host_double_format)
2944 (gdb_host_long_double_format): Set according to the host.
2945
624a44a3
AC
29462004-07-29 Andrew Cagney <cagney@gnu.org>
2947
2948 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2949
0dea2468
AC
29502004-07-28 Andrew Cagney <cagney@gnu.org>
2951
2952 * PROBLEMS: Mention threads/1650.
2953 * NEWS: Mention the NPTL fix.
2954
b3f42336
AC
29552004-07-28 Andrew Cagney <cagney@gnu.org>
2956
2957 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2958 (add_setshow_cmd_full): Make static.
2959 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2960 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2961 * cli/cli-decode.c (add_setshow_filename_cmd)
2962 (add_setshow_string_cmd): New functions.
2963 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2964 * mips-tdep.c (_initialize_mips_tdep): Update.
2965 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2966 * cli/cli-logging.c (_initialize_cli_logging): Update.
2967 * complaints.c (_initialize_complaints): Update.
2968 * remote.c (_initialize_remote): Update.
2969
3b64bf98
AC
29702004-07-28 Andrew Cagney <cagney@gnu.org>
2971
2972 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2973 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2974 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2975 print parameters. Make string parameters constant.
2976 * command.h: Update. Update copyright.
2977 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2978 * observer.c (_initialize_observer): Ditto.
2979 * frame.c (_initialize_frame): Ditto.
2980 * complaints.c (_initialize_complaints): Ditto.
2981 * maint.c (_initialize_maint_cmds): Ditto.
2982 * target.c (initialize_targets): Ditto.
2983 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2984 * infcall.c (_initialize_infcall): Ditto.
2985 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2986 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2987 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2988 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2989 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2990
e9667a65
AC
29912004-07-28 Andrew Cagney <cagney@gnu.org>
2992
54a5b07d
AC
2993 * gdbtypes.c (lookup_primitive_typename): Delete function.
2994 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2995 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2996 * gdbtypes.c (lookup_typename): Ditto.
2997 * f-exp.y (yylex): Ditto.
2998 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2999
e9667a65
AC
3000 * scm-lang.c (c_builtin_types): Delete extern declaration.
3001 (scm_language_defn): Replace
3002 string_char_type and primitive_type_vector with
3003 la_language_arch_info.
3004 * jv-lang.c (java_language_defn): Replace
3005 string_char_type and primitive_type_vector with
3006 la_language_arch_info.
3007 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3008 c_builtin_types in comment.
3009 * c-lang.h (struct language_arch_info): Declare opaque.
3010 (c_language_arch_info): Declare.
3011 (c_builtin_types): Delete declaration.
3012 * c-lang.c (c_language_arch_info): Set string_char_type to
3013 builtin_char, not builtin_true_char. Make global.
3014 (c_builtin_types): Delete array.
3015 (asm_language_defn, minimal_language_defn): Replace
3016 string_char_type and primitive_type_vector with
3017 la_language_arch_info.
3018
685419e2
AC
30192004-07-28 Andrew Cagney <cagney@gnu.org>
3020
3021 * gdbtypes.h (struct builtin_type): Rename true_char to
3022 builtin_true_char.
3023 * gdbtypes.c (gdbtypes_post_init): Update.
3024 * c-lang.c (arch_info): New function.
3025 (enum c_primitive_types): New enum.
3026 (c_language_defn): Instead of string_char_type and
3027 primitive_type_vector set la_language_arch_info.
3028
5a44ea29
AC
30292004-07-28 Andrew Cagney <cagney@gnu.org>
3030
3031 * language.h (struct language_arch_info): Fix typo
3032 s/primative/primitive/.
3033 * gdbtypes.c (lookup_primitive_typename): Ditto.
3034 * language.c (language_lookup_primitive_type_by_name)
3035 (unknown_language_arch_info): Ditto.
3036
f290d38e
AC
30372004-07-27 Andrew Cagney <cagney@gnu.org>
3038
3039 * defs.h (enum language): Add nr_languages.
3040 * language.h (struct language_arch_info): Define.
3041 (struct language_defn): Add la_language_arch_info.
3042 (language_lookup_primative_type_by_name): Declare.
3043 (language_string_char_type): Declare.
3044 * language.c (_initialize_language, language_gdbarch_post_init)
3045 (struct language_gdbarch, language_gdbarch_data): Implement
3046 per-architecture language information.
3047 (unknown_language_arch_info, language_string_char_type)
3048 (language_lookup_primative_type_by_name): New functions.
3049 (unknown_language_defn, auto_language_defn)
3050 (local_language_defn): Set la_language_arch_info to
3051 unknown_language_arch_info.
3052 (unknown_builtin_types): Delete.
3053 * gdbtypes.c (lookup_primitive_typename): Use
3054 language_lookup_primative_type_by_name.
3055 (create_string_type): Use language_string_char_type.
3056 * values.c (value_from_string): Use language_string_char_type.
3057 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3058 * p-lang.c (pascal_language_defn): Ditto.
3059 * m2-lang.c (m2_language_defn): Ditto.
3060 * jv-lang.c (java_language_defn): Ditto.
3061 * objc-lang.c (objc_language_defn): Ditto.
3062 * f-lang.c (f_language_defn): Ditto.
3063 * c-lang.c (c_language_defn, cplus_language_defn)
3064 (asm_language_defn, minimal_language_defn): Ditto.
3065
000177f0
AC
30662004-07-27 Andrew Cagney <cagney@gnu.org>
3067
3068 * gdbtypes.h (struct builtin_type): Declare.
3069 (builtin_type): Declare.
3070 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3071 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3072 (gdbtypes_post_init): New function.
3073 (builtin_type): New function.
3074
e22f895c
KI
30752004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3076
3077 * remote-m32r-sdi.c: Fix breakpoint bug.
3078 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3079 recv_char_data, recv_long_data): New functions to replace communication
3080 sequences.
3081
536517dd
MC
30822004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3083
3084 Document PR threads/1650.
3085 * PROBLEMS (Threads): Document problem with many threads
3086
a0a44d18
AC
30872004-07-26 Andrew Cagney <cagney@gnu.org>
3088
3089 * gdb-mi.el: Move from here ...
3090 * mi/gdb-mi.el: ... to here.
3091
7ac4ac06
AC
30922004-07-26 Andrew Cagney <cagney@gnu.org>
3093
3094 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3095 * main.c (captured_main): When in batch mode always detach.
3096
a1b461bf
AC
30972004-07-26 Andrew Cagney <cagney@gnu.org>
3098
3099 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3100 and h8300 as broken.
3101 * NEWS: END-OF-LIFE frame compatibility module.
3102 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3103 specific comments.
3104
cb1a6d5f
AC
31052004-07-26 Andrew Cagney <cagney@gnu.org>
3106
3107 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3108 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3109 * wince.c (_initialize_wince): Update.
3110 * win32-nat.c (_initialize_win32_nat): Update.
3111 * varobj.c (_initialize_varobj): Update.
3112 * valops.c (_initialize_valops): Update.
3113 * utils.c (initialize_utils, initialize_utils): Update.
3114 * tui/tui-win.c (_initialize_tui_win): Update.
3115 * top.c (init_main): Update.
3116 * symfile.c (_initialize_symfile): Update.
3117 * source.c (_initialize_source): Update.
3118 * somsolib.c (_initialize_som_solib): Update.
3119 * solib.c (_initialize_solib): Update.
3120 * solib-frv.c (_initialize_frv_solib): Update.
3121 * serial.c (_initialize_serial): Update.
3122 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3123 * remote.c (_initialize_remote, _initialize_remote): Update.
3124 * remote-vx.c (_initialize_vx): Update.
3125 * remote-utils.c (_initialize_sr_support): Update.
3126 * remote-sds.c (_initialize_remote_sds): Update.
3127 * remote-mips.c (_initialize_remote_mips): Update.
3128 * remote-e7000.c (_initialize_remote_e7000): Update.
3129 * proc-api.c (_initialize_proc_api): Update.
3130 * printcmd.c: Update.
3131 * parse.c (_initialize_parse): Update.
3132 * pa64solib.c (_initialize_pa64_solib): Update.
3133 * p-valprint.c (_initialize_pascal_valprint): Update.
3134 * monitor.c (_initialize_remote_monitors): Update.
3135 * mips-tdep.c (_initialize_mips_tdep): Update.
3136 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3137 * maint.c (_initialize_maint_cmds): Update.
3138 * lin-lwp.c (_initialize_lin_lwp): Update.
3139 * language.c (_initialize_language): Update.
3140 * kod.c (_initialize_kod): Update.
3141 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3142 * i386-tdep.c (_initialize_i386_tdep): Update.
3143 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3144 * gdbarch.sh: Update.
3145 * gdbarch.c: Re-generate.
3146 * gdb-events.sh: Update.
3147 * gdb-events.c: Re-generate.
3148 * frame.c (_initialize_frame): Update.
3149 * exec.c: Update.
3150 * demangle.c (_initialize_demangler): Update.
3151 * dcache.c (_initialize_dcache): Update.
3152 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3153 * cp-valprint.c (_initialize_cp_valprint): Update.
3154 * corefile.c (_initialize_core): Update.
3155 * command.h: Update.
3156 * cli/cli-decode.h: Update.
3157 * cli/cli-cmds.c (init_cli_cmds): Update.
3158 * charset.c (_initialize_charset): Update.
3159 * breakpoint.c (_initialize_breakpoint): Update.
3160 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3161 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3162 * aix-thread.c (_initialize_aix_thread): Update.
3163
b4632131
MK
31642004-07-24 Mark Kettenis <kettenis@gnu.org>
3165
3166 Partial fix for PR backtrace/1718.
3167 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3168 that GCC migrates into the prolugue. Don't handle any
3169 instructions that clobber %ebx.
3170
822c9732
AC
31712004-07-23 Andrew Cagney <cagney@gnu.org>
3172
3173 Use regcache_raw_collect instead of regcache_collect.
3174 * regcache.h (regcache_collect): Delete declaration.
3175 * regcache.c (regcache_colect): Delete function.
3176 * win32-nat.c (do_child_store_inferior_registers): Update.
3177 * sol-thread.c (sol_thread_store_registers): Update.
3178 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3179 * rs6000-nat.c (store_register): Update.
3180 * remote.c (store_register_using_P, remote_store_registers): Update.
3181 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3182 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3183 (fill_vrregset, store_spe_registers, fill_gregset)
3184 (fill_gregset): Update.
3185 * nto-procfs.c (procfs_store_registers): Update.
3186 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3187 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3188 * m68klinux-nat.c (store_register, fill_gregset): Update.
3189 * m68k-tdep.c (fill_gregset): Update.
3190 * infptrace.c (store_register): Update.
3191 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3192 * i386-linux-nat.c (store_register, fill_gregset): Update.
3193 * hppa-linux-nat.c (fill_gregset): Update.
3194 * go32-nat.c (store_register): Update.
3195 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3196 (store_fp_regs): Update.
3197 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3198 (store_nwfpe_extended, store_fpregister, store_fpregs)
3199 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3200 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3201 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3202 (store_regs_user_thread, store_regs_kernel_thread): Update.
3203
32b05c07
MK
32042004-07-24 Mark Kettenis <kettenis@gnu.org>
3205
3206 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3207 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3208 encoding.
3209 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3210 member of `struct comp_unit'.
3211
8567c30f
AC
32122004-07-23 Andrew Cagney <cagney@gnu.org>
3213
3214 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3215 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3216
f6da8dd8
MH
32172004-07-23 Martin Hunt <hunt@redhat.com>
3218 Kevin Buettner <kevinb@redhat.com>
3219
3220 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3221 alignment was being added to the offset instead of multiplied.
3222
bd921882
MK
32232004-07-23 Mark Kettenis <kettenis@gnu.org>
3224
24f033e8
MK
3225 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3226 changed signal trampoline in OpenBSD 3.5-current.
3227
90f3cecd
MK
3228 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3229 <machine/pcb.h> and "bsd-kvm.h".
3230 (sparc64nbsd_supply_pcb): New function.
3231 (_initialize_sparc64nbsd_nat): Renamed from
3232 _initialize_sparcnbsd_nat. Enable libkvm interface.
3233 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3234 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3235 (LOADLIBES): New variable.
3236
a4954a62
MK
3237 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3238
bd921882
MK
3239 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3240
23a6d369
AC
32412004-07-21 Andrew Cagney <cagney@gnu.org>
3242
3243 Use regcache_raw_supply instead of supply_register.
3244 * regcache.h (supply_register): Delete declaration.
3245 * regcache.c (supply_register): Delete function.
3246 * wince.c (do_child_fetch_inferior_registers): Update.
3247 * win32-nat.c (do_child_fetch_inferior_registers)
3248 (fetch_elf_core_registers): Update.
3249 * v850ice.c (v850ice_fetch_registers): Update.
3250 * thread-db.c (thread_db_store_registers): Update.
3251 * sol-thread.c (sol_thread_store_registers): Update.
3252 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3253 * rs6000-nat.c (fetch_register): Update.
3254 * rom68k-rom.c (rom68k_supply_one_register): Update.
3255 * remote.c (remote_wait, remote_async_wait): Update.
3256 * remote-st.c (get_hex_regs): Update.
3257 * remote-sim.c (gdbsim_fetch_register): Update.
3258 * remote-sds.c (sds_fetch_registers): Update.
3259 * remote-rdp.c (remote_rdp_fetch_register): Update.
3260 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3261 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3262 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3263 * remote-hms.c (init_hms_cmds): Update.
3264 * remote-est.c (init_est_cmds): Update.
3265 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3266 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3267 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3268 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3269 (fetch_register, supply_vrregset, supply_vrregset)
3270 (fetch_spe_registers): Update.
3271 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3272 * monitor.c (monitor_supply_register): Update.
3273 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3274 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3275 (mipsnbsd_supply_fpreg): Update.
3276 * mips-nat.c (fetch_inferior_registers)
3277 (fetch_core_registers): Update.
3278 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3279 (supply_fpregset, mips64_supply_gregset)
3280 (mips64_supply_fpregset): Update.
3281 * m68klinux-nat.c (fetch_register, supply_gregset)
3282 (supply_fpregset): Update.
3283 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3284 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3285 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3286 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3287 * infptrace.c (fetch_register): Update.
3288 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3289 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3290 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3291 (gnu_fetch_registers, gnu_store_registers): Update.
3292 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3293 * i386-linux-nat.c (fetch_register, supply_gregset)
3294 (dummy_sse_values): Update.
3295 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3296 * hppah-nat.c (fetch_register): Update.
3297 * hppa-linux-nat.c (fetch_register, supply_gregset)
3298 (supply_fpregset): Update.
3299 * go32-nat.c (fetch_register): Update.
3300 * dve3900-rom.c (fetch_bitmapped_register)
3301 (_initialize_r3900_rom): Update.
3302 * cris-tdep.c (supply_gregset): Update.
3303 * abug-rom.c (init_abug_cmds): Update.
3304 * core-aout.c (fetch_core_registers): Update.
3305 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3306 (fetch_register, fetch_fp_register): Update.
3307 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3308 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3309 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3310 * alphanbsd-tdep.c (fetch_core_registers): Update.
3311 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3312 * alpha-nat.c (fetch_osf_core_registers)
3313 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3314 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3315 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3316
73cc75f3
AC
33172004-07-21 Andrew Cagney <cagney@gnu.org>
3318
3319 * PROBLEMS: Mention breakpoints/1702.
3320 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3321 that is known to work.
3322
a53c66de
AC
33232004-07-21 Andrew Cagney <cagney@gnu.org>
3324
3325 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3326 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3327 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3328 (handle_inferior_event): Wrap call to deprecated
3329 IGNORE_HELPER_CALL in #ifdef.
3330 * config/mips/tm-nbsd.h: Update.
3331
708ff411
JB
33322004-07-20 Jim Blandy <jimb@redhat.com>
3333
412b3060
JB
3334 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3335 bfd_mach_ppc has no segment registers.
3336
13ac140c
JB
3337 Include PowerPC SPR numbers for special-purpose registers.
3338 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3339 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3340 new member in initializer.
3341 (S, S4, SN4, S64): New macros for defining special-purpose
3342 registers.
3343 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3344 registers_403, registers_403GC, registers_505, registers_860,
3345 registers_601, registers_602, registers_603, registers_604,
3346 registers_750, registers_e500): Use them.
3347
708ff411
JB
3348 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3349 replace references with expression used to initialize variable.
3350
1f602b35
AC
33512004-07-20 Andrew Cagney <cagney@gnu.org>
3352
3353 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3354 read_memory_nobpt.
3355 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3356 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3357 (s390_sigtramp_frame_sniffer): Update.
3358 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3359 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3360 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3361 (mips32_fetch_instruction): Update.
3362 * mcore-tdep.c (get_insn): Update.
3363 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3364 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3365 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3366 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3367 (i386_linux_rt_sigtramp_start): Update.
3368 * i386-linux-nat.c (child_resume): Update.
3369 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3370 * hppa-linux-tdep.c (insns_match_pattern): Update.
3371 * gdbcore.h: Update.
3372 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3373 * frame.c (safe_frame_unwind_memory): Update.
3374 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3375 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3376 * alpha-tdep.c (alpha_read_insn): Update.
3377
2cd8546d
AC
33782004-07-20 Andrew Cagney <cagney@gnu.org>
3379
3380 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3381 containing both bytes and mask. Add "frame_type".
3382 * tramp-frame.c (tramp_frame_start): Update.
3383 (tramp_frame_prepend_unwinder): Update.
3384 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3385 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3386 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3387 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3388
f928dd62
EZ
33892004-07-19 Eli Zaretskii <eliz@gnu.org>
3390
3391 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3392 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3393 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3394 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3395
d5c560f7
AC
33962004-07-17 Andrew Cagney <cagney@gnu.org>
3397
860660cb
AC
3398 * NEWS, PROBLEMS: Update for 6.2.
3399
8c266f54
AC
3400 * README: Update to 6.2.
3401
a552edd9
AC
3402 * utils.c (xvasprintf): Call xstrvprintf.
3403
c4a172b5
AC
3404 * parse.c: Update copyright.
3405 (null_post_parser): Eliminate ARGSUSED.
3406
da745b36
AC
3407 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3408 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3409 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3410
9cbc6ef0
AC
3411 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3412 * ppc-linux-nat.c: Use "Linux kernel".
3413 * hppa-linux-tdep.c: Use GNU/Linux.
3414 * hppa-linux-nat.c: Use GNU/Linux.
3415 * dwarfread.c: Add [sic] to use of Linux.
3416
1b89295f
AC
3417 * hppa-linux-nat.c: Do not include <string.h>.
3418 (supply_fpregset): Remove "register" attribute.
3419
d5c560f7
AC
3420 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3421
7ddd7709
MK
34222004-07-17 Mark Kettenis <kettenis@gnu.org>
3423
b1d19a62
MK
3424 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3425 * configure, config.in: Regenerated.
3426
7ddd7709
MK
3427 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3428 "bsd-kvm.h".
3429 (vaxbsd_supply_pcb): New function.
3430 (_initialize_vaxbsd_nat): New prototype and function.
3431 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3432 solib-sunos.o.
3433 (LOADLIBES): New variable.
3434 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3435 (LOADLIBES): New variable.
3436 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3437 (LOADLIBES): New variable.
3438 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3439
2c07db7a
AC
34402004-07-16 Andrew Cagney <cagney@gnu.org>
3441
3442 * defs.h (event_loop_p): Replace variable declaration with macro,
3443 always 1.
3444 * main.c (captured_main): Delete options "-async" and "-noasync".
3445 (event_loop_p): Delete variable.
3446 * NEWS: Mention that "-async" and "-noasync" were removed.
3447
717eb1cf
AC
34482004-07-16 Andrew Cagney <cagney@gnu.org>
3449
3450 * remote-m32r-sdi.c: Re-indent.
3451
c101bc14
JB
34522004-07-16 Jim Blandy <jimb@redhat.com>
3453
5109a438
JB
3454 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3455 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3456 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3457 missing MPC823 SPRs.
3458 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3459 incorrect. (This was corrected in GDB's register name tables on
3460 2004-07-14.)
3461
c101bc14
JB
3462 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3463 should be "esasrr" ("ESA Save and Restore Register").
3464
7ce450bd
AC
34652004-07-16 Andrew Cagney <cagney@gnu.org>
3466
3467 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3468 calls, no longer applicable. Update comments and rename parameter
3469 "step_frame" to "return_frame".
3470
ca73dd9d
AC
34712004-07-16 Andrew Cagney <cagney@gnu.org>
3472
3473 * frame.c (fprint_field): New function.
3474 (fprint_frame_id): Use fprint_field.
3475
31941f6d
JB
34762004-07-15 Joel Brobecker <brobecker@gnat.com>
3477
3478 * ada-lang.c (ada_language_defn): Remove commented out code.
3479
f86a7158
JB
34802004-07-15 Jim Blandy <jimb@redhat.com>
3481
3482 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3483 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3484
c24791ec
JB
34852004-07-14 Jim Blandy <jimb@redhat.com>
3486
29bb1356
JB
3487 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3488
cc98b5cc
JB
3489 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3490
8f088af7
JB
3491 * ppc-tdep.h (ppc_num_srs): New enum constant.
3492
0ea0ec5f
JB
3493 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3494 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3495 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3496 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3497 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3498 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3499 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3500 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3501 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3502 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3503 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3504 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3505 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3506 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3507 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3508 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3509 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3510 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3511 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3512 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3513 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3514 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3515 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3516 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3517 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3518 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3519 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3520 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3521 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3522 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3523 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3524 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3525 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3526 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3527 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3528 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3529 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3530 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3531 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3532 special-purpose register numbers.
3533
c24791ec
JB
3534 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3535 manual mentions 'md_twb', but many mention 'm_twb', and at that
3536 point in the register list.)
3537
d833db3b
AC
35382004-07-14 Andrew Cagney <cagney@gnu.org>
3539
3540 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3541 instead of "internal-error".
3542
080228b2
JB
35432004-07-10 Joel Brobecker <brobecker@gnat.com>
3544
3545 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3546 that was inserted inside a comment.
3547
c268433a
RC
35482004-07-10 Randolph Chung <tausq@debian.org>
3549
3550 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3551 function.
3552 (hppa_hpux_push_dummy_code): New function.
3553 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3554 Set find_global_pointer method.
3555
71009278
MK
35562004-07-10 Mark Kettenis <kettenis@gnu.org>
3557
3558 * NEWS: Mention BSD libkvm interface.
3559
b2fa5097
MS
35602004-07-10 Michael Snyder <msnyder@redhat.com>
3561
3562 * symfile.c (generic_load): Comment typo.
3563 * stack.c (get_selected_block): Ditto.
3564 * regcache.c (regcache_cooked_read): Ditto.
3565 * monitor.c (monitor_debug): Ditto.
3566 * mips-tdep.c (mips_read_pc): Ditto.
3567 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3568 * gdb_mbuild.sh: Ditto.
3569 * gdbarch.sh: Ditto.
3570 * gdbarch.h: Ditto.
3571
c3e5cd34
PH
35722004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3573
8a2225b2
PH
3574 * ada-tasks.c: Remove file.
3575
c3e5cd34
PH
3576 Remove ARI problems:
3577
3578 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3579 beginning of line.
3580
3581 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3582 Add comment.
3583 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3584 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3585 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3586 (UMIN_OF_SIZE): Remove.
3587 (max_of_type): New function to replace orphan macro in gdbtypes.h
3588 (min_of_type): Ditto.
3589 (discrete_type_high_bound): Use max_of_type.
3590 (discrete_type_low_bound): Use min_of_type.
3591 (possible_user_operator_p): Move operator to beginning of line.
3592 (ada_is_variant_part): Ditto.
3593 (ensure_lval): Rewrite to avoid deprecated operations.
3594 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3595 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3596 (ada_enum_name): Remove assignments in 'if' statements.
3597 (build_ada_types): Add gdbarch parameter.
3598 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3599 with gdbarch_data_register_post_init.
3600 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3601 add_show_from_set.
3602
3603 * ada-valprint.c (inspect_it): Remove declaration.
3604 (repeat_count_threshold): Remove declaration.
3605 (ada_print_floating): Remove assignments in 'if' statements.
3606 (print_str): Move operator to beginning of line.
3607
61ce229a
JB
36082004-07-08 Jim Blandy <jimb@redhat.com>
3609
3610 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3611
09bcec80
BR
36122004-07-08 Bob Rossi <bob@brasko.net>
3613
3614 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3615
31c27f77
JJ
36162004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3617
3618 * language.h (struct_language_defn): Add new function pointer:
3619 la_class_name_from_physname. Also add new prototype for
3620 language_class_name_from_physname.
3621 * language.c (language_class_name_from_physname): New function.
3622 (unk_lang_class_name): Ditto.
3623 (unknown_language_defn, auto_language_defn): Change
3624 to add unk_lang_class_name function pointer for
3625 la_class_name_from_physname.
3626 (local_language_defn): Ditto.
3627 * dwarf2read.c (guess_structure_name): Change to call
3628 language_class_name_from_physname.
3629 (determine_class_name): Ditto.
3630 * cp-support.c (class_name_from_physname): Renamed.
3631 (cp_class_name_from_physname): New name of function.
3632 * cp-support.h: Ditto.
3633 * c-lang.c (c_language_defn): Change to add NULL
3634 for class_name_from_physname function pointer.
3635 (cplus_language_defn): Change to add cp_class_name_from_physname.
3636 * jv-lang.c (java_class_name_physname): New function.
3637 (java_find_last_component): New static routine.
3638 (java_language_defn): Add java_class_name_from_physname pointer.
3639 * ada-lang.c (ada_language_defn): Change to add NULL
3640 for class_name_from_physname function pointer.
3641 * f-lang.c (f_language_defn): Ditto.
3642 * m2-lang.c (m2_language_defn): Ditto.
3643 * objc-lang.c (objc_language_defn): Ditto.
3644 * p-lang.c (pascal_language_defn): Ditto.
3645 * scm-lang.c (scm_language_defn): Ditto.
3646
ee28ca0f
AC
36472004-07-06 Andrew Cagney <cagney@gnu.org>
3648
3649 Patch from Bart Robinson.
3650 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3651 (O_LARGEFILE): Define to 0, if not defined.
3652
fdb1bf9d
MK
36532004-07-03 Mark Kettenis <kettenis@gnu.org>
3654
cb162ff6
MK
3655 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3656 <machine/pcb.h> and "bsd-kvm.h".
3657 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3658 (m68kbsd_supply_pcb): New function.
3659 (_initialize_m68kbsd_nat): New prototype and function.
3660 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3661 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3662 (LOADLIBES): New variable.
3663 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3664 (LOADLIBES): New variable.
3665
fdb1bf9d
MK
3666 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3667
963c4174
MK
36682004-07-03 Mark Kettenis <kettenis@gnu.org>
3669
3670 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3671 <sys/proc.h>.
3672 (bsd_kvm_cmdlist): New variable.
3673 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3674 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3675 command and "kvm proc" command.
3676 * Makefile.in (bsd-kvm.o): Update dependencies.
3677
533f1d8f
MK
36782004-07-02 Mark Kettenis <kettenis@gnu.org>
3679
3680 * osabi.c: Update copyright year.
3681 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3682 notes if EI_OSABI is set to ELFOSABI_HPUX.
3683
6780dcde
MS
36842004-07-01 Michael Snyder <msnyder@redhat.com>
3685
3686 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3687 that seems to have gotten whacked out of line.
3688
67bebe79
MK
36892004-07-01 Mark Kettenis <kettenis@gnu.org>
3690
3691 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3692 code.
3693
0b5d8877
PH
36942004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3695
3696 * ada-lang.c (decode_packed_array): Minor change to comment.
3697 (ada_value_slice_ptr): New function.
3698 (ada_value_slice): New function.
3699 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3700 test. Don't know why it is there.
3701 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3702 to avoid dereferencing huge arrays from which one is slicing.
3703 (empty_array): Correct to return an array rather than
3704 a subrange value.
3705 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3706 on empty arrays (let'em use 'FIRST instead).
3707
19c1ef65
PH
37082004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3709
3710 Address complaints from gdb_ari.sh:
3711
3712 * ada-exp.y: Include gdb_string.h rather than string.h.
3713 (convert_char_literal): Reformat declaration.
3714 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3715 * ada-lex.l: Change use of free to xfree (the macro would do so
3716 anyway, but this is harmless).
3717 Include gdb_string.h rather than string.h.
3718 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3719
3720 * ada-lang.c (parse): Remove K&Rism in parameter list.
3721 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3722
d81cbc94
MK
37232004-06-30 Mark Kettenis <kettenis@gnu.org>
3724
3725 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3726 dead code.
3727
07681759
MK
37282004-06-30 Mark Kettenis <kettenis@gnu.org>
3729
3730 * alphabsd-nat.c: Update copyright year.
3731 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3732
f7948b5f
JB
37332004-06-29 Joel Brobecker <brobecker@gnat.com>
3734
6e0cdd28 3735 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3736 (i386_cygwin_in_solib_call_trampoline): New function.
3737 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3738 and skip_trampoline_code gdbarch methods.
3739
8f113c9a
JB
37402004-06-29 Jim Blandy <jimb@redhat.com>
3741
3742 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3743 name actually used in the dependency lists.
3744
97dc871c
RC
37452004-06-29 Randolph Chung <tausq@debian.org>
3746
3747 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3748
47216e51
CV
37492004-06-29 Corinna Vinschen <vinschen@redhat.com>
3750
3751 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3752 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3753 functionality.
3754
e623b504
AC
37552004-06-28 Andrew Cagney <cagney@gnu.org>
3756
3757 * defs.h (xstrvprintf): Declare.
3758 * utils.c (xstrvprintf): New function.
3759 (internal_vproblem, xstrprintf, xasprintf)
3760 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3761 * serial.c (serial_printf): Ditto.
3762 * complaints.c (vcomplaint): Ditto.
3763
79acc9b3
CV
37642004-06-29 Corinna Vinschen <vinschen@redhat.com>
3765
3766 * infcmd.c (attach_command): Move call to target_terminal_inferior
3767 behind loading symbol table.
3768
1daf35d9
AC
37692004-06-28 Andrew Cagney <cagney@gnu.org>
3770
3771 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3772 change - add back extern deprecated_ui_loop_hook declaration.
3773
b435e160
AC
37742004-06-28 Andrew Cagney <cagney@gnu.org>
3775
3776 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3777 xstrprintf.
3778 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3779 (c_value_of_variable): Ditto.
3780 * utils.c (internal_vproblem): Ditto.
3781 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3782 * remote.c (add_packet_config_cmd): Ditto.
3783 * remote-rdp.c (rdp_set_command_line): Ditto.
3784 * regcache.c (regcache_dump): Ditto.
3785 * frv-tdep.c (new_variant, new_variant): Ditto.
3786 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3787 (fbsd_find_memory_regions): Ditto.
3788 * breakpoint.c (create_thread_event_breakpoint)
3789 (create_breakpoints): Ditto.
3790 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3791 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3792
06d5cf63
JB
37932004-06-28 Joel Brobecker <brobecker@gnat.com>
3794
3795 * ada-lang.c: Re-indent file, with some massaging to help indent
3796 a bit when the result is otherwise really too ugly.
3797
35809fad
UW
37982004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3799
3800 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3801 code_addr_p and special_addr_p to 'unsigned int'.
3802
40e20472
MK
38032004-06-27 Mark Kettenis <kettenis@gnu.org>
3804
3805 * i386v4-nat.c: Update copyright year and tweak comment.
3806 (regmap): Remove trailing comma.
3807 (supply_gregset): Rename local variable i to regnum. Call
3808 regcache_raw_supply instead of supply_register.
3809 (fill_gregset): Rename argument regno to regnum. Call
3810 regcache_raw_collect instead of regcache_collect.
3811
12b0b6de
UW
38122004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3813
3814 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3815 and special_addr_p.
3816 (frame_id_build, frame_id_build_special): Update comments.
3817 (frame_id_build_wild): New prototype.
3818 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3819 struct frame_id fields.
3820 (frame_id_build_wild): New function.
3821 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3822
47b42a3e
MK
38232004-06-27 Mark Kettenis <kettenis@gnu.org>
3824
3825 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3826 hppabsd-tdep.c.
3827
1265e4aa
JB
38282004-06-27 Joel Brobecker <brobecker@gnat.com>
3829
3830 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3831
76a01679
JB
38322004-06-27 Joel Brobecker <brobecker@gnat.com>
3833
3834 * ada-lang.c: Re-indent file.
3835
7aca490a
JB
38362004-06-27 Joel Brobecker <brobecker@gnat.com>
3837
3838 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3839 (no_symtab_msg): Likewise.
3840
5e987968
AS
38412004-06-27 Andreas Schwab <schwab@suse.de>
3842
3843 * source.c: Fix whitespace.
3844
315c4276
MK
38452004-06-27 Mark Kettenis <kettenis@gnu.org>
3846
d15be926
MK
3847 * configure.in: Include <sys/param.h> for td_pcb test.
3848 * configure: Regenerated.
3849
9062529b
MK
3850 * i386nbsd-nat.c: New file.
3851 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3852 i386obsd-nat.c and i386obsd-tdep.c.
3853 (i386nbsd-nat.o): New dependency.
3854 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3855 bsd-kvm.o.
3856 (LOADLIBES): New variable.
3857 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3858 bsd-kvm.o.
3859 (LOADLIBES): New variable.
3860
8010310e
MK
3861 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3862 (LOADLIBES): New variable.
3863
efe1d7b9
MK
3864 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3865 fetching from BSD_KVM_PADDR. Correctly lookup address for
3866 "_thread0".
3867
315c4276
MK
3868 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3869 "bsd-kvm.h".
3870 (amd64fbsd_supply_pcb): New funcion.
3871 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3872
399cfac6
DL
38732004-06-27 <david@streamline-computing.com>
3874
3875 Partial fix for PR cli/1056.
3876 * valarith.c: Check for zero in division and remainder
3877 evaluation.
3878
6235f9c8
MK
38792004-06-27 Mark Kettenis <kettenis@gnu.org>
3880
3881 * i387-tdep.c: Remove excessive whitespace.
3882
2726dafc
AC
38832004-06-26 Andrew Cagney <cagney@gnu.org>
3884
3885 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3886 * gdb-events.h, gdb-events.c: Re-generate.
3887 * tui/tui-hooks.c (tui_install_hooks): Update.
3888 (tui_remove_hooks): Update.
3889 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3890
0e56aeaf
MK
38912004-06-26 Mark Kettenis <kettenis@gnu.org>
3892
cb461069
MK
3893 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3894 (gregset_t, fpregset_t): Remove typedefs.
3895 (REG_OFFSET): Rename argument.
3896 (amd64bsd_r_reg_offset): Rename from reg_offset.
3897 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3898 Remove functions.
3899 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3900 of reg_offset.
3901 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3902
ecba89de
MK
3903 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3904
4cd80476
MK
3905 * vax-tdep.c: Tweak comment.
3906
0e56aeaf
MK
3907 Add OpenBSD/hppa support.
3908 * NEWS (New native configurations): Mention OpenBSD/hppa.
3909 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3910 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3911 files.
3912 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3913 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3914 * configure.host: Add hppa*-*-openbsd*.
3915 * configure.tgt: Add hppa*-*-openbsd*.
3916
98bbd631
AC
39172004-06-25 Andrew Cagney <cagney@gnu.org>
3918
3919 * defs.h (deprecated_ui_loop_hook): Deprecated.
3920 * wince.c (child_wait): Update.
3921 * win32-nat.c (child_wait): Update.
3922 * v850ice.c (v850ice_wait): Update.
3923 * top.c (deprecated_ui_loop_hook): Update.
3924 * serial.h: Update.
3925 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3926 (do_unix_readchar): Update.
3927 * ser-tcp.c (net_open): Update.
3928 * remote-sim.c (gdb_os_poll_quit): Update.
3929 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3930
769d7dc4
AC
39312004-06-24 Andrew Cagney <cagney@gnu.org>
3932
3933 * defs.h (deprecated_pre_add_symbol_hook)
3934 (deprecated_post_add_symbol_hook): Deprecated.
3935 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3936 (symbol_file_add_with_addrs_or_offsets): Update references.
3937
11c949aa
AC
39382004-06-24 Andrew Cagney <cagney@gnu.org>
3939
3940 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3941 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3942 * wince.c (ui_loop_hook): Delete extern declaration.
3943 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3944 * v850ice.c (ui_loop_hook): Delete extern declaration..
3945 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3946 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3947 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3948 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3949 ui_loop_hook declaration.
3950
eedc19af
AC
39512004-06-24 Andrew Cagney <cagney@gnu.org>
3952
3953 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3954 entry_func_highpc fields.
3955 * objfiles.c (init_entry_point_info): Do not clear
3956 entry_func_lowpc and entry_func_highpc.
3957 (objfile_relocate): Do not relocate entry_func_lowpc and
3958 entry_func_highpc.
3959 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3960 entry_func_highpc.
3961 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3962 entry_func_highpc.
3963 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3964 entry_func_lowpc and entry_func_highpc with call to
3965 inside_entry_func.
3966
d47079be
MK
39672004-06-24 Mark Kettenis <kettenis@gnu.org>
3968
3969 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3970 quad-precision floating point arguments in registers.
3971
2107e348
MK
39722004-06-24 Mark Kettenis <kettenis@gnu.org>
3973
3974 From Michael Mueller <m.mueller99@kay-mueller.de>:
3975 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3976 account.
3977
46587c42
JJ
39782004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3979
3980 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3981 to -1.
3982 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3983 untriggered watchpoints to a separate if clause. Update function
3984 comment regarding STOPPED_BY_WATCHPOINT argument.
3985
226f5cf4
JB
39862004-06-22 Jim Blandy <jimb@redhat.com>
3987
3988 * gdbarch.sh: Doc fix.
3989
f10683bb
MH
39902004-06-21 Martin Hunt <hunt@redhat.com>
3991 Kevin Buettner <kevinb@redhat.com>
3992
3993 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3994 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3995 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3996 to set_gdbarch_sp_regnum(). Use cooked register number.
3997 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3998
412d5987
AC
39992004-06-21 Andrew Cagney <cagney@gnu.org>
4000
4001 * gdbarch.sh: When the macro field is empty, do not generate a
4002 macro definition. When the macro field is "=", generate the macro
4003 name from the upper-case function name.
4004 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4005 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4006 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4007 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4008 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4009 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4010 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4011 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4012 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4013 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4014 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4015 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4016 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4017 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4018 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4019 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4020 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4021 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4022 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4023 (DEPRECATED_USE_STRUCT_CONVENTION)
4024 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4025 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4026 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4027 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4028 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4029 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4030 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4031 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4032 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4033 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4034 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4035 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4036 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4037 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4038 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4039 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4040 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4041 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4042
68908a3e
AC
40432004-06-21 Andrew Cagney <cagney@gnu.org>
4044
48f7351b
AC
4045 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4046 macro name, and the function rather than macro value. Only wrap
4047 macro print statements in #ifdef. Move format logic to where it
4048 is needed.
4049 * gdbarch.c: Re-generate.
4050
283354d8
AC
4051 * gdbarch.sh (read): Delete "print_p" and "description", add
4052 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4053 Delete references to print_p.
4054 (TARGET_ARCHITECTURE): Delete print predicate.
4055 * gdbarch.c: Re-generate.
4056
68908a3e
AC
4057 * gdbarch.sh: Check that multi-arch methods do not provide a
4058 macro.
4059 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4060 (print_registers_info, print_float_info, print_vector_info)
4061 (adjust_breakpoint_address, remote_translate_xfer_address)
4062 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4063 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4064 name from the multi-arch definition.
4065
a2428dbe
AC
40662004-06-20 Andrew Cagney <cagney@gnu.org>
4067
4068 * gdbarch.sh: Sort by the function, instead of macro name.
4069 * gdbarch.c: Re-generate.
4070
750eb019
AC
40712004-06-20 Andrew Cagney <cagney@gnu.org>
4072
66d659b1
AC
4073 * gdbarch.sh: Use the function, instead of macro name in
4074 errors and the log file.
4075 (return_value): Remove stray ":" in spec.
4076
750eb019
AC
4077 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4078 * gdbarch.h, gdbarch.c: Re-generate.
4079 * Makefile.in (arch-utils.o): Update dependencies.
4080 * values.c (using_struct_return): Move code calling
4081 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4082 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4083 to legacy_return_value, simplify.
4084 * infcmd.c (print_return_value): Move code calling
4085 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4086 to legacy_return_value, simplify.
4087 * infcall.c (call_function_by_hand): Move code calling
4088 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4089 * arch-utils.c: Update copyright. Include "gdbcore.h".
4090 (legacy_return_value): New function.
4091 * arch-utils.h: Update copyright.
4092 (legacy_return_value): Declare.
4093
b5622e8d
AC
40942004-06-20 Andrew Cagney <cagney@gnu.org>
4095
4096 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4097 * gdbarch.h, gdbarch.c: Re-generate.
4098 * values.c (using_struct_return): Update call.
4099 * mcore-tdep.c: Update comment.
4100 * infcall.c (call_function_by_hand): Update comment.
4101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4102 * arch-utils.h (always_use_struct_convention): Update.
4103 * v850-tdep.c (v850_gdbarch_init): Update.
4104 * sh64-tdep.c (sh64_gdbarch_init): Update.
4105 * sh-tdep.c (sh_gdbarch_init): Update.
4106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4107 * mips-tdep.c (mips_gdbarch_init): Update.
4108 * mcore-tdep.c (mcore_gdbarch_init): Update.
4109 * m32r-tdep.c (m32r_gdbarch_init): Update.
4110 * ia64-tdep.c (ia64_gdbarch_init): Update.
4111 * h8300-tdep.c (h8300_gdbarch_init): Update.
4112 * frv-tdep.c (frv_gdbarch_init): Update.
4113 * cris-tdep.c (cris_gdbarch_init): Update.
4114 * arm-tdep.c (arm_gdbarch_init): Update.
4115 * alpha-tdep.c (alpha_gdbarch_init): Update.
4116
5191de37
MC
41172004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4118
4119 * PROBLEMS: Add more specific information, and a work-around,
4120 for PR gdb/1458.
4121
782263ab
AC
41222004-06-18 Andrew Cagney <cagney@gnu.org>
4123
4124 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4125 * gdbarch.h, gdbarch.c: Re-generate.
4126 * ada-lang.c (ada_finish_decode_line_1): Update.
4127 * infrun.c (handle_inferior_event): Update.
4128 * infcall.c (find_function_addr): Update.
4129 * linespec.c (minsym_found): Update.
4130 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4131 Update.
4132 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4133 * cli/cli-cmds.c (disassemble_command): Update.
4134 * vax-tdep.c (vax_gdbarch_init): Update.
4135
2f305df1
MK
41362004-06-18 Mark Kettenis <kettenis@gnu.org>
4137
4138 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4139
e5fe55f7
AC
41402004-06-17 Andrew Cagney <cagney@gnu.org>
4141
4142 GDB 6.1.1 released from the GDB 6.1 branch.
4143 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4144 * PROBLEMS: Ditto.
4145
473b7be6
DJ
41462004-06-16 Daniel Jacobowitz <dan@debian.org>
4147
4148 PR gdb/1658
4149 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4150 operation as a uleb128. Found by Michael Coulter.
4151
96d887e8
PH
41522004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4153
4154 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4155 make it non-static.
4156 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4157 to ada-lang.h; this is needed to be able to implement the kill command
4158 in multi-task mode.
4159 (task_ptid): Ditto.
4160 (task_entry): Ditto.
4161 (task_list): Ditto.
4162 (ada_build_task_list): Ditto.
4163
4164 * ada-lang.c: Conditionalize routines and data structures related
4165 to breakpoints, exceptions, completion, and symbol caching on
4166 GNAT_GDB, since these are not yet used in the submitted public sources.
4167 (ada_main_name): Editorial: Move definition out of exception-related
4168 code.
4169
31eef181
AC
41702004-06-15 Andrew Cagney <cagney@gnu.org>
4171
4172 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4173 deprecated_pc_in_call_dummy.
4174
2c500098
AM
41752004-06-15 Alan Modra <amodra@bigpond.net.au>
4176
4177 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4178 bfd_get_section_size_before_reloc or _raw_size.
4179 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4180 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4181 (dwarf2_read_section): Likewise.
4182 * elfread.c (elf_locate_sections): Likewise.
4183 * gcore.c (derive_heap_segment): Likewise.
4184 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4185 * remote-e7000.c (e7000_load): Likewise.
4186 * remote-m32r-sdi.c (m32r_load): Likewise.
4187 * remote-mips.c (mips_load_srec): Likewise.
4188 (pmon_load_fast): Likewise.
4189 * remote.c (compare_sections_command): Likewise.
4190 * symfile.c (add_section_size_callback): Likewise.
4191 (load_section_callback): Likewise.
4192 (pc_in_unmapped_range): Likewise.
4193 (pc_in_mapped_range): Likewise.
4194 (sections_overlap): Likewise.
4195 (list_overlays_command): Likewise.
4196 (simple_overlay_update_1): Likewise.
4197 (simple_overlay_update): Likewise.
4198 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4199 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4200
90f943f1
RC
42012004-06-14 Randolph Chung <tausq@debian.org>
4202
4203 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4204 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4205 static.
4206 (hppa_hpux_inferior_created): New function.
4207 (hppa_hpux_init_abi): Register observer.
4208 * symfile.c (hp_cxx_exception_support_initialized)
4209 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4210 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4211
700c15aa
RC
42122004-06-14 Randolph Chung <tausq@debian.org>
4213
3973a7d3
AC
4214 * MAINTAINERS (Write After Approval): Alphabetize my entry
4215 correctly.
700c15aa 4216
cea4838c
AC
42172004-06-14 Andrew Cagney <cagney@gnu.org>
4218
4219 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4220 testsuite maintainer.
4221
97092415
AC
42222004-06-13 Andrew Cagney <cagney@gnu.org>
4223
e8c3165b
AC
4224 * infcmd.c (print_return_value): Fix logic, allow
4225 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4226
bceabdd8
AC
4227 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4228 defining any macros.
4229 * gdbarch.h: Re-generate.
4230
57010b1c
AC
4231 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4232 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4233 * gdbarch.h: Re-generate.
4234
bc87dfa0
AC
4235 * values.c (generic_use_struct_convention): Don't check gcc_p.
4236
15ac804d
AC
4237 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4238 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4239 * gdbarch.h, gdbarch.c: Regenerate.
4240 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4241 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4243 deprecated_max_register_raw_size and
4244 deprecated_max_register_virtual_size.
4245 * v850-tdep.c (v850_gdbarch_init): Ditto.
4246 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4247 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4248 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4249 * cris-tdep.c (cris_gdbarch_init): Ditto.
4250
97092415
AC
4251 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4252 * gdbarch.h, gdbarch.c: Re-generate.
4253 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4254 (m68hc11_use_struct_convention): Delete function.
4255 (m68hc11_extract_struct_value_address): Delete function.
4256 (m68hc11_return_value): New function.
4257 (m68hc11_gdbarch_init): Instead of store_return_value,
4258 extract_return_value, return_value_on_stack,
4259 deprecated_extract_struct_value_address and use_struct_convention,
4260 set return_value.
4261 * values.c (using_struct_return): Do not call
4262 RETURN_VALUE_ON_STACK.
4263 * arch-utils.h (generic_return_value_on_stack_not): Delete
4264 declaration.
4265 * arch-utils.c (generic_return_value_on_stack_not): Delete
4266 function.
4267
44e5158b
AC
42682004-06-12 Andrew Cagney <cagney@gnu.org>
4269
4270 * values.c (register_value_being_returned): Delete function.
4271 * infcmd.c (legacy_return_value): Delete function.
4272 * infcall.c (call_function_by_hand): Inline
4273 "register_value_being_returned", simplify.
4274 * values.c (using_struct_return): Update comment, refer to
4275 print_return_value instead of register_value_being_returned.
4276 * infcmd.c (print_return_value): Inline calls to
4277 register_value_being_returned and legacy_return_value. Simplify.
4278
b887c273
RC
42792004-06-11 Randolph Chung <tausq@debian.org>
4280
4281 * somread.c (som_symtab_read): Exclude gcc local symbols.
4282
1b2bfbb9
RC
42832004-06-11 Randolph Chung <tausq@debian.org>
4284
3973a7d3
AC
4285 * infrun.c (handle_inferior_event): Handle the case when a
4286 trampoline ends up in the runtime resolver, and if the trampoline
4287 has no name. Rearrange the code so that all the trampoline
4288 processing happens before other step-out-of-range handling.
1b2bfbb9 4289
a9d61c86
MH
42902004-06-11 Martin Hunt <hunt@redhat.com>
4291
4292 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4293 has no fpu.
4294
2c87cf5a
AC
42952004-06-10 Andrew Cagney <cagney@gnu.org>
4296
4297 * blockframe.c (legacy_inside_entry_func): Delete.
4298 (legacy_frame_chain_valid): Inline call to
4299 legacy_inside_entry_func, simplify.
4300
0b67b468 43012004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4302
4303 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4304 * dwarf2read.c (partial_die_info): Add dirname field.
4305 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4306 (read_partial_die): Save away DW_AT_comp_dir.
4307 * defs.h (symtab_to_filename): Removed.
4308 * source.c (find_and_open_source): Added.
57c22c6c 4309 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4310 (symtab_to_filename): Removed.
4311 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4312 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4313 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4314 symtab_to_filename.
4315 * symtab.h (partial_symtab): Add dirname field.
4316 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4317 (mi_cmd_file_list_exec_source_file): Call new function
4318 symtab_to_fullname to find fullname.
57c22c6c 4319 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4320 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4321 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4322
9a1dd1ad
AC
43232004-06-10 Andrew Cagney <cagney@gnu.org>
4324
239ae8c7
AC
4325 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4326 to generic_use_struct_convention, the default value.
4327
fc720350
AC
4328 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4329 of abort.
4330
9a1dd1ad
AC
4331 * ns32k-tdep.c (ns32k_push_arguments): New function.
4332 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4333 * infcall.c (call_function_by_hand): Call error instead of
4334 legacy_push_arguments.
4335 * value.h (legacy_push_arguments): Delete declaration.
4336 * valops.c (legacy_push_arguments): Delete function.
4337 (value_push): Delete function.
4338
fea25152
BF
43392004-06-10 Brian Ford <ford@vss.fsi.com>
4340
4341 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4342 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4343 info.
4344 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4345
30a4a8e0
AC
43462004-06-10 Andrew Cagney <cagney@gnu.org>
4347
4348 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4349 * gdbarch.h, gdbarch.c: Re-generate.
4350 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4351 parameters.
4352 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4353 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4354 deprecated_pc_in_call_dummy instead of
4355 DEPRECATED_PC_IN_CALL_DUMMY.
4356 (arm_skip_prologue): Ditto.
4357 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4358 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4359 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4360 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4361 Ditto.
4362 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4363 (sh64_init_extra_frame_info, sh64_get_saved_register)
4364 (sh64_pop_frame): Ditto.
4365 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4366 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4367 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4368 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4369 (h8300_pop_frame): Ditto.
4370 * blockframe.c (legacy_inside_entry_func)
4371 (legacy_frame_chain_valid): Ditto.
4372 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4373 to deprecated_pc_in_call_dummy.
4374
81cfbe54
AC
43752004-06-09 Andrew Cagney <cagney@gnu.org>
4376
a1f4a1b6
AC
4377 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4378 provide a default value.
4379 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4380 * gdbarch.h, gdbarch.c: Re-generate.
4381 * arch-utils.c (generic_convert_register_p): Rename
4382 legacy_convert_register_p
4383 (legacy_register_to_value, legacy_value_to_register): Delete
4384 functions.
4385 * arch-utils.h (generic_convert_register_p): Rename
4386 legacy_convert_register_p.
4387 (legacy_register_to_value, legacy_value_to_register): Delete
4388 declarations.
4389
9730f241
AC
4390 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4391 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4392 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4393 * gdbarch.h, gdbarch.c: Re-generate.
4394 * infcmd.c (default_print_registers_info): Simplify.
4395 * findvar.c (value_of_register): Simplify.
4396 * mi/mi-main.c (get_register): Simplify.
4397 * arch-utils.c (legacy_convert_register_p): Always return 0.
4398 (legacy_register_to_value, legacy_value_to_register): Always call
4399 internal_error.
4400
8a1bf479
AC
4401 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4402 #ifdef CLEAR_INSN_CACHE code.
4403 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4404 Delete #ifdef CLEAR_DEFERRED_STORES code.
4405
4b38d6f1
AC
4406 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4407
2d62ecc7
AC
4408 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4409 copyright.
4410 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4411
be4f7469
AC
4412 * config/mips/mipsv4.mh: Delete file.
4413
81cfbe54
AC
4414 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4415 unreferenced macro.
4416 (hpread_adjust_stack_address): Delete declaration.
4417
d966f0cb
AC
44182004-06-08 Andrew Cagney <cagney@gnu.org>
4419
4420 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4421 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4422 PTRACE_ATTACH / PTRACE_DETACH available call error.
4423 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4424 * infttrace.c (update_thread_state_after_attach, attach, detach):
4425 Remove #ifdef wrappers.
4426 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4427 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4428 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4429 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4430 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4431 * config/nm-linux.h (ATTACH_DETACH): Delete.
4432 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4433 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4434 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4435 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4436 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4437
d91670b9
CV
44382004-06-08 Corinna Vinschen <vinschen@redhat.com>
4439
4440 * configure.in: Set $configdir to the right OS specific value.
4441 Use value when setting $tcldir and $tkdir.
4442 * configure: Regenerate.
4443
28ba0b33
PB
44442004-06-06 Paul Brook <paul@codesourcery.com>
4445
4446 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4447 records.
4448
f26caa11
PH
44492004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4450
4451 * ada-lang.c (lookup_symbol_in_language): New function to allow
4452 re-use of another language's symbol lookup code. (Placed here
4453 temporarily while Ada support is being integrated into the public
4454 tree).
4455 (restore_language): New auxiliary function for
4456 lookup_symbol_in_language.
4457 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4458 temporarily while Ada support is being integrated into the public
4459 tree).
4460
d560a54b
AO
44612004-06-08 Alexandre Oliva <aoliva@redhat.com>
4462
e75d110c
AO
4463 * Makefile.in (check//%): New.
4464
d560a54b
AO
4465 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4466 (mn10300_store_return_value): Rewrite.
4467 (mn10300_type_align): New.
4468 (mn10300_use_struct_convention): Rewrite.
4469 (mn10300_return_value): New, using all of the above.
4470 (mn10300_pop_frame_regular): Add saved_regs_size.
4471 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4472
a72fbdb7
AO
4473 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4474 regs if PC is on movm.
4475
01904826
JB
44762004-06-07 Jim Blandy <jimb@redhat.com>
4477
4478 Add native Linux support for the PowerPC E500.
4479 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4480 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4481 all architectures except the E500.
4482 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4483 #definitions.
4484 (struct gdb_evrregset_t): New type.
4485 (have_ptrace_getsetevrregs): New variable.
4486 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4487 fetch_spe_registers): New functions.
4488 (fetch_register): Call fetch_spe_register as appropriate.
4489 Assert that we're only passed raw register numbers.
4490 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4491 Don't fetch gprs if they're pseudoregisters.
4492 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4493 store_spe_registers): New functions.
4494 (store_register): Call store_spe_register as appropriate.
4495 Assert that we're only passed raw register numbers.
4496 (store_ppc_registers): Call store_spe_registers as appropriate.
4497 Don't store gprs if they're pseudoregisters.
4498
f90ef764
JJ
44992004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4500
4501 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4502 struct if one exists, even if we are dealing with a zombie thread.
4503
45b75230
AC
45042004-06-07 Andrew Cagney <cagney@gnu.org>
4505
4506 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4507 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4508 Rename PC_REQUIRES_RUN_BEFORE_USE.
4509 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4510 #ifdef.
4511
1658da49
RC
45122004-06-07 Randolph Chung <tausq@debian.org>
4513
4514 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4515 unwinding after sp has been saved to the stack but before the end
4516 of the prologue, and after the fp has been modified but before it has
4517 been saved to the stack.
4518 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4519 Remove superfluous definitions.
4520 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4521
9a727a3c
RC
45222004-06-07 Guy Martin <gmsoft@gentoo.org>
4523
4524 Committed by Randolph Chung.
4525 * hppa-linux-nat.c: Include the correct version of the header file
4526 depending on the kernel version.
4527
9e500012
RC
45282004-06-06 Randolph Chung <tausq@debian.org>
4529
4530 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4531 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4532
3388d7ff
RC
45332004-06-06 Randolph Chung <tausq@debian.org>
4534
4535 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4536 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4537 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4538 * hppa-tdep.c (hppa_symbol_address): New function definition.
4539 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4540
d49771ef
RC
45412004-06-06 Randolph Chung <tausq@debian.org>
4542
4543 * hppa-tdep.h (struct value): Forward declaration.
4544 (gdbarch_tdep): Define tdep find_global_pointer method.
4545 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4546 associated with the function we are trying to call, and write it
4547 to the gp register.
4548 (hppa32_convert_from_funct_ptr_addr): New function.
4549 (hppa_find_global_pointer): New function.
4550 (hppa_gdbarch_init): Set default find_global_pointer method; set
4551 convert_from_func_ptr_addr method.
4552 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4553 (hppa_linux_init_abi): Set find_global_pointer method.
4554 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4555
7d9b040b
RC
45562004-06-06 Randolph Chung <tausq@debian.org>
4557
4558 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4559 to struct value *function.
4560 * gdbarch.c: Regenerate.
4561 * gdbarch.h: Likewise.
4562 * infcall.c (call_function_by_hand): Pass entire function value
4563 to push_dummy_call.
4564
4565 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4566 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4567 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4568 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4569 * arm-tdep.c (arm_push_dummy_call): Likewise.
4570 * avr-tdep.c (avr_push_dummy_call): Likewise.
4571 * cris-tdep.c (cris_push_dummy_call): Likewise.
4572 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4573 * frv-tdep.c (frv_push_dummy_call): Likewise.
4574 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4575 * hppa-tdep.c (hppa32_push_dummy_call)
4576 (hppa64_push_dummy_call): Likewise.
4577 * i386-tdep.c (i386_push_dummy_call): Likewise.
4578 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4579 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4580 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4581 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4582 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4583 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4584 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4585 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4586 (ppc64_sysv_abi_push_dummy_call): Likewise.
4587 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4588 (ppc64_sysv_abi_push_dummy_call): Likewise.
4589 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4590 * s390-tdep.c (s390_push_dummy_call): Likewise.
4591 * sh-tdep.c (sh_push_dummy_call_fpu)
4592 (sh_push_dummy_call_nofpu): Likewise.
4593 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4594 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4595 * vax-tdep.c (vax_push_dummy_call): Likewise.
4596
4a19ea35
JB
45972004-06-04 Jim Blandy <jimb@redhat.com>
4598
8327ccee
JB
4599 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4600 gdbarch argument to register_size.
4601
a3c001ce
JB
4602 * rs6000-tdep.c (rs6000_store_return_value): Use
4603 regcache_cooked_write_part instead of
4604 deprecated_write_register_bytes.
4605 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4606 not gdbarch_deprecated_store_return_value.
4607
4a19ea35
JB
4608 * ppc-linux-nat.c (store_register, fetch_register): Remove
4609 incorrect assertions. Simplify and generalize handling of
4610 transfers whose sizes are not multiples of, or less than, sizeof
4611 (PTRACE_XFER_TYPE).
4612
b9b5d7ea
JJ
46132004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4614
4615 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4616 as a new thread event.
720c7d64 4617 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4618 zombie, return TD_THR_ZOMBIE.
720c7d64 4619 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4620 TD_THR_ZOMBIE, check if the thread is still on the thread list
4621 and return a -1 ptid if not found.
4622 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4623 change the status to TARGET_WAITKIND_SPURIOUS.
4624
c8a3b559
CV
46252004-06-03 Corinna Vinschen <vinschen@redhat.com>
4626
4627 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4628 double values in little endian mode.
4629
20605361
AC
46302004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4631
4632 Committed by Andrew Cagney.
4633 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4634 after last enum constant to avoid error from IBM C
4635 compiler.
4636
bc97b3ba
JB
46372004-06-02 Jim Blandy <jimb@redhat.com>
4638
4639 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4640 to 'message', and make it local to the lone block that uses it.
4641
1da28ab0
JB
4642 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4643
4c4b4cd2
PH
46442004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4645
8a2225b2
PH
4646 * ada-exp.y: Update copyright notice.
4647 Include block.h.
4648
4649 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4650 SPECIAL_VARIABLE and unify the treatment of these cases.
4651
4652 (write_attribute_call0): Remove.
4653 (write_attribute_call1): Remove.
4654 (write_attribute_calln): Remove.
4655 (save_qualifier): Add missing semicolon.
4656
4657 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4658 temporarily disabled to allow compilation with FSF head version.
4659
4660 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4661 use individual operators (OP_*) for all attributes.
4662 (exp syntax): Use write_int.
4663 Handle STRING literals with OP_STRING.
4664 (variable syntax): Add limit parameter to calls to
4665 write_object_renaming.
4666
4667 (temp_parse_space): New definition to hold entities that need
4668 only live until the next call to ada_parse.
4669 (string_to_operator): Rename fields of ada_opname_table entries.
4670
4671 (write_var_from_sym): Record block.
4672 (write_var_from_name): Minor reformatting.
4673 Make sure saved name is properly encoded in the case of multiple
4674 matches, and set its language to Ada.
4675 Update comment.
4676 Modify to indicate unresolved name as symbol in the UNRESOLVED
4677 namespace, allocated in temp_parse_space.
4678 (write_int): New function.
4679
4680 (write_object_renaming): Add max_depth parameter to limit
4681 chains of object renamings.
4682 Handle case where root of renaming expression is itself a renaming.
4683 Use temp_parse_space for temporary name buffer.
4684 Handle renamings to dereferenced pointers (___XEXA suffices).
4685
4686 (ada_parse, yyerror, string_to_operator,
4687 write_var_from_sym, write_var_from_name, write_attribute_call0,
4688 write_attribute_call1, write_attribute_calln,
4689 write_object_renaming): Protoize.
4690
4691 (_initialize_ada_exp): New function.
4692
4693 * ada-lang.c: Update copyright notice.
4694 General terminology change to conform to GNAT compiler usage:
4695 mangle => encode, demangle => decode
4696 Include gdb_obstack.h.
4697 Include gdb_regex.h
4698 Include frame.h
4699 Include hashtab.h
4700 Include completer.h
4701 Include gdb_stat.h
4702 Include block.h
4703 Include infcall.h
4704
4705 (ADA_RETAIN_DOTS): Make sure this is defined.
4706 (TRUNCATION_TOWARDS_ZERO): Define.
4707 (struct string_vector): Define.
4708 (unresolved_names): Remove definition.
4709 (xnew_string_vector): New function.
4710 (string_vector_append): New function.
4711 (extract_string): Make static.
4712 (ada_unqualified_name): New function.
4713 (add_angle_brackets): New function.
4714 (function_name_from_pc): New function.
4715 (place_on_stack): Rename to ensure_lval.
4716
4717 (ensure_lval): Renamed from place_on_stack.
4718 Make identity on lvals.
4719 Update comment.
4720 (is_nonfunction): New interface.
4721 Only symbols in LOC_CONST class can be enumerals.
4722 (fill_in_ada_prototype): Remove; now independent of language.
4723 (add_defn_to_vec): Add obstack and symtab arguments.
4724 Use obstack to hold collected definitions.
4725 (num_defns_collected): New function.
4726 (defns_collected): New function.
4727 (ada_resolve_subexp): Rename to resolve_subexp.
4728 (resolve_subexp): Renamed from ada_resolve_subexp.
4729 (ada_op_name): Return non-const result.
4730 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4731 other purposes.
4732
4733 (to_fixed_array_type): Add declaration.
4734 (coerce_unspec_val_to_type): Remove offset parameter.
4735 (find_sal_from_funcs_and_line): New interface.
4736 (find_line_in_linetable): Ditto.
4737
4738 (all_sals_for_line): Rename to ada_sals_for_line and make
4739 global.
4740 Add new parameter. When set, do not ask the user to choose the
4741 instance, but use the first one found instead.
4742 Use given line number in returned sals.
4743 Fix comment.
4744 Skip the prologue if funfirstline is set.
4745 Correct for memory leak when 0 lines found.
4746
4747 (value_pos_atr): Use pos_atr.
4748 (pos_atr): New function.
4749 (standard_lookup): Add block parameter.
4750
4751 (makeTimeStart): Remove declaration and uses.
4752 (makeTimeStop): Remove declaration and uses.
4753
4754 (ada_completer_word_break_characters): Allow for VMS.
4755 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4756 (raise_sym_name): New constant.
4757 (raise_unhandled_sym_name): New constant.
4758 (raise_assert_sym_name): New constant.
4759 (process_raise_exception_name): New constant.
4760 (longest_exception_template): New constant.
4761 (warning_limit): New variable to limit warnings during expression
4762 evaluation.
4763 (warnings_issued): New variable to keep track of warnings issued.
4764 (known_runtime_file_name_patterns): New constant.
4765 (known_auxiliary_function_name_patterns): New constant.
4766 (symbol_list_obstack): New variable.
4767
4768 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4769 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4770 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4771 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4772 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4773 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4774 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4775 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4776 and strcmp.
4777
4778 (ada_get_field_index): New function.
4779 (lim_warning): New function.
4780 (ada_translate_error_message): New function.
4781 (MAX_OF_SIZE): New function.
4782 (MIN_OF_SIZE): New function.
4783 (UMAX_OF_SIZE): New function.
4784 (UMIN_OF_SIZE): New function.
4785 (discrete_type_high_bound): New function.
4786 (discrete_type_low_bound): New function.
4787 (base_type): New function.
4788 (do_command): Remove.
4789
4790 (ada_update_initial_language): Use language_ada, not language_unknown.
4791 (ada_encode): Renamed from ada_mangle.
4792 Obey ADA_RETAIN_DOTS.
4793 (ada_decode): Renamed from ada_demangle.
4794 Update coding conventions.
4795 (decoded_names_store): New hash table.
4796 (ada_decode_symbol): New function.
4797 (ada_la_decode): New function.
4798
4799 (modify_general_field): Correct computations of offset and bit
4800 position.
4801 (desc_base_type): Handle ref types, too.
4802 (ada_is_direct_array_type): New function.
4803
4804 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4805 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4806 (ada_is_bogus_array_descriptor,ada_type_of_array,
4807 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4808 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4809 ada_is_array_descriptor_type.
4810
4811 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4812 (ada_is_packed_array_type): Handle pointers or
4813 references to packed arrays as well.
4814 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4815 (decode_packed_array_type): Search for the packed array type
4816 symbol in the currently selected block and associated
4817 superblocks too.
4818 Use lookup_symbol again.
4819
4820 (decode_packed_array): Handle pointers and references.
4821 Update call to coerce_unspec_val_to_type.
4822 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4823 (ada_value_primitive_packed_val): Improve comment.
4824
4825 (ada_index_type): Substitute int type for "undefined".
4826 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4827 ada_array_langth, ada_is_string_type): Use renamed
4828 ada_is_simple_array_type.
4829 (empty_array): New function.
4830
4831 (ada_resolve): Rename to resolve.
4832 (resolve): Make static.
4833 Call renamed resolve_subexp.
4834 Update comment.
4835 (ada_resolve_subexp): Rename to resolve_subexp.
4836 (resolve_subexp): Update comment.
4837 Decomment disabled code.
4838 Add LOC_COMPUTED* cases.
4839 Modify to use temporary struct symbols (marked as being in
4840 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4841 OP_UNRESOLVED_VALUE.
4842 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4843 Add OP_STRING case.
4844 Remove OP_ARRAY.
4845 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4846 Use new ada_lookup_symbol_list interface.
4847 Use new ada_resolve_function interface.
4848 Remove OP_TYPE case.
4849
4850 (ada_args_match): Idiot proof against null actuals.
4851 Use intermediate variables to clarify.
4852 (ada_resolve_function): Update comment and interface.
4853 (mangled_ordered_before): Rename to encoded_ordered_before and
4854 update comment.
4855 (sort_choices): Update comment and interface.
4856 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4857 (user_select_syms): New interface.
4858 Use new sort_choices interface.
4859 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4860 (possible_user_operator_p): Idiot-proof against null values.
4861 (ada_simple_renamed_entity): Don't make cleanup; rely on
4862 caller to free result string.
4863 Remove const from return type.
4864 (make_array_descriptor): Rename uses of place_on_stack to
4865 ensure_lval.
4866 Make sure that arrays are on stack.
4867
4868 (HASH_SIZE): Define.
4869 (struct cache_entry): Define.
4870 (cache_space): Define.
4871 (cache): Define.
4872 (clear_ada_sym_cache): New function.
4873 (find_entry): New function.
4874 (lookup_cached_symbol): New function.
4875 (defn_vector_size): Define.
4876 (cache_symbol): New function.
4877 (defn_symbols): Remove.
4878
4879 (standard_lookup): Use lookup_symbol_in_language to get effect of
4880 C lookup.
4881 Cache results.
4882
4883 (symbol_completion_match): New function.
4884 (symbol_completion_add): New function.
4885 (ada_make_symbol_completion_list): New function.
4886
4887 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4888 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4889 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4890 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4891
4892 (ada_lookup_simple_minsym): New function.
4893 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4894
4895 (add_symbols_from_enclosing_procs): New interface.
4896 Conditionalize more helpfully.
4897 Don't bother if program isn't running.
4898 Use new interface to get_frame_block.
4899 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4900
4901 (remove_extra_symbols): New interface.
4902 (xget_renaming_scope): New function.
4903 (is_package_name): New function.
4904 (renaming_is_visible): New function.
4905 (remove_out_of_scope_renamings): New function.
4906
4907 (ada_lookup_symbol_list): New interface.
4908 Properly reinitialize the symbol list obstack.
4909 Don't call add_symbols_from_enclosing_procs if we start from a
4910 static or global block.
4911 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4912 add_symbols_from_enclosing_procs.
4913 Add symtab data to cached entries.
4914 Handle symbols prefixed with
4915 "standard__" specially; strip prefix and don't look in local symbols.
4916 Do not include out of scope renaming symbols in list of
4917 symbols returned.
4918 Add const to block parameter.
4919 Move check for non-local, non-global symbols earlier.
4920 Remove timing stuff.
4921 (ada_lookup_symbol): New interface.
4922 Find symtab as well.
4923 (ada_lookup_symbol_nonlocal): New function.
4924
4925 (is_name_suffix): Enhance suffix detection to recognize
4926 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4927 (is_dot_digits_suffix): New function.
4928 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4929
4930 (ada_add_block_symbols): New interface. Use obstack to return results
4931 in a vector of struct ada_symbol_infos. Add symtab argument.
4932 Use new interface to add_defn_to_vec.
4933 Remove calls to fill_in_ada_prototype.
4934 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4935
4936 (ada_finish_decode_line_1): Add const qualification to local to fix
4937 warning.
4938 Start looking in static block for functions to avoid attempts
4939 to search frame chain for up-level variables.
4940 Adapt to new ada_sals_for_line interface.
4941 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4942 Handle quoting of the function name inside the spec string.
4943 Skip prologue when funfirstline is set and update the
4944 function documentation to that effect.
4945
4946 (debug_print_lines, debug_print_block, debug_print_blocks,
4947 debug_print_symtab): Remove.
4948
4949 (ada_main_name): New function.
4950 (ada_exception_breakpoint_type): New function.
4951 (is_known_support_routine): New function.
4952 (ada_find_printable_frame): Renamed from find_printable_frame and made
4953 global.
4954 Remove level parameter.
4955 Use new interface to select_frame.
4956
4957 (begin_command): Remove.
4958 (ada_adjust_exception_stop): New function.
4959 (ada_print_exception_stop): New function.
4960 (exception_name_from_cond): New function.
4961 (ada_report_exception_break): Replace disabled code with
4962 conditionalization on GNAT_GDB.
4963 Get the exception name from the condition string.
4964 Remove and move functionality into new functions
4965 ada_print_exception_breakpoint_task and
4966 ada_print_exception_breakpoint_nontask.
4967 (error_breakpoint_runtime_sym_not_found): New function.
4968 (is_runtime_sym_defined): New function.
4969 (ada_breakpoint_rewrite): Uncomment suppressed code.
4970 Use symbolic error-message and runtime-symbol names.
4971 Surround runtime symbol names in quotes.
4972 Allow non-specific breakpoints on exceptions and assertions before
4973 program starts.
4974
4975 (ada_is_tagged_type): Add parameter.
4976 (ada_is_tag_type): New function.
4977 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4978 (ada_variant_discrim_type): Ditto.
4979 (value_tag_from_contents_and_address): New function.
4980 (type_from_tag): New function.
4981 (struct tag_args): New structure used to communicate with
4982 ada_tag_name_1.
4983 (ada_tag_name_1): New function.
4984 (ada_tag_name): New function.
4985
4986 (ada_scan_number): Update comment.
4987 (find_struct_field): New function.
4988 (ada_search_struct_field): Make static.
4989 (ada_value_struct_elt): New version that returns references when
4990 given pointers or references to structs.
4991 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4992 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4993 interface.
4994 (ada_value_ind): Use new ada_to_fixed_value interface.
4995 (ada_coerce_ref): Ditto.
4996 (field_offset): Remove.
4997
4998 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4999 (ada_find_renaming_symbol): New function.
5000 (ada_prefer_type): Prefer named types over unnamed ones.
5001 (variant_field_index): New function.
5002 (contains_variant_part): Removed: subsumed by variant_field_index.
5003 (ada_template_to_fixed_record_type): New function, mostly from
5004 template_to_fixed_record_type.
5005 (template_to_fixed_record_type):
5006 Do not scan the type fields beyond the last one; prevents a
5007 potential SEGV.
5008 Handle case where variant field is listed BEFORE discriminant it
5009 depends on.
5010 Fix calculation of record length when bit length is
5011 not evenly divisible by char length.
5012 Move code to ada_template_to_fixed_record_type and call it.
5013
5014 (template_to_static_fixed_type): Revise comment.
5015 Modify to work on ordinary record types as well as templates,
5016 so as to handle fields that use ___XVE or ___XVU encodings.
5017 (to_record_with_fixed_variant_part): Fill out comment.
5018 Initialize C++ stuff in right type.
5019 Allow case where DVAL is null.
5020 Handle case where variant field is not last.
5021 Fix typo concerning record length.
5022 (to_fixed_record_type): Decomment disabled code.
5023 (to_fixed_record_type): Use variant_field_index instead of
5024 contains_variant_part.
5025 (to_fixed_variant_branch_type): Ditto.
5026 (to_fixed_array_type): Decomment disabled code.
5027 (ada_to_fixed_type): Convert tagged types to the specific type.
5028 Deactivate the size-check for array types in order to avoid
5029 some false size alarms.
5030 (to_static_fixed_type): Decomment disabled code.
5031 Modify to call template_to_static_fixed_type
5032 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5033 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5034 Remove valaddr argument, as it is never really used.
5035 (ada_to_fixed_value): Change interface to act on single struct value*
5036 operand.
5037 (adjust_pc_past_prologue): New function.
5038 (ada_attribute_name): Modify to take enum exp_opcode argument.
5039
5040 (ada_enum_name): Recognize new homonym-distinguishing convention.
5041 Adjust local variable's type to remove compiler warning.
5042 Fix a small problem in the part that unqualifies the enumeration name.
5043 (ada_value_binop): New function.
5044 (ada_value_equal): New function.
5045
5046 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5047 Don't give error message when not doing normal evaluation
5048 and a tagged type doesn't seem to contain a structure member.
5049 Give error message for packed arrays.
5050 For indexing arrays, handle pointers to packed arrays correctly.
5051 Handle case of 'first and 'last attributes of bare integral type
5052 without encoded subtype info.
5053 Remove some unnecessary casts.
5054 Fix uninitialized value of type in computing 'first, 'last, or 'length
5055 of array object.
5056 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5057 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5058 calls.
5059 Attributes are now exp_opcode values.
5060 Correct treatment of 'modulus.
5061 Better error message for taking 'length of wrong kind of type;
5062 improve comment.
5063 Change EVAL_NORMAL to noside for consistency.
5064 Use ada_value_binop for DIV, MOD, REM.
5065 Make special case out of array of length 0, since an argument
5066 of 0 upsets some platforms' malloc.
5067 Use OP_STRING instead of OP_ARRAY.
5068 For slice, add check that we have an array type before extracting
5069 a slice out of it. Avoids a SEGV.
5070 When evaluating an array slice, if the array type is a reference to
5071 an aligner type, then replace the aligner type by the actual type.
5072 Decomment disabled code.
5073 Remove some dead code.
5074 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5075 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5076 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5077 and UNOP_MBR to UNOP_IN_RANGE.
5078 If an array type has a parallel ___XVE type, then use it.
5079 Turn arrays into pointers for lvalue arrays.
5080 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5081 bounds error and handle 0-length slices.
5082 Use lim_warning.
5083 When selecting fields, apply ada_to_fixed_value (because the fields
5084 might have ___XVU or ___XVE encodings even if not dynamic.)
5085 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5086 (ada_is_system_address_type): New function.
5087
5088 (get_var_value): Use new interface to ada_lookup_symbol_list.
5089 (get_int_var_value): New interface.
5090 (to_fixed_range_type): Allow unknown bound, with warning.
5091 (ada_is_modular_type): Decomment disabled code.
5092 (ADA_OPERATORS): New definition.
5093 (ada_operator_length): New function.
5094 (ada_expr_op_name): New function.
5095 (ada_forward_operator_length): New function.
5096 (ada_dump_subexp_body): New function.
5097 (ada_print_subexp): New function.
5098 (ada_exp_descriptor): New constant.
5099 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5100 (ada_language_defn): Add ada_exp_descriptor entry.
5101 Change ada_parse => parse.
5102 Add post-parser entry.
5103 Use ada-specific non-local symbol lookup.
5104 Don't use C-style arrays.
5105 String lower-bound is 1.
5106 Decomment disabled code.
5107 (parse): New function.
5108 New fields ada_translate_error_message, ada_lookup_symbol,
5109 ada_lookup_minimal_symbol.
5110
5111 * ada-lang.h: Update copyright dates.
5112 Replace the mangle/demangle terminology throughout by the
5113 more appropriate encode/decode one.
5114 Include breakpoint.h.
5115 Forward declare struct partial_symbol, struct block.
5116 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5117 (EXTRACT_ADDRESS): Remove.
5118 (EXTRACT_INT): Remove.
5119 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5120 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5121 (MAX_RENAMING_CHAIN_LENGTH): Define.
5122 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5123
5124 (enum task_states): Remove.
5125 ada_task_states: Remove.
5126 (fat_string): Remove.
5127 (struct entry_call): Remove.
5128 (struct task_fields): Remove.
5129 (struct task_entry): Remove.
5130
5131 (struct ada_symbol_info): Define.
5132 (enum ada_attribute): Remove.
5133 (enum ada_operator): Define.
5134
5135 (ada_get_field_index): Declare.
5136 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5137 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5138 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5139 (ada_lookup_symbol_list): New interface.
5140 (ada_decode_symbol): Declare.
5141 (ada_decode): Declare.
5142 (ada_lookup_symbol): New interface.
5143 (ada_update_initial_language): Declare.
5144 (ada_lookup_simple_minsym): Declare.
5145 (user_select_syms): New interface.
5146 (ada_sals_for_line): Declare.
5147 (ada_is_tagged_type): New interface.
5148 (ada_tag_name): Declare.
5149 (ada_lookup_struct_elt_type): Remove declaration.
5150 (ada_search_struct_field): Remove declaration.
5151 (ada_attribute_name): New interface.
5152 (ada_is_system_address_type): Declare.
5153 (ada_to_fixed_value): Remove declaration.
5154 (ada_template_to_fixed_record_type_1): Declare.
5155 (get_int_var_value): New interface.
5156 (ada_find_any_symbol): Declare.
5157 (ada_find_renaming_symbol): Declare.
5158 (ada_mangle): Rename to ada_encode.
5159 (ada_simple_renamed_entity): Remove const.
5160 (ada_main_name): Declare.
5161 (get_current_task): Rename to ada_get_current_task.
5162 (get_entry_number): Remove declaration.
5163 (ada_report_exception_break): Remove declaration.
5164 (ada_print_exception_breakpoint_nontask): Declare.
5165 (ada_print_exception_breakpoint_task): Declare.
5166 (ada_find_printable_frame): Declare.
5167
5168 * ada-lex.l: Update copyright notices.
5169 Use xmalloc and xfree instead of malloc and free.
5170 Use new interface to name_lookup.
5171 Use new interface to
5172 ada_mangle=>ada_encode.
5173 Redo handling of '$...' variable to parallel current treatment
5174 in c-exp.y.
5175 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5176 digit_to_int, strtoulst, processInt, processReal, processId,
5177 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5178 yywrap): Protoize.
5179
5180 (processInt): Use cast to remove harmless warning.
5181 (processReal): Modify to get rid of compiler warning on scan formats.
5182
5183 (processId): Replace xmalloc with obstack_alloc for name and remove
5184 call to ada_name_string_cleanup.
5185 Remove obsolete disabled code.
5186 (name_lookup): Ditto.
5187 New interface.
5188 Use obsavestring on temp_parse_space instead of savestring
5189 on name, and remove call to ada_name_string_cleanup.
5190 Free string returned from ada_simple_renamed_entity.
5191 Use new interface to ada_lookup_symbol_list.
5192 Decomment disabled code.
5193 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5194 not types.
5195 When a type name lookup succeeds as a result of
5196 lookup_primitive_typename, check for regular type entry that has not
5197 yet been read in.
5198 Limit length of chain of renamed symbols we are willing to follow.
5199 Do not break names beginning with "standard__" into segments.
5200 (block_lookup): Use new interface to ada_lookup_symbol_list.
5201
5202 * ada-typeprint.c: Update copyright notice.
5203 (demangled_type_name): Rename to decoded_type_name.
5204 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5205 (print_range_bound): Correct handling of negative
5206 bounds that make the index type looked unsigned under STABS.
5207 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5208 (print_range_type_named): Use the builtin int type if no type
5209 corresponding to the given type name could be found.
5210 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5211 Add some bullet-proofing.
5212 (print_variant_clauses): Allow for variant branches with ___XVU
5213 encodings that are not dynamic fields.
5214 Use new interface to ada_is_tagged_type.
5215 (print_record_type): Allow for fields with ___XVE encodings that
5216 are not dynamic fields.
5217 Use new interface to ada_is_tagged_type.
5218 (ada_print_type): ada_is_array_descriptor =>
5219 ada_is_array_descriptor_type.
5220
5221 * ada-valprint.c: Update copyright notice.
5222 Include gdb_string.h
5223 Include infcall.h
5224 (ui_memcpy): New function.
5225 (ada_print_floating): New function.
5226 (ada_print_str): Order arguments correctly.
5227 Correct handling of empty arrays and arrays of 0-length items.
5228 ada_is_array_descriptor => ada_is_array_descriptor_type
5229 Print values of type System.Address in hexadecimal format.
5230 Use ada_print_floating to print floating-point numbers in Ada format.
5231 Print class tag values with type names.
5232 No longer print the address of reference values. Avoids
5233 a potential confusion.
5234 (ada_value_print): Stop printing the object type for reference
5235 values, but preserve that behavior for access types. Avoids
5236 a potential confusion.
5237 Simplify one conditional expression, as the first part is now
5238 necessarily true.
5239 ada_is_array_descriptor => ada_is_array_descriptor_type
5240 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5241
f65f91b5
JB
52422004-06-01 Jim Blandy <jimb@redhat.com>
5243
5244 * ppc-tdep.h: Delete unused 'regoff' member.
5245 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5246
d4687fa0
MC
52472004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5248
5249 Fix PR symtab/1661.
5250 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5251 (hpread_read_struct_type): Likewise.
5252
de169ec9
AC
52532004-06-01 Andrew Cagney <cagney@gnu.org>
5254
c6902d46
AC
5255 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5256 instead of xasprintf.
5257 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5258 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5259 (mi_cmd_data_list_register_names)
5260 (mi_cmd_data_list_changed_registers)
5261 (mi_cmd_data_list_register_values)
5262 (get_register, mi_cmd_data_write_register_values)
5263 (mi_cmd_data_write_register_values)
5264 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5265 (mi_cmd_target_download, mi_cmd_target_select)
5266 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5267 (mi_execute_cli_command, mi_execute_async_cli_command)
5268 (mi_execute_async_cli_command): Ditto.
5269 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5270 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5271
6085fc2d
AC
5272 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5273 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5274 error_last_message instead of mi_error_last_message.
5275 * mi/mi-main.c (mi_error_last_message): Delete function.
5276
de169ec9
AC
5277 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5278 "invalid number of columns" error. Delete redundant "out of
5279 memory" check.
5280
1fc7d519
MK
52812004-05-31 Mark Kettenis <kettenis@gnu.org>
5282
6cfb2041
MK
5283 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5284 (gregset_t, fpregset_t): Remove typedefs.
5285 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5286 (REG_OFFSET): Rename argument.
5287 (i386bsd_r_reg_offset): Rename from reg_offset.
5288 (REG_ADDR): Remove macro.
5289 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5290 functions.
5291 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5292 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5293 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5294 instead of supply_gregset.
5295 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5296 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5297 instead of fill_gregset.
5298 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5299
1fc7d519
MK
5300 * i386bsd-nat.c: Don't include "gregset.h".
5301 (supply_gregset, fill_gregset): Make static.
5302 (supply_fpregset, fill_fpregset): Remove.
5303 * Makefile.in (i386bsd-nat.o): Update dependencies.
5304
2c34abbe
MK
53052004-05-30 Mark Kettenis <kettenis@gnu.org>
5306
448724fb
MK
5307 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5308 "gdb_assert.h". Con't include "gregset.h".
5309 (fbsd_make_corefile_notes): Use regset-based core file support
5310 instead off fill_gregset and fill_fpregset.
5311 * Makefile.in (fbsd-proc.o): Update dependencies.
5312
5ca8ca7c
MK
5313 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5314 instructions.
5315 (m88k_frame_prev_register): Simplify code a bit.
5316
593adc23
MK
5317 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5318 (amd64_collect_fpregset): New function.
5319 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5320
8d1b517b
MK
5321 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5322
7fdafb5a
MK
5323 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5324 (i386_collect_gregset): New function.
5325 (i386_supply_fpregset): Adjust comment.
5326 (i386_collect_fpregset): New function.
5327 (i386_regset_from_core_section): Use i386_collect_gregset and
5328 i386_collect_fpregset.
5329
8693c419
MK
5330 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5331 handle VALUEP being null.
5332
2c34abbe
MK
5333 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5334
45d134d8
MK
53352004-05-29 Mark Kettenis <kettenis@gnu.org>
5336
1698f4e7
MK
5337 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5338
45d134d8
MK
5339 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5340 assembler in OpenBSD 3.5-current.
5341 (amd64obsd_sigcontext_addr): Likewise.
5342
691d145a
JB
53432004-05-28 Jim Blandy <jimb@redhat.com>
5344
5345 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5346 register set, so our regcache isn't declared "legacy" and our E500
5347 pseudoregister read and write functions aren't ignored.
5348 (rs6000_register_byte, rs6000_register_raw_size,
5349 rs6000_register_virtual_type, rs6000_register_convertible,
5350 rs6000_register_convert_to_virtual,
5351 rs6000_register_convert_to_raw): Deleted.
5352 (rs6000_register_type, rs6000_convert_register_p,
5353 rs6000_register_to_value, rs6000_value_to_register): New
5354 functions.
5355 (rs6000_gdbarch_init): Don't register
5356 gdbarch_deprecated_register_size,
5357 gdbarch_deprecated_register_bytes,
5358 gdbarch_deprecated_register_byte,
5359 gdbarch_deprecated_register_raw_size,
5360 gdbarch_deprecated_register_virtual_type,
5361 gdbarch_deprecated_register_convertible,
5362 gdbarch_deprecated_register_convert_to_virtual, or
5363 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5364 register gdbarch_register_type, gdbarch_convert_register_p,
5365 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5366
18ed0c4e
JB
53672004-05-26 Jim Blandy <jimb@redhat.com>
5368
5369 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5370 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5371 functions, updated to match the register numberings used in GCC.
5372 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5373 rs6000_dwarf2_reg_to_regnum as register number conversions
5374 functions for STABS and Dwarf2.
5375
779af9e3
RC
53762004-05-26 Randolph Chung <tausq@debian.org>
5377
5378 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5379 in header file.
5380
c23968a2
JB
53812004-05-25 Joel Brobecker <brobecker@gnat.com>
5382
5383 * NEWS: Document new "start" command.
5384
3a7d1c27
RC
53852004-05-25 Randolph Chung <tausq@debian.org>
5386
5387 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5388 hppa-linux.
5389
43613416
RC
53902004-05-25 Randolph Chung <tausq@debian.org>
5391
5392 * hppa-hpux-tdep.c (offsetof): Define.
5393 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5394 (hppa32_hpux_frame_base_before_sigtramp)
5395 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5396 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5397 (hppa64_hpux_frame_base_before_sigtramp)
5398 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5399 functions.
5400 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5401 (hppa_hpux_sigtramp_frame_unwind_cache)
5402 (hppa_hpux_sigtramp_frame_this_id)
5403 (hppa_hpux_sigtramp_frame_prev_register)
5404 (hppa_hpux_sigtramp_frame_unwind)
5405 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5406 (hppa_hpux_init_abi): Register sigtramp unwinder.
5407 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5408
6d1be3f1
RC
54092004-05-25 Randolph Chung <tausq@debian.org>
5410
5411 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5412 and multiple stack unwinds.
5413 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5414
97c34f65
AC
54152004-05-25 Andrew Cagney <cagney@gnu.org>
5416
5417 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5418 * symfile-mem.h: Delete file.
5419 * symfile-mem.c: Do not include "symfile-mem.h".
5420 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5421 "struct bfd_section". When an error do not bother returning NULL.
5422 (add_symbol_file_from_memory_command): Use "struct bfd" and
5423 "struct bfd_section".
5424 * Makefile.in (symfile_mem_h): Delete.
5425 (symfile-mem.o): Update dependencies.
5426
e23cbd82
NR
54272004-05-25 Nick Roberts <nickrob@gnu.org>
5428
5429 * gdb-mi.el: New file.
5430
20d2ca3e
AC
54312004-05-25 Andrew Cagney <cagney@gnu.org>
5432
5433 * inftarg.c: Include "observer.h".
5434 (child_attach, child_create_inferior): Notify inferior_created.
5435 * corelow.c: Include "observer.h".
5436 (core_open): Notify inferior_created.
5437 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5438
c27cda74
AC
54392004-05-25 Andrew Cagney <cagney@gnu.org>
5440
5441 * target.h (struct target_ops): Add from_tty to
5442 to_create_inferior.
5443 (target_create_inferior, find_default_create_inferior): Update.
5444 * infcmd.c (run_command): Update.
5445 * wince.c (child_create_inferior): Update.
5446 * win32-nat.c (child_create_inferior): Update.
5447 * uw-thread.c (uw_thread_create_inferior): Update.
5448 * thread-db.c (thread_db_create_inferior): Update.
5449 * target.c (debug_to_create_inferior)
5450 (find_default_create_inferior): Update.
5451 (maybe_kill_then_create_inferior): Update.
5452 * sol-thread.c (sol_thread_create_inferior): Update.
5453 * remote.c (extended_remote_async_create_inferior)
5454 (extended_remote_create_inferior): Update.
5455 * remote-vx.c (vx_create_inferior): Update.
5456 * remote-st.c (st2000_create_inferior): Update.
5457 * remote-sim.c (gdbsim_create_inferior): Update.
5458 * remote-sds.c (sds_create_inferior): Update.
5459 * remote-rdp.c (remote_rdp_create_inferior): Update.
5460 * remote-rdi.c (arm_rdi_create_inferior): Update.
5461 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5462 * remote-e7000.c (e7000_create_inferior): Update.
5463 * procfs.c (procfs_create_inferior): Update.
5464 * ocd.c (ocd_create_inferior): Update.
5465 * ocd.h (ocd_create_inferior): Update.
5466 * nto-procfs.c (procfs_create_inferior): Update.
5467 * monitor.c (monitor_create_inferior): Update.
5468 * lin-lwp.c (lin_lwp_create_inferior): Update.
5469 * inftarg.c (child_create_inferior): Update.
5470 * hpux-thread.c (hpux_thread_create_inferior): Update.
5471 * gnu-nat.c (gnu_create_inferior): Update.
5472
1db2a798
AC
54732004-05-25 Andrew Cagney <cagney@gnu.com>
5474
5475 * MAINTAINERS: Update e-mail address.
5476
007d08bb
RC
54772004-05-24 Randolph Chung <tausq@debian.org>
5478
5479 * thread.c (info_threads_command, thread_apply_all_command)
5480 (thread_apply_command, thread_command, do_captured_thread_select):
5481 Remove HPUXHPPA-specific code.
5482
69e7b95e
RC
54832004-05-24 Randolph Chung <tausq@debian.org>
5484
5485 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5486 unused symbols.
5487 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5488 references.
5489
a4d5f2e0
JB
54902004-05-24 Joel Brobecker <brobecker@gnat.com>
5491
5492 * infcmd.c (kill_if_already_running): New function, extracted
5493 from run_command().
5494 (run_command): Replace extracted code by call to
5495 kill_if_already_running().
5496 (start_command): New function.
5497 (_initialize_infcmd): Add "start" command.
5498
bf2ca189
MK
54992004-05-24 Mark Kettenis <kettenis@gnu.org>
5500
5501 Add OpenBSD/m88k support.
5502 * NEWS (New native configurations): Mention OpenBSD/m88k.
5503 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5504 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5505 * Makefile.in (m88k_tdep_h): New variable.
5506 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5507 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5508 * configure.host: Add m88*-*-openbsd*.
5509 * configure.tgt: Add m88*-*-openbsd*.
5510
80fadb11
JB
55112004-05-24 Jim Blandy <jimb@redhat.com>
5512
5513 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5514 to approve changes.
5515
19e2d14b
KB
55162004-05-24 Kevin Buettner <kevinb@redhat.com>
5517
5518 * symtab.c (fixup_section): Search section table when lookup by
5519 name fails.
5520
1b07b470
RC
55212004-05-24 Randolph Chung <tausq@debian.org>
5522
5523 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5524 be "small_struct".
5525
368702b1
MK
55262004-05-24 Mark Kettenis <kettenis@gnu.org>
5527
5df97fde
MK
5528 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5529 register number in regcache_raw_collect call.
5530 (m68kbsd_collect_fpregset): Likewise.
5531 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5532
368702b1
MK
5533 * regset.h (struct regset): Add back `regset' member.
5534
a770d4ec
MK
55352004-05-23 Mark Kettenis <kettenis@gnu.org>
5536
70f9f479
MK
5537 * configure.in: Check for td_pcb in `struct thread'.
5538 * configure, config.in: Regenerated.
5539
2e16d79e
MK
5540 * dpx2-nat.c: Remove file.
5541 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5542 (dpx2-nat.o): Remove dependencies.
5543
492cf391
MK
5544 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5545 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5546 (amd64obsd_supply_pcb): New function.
5547 (_initialize_amd64obsd_nat): Enable libkvm interface.
5548 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5549 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5550 (LOADLIBES): New variable.
5551
a770d4ec
MK
5552 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5553 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5554 (sparc32nbsd_supply_pcb): New function.
5555 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5556 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5557 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5558 (LOADLIBES): New variable.
5559
9ea75c57
MK
55602004-05-22 Mark Kettenis <kettenis@gnu.org>
5561
2e0c3539
MK
5562 * bsd-kvm.c, bsd-kvm.h: New files.
5563 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5564 "bsd-kvm.h".
5565 (i386fbsd_supply_pcb): New function.
5566 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5567 (i386fbsd-nat.o): Update dependencies.
5568 (bsd_kvm_h): New variable.
5569 (bsd-kvm.o): New dependency.
5570 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5571 (LOADLIBES): New variable.
5572
9ea75c57
MK
5573 * regset.c: Tweak comment.
5574 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5575 macro.
5576 * regset.h: Update copyright year.
5577 (struct regset): Remove `descr' member, add `gdbarch' member.
5578 (regset_alloc): Adjust prototype and comment.
5579 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5580 (i386_supply_fpregset): Likewise.
5581 (i386_regset_from_core_section): Update call to regset_alloc.
5582 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5583 REGSET->arch.
5584 (i386obsd_aout_regset_from_core_section): Update call to
5585 regset_alloc.
5586 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5587 REGSET->arch.
5588 (i386nbsd_aout_regset_from_core_section): Update call to
5589 regset_alloc.
5590 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5591 REGSET->arch.
5592 (amd64_regset_from_core_section): Update call to regset_alloc.
5593 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5594 REGSET->arch.
5595 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5596 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5597 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5598 (sparc32nbsd_init_abi): Update call to regset_alloc.
5599 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5600 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5601 (sparc64obsd_init_abi): Update call to regset_alloc.
5602 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5603 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5604 (sparc64nbsd_init_abi): Update call to regset_alloc.
5605 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5606 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5607 (sparc64fbsd_init_abi): Update call to regset_alloc.
5608
867e2dc5
JB
56092004-05-22 Jim Blandy <jimb@redhat.com>
5610
5611 * ppc-tdep.h (spe_register_p): New declaration.
5612 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5613 ppc_spefscr_regnum.
5614 * rs6000-tdep.c (spe_register_p): New function.
5615 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5616 spefscr.
5617 (rs6000_gdbarch_init): Initialize the new members of the tdep
5618 structure.
5619
617a4cba
JB
56202004-05-21 Jim Blandy <jimb@redhat.com>
5621
0397dee1
JB
5622 * ppc-linux-nat.c (fetch_register): Move code back to be next
5623 to the comment that describes it. (Moved code, instead of
5624 comment, for symmetry with store_register.)
5625
617a4cba
JB
5626 Allocate regset structures in the gdbarch's obstack, not using
5627 xmalloc.
5628 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5629 Add 'arch' argument. Allocate the regset on arch's obstack, not
5630 using xmalloc.
5631 * regset.h (regset_alloc): Update declaration.
5632 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5633 gdbarch argument.
5634 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5635 * i386-tdep.c (i386_regset_from_core_section): Same.
5636 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5637 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5638 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5639 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5640 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5641 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5642
9aa3914d
JB
56432004-05-21 Joel Brobecker <brobecker@gnat.com>
5644
5645 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5646
99c87dab
JB
56472004-05-21 Jim Blandy <jimb@redhat.com>
5648
5649 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5650 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5651
c2b6b4aa
JB
56522004-05-20 Jim Blandy <jimb@redhat.com>
5653
5654 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5655
144529d0
MK
56562004-05-20 Mark Kettenis <kettenis@gnu.org>
5657
5658 * regset.h: Make prototype const-correct.
5659 * regset.c (regset_xmalloc): Make const-correct.
5660
4725b721
PH
56612004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5662
5663 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5664 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5665 (symbol_search_name): Declare.
5666
5667 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5668 (iter_name_next_hashed): Ditto.
5669 (iter_name_next_linear): Ditto.
5670 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5671
5672 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5673 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5674 (symbol_search_name): New function.
5675
5676 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5677
5678 * minsyms.c (build_minimal_symbol_hash_tables): Change
5679 test for adding to demangled hash table to check for difference
5680 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5681
be07a590
JB
56822004-05-19 Jim Blandy <jimb@redhat.com>
5683
5684 Use a constructor function to create regset structures.
5685 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5686 (struct regset): Use supply_regset_ftype. Add new
5687 'collect_regset' member.
5688 (regset_xmalloc): New declaration.
5689 * regset.c: New file.
5690 * am64-tdep.c (amd64_regset_from_core_section): Use
5691 regset_xmalloc to construct regset structures.
5692 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5693 * i386-tdep.c (i386_regset_from_core_section): Same.
5694 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5695 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5696 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5697 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5698 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5699 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5700 * Makefile.in (COMMON_OBS): Add regset.o.
5701 (regset.o): New rule.
5702
604368f5
JB
57032004-05-19 Joel Brobecker <brobecker@gnat.com>
5704
5705 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5706 and pthread_cond_wait.c.
5707
82d69f8b
JB
57082004-05-18 Jim Blandy <jimb@redhat.com>
5709
5710 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5711 before the mach-specific switch, and then let the individual cases
5712 override the defaults, rather than leaving them uninitialized
5713 until the switch and then setting them in each case.
5714
5859efe5
RC
57152004-05-18 Randolph Chung <tausq@debian.org>
5716
5717 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5718 millicode functions.
5719
9ca80cf8
RC
57202004-05-18 Randolph Chung <tausq@debian.org>
5721
5722 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5723 references to dld_flags_buffer consistent.
5724
ed70ba00
RC
57252004-05-18 Randolph Chung <tausq@debian.org>
5726
5727 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5728 it for unwinding the stack.
5729
63100632
RC
57302004-05-18 Randolph Chung <tausq@debian.org>
5731
5732 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5733 Undefine these so we can overide them using gdbarch.
5734
090ccbb7
RC
57352004-05-18 Randolph Chung <tausq@debian.org>
5736
5737 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5738 handling for 64-bit HPUX (elf).
5739
594706e6
DJ
57402004-05-18 Daniel Jacobowitz <dan@debian.org>
5741
5742 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5743 constants.
5744 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5745 * ia64-tdep.c (examine_prologue): Likewise.
5746 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5747 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5748
e5483145
MK
57492004-05-18 Mark Kettenis <kettenis@gnu.org>
5750
5751 * vax-tdep.c (vax_return_value): Implement
5752 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5753
caed1a45
MK
57542004-05-17 Mark Kettenis <kettenis@gnu.org>
5755
5756 * vax-tdep.c (vax_return_value): Fix typo.
5757
3c0b7db2
AC
57582004-05-17 Andrew Cagney <cagney@redhat.com>
5759
5aae53e5
AC
5760 * MAINTAINERS: Mark Salter was also responsible for
5761 testsuite/config/
5762
3c0b7db2
AC
5763 * NEWS: Mention signal fixes.
5764
22b0923d
RC
57652004-05-17 Randolph Chung <tausq@debian.org>
5766
5767 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5768 check to see if we are unwinding an export stub. Export stubs clobber
5769 the %rp in the call path and stores the original rp in a stack slot.
5770
22f2b2f3
JB
57712004-05-17 Jim Blandy <jimb@redhat.com>
5772
5773 * MAINTAINERS: Update address for J.T. Conklin.
5774
cea96d64
RC
57752004-05-17 Randolph Chung <tausq@debian.org>
5776
5777 * hppa-tdep.c: Remove superfluous #include's.
5778 * Makefile.in (hppa-tdep.o): Update dependencies.
5779
f08f6a4a
RC
57802004-05-17 Randolph Chung <tausq@debian.org>
5781
5782 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5783 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5784 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5785 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5786 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5787 Remove static function declarations.
5788
51da707a
MK
57892004-05-17 Mark Kettenis <kettenis@gnu.org>
5790
caed1a45
MK
5791 * alphabsd-nat.c: Update copyright year.
5792 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5793
c0c2b0db
MK
5794 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5795 and M68K_A2_REGNUM.
5796
51da707a
MK
5797 * m68k-tdep.c (m68k_svr4_return_value): Implement
5798 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5799
8d027a04
MK
58002004-05-16 Mark Kettenis <kettenis@gnu.org>
5801
5802 * sol-thread.c Update copyright year. Fix various coding
5803 standards violations. Tweak a few comments.
5804 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5805 Delete prototypes.
5806
0d99fdb9
RC
58072004-05-15 Randolph Chung <tausq@debian.org>
5808
5809 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5810 as pointer instead of array reference since HPUX compiler does
5811 not accept unsized array arguments.
5812 * somsolib.c (dld_flags_buffer): Use constant array size.
5813
f7e3843a
MK
58142004-05-15 Mark Kettenis <kettenis@gnu.org>
5815
0fe85704
MK
5816 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5817 offset with decimal offset.
5818 (amd64obsd_sigcontext_addr): Return correct address for entire
5819 signal trampoline.
5820
a54f9a00
MK
5821 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5822 instead of get_frame_base.
5823
feae6502
MK
5824 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5825 (fill_gregset): Use regcache_raw_collect.
5826
0382d099
MK
5827 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5828 ppcobsd-tdep.c.
5829
f7e3843a
MK
5830 * config/sparc/tm-nbsd64.h: Remove file.
5831 * config/tm-sunos.h: Remove file.
5832
773df3e5
JB
58332004-05-15 Joel Brobecker <brobecker@gnat.com>
5834
5835 * rs6000-tdep.c (store_param_on_stack_p): New function,
5836 an improved version of some code extracted from skip_prologue().
5837 (skip_prologue): Use store_param_on_stack_p() to detect
5838 instructions saving a parameter on the stack. Detect when r0
5839 is used to save a parameter.
5840 Do not mark "li rx, SIMM" instructions as part of the prologue,
5841 unless the following instruction is also part of the prologue.
5842
95918acb
AC
58432004-05-14 Andrew Cagney <cagney@redhat.com>
5844
06f32659
AC
5845 * infrun.c (handle_inferior_event): Simplify
5846 STEP_OVER_UNDEBUGGABLE.
5847
95918acb
AC
5848 * infrun.c (handle_step_into_function): Delete function.
5849 (handle_inferior_event): Inline calls to
5850 handle_step_into_function.
5851
40711ff1 58522004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5853
5854 * rs6000-nat.c: Fix a comment.
5855
02f60eae
JB
58562004-05-12 David Anderson <davea@sgi.com>
5857
5858 Committed by Jim Blandy <jimb@redhat.com>:
5859 * regcache.c (struct regcache_descr): fix comment spelling.
5860
552e377b
JB
58612004-05-13 J. Brobecker <brobecker@gnat.com>
5862
5863 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5864 Fixes a link link failure.
5865
349766b2
JB
58662004-05-13 J. Brobecker <brobecker@gnat.com>
5867
5868 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5869 error that was causing the build to fail.
5870
0d4d5484
JB
58712004-05-13 J. Brobecker <brobecker@gnat.com>
5872
5873 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5874 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5875
0b30808c
AC
58762004-05-13 Andrew Cagney <cagney@redhat.com>
5877
5878 * infrun.c (handle_inferior_event): Check for
5879 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5880 calls. Update comments.
5881
cdf2c5f5
JB
58822004-05-13 Jim Blandy <jimb@redhat.com>
5883
063715bf
JB
5884 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5885 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5886 (store_regs_user_thread, store_regs_kernel_thread): Use
5887 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5888 * ppc-linux-nat.c (fill_gregset): Same.
5889 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5890 (ppc_linux_sigtramp_cache): Same.
5891 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5892 (ppcnbsd_sigtramp_cache_init): Same.
5893 * rs6000-nat.c (fetch_core_registers): Same.
5894 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5895 (rs6000_frame_cache): Same.
5896
cdf2c5f5
JB
5897 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5898 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5899 of assuming that the gprs are numbered starting with zero.
5900 * ppc-linux-nat.c (fill_gregset): Same.
5901 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5902 * ppcnbsd-nat.c (getregs_supplies): Same.
5903 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5904 * rs6000-nat.c (fetch_core_registers): Same.
5905 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5906
450bd37b
MS
59072004-05-07 Michael Snyder <msnyder@redhat.com>
5908
5909 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5910 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5911
4a72a2a6
AC
59122004-05-13 Andrew Cagney <cagney@redhat.com>
5913
5914 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5915
8edfa926
BM
59162004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5917
5918 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5919 base_address for shared libraries.
5920
723e0e3d
BM
59212004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5922
5923 * MAINTAINERS (write after approval): Add myself.
5924
00d4360e
UW
59252004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5926
5927 * breakpoint.c (bpstat_stop_status): Add new argument
5928 STOPPED_BY_WATCHPOINT. Use it instead of testing
5929 target_stopped_data_address agaist 0 to check whether
5930 or not we stopped due to a hardware watchpoint.
5931 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5932 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5933 with new argument.
5934
ec76baa5
JB
59352004-05-12 Jim Blandy <jimb@redhat.com>
5936
5937 * configure.in: When checking whether we should use the -bbigtoc
5938 option, don't forget to restore the original value of LDFLAGS.
5939 * configure: Regenerated.
5940
f2c9ca08
AC
59412004-05-12 Andrew Cagney <cagney@redhat.com>
5942
5943 * thread.c (load_infrun_state): Delete step_sp.
5944 * infrun.c (context_switch): Ditto.
5945 * inferior.h (step_sp): Ditto.
5946 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5947 * gdbthread.h (struct thread_info, save_infrun_state)
5948 (restore_infrun_state): Ditto.
5949
090ddb2a
UW
59502004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5951
5952 * MAINTAINERS (write after approval): Add myself.
5953
8aad930b
AC
59542004-05-12 Andrew Cagney <cagney@redhat.com>
5955
5956 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5957 eliminate reference to step_sp.
5958 (struct execution_control_state, init_execution_control_state)
5959 (handle_inferior_event, keep_going): Delete update_step_sp and
5960 step_sp.
5961 * infcmd.c (step_sp): Note that variable is unused.
5962
922d5ae0
AC
59632004-05-11 Andrew Cagney <cagney@redhat.com>
5964
5965 * infrun.c (step_over_function): Delete function.
5966 (handle_step_into_function): Use insert_step_resume_breakpoint.
5967 (insert_step_resume_breakpoint): Fix assertion.
5968
017c5ca5
NR
59692004-05-11 Nick Roberts <nickrob@gnu.org>
5970
5971 * utils.c (defaulted_query): Just use the normal query input type
5972 when printing the annotations.
5973
42edda50
AC
59742004-05-11 Andrew Cagney <cagney@redhat.com>
5975
5976 * infrun.c (handle_inferior_event): Simplify code handling
5977 step-into or return-from a signal trampoline.
5978
d28b44a7
AC
59792004-05-11 Andrew Cagney <cagney@redhat.com>
5980
5981 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5982 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5983
383f0f5b
JB
59842004-05-10 Jim Blandy <jimb@redhat.com>
5985
d0b57c3a
JB
5986 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5987 with a call to internal_error.
5988
383f0f5b
JB
5989 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5990 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5991 processor variant lacks those registers.
5992 (ppc_floating_point_unit_p): Change description to make it clear
5993 that this returns info about the ISA, not the ABI.
5994 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5995 return true or false by checking tdep->ppc_fp0_regnum and
5996 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5997 arch/mach switching done in rs6000_gdbarch_init; it's better to
5998 keep that logic there, and just check the results here.
5999 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6000 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6001 floating-point registers.
6002 (ppc_supply_fpregset, ppc_collect_fpregset)
6003 (rs6000_push_dummy_call, rs6000_extract_return_value)
6004 (rs6000_store_return_value): Assert that we have floating-point
6005 registers.
6006 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6007 (rs6000_frame_cache): Don't note the locations at which
6008 floating-point registers were saved if we have no fprs.
6009 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6010 registers.
6011 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6012 (store_regs_user_thread, store_regs_kernel_thread): Only call
6013 supply_fprs / fill_fprs if we actually have floating-point
6014 registers.
6015 (special_register_p): Check ppc_fpscr_regnum before matching
6016 against it.
6017 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6018 supply / collect fpscr if we don't have it.
6019 * ppc-bdm.c: #include "gdb_assert.h".
6020 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6021 have floating-point registers, since I can't test this code on
6022 FP-free systems to adapt it.
6023 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6024 fpscr and floating point register numbers if they don't exist.
6025 (fetch_register): Assert that we have floating-point registers
6026 before we reach the code that handles them.
6027 (store_register): Same. And use tdep instead of calling
6028 gdbarch_tdep again.
6029 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6030 don't have them.
6031 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6032 fprs and fpscr if we don't have them.
6033 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6034 don't have them.
6035 * ppcnbsd-nat.c: #include "gdb_assert.h".
6036 (getfpregs_supplies): Assert that we have floating-point registers.
6037 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6038 * ppcobsd-tdep.c: #include "gdb_assert.h".
6039 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6040 have floating-point registers.
6041 * rs6000-nat.c (regmap): Don't match against the fpscr and
6042 floating point register numbers if they don't exist.
6043 (fetch_inferior_registers, store_inferior_registers,
6044 fetch_core_registers): Only fetch / store / supply the
6045 floating-point registers and the fpscr if we have them.
6046 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6047 (ppcobsd-tdep.o): Update dependencies.
6048
15960608
AC
60492004-05-10 Andrew Cagney <cagney@redhat.com>
6050
6051 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6052 (context_switch): Do not switch through_sigtramp_breakpoint.
6053 * gdbthread.h (save_infrun_state, load_infrun_state)
6054 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6055 and structure member.
6056 * thread.c (load_infrun_state, save_infrun_state): Update.
6057
5ab5aa0f
MK
60582004-05-10 Mark Kettenis <kettenis@gnu.org>
6059
6060 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6061
da78b0e7
DJ
60622004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6063
6064 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6065 throughout.
6066 * aclocal.m4: Regenerate.
6067
cca0d3b0
NW
60682004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6069
6070 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6071
d303a6c7
AC
60722004-05-10 Andrew Cagney <cagney@redhat.com>
6073
6074 * infrun.c (check_sigtramp2): Delete function.
6075 (handle_inferior_event): When single stepping, and taking a
6076 signal, set a breakpoint at the signal return address. Delete
6077 redundant calls to check_sigtramp2.
6078 (insert_step_resume_breakpoint): New function.
6079 (through_sigtramp_breakpoint, handle_inferior_event)
6080 (follow_exec, wait_for_inferior, fetch_inferior_event)
6081 (currently_stepping, keep_going): Delete most uses of
6082 through_sigtramp_breakpoint, not that it should be deleted.
6083 (delete_breakpoint_current_contents): Delete function.
6084
03f4cc20
RC
60852004-05-10 Randolph Chung <tausq@debian.org>
6086
6087 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6088 target.
6089 * config/pa/tm-linux.h: New file.
6090
37fc812e
DJ
60912004-05-10 Daniel Jacobowitz <drow@mvista.com>
6092
6093 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6094 of prefixes. Don't print the prefix twice in the CLI.
6095
26c0b942
JB
60962004-05-10 Jim Blandy <jimb@redhat.com>
6097
2e56e9c1
JB
6098 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6099 collect all the gprs.
6100
26c0b942
JB
6101 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6102 loop collecting gprs.
6103
dc497459
AC
61042004-05-09 Andrew Cagney <cagney@redhat.com>
6105
6106 * remote-vx.c (net_step): Delete step-range code.
6107 * remote.c (remote_resume, init_all_packet_configs)
6108 (set_remote_protocol_E_packet_cmd)
6109 (show_remote_protocol_E_packet_cmd)
6110 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6111 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6112 (show_remote_protocol_e_packet_cmd): Ditto.
6113
0543f387
MK
61142004-05-09 Mark Kettenis <kettenis@gnu.org>
6115
c481d1ca
MK
6116 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6117
f626a069
MK
6118 * hppa-tdep.h: Update copyright year.
6119 (struct trad_frame_saved_reg): Add opaque declaration.
6120
6fa57a7d
MK
6121 * amd64-tdep.c (amd64_return_value): Implement
6122 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6123
e47577ab
MK
6124 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6125 (m68k_value_to_register): New functions.
6126 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6127 value_to_register.
6128
31db7b6c
MK
6129 * defs.h (enum return_value_convention): Add
6130 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6131 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6132 * infcmd.c (legacy_return_value): New function.
6133 (print_return_value): Rwerite to implement
6134 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6135 * values.c (using_struct_return): Check for inequality to
6136 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6137 RETURN_VALUE_STRUCT_CONVENTION.
6138 * i386-tdep.c (i386_return_value): Implement
6139 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6140
0543f387
MK
6141 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6142 include "symtab.h", "opcode/vax.h" and "inferior.h".
6143 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6144 to read_memory_unsigned_integer.
6145 (vax_gdbarch_init): Reorder.
6146 (_initialize_vax_tdep): Spell out prototype.
6147 * Makefile.in (vax-tdep.o): Update dependencies.
6148
0c93b7b6
AC
61492004-05-08 Andrew Cagney <cagney@redhat.com>
6150
e6b55ae2
AC
6151 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6152 * target.c (target_detach, target_disconnect): Ditto.
6153
1ac839b8
AC
6154 * infcall.c (call_function_by_hand): When no
6155 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6156 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6157 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6158 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6160
28954179
AC
6161 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6162 * gdbarch.h, gdbarch.c: Re-generate.
6163 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6164 deprecated_fix_call_dummy.
6165 * v850-tdep.c (v850_gdbarch_init): Ditto.
6166 * infcall.c (call_function_by_hand): Do not call
6167 DEPRECATED_FIX_CALL_DUMMY.
6168
434b87dd
AC
6169 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6170 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6171 * gdbarch.h, gdbarch.c: Re-generate.
6172 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6173 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6174 deprecated_sizeof_call_dummy_words.
6175 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6177 * v850-tdep.c (v850_gdbarch_init): Ditto.
6178 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6179 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6180 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6181 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6182 * arch-utils.h (legacy_call_dummy_words)
6183 (legacy_sizeof_call_dummy_words): Delete declarations.
6184 * arch-utils.c (legacy_call_dummy_words)
6185 (legacy_sizeof_call_dummy_words): Delete variables.
6186
58d28df8
AC
6187 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6188 * gdbarch.h, gdbarch.c: Re-generate.
6189 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6190 * infcall.c (call_function_by_hand): Eliminate call to
6191 DEPRECATED_PUSH_DUMMY_FRAME.
6192 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6193 push_dummy_frame.
6194 (ns32k_push_dummy_frame): Delete function.
6195
e4a2df64
AC
6196 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6197 deprecated_call_dummy_breakpoint_offset or
6198 deprecated_call_dummy_start_offset.
6199 * dummy-frame.c, arm-tdep.c: Update comments.
6200 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6201 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6202 * gdbarch.h, gdbarch.c: Re-generate.
6203
d3712828
AC
6204 * infcall.c (legacy_push_dummy_code): Delete function.
6205 (push_dummy_code): Delete call.
6206
7a882905
AC
6207 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6208 * gdbarch.h, gdbarch.c: Re-generate.
6209 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6210 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6211 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6212 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6213
0ec5872b
AC
6214 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6215 (struct frame_info): Delete opaque declaration.
6216 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6217 * frame.c (get_frame_type): Delete call.
6218
0c93b7b6
AC
6219 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6220 pc_in_call_dummy.
6221 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6222 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6223
75536971
MK
62242004-05-08 Mark Kettenis <kettenis@gnu.org>
6225
527ca6bb
MK
6226 * alphanbsd-tdep.c: Include "gdb_string.h".
6227 * armnbsd-tdep.c: Update copyright year.
6228 Include "gdb_string.h".
6229 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6230 dependencies.
6231
d39fdc61
MK
6232 * delta68-nat.c: Remove file.
6233 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6234 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6235 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6236 (delta68-nat.o): Remove dependency.
6237
75536971
MK
6238 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6239 function.
6240 (m68k_gdbarch_init): Don't set
6241 deprecated_frameless_function_invocation.
6242
f4ca1d1f
RC
62432004-05-07 Randolph Chung <tausq@debian.org>
6244
6245 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6246 read_memory_nobpt for code reading when doing frame unwinding.
6247 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6248
2f0e8c7a
RC
62492004-05-07 Randolph Chung <tausq@debian.org>
6250
6251 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6252 instead of sp, handle sigaltstack case.
6253 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6254 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6255 signal handler and not that of the caller.
6256 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6257 hppa_linux_sigtramp_find_sigcontext.
6258
959464ff
RC
62592004-05-07 Randolph Chung <tausq@debian.org>
6260
6261 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6262 hppa-linux-nat.c.
6263 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6264 * hppa-linux-nat.c (fetch_register, store_register): Define.
6265 (fetch_inferior_registers, store_inferior_registers): Define.
6266 (supply_gregset): Add comment and clean up some unneeded code.
6267 (fill_gregset): Add comment and fix so that it saves registers in
6268 the right place in the gregset.
6269 (fill_fpregset): Fix buffer overrun problem.
6270 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6271
0da28f8a
RC
62722004-05-07 Randolph Chung <tausq@debian.org>
6273
6274 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6275 do common handling of the pcoqt register.
6276 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6277 to use helper function.
6278 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6279 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6280 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6281 generic fallback unwinder when all else fails.
6282 (hppa_gdbarch_init): Add fallback sniffer.
6283 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6284 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6285 to use helper function.
6286
b9ec757a
JB
62872004-05-08 Joel Brobecker <brobecker@gnat.com>
6288
6289 * config/djgpp/fnchange.lst: Add translation rules for
6290 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6291
756e95f1
MK
62922004-05-08 Mark Kettenis <kettenis@gnu.org>
6293
6294 * frame.c (get_prev_frame_1): Work around GCC bug.
6295 * frame.h: Add comment about GCC bug.
6296
2b4855ab
AC
62972004-05-07 Andrew Cagney <cagney@redhat.com>
6298
6299 * observer.c: Include "commands.h" and "gdbcmd.h".
6300 (observer_debug, _initialize_observer): Add the
6301 command "set/show debug observer".
6302 * observer.sh: When observer debugging, log notify calls.
6303 * Makefile.in (observer.o): Update dependencies.
6304
ba3e8e46
JM
63052004-05-07 Jason Molenda (jmolenda@apple.com)
6306
6307 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6308
16796152
JB
63092004-05-07 Jim Blandy <jimb@redhat.com>
6310
daf6dc85
JB
6311 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6312 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6313 to recognize gpr regnums, instead of assuming that
6314 tdep->ppc_fp0_regnum marks the end of the general-purpose
6315 registers.
6316
16796152
JB
6317 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6318 the given architecture has floating-point registers.
6319
c69b8bfc
AC
63202004-05-07 Andrew Cagney <cagney@redhat.com>
6321
6322 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6323 macro defined to 1.
6324 * gdbarch.h, gdbarch.c: Re-generate.
6325 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6326 deprecated_use_generic_dummy_frames.
6327
7243600a
BF
63282004-05-07 Brian Ford <ford@vss.fsi.com>
6329
6330 * NEWS: Mention Cygwin DWARF 2 support.
6331
73c1e0a1
AC
63322004-05-07 Andrew Cagney <cagney@redhat.com>
6333
6334 * objfiles.h (struct entry_info): Delete unused fields
6335 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6336 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6337 * mipsread.c (mipscoff_symfile_read): Update.
6338 * mdebugread.c (parse_partial_symbols): Update.
6339 * dwarfread.c (read_file_scope): Update.
6340 * dwarf2read.c (read_file_scope): Update.
6341 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6342 * coffread.c (complete_symtab): Update.
6343
1d3056ac
MK
63442004-05-07 Mark Kettenis <kettenis@gnu.org>
6345
6346 * infcall.c (_initialize_infcall): Fix typo.
6347
15170568
AC
63482004-05-07 Andrew Cagney <cagney@redhat.com>
6349
6350 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6351 * command.h (add_setshow_zinteger_cmd): Declare.
6352
34f75cc1
RC
63532004-05-06 Randolph Chung <tausq@debian.org>
6354
6355 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6356 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6357 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6358 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6359 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6360 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6361 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6362 definitions ...
6363 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6364 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6365 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6366 (hppa64_hpux_frame_find_saved_regs_in_sig)
6367 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6368 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6369 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6370 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6371 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6372 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6373 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6374 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6375 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6376 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6377 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6378 (hppa32_register_type, hppa_cannot_store_register)
6379 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6380 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6381 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6382 * pa64solib.c (pa64_solib_have_load_event)
6383 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6384 (pa64_solib_unloaded_library_pathname): Likewise.
6385 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6386 (som_solib_library_pathname): Likewise.
6387
0a5e7efe
JI
63882004-05-05 Jim Ingham <jingham@apple.com>
6389
6390 * breakpoint.c (create_breakpoints): Copy the ignore count and
6391 thread id over from the pended breakpoint to the actual
6392 breakpoint.
6393
10a4b113
AC
63942004-05-05 Andrew Cagney <cagney@redhat.com>
6395
6396 * gdbarch.sh (PARM_BOUNDARY): Delete.
6397 gdbarch.h, gdbarch.c: Re-generate.
6398 * valops.c (PARM_BOUNDARY): Delete macro.
6399 (value_push): Delete PARM_BOUNDARY code.
6400 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6401
366f009f
JB
64022004-05-04 Jim Blandy <jimb@redhat.com>
6403
32b99774
JB
6404 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6405 Don't assume that the gprs, fprs, and UISA sprs are
6406 contiguous, start at register number zero, and end with fpscr.
6407 Instead, use the numbers from the tdep structure.
6408
366f009f
JB
6409 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6410 should no longer be used in code specific to the RS6000 and its
6411 derivatives.
6412 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6413 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6414 tdep->ppc_fp0_regnum.
6415 (ppc_supply_fpregset, ppc_collect_fpregset)
6416 (rs6000_push_dummy_call, rs6000_extract_return_value)
6417 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6418 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6419 FP0_REGNUM.
6420 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6421 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6422 Same.
6423 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6424 bdm_ppc_store_registers): Same.
6425 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6426 (store_register, fill_fpregset): Same.
6427 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6428 (ppc_linux_supply_fpregset): Same.
6429 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6430 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6431 Same.
6432 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6433 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6434 ppc64_sysv_abi_return_value): Same.
6435 * rs6000-nat.c (regmap, fetch_inferior_registers)
6436 (store_inferior_registers, fetch_core_registers): Same.
6437
827f338d
MK
64382004-05-01 Mark Kettenis <kettenis@gnu.org>
6439
6440 * m68knbsd-nat.c: Remove file.
6441 * m68knbsd-tdep.c: Remove file.
6442 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6443 dependencies.
6444 * configure.host: Add m68k-*-netbsdelf*.
6445 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6446 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6447 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6448 (XM_FILE): Remove.
6449 * config/m68k/nbsdelf.mh: New file.
6450 * config/m68k/nbsd.mt: New file.
6451 * config/m68k/nbsdaout.mt: Remove file.
6452 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6453 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6454 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6455 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6456 (use_struct_convention): Remove prototype.
6457 (USE_STRUCT_CONVENTION): Remove define.
6458 * config/m68k/xm-nbsd.h: Remove file.
6459
66894781
MS
64602004-05-04 Michael Snyder <msnyder@redhat.com>
6461
6462 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6463 reg_struct_return method (as gcc usually does for cross targets).
6464
f0f63663
AC
64652004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6466
6467 Committed by Andrew Cagney.
6468 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6469 alignment padding when accessing ucontext struct members.
6470
edf61169
JB
64712004-05-04 Jim Blandy <jimb@redhat.com>
6472
8bf659e8
JB
6473 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6474 'ppc_gplast_regnum' member.
6475 (ppc_num_gprs): New enum constant.
6476 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6477 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6478 * rs6000-nat.c (regmap, fetch_inferior_registers,
6479 store_inferior_registers): Same.
6480 * rs6000-tdep.c (e500_pseudo_register_read)
6481 (e500_pseudo_register_write): Same.
6482 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6483
b967e06f
JB
6484 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6485 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6486 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6487 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6488 FPLAST_REGNUM.
6489 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6490 Same.
6491 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6492 * rs6000-nat.c (regmap, fetch_inferior_registers)
6493 (store_inferior_registers): Same.
6494
edf61169
JB
6495 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6496 with FPLAST_REGNUM.
6497
58a9656e
JB
64982004-05-03 Joel Brobecker <brobecker@gnat.com>
6499
6500 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6501 failure detected by recent versions of GCC.
6502 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6503 to be consistent with the usage in dwarf2_create_include_psymtab.
6504
dc305454
MS
65052004-05-03 Michael Snyder <msnyder@redhat.com>
6506
6507 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6508 (heuristic_proc_start): Whitespace cleanup.
6509
29972665
MK
65102004-05-04 Mark Kettenis <kettenis@gnu.org>
6511
6b57680d
MK
6512 * sun3-nat.c: Remove file.
6513 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6514 dependencies.
6515 (ALLDEPFILES): Remove sun3-nat.c.
6516 (sun3-nat.o): Remove dependencies.
6517
29972665
MK
6518 * i386-interix-nat.c, i386-interix-tdep.c,
6519 config/i386/nm-interix.h, config/i386/interix.mh,
6520 config/i386/interix.mt: Remove files.
6521 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6522 dependencies.
6523
f595cb19
MK
65242004-05-03 Mark Kettenis <kettenis@gnu.org>
6525
6526 * m68k-tdep.h (struct gdbarch_tdep): Add member
6527 struct_value_regnum.
6528 (m68k_svr4_init_abi): New prototype.
6529 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6530 different calling conventions.
6531 (m68k_extract_return_value): Remove code dealing with single-field
6532 structs.
6533 (m68k_store_return_value): Remove code dealing with single-field
6534 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6535 (m68k_extract_struct_value_address): Remove function.
6536 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6537 (m68k_reg_struct_return_p, m68k_return_value)
6538 (m68k_svr4_return_value): New functions.
6539 (m68k_use_struct_convention): Remove function.
6540 (m68k_push_dummy_call): Use new struct_value_regnum member of
6541 `struct gdbarch_tdep' instead of hardcoded register number to
6542 store STRUCT_ADDR.
6543 (m68k_svr4_init_abi): New function.
6544 (m68k_gdbarch_init): Don't set extract_return_value,
6545 store_return_values, deprecated_extract_struct_value_address and
6546 use_struct_convention. Set return_value instead. Initialize new
6547 struct_value_regnum member of `struct gdbarch_tdep'.
6548 * m68klinux-tdep.c: Update copyright year.
6549 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6550 (m68k_linux_extract_struct_value_address): Remove function.
6551 (m68k_linux_init_abi): Don't set extract_return_value,
6552 store_return_values, deprecated_extract_struct_value_address and
6553 use_struct_convention. Call m68k_svr4_init_abi but override the
6554 new struct_value_regnum member of `struct gdbarch_tdep'.
6555 * Makefile.in (m68k-tdep.o): Update dependencies.
6556
aaa75496
JB
65572004-05-03 J. Brobecker <brobecker@gnat.com>
6558
6559 * dwarf2read.c (line_header): Add new included_p field in
6560 field file_names.
6561 (partial_die_info): New field has_stmt_list. New field line_offset.
6562 (dwarf2_create_include_psymtab): New function.
6563 (dwarf2_build_include_psymtabs): New function.
6564 (add_file_name): Add forward declaration. Initialize new field.
6565 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6566 to be able to determine the list of files included by the
6567 given unit, and build their associated psymtabs.
6568 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6569 files as well.
6570 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6571 (read_file_scope): Update call to dwarf_decode_lines.
6572 (read_partial_die): Handle DW_AT_stmt_list attributes.
6573
c848556f
MC
65742004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6575
6576 Unfix PR gdb/1626.
6577 * configure.in: Revert special case for osf5.*.
6578 * configure: Regenerate.
6579
eb4556d7
JB
65802004-05-02 Jim Blandy <jimb@redhat.com>
6581
6582 Move the symbol-file-from-memory functions into their own file.
6583 * symfile-mem.c, symfile-mem.h: New files.
6584 * symfile.c (symbol_file_add_from_bfd): New function.
6585 (symbol_file_add): Call symbol_file_add_from_bfd.
6586 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6587 Moved to symfile-mem.c.
6588 (_initialize_symfile): Move definition of
6589 add-symbol-file-from-memory command to symfile-mem.c.
6590 * symfile.h (symbol_file_add_from_bfd): New declaration.
6591 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6592 * config/powerpc/linux.mt (TDEPFILES): Same.
6593 * Makefile.in (SFILES): Add symfile-mem.c.
6594 (symfile_mem_h): New variable.
6595 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6596 (symfile-mem.o): New rule.
6597
80bb239e
AC
65982004-05-01 Andrew Cagney <cagney@redhat.com>
6599
7789d0fa
AC
6600 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6601 frame_find_by_id instead of frame_relative_level.
6602 (do_enable_breakpoint): Ditto.
6603 * thread.c: Update copyright.
6604 (info_threads_command): Ditto, simplify.
6605
80bb239e
AC
6606 * frame.c (deprecated_generic_get_saved_register): Delete
6607 function, moved to "xstormy16-tdep.c".
6608 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6609 deprecated_generic_get_saved_register from "frame.c".
6610 (xstormy16_frame_saved_register): Call
6611 xstormy16_get_saved_register.
6612 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6613 static.
6614 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6615 * frame.h (deprecated_generic_get_saved_register): Delete.
6616
b2a871dd
MC
66172004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6618
6619 * dwarfread.c: Update documentation on the state of dwarf-1.
6620
0e100dab
AC
66212004-05-01 Andrew Cagney <cagney@redhat.com>
6622
acd8056e
AC
6623 * stack.c (select_frame_command): Delete call to
6624 frame_relative_level.
6625 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6626 Delete #if0 code.
6627 (frame_info): Do not print FRAMELESS.
6628 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6629 (catch_info): Delete #if0 code.
6630
0e100dab
AC
6631 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6632 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6633 of frame_relative_level.
6634 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6635 to SENTINEL_FRAME.
6636 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6637 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6638 frame_relative_level.
6639
55699d59
AC
6640 * frame.h (deprecated_set_frame_type): Delete declaration.
6641 * frame.c (deprecated_set_frame_type): Delete function, update
6642 comments.
6643
fcf70625
AC
6644 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6645 * gdbarch.h, gdbarch.c: Re-generate.
6646 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6647 (shnbsd_pc_in_sigtramp): Delete.
6648 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6649 pc_in_sigtramp.
6650 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6651 pc_in_sigtramp.
6652 * frame.h: Update comments.
6653 * ppc-linux-tdep.c: Update comments.
6654 * breakpoint.c (bpstat_what): Update comments.
6655
ac5eccb7
AC
6656 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6657 m68klinux-tdep.o's dependencies, were previously added to
6658 m68klinux-nat.o.
6659
f2524b93
AC
6660 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6661 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6662 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6663 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6664 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6665
17e20bce
AC
6666 * Makefile.in (m68klinux-nat.o): Update dependencies.
6667 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6668 (m68k_linux_sigtramp_frame_cache)
6669 (m68k_linux_sigtramp_frame_this_id)
6670 (m68k_linux_sigtramp_frame_prev_register)
6671 (m68k_linux_sigtramp_frame_unwind)
6672 (m68k_linux_sigtramp_frame_sniffer)
6673 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6674 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6675 names, use trad-frame.h.
6676 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6677 (struct m68k_sigtramp_info): Delete.
6678 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6679 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6680 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6681 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6682 "m68klinux-tdep.c".
6683
c8864fa2
AC
6684 * infrun.c (check_sigtramp2): Delete check for
6685 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6686
511dd2cd
MK
66872004-05-01 Mark Kettenis <kettenis@gnu.org>
6688
6689 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6690
8c6b0e06
AC
66912004-05-01 Andrew Cagney <cagney@redhat.com>
6692
9df0bb3f
AC
6693 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6694 (frv_linux_sigtramp_frame_cache)
6695 (frv_linux_sigtramp_frame_this_id)
6696 (frv_linux_sigtramp_frame_prev_register)
6697 (frv_linux_sigtramp_frame_unwind)
6698 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6699 include "linux" in function and variable names, directly call
6700 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6701 the latest trad-frame code.
6702 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6703 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6704 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6705 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6706 * frv-tdep.c (frv_sigtramp_frame_cache)
6707 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6708 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6709 frv-linux-tdep.c.
6710 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6711 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6712 (frv_set_sigcontext_reg_addr): Delete function.
6713
8c6b0e06
AC
6714 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6715 (DEPRECATED_SIGTRAMP_END): Delete.
6716 * gdbarch.h, gdbarch.c: Re-generate.
6717 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6718 * config/vax/tm-vaxbsd.h: Update copyright.
6719 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6720 (DEPRECATED_IN_SIGTRAMP): Define.
6721 * config/m68k/tm-nbsd.h: Update copyright.
6722 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6723 (DEPRECATED_IN_SIGTRAMP): Define.
6724
50ea7769
MK
67252004-05-01 Mark Kettenis <kettenis@gnu.org>
6726
03ac2a74
MK
6727 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6728 encondings. Fixes PR gdb/1628.
6729
50ea7769
MK
6730 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6731 DW_CFA_restore state without a matching DW_CFA_remember_state
6732 instead of aborting. Fixes PR backtrace/1589.
6733
9a5d7be1
JB
67342004-04-30 Joel Brobecker <brobecker@gnat.com>
6735
6736 * MAINTAINERS: Add self as AIX maintainer.
6737 Update my e-mail address in write-after-approval section.
6738
2593d1cd
AC
67392004-04-30 Andrew Cagney <cagney@redhat.com>
6740
ce12bbf9
AC
6741 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6742 (legacy_get_prev_frame): Ditto.
6743
36710c63
AC
6744 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6745 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6746 * mipsread.c (sigtramp_address): Delete extern variable.
6747 (mipscoff_new_init): Delete reference.
6748 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6749 (fixup_sigtramp): Delete function.
6750 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6751 (fixup_sigtramp): Delete declarations.
6752
2593d1cd
AC
6753 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6754 deprecated_pc_in_sigtramp.
6755 (ppcnbsd_pc_in_sigtramp): Delete function.
6756
2a25f91c
MK
67572004-05-01 Mark Kettenis <kettenis@gnu.org>
6758
6759 * config/m68k/nm-nbsd.h: Tweak comments.
6760 * config/m68k/nm-nbsdaout.h: Likewise.
6761
0b281939
AC
67622004-04-30 Andrew Cagney <cagney@redhat.com>
6763
6764 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6765 legacy_pc_in_sigtramp.
6766 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6767
8f2d3ea0
MK
67682004-05-01 Mark Kettenis <kettenis@gnu.org>
6769
6770 Add OpenBSD/m68k support.
6771 * NEWS (New native configurations): Mention OpenBSD/m68k.
6772 * m68kbsd-tdep.c: New file.
6773 * m68kbsd-nat.c: New file.
6774 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6775 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6776 * configure.host: Add m68k-*-openbsd.
6777 * configure.tgt: Add m68k-*-openbsd.
6778 * config/m68k/tm-obsd.h: New file.
6779 * config/m68k/obsd.mt: New file.
6780 * config/m68k/obsd.mh: New file.
6781 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6782 m68kbsd-tdep.c.
6783
c40f49a4
AC
67842004-04-30 Andrew Cagney <cagney@redhat.com>
6785
6786 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6787 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6788
e81554cd
MK
67892004-04-30 Mark Kettenis <kettenis@gnu.org>
6790
6791 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6792 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6793
d4dc1a91
BF
67942004-04-30 Brian Ford <ford@vss.fsi.com>
6795
6796 Revert 2004-04-16 change.
6797 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6798 (i386_coff_init_abi): Remove.
6799 * i386-tdep.h (i386_coff_init_abi): Remove.
6800 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6801
2f72f850
AC
68022004-04-30 Andrew Cagney <cagney@redhat.com>
6803
e492f9d6
AC
6804 * blockframe.c (find_pc_partial_function): Delete use of
6805 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6806 DEPRECATED_SIGTRAMP_END.
6807
7b7adad0
AC
6808 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6809 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6810 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6811 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6812 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6813
2f72f850
AC
6814 * defs.h (deprecated_inside_entry_file): Delete declaration.
6815 * blockframe.c (deprecated_inside_entry_file): Delete function.
6816 (legacy_frame_chain_valid): Delete call.
6817 * sh64-tdep.c (sh64_frame_chain): Delete call.
6818 * objfiles.h: Update comments.
6819 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6820 call.
6821 * frame.c (get_prev_frame): Delete call, update comments.
6822
283f90a7
BF
68232004-04-30 Brian Ford <ford@vss.fsi.com>
6824
6825 * MAINTAINERS (Write After Approval): Add myself.
6826
8ee56bcf
AC
68272004-04-30 Andrew Cagney <cagney@redhat.com>
6828
6829 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6830 * gdbarch.h, gdbarch.c: Re-generate.
6831 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6832 code.
6833
ee27e1b6
AC
68342004-04-30 Andrew Cagney <cagney@redhat.com>
6835
6836 * gdb-events.sh (selected_thread_changed)
6837 (selected_frame_level_changed, target_changed): Delete.
6838 * gdb-events.h, gdb-events.c: Re-generate.
6839 * valops.c (value_assign): Update.
6840 * stack.c (select_frame_command, up_silently_base)
6841 (down_silently_base): Update.
6842
d5ac5a39
AC
68432004-04-29 Andrew Cagney <cagney@redhat.com>
6844
6845 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6846 registers correctly.
6847 (print_gp_register_row, mips32_heuristic_proc_desc)
6848 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6849 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6850 references to mips_isa_regsize.
6851
ceae6e75
AC
68522004-04-29 Andrew Cagney <cagney@redhat.com>
6853
6854 * mips-tdep.c (struct gdbarch_tdep): Delete
6855 mips_fp_register_double.
6856 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6857 mips_abi_regsize.
6858 (mips_gdbarch_init): Do not set mips_fp_register_double.
6859 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6860
a587af0b
AC
68612004-04-29 Joel Brobecker <brobecker@gnat.com>
6862
6863 Committed by Andrew Cagney.
6864 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6865 function calls.
6866
13326b4e
AC
68672004-04-29 Andrew Cagney <cagney@redhat.com>
6868
6869 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6870 gdbarch, use mips_abi, update callers.
6871 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6872 mips_abi_regsize, update callers.
6873 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6874 mips_default_abi_regsize.
6875 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6876 mips_default_abi_regsize.
6877
711cc5cd
AC
68782004-04-29 Andrew Cagney <cagney@redhat.com>
6879
1b13c4f6
AC
6880 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6881 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6882 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6883 mips_default_abi_regsize.
6884 (mips_isa_regsize): Rename mips_regisze.
6885 * mipsnbsd-tdep.c: Update.
6886 * mips-linux-tdep.c: Update.
6887 * irix5-nat.c: Update.
6888 * mips-tdep.h (mips_isa_regsize): Update.
6889
711cc5cd
AC
6890 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6891 Delete all disabled code.
6892 * gdb-events.h, gdb-events.c: Re-generate.
6893
e63bbc88
MK
68942004-04-19 Jerome Guitton <guitton@gnat.com>
6895 Mark Kettenis <kettenis@gnu.org>
6896
6897 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6898 the function begins with a branch instruction.
6899
fd35795f
MK
69002004-04-29 Mark Kettenis <kettenis@gnu.org>
6901
6902 * i386-tdep.c: Fix spelling mistakes.
6903
c960c18f
AC
69042004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6905 Andrew Cagney <cagney@redhat.com>
6906
6907 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6908 <sys/proc.h>.
6909 * acconfig.h: Provide default _KMEMUSER value.
6910 * config.in, configure: Re-generate.
6911 * NEWS: Mention fix.
6912
50306a9d
RC
69132004-04-24 Randolph Chung <tausq@debian.org>
6914
6915 * configure.host (hppa*-*-linux*): New target.
6916 * configure.tgt (hppa*-*-linux*): Likewise.
6917 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6918 gdbarch_init_osabi() call earlier so that osabi-specific frame
6919 unwinders can be registered first.
6920 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6921 hppa-linux-nat.c.
6922 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6923 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6924 * config/pa/linux.mh: New file.
6925 * config/pa/linux.mt: New file.
6926 * config/pa/nm-linux.h: New file.
6927 * config/pa/xm-linux.h: New file.
6928 * hppa-linux-nat.c: New file.
6929 * hppa-linux-tdep.c: New file.
6930
2a6228ef
RC
69312004-04-28 Randolph Chung <tausq@debian.org>
6932
6933 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6934 return values.
6935 (hppa32_push_dummy_call): Fix small struct and floating point argument
6936 passing, and make sure the stack frame is properly aligned.
6937
82c10df6
AC
69382004-04-28 Andrew Cagney <cagney@redhat.com>
6939
d762c46a
AC
6940 * stack.c (print_stack_frame): Fix description.
6941
82c10df6
AC
6942 * NEWS: Mention gdb/gdbserver/configure execute permission
6943 changed. PR server/519.
6944
0faf0076
AC
69452004-04-28 Andrew Cagney <cagney@redhat.com>
6946
6947 * stack.c (print_stack_frame_stub): Delete declaration.
6948 (struct print_stack_frame_args, print_stack_frame)
6949 (print_frame_info, print_frame): Replace "source" with print what.
6950 Replace "print" with "print_level". Replace "args" with
6951 "print_args".
6952 * frame.h (show_and_print_stack_frame, print_stack_frame)
6953 (print_frame_info): Update declarations.
6954 * stack.c (select_and_print_frame, frame_command)
6955 (current_frame_command, up_command, down_command): Update calls -
6956 use get_selected_frame, pass "enum print_what" for source, do not
6957 call frame_relative_level.
6958 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6959 * remote-rdp.c (remote_rdp_open): Ditto.
6960 * remote-mips.c (common_open): Ditto.
6961 * remote-e7000.c (e7000_start_remote): Ditto.
6962 * ocd.c (ocd_start_remote): Ditto.
6963 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6964 * infrun.c (normal_stop): Ditto.
6965 * inflow.c (kill_command): Ditto.
6966 * infcmd.c (finish_command): Ditto.
6967 * corelow.c (core_open): Ditto.
6968 * tracepoint.c (finish_tfind_command): Ditto.
6969 * thread.c (info_threads_command, info_threads_command)
6970 (restore_current_thread, do_captured_thread_select): Ditto.
6971 * ada-tasks.c (task_command): Ditto.
6972
f4c5303c
OF
69732004-04-26 Orjan Friberg <orjanf@axis.com>
6974
6975 * frame.c: Include "observer.h".
6976 (frame_observer_target_changed): New function.
6977 (_initialize_frame): Attach target_changed observer.
6978 * regcache.c: Include "observer.h".
6979 (regcache_observer_target_changed): New function.
6980 (_initialize_regcache): Attach target_changed observer.
6981 * valops.c: Include "observer.h".
6982 (value_assign): Notify target_changed event when modifying register.
6983 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6984
7270d8f2
OF
69852004-04-26 Orjan Friberg <orjanf@axis.com>
6986
6987 From Paul Koning <pkoning@equallogic.com>:
6988 * breakpoint.c (free_valchain): New function.
6989 (insert_bp_location, delete_breakpoint): Use free_valchain.
6990 (remove_breakpoint): Do not remove the valchain.
6991 (bpstat_stop_status): If not stopped by watchpoint, skip
6992 watchpoints when generating stop status list.
6993 * infrun.c (handle_inferior_event): Make
6994 stepped_after_stopped_by_watchpoint a global variable.
6995 * remote.c (remote_stopped_data_address): Return watch data
6996 address rather than zero if stepped_after_stopped_by_watchpoint is
6997 set.
6998
02d62932
MC
69992004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7000
7001 Fix PR gdb/1626.
7002 * configure.in: Check for curses after termcap.
7003 On osf5.*, do not check for ncurses.
7004 * configure: Regenerate.
7005
3e9a183c
MK
70062004-04-25 Mark Kettenis <kettenis@gnu.org>
7007
c79ac407
MK
7008 * ppcobsd-nat.c: Include "ppc-tdep.h".
7009 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7010
3e9a183c
MK
7011 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7012 Fixes PR tdep/1623 and PR tdep/1624.
7013
38cc9c28
MC
70142004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7015
7016 * xmodem.h, xmodem.c: Remove files.
7017 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7018
7f07c5b6
RC
70192004-04-23 Randolph Chung <tausq@debian.org>
7020
7021 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7022 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7023 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7024 for handling stackless frames.
7025 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7026
9f7194c3
RC
70272004-04-23 Randolph Chung <tausq@debian.org>
7028
7029 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7030 starts at a pc before the frame is created.
7031
dcff6009
JB
70322004-04-23 Joel Brobecker <brobecker@gnat.com>
7033
7034 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7035
40711ff1 70362004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7037
7038 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7039 use convert_typed_floating to get the appropriate format.
7040
abc485a1
RC
70412004-04-22 Randolph Chung <tausq@debian.org>
7042
7043 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7044 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7045 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7046 (hppa_sign_extend): Add prototype.
7047 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7048 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7049 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7050 hppa targets will also use these functions.
7051 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7052 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7053 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7054 (hppa_gdbarch_init): Remove gdbarch setting of
7055 skip_trampoline_code, in_solib_call_trampoline and
7056 in_solib_return_trampoline.
7057 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7058 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7059 hppa_in_solib_call_trampoline.
7060 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7061 Moved from hppa-tdep.c.
7062 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7063 in_solib_call_trampoline and in_solib_return_trampoline.
7064
369aa520
RC
70652004-04-22 Randolph Chung <tausq@debian.org>
7066
7067 * hppa-tdep.c (hppa_debug): New variable.
7068 (find_unwind_entry, hppa_frame_cache): Add debug output.
7069 (_initialize_hppa_tdep): Add command to set debug flag.
7070
476be15e
AC
70712004-04-22 Andrew Cagney <cagney@redhat.com>
7072
7073 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7074 "trad-frame.h".
7075 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7076 signal trampoline unwinder.
7077 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7078
d195bc9f
MK
70792004-04-22 Mark Kettenis <kettenis@gnu.org>
7080
7081 Add OpenBSD/powerpc support.
7082 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7083 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7084 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7085 (ppc_collect_fpregset): New prototypes.
7086 * ppcobsd-nat.c: New file.
7087 * ppcobsd-tdep.c: New file.
7088 * ppcobsd-tdep.h: New file.
7089 * rs6000-tdep.c: Include "regset.h".
7090 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7091 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7092 New functions.
7093 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7094 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7095 (rs6000-tdep.o): Update dependencies.
7096 * configure.host: Add powerpc-*-openbsd.
7097 * configure.tgt: Add powerpc-*-openbsd.
7098 * config/powerpc/obsd.mh: New file.
7099 * config/powerpc/nm-obsd.h: New file.
7100 * config/powerpc/obsd.mt: New file.
7101
6f14cc33
AC
71022004-04-22 Andrew Cagney <cagney@redhat.com>
7103
fcf29e5f
AC
7104 * frame.h (show_frame_info): Delete declaration.
7105
6f14cc33
AC
7106 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7107 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7108 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7109 * frv-tdep.c (frv_frame_this_id): Ditto.
7110 * avr-tdep.c (avr_frame_this_id): Ditto.
7111
e5786a5c
EZ
71122004-04-22 Elena Zannoni <ezannoni@redhat.com>
7113
7114 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7115
26e75e5c
JB
71162004-04-22 Jim Blandy <jimb@redhat.com>
7117
7118 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7119 register number zero.
7120
d8d65dd3
MS
71212004-04-21 Michael Snyder <msnyder@redhat.com>
7122
7123 * mips-tdep.c (heuristic_proc_start):
7124 Warning() already prefixes "Warning: ".
7125
9a4105ab
AC
71262004-04-21 Andrew Cagney <cagney@redhat.com>
7127
7128 * annotate.h (deprecated_annotate_starting_hook)
7129 (deprecated_annotate_stopped_hook)
7130 (deprecated_annotate_exited_hook)
7131 (deprecated_annotate_signal_hook)
7132 (deprecated_annotate_signalled_hook): Deprecate.
7133 * tracepoint.h (deprecated_create_tracepoint_hook)
7134 (deprecated_delete_tracepoint_hook)
7135 (deprecated_modify_tracepoint_hook)
7136 (deprecated_trace_find_hook)
7137 (deprecated_trace_start_stop_hook): Deprecate.
7138 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7139 * remote.h (deprecated_target_resume_hook)
7140 (deprecated_target_wait_loop_hook): Deprecate.
7141 * gdbcore.h (deprecated_exec_file_display_hook)
7142 (deprecated_file_changed_hook): Deprecate.
7143 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7144 * defs.h (deprecated_modify_breakpoint_hook)
7145 (deprecated_command_loop_hook, deprecated_show_load_progress)
7146 (deprecated_print_frame_info_listing_hook)
7147 (deprecated_query_hook, deprecated_warning_hook)
7148 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7149 (deprecated_delete_breakpoint_hook)
7150 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7151 (deprecated_readline_begin_hook, deprecated_readline_hook)
7152 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7153 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7154 (deprecated_context_hook, deprecated_target_wait_hook)
7155 (deprecated_attach_hook, deprecated_detach_hook)
7156 (deprecated_call_command_hook, deprecated_set_hook)
7157 (deprecated_error_hook, deprecated_error_begin_hook)
7158 (deprecated_ui_load_progress_hook): Deprecate.
7159 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7160 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7161 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7162 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7163 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7164 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7165 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7166 * annotate.c, aix-thread.c: Update.
7167
62cf13cc
AC
71682004-04-21 Andrew Cagney <cagney@redhat.com>
7169
b2e31a62
AC
7170 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7171 * vaxnbsd-tdep.c: Include "gdb_string.h".
7172
62cf13cc
AC
7173 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7174 (add_symbol_file_from_memory_command): #if 0 function body, call
7175 error instead.
7176
00e32a35
AC
71772004-04-21 Andrew Cagney <cagney@redhat.com>
7178
7179 * gdbcore.h: Update copyright.
7180 (deprecated_add_core_fns): Rename add_core_fns.
7181 * win32-nat.c (_initialize_core_win32): Update.
7182 * sun3-nat.c (_initialize_core_sun3): Update.
7183 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7184 * rs6000-nat.c (_initialize_core_rs6000): Update.
7185 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7186 * nto-tdep.c (_initialize_nto_tdep): Update.
7187 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7188 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7189 * mips-nat.c (_initialize_core_mips): Update.
7190 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7191 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7192 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7193 * lynx-nat.c (_initialize_core_lynx): Update.
7194 * irix5-nat.c (_initialize_core_irix5): Update.
7195 * i386-interix-nat.c (_initialize_core_interix): Update.
7196 * cris-tdep.c (_initialize_cris_tdep): Update.
7197 * corelow.c (deprecated_add_core_fns): Update.
7198 * core-regset.c (_initialize_core_regset): Update.
7199 * core-aout.c (_initialize_core_aout): Update.
7200 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7201 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7202 * alpha-nat.c (_initialize_core_alpha): Update.
7203
13c7b1ca
JB
72042004-04-21 Jim Blandy <jimb@redhat.com>
7205
7206 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7207
7b5a2f43
DJ
72082004-04-19 Daniel Jacobowitz <drow@mvista.com>
7209
7210 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7211 Delete.
7212 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7213 (read_attribute_value): Update calls to dwarf_alloc_block.
7214 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7215 dwarf2_tmp_obstack.
7216 (psymtab_to_symtab_1): Likewise. Clean up using
7217 free_stack_comp_unit.
7218 (add_to_cu_func_list): Use the comp_unit_obstack.
7219
05cf31d1
JB
72202004-04-19 Joel Brobecker <brobecker@gnat.com>
7221
7222 * dwarf2read.c (dwarf2_flag_true_p): New function.
7223 (die_is_declaration): Use the function above. Add some comments.
7224
adf93a2f
MK
72252004-04-19 Mark Kettenis <kettenis@gnu.org>
7226
7227 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7228 architecture when registering sparcnbsd_core_osabi_sniffer.
7229 Adjust comment.
7230
748894bf
MK
72312004-04-18 Mark Kettenis <kettenis@gnu.org>
7232
f622ad42
MK
7233 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7234 return value.
7235
c4fc7f1b
MK
7236 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7237 * i386-tdep.c: Correct register numbering scheme comments
7238 throughout.
7239 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7240 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7241 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7242 (i386_gdb_arch_init): Likewise.
7243
b4ead1bd
MK
7244 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7245 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7246 ppcnbsd-tdep.o.
7247
748894bf
MK
7248 * m68k-tdep.h: Tweak comments.
7249 * m68k-tdep.c: Tweak comment.
7250
fdd72f95
RC
72512004-04-17 Randolph Chung <tausq@debian.org>
7252
7253 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7254 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7255 (hppa_hpux_som_init_abi): Set is_elf to 0.
7256 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7257 * hppa-tdep.c (low_text_segment_address): Remove global.
7258 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7259 section offset to calculate segment address.
7260 (internalize_unwinds): Define low_text_segment_address as local and
7261 pass to record_text_segment_lowaddr for ELF targets.
7262 (hppa_gdbarch_init): Zero fill tdep structure.
7263 (hppa_dump_tdep): Print tdep structure.
7264 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7265
0f8d9d59
RC
72662004-04-17 Randolph Chung <tausq@debian.org>
7267
7268 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7269 (hppa_gdbarch_init): Set pseudo_register_read.
7270 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7271 * regcache.c (supply_register): Remove check for
7272 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7273
7c46b9fb
RC
72742004-04-17 Randolph Chung <tausq@debian.org>
7275
7276 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7277 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7278 (hpread_adjust_stack_address): Move to hpread.c.
7279 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7280 obj_private_struct): Move from tm-hppa.h.
7281 * hpread.c (hppa-tdep.h): Include.
7282 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7283 (hpread_read_function_type, hpread_read_doc_function_type)
7284 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7285 directly.
7286 * pa64solib.c (hppa-tdep.h): Include.
7287 * somsolib.c (hppa-tdep.h): Include.
7288 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7289 inferior_status): Remove unused forward declarations.
7290 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7291 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7292 obj_private_struct): Move to hppa-tdep.h.
7293 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7294
8d153463
RC
72952004-04-17 Randolph Chung <tausq@debian.org>
7296
7297 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7298 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7299 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7300 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7301 Remove forward declaration and make static.
7302 (hppa_reg_struct_has_addr): Remove.
7303
350c2e5b
JB
73042004-04-16 Joel Brobecker <brobecker@gnat.com>
7305
7306 * observer.sh: Move comments in sed command to first column.
7307
bbde78fa
JM
73082004-04-16 Jason Molenda (jmolenda@apple.com)
7309
7310 * frame.c: Minor typeo corrections in comments.
7311
e0270fd9
JB
73122004-04-16 Joel Brobecker <brobecker@gnat.com>
7313
7314 * observer.c (observer_test_first_notification_function): Update
7315 function profile.
7316 (observer_test_second_notification_function): Likewise.
7317 (observer_test_third_notification_function): Likewise.
7318
3d049254
MK
73192004-04-16 Mark Kettenis <kettenis@gnu.org>
7320
7321 From Brian Ford <ford@vss.fsi.com>:
7322 * i386-tdep.c (i386_coff_init_abi): New function.
7323 * i386-tdep.h (i386_coff_init_abi): New prototype.
7324 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7325 register number translation functions for DWARF and DWARF 2.
7326
7867684d
JB
73272004-04-16 Joel Brobecker <brobecker@gnat.com>
7328
7329 * dwarf2read.c: Back out my previous change, it was incorrect.
7330
72bf9492
DJ
73312004-04-16 Daniel Jacobowitz <drow@mvista.com>
7332
7333 * dwarf2read.c: Include "hashtab.h".
7334 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7335 has_namespace_info.
7336 (struct partial_die_info): Add comments. Use bitfields to reduce
7337 memory footprint. Add scope, scope_set, has_specification,
7338 spec_offset, die_parent, die_child, and die_sibling.
7339 (peek_die_abbrev): Add prototype.
7340 (partial_read_comp_unit_head): New function, broken out from
7341 dwarf2_build_psymtabs_hard.
7342 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7343 Use partial_read_comp_unit_head. Initialize the CU and
7344 comp_unit_obstack. Update calls to read_partial_die and
7345 scan_partial_symbols. Use free_stack_comp_unit and
7346 load_partial_dies.
7347 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7348 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7349 Update calls to helper functions. Remove NAMESPACE argument.
7350 Update comments.
7351 (partial_die_parent_scope, partial_die_full_name): New functions.
7352 (add_partial_symbol): Remove namespace argument. Update call to
7353 pdi_needs_namespace. Use partial_die_full_name. Handle
7354 DW_TAG_namespace. Check has_namespace_info flag.
7355 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7356 tag. Handle namespaces.
7357 (add_partial_namespace, add_partial_enumeration): Simplify.
7358 (guess_structure_name): New function, derived from
7359 add_partial_structure.
7360 (add_partial_structure): Remove.
7361 (determine_class_name): Update comment.
7362 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7363 (is_type_tag_for_partial, load_partial_dies): New functions.
7364 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7365 Record specifications instead of following them immediately.
7366 (find_partial_die_in_comp_unit, find_partial_die)
7367 (fixup_partial_die, free_stack_comp_unit)
7368 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7369 (partial_die_hash, partial_die_eq): New functions.
7370 * Makefile.in (hashtab_h): Define.
7371 (dwarf2read.o): Update dependencies.
7372 (observer_inc, observer_h): Move to the correct section.
7373
fdc860a3
JB
73742004-04-15 Joel Brobecker <brobecker@gnat.com>
7375
7376 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7377 (die_is_declaration): Use the function above. Add comment.
7378
dc718098
JB
73792004-04-15 Joel Brobecker <brobecker@gnat.com>
7380
7381 * dwarf2read.c (read_structure_scope): Identify stub types
7382 using die_is_declaration() only.
7383
8718a420
RM
73842004-04-15 Roland McGrath <roland@redhat.com>
7385
7386 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7387 argument instead of NAME.
7388 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7389 in call to symbol_file_add_with_addrs_or_offsets.
7390 (build_addr_info): New function, helper for ...
7391 (symbol_file_add_from_memory): New function.
7392 (add_symbol_file_from_memory_command): New function using that.
7393 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7394 (pre_add_symbol_hook): Add const to argument type.
7395 * symfile.h (symbol_file_add_from_memory): Declare it.
7396
8b910bab
MK
73972004-04-15 Mark Kettenis <kettenis@gnu.org>
7398
9f076e7a
MK
7399 * NEWS (New native configurations): Mention OpenBSD/vax.
7400 * configure.host: Add vax-*-openbsd*.
7401 * config/vax/obsd.mh: New file.
7402 * config/vax/nm-obsd.h: New file.
7403
8b910bab
MK
7404 * vax-tdep.c: Include "regset.h".
7405 (vax_supply_gregset): New function.
7406 (vax_gregset): New variable.
7407 (vax_regset_from_core_section): New function.
7408 (vax_gdbarch_init): Set regset_from_core_section.
7409 * Makefile.in (vax-tdep.o): Update dependencies.
7410
7a464420
AC
74112004-04-15 Andrew Cagney <cagney@redhat.com>
7412
7413 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7414 (observer_normal_stop_notification_stub)
7415 (observer_attach_normal_stop, observer_detach_normal_stop):
7416 Delete, replaced by #include "observer.inc".
7417 * infrun.c (normal_stop): Pass "stop_bpstat" to
7418 observer_notify_normal_stop.
7419 * Makefile.in (observer_inc): Define.
7420 (observer.o): Update dependencies.
7421 (observer.h, observer.inc): New rules.
7422 * observer.h: Delete file.
7423 * observer.sh: New file.
7424
e36ad527
MK
74252004-04-15 Mark Kettenis <kettenis@gnu.org>
7426
7427 * vax-tdep.c (vax_frame_cache): Fix typo.
7428
67b441e1
MK
74292004-04-14 Mark Kettenis <kettenis@gnu.org>
7430
6f606e1c
MK
7431 * NEWS (New native configurations): Mention NetBSD/vax.
7432 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7433 * config/vax/nbsdelf.mh: New file.
7434 * config/vax/nbsdaout.mh: New file.
7435 * config/vax/nm-nbsd.h: New file.
7436 * config/vax/nm-nbsdaout.h: New file.
7437
9c5519a5
MK
7438 * vaxnbsd-tdep.c: New file.
7439 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7440 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7441 * config/vax/nbsd.mt: New file.
7442 * config/vax/tm-nbsd.h: New file.
7443
4844a614
MK
7444 * Makefile.in (vaxbsd-nat.o): New dependency.
7445
67b441e1
MK
7446 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7447 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7448 struct_addr arguments. Don't push return value address.
7449 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7450 arguments to vax_store_arguments. Store return value address in
7451 R1.
7452 (vax_store_struct_return, vax_extract_return_value)
7453 (vax_store_return_value): Remove functions.
7454 (vax_return_value): New function.
7455 (vax_gdbarch_init): Set return value. Don't set
7456 deprecated_store_struct_return, deprecated_extract_struct_return
7457 and deprecated_store_return_value.
7458
6672f2ae
AS
74592004-04-14 Andreas Schwab <schwab@suse.de>
7460
7461 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7462 value buffer.
7463 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7464
7346c184
MK
74652004-04-14 Mark Kettenis <kettenis@gnu.org>
7466
7467 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7468 (vax_unwind_dummy_id): New functions.
7469 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7470 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7471 variables.
7472 (vax_fix_call_dummy): Remove function.
7473 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7474 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7475 call_dummy_location, deprecated_call_dummy_words,
7476 deprecated_sizeof_call_dummy_words,
7477 deprecated_call_dummy_breakpoint_offset,
7478 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7479 and deprecated_dummy_write_sp.
7480
58e23df4
DC
74812004-04-13 David Carlton <carlton@kealia.com>
7482
7483 * MAINTAINERS: Move myself to "paper trail" section.
7484
5e6b39ff
MK
74852004-04-12 Mark Kettenis <kettenis@gnu.org>
7486
7def7fef
MK
7487 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7488 "trad-frame.h".
7489 (vax_frame_init_saved_regs): Remove function.
7490 (vax_sigtramp_saved_pc): Remove function.
7491 (vax_frame_saved_pc): Remove function.
7492 (vax_frame_args_address): Remove function.
7493 (vax_frame_num_args): Rewrite.
7494 (vax_frame_chain): Remove function.
7495 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7496 VAX_FP_REGNUM.
7497 (vax_pop_frame): Likewise.
7498 (vax_saved_pc_after_call): Remove function.
7499 (struct vax_frame_cache): New structure.
7500 (vax_frame_cache): New function.
7501 (vax_frame_this_id): New function.
7502 (vax_frame_prev_register): New function.
7503 (vax_frame_unwind): New variable.
7504 (vax_frame_sniffer): New function.
7505 (vax_frame_base_address): New function.
7506 (vax_frame_args_address): New function.
7507 (vax_frame_base): New variable.
7508 (vax_unwind_pc): New function.
7509 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7510 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7511 deprecated_frame_chain, deprecated_frame_saved_pc,
7512 deprecated_frame_args_address and
7513 deprecated_frame_init_saved_regs.
7514 * Makefile.in (vax-tdep.o): Update dependencies.
7515
53284fc1
MK
7516 * vaxbsd-nat.c: New file.
7517
5e6b39ff
MK
7518 * vax-tdep.h: Update copyright year. Adjust comments.
7519 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7520 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7521 (vax_regnum): New enum. Replacing...
7522 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7523 (VAX_PS_REGNUM): ... these removed macros.
7524 * vax-tdep.c (vax_register_name): Remove prototype.
7525 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7526 (vax_register_byte, vax_register_raw_size,
7527 vax_register_virtual_size, vax_register_virtual_type): Remove
7528 functions.
7529 (vax_register_type): New function.
7530 (vax_breakpoint_from_pc): Reorganize.
7531 (vax_gdbarch_init): Set register_type. Don't set
7532 deprecated_register_size, deprecated_register_bytes,
7533 deprecated_register_byte, deprecated_register_raw_size,
7534 deprecated_max_register_raw_size,
7535 deprecated_register_virtual_size,
7536 deprecated_max_register_virtual_size and
7537 deprecated_register_virtual_type. Add comment on stack direction.
7538
e9c71e9f
MK
75392004-04-11 Mark Kettenis <kettenis@gnu.org>
7540
7541 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7542 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7543 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7544
d46f1176 75452004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7546
d46f1176
RC
7547 * MAINTAINERS (write after approval): Add myself.
7548
a2a84a72
RC
75492004-04-07 Randolph Chung <tausq@debian.org>
7550
7551 * hppa-tdep.c (hppa_inner_than): Remove.
7552 (is_pa_2): Remove unused static variable.
8718a420 7553 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7554
e85c3284
PH
75552004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7556
7557 * language.h (language_defn): Add new la_post_parser field.
7558 * parser-defs.h (null_post_parser): New declaration (default for
7559 la_post_parser).
8718a420 7560
e85c3284
PH
7561 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7562 insert call to that function.
7563 (parse_exp_in_context): New function, including code formerly in
8718a420 7564 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7565 prefixification.
7566 (parse_expression_in_context): New exported function.
7567 (null_post_parser): New definition.
7568 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7569
e85c3284
PH
7570 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7571 * c-lang.c (c_language_defn): Ditto.
7572 (cplus_language_defn): Ditto.
7573 (asm_language_defn): Ditto.
7574 (minimal_language_defn): Ditto.
7575 * f-lang.c (f_language_defn): Ditto.
7576 * jv-lang.c (java_language_defn): Ditto.
7577 * language.c (unknown_language_defn): Ditto.
7578 (auto_language_defn): Ditto.
7579 (local_language_defn): Ditto.
7580 * m2-lang.c (m2_language_defn): Ditto.
7581 * scm-lang.c (scm_language_defn): Ditto.
7582 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7583
d9f8c85b
MK
75842004-04-10 Mark Kettenis <kettenis@gnu.org>
7585
fa34704a
MK
7586 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7587 (amd64nbsd_mcontext_addr): New function.
7588 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7589 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7590 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7591
403e1656
MK
7592 * corelow.c (core_xfer_partial): Fix coding standards violation.
7593 Add support for TARGET_OBJECT_WCOOKIE.
7594
a57e5a95
MK
7595 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7596 deprecated_pc_in_sigtramp.
7597 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7598 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7599 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7600 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7601 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7602 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7603 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7604
377d9ebd
MK
7605 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7606 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7607 Fix typo.
7608
f0ef85a5
MK
7609 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7610 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7611 (amd64_collect_fxsave): Likewise.
7612
d9f8c85b
MK
7613 * i386-sol2-tdep.c: Include "gdb_string.h".
7614 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7615 name.
7616 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7617
75f501b5
MK
76182004-04-10 Mark Kettenis <kettenis@gnu.org>
7619
7620 * i386-sol2-tdep.c: Include "solib-svr4.h".
7621 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7622 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7623 * config/i386/tm-i386sol2.h: Include :solib.h".
7624 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7625 solib-svr4.o and solib-legacy.o.
7626 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7627 solib-svr4.o.
7628
b31bc724
MK
76292004-04-09 Mark Kettenis <kettenis@gnu.org>
7630
18bbbd9e
MK
7631 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7632 whether a register is supplied by PTRACE_GETFPREGS.
7633 (store_inferior_registers): Likewise.
7634 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7635 whether a register is supplied by PT_GETFPREGS.
7636 (store_inferior_registers): Likewise.
7637
3c30bf1b
MK
7638 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7639 * config/i386/linux64.mt (TDEPFILES): Likewise.
7640
a4194092
MK
7641 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7642
911bc6ee
MK
7643 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7644 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7645 the program counter is in the range specified by `struct
7646 gdbarch_tdep'.
7647 * amd64-linux-tdep.c: Include "symtab.h".
7648 (amd64_linux_pc_in_sigtramp): Remove function.
7649 (amd64_linux_sigtramp_p): New function.
7650 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7651 deprecated_pc_in_sigtramp.
7652 * amd64nbsd-tdep.c: Include "symtab.h".
7653 (amd64nbsd_sigtramp_p): New function.
7654 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7655 deprecated_pc_in_sigtramp.
7656 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7657 few comments.
7658 (amd64obsd_pc_in_sigtramp): Remove function.
7659 (amd64obsd_sigtramp_p): New function.
7660 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7661 deprecated_pc_in_sigtramp.
7662 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7663 (i386bsd_pc_ins_sigtramp): Remove prototype.
7664 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7665 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7666 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7667 the program counter is in the range specified by `struct
7668 gdbarch_tdep'.
7669 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7670 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7671 (i386_go32_pc_in_sigtramp): Remove function.
7672 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7673 Initialize TDEP->sigtramp_p.
7674 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7675 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7676 deprecated_pc_in_sigtramp.
7677 * i386-linux-tdep.c: Adjust comments.
7678 (i386_linux_pc_in_sigtramp): Remove function.
7679 (i386_linux_sigtramp_p): New function.
7680 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7681 deprecated_pc_in_sigtramp.
7682 * i386-nto-tdep.c: Update copyright year.
7683 (i386nto_pc_in_sigtramp): Remove function.
7684 (i386nto_sigtramp_p): New function.
7685 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7686 SP_REGNUM.
7687 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7688 deprecated_pc_in_sigtramp.
7689 * i386-sol2-tdep.c: Update copyright year.
7690 (i386_sol2_pc_in_sigtramp): Remove function.
7691 (i386_sol2_sigtramp_p): New function.
7692 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7693 deprecated_pc_in_sigtramp.
7694 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7695 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7696 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7697 deprecated_sigtramp_start and deprecated_sigtramp_end.
7698 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7699 (i386nbsd_pc_in_sigtramp): Remove function.
7700 (i386nbsd_sigtramp_p): New function.
7701 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7702 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7703 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7704 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7705 (i386obsd_pc_in_sigtramp): Remove function.
7706 (i386obsd_sigtramp_p): New function.
7707 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7708 functions.
7709 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7710 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7711 TDEP->sigtramp_p.
7712 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7713 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7714 dependencies.
7715
e083e6ec
MK
7716 * config/i386/i386aout.mt: Remove file.
7717
bd153b94
MK
7718 * configure.tgt: Remove i[34567]86-*-go32*,
7719 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7720 and i[34567]86-*-isc*. Set gdb_target to i386 for
7721 i[34567]86-*-netware* and i[34567]86-*-*.
7722 * config/i386/i386.mt: New file.
7723 * config/i386/embed.mt: Remove file.
7724 * config/i386/go32.mt: Remove file.
7725 * config/i386/i386nw.mt: Remove file.
7726 * config/i386/i386v.mt: Remove file.
7727 * config/i386/tm-go32.h: Remove file.
7728
4a1bcc8c
MK
7729 * tui/tui-hooks.c: Include "readline/readline.h" after
7730 "gdb_curses.h" instead of before.
7731 * tui/tui-io.c: Likewise.
7732
f9a79064
MK
7733 * tui/tui.c: Fix typo in comment.
7734
b31bc724
MK
7735 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7736
f83f82bc
AC
77372004-04-08 Andrew Cagney <cagney@redhat.com>
7738
7739 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7740 (deprecated_exception_support_initialized): Declare.
8718a420 7741 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7742 (initialize_hp_cxx_exception_support)
7743 (child_enable_exception_callback): Update.
7744 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7745 (deprecated_exception_support_initialized): Rename
7746 deprecated_exception_catchpoints_are_fragile and
7747 deprecated_exception_support_initialized.
7748 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7749
7750 * symtab.c (deprecated_hp_som_som_object_present): Rename
7751 hp_som_som_object_present.
7752 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7753 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7754 Update. Delete extern declaration.
7755 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7756 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7757 (parse_nested_classes_for_hpacc): Ditto.
7758 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7759 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7760 (initialize_hp_cxx_exception_support): Ditto.
7761 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7762 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7763 (cp_print_class_method): Ditto.
8718a420 7764 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7765 (c_type_print_base): Ditto.
7766 * c-exp.y (hp_som_som_object_present): Ditto.
7767
fb2be677
AC
77682004-04-08 Andrew Cagney <cagney@redhat.com>
7769
7770 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7771 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7772 (frame_unwind_find_by_frame): Re-implement the unwind code so
7773 that it can both prepend and append sniffers. Replace
7774 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7775 * tramp-frame.c (tramp_frame_append): Use
7776 frame_unwind_prepend_unwinder.
7777 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7778 frame_unwind_register_unwinder.
7779 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7780 tramp_frame_append.
7781 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7782 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7783 (mips_linux_init_abi): Update.
7784
67faf007
KB
77852004-04-08 Kevin Buettner <kevinb@redhat.com>
7786
7787 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7788 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7789 file support.
7790
8973ff21
KB
77912004-04-07 Kevin Buettner <kevinb@redhat.com>
7792
7793 * ia64-tdep.c (elf.h): Don't include.
7794 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7795
4a0e2f88
JM
77962004-04-07 Jason Molenda (jmolenda@apple.com)
7797
7798 * frame.h: Typeo corrections in comments.
7799
9872ad24
JB
78002004-04-07 Jim Blandy <jimb@redhat.com>
7801
7802 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7803 %esp and %ebp
7804
70b216c8
MK
78052004-04-07 Mark Kettenis <kettenis@gnu.org>
7806
11d5789c
MK
7807 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7808 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7809 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7810 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7811 and solib-legacy.o.
7812 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7813 solib-svr4.o.
7814 * config/sparc/tm-sol2.h: Update copyright year. Include
7815 "solib.h".
7816
70b216c8
MK
7817 * sparc-sol2-tdep.c: Update copyright year. Include
7818 "solib-svr4.h".
7819 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7820 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7821 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7822 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7823 dependencies.
7824
6339dc9e
AC
78252004-04-06 Andrew Cagney <cagney@redhat.com>
7826
7827 * infttrace.c: Include "infttrace.h".
7828 * infttrace.h: Include "target.h".
7829 * Makefile.in (infttrace_h): Update.
7830 (infttrace.o): Update.
8718a420 7831
93449403
AC
78322004-04-06 Andrew Cagney <cagney@redhat.com>
7833
6d518969
AC
7834 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7835 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7836 move extern declarations from here ...
7837 * infttrace.h: ... to here.
7838 * Makefile.in (hppah-nat.o): Update dependencies.
7839
85f4f2d8
AC
7840 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7841 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7842 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7843 (hppa_breakpoint_from_pc): Delete.
7844
93449403
AC
7845 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7846
71456ec6
AC
78472004-04-05 Andrew Cagney <cagney@redhat.com>
7848
7849 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7850 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7851 <sys/file.h>.
8718a420 7852
4c02c60c
AC
78532004-04-06 Randolph Chung <tausq@debian.org>
7854
7855 Committed by Andrew Cagney (mechanical change).
7856 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7857 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7858 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7859 child_enable_exception_callback, current_ex_event,
7860 null_symtab_and_line, child_get_current_exception_event,
7861 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7862 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7863 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7864 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7865 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7866 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7867 Move hpux-specific definitions ...
7868 * hppa-hpux-tdep.c: ... to here.
7869
3a515653
AC
78702004-04-05 Andrew Cagney <cagney@redhat.com>
7871
7872 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7873 skip_prologue_using_sal.
7874
c1730d02
AC
78752004-04-05 Andrew Cagney <cagney@redhat.com>
7876
7877 * config/i386/tm-i386.h: Delete file.
7878 * config/i386/tm-vxworks.h: Update copyright, do not include
7879 "tm-i386.h".
7880 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7881 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7882 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7883 * config/i386/ncr3000.mt (TM_FILE): Delete.
7884 * config/i386/interix.mt (TM_FILE): Delete.
7885 * config/i386/i386v.mt (TM_FILE): Delete.
7886 * config/i386/i386nw.mt (TM_FILE): Delete.
7887 * config/i386/i386gnu.mt (TM_FILE): Delete.
7888 * config/i386/i386aout.mt (TM_FILE): Delete.
7889 * config/i386/embed.mt (TM_FILE): Delete.
7890
8b67aa36
KB
78912004-04-05 Kevin Buettner <kevinb@redhat.com>
7892
7893 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7894 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7895 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7896 (accg7_regnum): New constants.
7897 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7898 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7899 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7900 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7901 for accg registers.
7902 (frv_register_sim_regno): Update spr_map[].
7903
3c7012f5
AC
79042004-04-04 Andrew Cagney <cagney@redhat.com>
7905
7906 * config/mips/xm-riscos.h: Delete.
7907 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7908 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7909 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7910 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7911 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7912 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7913 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7914 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7915 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7916 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7917 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7918 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7919 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7920 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7921 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7922 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7923 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7924 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7925 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7926 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7927 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7928 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7929 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7930 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7931 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7932 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7933
3c7012f5
AC
7934 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7935 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7936 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7937 * configure.host: Remove m680[01]0-sun-sunos3*,
7938 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7939 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7940 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7941 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7942 mips-*-riscos*.
7943 * NEWS: Mention removed systems.
7944
99d16a21
AC
79452004-04-04 Andrew Cagney <cagney@redhat.com>
7946
7947 GDB 6.1 release created from 6.1 branch.
7948
6cdf9d98
AC
79492004-04-04 Andrew Cagney <cagney@redhat.com>
7950
98d346c3
AC
7951 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7952 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7953 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7954
6cdf9d98
AC
7955 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7956 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7957 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7958
859a326d
JB
79592004-04-03 Jim Blandy <jimb@redhat.com>
7960
7961 * MAINTAINERS: Chris Faylor has changed employers; add him to
7962 "paper trail" section, and update his E-mail address.
7963
b87178c3
AC
79642004-04-03 Andrew Cagney <cagney@redhat.com>
7965
4ea2acf0
AC
7966 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7967 generic dummy frames.
7968 * dummy-frame.c: Update copyright.
7969 (dummy_frame_sniffer): Delete check for generic dummy frames.
7970
d0bd2d18 7971 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7972 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7973 (REG_PARM_STACK_SPACE): Delete.
7974 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7975 Inline reference to REG_PARM_STACK_SPACE.
7976
b87178c3
AC
7977 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7978 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7979 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7980 (FRAME_BASE_BEFORE_SIGTRAMP)
7981 (hppa32_hpux_frame_base_before_sigtramp)
7982 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7983 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7984 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7985 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7986 (FRAME_BASE_BEFORE_SIGTRAMP)
7987 (hppa64_hpux_frame_base_before_sigtramp)
7988 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7989
43e2e1a0
AC
79902004-04-03 Andrew Cagney <cagney@redhat.com>
7991
7992 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7993
ddc135a4
AC
79942004-04-02 Andrew Cagney <cagney@redhat.com>
7995
7996 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7997 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7998 * dummy-frame.h: Delete out-of-date comments.
7999 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8000 * gdbarch.h, gdbarch.c: Re-generate.
8001
d15bfd3a 80022004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8003
d15bfd3a
AC
8004 Committed by Andrew Cagney <cagney@redhat.com>.
8005 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8006 into account an instruction saving a register if we have already
8007 seen an earlier instruction saving that same register.
8008
f04ceafa
AC
80092004-04-02 Andrew Cagney <cagney@redhat.com>
8010
08be3abd
AC
8011 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8012 * gdbarch.h, gdbarch.c: Re-generate.
8013 * frame.c (legacy_get_prev_frame): Delete references to
8014 DEPRECATED_INIT_FRAME_PC_FIRST.
8015
f04ceafa
AC
8016 * infrun.c (pc_in_sigtramp): Delete function.
8017 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8018 get_frame_type.
8019
08e69816
AC
80202004-04-02 Andrew Cagney <cagney@redhat.com>
8021
8022 * infrun.c (handle_step_into_function): Delete code conditional on
8023 legacy_frame_p.
8024 (handle_inferior_event, step_over_function): Ditto.
8025
adb54772
AC
80262004-04-02 Andrew Cagney <cagney@redhat.com>
8027
8028 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8029 "previous frame inner to this frame" test.
8030
304396fb
AC
80312004-04-02 Andrew Cagney <cagney@redhat.com>
8032
8033 * frame.c (safe_frame_unwind_memory): New function.
8034 * frame.h (safe_frame_unwind_memory): Declare. Update description
8035 of /safe_/ methods.
8036 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8037 "next_frame". Use safe_frame_unwind_memory.
8038 (tramp_frame_sniffer): Update call to tramp_frame_start.
8039
6502dd73
DJ
80402004-04-01 Daniel Jacobowitz <drow@mvista.com>
8041
8042 * dwarf2read.c (dwarf2_objfile_data_key): New.
8043 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8044 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8045 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8046 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8047 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8048 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8049 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8050 Remove variables.
8051 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8052 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8053 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8054 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8055 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8056 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8057 Remove macros.
8058 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8059 data.
8060 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8061 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8062 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8063 (read_partial_die, read_full_die, read_indirect_string)
8064 (dwarf_decode_line_header, dwarf_decode_macros)
8065 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8066 Update uses of removed variables.
8067 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8068 of removed macros.
8069 (_initialize_dwarf2_read): New function.
8070 * symfile.h (dwarf2_has_info): Update prototype.
8071 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8072 * elfread.c (elf_symfile_read): Likewise.
8073
408752b0
JB
80742004-04-01 Jim Blandy <jimb@redhat.com>
8075
9f744501
JB
8076 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8077 function for register numbers on all the rs6000-derived targets.
8078 (rs6000_gdbarch_init): Don't register a separate
8079 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8080 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8081 variants.
8082
408752b0
JB
8083 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8084 numbering.
8085
2de41bce
PH
80862004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8087
8088 * valarith.c: Update copyright notice.
8089 (value_add): Handle range types.
8090 (value_sub): Ditto.
8091 (value_equal): Ditto.
8092 (value_less): Ditto.
8093 (value_neg): Ditto.
8094 (value_complement): Ditto.
8718a420 8095 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8096 eliminiating unnecessary COERCE_ENUMs.
8718a420 8097
5613d8d3
AC
80982004-03-31 Andrew Cagney <cagney@redhat.com>
8099
8100 * frame.h (frame_unwind_id): Declare.
8101 * frame.c (frame_unwind_id): New function.
8102 (get_prev_frame_1): New function.
8103 (frame_debug_got_null_frame): New function.
8104 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8105 code proper to prev_frame, update description.
8106 * infrun.c (step_over_function): Use frame_unwind_id.
8107
c4557624
JB
81082004-04-31 J. Brobecker <brobecker@gnat.com>
8109
8110 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8111 (hppa64_push_dummy_call): Likewise.
8112
3e6bb910
JB
81132004-03-30 Jim Blandy <jimb@redhat.com>
8114
8115 From Ulrich Weigand:
8116 * utils.c (query): Do not use a va_list variable multiple times.
8117
a2f23071
DJ
81182004-03-29 Daniel Jacobowitz <drow@mvista.com>
8119
8120 * Makefile.in (linux_nat_h): Update dependencies.
8121 * configure.in: Check for <gnu/libc-version.h>.
8122 * configure: Regenerate.
8123 * config.in: Regenerate.
8124 * linux-nat.h: Include "target.h". Add waitstatus field to
8125 struct lwp_info.
8126 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8127 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8128 to.
8129 (lin_lwp_handle_extended): New function. Handle clone events.
8130 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8131 thread exit events.
8132 (child_wait): Handle clone events.
8133 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8134 * linux-nat.c (linux_enable_event_reporting): Turn on
8135 PTRACE_O_TRACECLONE.
8136 (linux_handle_extended_wait): Handle clone events.
8137 * thread-db.c: Include <gnu/libc-version.h>.
8138 (struct private_thread_info): Add dying flag.
8139 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8140 higher.
8141 (attach_thread): Update comments. Handle dying threads.
8142 (detach_thread): Set the dying flag.
8143 (check_event): Always call attach_thread.
8144
8d5f9dcb
DJ
81452004-03-29 Daniel Jacobowitz <drow@mvista.com>
8146
8147 * mips-tdep.c (mips_pdr_data): New.
8148 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8149 (_initialize_mips_tdep): Initialize mips_pdr_data.
8150
66337bb1
CV
81512004-03-29 Corinna Vinschen <vinschen@redhat.com>
8152
8153 * minsyms.c (install_minimal_symbols): Move dropping leading
8154 char from linkage name from here...
8155 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8156 test for "__gnu_compiled*" symbols.
8157
e802b915
JB
81582004-03-28 Jim Blandy <jimb@redhat.com>
8159
8160 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8161 registers to temp register r0 and byte stores as prologue
8162 instructions.
8163
72b56458
AC
81642004-03-28 Andrew Cagney <cagney@redhat.com>
8165
8166 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8167 arm*-*-*.
8168
0bfbda3b
SC
81692004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8170
8171 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8172 and switch the layout to force a display of register window.
8173
5a7225ed
JB
81742004-02-26 J. Brobecker <brobecker@gnat.com>
8175
8176 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8177 of the INTEGER class.
8178
81a07a45
JB
81792004-03-26 Jim Blandy <jimb@redhat.com>
8180
8181 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8182 bytes long on PPC GNU/Linux.
8183
8c691c7a
DC
81842004-03-26 David Carlton <carlton@kealia.com>
8185
8186 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8187
103a0089
AC
81882004-03-25 Andrew Cagney <cagney@redhat.com>
8189
8190 * PROBLEMS: Add general section titles, remove references to
8191 specific releases.
8192
7a5ea0d4
DJ
81932004-03-25 Daniel Jacobowitz <drow@mvista.com>
8194
8195 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8196 INT_REGISTER_SIZE.
8197 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8198 FP_REGISTER_VIRTUAL_SIZE.
8199 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8200 of DEPRECATED_REGISTER_RAW_SIZE.
8201 (arm_register_type): Add gdbarch argument.
8202 (arm_register_raw_size, arm_register_virtual_size): Delete.
8203 (arm_register_byte, arm_extract_return_value)
8204 (arm_store_return_value, arm_get_longjmp_target): Update references
8205 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8206 (arm_gdbarch_init): Likewise. Don't set
8207 deprecated_register_raw_size, deprecated_register_virtual_size,
8208 deprecated_max_register_raw_size,
8209 deprecated_max_register_virtual_size, or
8210 deprecated_max_register_virtual_type. Do set register_type.
8211 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8212 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8213 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8214 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8215 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8216 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8217 INT_REGISTER_SIZE.
8218 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8219 (remote_rdp_store_register): Likewise.
8220
5792a79b
DJ
82212004-03-24 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8224 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8225 to after osabi initialization.
8226 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8227 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8228 functions.
8229 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8230 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8231 variables.
8232 (mips_linux_init_abi): Append signal trampoline unwinders.
8233
1196bfda
AC
82342004-03-24 Andrew Cagney <cagney@redhat.com>
8235
8236 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8237 * tramp-frame.c: Include "gdb_assert.h".
8238 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8239 correct sizeof.
8240 (tramp_frame_append): Validate the tramp frame's instructions.
8241 * Makefile.in (tramp-frame.o): Update dependencies.
8242
4be282b4
AC
82432004-03-23 Andrew Cagney <cagney@redhat.com>
8244
8245 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8246
69aec09b
AC
82472004-03-23 Andrew Cagney <cagney@redhat.com>
8248
8249 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8250 Nasser as past testsuite/lib/ (and other) maintainers.
8251
63ed89b4
DJ
82522004-03-23 Daniel Jacobowitz <drow@mvista.com>
8253
8254 * infcmd.c (attach_command): Reread symbols if we already have
8255 an exec file.
8256
f3b36427
AC
82572004-03-23 Andrew Cagney <cagney@redhat.com>
8258
8259 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8260
aa2a3f87
AC
82612004-03-23 Andrew Cagney <cagney@redhat.com>
8262
8263 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8264 * gdbarch.h, gdbarch.c: Re-generate.
8265 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8266 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8267 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8268 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8269 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8270 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8271 (DEPRECATED_SIGTRAMP_START): Update.
8272 * blockframe.c (find_pc_sect_partial_function): Update.
8273 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8274
00cac895
DJ
82752004-03-23 Daniel Jacobowitz <drow@mvista.com>
8276
8277 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8278 if necessary.
8279
f561f026
AC
82802004-03-23 Andrew Cagney <cagney@redhat.com>
8281
8282 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8283 predicate, deprecate.
8284 * gdbarch.h, gdbarch.c: Re-generate.
8285 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8286 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8287 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8288 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8289 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8290 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8291 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8292 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8293 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8294 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8295 * blockframe.c (find_pc_partial_function): Update.
8296 * breakpoint.c (bpstat_what): Update.
8297 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8298 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8299 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8300 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8301 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8302 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8303 * i386-nto-tdep.c (i386nto_init_abi): Update.
8304 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8305 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8306 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8307 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8308 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8309 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8310 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8311 * infrun.c (pc_in_sigtramp): Update.
8312 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8313 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8314 * mips-tdep.c (mips_gdbarch_init): Update.
8315 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8316 * ppc-linux-tdep.c: Update comment.
8317 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8318 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8319 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8320 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8321 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8322 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8323 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8324 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8325 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8326 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8327
8050c72f
AC
83282004-03-23 Andrew Cagney <cagney@redhat.com>
8329
d2259dd3
AC
8330 * tramp-frame.h, tramp-frame.h: New files.
8331 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8332 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8333
8050c72f
AC
8334 * Makefile.in: Update all dependencies.
8335
0db9b4b7
AC
83362004-03-23 Andrew Cagney <cagney@redhat.com>
8337
8338 * Makefile.in (trad_frame_h): Add $(frame_h).
8339 * trad-frame.h: Update copyright. Include "frame.h".
8340 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8341 (trad_frame_set_id, trad_frame_get_id): Declare.
8342 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8343 * trad-frame.c: Update copyright.
8344 (struct trad_frame_cache): Define.
8345 (trad_frame_cache_zalloc): New function.
8346 (trad_frame_set_id, trad_frame_get_id): New functions.
8347 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8348
8e645ae7
AC
83492004-03-22 Andrew Cagney <cagney@redhat.com>
8350
8351 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8352 s390_pltstub_unwind_cache.
8353 (s390_stub_frame_unwind_cache): Rename
8354 s390_pltstub_frame_unwind_cache.
8355 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8356 (s390_stub_frame_prev_register): Rename
8357 s390_pltstub_frame_prev_register.
8358 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8359 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8360
8361 From Ulrich Weigand:
8362 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8363 pointer calls like PLT calls.
8364
34fcf120
DJ
83652004-03-22 Daniel Jacobowitz <drow@mvista.com>
8366
8367 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8368 PC rather than the partial function start address. Use the start
8369 address to sanity check the found PDR.
8370
5b917078
DJ
83712004-03-22 Daniel Jacobowitz <drow@mvista.com>
8372
8373 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8374 linux_handle_extended_wait.
8375
8adf9e78
AC
83762004-03-22 Andrew Cagney <cagney@redhat.com>
8377
c3122434
AC
8378 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8379 function.
8380
8adf9e78
AC
8381 * frame.h (generic_pop_current_frame): Delete declaration.
8382 (deprecate_pop_dummy_frame): Deprecate
8383 generic_pop_dummy_frame.
8384 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8385 (generic_pop_current_frame): Delete function.
8386 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8387 generic_pop_current_frame.
8388 * v850-tdep.c (v850_pop_frame): Update.
8389 * mcore-tdep.c (mcore_pop_frame): Update.
8390 * sh64-tdep.c (sh64_pop_frame): Update.
8391 * h8300-tdep.c (h8300_pop_frame): Update.
8392
90ba813f
AC
83932004-03-22 Andrew Cagney <cagney@redhat.com>
8394
8395 * frame.h (deprecated_pc_in_call_dummy): Rename
8396 generic_pc_in_call_dummy.
8397 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8398 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8399 generic_pc_in_call_dummy.
8400 (pc_in_dummy_frame): Make static.
8401 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8402 * gdbarch.h, gdbarch.c: Re-generate.
8403 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8404 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8405 (legacy_get_prev_frame): Ditto.
8406 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8407 comment.
8718a420 8408
ca4bb888
AC
84092004-03-21 Andrew Cagney <cagney@redhat.com>
8410
244675f9
AC
8411 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8412 declaration and out-of-date comment.
8413 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8414 Delete function.
8415 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8416 deprecated_pc_in_call_dummy.
8417
ca4bb888
AC
8418 * infrun.c (handle_inferior_event): For non legacy frames, use the
8419 frame ID and frame type to identify a signal trampoline. Update
8420 comments.
8421
1777c7b4
NW
84222004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8423
8424 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8425 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8426
82417da5
AC
84272004-03-21 Andrew Cagney <cagney@redhat.com>
8428
8429 * frame-unwind.h: Update copyright.
8430 (struct frame_data): Add opaque declaration.
8431 (frame_sniffer_ftype): Declare.
8432 (struct frame_unwind): Add "unwind_data" and "sniffer".
8433 (frame_unwind_register_unwinder): Declare.
8434 (frame_unwind_find_by_frame): Add parameter "this_cache".
8435 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8436 (legacy_get_prev_frame, legacy_get_prev_frame)
8437 (get_frame_type): Pass the prologue_cache to
8438 frame_unwind_find_by_frame.
8439 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8440 "unwinder".
8441 (frame_unwind_register_unwinder): New function.
8442 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8443
b2ba182e
PH
84442004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8445
8446 * bcache.c (print_percentage): Use floating point to avoid
8447 incorrect results when portion*100 overflows.
8448
81332287
KB
84492004-03-19 Kevin Buettner <kevinb@redhat.com>
8450
8451 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8452 (ppc_linux_init_extra_frame_info)
8453 (ppc_linux_frameless_function_invocation)
8454 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8455 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8456 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8457 (rs6000_frame_chain): Delete declarations.
8458 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8459 (ppc_linux_init_extra_frame_info)
8460 (ppc_linux_frameless_function_invocation)
8461 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8462 (ppc_linux_init_abi): Remove registration of above deleted functions.
8463 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8464 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8465 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8466 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8467 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8468 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8469 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8470 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8471 frame management for all OSABIs.
8472
61a65099
KB
84732004-03-19 Andrew Cagney <cagney@redhat.com>
8474
8475 Committed by Kevin Buettner <kevinb@redhat.com>.
8476
8477 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8478 Update copyright.
8479 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8480 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8481 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8482 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8483 unwinders. #ifdef legacy frame code.
8484 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8485 "frame-base.h".
8486 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8487 (struct rs6000_frame_cache, rs6000_frame_cache)
8488 (rs6000_frame_this_id, rs6000_frame_prev_register)
8489 (rs6000_frame_sniffer, rs6000_frame_unwind)
8490 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8491 (rs6000_frame_base): Implement a traditional frame unwinder.
8492 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8493 frame unwinder.
8494
88f7da05
KB
84952004-03-19 Kevin Buettner <kevinb@redhat.com>
8496
8497 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8498 breakpoint address for watchpoints or the catch eventpoints.
8499 Add new paramter ``bptype''. Adjust all callers.
8500
f826dce1
AC
85012004-03-19 Andrew Cagney <cagney@redhat.com>
8502
33cb8b0f
AC
8503 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8504
f826dce1
AC
8505 * PROBLEMS: Delete note that ARM does not use frame code, problem
8506 fixed.
8507
43b1ab88
AC
85082004-03-18 Andrew Cagney <cagney@redhat.com>
8509
292ab034
AC
8510 * stack.c (return_command): Delete code wrapped in #ifdef
8511 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8512
43b1ab88
AC
8513 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8514
dbfe4626
AC
85152004-03-18 Andrew Cagney <cagney@redhat.com>
8516
8517 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8518 DEPRECATED_IN_SIGTRAMP.
8519 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8520 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8521 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8522 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8523 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8524 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8525 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8526 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8527 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8528 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8529
0cad6aec
AC
85302004-03-18 Andrew Cagney <cagney@redhat.com>
8531
8532 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8533 (struct frame_base_table_entry): Define.
8534 (struct frame_base_table): Re-implement as a linked list.
8535 (frame_base_init): Re-implement.
8536 (frame_base_table): Delete function.
8537 (append_predicate): Delete function.
8538 (frame_base_append_sniffer): Update.
8539 (frame_base_set_default): Update.
8540 (frame_base_find_by_frame): Update.
8541 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8542 * Makefile.in (frame-base.o): Update dependencies.
8543
9982c2e7
AC
85442004-03-17 Andrew Cagney <cagney@redhat.com>
8545
8546 * frame.c (legacy_get_prev_frame): Pass correct frame to
8547 frame_unwind_find_by_frame.
8548
8dfe8985
DC
85492004-03-17 David Carlton <carlton@kealia.com>
8550
8551 * NEWS: Mention C++ nested types and namespaces
8552
ed47347a
MC
85532004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8554
8555 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8556 and "Regressions since gdb 5.3.". Add known regressions since
8557 gdb 6.0.
8558
90aeadfc
DC
85592004-03-16 David Carlton <carlton@kealia.com>
8560
8561 * dwarf2read.c (process_structure_scope): Process children even
8562 when we're a declaration.
8563
73912b9b
AC
85642004-03-16 Andrew Cagney <cagney@redhat.com>
8565
8566 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8567 * blockframe.c (find_pc_partial_function)
8568 (find_pc_sect_partial_function): Merge into a single
8569 find_pc_partial_function.
8570
283accbc
MK
85712004-03-16 Mark Kettenis <kettenis@gnu.org>
8572
8573 * i386bsd-nat.c: s/regno/regnum/g.
8574 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8575 FP0_REGNUM.
8576 (store_inferior_registers): Likewise.
8577
f5b1afdf
MK
85782004-03-16 Mark Kettenis <kettenis@gnu.org>
8579
8580 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8581 of i387_fill_fsave.
8582 (store_inferior_registers): Call i387_collect_fsave and
8583 i387_collect_fxsave instead of i387_fill_fsave and
8584 i387_fill_fxsave.
8585
41fe5eb3
AC
85862004-03-15 Andrew Cagney <cagney@redhat.com>
8587
8588 * Makefile.in (frame-unwind.o): Update dependencies.
8589 * frame-unwind.c: Include "gdb_obstack.h".
8590 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8591 parameter.
8592 (append_predicate): Delete function.
8593 (struct frame_unwind_table_entry): New structure.
8594 (struct frame_unwind_table): Replace "sniffer" with "head" and
8595 "tail".
8596 (frame_unwind_append_sniffer): Update.
8597 (frame_unwind_find_by_frame): Update.
8598 (_initialize_frame_unwind): Registe frame_unwind_init using
8599 gdbarch_data_register_pre_init.
8600
3f63813d
MK
86012004-03-15 Mark Kettenis <kettenis@gnu.org>
8602
8603 * i386bsd-nat.c: Update copyright year.
8604 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8605 define unconditionally.
8606
3248c325 86072004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8608
8609 * i387-tdep.h (i387_collect_fsave): New prototype.
8610 * i387-tdep.c (i387_collect_fsave): New function containing most
8611 of the code from i387_fill_fsave.
3248c325 8612 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8613
871fbe6a
MK
86142004-03-15 Mark Kettenis <kettenis@gnu.org>
8615
8616 * i386-linux-tdep.c: Update copyright year.
8617 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8618 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8619 svr4_ilp32_link_map_offsets instead of
8620 i386_linux_svr4_fetch_link_map_offsets.
8621
8176b9b8
DC
86222004-03-15 David Carlton <carlton@kealia.com>
8623
8624 Fix for PR c++/1553:
8625 * dwarf2read.c (read_structure_type): Determine type name by
8626 calling determine_class_name.
8627 (determine_class_name): New.
8628 (determine_prefix): Look at TYPE_TAG_NAME and call
8629 determine_class_name when appropriate.
8630 (determine_prefix_aux, class_name): Delete.
9d58e29d 8631 (read_namespace): Set die->type.
8176b9b8 8632
fe8bf7d7
KB
86332004-03-15 Kevin Buettner <kevinb@redhat.com>
8634
8635 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8636 unused macro definition. The definition in target.h (or perhaps
8637 elsewhere) takes precedence.
8638
ed6edd9b
AC
86392004-03-15 Andrew Cagney <cagney@redhat.com>
8640
f9be684a
AC
8641 * ppc-tdep.h: Update copyright.
8642 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8643 function signatures to match "regsets.h".
8644 * ppc-linux-tdep.c: Include "regset.h".
8645 (ELF_GREGSET_SIZE): Delete.
8646 (right_supply_register): New function.
8647 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8648 using right_supply_register.
8649 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8650 functions.
8651 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8652 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8653 (_initialize_ppc_linux_tdep): Do not register
8654 ppc_linux_regset_core_fns.
8655 (ppc_linux_regset_from_core_section): Replace
8656 fetch_core_registers.
8657 (ppc_linux_regset_core_fns): Delete.
8658 * ppc-linux-nat.c: (right_fill_reg): New function.
8659 (supply_gregset): Update call to ppc_linux_supply_gregset.
8660 (fill_gregset): Clear the register set, use right_fill_reg.
8661 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8662 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8663
ed6edd9b
AC
8664 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8665 unsigned.
8666
030f20e1
AC
86672004-03-15 Andrew Cagney <cagney@redhat.com>
8668
8669 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8670 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8671 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8672 and register_gdbarch_data.
8673 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8674 (struct gdbarch_data): Replace "init" by "pre_init" and
8675 "post_init".
8676 * gdbarch.h, gdbarch.c: Re-generate.
8677 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8678 with"obstack", use OBSTACK_ZALLOC.
8679 (dwarf2_frame_ops): Delete.
8680 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8681 (dwarf2_frame_init_reg): Use gdbarch_data.
8682 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8683 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8684 (_initialize_svr4_solib): Update.
8685 * user-regs.c (_initialize_user_regs): Update.
8686 * reggroups.c (_initialize_reggroup): Update.
8687 * regcache.c (_initialize_regcache): Update.
8688 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8689 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8690 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8691 * frame-unwind.c (_initialize_frame_unwind): Update.
8692 * frame-base.c (_initialize_frame_base): Update.
8693 * user-regs.c (user_reg_add): Update.
8694 * reggroups.c (reggroup_add): Update.
8695 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8696 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8697 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8698 * frame-base.c (frame_base_table): Update.
8699 * remote.c (_initialize_remote): Update.
8700 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8701
3111a3fc
AC
87022004-03-15 Andrew Cagney <cagney@redhat.com>
8703
8704 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8705
5ecb7103
KB
87062004-03-15 Kevin Buettner <kevinb@redhat.com>
8707
8708 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8709 * frv-linux-tdep.c: New file.
8710 * frv-tdep.c (struct gdbarch_tdep): Add new field
8711 ``sigcontext_reg_addr''.
8712 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8713 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8714 (frv_sigramp_frame_sniffer): New functions.
8715 (frv_sigtramp_frame_unwind): New static global.
8716 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8717 sniffers.
8718 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8719 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8720
1ccda5e9
KB
87212004-03-15 Kevin Buettner <kevinb@redhat.com>
8722
8723 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8724 but not via a call to error(), when unable to read memory.
8725
b375a0a5
KB
87262004-03-15 Kevin Buettner <kevinb@redhat.com>
8727
8728 * frv-tdep.c (frv_call_dummy_words): Delete.
8729 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8730
4fdf6121
AC
87312004-03-15 Andrew Cagney <cagney@redhat.com>
8732
8733 * infrun.c (handle_step_into_function, step_over_function): Only
8734 update and use STEP_FRAME_ID when the system is using legacy
8735 frames. Update comments.
8736
34021503
MK
87372004-03-14 Mark Kettenis <kettenis@gnu.org>
8738
187e21d1
MK
8739 * amd64-linux-tdep.h: Remove file.
8740 * amd64-linux-tdep.c: Don't include "inferior.h" and
8741 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8742 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8743 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8744 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8745 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8746 macros.
8747 (user_to_gdb_regmap): Remove variable.
8748 (amd64_linux_gregset_reg_offset): New variable.
8749 (amd64_core_fns): Remove variable.
8750 (fetch_core_registers): Remove function.
8751 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8752 functions.
8753 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8754 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8755 * Makefile.in (amd64_linux_tdep_h): Remove.
8756 (amd64-linux-nat.o): Update dependencies.
8757 (amd64-linux-tdep.o): Update dependencies.
8758
99679982
MK
8759 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8760 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8761 functions.
8762 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8763
34021503
MK
8764 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8765 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8766
134d01f1
DJ
87672004-03-14 Daniel Jacobowitz <drow@mvista.com>
8768
8769 * dwarf2read.c (read_structure_type): Rename from
8718a420 8770 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8771 Return immediately if die->type is set. Call read_type_die before
8772 dwarf2_add_member_fn.
8773 (process_structure_scope): New function.
8774 (read_enumeration_type, process_enumeration_scope): New functions,
8775 broken out from read_enumeration. Don't create the enumeration
8776 type if it has already been created.
8777 (read_enumeration): Removed.
8778 (process_die): Call read_structure_type, process_structure_scope,
8779 read_enumeration_type, and process_enumeration_scope. Just call
8780 new_symbol for base and subrange types. Add a comment about other
8781 type dies.
8782 (read_type_die): Call read_enumeration_type.
8783 (add_partial_structure, new_symbol): Update comments.
8784
65760afb
SC
87852004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8786
8787 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8788
10f59415
SC
87892004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8790
8791 * tui/tui-win.h (tui_get_cmd_list): Declare.
8792 * tui/tui-win.c (tui_command): New function.
8793 (tui_get_cmd_list): New function.
8794 (_initialize_tui_win): Moved initialization of tui command in
8795 tui_get_cmd_list.
8796
8797 * tui/tui-data.c (init_content_element): Setup new data members.
8798 (init_win_info): Likewise.
8799 (free_content_elements): Free it.
8800 * tui/tui-data.h (struct tui_data_element): Store the register
8801 content to print.
8802 (struct tui_data_info): Keep the current register group.
8803
8804 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8805
8806 * tui/tui-regs.h (tui_show_registers): Update prototype.
8807 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8808 (tui_resize_all): No need to calculate anything for register window.
8809 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8810 (tui_set_register_element, tui_set_general_regs_content): Remove.
8811 (tui_set_special_regs_content): Remove.
8812 (tui_set_general_and_special_regs_content): Remove.
8813 (tui_set_float_regs_content): Remove.
8814 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8815 (tui_set_regs_content): Remove.
8816 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8817 (tui_v_show_registers_command_support): Remove.
8818 (tui_show_registers): Use a reggroup to specify the registers to show.
8819 (tui_show_register_group): New function.
8820 (tui_display_registers_from): Compute the layout of register window
8821 and refresh with new API; be sure to delete old register windows.
8822 (tui_check_register_values): Update to use tui_get_register and
8823 tui_display_data.
8824 (tui_display_register): Just refresh the register window part.
8825 (tui_register_format): Format registers and save in tui_data_element.
8826 (tui_get_register): New to combine tui_reg_value_has_changed and
8827 tui_get_register_raw_value; fix to use the new gdb API.
8828 (tui_show_float_command): Renamed tui_reg_float_command.
8829 (tui_show_general_command): Renamed tui_reg_general_command.
8830 (tui_show_special_command): Renamed tui_reg_system_command.
8831 (_initialize_tui_regs): Remove unused commands.
8832
c3364ea4
MK
88332004-03-13 Mark Kettenis <kettenis@gnu.org>
8834
27d1e716
MK
8835 * NEWS (New native configurations): Mention OpenBSD/amd64.
8836
c3364ea4
MK
8837 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8838 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8839 Remove defines.
8840 * config/i386/nm-fbsd64.h: Likewise.
8841 * config/i386/nm-obsd.h: Likewise.
8842 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8843 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8844
b2d6d697
KB
88452004-03-12 Kevin Buettner <kevinb@redhat.com>
8846
8847 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8848 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8849 New constants.
8850
76e43199
KB
8851 From Richard Sandiford <rsandifo@redhat.com>:
8852 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8853
34ce532e
KB
88542004-03-12 Kevin Buettner <kevinb@redhat.com>
8855
8856 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8857 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8858 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8859 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8860 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8861 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8862 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8863 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8864 definitions from frv-tdep.c to frv-tdep.h.
8865
c4d10515
KB
88662004-03-12 Kevin Buettner <kevinb@redhat.com>
8867
8868 Add shared library support for FR-V FDPIC ABI:
8869 * Makefile.in (solib-frv.o): Add dependencies.
8870 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8871 New functions.
8872 (frv_push_dummy_call): Add support for FDPIC ABI.
8873 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8874 for FDPIC ABI.
8875 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8876 (frv_fdpic_find_canonical_descriptor): Declare.
8877 * solib-frv.c: New file.
8878 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8879 * config/frv/tm-frv.h (solib.h): Include.
8880
ed1bd989
KB
88812004-03-12 Kevin Buettner <kevinb@redhat.com>
8882
8883 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8884 (frv-tdep.o): Update dependencies.
8885 * frv-tdep.h: New file.
8886 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8887 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8888 constants.
8889 (struct gdbarch_tdep): Add new member ``frv_abi''.
8890 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8891 functions.
8892 (new_variant): Set ``frv_abi'' field.
8893 (gdb_arch_init): Detect FDPIC executables.
8894
82b38f72
MK
88952004-03-12 Mark Kettenis <kettenis@gnu.org>
8896
8897 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8898 wrapper.
8899
db1ea9ba
AC
89002004-03-11 Andrew Cagney <cagney@redhat.com>
8901
8902 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8903
f8766ec1
KB
89042004-03-11 Kevin Buettner <kevinb@redhat.com>
8905
8906 * solist.h (master_so_list): New function.
8907 * solib.c (master_so_list): Likewise.
8908 * solib-svr4.c (enable_break): Iterate over so_list entries
8909 obtained from master list instead of entries obtained directly
8910 via svr4_current_sos().
8911
523f6a27
BE
89122004-03-10 Ben Elliston <bje@gnu.org>
8913
8914 * MAINTAINERS: Update my mail address.
8915
37814c18
KI
89162004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8917
8918 * remote-m32r-sdi.c: Support hardware watchpoint.
8919
8b9740d8
DJ
89202004-03-09 Daniel Jacobowitz <drow@mvista.com>
8921
8922 * user-regs.c: Update copyright years.
8923 (struct user_regs): Rename to gdb_user_regs.
8924 (append_user_reg, builtin_user_regs, user_regs_init)
8925 (user_reg_add, user_reg_map_name_to_regnum)
8926 (usernum_to_user_reg): Update.
8927
4bb7a0a7
DJ
89282004-03-09 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8931 (skip_children): New functions.
8932 (locate_pdi_sibling): Call skip_children.
8933
44e1a9eb
DJ
89342004-03-09 Daniel Jacobowitz <drow@mvista.com>
8935
8936 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8937 * gdbtypes.c (check_typedef): Update comments.
8938
f3dd6933
DJ
89392004-03-09 Daniel Jacobowitz <drow@mvista.com>
8940
8941 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8942 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8943 pointer. Update comment about comp_unit_head.
8944 (struct abbrev_info): Shorten two int flags.
8945 (dwarf_alloc_abbrev): Take a CU argument.
8946 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8947 each time through the loop. Update cleanup argument.
8948 (psymtab_to_symtab_1): Update cleanup call.
8949 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8950 abbrev_obstack.
8951 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8952 Just call obstack_free and clear the pointer.
8953
b40c7d58
DJ
89542004-03-09 Daniel Jacobowitz <drow@mvista.com>
8955
8956 * infrun.c (handle_inferior_event): Remove short-circuit code for
8957 events in a different thread.
8958
333dabeb
DJ
89592004-03-09 Daniel Jacobowitz <drow@mvista.com>
8960
8961 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8962 print the whole transfer.
8963 (initialize_targets): Update description of "set debug target".
8964
aa17d93e
DJ
89652004-03-09 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8968
0b71f08f
NW
89692004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8970
8971 * MAINTAINERS (write after approval): Add myself.
8972
3930f270
CV
89732004-03-08 Corinna Vinschen <vinschen@redhat.com>
8974
8975 * sh-tdep.c (sh_print_registers_info): Use for loop.
8976 Don't skip multiple registers when a float register is encountered.
8977
a2b4a96c
CV
89782004-03-08 Corinna Vinschen <vinschen@redhat.com>
8979
8980 Fix PR tdep/1291.
8981 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8982 to official SH documentation.
8983
f15a4bc0
AC
89842004-03-07 Andrew Cagney <cagney@redhat.com>
8985
8986 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8987 unused function.
8988
9498281f
DJ
89892004-03-07 Daniel Jacobowitz <drow@mvista.com>
8990
8991 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8992 (arm_get_next_pc): Handle BX and BLX.
8993
449e1137
AC
89942004-03-07 Andrew Cagney <cagney@redhat.com>
8995
eded0a31
AC
8996 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8997 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8998 HPPA_SP_REGNUM.
8999 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9000 (hppa_target_read_fp): Delete.
9001 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9002 register_virtual_size, max_register_raw_size,
9003 max_register_virtual_size, register_byte, register_size,
9004 target_read_fp, fp_regnum, and register_bytes. Set register_type
9005 instead of register_virtual_type.
9006 (hppa32_register_type, hppa64_register_type): Replace
9007 hppa32_register_virtual_type and hppa64_register_virtual_type.
9008 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9009 (HPPA_FP_REGNUM): Define.
9010
f5f907e2
AC
9011 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9012
69b4bbe4
AC
9013 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9014 (pa_do_registers_info): Delete.
9015 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9016 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9017 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9018
78161e48
AC
9019 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9020 GDB_TARGET_IS_HPPA code.
9021 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9022 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9023 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9024 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9025 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9026 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9027 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9028 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9029 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9030 (hppa_frameless_function_invocation, hppa64_store_return_value)
9031 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9032 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9033 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9034 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9035 (find_proc_framesize, deposit_21, restore_pc_queue)
9036 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9037 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9038
782eae8b
AC
9039 Unconditionally enable 64-bit frame and ABI code.
9040 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9041 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9042 push_dummy_frame, fix_call_dummy, push_arguments,
9043 call_dummy_location, extract_return_value, use_struct_convention,
9044 store_return_value, store_struct_return, saved_pc_after_call,
9045 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9046 frame_chain, frame_chain_valid, frameless_function_invocation,
9047 frame_saved_pc, and pop_frame.
78161e48 9048
449e1137
AC
9049 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9050 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9051 (hppa_gdbarch_init): Do not set PC_REGNUM.
9052
12507572
MK
90532004-03-06 Mark Kettenis <kettenis@gnu.org>
9054
9055 * config/alpha/tm-fbsd.h: Remove file.
9056 * config/alpha/fbsd.mt: Tweak comment.
9057 (TM_FILE): Set to tm-alpha.h.
9058
c107cc1b
AC
90592004-03-05 Andrew Cagney <cagney@redhat.com>
9060
9061 * infrun.c (step_over_function): When non-legacy code, and no
9062 step_frame_id, use the unwinder to get the caller's frame ID.
9063
f2e7c15d
MK
90642004-03-05 Mark Kettenis <kettenis@gnu.org>
9065
8b0c3633
MK
9066 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9067 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9068 bfd_arch_unknown. Adjust comment.
9069
f2e7c15d
MK
9070 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9071 * i386obsd-tdep.c: Correct spelling in comment.
9072 * i386nbsd-tdep.c: Correct spelling in comment.
9073 * sparc-tdep.c: Correct spelling in comments.
9074
1198ecbe
DC
90752004-03-05 David Carlton <carlton@kealia.com>
9076
9077 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9078 bug.
9079
9eb42ed1
MK
90802004-03-05 Mark Kettenis <kettenis@gnu.org>
9081
9082 * sparc-tdep.c: Fix typo in comment.
9083
52b5e991
JB
90842004-03-04 J. Brobecker <brobecker@gnat.com>
9085
9086 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9087
d8151005
DJ
90882004-03-04 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * dwarf2read.c: Add comment describing memory lifetimes.
9091 (struct dwarf2_pinfo): Update comment.
9092 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9093 (read_enumeration, new_symbol): Don't use obsavestring.
9094
cbeae229
MK
90952004-03-04 Mark Kettenis <kettenis@gnu.org>
9096
722d18c2
MK
9097 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9098 instead of amd64_fill_fxsave.
9099 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9100 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9101
cbeae229
MK
9102 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9103 Reorganize code a bit.
9104
b4206d25
OF
91052004-03-04 Orjan Friberg <orjanf@axis.com>
9106
9107 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9108 when the frame pointer is pushed. Don't set the frame pointer's
9109 address on the stack unless it's actually located there.
b4206d25
OF
9110 Set the SRP's address on the stack correctly when the PC is still in
9111 the prologue.
9112 (cris_return_value): New function.
9113 (cris_gdbarch_init): Clear deprecated store_return_value,
9114 extract_return_value.
9115
49b0b195
JB
91162004-03-02 Jim Blandy <jimb@redhat.com>
9117
9118 * stabsread.c (reg_value_complaint): The maximum register number
9119 is one less than the number of registers.
9120
e9ff708b
AC
91212004-03-02 Andrew Cagney <cagney@redhat.com>
9122
9123 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9124 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9125 trailing comma and redundant assignment of I386_ST0_REGNUM.
9126 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9127 32-bit segment registers.
9128
d4715e41
AC
91292004-03-01 Andrew Cagney <cagney@redhat.com>
9130
9131 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9132 use frame_relative_level and get_next_frame.
9133
3ce2bf18
AC
91342004-02-29 Andrew Cagney <cagney@redhat.com>
9135
9136 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9137 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9138 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9139 Delete macro.
9140
2da6aac3
DJ
91412004-02-29 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * inflow.c (terminal_inferior): Don't give up the terminal if we
9144 previously couldn't get the inferior's terminal state.
9145
6ba34a8d
DJ
91462004-02-29 Daniel Jacobowitz <drow@mvista.com>
9147
9148 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9149 PC_REGNUM.
9150
faae5abe
AC
91512004-02-28 Andrew Cagney <cagney@redhat.com>
9152
9153 * NEWS: Refer to GDB 6.1.
9154 * README: Refer to GDB 6.1.
9155 * PROBLEMS: Refer to GDB 6.1.
9156
2227a3c5
DJ
91572004-02-28 Daniel Jacobowitz <drow@mvista.com>
9158
9159 * thread-db.c (disable_thread_signals): Remove unused function.
9160
80571bff
MK
91612004-02-28 Mark Kettenis <kettenis@gnu.org>
9162
041bd74b
MK
9163 * amd64-nat.c: Include "gdb_string.h".
9164 (amd64_collect_native_gregset): Zero-extend the 32-bit
9165 general-purpose registers and %eip.
9166
3c017e40
MK
9167 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9168 * amd64-tdep.c (amd64_collect_fxsave): New function.
9169 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9170
80571bff
MK
9171 * i387-tdep.h: Update copyright year.
9172 (i387_collect_fxsave): New prototype.
9173 * i387-tdep.c: Update copyright year.
9174 (i387_collect_fxsave): New function containing most of the code
9175 from i387_fill_fxsave.
9176 (i387_fill_fxsave): Call i387_collect_fxsave.
9177
50d71875
AC
91782004-02-28 Andrew Cagney <cagney@redhat.com>
9179
9180 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9181 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9182
4a28816e
MK
91832004-02-28 Mark Kettenis <kettenis@gnu.org>
9184
9185 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9186
dbda9972
AC
91872004-02-28 Andrew Cagney <cagney@redhat.com>
9188
9189 * utils.c: Use "", instead of <>, to include readline.
9190 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9191 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9192 * source.c, solib.c, exec.c, event-top.c: Ditto.
9193 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9194 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9195 * Makefile.in: Update all dependencies.
9196 (readline_tilde_h, readline_history_h): Define.
9197 (readline_headers): Delete.
9198
83277a99
MK
91992004-02-28 Mark Kettenis <kettenis@gnu.org>
9200
91ae4303
MK
9201 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9202 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9203 "config/i386/tm-lx64.h".
9204
83277a99
MK
9205 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9206 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9207 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9208
6e1d7d6c
AC
92092004-02-28 Andrew Cagney <cagney@redhat.com>
9210
ecc9ac84
AC
9211 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9212
6e1d7d6c
AC
9213 * breakpoint.c (_initialize_breakpoint): Use
9214 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9215 Add help to show command.
9216
9671aeef
MK
92172004-02-28 Mark Kettenis <kettenis@gnu.org>
9218
7fa2737c
MK
9219 * i386-nat.c: Reformat to be closer to coding standards.
9220 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9221 `retval'. Make variables `align' and `size' local to while-loop.
9222 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9223 (_initialize_i386_nat): New prototype.
9224
9671aeef
MK
9225 * tui/tui.c: Include <readline/readline.h> instead of
9226 "readline/readline.h". Include it after <term.h> and
9227 "gdb_curses.h".
9228
fca7aa43
AC
92292004-02-27 Andrew Cagney <cagney@redhat.com>
9230
412275d5
AC
9231 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9232 the new frame unwind code.
9233 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9234 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9235 PCOQ_HEAD_REGNUM.
9236
fca7aa43
AC
9237 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9238 "return_value" and "push_dummy_call".
9239 (hppa32_use_struct_convention): Delete unused function.
9240 (hppa32_store_return_value): Delete unused function.
9241 (hppa32_extract_return_value): Delete unused function.
9242 (hppa32_stack_align): Delete function.
9243
e6a8a7d2
EZ
92442004-02-27 Eli Zaretskii <eliz@elta.co.il>
9245
9246 * coffread.c (enter_linenos): Don't let rawptr reference memory
9247 outside linetab[]'s limits.
9248
1797a8f6
AC
92492004-02-27 Andrew Cagney <cagney@redhat.com>
9250
9251 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9252 inferior stack space - the stack needs to grow upwards.
9253 (hppa32_frame_align): New function.
9254 (hppa64_frame_align): Replace hppa_frame_align.
9255 (hppa_gdbarch_init): Update.
9256
2e4b5889
OF
92572004-02-26 Orjan Friberg <orjanf@axis.com>
9258
9259 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9260 (dwarf2-frame.h): Include.
9261 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9262 Remove static variables related to ABI setting.
9263 (struct gdbarch_tdep): Remove cris_abi member.
9264 (struct frame_extra_info): Remove.
9265 (cris_unwind_cache, stack_item): New structs.
9266 (cris_frame_unwind, cris_frame_base): New variables.
9267 (push_stack_item, pop_stack_item)
9268 (cris_frame_unwind_cache, cris_frame_this_id)
9269 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9270 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9271 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9272 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9273 (cris_reg_struct_has_addr): New functions.
9274 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9275 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9276 (cris_store_struct_return, cris_frameless_function_invocation)
9277 (cris_pop_frame, cris_skip_prologue_main)
9278 (cris_abi_original_store_return_value)
9279 (cris_abi_v2_store_return_value)
9280 (cris_abi_original_extract_return_value)
9281 (cris_abi_v2_extract_return_value)
9282 (cris_abi_original_reg_struct_has_addr)
9283 (cris_abi_v2_reg_struct_has_addr)
9284 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9285 (cris_push_return_address, cris_abi_update): Remove.
9286 (_initialize_cris_tdep): Remove ABI command.
9287 (cris_dump_tdep): Ditto.
8718a420 9288 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9289 Set store_return_value, extract_return_value, push_dummy_code,
9290 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9291 frame_unwind_append_sniffer, frame_base_set_default.
9292 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9293 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9294 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9295 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9296 init_extra_frame_info, frameless_function_invocation, frame_chain,
9297 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9298 dummy_write_sp.
8718a420 9299
6b9acc27
JJ
93002004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9301
9302 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9303 * valprint.c (print_hex_chars): Change from static to external.
9304 (print_char_chars): New function.
9305 * printcmd.c (print_scalar_formatted): For integer and enum types
9306 that are longer than LONGEST, perform processing via appropriate
9307 print_*_chars routines.
9308
a431654a
AC
93092004-02-26 Andrew Cagney <cagney@redhat.com>
9310
9311 * Makefile.in: Update dependencies.
9312 Changes from Ulrich Weigand,
9313 * s390-tdep.c: Include "dwarf2-frame.h".
9314 (s390_dwarf2_frame_init_reg): New function.
9315 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9316 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9317
fa8d40ab
JJ
93182004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9319
9320 * breakpoint.c (pending_break_support): New setting variable.
9321 (break_command_1): Account for pending_break_support setting
9322 when creating pending breakpoints.
9323 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9324 (_initialize_breakpoint): Add "set breakpoint pending" and
9325 "show breakpoint pending" commands.
9326
0dcd613f
AC
93272004-02-26 Andrew Cagney <cagney@redhat.com>
9328
9329 Fix PR i18n/1570.
9330 * charset.c (backslashable, backslashed, represented): Remove 'e'
9331 from list of escaped characters, not part of ISO-C.
9332
479272a3
JB
93332004-02-25 J. Brobecker <brobecker@gnat.com>
9334
9335 From Peter Schauer <schauer@pdf.de>:
9336 * tui/tui.c: Move system header includes after local includes.
9337 Fixes a build failure on solaris systems.
9338
7613d933
JB
93392004-02-25 J. Brobecker <brobecker@gnat.com>
9340
9341 * configure.in: Refine the previous change.
9342 * configure: Regenerate.
9343
9c1488cb
MK
93442004-02-25 Mark Kettenis <kettenis@gnu.org>
9345
9346 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9347 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9348 "amd64-tdep.h" instead of "x86-64-tdep.h".
9349 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9350 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9351 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9352 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9353 and "x86-64-tdep.c".
9354 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9355 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9356 and "x86-64-tdep.c".
9357 * amd64bsd-nat.c: Update copyright year.
9358 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9359 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9360 "x86-64-tdep.h".
9361 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9362 "x86-64-tdep.h".
9363 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9364 "x86-64-tdep.h".
9365 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9366 "x86-64-tdep.h".
9367 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9368 "x86-64-tdep.h".
9369 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9370 "x86-64-tdep.h".
8718a420 9371 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9372 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9373 * Makefile.in (amd64_linux_tdep_h): Renamed from
9374 x86_64_linux_tdep_h.
9375 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9376 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9377 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9378 (amd64obsd-tdep.o): Update dependencies.
9379 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9380 dependencies.
9381 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9382 dependencies.
9383 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9384 amd64-linux-nat.c amd64-linux-tdep.c.
9385 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9386 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9387 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9388 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9389 amd64-tdep.o and amd64-linux-tdep.o.
9390 (TM_FILE): Set to tm-linux64.h.
9391 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9392 (NAT_FILE): Set to nm-linux64.h.
9393 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9394 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9395 amd64-tdep.o.
9396 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9397 amd64-tdep.o.
9398 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9399 amd64-tdep.o.
9400
4b8dad4a
RM
94012004-02-25 Roland McGrath <roland@redhat.com>
9402
9403 * remote.c (remote_protocol_qPart_auxv): New variable.
9404 (init_all_packet_configs): Initialize it.
9405 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9406 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9407 (show_remote_cmd): Call it.
9408 (_initialize_remote): Initialize commands.
9409 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9410 service TARGET_OBJECT_AUXV requests.
9411
66745969
JB
94122004-02-25 J. Brobecker <brobecker@gnat.com>
9413
9414 * configure.in: Make sure that the wborder function is available.
9415 Otherwise, search for it in the cur_colr library.
9416 * configure: Regenerate.
9417
79508e1e
AC
94182004-02-25 Andrew Cagney <cagney@redhat.com>
9419
9420 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9421
571ee600
MK
94222004-02-25 Mark Kettenis <kettenis@gnu.org>
9423
9424 * config/i386/tm-x86-64linux.h: Tweak comments.
9425
2b1b322f 94262004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9427
9428 * MAINTAINERS: Add self to write-after-approval list.
9429
4d2acc65
AC
94302004-02-25 Andrew Cagney <cagney@redhat.com>
9431
4b8dad4a 9432 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9433 * cli/cli-script.c (execute_control_command): Unconditionally
9434 install a cleanup. Default "ret" to "invalid_control". Use
9435 "break" instead of "return" to escape from the switch.
9436
4cfcaf21
JB
94372004-02-24 J. Brobecker <brobecker@gnat.com>
9438
9439 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9440 with the lines macro defined in term.h on AiX.
9441 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9442 a collision with the label_width macro defined in term.h on AiX.
9443
54a5c8d8
KB
94442004-02-23 David Mosberger <davidm@hpl.hp.com>
9445
9446 Committed by Kevin Buettner <kevinb@redhat.com>.
9447
9448 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9449 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9450 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9451 instead of ia64_write_pc().
9452 * ia64-linux-tdep.c (regcache.h): Include.
9453 (ia64_linux_write_pc): New function.
4b8dad4a 9454
8a1dac83
RM
94552004-02-23 Roland McGrath <roland@redhat.com>
9456
9457 * auxv.c (info_auxv_command): Fix typos in error messages.
9458
90f90721
MK
94592004-02-23 Mark Kettenis <kettenis@gnu.org>
9460
8a1dac83 9461 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9462 (enum amd64_regnum): New.
9463 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9464 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9465 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9466 (X86_64_XMM1_REGNUM): Removed.
9467 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9468 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9469 prototypes for renamed functions.
9470 * x86-64-tdep.c: Fix typo.
9471 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9472 register numbers.
9473 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9474 Use constants from `enum amd64_regnum' for register numbers.
9475 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9476 (amd64_analyze_prologue, amd64_frame_cache,
9477 amd64_sigtramp_frame_cache): Use constants from `enum
9478 amd64_regnum' for register numbers.
9479 (amd64_supply_fpregset): Adjust for renamed functions.
9480 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9481 `enum amd64_regnum' for register numbers.
9482 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9483 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9484 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9485 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9486 (amd64_linux_fill_gregset): Adjust for renamed macros.
9487 (fetch_core_registers): Adjust for renamed functions.
9488 (amd64_linux_init_abi): Adjust for renamed functions.
9489 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9490 renamed functions.
9491 * amd64-nat.c: Adjust for renamed macros.
9492 * amd64bsd-nat.c (fetch_inferior_registers)
9493 (store_inferior_registers): Use constants from `enum amd64_regnum'
9494 for register numbers. Adjust for renamed variables.
9495 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9496 renamed variables.
9497 (_initialize_amd64fbsd_nat): Use constants from `enum
9498 amd64_regnum' for register numbers.
9499 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9500 `enum amd64_regnum' for register numbers.
9501 (amd64fbsd_init_abi): Adjust for renamed functions.
9502 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9503 `enum amd64_regnum' for register numbers.
9504 (amd64nbsd_init_abi): Adjust for renamed functions.
9505 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9506 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9507 `enum amd64_regnum' for register numbers.
9508 (amd64obsd_init_abi): Adjust for renamed functions.
9509 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9510
d5479188
JJ
95112004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9512
9513 * breakpoint.c (print_one_breakpoint): Do not output spaces
9514 after printing <PENDING> for a pending breakpoint.
9515
81cb7cc9
JJ
95162004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9517
9518 * printcmd.c (print_scalar_formatted): Initialize val_long
9519 to remove compiler warning message.
9520
cbdeadca
JJ
95212004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9522
9523 * defs.h (nquery, yquery): New prototypes.
9524 * breakpoint.c (break_command_1): Use new nquery interface.
9525 * utils.c (defaulted_query, nquery, yquery): New functions.
9526
da6bab63
AC
95272004-02-23 Andrew Cagney <cagney@redhat.com>
9528
2f690297
AC
9529 * hppa-tdep.c (hppa_frame_align): New function.
9530 (hppa32_push_dummy_call): New function.
9531 (hppa64_push_dummy_call): New function.
9532 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9533 disabled.
8a1dac83 9534
da6bab63
AC
9535 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9536 FIX_CALL_DUMMY when push_dummy_call is available.
9537 (call_function_by_hand, push_dummy_code): Ditto.
9538
abf9b42d
AC
95392004-02-22 Andrew Cagney <cagney@redhat.com>
9540
9541 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9542 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9543 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9544 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9545 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9546 call_dummy_location to ON_STACK.
9547
10fc94a4
MK
95482004-02-22 Mark Kettenis <kettenis@gnu.org>
9549
51433e4b
MK
9550 * x86-64-linux-tdep.c: Tweak comment.
9551 (amd64_linux_supply_gregset): Renamed from
9552 x86_64_linux_supply_gresget.
9553 (amd64_linux_fill_gregset): Renamed from
9554 x86_64_linux_fill_gregset.
9555 (fetch_core_registers): Adjust for renamed functions.
9556 (amd64_core_fns): Renamed from x86_64_core_fns.
9557 (amd64_linux_sigtramp_start): Renamed from
9558 x86_64_linux_sigtramp_start.
9559 (amd64_linux_pc_in_sigtramp): Renamed from
9560 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9561 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9562 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9563 (amd64_linux_sigcontext_addr): Renamed from
9564 x86_64_linux_sigcontext_addr.
9565 (amd64_linux_sc_reg_offset): Renamed from
9566 x86_64_linux_sc_reg_offset.
9567 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9568 Adjust for renamed functions and variables.
9569 (_initialize_amd64_linux_tdep): Renamed from
9570 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9571 variables.
9572 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9573 Adjust for renamed functions.
9574
430eaf2e
MK
9575 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9576 from x86_64_linux_gregset64_reg_offset.
9577 (amd64_linux_gregset32_reg_offset): Rename from
9578 x86_64_linux_gregset64_reg_offset.
9579 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9580 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9581 (amd64_linux_dr_set_control): Renamed from
9582 x86_64_linux_dr_set_control. Adjust for renamed functions.
9583 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9584 Adjust for renamed functions.
9585 (amd64_linux_dr_reset_addr): Renamed from
9586 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9587 (amd64_linux_dr_get_status): Renamed from
9588 x86_64_linux_dr_get_status. Adjust for renamed functions.
9589 (_initialize_amd64_linux_nat): Renamed from
9590 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9591 functions.
9592 * config/i386/nm-x86-64linux.h: Update copyright year.
9593 Adjust for renamed functions.
9594
10fc94a4
MK
9595 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9596 amd64fbsd_sigtramp_start.
9597 (amd64fbsd_sigtramp_end_addr): Renamed from
9598 amd64fbsd_sigtramp_end.
9599 (amd64fbsd_init_abi): Adjust for renamed variables.
9600 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9601 variables.
9602 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9603 amd64fbsd_sigtramp_start.
9604 (amd64fbsd_sigtramp_end_addr): Renamed from
9605 amd64fbsd_sigtramp_end.
9606
343af405
AC
96072004-02-22 Andrew Cagney <cagney@redhat.com>
9608
537987fc
AC
9609 * hppa-tdep.c (hppa32_return_value): New function.
9610 (hppa64_return_value): New function.
9611 (hppa_gdbarch_init): Set return_value; keep disabled.
9612
fad850b2
AC
9613 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9614 struct-return and inferior function call methods.
9615
26d08f08
AC
9616 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9617 "frame-base.h".
9618 (struct hppa_frame_cache): Define.
9619 (hppa_frame_cache, hppa_frame_this_id): New functions.
9620 (hppa_frame_prev_register): New function.
9621 (hppa_frame_unwind, hppa_frame_base): New variables.
9622 (hppa_frame_unwind_sniffer): New function.
9623 (hppa_frame_base_address, hppa_unwind_pc): New function.
9624 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9625 sniffer, and frame base sniffer; keep disabled.
9626 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9627 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9628
e7d7bd65
AC
9629 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9630 to predicates for "seriously old code".
9631
e963316f
AC
9632 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9633 runtime if(0).
9634
56132691
AC
9635 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9636 unsigned.
9637 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9638
343af405
AC
9639 * config/pa/tm-hppa.h: Update copyright.
9640 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9641 (deprecated_init_frame_pc_default): Delete declaration.
9642 (hppa_frame_init_saved_regs): Delete declaration.
9643 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9644 * hppa-tdep.c: Include "arch-utils.h".
9645 (hppa_gdbarch_init): Set deprecated init_frame_pc
9646 and deprecated frame_init_saved_regs.
9647 (hppa_frame_init_saved_regs): Make static.
9648
f5859b4d
MK
96492004-02-22 Mark Kettenis <kettenis@gnu.org>
9650
86f6f8e7 9651 Remove old 386BSD support.
cf7c5c23 9652 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9653 * configure.host: Remove i[34567]86-*-bsd*.
9654 * configure.tgt: Remove i[34567]86-*-bsd*.
9655 * i386b-nat.c: Removed.
9656 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9657 (i386b-nat.o): Remove dependencies.
9658
86f6f8e7
MK
9659 * config/i386/i386bsd.mh: Removed.
9660 * config/i386/i386bsd.mt: Removed.
9661 * config/i386/nm-i386bsd.h: Removed.
9662 * config/i386/tm-i386bsd.h: Removed.
9663 * config/i386/xm-i386bsd.h: Removed.
9664
971218cd
MK
9665 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9666
7e654c37
MK
9667 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9668 (amd64fbsd_init_abi): Set link map offsets.
9669 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9670 (amd64nbsd_init_abi): Set link map offsets.
9671 * amd64obsd-tdep.c: Include "solib-svr4.h".
9672 (amd64obsd_init_abi): Set link map offsets.
9673 * i386fbsd-tdep.c: Include "solib-svr4.h".
9674 (i386fbsd_init_abi): Set link map offsets.
9675 * i386nbsd-tdep.c: Include "solib-svr4.h".
9676 (i386nbsdelf_init_abi): Set link map offsets.
9677 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9678 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9679 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9680 solib-legacy.o and core-aout.o. Reformat.
9681 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9682 solib-svr4.o, solib-legacy.o. Reformat.
9683 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9684 * config/i386/nbsdelf.mh: Reformat.
9685 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9686 solib-svr4.o, solib-legacy.o and corelow.o.
9687 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9688 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9689 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9690 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9691 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9692 (TM_FILE): Set to tm-fbsd.h.
9693 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9694 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9695 solib-svr4.o.
9696 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9697 solib-svr4.o.
9698 (TM_FILE): Set to nm-nbsd.h.
9699 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9700 Simplify shared library support. Don't include "elf/common.h".
9701 (SVR4_SHARED_LIBS): Don't define.
9702 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9703 "solib.h".
9704 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9705 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9706 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9707 Don't include "i386/tm-i386.h". Include "solib.h".
9708 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9709 Don't include "i386/tm-i386.h".
9710 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9711 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9712 Include "i386/xm-i386.h".
9713 (HOST_LONG_DOUBLE_FORMAT): Remove.
9714
5d93ae8c
MK
9715 Fix OpenBSD/i386 sigtramp recognition.
9716 * i386-tdep.h: Update copyright year.
9717 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9718 (i386bsd_sigtramp_end): New prototypes.
9719 (i386fbsd_sigtramp_start_addr): Renamed from
9720 i386fbsd_sigtramp_start.
9721 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9722 (i386obsd_sigtramp_start_addr): Renamed from
9723 i386obsd_sigtramp_start.
9724 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9725 * i386bsd-tdep.c: Update copyright year.
9726 (i386bsd_pc_in_sigtramp): Make public.
9727 * i386fbsd-nat.c: Update copyright year.
9728 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9729 * i386fbsd-tdep.c: Update copyright year.
9730 (i386fbsd_sigtramp_start_addr): Renamed from
9731 i386fbsd_sigtramp_start.
9732 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9733 (i386fbsdaout_init_abi): Adjust for renamed variables.
9734 * i386obsd-nat.c: Update copyright year.
9735 (_initialize_i386obsd_nat): Adjust for renamed variables.
9736 * i386obsd-tdep.c: Include "target.h".
9737 (i386obsd_page_size): New variable.
9738 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9739 (i386obsd_sigtramp_end): New functions.
9740 (i386obsd_sigtramp_start_addr): Renamed from
9741 i386obsd_sigtramp_start.
9742 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9743 (i386obsd_init_abi): Adjust for renamed variables. Set
9744 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9745 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9746
84d04465
MK
9747 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9748 trampoline change in OpenBSD kernel.
9749
b053aceb
MK
9750 * amd64-nat.c: Update copyright year.
9751 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9752 architecture from REGCACHE.
9753
f5859b4d
MK
9754 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9755 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9756
e4bbbda8
MK
97572004-02-21 Mark Kettenis <kettenis@gnu.org>
9758
ba361932
MK
9759 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9760 i[34567]86-*-openbsd3.[0-3].
9761 * config/i386/obsdaout.mh: New file.
9762
d3e48264
MK
9763 * config/i386/obsd.mh (MH_FLAGS): Remove.
9764
60a6eeb6
MK
9765 Fix PR build/1549.
9766 * i386obsd-tdep.c: Update copyright years. Include
9767 "solib-svr4.h".
9768 (i386obsd_init_abi): Don't set regset_from_core_section here.
9769 (i386obsd_aout_init_abi): New function. Set
9770 regset_from_core_section here.
9771 (i386obsd_elf_init_abi): New function.
9772 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9773 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9774 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9775 (TM_FILE): Set to tm-nbsd.h.
9776
9777 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9778 solib-sunos.o.
9779
e4bbbda8
MK
9780 * solib-svr4.h: Update copyright year.
9781 (svr4_ilp32_fetch_link_map_offsets)
9782 (svr4_lp64_fetch_link_map_offsets): New prototype.
9783 * solib-svr4.c: Update copyright year.
9784 (svr4_ilp32_fetch_link_map_offsets)
9785 (svr4_lp64_fetch_link_map_offsets): New function.
9786
f6fe98ef
DJ
97872004-02-20 Daniel Jacobowitz <drow@mvista.com>
9788
9789 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9790 to the partial symbol table.
9791
589ca796
JB
97922004-02-20 J. brobecker <brobecker@gnat.com>
9793
9794 * PROBLEMS: Add description of problem documented under gdb/1560.
9795
2031c21a
MK
97962004-02-20 Mark Kettenis <kettenis@gnu.org>
9797
30b344b1
MK
9798 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9799 comments.
9800 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9801 functions.
9802 (amd64obsd_init_abi): Reorder initializations. Use
9803 amd64obsd_r_reg_offset to initialize the general-purpose register
9804 set details. Set regset_from_core_section.
9805 (_initialize_amd64obsd_tdep): Rename from
9806 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9807 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9808 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9809
2031c21a
MK
9810 * NEWS (New native configurations): Mention OpenBSD/alpha.
9811 * configure.tgt: Add alpha*-*-openbsd*.
9812 * configure.host: Add alpha*-*-openbsd*.
9813 * alphanbsd-tdep.c: Update copyright year.
9814 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9815
42471775
AC
98162004-02-20 Andrew Cagney <cagney@redhat.com>
9817
9818 Fix PR tdep/1372.
9819 * configure.tgt: Delete target "none-*-*".
9820 * configure.host: Delete host "none-*-*".
9821 * config/none/none.mh: Delete file.
9822 * config/none/none.mt: Delete file.
9823 * config/none/xm-none.h: Delete file.
9824 * config/none/tm-none.h: Delete file.
9825 * config/none/nm-none.h: Delete file.
9826
960ccd7d
FF
98272004-02-19 Fred Fish <fnf@redhat.com>
9828
9829 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9830 cache->uses_fp prior to setting it.
9831
5f883edd
FF
98322004-02-19 Fred Fish <fnf@redhat.com>
9833
9834 Fix for PR breakpoint/1558.
9835 * sh-tdep.c (IS_JSR): New macro.
9836 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9837
f98c22d5
JB
98382004-02-19 Jim Blandy <jimb@redhat.com>
9839
9840 * findvar.c (value_from_register): Doc fix.
9841
95051d27
JJ
98422004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9843
9844 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9845 type being greater than sizeof of host's LONGEST. Always use
9846 unpack_long() unless format 'f' chosen.
9847
ccefbec3
EZ
98482004-02-19 Joel Brobecker <brobecker@gnat.com>
9849
9850 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9851
ccefbec3
EZ
9852 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9853 contains a symbol wich is the best, non-exact match for the given
9854 pc. Update comments.
9855
98562004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9857
2ede629f
EZ
9858 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9859 macro, which was part of the now removed Mach 3 port.
9860 * utils.c (request_quit): Ditto.
9861
567ee972
MK
98622004-02-18 Mark Kettenis <kettenis@gnu.org>
9863
9864 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9865 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9866
50cca7bb
MK
98672004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9868
9869 Committed by Mark Kettenis <kettenis@gnu.org>.
9870
9871 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9872 Define.
9873
226361c4
AC
98742004-02-18 Andrew Cagney <cagney@redhat.com>
9875
9876 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9877 CONFIG_INSTALL and CONFIG_UNINSTALL.
9878 * configure: Re-generate.
9879 * interps.h (INTERP_TUI): Define.
9880 * Makefile.in: Update dependencies.
9881 (TUI): New macro.
9882 (tui-main.o): Specify dependencies.
9883 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9884 * tui/tui-main.c: New file.
9885
49cfa46f
MK
98862004-02-18 Mark Kettenis <kettenis@gnu.org>
9887
e2879ccb
MK
9888 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9889 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9890 dependencies.
9891 * configure.host: Add x86_64-*-openbsd*.
9892 * configure.tgt: Add x86_64-*-openbsd*.
9893 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9894
c43f4bec
MK
9895 * tui/tui.c: Don't include <malloc.h>.
9896
09ae75b6
MK
9897 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9898 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9899 amd64nbsd-tdep.c.
9900
49cfa46f 9901 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9902 static. Remove extraneous whitespace.
49cfa46f
MK
9903 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9904 static.
9905
05957fdb
JB
99062004-02-17 Jim Blandy <jimb@redhat.com>
9907
9908 * findvar.c (value_from_register): Doc fix.
9909
d0f54f9d
JB
99102004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9911
9912 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9913
8a1dac83 9914 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9915 CORE_ADDR as type for selectors. Correct types for GNU run time
9916 message lookup function to use double indirection.
9917 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9918 * objc-lang.h (lookup_child_selector): Adapt prototype.
9919
9cbd5950
JB
9920 * s390-nat.c (SUBOFF): New macro.
9921 (supply_gregset, fill_gregset): Use it to handle debugging
9922 of 32-bit exectuables running under a 64-bit kernel.
9923 * s390-tdep.c: Include "solib-svr4.h".
9924 (s390_svr4_fetch_link_map_offset): New function.
9925 (s390x_svr_fetch_link_map_offset): Likewise.
9926 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9927 * Makefile.in (s390-tdep.o): Update dependencies.
9928
a8c99f38
JB
9929 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9930 "frame-unwind.h".
9931 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9932 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9933 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9934 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9935 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9936 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9937 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9938 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9939 (struct frame_extra_info): Remove.
9940 (s390_memset_extra_info): Remove.
f73b1eff
JB
9941 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9942 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9943 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9944 (is_rse): Renamed to ...
9945 (is_rsy): ... this. Support long displacements.
9946 (is_rxe): Renamed to ...
9947 (is_rxy): ... this. Support long displacements.
9948 (compute_x_addr): Support long displacements.
9949 (struct s390_prologue_data): New data type.
9950 (s390_on_stack): Change API to use struct s390_prologue_data.
9951 (s390_store): Reimplement.
9952 (s390_load): New function.
9953 (s390_get_signal_frame_info): Remove.
9954 (s390_get_frame_info): Remove, replace by ...
9955 (s390_analyze_prolog): ... this new function.
9956 (s390_check_function_end): Remove.
9957 (s390_function_start): Remove.
9958 (s390_frameless_function_invokation): Remove.
9959 (s390_is_sigreturn): Remove.
9960 (s390_init_frame_pc_first): Remove.
9961 (s390_init_frame_extra_info): Remove.
9962 (s390_frame_init_saved_regs): Remove.
9963 (s390_frame_saved_pc_nofix): Remove.
9964 (s390_frame_saved_pc): Remove.
9965 (s390_frame_chain): Remove.
9966 (s390_fp_regnum, s390_read_fp): Remove.
9967 (s390_pop_frame_regular, s390_pop_frame): Remove.
9968 (s390_saved_pc_after_call): Remove.
9969 (s390_skip_prologue): Reimplement.
9970 (s390_in_function_epilogue_p): Support long displacements.
9971 (struct s390_unwind_cache): New data structure.
9972 (s390_frame_unwind_cache): New function.
9973 (s390_prologue_frame_unwind_cache): Likewise.
9974 (s390_backchain_frame_unwind_cache): Likewise.
9975 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9976 (s390_frame_unwind): Define.
9977 (s390_frame_sniffer): New function.
9978 (struct s390_pltstub_unwind_cache): New data structure.
9979 (s390_pltstub_frame_unwind_cache): New function.
9980 (s390_pltstub_frame_this_id): Likewise.
9981 (s390_pltstub_frame_prev_register): Likewise.
9982 (s390_pltstub_frame_unwind): Define.
9983 (s390_pltstub_frame_sniffer): New function.
9984 (struct s390_sigtramp_unwind_cache): New data structure.
9985 (s390_sigtramp_frame_unwind_cache): New function.
9986 (s390_sigtramp_frame_this_id): Likewise.
9987 (s390_sigtramp_frame_prev_register): Likewise.
9988 (s390_sigtramp_frame_unwind): Define.
9989 (s390_sigtramp_frame_sniffer): New function.
9990 (s390_frame_base_address, s390_local_base_address): New functions.
9991 (s390_frame_base): Define.
9992 (s390_unwind_pc, s390_unwind_sp): New function.
9993 (s390_push_dummy_call): Use new frame base location.
9994 (s390_unwind_dummy_id): Likewise.
9995 (s390_gdbarch_init): Remove calls to:
9996 set_gdbarch_frameless_function_invocation,
9997 set_gdbarch_deprecated_init_frame_pc,
9998 set_gdbarch_deprecated_frame_chain,
9999 set_gdbarch_deprecated_frame_init_saved_regs,
10000 set_gdbarch_deprecated_pop_frame,
10001 set_gdbarch_deprecated_init_extra_frame_info,
10002 set_gdbarch_deprecated_init_frame_pc_first,
10003 set_gdbarch_deprecated_target_read_fp,
10004 set_gdbarch_deprecated_frame_saved_pc,
10005 set_gdbarch_deprecated_saved_pc_after_call,
10006 set_gdbarch_deprecated_fp_regnum.
10007 Add calls to:
10008 set_gdbarch_in_solib_call_trampoline,
10009 frame_unwind_append_sniffer,
10010 frame_base_set_default,
10011 set_gdbarch_unwind_pc,
10012 set_gdbarch_unwind_sp.
10013 * Makefile.in (s390-tdep.o): Update dependencies.
10014
b0cf273e
JB
10015 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10016 (S390_STACK_FRAME_OVERHEAD): Remove.
10017 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10018 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10019 (s390_promote_integer_argument): Remove.
10020 (s390_cannot_extract_struct_value_address): Remove.
10021 (s390_use_struct_convention, s390_store_struct_return): Remove.
10022 (s390_extract_return_value, s390_store_return_value): Remove.
10023 (s390_return_value_convention, s390_return_value): New functions.
10024 (is_float_singleton): Handle typedefs.
8a1dac83 10025 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10026 Remove, replace by ...
10027 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10028 s390_function_arg_integer): ... these new functions.
10029 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10030 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10031 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10032 Fill in tdep->abi.
10033 Remove calls to:
10034 set_gdbarch_deprecated_store_struct_return,
10035 set_gdbarch_deprecated_extract_return_value,
10036 set_gdbarch_deprecated_store_return_value,
10037 set_gdbarch_use_struct_convention,
10038 set_gdbarch_extract_struct_value_address,
10039 set_gdbarch_deprecated_pc_in_call_dummy,
10040 set_gdbarch_deprecated_push_arguments,
10041 set_gdbarch_deprecated_save_dummy_frame_tos,
10042 set_gdbarch_deprecated_push_return_address,
10043 set_gdbarch_deprecated_sizeof_call_dummy_words,
10044 set_gdbarch_deprecated_call_dummy_words,
10045 set_gdbarch_deprecated_dummy_write_sp.
10046 Add calls to:
10047 set_gdbarch_push_dummy_call,
10048 set_gdbarch_unwind_dummy_id,
10049 set_gdbarch_return_value.
8a1dac83 10050
e1457d83
JB
10051 * config/s390/nm-linux.h: Update comments.
10052 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10053 (STOPPED_BY_WATCHPOINT): Redefine.
10054 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10055 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10056 (s390_stopped_by_watchpoint): Likewise.
10057 (watch_area_cnt): Remove.
10058 * s390-nat.c: Update comments.
10059 (watch_area): Remove typedef.
10060 Global replace watch_area by struct watch_area.
10061 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10062 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10063 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10064 (s390_fix_watch_points): Remove pid argument,
10065 use s390_inferior_tid. Recompute area spanned by watchpoints.
10066 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10067 argument. Reimplement.
10068
d0f54f9d
JB
10069 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10070 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10071 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10072 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10073 core-regset.o.
10074 * config/s390/s390x.mt: Remove.
10075 * config/s390/tm-s390.h: Remove.
10076 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10077 (TARGET_ELF64): Remove.
10078 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10079 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10080 s390*-*-* case; always set gdb_target to s390.
10081 * regformats/reg-s390.dat: Remove control registers.
10082 * regformats/reg-s390x.dat: Likewise.
10083 * s390-tdep.h: New file.
8a1dac83 10084 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10085 Include "inferior.h" and "s390-tdep.h".
10086 Remove private definition of offsetof.
10087 (s390_register_u_addr): Remove.
10088 (regmap_gregset, regmap_fpregset): Define.
10089 (supply_gregset, fill_gregset): Reimplement.
10090 (supply_fpregset, fill_fpregset): Likewise.
10091 (s390_inferior_tid): New function.
10092 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10093 (fetch_inferior_registers, store_inferior_registers): Likewise.
10094 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10095 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10096 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10097 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10098 (struct gdbarch_tdep): Define.
10099 (struct s390_register_info): Define.
10100 (s390_register_info): New variable.
10101 (s390_register_name): Reimplement.
10102 (s390_register_type): New function.
10103 (s390_register_raw_size, s390x_register_raw_size): Remove.
10104 (s390_cannot_fetch_register): Remove.
10105 (s390_register_byte): Remove.
10106 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10107 (s390_dwarf_regmap): New variable.
10108 (s390_dwarf_reg_to_regnum): New function.
10109 (s390_stab_reg_to_regnum): Remove.
10110 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10111 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10112 (s390_convert_register_p): Likewise.
10113 (s390_register_to_value, s390_value_to_register): Likewise.
10114 (s390_register_reggroup_p): Likewise.
10115 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10116 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10117 (s390_supply_regset, s390_regset_from_core_section): New functions.
10118 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10119 (S390_FPR_SIZE): Likewise.
10120 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10121 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10122 (S390_NUM_GPRS): Move here from tm-s390.h.
10123 (S390_NUM_FPRS): Likewise.
10124 (s390_in_function_epilogue_p): New function.
10125 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10126 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10127 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10128 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10129 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10130 Remove calls to:
10131 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10132 set_gdbarch_deprecated_max_register_virtual_size,
10133 set_gdbarch_deprecated_register_byte,
d0f54f9d 10134 set_gdbarch_cannot_fetch_register,
8a1dac83 10135 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10136 set_gdbarch_deprecated_register_size,
10137 set_gdbarch_deprecated_register_raw_size,
10138 set_gdbarch_deprecated_register_virtual_size,
10139 set_gdbarch_deprecated_register_virtual_type,
10140 set_gdbarch_deprecated_register_bytes.
10141 Add calls to:
10142 set_gdbarch_num_pseudo_regs,
10143 set_gdbarch_register_type,
10144 set_gdbarch_convert_register_p,
10145 set_gdbarch_register_to_value,
10146 set_gdbarch_value_to_register,
10147 set_gdbarch_register_reggroup_p,
10148 set_gdbarch_regset_from_core_section,
10149 set_gdbarch_pseudo_register_read,
10150 set_gdbarch_pseudo_register_write,
10151 set_gdbarch_in_function_epilogue_p.
10152 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10153 (s390_tdep_h): New variable.
10154
8cfe231d
JB
101552004-02-17 Jim Blandy <jimb@redhat.com>
10156
4589a601
JB
10157 * findvar.c (value_from_register): If the type has no length, just
10158 return an acceptable value --- don't report an internal error.
10159
8cfe231d
JB
10160 * stabsread.c (read_type): If we find any type numbers that are
10161 forward references, complain if the references aren't resolved by
10162 the time we're finished reading.
10163 (cleanup_undefined_types): Make error message more appropriate for
10164 a complaint.
10165
5bf0017e
EZ
101662004-02-17 Elena Zannoni <ezannoni@redhat.com>
10167
9d62932d
EZ
10168 * Makefile.in (defs_h): Remove dependency on progress_h.
10169 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10170 progress.h.
10171 * main.c (captured_main): Delete use of START_PROGRESS and
10172 END_PROGRESS.
10173
101742004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10175
5bf0017e
EZ
10176 * objfiles.c (terminate_minimal_symbol_table): Add back
10177 initialization of MSYMBOL_TYPE.
10178
9fc9f5e2
AC
101792004-02-17 David Mosberger <davidm@hpl.hp.com>
10180
10181 Committed by Andrew Cagney.
10182 * Makefile.in (ia64_tdep_h): New macro.
10183 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10184 (ia64-tdep.o): Likewise.
10185 * ia64-tdep.h: New file.
10186 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10187 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10188 (ia64_aix_sigcontext_register_address): Likewise.
10189 (ia64_linux_getunwind_table): Delete declaration.
10190 * ia64-linux-tdep.c: Likewise.
10191
76cd2bd9
CV
101922004-02-17 Corinna Vinschen <vinschen@redhat.com>
10193
10194 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10195 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10196 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10197
634aa483
AC
101982004-02-17 Andrew Cagney <cagney@redhat.com>
10199
10200 * symtab.c (skip_prologue_using_sal): New function.
10201 * symtab.h (skip_prologue_using_sal): Declare.
10202 * frv-tdep.c: Include "symtab.h".
10203 (skip_prologue_using_sal): Delete function.
10204 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10205 * rs6000-tdep.c (refine_prologue_limit): Mention
10206 skip_prologue_using_sal.
10207 * ia64-tdep.c (refine_prologue_limit): Ditto.
10208 * Makefile.in: Update dependencies.
10209
102102004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10211
39ce7b3f
AC
10212 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10213 START_INFERIOR_TRAPS_EXPECTED.
10214 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10215 START_INFERIOR_TRAPS_EXPECTED.
10216 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10217 Delete macro.
10218 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10219 macro, moved to "nm-osf.h". Update copyright.
10220 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10221 update copyright.
10222
19772a2c
AC
10223 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10224 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10225 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10226 frameless_look_for_prologue.
10227 * frame.h (legacy_frameless_look_for_prologue): Rename
10228 frameless_look_for_prologue.
10229 * gdbarch.h, gdbarch.c: Re-generate.
10230 * sh64-tdep.c (sh64_gdbarch_init): Update.
10231 * sh-tdep.c (sh_gdbarch_init): Update.
10232 * s390-tdep.c (s390_gdbarch_init): Update.
10233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10234 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10235 * m68k-tdep.c (m68k_gdbarch_init): Update.
10236 (delta68_frame_args_address): Update.
10237 * m32r-tdep.c (m32r_gdbarch_init): Update.
10238 * hppa-tdep.c (hppa_gdbarch_init): Update.
10239 * h8300-tdep.c (h8300_gdbarch_init): Update.
10240 * frv-tdep.c (frv_gdbarch_init): Update.
10241 (frv_frameless_function_invocation): Update.
10242 * cris-tdep.c (cris_gdbarch_init): Update.
10243 (cris_frameless_function_invocation): Update.
10244 * avr-tdep.c (avr_gdbarch_init): Update.
10245 * arm-tdep.c (arm_gdbarch_init): Update.
10246 * stack.c (frame_info): Update, call predicate.
10247 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10248 * frame.c (legacy_get_prev_frame): Update, call predicate..
10249 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10250 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10251 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10252 invocation.
10253 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10254 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10255 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10256
10257 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10258 function.
10259
7dcaac91
DJ
102602004-02-16 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10263 initializations.
10264
88289b6e
AC
102652004-02-16 Andrew Cagney <cagney@redhat.com>
10266
10267 * tui/tui-windata.c: Include "gdb_string.h".
10268 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10269 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10270 * Makefile.in: Update dependencies.
10271
9f976b41
DJ
102722004-02-16 Daniel Jacobowitz <drow@mvista.com>
10273
10274 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10275 * infrun.c: Include "gdb_assert.h".
10276 (singlestep_ptid, saved_singlestep_ptid)
10277 (stepping_past_singlestep_breakpoint): New variables.
10278 (resume): Set singlestep_ptid. Check for singlestep thread
10279 hop.
10280 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10281 (handle_inferior_event): Handle singlestep thread hop.
10282
c324d747
AC
102832004-02-16 Andrew Cagney <cagney@redhat.com>
10284
f090b9b1
AC
10285 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10286 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10287 (dwarf2_frame_init_reg): Ditto.
10288
fd33e6cb
AC
10289 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10290 suggested by Joshua Neuheisel
10291
c324d747
AC
10292 * configure.in: Always check for curses, including pdcurses.
10293 Warn, instead of error, when no curses are found. Enable TUI when
10294 curses is available.
10295 * configure: Re-generate.
10296
b66ba949
CV
102972004-02-16 Corinna Vinschen <vinschen@redhat.com>
10298
10299 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10300 sh_sh4_register_convert_to_virtual.
10301 (sh_register_convert_to_raw): Rename from
10302 sh_sh4_register_convert_to_raw.
10303 (sh_pseudo_register_read): Accomodate above name change.
10304 (sh_pseudo_register_write): Ditto.
10305
b58cbbf2
CV
103062004-02-16 Corinna Vinschen <vinschen@redhat.com>
10307
10308 * sh-tdep.c (sh_generic_register_name): Remove.
10309 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10310
5929a910
AC
103112004-02-15 Andrew Cagney <cagney@redhat.com>
10312
4566dfcf
AC
10313 * configure.in (build_warnings): Add -Wunused-function.
10314 * configure: Re-generate.
10315
db11ed55
AC
10316 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10317 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10318
46ac7a5d
AC
10319 * procfs.c (procfs_init_inferior): Assume that
10320 START_INFERIOR_TRAPS_EXPECTED is defined.
10321 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10322 * config/ns32k/tm-nbsd.h: Delete file,
10323 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10324
ba801595
AC
10325 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10326 * config/vax/tm-vax.h: Delete file.
10327
5929a910
AC
10328 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10329 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10330 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10331 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10332 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10333 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10334 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10335
8f22cb90
MK
103362004-02-15 Mark Kettenis <kettenis@gnu.org>
10337
10338 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10339 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10340 (struct dwarf2_frame_ops): New.
10341 (dwarf2_frame_default_init_reg): New function, based on
10342 dwarf2_frame_init_reg.
10343 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10344 (dwarf2_frame_init_reg): Call architecture-specific function.
10345 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10346 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10347 instead of dwarf2_frame_data.
10348 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10349 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10350
8132723e
AC
103512004-02-15 Andrew Cagney <cagney@redhat.com>
10352
046a4708
AC
10353 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10354 register_gdbarch_swap.
10355 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10356 * f-lang.c (_initialize_f_language): Update, use
10357 DEPRECATED_REGISTER_GDBARCH_SWAP.
10358 * remote.c (_initialize_remote): Ditto.
10359 * regcache.c (_initialize_regcache): Ditto.
10360 * parse.c (_initialize_parse): Ditto.
10361 * infrun.c (_initialize_infrun): Ditto.
10362 * mi/mi-main.c (_initialize_mi_main): Ditto.
10363 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10364
549c1eea
AC
10365 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10366 poking .cacheable directly.
10367 * symfile.c (symfile_bfd_open): Ditto.
10368
0c0b39de
AC
10369 * Makefile.in: Update all dependencies.
10370
8132723e
AC
10371 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10372 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10373 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10374 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10375 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10376
b9d26eb9
AC
103772004-02-14 Andrew Cagney <cagney@redhat.com>
10378
8e1f669a
AC
10379 * arch-utils.c (legacy_convert_register_p): Check
10380 DEPRECATED_REGISTER_CONVERTIBLE_P.
10381 * findvar.c (value_of_register): Ditto.
10382
cd0bfa36
AC
10383 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10384 * gdbarch.h, gdbarch.c: Re-generate.
10385 * arch-utils.c (deprecated_register_convertible_not): Delete.
10386 * arch-utils.h (deprecated_register_convertible_not): Delete.
10387 * mi/mi-main.c (get_register): Update. Update copyright.
10388 * infcmd.c (default_print_registers_info): Update.
10389
b9d26eb9
AC
10390 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10391 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10392 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10393 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10394 * frame.c (deprecated_get_next_frame_hack): Delete function.
10395 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10396 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10397 Update.
10398 * infcall.c (call_function_by_hand): Update.
10399
9ab9195f
EZ
104002004-02-14 Elena Zannoni <ezannoni@redhat.com>
10401
10402 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10403 from here...
9ab9195f
EZ
10404 * objfiles.c (init_entry_point_info, entry_point_address):..to
10405 here.
10406 * symfile.h (init_entry_point_info, entry_point_address): Remove
10407 prototypes.
10408 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10409 prototypes.
9ab9195f
EZ
10410 * cris-tdep.c: Remove include of symfile.h. Add include of
10411 objfiles.h.
10412 * infcall.c: Ditto.
10413 * mcore-tdep.c: Ditto.
10414 * mn10300-tdep.c: Ditto.
10415 * sh64-tdep.c: Ditto.
10416 * v850-tdep.c: Ditto.
10417 * arm-tdep.c: Remove include of symfile.h.
10418 * blockframe.c: Ditto.
10419 * coffread.c: Ditto.
10420 * dbxread.c: Ditto.
10421 * dwarf2read.c: Ditto.
10422 * dwarfread.c: Ditto.
8a1dac83 10423 * frv-tdep.c: Ditto.
9ab9195f
EZ
10424 * ia64-tdep.c: Ditto.
10425 * mdebugread.c: Ditto.
10426 * mipsread.c: Ditto.
8a1dac83 10427 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10428 * s390-tdep.c: Ditto.
10429 * sh-tdep.c: Ditto.
8a1dac83 10430 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10431 * gdbarch.sh: Remove include of symfile.h.
10432 * gdbarch.c: Regenerate.
10433 * solib-irix.c (enable_break): Use entry_point_address().
10434 Add comment about include file.
10435 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10436 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10437 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10438 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10439 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10440 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10441
c4c5b7ba
AC
104422004-02-13 Andrew Cagney <cagney@redhat.com>
10443
10444 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10445 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10446 copyright.
10447 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10448
3e7879de
FF
104492004-02-12 Fred Fish <fnf@redhat.com>
10450
10451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10452 set_gdbarch_store_return_value.
10453
6a7760b6
AC
104542004-02-12 Andrew Cagney <cagney@redhat.com>
10455
10456 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10457 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10458 (interrupt_query): Ditto.
10459 (ofunc): Delete unused variable.
10460 * cris-tdep.c (cris_abi): Delete unused function.
10461 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10462 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10463 (cris_get_asr_quick_shift_steps): Ditto.
10464 (cris_skip_prologue_frameless_p): Ditto.
10465 * arm-tdep.c (arm_push_return_address): Delete unused function.
10466 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10467 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10468 * s390-tdep.c (s390_function_start): Delete unused function.
10469
31687c3c
AC
104702004-02-12 Andrew Cagney <cagney@redhat.com>
10471
10472 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10473 gdbarch.h, gdbarch.c: Re-generate.
10474 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10475 to generic_prologue_frameless_p.
10476 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10477 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10478
6de918a6
DJ
104792004-02-11 Daniel Jacobowitz <drow@mvista.com>
10480
10481 * mips-linux-tdep.c: Include "frame.h".
10482 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10483 (mips_linux_skip_resolver): New functions.
10484 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10485 and set_gdbarch_in_solib_call_trampoline.
10486 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10487 to after set_gdbarch_in_solib_return_trampoline. Only set the
10488 solib hooks to mips16 functions if the OS ABI is unknown.
10489 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10490 including "config/tm-linux.h".
10491 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10492 * Makefile.in (mips-linux-tdep.o): Update.
10493
87b3ede8
DC
104942004-02-11 David Carlton <carlton@kealia.com>
10495
10496 * linespec.c (decode_compound): Only look for a class symbol when
10497 considering all but the rightmost component.
10498
5979bc46
AC
104992004-02-11 Andrew Cagney <cagney@redhat.com>
10500
10501 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10502 abi code are are separatly grouped.
10503
5867a2fb
AC
105042004-02-11 Andrew Cagney <cagney@redhat.com>
10505
10506 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10507 * gdbarch.h, gdbarch.c: Re-generate.
10508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10509 * v850-tdep.c (v850_gdbarch_init): Update.
10510 * sh64-tdep.c (sh64_gdbarch_init): Update.
10511 * sh-tdep.c (sh_gdbarch_init): Update.
10512 * s390-tdep.c (s390_gdbarch_init): Update.
10513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10514 * mips-tdep.c (mips_gdbarch_init): Update.
10515 * mcore-tdep.c (mcore_gdbarch_init): Update.
10516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10517 * m32r-tdep.c (m32r_gdbarch_init): Update.
10518 * ia64-tdep.c (ia64_gdbarch_init): Update.
10519 * hppa-tdep.c (hppa_gdbarch_init): Update.
10520 * h8300-tdep.c (h8300_gdbarch_init): Update.
10521 * frv-tdep.c (frv_gdbarch_init): Update.
10522 * d10v-tdep.c (d10v_gdbarch_init): Update.
10523 * cris-tdep.c (cris_gdbarch_init): Update.
10524 * avr-tdep.c (avr_gdbarch_init): Update.
10525 * arm-tdep.c (arm_gdbarch_init): Update.
10526 * alpha-tdep.c (alpha_gdbarch_init): Update.
10527
026a72f8
CV
105282004-02-11 Corinna Vinschen <vinschen@redhat.com>
10529
10530 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10531 comma.
10532 (sh_sh4al_dsp_register_name): Ditto.
10533
3903d437
AC
105342004-02-10 Andrew Cagney <cagney@redhat.com>
10535
10536 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10537 (mips_init_frame_pc_first): Delete function.
10538 (mips_frame_saved_pc): Delete function.
10539 (mips_frame_chain): Delete function.
10540 (mips_init_extra_frame_info): Delete function.
10541 (mips_xfer_register): Delete unused variable "reg".
10542 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10543 (mips_n32n64_return_value): Delete unused variable "reg".
10544 (mips_n32n64_return_value): Delete unused variable "pos".
10545 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10546 (mips_o32_return_value): Delete unused variable "pos".
10547 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10548 (mips_print_fp_register): Delete unused variable "namelen"
10549 (mips_print_fp_register): Delete unused variable "flt2"
10550 (get_frame_pointer): Delete function.
10551 (cached_proc_desc): Delete static variable.
10552 (mips_pop_frame): Delete function.
10553 (mips_find_saved_regs): Delete function.
10554 (mips_get_saved_register): Delete function.
10555 (mips_saved_pc_after_call): Delete function.
10556 (SIGFRAME_BASE): Delete macro.
10557 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10558 (SIGFRAME_PC_OFF): Delete macro.
10559 (SIGFRAME_REGSAVE_OFF): Delete macro.
10560 (mips_dump_tdep): Do not print deleted macro definitions.
10561
b9fb98bd
AC
105622004-02-10 Andrew Cagney <cagney@redhat.com>
10563
10564 * Makefile.in (SFILES): Remove explictly listed tui files.
10565 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10566
78ced177 105672004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10568
78ced177
JJ
10569 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10570 to use paddr functions to format ia64 addresses and long values.
10571 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10572 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10573 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10574 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10575 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10576
6a83354a
AC
105772004-02-10 Andrew Cagney <cagney@redhat.com>
10578
10579 * defs.h: Do not include "tui.h".
10580 * gdb_curses.h: New file.
10581 * tui/tui-hooks.h: New file.
10582 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10583 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10584 (tui_initialize_io): Delete declaration.
10585 (tui_initialize_readline: Delete redundant declaration.
10586 (struct tui_point): Delete definition.
10587 * tui/tui-data.h (struct tui_point): Define.
10588 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10589 * utils.c: Include "tui/tui.h".
10590 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10591 * printcmd.c [TUI]: Include "tui/tui.h".
10592 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10593 * tui/tui-command.c: Include "gdb_curses.h".
10594 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10595 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10596 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10597 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10598 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10599 * Makefile.in: Update all dependencies.
10600 (tui_hooks_h, gdb_curses_h): Define.
10601 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10602
997470ef
EZ
106032004-02-10 Elena Zannoni <ezannoni@redhat.com>
10604
10605 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10606 auxf2. Add comments about some other rarely used fields.
10607
4ff2cc4d
AC
106082004-02-10 Andrew Cagney <cagney@redhat.com>
10609
10610 * Makefile.in (init.c): Fix script removing duplicates. Problem
10611 reported by Peter Schauer.
10612
1ab21617
EZ
106132004-02-09 Elena Zannoni <ezannoni@redhat.com>
10614
10615 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10616 obstack_specify_allocation.
10617 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10618 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10619 (allocate_rt_common_objfile): Ditto.
10620 * symfile.c (reread_symbols): Ditto.
10621 * gdb_obstack.h: Add comment.
10622
17763fd9
EZ
106232004-02-09 Elena Zannoni <ezannoni@redhat.com>
10624
10625 * linespec.c (decode_line_1, locate_first_half)
10626 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10627 commented out code.
10628
ec5cdd75
DJ
106292004-02-09 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10632 obstack_free.
10633
43b54b88
AC
106342004-02-09 Andrew Cagney <cagney@redhat.com>
10635
10636 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10637 fails, try find_pc_section. Fix PR c++/1267.
10638 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10639 instead of find_pc_mapped_section.
10640 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10641 not default to the section containing PC. Fix PR symtab/1519.
10642
edfae063
AC
106432004-02-09 Andrew Cagney <cagney@redhat.com>
10644
10645 * Makefile.in (mips-tdep.o): Update dependencies.
10646 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10647 "trad-frame.h".
10648 (mips_unwind_pc): Return the pseudo PC register.
10649 (mips_unwind_dummy_id): New function.
10650 (mips16_fetch_instruction): New function.
10651 (mips32_fetch_instruction): New function.
10652 (struct mips_frame_cache): Define.
10653 (mips_mdebug_frame_cache): New function.
10654 (mips_mdebug_frame_this_id): New function.
10655 (mips_mdebug_frame_prev_register): New function.
10656 (mips_mdebug_frame_unwind): Define.
10657 (mips_mdebug_frame_sniffer): New function.
10658 (mips_mdebug_frame_base_address): New function.
10659 (mips_mdebug_frame_base): Define.
10660 (mips_mdebug_frame_base_sniffer): New function.
10661 (mips_gdbarch_init): Append unwind and base sniffers. Set
10662 unwind_dummy_id.
10663
defc864c
AC
106642004-02-08 Andrew Cagney <cagney@redhat.com>
10665
6764ddad
AC
10666 * frame.c: Print both the register number and name.
10667
defc864c
AC
10668 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10669 and a sed into a single sed. Make .c and .o patterns more robust.
10670 (OBS): Delete.
10671 (INIT_FILES): Replace OBS with COMMON_OBS.
10672 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10673
645d6d10
MK
106742004-02-08 Mark Kettenis <kettenis@gnu.org>
10675
10676 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10677 the PT_WCOOKIE request.
10678
23e3c3fc
AC
106792004-02-08 Andrew Cagney <cagney@redhat.com>
10680
58dfe9ff
AC
10681 * mips-tdep.c (mips_unwind_pc): New function.
10682 (mips_gdbarch_init): Set mips_unwind_pc.
10683
1152e35e
AC
10684 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10685 (get_frame_id): Allow the UNKNOWN_FRAME.
10686 (frame_register_unwind, get_frame_type): Ditto.
10687
31b75dbf
AC
10688 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10689 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10690 unwind_dummy_id indicates a legacy frame.
10691
3483b318
AC
10692 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10693 * configure: Re-generate.
10694
23e3c3fc
AC
10695 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10696 methods.
10697
33f8ca73
AC
106982004-02-08 Andrew Cagney <cagney@redhat.com>
10699
10700 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10701 makefile macro.
10702 * configure: Re-generate.
10703 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10704 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10705 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10706 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10707 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10708 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10709 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10710 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10711 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10712 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10713
6ba8e26f 107142004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10715
20d286a5
AC
10716 * Makefile.in: Update all dependencies.
10717
d836ee13
AC
10718 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10719 * configure: Re-generate.
10720 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10721 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10722 (COMMON_OBS): Add "main.o" and "annotate.o".
10723 (ANNOTATE_OBS): Delete.
10724 (OBS): Remove ANNOTATE_OBS.
10725 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10726 CONFIG_INITS.
10727 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10728 against CONFIG_OBS and "main.o".
10729 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10730 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10731
d02c80cd
AC
10732 * tui/tui-command.c: Include "gdb_string.h", delete register
10733 attribute, use ISO-C function signatures.
10734 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10735 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10736 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10737 * tui/tui.c: Ditto.
6ba8e26f
AC
10738
10739 * tui/tui-command.c: Change variable and function names to lower
10740 case.
10741 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10742 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10743 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10744 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10745 * tui/tui-winsource.c, tui/tui.c: Ditto.
10746
4a146b47
EZ
107472004-02-07 Elena Zannoni <ezannoni@redhat.com>
10748
10749 * buildsym.c (free_pending_blocks, finish_block)
10750 (record_pending_block, make_blockvector, end_symtab): Replace
10751 symbol_obstack with objfile_obstack.
8a1dac83 10752 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10753 (coff_read_enum_type): Ditto.
8a1dac83 10754 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10755 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10756 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10757 (dwarf2_symbol_mark_computed): Ditto.
10758 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10759 * elfread.c (elf_symtab_read): Ditto.
10760 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10761 (hpread_read_enum_type, hpread_read_function_type)
10762 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10763 Ditto.
8a1dac83 10764 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10765 (java_link_class_type): Ditto.
8a1dac83 10766 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10767 (new_symbol): Ditto.
10768 * minsyms.c (install_minimal_symbols): Ditto.
10769 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10770 (terminate_minimal_symbol_table): Replace symbol_obstack with
10771 objfile_obstack.
10772 (free_objfile): Remove freeing of symbol_obstack.
10773 * objfiles.h: Remove symbol_obstack field.
10774 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10775 objfile_obstack.
10776 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10777 symbol_obstack.
10778 (solib_add_common_symbols): Replace symbol_obstack with
10779 objfile_obstack.
10780 * somsolib.c (som_solib_add): Ditto.
10781 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10782 (common_block_start, common_block_end): Ditto.
10783 * symfile.c (reread_symbols): Remove freeing and init of
10784 symbol_obstack.
10785 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10786 * symfile.h: Update comment.
10787 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10788 stats printing.
10789 * symtab.c (symbol_set_names): Replace symbol_obstack with
10790 objfile_obstack.
10791 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10792 Update comments.
10793 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10794 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10795 objfile_obstack.
10796
6d012f14
AC
107972004-02-07 Andrew Cagney <cagney@redhat.com>
10798
10799 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10800 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10801 fields and variables.
10802 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10803 (m_beInvisible): Delete macro.
10804 * tui/tui-data.h: Fix case case fields and variables.
10805 (m_genWinPtrIsNull): Delete macro.
10806 (tui_win_list): Rename winList.
10807 (TUI_SRC_WIN): Rename srcWin.
10808 (TUI_DISASM_WIN): Rename disassemWin.
10809 (TUI_DATA_WIN): Rename dataWin.
10810 (TUI_CMD_WIN): Rename cmdWin.
10811 (m_genWinPtrNotNull): Delete macro.
10812 (m_winPtrIsNull): Delete macro.
10813 (m_winPtrNotNull): Delete macro.
10814 (tui_win_is_source_type): Replace m_winIsSourceType
10815 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10816 (tui_win_has_locator): Replace m_hasLocator.
10817 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10818 m_setWinHighlightOff.
10819 * tui/tui-data.c: Update references.
10820 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10821 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10822 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10823 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10824 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10825 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10826 * tui/tui-winsource.c, tui/tui.c: Ditto.
10827
7d34766b
MK
108282004-02-07 Mark Kettenis <kettenis@gnu.org>
10829
1c800673
MK
10830 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10831 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10832 StackGhost.
10833
7d34766b
MK
10834 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10835 variable `i6' to `i7'.
10836 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10837
22940a24
AC
108382004-02-07 Andrew Cagney <cagney@redhat.com>
10839
10840 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10841 (TuiPoint, TuiPointPtr): Ditto.
10842 (TuiStatus, TuiStatusPtr): Ditto.
10843 (TuiWinType, TuiWinTypePtr): Ditto.
10844 (struct tui_point): Rename _TuiPoint.
10845 (tui_get_low_disassembly_address): Rename
10846 tuiGetLowDisassemblyAddress.
10847 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10848 (tuiFree): Delete declaration.
10849 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10850 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10851 * tui/tui.c (tuiFree): Delete function.
10852 * cli/cli-cmds.c (disassemble_command): Update references.
10853 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10854 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10855 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10856 * tui/tui-winsource.c: Ditto.
10857
8b92e4d5
EZ
108582004-02-07 Elena Zannoni <ezannoni@redhat.com>
10859
10860 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10861 coffstab_build_psymtabs, elfstab_build_psymtabs)
10862 (stabsect_build_psymtabs): Replace psymbol_obstack with
10863 objfile_obstack.
10864 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10865 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10866 Ditto.
10867 * dwarfread.c (scan_compilation_units): Ditto.
10868 * elfread.c (elfstab_offset_sections): Ditto.
10869 * hppa-tdep.c (read_unwind_info): Ditto.
10870 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10871 (hpread_end_psymtab): Ditto.
10872 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10873 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10874 Ditto.
10875 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10876 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10877 (build_objfile_section_table): Ditto.
10878 (allocate_objfile): Remove init of psymbol_obstack.
10879 (free_objfile): Remove freeing of psymbol_obstack.
10880 * objfiles.h (struct objfile): Remove field
10881 psymbol_obstack. Update comments.
10882 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10883 psymbol_obstack with objfile_obstack.
10884 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10885 psymbol_obstack.
10886 * somread.c (som_symfile_offsets, init_import_symbols)
10887 (init_export_symbols): Replace psymbol_obstack with
10888 objfile_obstack.
10889 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10890 * symfile.c (default_symfile_offsets, syms_from_objfile)
10891 (reread_symbols): Remove freeing and init of psymbol_obstack.
10892 (cashier_psymtab): Update comment.
10893 * symmisc.c (print_objfile_statistics): Don't report stats for
10894 psymbol obstack.
10895 * symtab.h (struct general_symbol_info, struct partial_symtab):
10896 Update comments.
10897 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10898 (xcoff_symfile_offsets): Replace psymbol_obstack with
10899 objfile_obstack.
10900
b99607ea
EZ
109012004-02-07 Elena Zannoni <ezannoni@redhat.com>
10902
10903 * objfiles.h (struct objfile): Add objfile_obstack field.
10904 Remove type_obstack field.
10905
10906 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10907 read_structure_scope read_enumeration, new_symbol): Replace
10908 type_obstack with objfile_obstack.
10909 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10910 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10911 (lookup_fundamental_type): Ditto.
10912 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10913 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10914 (hpread_read_doc_function_type, hpread_read_struct_type)
10915 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10916 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10917 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10918 (java_link_class_type): Ditto.
10919 * mdebugread.c (parse_type): Ditto.
10920 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10921 * solib-sunos.c (solib_add_common_symbols): Ditto.
10922 * stabsread.c (define_symbol, read_type, read_member_functions,
10923 read_cpp_abbrev, read_one_struct_field): Ditto.
10924 * symfile.c (reread_symbols): Ditto.
10925 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10926
2a8854a7
AC
109272004-02-07 Andrew Cagney <cagney@redhat.com>
10928
10929 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10930 (tui_exec_info_content): Rename TuiExecInfoContent.
10931 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10932 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10933 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10934 (TuiList, TuiListPtr): Ditto.
10935 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10936 (TuiDataType, TuiDataTypePtr): Ditto.
10937 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10938 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10939 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10940 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10941 (TuiDataElement, TuiDataElementPtr): Ditto.
10942 (TuiWinElement, TuiWinElementPtr): Ditto.
10943 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10944 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10945 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10946 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10947 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10948 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10949 * tui/tui-command.c, tui/tui-data.c: Update references.
10950 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10951 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10952 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10953 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10954
05cbe71a
MK
109552004-02-07 Mark Kettenis <kettenis@gnu.org>
10956
10957 * dwarf2-frame.h: Update copyright.
10958 (enum dwarf2_frame_reg_rule): New.
10959 (struct dwarf2_frame_state_reg): New.
10960 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10961 * dwarf2-frame.c: Update copyright.
10962 (enum dwarf2_reg_rule): Remove.
10963 (struct dwarf2_frame_state): Remove defenition of `struct
10964 dwarf2_frame_state_reg'.
10965 (read_reg): Call get_frame_arch to get the architecture instead of
10966 using CURRENT_GDBARCH.
10967 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10968 DWARF2_FRAME_.
10969 (dwarf2_frame_init_reg): New function.
10970 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10971 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10972 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10973 tags with DWARF2_FRAME_.
10974 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10975 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10976 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10977
ec7d9e56
AC
109782004-02-06 Andrew Cagney <cagney@redhat.com>
10979
dd1abb8c
AC
10980 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10981 (enum tui_data_type): Rename _TuiDataType.
10982 (struct tui_layout_def): Rename _TuiLayoutDef.
10983 (struct tui_source_element): Rename _TuiSourceElement.
10984 (struct tui_data_element): Rename _TuiDataElement.
10985 (struct tui_command_element): Rename _TuiCommandElement.
10986 (struct tui_locator_element): Rename _TuiLocatorElement.
10987 (union tui_which_element): Define.
10988 (struct tui_win_element): Rename _TuiWinElement.
10989 (struct tui_data_info): Rename _TuiDataInfo.
10990 (struct tui_source_info): Rename _TuiSourceInfo.
10991 (struct tui_command_info): Rename _TuiCommandInfo.
10992 (tui_initialize_static_data): Rename initializeStaticData.
10993 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10994 (tui_alloc_win_info): Rename allocWinInfo.
10995 (tui_init_generic_part): Rename initGenericPart.
10996 (tui_init_win_info): Rename initWinInfo.
10997 (tui_alloc_content): Rename allocContent.
10998 (tui_add_content_elements): Rename addContentElements.
10999 (tui_init_content_element): Rename initContentElement.
11000 (tui_free_window): Rename freeWindow.
11001 (tui_free_win_content): Rename freeWinContent.
11002 (tui_free_data_content): Rename freeDataContent.
11003 (tui_free_all_source_wins_content): Rename
11004 freeAllSourceWinsContent.
11005 (tui_del_window): Rename tuiDelWindow.
11006 (tui_del_data_windows): Rename tuiDelDataWindows.
11007 (tui_partial_win_by_name): Rename partialWinByName.
11008 (tui_win_name): Rename winName.
11009 (tui_current_layout): Rename currentLayout.
11010 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11011 (tui_term_height): Rename termHeight.
11012 (tui_set_term_height_to): Rename setTermHeightTo.
11013 (tui_term_width): Rename termWidth.
11014 (tui_set_term_width_to): Rename setTermWidthTo.
11015 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11016 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11017 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11018 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11019 (tui_source_windows): Rename sourceWindows.
11020 (tui_clear_source_windows): Rename clearSourceWindows.
11021 (tui_clear_source_windows_detail): Rename
11022 clearSourceWindowsDetail.
11023 (tui_clear_win_detail): Rename clearWinDetail.
11024 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11025 (tui_default_tab_len): Rename tuiDefaultTabLen.
11026 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11027 (tui_win_with_focus): Rename tuiWinWithFocus.
11028 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11029 (tui_layout_def): Rename tuiLayoutDef.
11030 (tui_win_resized): Rename tuiWinResized.
11031 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11032 (tui_next_win): Rename tuiNextWin.
11033 (tui_prev_win): Rename tuiPrevWin.
11034 (tui_add_to_source_windows): Rename addToSourceWindows.
11035 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11036 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11037 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11038 * tui/tui.c, tui/tui-data.c: Ditto.
11039 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11040 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11041
a358af15
AC
11042 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11043 (struct symtab): Declare.
11044 (tui_set_source_content): Rename tuiSetSourceContent.
11045 (tui_show_symtab_source): Rename tuiShowSource.
11046 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11047 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11048 * tui/tui-source.c: Update copyright. Update references.
11049 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11050 * tui/tui-stack.c: Update references.
11051
a21fcd8f
AC
11052 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11053 (struct tui_win_info): Declare.
11054 (tui_scroll_forward): Rename tuiScrollForward.
11055 (tui_scroll_backward): Rename tuiScrollBackward.
11056 (tui_scroll_left): Rename tuiScrollLeft.
11057 (tui_scroll_right): Rename tuiScrollRight.
11058 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11059 (tui_resize_all): Rename tuiResizeAll.
11060 (tui_refresh_all_win): Rename tuiRefreshAll.
11061 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11062 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11063 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11064 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11065
edae1ccf
AC
11066 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11067 (tui_erase_data_content): Rename tuiEraseDataContent.
11068 (tui_display_all_data): Rename tuiDisplayAllData.
11069 (tui_check_data_values): Rename tuiCheckDataValues.
11070 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11071 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11072 (tui_first_data_element_no_in_line): Rename
11073 tuiFirstDataElementNoInLine.
11074 (tui_delete_data_content_windows): Rename
11075 tuiDeleteDataContentWindows.
11076 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11077 (tui_display_data_from): Rename tuiDisplayDataFrom.
11078 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11079 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11080 * tui/tui-win.c, tui/tui-regs.c: Update references.
11081 * tui/tui-layout.c, tui/tui.c: Update references.
11082
ec7d9e56
AC
11083 * tui/tui-wingeneral.h: Update copyright.
11084 (m_allBeVisible): Delete macro.
8a1dac83 11085 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11086 (struct tui_gen_win_info): Declare.
11087 (struct tui_win_info): Declare.
11088 (tui_unhighlight_win): Rename unhighlightWin.
11089 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11090 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11091 (tui_make_window): Rename makeWindow.
11092 (tui_copy_win): Rename copyWin.
11093 (tui_box_win): Rename boxWin.
11094 (tui_highlight_win): Rename highlightWin.
11095 (tui_check_and_display_highlight_if_needed): Rename
11096 checkAndDisplayHighlightIfNeeded.
11097 (tui_refresh_all): Rename refreshAll.
11098 (tui_delete_win): Rename tuiDelwin.
11099 (tui_refresh_win): Rename tuiRefreshWin.
11100 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11101 (tui_make_visible, tui_make_invisible): New functions.
11102 (tui_make_all_visible, tui_make_all_invisible): New functions.
11103 (make_all_visible): Rename makeAllVisible.
11104 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11105 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11106 * tui/tui-windata.c, tui/tui-win.c: Update references.
11107 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11108 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11109
1e52e2eb
MK
111102004-02-06 Mark Kettenis <kettenis@gnu.org>
11111
11112 * proc-api.c (write_with_trace): Initialize local variable to
11113 silence compiler warning.
11114
f80bda8e
AC
111152004-02-06 Andrew Cagney <cagney@redhat.com>
11116
11117 * tui/tui-source.h: Do not include "defs.h".
11118 (struct tui_win_info): Declare.
11119 (tui_set_source_content_nil): Declare.
11120 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11121 (union tui_line_or_address): Rename _TuiLineOrAddress.
11122 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11123 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11124 (tui_update_source_window_as_is): Rename
11125 tuiUpdateSourceWindowAsIs.
11126 (tui_update_source_windows_with_addr): Rename
11127 tuiUpdateSourceWindowsWithAddr.
11128 (tui_update_source_windows_with_line): Rename
11129 tuiUpdateSourceWindowsWithLine.
11130 (tui_clear_source_content): Rename tuiClearSourceContent.
11131 (tui_erase_source_content): Rename tuiEraseSourceContent.
11132 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11133 (tui_show_source_content): Rename tuiShowSourceContent.
11134 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11135 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11136 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11137 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11138 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11139 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11140 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11141 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11142 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11143 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11144 (struct tui_win_info): Declare.
11145 * tui/tui-stack.c: Update references.
11146 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11147 * tui/tui-win.c, tui/tui-source.c: Ditto.
11148 * tui/tui.c, tui/tui-disasm.c: Ditto.
11149
9fbfb822
MK
111502004-02-06 Mark Kettenis <kettenis@gnu.org>
11151
11152 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11153 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11154
03cebad2
MK
111552004-02-05 Mark Kettenis <kettenis@gnu.org>
11156
11157 * infrun.c (handle_inferior_event): Allow for breakpoint
11158 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11159 and SIGEMT. Update comments.
11160 * NEWS (Revised SPARC target): Mention support for non-executable
11161 stack.
11162
290281b1
MK
111632004-02-04 Mark Kettenis <kettenis@gnu.org>
11164
11165 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11166 * inftarg.c: Update copyright year.
11167 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11168 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11169 (sparc_xfer_wcookie): New function.
11170 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11171 * Makefile.in (sparc-nat.o): Update dependencies.
11172 * config/sparc/nm-nbsd.h: Include "target.h".
11173 (NATIVE_XFER_WCOOKIE): New define.
11174 (sparc_xfer_wcookie): New prototype.
11175
212161df
AC
111762004-02-04 Andrew Cagney <cagney@redhat.com>
11177
11178 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11179 SYSCALL_TRAP function.
11180 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11181
6e4c6c91
DJ
111822004-02-04 Andrew Cagney <cagney@redhat.com>
11183 Daniel Jacobowitz <drow@mvista.com>
11184
11185 * objfiles.h: Delete comments refering to inside_entry_func and
11186 DEPRECATED_FRAME_CHAIN_VALID.
11187 * defs.h (inside_entry_func): Update prototype..
11188 * blockframe.c (inside_entry_func): Rename to
11189 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11190 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11191
cae688ec
JJ
111922004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11193
11194 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11195 outside of #ifdef SOLIB_ADD region.
11196 (do_restore_lang_radix_cleanup): Ditto.
11197 (resolve_pending_breakpoint): Ditto.
11198
19217676
AC
111992004-02-03 Andrew Cagney <cagney@redhat.com>
11200
11201 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11202 (process_note_abi_tag_sections): Delete unused function.
11203 (ia64_read_fp): Delete unused function.
11204 (gdbarch_extract_struct_value_address): Delete declaration.
11205
876753be
AC
112062004-02-02 Andrew Cagney <cagney@redhat.com>
11207
11208 * vax-tdep.c (vax_frame_chain): Delete call to
11209 deprecated_inside_entry_file.
11210 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11211
d4f10bf2
MK
112122004-02-02 Mark Kettenis <kettenis@gnu.org>
11213
11214 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11215 column that's "empty" or "same value" when eliminating REG_RA
11216 rules.
11217
cae688ec
JJ
112182004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11219
11220 * NEWS: Add information about new pending breakpoint support.
11221
0101ce28
JJ
112222004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11223
11224 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11225 and pending fields for pending breakpoint support.
11226 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11227 (condition_command): Only parse condition if not a pending
11228 breakpoint.
11229 (print_one_breakpoint): Add support for pending breakpoints.
11230 (describe_other_breakpoints): Add checks to verify we are not
11231 dealing with pending breakpoints.
11232 (check_duplicates): Don't check pending breakpoints.
11233 (set_raw_breakpoint): Initialize pending flag.
11234 (do_restore_lang_radix_cleanup): New cleanup routine.
11235 (resolve_pending_breakpoint): New function.
11236 (re_enable_breakpoints_in_shlibs): Try and resolve any
11237 pending breakpoints via resolve_pending_breakpoint.
11238 (mention): Add pending breakpoint support.
11239 (parse_breakpoint_sals): Add new parameter to pass to
11240 decode_line_1 to indicate silent errors when files or functions
11241 are not found. Change all callers.
11242 (do_captured_parse_breakpoint): New function.
11243 (break_command_1): Change prototype to return an rc value and to
11244 take an optional pending breakpoint pointer. Support creating
11245 a pending breakpoint if a "not found" form of error occurs when
11246 parsing the breakpoint. Also support resolving an existing pending
11247 breakpoint and be silent if the resolution fails.
11248 (create_breakpoints): Change prototype to take pending breakpoint
11249 pointer. When resolving a pending breakpoint, use the new pointer
11250 to provide a conditional or commands added by the end-user.
11251 (delete_breakpoint): Add appropriate check for pending.
11252 (breakpoint_re_set_one): Ditto.
11253 (do_enable_breakpoint): Ditto.
11254
8d577d32
DC
112552004-02-02 David Carlton <carlton@kealia.com>
11256
11257 * valops.c (enum oload_classification): New.
11258 (find_overload_match): Break implementation into separate
11259 functions; delete #if 0'd code; look for symbols within
11260 namespaces.
11261 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11262 (find_oload_champ,oload_method_static,classify_oload_match): New.
11263 * cp-support.h: Add declaration for cp_func_name; update
11264 declaration for make_symbol_overload_list.
11265 * cp-support.c (cp_func_name): New.
11266 (overload_list_add_symbol): Fix comment, use
11267 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11268 (make_symbol_overload_list): Take a function name and a namespace
11269 instead of a symbol; change implementation.
11270 (make_symbol_overload_list_using): New.
11271 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11272
22e8e3c7
FF
112732004-02-02 Fred Fish <fnf@redhat.com>
11274
11275 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11276 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11277 * remote-sim.c (gdb_os_write_stderr): Write output to
11278 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11279 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11280 gdb_stderr stream and update copyright years.
22e8e3c7 11281
6b753f60
DJ
112822004-02-01 Daniel Jacobowitz <drow@mvista.com>
11283
11284 * Makefile.in (mips-linux-nat.o): Update dependencies.
11285 * mips-linux-nat.c: Include mips-tdep.h.
11286
112872004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11288
11289 * sol-thread.c (sol_thread_xfer_partial): New function.
11290 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11291 (init_sol_core_ops): Likewise.
11292
11293 * procfs.c (procfs_xfer_partial): New function.
11294 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11295 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11296
11297 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11298 procfs_xfer_auxv function.
11299
11300 * procfs.c (procfs_make_note_section): If we can read
11301 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11302 * linux-proc.c (linux_make_note_section): Likewise.
11303
11304 * auxv.h: New file.
11305 * auxv.c: New file.
11306 * Makefile.in (auxv_h): New variable.
11307 (COMMON_OBS): Add auxv.o here.
11308 (auxv.o): New target.
11309
11310 * corelow.c (core_xfer_partial): New function.
11311 (init_core_ops): Use it for core_ops.to_xfer_partial.
11312
11313 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11314 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11315 macro if that is defined.
11316
fa5281d0
DJ
113172004-02-01 Daniel Jacobowitz <drow@mvista.com>
11318
11319 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11320 and check the specified thread for each breakpoint.
11321 * breakpoint.h (bpstat_stop_status): Update prototype.
11322 * infrun.c (handle_inferior_event): Update calls to
11323 bpstat_stop_status.
11324
26ee262d
DJ
113252004-02-01 Daniel Jacobowitz <drow@mvista.com>
11326
11327 * Makefile.in (cli-cmds.o): Add $(readline_h).
11328
d9b52655
DJ
113292004-02-01 Daniel Jacobowitz <drow@mvista.com>
11330
11331 * cli/cli-cmds.c: Include readline.h.
11332 (complete_command): Pass the start of the last word to
11333 complete_line.
11334
9709f61c
DJ
113352004-01-31 Daniel Jacobowitz <drow@mvista.com>
11336
11337 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11338 argument, and change first argument to a CORE_ADDR.
11339 * breakpoint.h (bpstat_stop_status): Update prototype.
11340 * infrun.c (adjust_pc_after_break): Add a new comment.
11341 (handle_inferior_event): Update calls to bpstat_stop_status.
11342
4f1280bb
DJ
113432004-01-31 Daniel Jacobowitz <drow@mvista.com>
11344
11345 * breakpoint.h: Update copyright years.
11346
4fa8626c
DJ
113472004-01-31 Daniel Jacobowitz <drow@mvista.com>
11348
11349 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11350 (bpstat_stop_status): Don't decrement PC.
11351 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11352 prototype.
11353 * infrun.c (adjust_pc_after_break): New function.
11354 (handle_inferior_event): Call it, early. Remove later references
11355 to DECR_PC_AFTER_BREAK.
11356 (normal_stop): Add commentary.
11357
fad0733a
DJ
113582004-01-31 Daniel Jacobowitz <drow@mvista.com>
11359
11360 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11361 2004-01-27 double-free fix.
11362
42cdca6c
MK
113632004-01-31 Mark Kettenis <kettenis@gnu.org>
11364
11365 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11366 (sparc32_frame_prev_register): Handle StackGhost.
11367 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11368
932d5416
RM
113692004-01-29 Roland McGrath <roland@redhat.com>
11370
11371 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11372 * configure: Regenerated.
11373
11374 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11375 * Makefile.in (procfs.o): Add dep.
11376
47d3492a
AC
113772004-01-28 Andrew Cagney <cagney@redhat.com>
11378
11379 * tui/tui-stack.h: Update copyright.
11380 (struct frame_info): Add opaque declaration.
11381 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11382 (tui_show_locator_content): Rename tuiShowLocatorContent.
11383 (tui_show_frame_info): Rename tuiShowFrameInfo.
11384 * tui/tui-stack.c: Update copyright. Update references.
11385 * tui/tui-winsource.c: Update references.
11386 * tui/tui-win.c: Update references.
11387 * tui/tui-layout.c: Update references.
11388 * tui/tui-hooks.c: Update copyright, update references.
11389 * tui/tui.c: Update copyright, update references.
11390 * tui/tui-disasm.c: Update references.
11391
5d51ca54
DC
113922004-01-28 David Carlton <carlton@kealia.com>
11393
11394 * dwarf2read.c (add_partial_structure): Use demangled name if
11395 namespace equals "".
11396
086ed43d
JB
113972004-01-27 Jim Blandy <jimb@redhat.com>
11398
11399 Clean up misapplied patch:
11400 * dwarf2read.c (determine_prefix): Change one of the two forward
11401 declarations for 'determine_prefix_aux' to a declaration for this.
11402 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11403 argument to 'die_specification'.
11404
2a35147e
JB
11405 * dwarf2read.c (read_func_scope): Re-indent comment.
11406
a355c7de 114072004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11408
a355c7de
AC
11409 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11410 b->exp to NULL after freeing so that error during re-parsing or
11411 evaluation of expressions associated with breakpoint don't
11412 eventually lead to re-freeing of storage.
11413 Committed by Andrew Cagney.
11414
63ff5125
AC
114152004-01-27 Andrew Cagney <cagney@redhat.com>
11416
11417 * source.c (ambiguous_line_spec): Delete undefined declaration.
11418 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11419 (m32r_set_server_address, m32r_set_download_path): Ditto.
11420 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11421
e142c38c
DJ
114222004-01-27 Daniel Jacobowitz <drow@mvista.com>
11423
11424 * dwarf2read.c: Update calls to changed and renamed functions, and
11425 references to moved variables.
11426
11427 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11428 language, language_defn, list_in_scope, and ftypes members.
11429 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11430 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11431 (baseaddr): Remove globals.
11432
11433 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11434 (set_cu_language, die_is_declaration, die_specification)
11435 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11436 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11437 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11438 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11439
11440 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11441 cu.list_in_scope. Don't initialize cu_header_offset.
11442 (add_partial_symbol): Add local baseaddr.
11443 (psymtab_to_symtab_1): Add local baseaddr. Use
11444 objfile->section_offsets for consistency. Don't initialize
11445 cu_header_offset; do initialize cu.header.offset and
11446 cu.list_in_scope.
11447 (read_file_scope, read_func_scope, read_lexical_block_scope)
11448 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11449
c6e06ede
MC
114502004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11451
fb328ecc 11452 * PROBLEMS: Add gdb/1516.
c6e06ede 11453
48184fd4
AC
114542003-12-29 Robert Millan <robertmh@gnu.org>
11455
11456 Patch committed by Andrw Cagney.
11457 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11458 * configure.tgt: Match knetbsd*-gnu.
11459
c1321b30
AC
114602004-01-26 Andrew Cagney <cagney@redhat.com>
11461
f3699be3
AC
11462 * breakpoint.c (catch_command_1): Delete #ifdef code.
11463 (catch_fork_command_1): Delete #ifdef wrapper.
11464 (catch_exec_command_1): Ditto.
11465 (catch_load_command_1): Ditto.
11466 (catch_unload_command_1): Ditto.
11467
c1321b30
AC
11468 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11469 (catch_breakpoint): Delete #if0ed function.
11470 (disable_catch_breakpoint): Ditto.
11471 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11472 (disable_catch, enable_catch, delete_catch): Ditto.
11473
b4501125
AC
114742004-01-26 Andrew Cagney <cagney@redhat.com>
11475
11476 * remote.c (echo_check, quit_flag): Delete variables.
11477 (cisco_kernel_mode): Delete variable.
11478 (minitelnet_return, tty_input, escape_count): Delete variables.
11479 (remote_cisco_mode): Delete variable.
11480 (remote_cisco_open, remote_cisco_close): Delete function.
11481 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11482 (init_remote_cisco_ops): Delete function.
11483 (_initialize_remote): Do not install "remote cisco" code.
11484 (read_frame): Delete cisco specific code.
11485 (remote_info_process): Delete function.
11486 (remote_wait): Delete cisco specific code.
11487 (remote_cisco_section_offsets): Delete function.
11488 (remote_cisco_objfile_relocate): Delete function.
11489 (remote_async_wait): Delete cisco specific code.
11490 (minitelnet, readtty, readsocket): Delete function.
11491
74055713
AC
114922004-01-26 Andrew Cagney <cagney@redhat.com>
11493
11494 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11495 comments mentioning extract_returned_value_address.
11496 * infcmd.c (print_return_value): Update. Add comments on
11497 extract_returned_value_address.
11498 * stack.c (return_command): Add comments on
11499 extract_returned_value_address.
11500 * values.c: Update comment.
11501 * m32r-tdep.c: Update comment.
11502 * sparc-tdep.c: Update comment.
11503 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11505 * sh64-tdep.c (sh64_gdbarch_init): Update.
11506 * sh-tdep.c (sh_gdbarch_init): Update.
11507 * s390-tdep.c (s390_gdbarch_init): Update.
11508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11509 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11510 * m68k-tdep.c (m68k_gdbarch_init): Update.
11511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11512 * m32r-tdep.c (m32r_gdbarch_init): Update.
11513 * ia64-tdep.c (ia64_gdbarch_init): Update.
11514 * h8300-tdep.c (h8300_gdbarch_init): Update.
11515 * frv-tdep.c (frv_gdbarch_init): Update.
11516 * arm-tdep.c (arm_gdbarch_init): Update.
11517 * alpha-tdep.c (alpha_gdbarch_init): Update.
11518
a67af2b9
AC
115192004-01-26 Andrew Cagney <cagney@redhat.com>
11520
11521 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11522 SYMBOL_LOCATION_FUNCS
11523 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11524 "struct symbol_ops".
11525 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11526 type to "struct symbol_ops".
11527 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11528 (struct symbol): Replace ".aux_value.loc.funcs" and
11529 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11530 (SYMBOL_OBJFILE): Delete macro.
11531 (SYMBOL_LOCATION_FUNCS): Delete macro.
11532 (SYMBOL_LOCATION_BATON): Update.
11533 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11534 intead of SYMBOL_LOCATION_FUNCS.
11535 * ax-gdb.c (gen_var_ref): Ditto.
11536 * printcmd.c (address_info): Ditto.
11537 * findvar.c (read_var_value): Ditto.
11538 (symbol_read_needs_frame): Ditto.
11539
c034e007
AC
115402004-01-26 Andrew Cagney <cagney@redhat.com>
11541
11542 * dwarf2read.c (read_func_scope): Document frame-base hack.
11543
bb472c1e
MK
115442004-01-25 Mark Kettenis <kettenis@gnu.org>
11545
11546 * infcmd.c (print_return_value): Plug memory leak; delete
11547 ui_stream object. Rename argument `structure_return' to
11548 `struct_return'.
11549
c8e737d5
MK
115502004-01-25 Mark Kettenis <kettenis@gnu.org>
11551
f941662f
MK
11552 * infcmd.c (print_return_value): Wrap long lines.
11553 (finish_command_continuation, finish_command): Remove unused
11554 variable `funcaddr'. Fix some coding-standards problems.
11555
c558d81a 11556 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11557 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11558 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11559 TDEP->fpregset to zero.
11560
bf1e5861 11561 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11562 floating-point registers for traditional NetBSD core files.
11563 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11564 TDEP->sizeof_fpregset here.
11565
4c72d57a
MK
115662004-01-25 Mark Kettenis <kettenis@gnu.org>
11567
566626fa
MK
11568 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11569 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11570 function with code split out from
11571 sparc32nbsd_sigcontext_frame_cache.
11572 (sparc32nbsd_sigcontext_frame_cache): Use
11573 sparc32nbsd_sigcontext_saved_regs.
11574 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11575 OpenBSD.
11576 * sparcobsd-tdep.c: New file.
11577 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11578 (sparcobsd-tdep.o): New dependency.
11579 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11580 * config/sparc/obsd.mt: New file.
11581
4c72d57a
MK
11582 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11583 TDEP->fpregset to be initialized to enable core file register
11584 sets.
11585
7e5e9f88
MK
115862004-01-24 Mark Kettenis <kettenis@gnu.org>
11587
f0f207fd 11588 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11589 Add opaque declarations.
11590 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11591 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11592 function with code split out from
11593 sparc64nbsd_sigcontext_frame_cache.
11594 (sparc64nbsd_sigcontext_frame_cache): Use
11595 sparc64nbsd_sigcontext_saved_regs.
11596 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11597 OpenBSD.
11598 * sparc64obsd-tdep.c: New file.
11599 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11600 (sparc64obsd-tdep.o): New dependency.
11601 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11602 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11603 * config/sparc/obsd64.mt: New file.
11604
690668cc
MK
11605 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11606 read the instruction at PC.
11607
7e5e9f88
MK
11608 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11609 value of GDB_OSABI_DEFAULT.
11610 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11611 instead of GDB_OSABI_NETBSD_AOUT.
11612
68b6dce9
NR
116132004-01-24 Nick Roberts <nick@nick.uklinux.net>
11614
11615 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11616 copyright.
11617
080ce8c0
AC
116182004-01-23 Andrew Cagney <cagney@redhat.com>
11619
11620 * printcmd.c (display_command): Replace tui_set_display call with
11621 tui_set_layout_for_display_command.
11622 * tui/tui.h (enum tui_win_type): Define.
11623 (tui_set_layout): Delete declaration.
11624 (tui_set_layout_for_display_command): Rename set_tui_layout.
11625 * tui/tui-data.h (enum tui_layout_type): Define.
11626 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11627 "tui.h".
11628 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11629 (tui_default_win_height): Rename tuiDefaultWinHeight.
11630 (tui_default_win_viewport_height): Rename
11631 tuiDefaultWinViewportHeight.
11632 (tui_set_layout): RenametuiSetLayout.
11633 * tui/tui-layout.c: Update references.
11634 * tui/tui.c: Update references.
11635 * tui/tui-disasm.c: Update references.
11636
b368761e
DC
116372004-01-23 David Carlton <carlton@kealia.com>
11638
11639 Partial workaround for PR c++/1511:
11640 * cp-namespace.c: Include frame.h.
11641 (cp_lookup_transparent_type): New
11642 (cp_lookup_transparent_type_loop): New.
11643 * cp-support.h: Declare cp_lookup_transparent_type.
11644 * symtab.c (basic_lookup_transparent_type): Renamed from
11645 lookup_transparent_type.
11646 (lookup_transparent_type): Replace old body by a call to
11647 current_language->la_lookup_transparent_type.
11648 * symtab.h: Update copyright. Declare
11649 basic_lookup_transparent_type.
11650 * language.h: Update copyright.
11651 (struct language_defn): Add la_lookup_transparent_type.
11652 * language.c: Update copyright.
11653 (unknown_language_defn): Add basic_lookup_transparent_type.
11654 (auto_language_defn): Add basic_lookup_transparent_type.
11655 (local_language_defn): Add basic_lookup_transparent_type.
11656 * ada-lang.c: Update copyright.
11657 (ada_language_defn): Add basic_lookup_transparent_type.
11658 * c-lang.c: Update copyright.
11659 (c_language_defn): Add basic_lookup_transparent_type.
11660 (cplus_language_defn): Add basic_lookup_transparent_type.
11661 (asm_language_defn): Add basic_lookup_transparent_type.
11662 (minimal_language_defn): Add basic_lookup_transparent_type.
11663 * f-lang.c: Update copyright.
11664 (f_language_defn): Add basic_lookup_transparent_type.
11665 * jv-lang.c: Update copyright.
11666 (java_language_defn): Add basic_lookup_transparent_type.
11667 * m2-lang.c: Update copyright.
11668 (m2_language_defn): Add basic_lookup_transparent_type.
11669 * objc-lang.c: Update copyright.
11670 (objc_language_defn): Add basic_lookup_transparent_type.
11671 * p-lang.c: Update copyright.
11672 (p_language_defn): Add basic_lookup_transparent_type.
11673 * scm-lang.c: Update copyright.
11674 (scm_language_defn): Add basic_lookup_transparent_type.
11675 * Makefile.in (cp-namespace.o): Depend on frame.h.
11676
fdde2d81
DC
116772004-01-23 David Carlton <carlton@kealia.com>
11678
11679 Patch for PR c++/1520:
11680 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11681 properly if we have a specification die.
11682 (determine_prefix_aux): Rename from determine_prefix.
11683 (determine_prefix): Like the old determine_prefix, but never
11684 returns NULL.
11685
5b828b6b
TR
116862004-01-23 Theodore A. Roth <troth@openavr.org>
11687
11688 * avr-tdep.c: Update copyright.
11689 (avr_iaddr_p): Delete unused function.
11690 (avr_saddr_p): Delete unused function.
11691
a1b8c067
DC
116922004-01-23 David Carlton <carlton@kealia.com>
11693
11694 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11695 Fix for PR symtab/1534.
11696
f2cab569
MK
116972004-01-23 Mark Kettenis <kettenis@gnu.org>
11698
11699 * NEWS (New native configurations): Mention OpenBSD/sparc and
11700 OpenBSD/sparc64.
11701 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11702 * configure.host: Likewise.
11703 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11704 handler for OpenBSD.
11705 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11706
642d8300
MK
117072004-01-22 Mark Kettenis <kettenis@gnu.org>
11708
89aac506
MK
11709 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11710 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11711
36662fde
MK
11712 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11713 * cli/cli-cmds.c (shell_escape): Likewise.
11714
642d8300
MK
11715 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11716 OpenBSD .note.openbsd.ident sections.
11717
fae299cd
DC
117182004-01-22 David Carlton <carlton@kealia.com>
11719
11720 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11721 get_scope_pc_bounds.
11722 (read_file_scope): Ditto.
11723 (get_scope_pc_bounds): New function, produced by extracting code
11724 from the above two functions, consolidating it, and adding support
11725 for DW_TAG_namespace.
11726
a49d618c
MK
117272004-01-22 Mark Kettenis <kettenis@gnu.org>
11728
11729 * osabi.c (MAX_NOTESZ): New define.
11730 (check_note): New function.
11731 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11732 check_note.
11733
fe61caab
RM
117342004-01-21 Roland McGrath <roland@redhat.com>
11735
11736 * MAINTAINERS (write after approval): Add myself.
11737
ec145965
EZ
117382004-01-21 Eli Zaretskii <eliz@gnu.org>
11739
11740 * utils.c (init_page_info): Move declarations of `rows' and
11741 `cols' before the __GO32__-specific code. Move the closing brace
11742 outside the #ifdef __GO32__..#endif block.
11743 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11744
877522db
PB
117452004-01-21 Paul Brook <paul@codesourcery.com>
11746
11747 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11748 BPSTAT_WHAT_CHECK_SHLIBS.
11749
dbf5be1c
PB
117502004-01-21 Paul Brook <paul@codesourcery.com>
11751
11752 * MAINTAINERS: Add myself to write-after-approval.
11753
81f08b92
AC
117542004-01-20 Andrew Cagney <cagney@redhat.com>
11755
5a1efed7
AC
11756 * ax-gdb.c (print_axs_value): Delete unused function.
11757 * jv-lang.c (java_lookup_type): Delete unused function.
11758 * cli/cli-dump.c (dump_filetype): Delete unused function.
11759 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11760 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11761 (mips_getstring): Delete unused function.
11762 (pmon_insert_breakpoint): Delete #if0ed function.
11763 (PMON_MAX_BP): Delete #if0ed MACRO.
11764 (mips_pmon_bp_info): Delete #if0ed variable.
11765 (pmon_remove_breakpoint): Delete #if0ed function.
11766 * monitor.c (monitor_write_even_block): Delete unused function.
11767 (monitor_write_memory_block): Delete #if0ed code.
11768 * dink32-rom.c (dink32_load): Delete unused function.
11769 (_initialize_dink32_rom): Delete #if0ed code.
11770 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11771
b0a30fce
AC
11772 * tui/tui-command.c: Update references.
11773 * tui/tui-io.c: Update references.
11774 * tui/tui-command.h: Update copyright.
11775 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11776
81f08b92
AC
11777 * source.c (ambiguous_line_spec): Delete never-defined function.
11778 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11779 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11780 * cli/cli-cmds.c (validate_comname): Ditto.
11781
65f05602
AC
11782 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11783 "tui-data.h".
11784 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11785 (tui_show_disassem): Rename tuiShowDisassem.
11786 (tui_show_disassem_and_update_source): Rename
11787 tuiVerticalDisassemScroll.
11788 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11789 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11790 * tui/tui.h: Update copyright.
11791 (enum tui_status): Define.
11792 * tui/tui-data.h (enum tui_scroll_direction): Define.
11793 * tui/tui-disasm.c: Update copyright. Update references.
11794 * tui/tui-winsource.c: Update copyright. Update references.
11795 * tui/tui-win.c: Update references.
11796 * tui/tui-layout.c: Update references.
11797
6bb0384f
AC
117982004-01-20 Andrew Cagney <cagney@redhat.com>
11799
11800 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11801 sym2 to start of block.
11802
9175c9a3
MC
118032004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11804
11805 * MAINTAINERS: Delete mmalloc.
11806 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11807 * NEWS: Mention removal of --with-malloc.
11808 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11809 * config.in: Regenerate.
11810 * configure: Regenerate.
6bb0384f
AC
11811 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11812 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11813 * gdbinit.in: Remove mmalloc.
11814 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11815 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11816 * config/i386/go32.mh: Likewise.
11817 * config/i386/interix.mh: Likewise.
11818 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11819
4fcef00a
JJ
118202004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11821
11822 * linespec.c (decode_variable, symtab_from_filename): Call
11823 error_silent with error message instead of throwing an exception
11824 directly.
11825 * defs.h (error_silent, error_output_message): Add prototypes.
11826 (catch_exceptions_with_msg): Ditto.
11827 * utils.c (error_silent, error_output_message): New functions.
11828 * top.c (catch_exceptions_with_msg): New function.
11829
8e94b928
NR
118302004-01-20 Nick Roberts <nick@nick.uklinux.net>
11831
11832 * mi/mi-cmds.h (enum print_values): Add definition.
11833
11834 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11835 type and value for simple data types and just the name and type
11836 for complex ones, if required.
11837
11838 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11839 children, if required.
11840
a02d6af8
KB
118412004-01-19 Kevin Buettner <kevinb@redhat.com>
11842
11843 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11844 unused declarations.
11845
78a4a9b9
AC
118462004-01-19 Andrew Cagney <cagney@redhat.com>
11847
11848 * top.h (mapped_symbol_files): Delete declaration.
11849 * main.c (captured_main): Delete option "m" and "mapped".
11850 * objfiles.c (mapped_symbol_files): Delete variable.
11851 * symfile.c (symbol_file_command): Delete mmap code.
11852 (symbol_file_add_with_addrs_or_offsets): Ditto.
11853 (add_symbol_file_command, reread_separate_symbols): Ditto.
11854 * objfiles.h (OBJF_MAPPED): Delete.
11855 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11856 (free_objfile) [USE_MMALLOC]: Ditto.
11857 (open_existing_mapped_file): Delete function.
11858 (open_mapped_file): Delete function.
11859 (map_to_file): Delete function.
11860
2dbd5e30
KB
118612004-01-19 Kevin Buettner <kevinb@redhat.com>
11862
11863 * infrun.c (step_into_function): Account for possible breakpoint
11864 adjustment when computing ``stop_func_start''.
11865
437b434f
KB
118662004-01-19 Kevin Buettner <kevinb@redhat.com>
11867
11868 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11869 the region size against the size of a pointer, not the size of
11870 a register as given by DEPRECATED_REGISTER_SIZE.
11871
55fb0713
AC
118722004-01-19 Andrew Cagney <cagney@redhat.com>
11873
11874 * tui/tui-regs.h: Include "tui-data.h".
11875 (tuiFirstRegElementNoInLine): Delete declaration.
11876 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11877 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11878 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11879 (tui_calculate_regs_column_count): Rename
11880 tuiCalculateRegsColumnCount.
11881 (tui_check_register_values): Rename tuiCheckRegisterValues.
11882 (tui_show_registers): Rename tuiShowRegisters.
11883 (tui_display_registers_from_line): Rename
11884 tuiDisplayRegistersFromLine.
11885 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11886 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11887 (tui_first_reg_element_no_inline): Rename
11888 tuiFirstRegElementNoInLine.
11889 * tui/tui-data.h: Update copyright.
11890 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11891 * tui/tui-windata.c: Update copyright, update references.
11892 * tui/tui-regs.c: Update copyright, update references.
11893 * tui/tui-win.c: Update copyright, update references.
11894 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11895
cebe9500
AC
118962004-01-18 Andrew Cagney <cagney@redhat.com>
11897
bcdf1568
AC
11898 * tui/tui-io.c: Update copyright.
11899 (key_is_end_sequence, key_is_backspace): New functions.
11900 (key_is_command_char, key_is_start_sequence): New function.
11901 (tui_getc): Update references.
11902 * tui/tui-io.h: Update copyright.
11903 (m_tuiStartNewLine): Delete macro.
11904 (m_isBackspace, m_isDeleteChar): Delete macros.
11905 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11906 (m_isNextPage, m_isPrevPage): Delete macros.
11907 (m_isLeftArrow, m_isRightArrow): Delete macros.
11908 (m_isXdbStyleCommandChar): Delete macro.
11909 (key_is_start_sequence): Declare, replace m_isStartSequence.
11910 (key_is_end_sequence): Declare, replace m_isEndSequence.
11911 (key_is_backspace): Declare ,replace m_isBackspace.
11912 (key_is_command_char): Declare, replace m_isCommandChar.
11913 * tui/tui-command.c: Update copyright.
11914 (tuiDispatchCtrlChar): Update references.
11915
130d87e6
AC
11916 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11917 tuiSourceWin.h.
11918
d7b2e967
AC
11919 * tui/tui-command.c: Rename tui/tuiCommand.c.
11920 * tui/tui-command.h: Rename tui/tuiCommand.h.
11921 * tui/tui-data.c: Rename tui/tuiData.c.
11922 * tui/tui-data.h: Rename tui/tuiData.h.
11923 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11924 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11925 * tui/tui-io.c: Rename tui/tuiIO.c.
11926 * tui/tui-io.h: Rename tui/tuiIO.h.
11927 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11928 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11929 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11930 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11931 * tui/tui-source.c: Rename tui/tuiSource.c.
11932 * tui/tui-source.h: Rename tui/tuiSource.h.
11933 * tui/tui-stack.c: Rename tui/tuiStack.c.
11934 * tui/tui-stack.h: Rename tui/tuiStack.h.
11935 * tui/tui-win.c: Rename tui/tuiWin.c.
11936 * tui/tui-win.h: Rename tui/tuiWin.h.
11937 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11938 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11939 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11940 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11941 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11942 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11943 * tui/tui-file.c: Update includes.
11944 * tui/tui-hooks.c: Update includes.
11945 * tui/tui-interp.c: Update includes.
11946 * tui/tui.c: Update includes.
11947 * Makefile.in: Update all tui/ dependencies.
11948 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11949
b2100910
AC
11950 * Makefile.in: Update copyright. Update dependencies.
11951
cebe9500
AC
11952 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11953 problem.
11954
c6f0559b
AC
119552004-01-18 Andrew Cagney <cagney@redhat.com>
11956
43e9390b
AC
11957 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11958 instead of register_gdbarch_init.
11959
c6f0559b
AC
11960 * remote-sds.c (tohex): Delete unused function. Update copyright.
11961 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11962 * v850-tdep.c (v850_register_virtual_size): Ditto.
11963 * target.c (normal_target_post_startup_inferior): Ditto.
11964 * source.c (ambiguous_line_spec): Ditto.
11965 * remote.c (adapt_remote_get_threadinfo): Ditto.
11966 * mi/mi-out.c (out_field_fmt): Ditto.
11967 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11968 (output_control_change_notification): Ditto.
11969 * m68k-tdep.c (m68k_register_byte): Ditto.
11970 (m68k_remote_breakpoint_from_pc): Ditto.
11971 * ui-out.c (init_ui_out_state): Delete unused declaration.
11972 * stabsread.c (search_value): Ditto.
11973 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11974 * maint.c (print_section_table): Ditto.
11975 * infrun.c (set_follow_fork_mode_command): Ditto.
11976
a8504492
MK
119772004-01-18 Mark Kettenis <kettenis@gnu.org>
11978
11979 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11980 DW_CFA_def_cfa_exporession. Add support for
11981 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11982 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11983
0bd8997e
AC
119842004-01-18 Andrew Cagney <cagney@redhat.com>
11985
11986 * ocd.c: Update copyright.
11987 (bdm_read_register_command): Delete unused function.
11988 (_initialize_remote_ocd): Delete commented out reference.
11989 (get_quoted_char, reset_packet): Delete #if0ed function.
11990 (output_packet, put_quoted_char): Delete #if0ed function.
11991 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11992 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11993 (BDM_BREAKPOINT): Delete #if0ed macro.
11994 (remote_timeout): Delete #if0ed variable.
11995
31bb40e4
MK
119962004-01-18 Mark Kettenis <kettenis@gnu.org>
11997
11998 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11999 (core-sol2.o): Remove dependency.
12000 * core-sol2.c: Remove file.
12001
887432a5
AC
120022004-01-17 Andrew Cagney <cagney@redhat.com>
12003
12004 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12005 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12006 enums.
12007
29182b13
DJ
120082004-01-17 Daniel Jacobowitz <drow@mvista.com>
12009
12010 * remote.c: Update copyright years.
12011
2963ee1d
DJ
120122004-01-17 Daniel Jacobowitz <drow@mvista.com>
12013
12014 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12015
79d45cd4
AC
120162004-01-17 Andrew Cagney <cagney@redhat.com>
12017
ee300cd4
AC
12018 * mdebugread.c: Update copyright.
12019 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12020 (parse_type, parse_procedure): Ditto.
12021 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12022
fcacc9c2
AC
12023 * cris-tdep.c (cris_store_struct_return): Put back accidently
12024 deleted function.
12025
79d45cd4
AC
12026 * gdbarch.sh: Update copyright year.
12027 * gdbarch.h, gdbarch.c: Re-generate.
12028
b263358a
DJ
120292004-01-17 Daniel Jacobowitz <drow@mvista.com>
12030
12031 Suggested by George Anzinger.
12032 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12033 correct stack offset. Include unknown opcode numbers in the error
12034 message.
12035
931aecf5
AC
120362004-01-17 Andrew Cagney <cagney@redhat.com>
12037
12038 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12039 extract_struct_value_address, i386 does not set it.
12040 * sparc64-tdep.c (sparc64_init_abi): Do not set
12041 extract_struct_value_address, never called.
12042 (sparc64_extract_struct_value_address): Delete function.
12043 * m68hc11-tdep.c: Update copyright.
12044 (m68hc11_gdbarch_init): Delete redundant assignment of
12045 extract_struct_value_address.
12046 * i386-tdep.c: Update copyright.
12047 (i386_gdbarch_init): Do not set extract_struct_value_address,
12048 never called.
12049 (i386_extract_struct_value_address): Delete function.
12050 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12051 extract_struct_value_address, never called.
12052 (sparc32_extract_struct_value_address): #if 0 function. Add
12053 comments explaining its future.
12054
756fe439
DJ
120552004-01-17 Daniel Jacobowitz <drow@mvista.com>
12056
12057 * arm-tdep.c (arm_write_pc): New function.
12058 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12059
e74f0f02
DJ
120602004-01-17 Daniel Jacobowitz <drow@mvista.com>
12061
12062 * breakpoint.c (must_shift_inst_regs): Delete.
12063 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12064 and SHIFT_INST_REGS.
12065 * infcmd.c (step_1, step_1_continuation): Delete references to
12066 SHIFT_INST_REGS.
12067 * infrun.c (keep_going): Likewise.
12068 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12069 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12070
b6cb9035
AC
120712004-01-17 Andrew Cagney <cagney@redhat.com>
12072
444a1e2e
AC
12073 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12074 * gdbarch.h, gdbarch.c: Re-generate.
12075 * infcmd.c (print_return_value): Delete reference to
12076 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12077
def7e6ed
AC
12078 * cris-tdep.c (cris_gdbarch_init): Do not set
12079 deprecated_extract_struct_value_address.
12080
07be497a
AC
12081 * xstormy16-tdep.c: Update copyright.
12082 (xstormy16_extract_struct_value_address): Update to current
12083 extract struct value address interface.
12084 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12085 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12086 current extract struct value address interface.
12087 (sh64_gdbarch_init): Set extract_struct_value_address.
12088
6b4d5c91
AC
12089 * cris-tdep.c: Update copyright.
12090 (cris_extract_struct_value_address): Delete function.
12091 (struct_return_address): Delete variable.
12092 (cris_store_struct_return): Do not set struct_return_address.
12093
464e0365
AC
12094 * mcore-tdep.c: Update copyright.
12095 (mcore_extract_struct_value_address): Delete function. Update
12096 comments.
12097 (mcore_gdbarch_init): Update.
12098 * mn10300-tdep.c: Update copyright.
12099 (mn10300_extract_struct_value_address): Delete function.
12100 (mn10300_gdbarch_init): Update.
12101 * v850-tdep.c: Update copyright.
12102 (v850_extract_struct_value_address): Delete.
12103 (v850_gdbarch_init): Update.
12104 * ns32k-tdep.c: Update copyright.
12105 (ns32k_extract_struct_value_address): Delete.
12106 (ns32k_gdbarch_init): Update.
12107 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12108 (hppa_gdbarch_init): Update.
12109 * vax-tdep.c: Update copyright.
12110 (vax_extract_struct_value_address): Delete.
12111 (vax_gdbarch_init): Update.
12112
afb18d0f
AC
12113 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12114 * gdbarch.h, gdbarch.c: Re-generate.
12115 * procfs.c (procfs_fetch_registers): Delete reference to
12116 DEPRECATED_NPC_REGNUM.
12117 (procfs_store_registers): Ditto.
12118 * regcache.c (generic_target_write_pc): Simplify.
12119 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12120
a698f53e
AC
12121 * core-sol2.c (fetch_core_registers): Replace
12122 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12123
adc11376
AC
12124 * hppa-tdep.c: Update copyright year.
12125 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12126 NPC_REGNUM.
12127 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12128
b6cb9035
AC
12129 * mips-tdep.c (mips_write_pc): New function.
12130 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12131 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12132 (mips_find_saved_regs, mips_software_single_step: Ditto.
12133 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12134 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12135
6d82d43b
AC
121362004-01-17 Andrew Cagney <cagney@redhat.com>
12137
12138 * mips-tdep.c: Re-indent. Group functions by ABI.
12139
71bd6bd4
AC
121402004-01-17 Andrew Cagney <cagney@redhat.com>
12141
12142 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12143 * gdbarch.c: Re-generate.
12144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12145 DECR_PC_AFTER_BREAK to zero.
12146 * vax-tdep.c (vax_gdbarch_init): Ditto.
12147 * v850-tdep.c (v850_gdbarch_init): Ditto.
12148 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12149 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12150 * sh-tdep.c (sh_gdbarch_init): Ditto.
12151 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12152 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12153 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12154 * mips-tdep.c (mips_gdbarch_init): Ditto.
12155 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12157 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12158 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12159 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12160 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12162 * frv-tdep.c (frv_gdbarch_init): Ditto.
12163 * cris-tdep.c (cris_gdbarch_init): Ditto.
12164 * avr-tdep.c (avr_gdbarch_init): Ditto.
12165 * arm-tdep.c (arm_gdbarch_init): Ditto.
12166 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12167
a02abb62
JB
121682004-01-17 J. Brobecker <brobecker@gnat.com>
12169
12170 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12171 Delete, no longer used.
12172 (read_subrange_type): New function, mostly extracted from
12173 read_array_type().
12174 (read_array_type): Replace extracted code by call to
12175 read_subrange_type().
12176 (dwarf2_get_attr_constant_value): New function.
12177 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12178 (add_partial_symbol): Likewise.
12179 (process_die): Likewise.
12180 (new_symbol): Likewise.
12181 (read_type_die): Likewise.
12182
cf5b2f1b
AC
121832004-01-16 Andrew Cagney <cagney@redhat.com>
12184
12185 * symfile.c: Update copyright year.
12186 (compare_symbols): Delete unused function.
12187 * stabsread.c: Update copyright year.
12188 (lrs_general_complaint): Delete unused function.
12189 (ref_search_value): Ditto.
12190 (get_substring): Delete declaration.
12191 * sh64-tdep.c: Update copyright year.
12192 (sh64_get_gdb_regnum): Delete unused function.
12193 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12194 Delete unused function.
12195
d33b9831
MK
121962004-01-17 Mark Kettenis <kettenis@gnu.org>
12197
12198 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12199 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12200
7aea86e6
AC
122012004-01-16 Andrew Cagney <cagney@redhat.com>
12202
12203 Changes from Peter Schauer.
12204 * rs6000-tdep.c: Update copyright year.
12205 (rs6000_push_dummy_call): Update the stack pointer before
12206 accessing the corresponding stack region.
12207 * rs6000-nat.c: Update copyright year.
12208 (set_host_arch): Set "info.abfd" to "exec_bfd".
12209
26b0da32
MK
122102004-01-15 Mark Kettenis <kettenis@gnu.org>
12211
12212 * blockframe.c: Update copyright year.
12213 (inside_entry_func): Don't treat a zero PC specially.
12214
86fbe6cc
EZ
122152004-01-14 Elena Zannoni <ezannoni@redhat.com>
12216
12217 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12218 variable.
12219 (gcore_create_callback): Ditto. Skip any memory segment that has
12220 no permissions set.
12221
63d06c5c
DC
122222004-01-14 David Carlton <carlton@kealia.com>
12223
12224 Change symbols for C++ nested types to contain the fully qualified
12225 name, if possible. (At least in the DWARF-2 case.) Partial fix
12226 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12227 c++/895.
12228 * c-exp.y (qualified_type): Handle types nested within classes.
12229 * cp-namespace.c: Update comments.
12230 (cp_set_block_scope): Delete #if 0.
12231 (cp_lookup_nested_type): Handle types nested within classes.
12232 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12233 when appropriate.
12234 (add_partial_symbol): Add the name of the enclosing namespace to
12235 types.
12236 (pdi_needs_namespace): New.
12237 (add_partial_namespace): Tweak comment.
12238 (add_partial_structure): New.
12239 (psymtab_to_symtab_1): Initialize processing_current_prefix
12240 here...
12241 (process_die): instead of here.
12242 (read_structure_scope): Try to figure out the name of the class or
12243 namespace that the structure might be defined within.
12244 (read_enumeration): Generate fully-qualified names, if possible.
12245 (read_namespace): Don't set name to NULL.
12246 (die_specification): New.
12247 (new_symbol): Generate fully-qualified names for types.
12248 (read_type_die): Determine appropriate prefix.
12249 (determine_prefix): New.
12250 (typename_concat): New.
12251 (class_name): New.
12252 * valops.c (value_aggregate_elt): Pass NOSIDE to
12253 value_struct_elt_for_reference.
12254 (value_struct_elt_for_reference): Make static, add NOSIDE
12255 parameter, call value_maybe_namespace_elt as a last resort.
12256 (value_namespace_elt): Break out code into
12257 value_maybe_namespace_elt.
12258 (value_maybe_namespace_elt): New.
12259
87783b8b
AC
122602004-01-12 Andrew Cagney <cagney@redhat.com>
12261
12262 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12263 cooked floating-point registers.
12264 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12265 and value_to_register.
12266
6503b91e
AC
122672004-01-13 Andrew Cagney <cagney@redhat.com>
12268
12269 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12270 * gdbarch.c: Re-generate.
12271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12272 FUNCTION_START_OFFSET.
12273 * v850-tdep.c (v850_gdbarch_init): Ditto.
12274 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12275 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12276 * sh-tdep.c (sh_gdbarch_init): Ditto.
12277 * s390-tdep.c (s390_gdbarch_init): Ditto.
12278 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12279 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12280 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12281 * mips-tdep.c (mips_gdbarch_init): Ditto.
12282 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12283 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12285 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12286 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12287 * i386-tdep.c (i386_gdbarch_init): Ditto.
12288 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12289 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12290 * frv-tdep.c (frv_gdbarch_init): Ditto.
12291 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12292 * cris-tdep.c (cris_gdbarch_init): Ditto.
12293 * avr-tdep.c (avr_gdbarch_init): Ditto.
12294 * arm-tdep.c (arm_gdbarch_init): Ditto.
12295 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12296
ea1dd7bc
DJ
122972004-01-13 Daniel Jacobowitz <drow@mvista.com>
12298
12299 * infrun.c (follow_fork_mode_ask): Remove.
12300 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12301 (follow_fork): Simplify and remove internal error for
12302 follow_fork_mode_ask.
12303 (_initialize_infrun): Update "set follow-fork-mode" help text.
12304
0f0cffd2
AC
123052004-01-13 Andrew Cagney <cagney@redhat.com>
12306
12307 * configure.in: Update copyright year.
12308 (build_warnings): Add -Wunused-label.
12309 * configure: Re-generate.
12310
de38af99
AC
123112004-01-12 Andrew Cagney <cagney@redhat.com>
12312
954a7fba
AC
12313 * exec.h (exec_ops): Make "extern".
12314
de38af99
AC
12315 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12316 the function is void.
12317 (mips_pseudo_register_write): Ditto.
12318
1a111ce3
AC
123192004-01-12 Andrew Cagney <cagney@redhat.com>
12320
12321 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12322 call. Never defined.
12323 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12324 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12325 (struct sparc_gregset, struct regcache): Ditto.
12326 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12327
48efe704
AC
123282004-01-12 Andrew Cagney <cagney@redhat.com>
12329
12330 * mi/ChangeLog: Delete file. Renamed to ...
12331 * mi/ChangeLog-1999-2003: New file.
12332 * tui/ChangeLog: Delete file. Renamed to ...
12333 * tui/ChangeLog-1998-2003: New file.
fe61caab 12334
a54124c5
MK
123352004-01-11 Mark Kettenis <kettenis@gnu.org>
12336
2ca62865
MK
12337 * sparc64nbsd-tdep.c: Include "regset.h".
12338 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12339 Remove variables.
12340 (fetch_core_registers): Remove function.
12341 (sparc64nbsd_core_fns): Remove variable.
12342 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12343 functions.
12344 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12345 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12346 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12347
ca9d58e9
MK
12348 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12349 sparc_extract_struct_value_address.
12350 (sparc32_gdbarch_init): Set extract_struct_value_address.
12351 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12352 function.
12353 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12354 return_value_on_stack.
12355
3cc87ec0
MK
12356 * NEWS: Mention that %cs and %ss have been added to the AMD64
12357 configurations
12358
5bf00f29
MK
12359 * frame.c: Update copyright year.
12360 (get_prev_frame): Improve comment.
12361
4f7ec84e
MK
12362 * sparc64fbsd-tdep.c: Include "regset.h".
12363 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12364 Remove variables.
12365 (fetch_core_registers): Remove function.
12366 (sparc64fbsd_core_fns): Remove variable.
12367 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12368 functions.
12369 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12370 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12371 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12372
4e7b0cd3
MK
12373 * sparcnbsd-tdep.c: Include "regset.h".
12374 (fetch_core_registers): Remove function.
12375 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12376 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12377 functions.
12378 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12379 TDEP->fpregset.
46b58ce9 12380 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12381
a54124c5
MK
12382 * sparc-tdep.h (struct regset): Provide opaque declaration.
12383 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12384 fpregset and sizeof_fpregset members.
12385 * sparc-tdep.c (struct regset): Provide opaque declaration.
12386 (sparc_regset_from_core_section): New function.
12387 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12388 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12389 Set regset_from_core_section when appropriate.
12390
29ff87c5
MK
123912004-01-10 Mark Kettenis <kettenis@gnu.org>
12392
79b1ab3d
MK
12393 * x86-64-tdep.c (amd64_non_pod_p): New function.
12394 (amd64_classify_aggregate): Return class memory for non-POD
12395 C++ structure types.
12396
6470d250
MK
12397 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12398 argument. Use it to reserve a register if necessary.
12399 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12400 amd64_push_arguments.
12401
562c50c2
MK
12402 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12403
af233647
MK
12404 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12405 register numbers in comments.
12406 * x86-64-tdep.h: Update copyright year.
12407 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12408 Adjust for addition of %cs and %ss.
12409 * amd64fbsd-nat.c: Update copyright year.
12410 (reg_offset): Add register offsets for %cs and %ss.
12411 * amd64fbsd-tdep.c: Update copyright year.
12412 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12413 (amd64fbsd_sc_reg_offset): Likewise.
12414 * x86-64-linux-nat.c: Update copyright year.
12415 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12416 and %ss.
12417 * amd64nbsd-nat.c: Update copyright year.
12418 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12419 * amd64nbsd-tdep.c: Update copyright year.
12420 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12421 * x86-64-linux-tdep.c: Update copyright year.
12422 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12423 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12424 * regformats/reg-x86-64.dat: Add %cs and %ss.
12425
29ff87c5
MK
12426 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12427 variables to prevent long lines. Update comments to reflect
12428 reality.
12429
38d518c9
EZ
124302004-01-09 David Carlton <carlton@kealia.com>
12431
12432 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12433 * dwarf2read.c (read_namespace): Pull out name-generating code
12434 into namespace_name. Rename previous_namespace to previous_prefix
12435 and processing_current_namespace to processing_current_prefix..
12436 (namespace_name): New function.
12437 (add_partial_symbol): Substitute uses of pdi->name with
12438 actual_name.
12439 * cp-support.h: Rename processing_current_namespace to
12440 processing_current_prefix.
12441 Update copyright year.
12442 * cp-namespace.c: Rename processing_current_namespace to
12443 processing_current_prefix.
12444 Update copyright year.
fe61caab 12445
1e4728e7
AC
124462004-01-09 Andrew Cagney <cagney@redhat.com>
12447
12448 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12449
c77c642a
MK
124502004-01-09 Mark Kettenis <kettenis@gnu.org>
12451
12452 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12453 complaining.
12454 (process_one_symbol): Deal with N_PATCH stabs.
12455
b44e9041
EZ
124562004-01-09 Elena Zannoni <ezannoni@redhat.com>
12457
12458 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12459 ifdeffed code.
12460 Update copyright year.
38d518c9 12461
eccfb640
MC
124622004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12463
12464 * config/pa/tm-hppa.h: Update extern declarations for
12465 hppa32_hpux_frame_saved_pc_in_sigtramp,
12466 hppa32_hpux_frame_base_before_sigtramp, and
12467 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12468
848c5feb
MC
124692004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12470
12471 * config/pa/tm-hppah.h: Update copyright years.
12472
3cc5d663
AC
124732004-01-08 Andrew Cagney <cagney@redhat.com>
12474
12475 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12476 (mips_o32_reg_struct_has_addr): Delete function.
12477 (mips_gdbarch_init): Update.
12478 (mips_extract_struct_value_address): Delete function.
12479
bfec0b41
JJ
124802004-01-08 David Mosberger <davidm@hpl.hp.com>
12481
12482 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12483 reality.
12484
16e109ca
AC
124852004-01-07 Andrew Cagney <cagney@redhat.com>
12486
6214a8a1
AC
12487 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12488 architecture's elf flags (when available).
12489
8d5838b5
AC
12490 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12491 FPU to the start, check the MIPS FPU when looking for an old
12492 architecture.
12493 (set_mipsfpu_single_command): Update the architecture.
12494 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12495
480d3dd2
AC
12496 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12497 (mips_mask_address_p): Add "tdep" parameter.
12498 (show_mask_address, mips_addr_bits_remove): Update.
12499 (mips_dump_tdep): Update.
12500 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12501 (MIPS_STACK_ARGSIZE): Delete macro.
12502 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12503 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12504 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12505 (mips_dump_tdep): Update.
12506 (MIPS_SAVED_REGSIZE): Delete macro.
12507 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12508 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12509 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12510 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12511 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12512 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12513 (mips_pop_frame, return_value_location): Update.
12514 (mips_n32n64_return_value, mips_dump_tdep): Update.
12515
ec03c1ac
AC
12516 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12517 MIPS ABI.
12518
16e109ca
AC
12519 * mips-tdep.c: Update copyright.
12520 (mips_gdbarch_init): Merge two code blocks handling the register
12521 name and number layout.
12522
15255275
MS
125232004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12524
12525 * tracepoint.c (validate_actionline): Fix segv at EOF
12526
9f9057da
MC
125272004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12528
12529 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12530 properly for static fields.
12531
0127c0d3 125322004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12533 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12534
12535 * disasm.c: Update copyright to include 2004.
12536 (do_mixed_source_and_assembly): For uiout asm list
12537 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12538 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12539 the tuple/list. Move check for whether to close off the
fe61caab 12540 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12541 on each loop iteration.
12542
5269965e
AC
125432004-01-05 Andrew Cagney <cagney@redhat.com>
12544
54f1137d
AC
12545 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12546 should be a switch case and not a label.
12547 * mips-tdep.c (mips32_next_pc): Delete unused labels
12548 "greater_equal_branch" and "less_zero_branch".
12549 * jv-valprint.c (java_print_value_fields): Delete unused label
12550 "flush_it".
12551
5269965e
AC
12552 * target.c (unpush_target): Only close a target that is in the
12553 target stack.
12554
dbc22fa1
MK
125552004-01-05 Mark Kettenis <kettenis@gnu.org>
12556
9515395e
MK
12557 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12558 address from [sp + 64] instead of %o2.
12559
dbc22fa1
MK
12560 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12561 fixes PR backtrace/1476.
12562
5439edaa
AC
125632004-01-05 Andrew Cagney <cagney@redhat.com>
12564
12565 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12566 move to start of file.
12567 * i386-tdep.h (struct regcache): Add opaque declaration.
12568 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12569 declaration.
12570 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12571 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12572 * win32-nat.c (fake_create_process): Use ISO C style definition.
12573 * stabsread.c (define_symbol): Delete #ifndef
12574 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12575 stabs_argument_has_addr call, macro never defined.
12576
19061abe
MC
125772004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12578
12579 * op50-rom.c: Delete.
12580 * w89k-rom.c: Delete.
12581 * Makefile.in: Remove references.
12582
e53bef9f
MK
125832004-01-04 Mark Kettenis <kettenis@gnu.org>
12584
12585 * x86-64-tdep.c: Update copyright year.
12586 (struct amd64_register_info): Rename from x86_64_register_info.
12587 (amd64_register_info): Rename from x86_64_register_info.
12588 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12589 (amd64_register_name): Rename from x86_64_register_name.
12590 (amd64_register_type): Rename from x86_64_register_type.
12591 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12592 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12593 (amd64_dwarf_reg_to_regnum): Rename from
12594 x86_64_dwarf_reg_to_regnum.
12595 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12596 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12597 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12598 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12599 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12600 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12601 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12602 (amd64_frame_cache): Rename from x86_64_frame_cache.
12603 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12604 (amd64_frame_prev_register): Rename from
12605 x86_64_frame_prev_register.
12606 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12607 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12608 (amd64_sigtramp_frame_cache): Rename from
12609 x86_64_sigtramp_frame_cache.
12610 (amd64_sigtramp_frame_prev_register): Rename from
12611 x86_64_sigtramp_frame_prev_register.
12612 (amd64_sigtramp_frame_unwind): Rename from
12613 x86_64_sigtramp_frame_unwind.
12614 (amd64_sigtramp_frame_sniffer): Rename from
12615 x86_64_sigtramp_frame_sniffer.
12616 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12617 (amd64_frame_base): Rename from x86_64_frame_base.
12618 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12619 (amd64_frame_align): Rename from x86_64_frame_align.
12620 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12621 (amd64_regset_from_core_section): Rename from
12622 x86_64_regset_from_core_section.
12623 (x86_64_init_abi): Update comments.
12624
fca6aa58
NR
126252004-01-04 Nick Roberts <nick@nick.uklinux.net>
12626
12627 * MAINTAINERS (write after approval): Add myself.
12628
8ada74e3
MK
126292004-01-04 Mark Kettenis <kettenis@gnu.org>
12630
12631 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12632 `float' arguments.
12633
5154b0cd
MK
126342004-01-04 Mark Kettenis <kettenis@gnu.org>
12635
12636 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12637 such that it mentions a specific version of GCC that exhibits this
12638 bug.
12639
fb316966
MK
126402004-01-03 Mark Kettenis <kettenis@gnu.org>
12641
200cc553
MK
12642 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12643 structure that has a single `float' member, store it in %f1 in
12644 addition to %f0.
12645
e226a4a0
MK
12646 * sparc-sol2-nat.c: Add missing '\'.
12647
b9d4c5ed
MK
12648 * sparc-tdep.c (sparc32_return_value): New function.
12649 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12650 Remove functions.
12651 (sparc32_gdbarch_init): Set return_value, don't set
12652 extract_return_value, store_return_value, use_struct_convention
12653 and return_value_on_stack.
12654
fb316966
MK
12655 * sparc-sol2-nat.c: Add missing ')'.
12656
1af510a8
JB
126572004-01-03 J. Brobecker <brobecker@gnat.com>
12658
12659 * infrun.c (handle_step_into_function): New function.
12660 (handle_inferior_event): Extract out some code into the new
12661 function above.
12662
5cf4d23a
JB
126632004-01-03 J. Brobecker <brobecker@gnat.com>
12664
12665 * infrun.c (handle_inferior_event): Move the declaration of
12666 real_stop_pc inside the if blocks where it is used.
12667
60af1db2
MK
126682004-01-03 Mark Kettenis <kettenis@gnu.org>
12669
12670 * sparc64-tdep.c (sparc64_16_byte_align_p)
12671 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12672 Use check_typedef to get subtypes of structures and unions.
12673 (sparc64_store_return_value): Fix calculation of the appropriate
12674 offset into VALBUF when storing a structure or union.
12675 (sparc64_return_value): New function.
12676 (sparc64_use_struct_convention): Remove function.
12677 (sparc64_init_abi): Set return_value, don't set
12678 extract_return_value, store_return_value and
12679 use_struct_convention.
12680
1a901d3f
EZ
126812004-01-03 Eli Zaretskii <eliz@elta.co.il>
12682
12683 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12684 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12685 gdb/config/alpha/xm-alphaosf.h,
12686 gdb/config/powerpc/tm-ppcle-eabi.h,
12687 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12688 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12689 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12690 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12691 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12692 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12693 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12694 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12695 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12696 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12697 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12698 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12699 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12700 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12701 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12702 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12703 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12704 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12705 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12706 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12707 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12708 Remove lines for .cvsignore files.
12709
ef52e463
JB
127102004-01-03 J. Brobecker <brobecker@gnat.com>
12711
12712 * infrun.c: Back out the previous change.
12713
cb1bf9dc
MK
127142004-01-03 Mark Kettenis <kettenis@gnu.org>
12715
f0424ef6
MK
12716 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12717 sparc-*-sunos4* to the list of REMOVED configurations.
12718
cb1bf9dc
MK
12719 * configure.tgt: Add back sparc-*-vxworks*.
12720 * remote-vxsparc.c: Remove all includes except for "defs.h",
12721 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12722 Include "sparc-tdep.h".
12723 (SPARC_R_G1): New define.
12724 (vxsparc_gregset): New variable.
12725 (ext_format_sparc): Remove extern declaration.
12726 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12727 sparc32_supply_fpregset.
12728 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12729 sparc_collect_rwindow and sparc32_collect_fpregset.
12730 * config/sparc/tm-vxworks.h: New file, based on recently removed
12731 tm-vxsparc.h.
12732 * config/sparc/vxworks.mt: New file, based on recently removed
12733 vxworks.mt.
fe61caab 12734
5e938f9f
JB
127352004-01-03 J. Brobecker <brobecker@gnat.com>
12736
12737 * infrun.c (handle_step_into_function): New function.
12738 (handle_inferior_event): Extract out some code into the new
12739 function above.
12740
386c036b
MK
127412004-01-02 Mark Kettenis <kettenis@gnu.org>
12742
12743 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12744 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12745 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12746 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12747 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12748 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12749 (sparc_nat_h): New variable.
12750 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12751 (tm-sun4os4.h): Remove dependency.
12752 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12753 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12754 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12755 sparc-tdep.o): Update dependencies.
12756 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12757 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12758 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12759 dependencies.
12760 * configure.host: Remove existing sparc-*-lynxos*,
12761 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12762 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12763 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12764 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12765 triplets.
12766 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12767 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12768 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12769 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12770 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12771 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12772 sparc64-*-solaris2* and sparc64-*-* triplets.
12773 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12774 "symtab.h" and "objfiles.h".
12775 (BIAS): Remove define.
12776 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12777 (X_DISP19): Remove macros.
12778 (sparc_fetch_instruction): Remove function.
12779 (struct gdbarch_tdep): Remove definition.
12780 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12781 (sparc_breakpoint_from_pc): Remove function.
12782 (struct sparc64_frame_cache): Remove definition.
12783 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12784 sparc64_unwind_pc): Remove functions.
12785 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12786 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12787 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12788 (sparc64_frame_cache): Change return type to `struct
12789 sparc_frame_cache *'. Simply call sparc_frame_cache.
12790 (sparc64_frame_this_id, sparc64_frame_prev_register,
12791 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12792 instead of `struct sparc64_frame_cache.
12793 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12794 sparc_analyze_control_transfer, sparc_software_single_step,
12795 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12796 _initialize_sparc64_tdep): Remove functions.
12797 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12798 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12799 macros.
12800 (sparc64_supply_gregset, sparc64_collect_gregset,
12801 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12802 (sparc64_init_abi): New function.
12803 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12804 inclusion guard. Include "sparc-tdep.h".
12805 (BIAS): Define.
12806 (r_tstate_offset, r_fprs_offset): New defines.
12807 (enum sparc_regnum): Remove defenition.
12808 (enum sparc64_regnum): Reformat.
12809 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12810 (sparc64_init_abi, sparc64_supply_gregset,
12811 sparc64_collect_gregset, sparc64_supply_fpregset,
12812 sparc64_collect_fpregset): New prototypes.
12813 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12814 Add extern declarations.
12815 (sparc64_sol2_init_abi): New prototype.
12816 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12817 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12818 prototypes.
12819 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12820 "sparnbsd-nat.h".
12821 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12822 functions.
12823 (_initialize_sparc64fbsd_nat): Remove initialization of
12824 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12825 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12826 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12827 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12828 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12829 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12830 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12831 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12832 (sparc64fbsd_r_y_offset): Remove variables.
12833 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12834 Make static and const.
12835 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12836 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12837 functions.
12838 (sparc64fbsd_gregset): New variable.
12839 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12840 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12841 and sparc64_supply_fpregset.
12842 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12843 (sparc64fbsd_sigtramp_frame_this_id)
12844 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12845 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12846 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12847 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12848 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12849 * sparcnbsd-tdep.c: Update copyright year. Include
12850 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12851 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12852 "value.h" and "sparcnbsd-tdep.h".
12853 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12854 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12855 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12856 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12857 defines.
12858 (sparcnbsd_gregset): New variable.
12859 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12860 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12861 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12862 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12863 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12864 variables.
12865 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12866 (sparc32nbsd_sigcontext_frame_this_id)
12867 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12868 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12869 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12870 (sparcnbsd_get_longjmp_target_32,
12871 sparcnbsd_get_longjmp_target_64): Remove functions.
12872 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12873 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12874 sparcnbsd_init_elf): Remove.
12875 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12876 (sparcnbsd_elf_init_abi): New functions.
12877 (_initialize_sparcnbsd_tdep): New prototype.
12878 (_initialize_sparnbsd_tdep): Update.
12879 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12880 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12881 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12882 * config/sparc/linux.mh: Update comment.
12883 (XM_FILE, HOST_IPC): Remove variables.
12884 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12885 sparc-linux-nat.o.
12886 * config/sparc/linux.mt: Update comment.
12887 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12888 * config/sparc/nbsd.mt: Reformat.
12889 * config/sparc/nbsd64.mh: Update comment.
12890 (NATDEPFILES): Add sparc-nat.o.
12891 * config/sparc/nbsd64.mt: Update comment.
12892 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12893 (TM_FILE): Set to tm-nbsd.h.
12894 * config/sparc/nbsdelf.mh: Update comment.
12895 (NATDEPFILES): Add sparc-nat.o.
12896 (XM_FILE): Delete.
12897 * config/sparc/nbsdaout.mh: Update comment.
12898 (NATDEPFILES): Add sparc-nat.o
12899 (XM_FILE): Delete.
12900 * config/sparc/nm-linux.h: Update copyright year. Don't include
12901 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12902 inclusion.
12903 (KERNEL_U_SIZE): Remove define.
12904 (kernel_u_size): Remove prototype.
12905 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12906 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12907 "regcache.h".
12908 (CHILD_PREPARE_TO_STORE): Remove define.
12909 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12910 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12911 sparcnbsd-nat.c: Rewrite files.
12912 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12913 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12914 sparcnbsd-tdep.h: Remove files.
12915 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12916 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12917 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12918 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12919 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12920 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12921 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12922 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12923 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12924 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12925 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12926 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12927 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12928 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12929 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12930 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12931 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12932 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12933 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12934
ee84457a
AC
129352004-01-02 Andrew Cagney <cagney@redhat.com>
12936
12937 From 2003-12-18 Kazuhiro Inaoka:
12938 * configure.host: Add m32r-linux target.
12939
0bc2134e
MC
129402004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12941
12942 * top.c (print_gdb_version): Update year to 2004.
12943
89a72f9c
MM
129442004-01-02 Mark Mitchell <mark@codesourcery.com>
12945
12946 * MAINTAINERS: Add myself to the write-after-approval category.
12947
86b013ed
DJ
129482004-01-02 Daniel Jacobowitz <drow@mvista.com>
12949
12950 From Bernardo Innocenti <bernie@develer.com>:
12951 * configure.tgt: Add uClinux target.
12952
e42c9534
AC
129532004-01-02 Andrew Cagney <cagney@redhat.com>
12954
12955 * utils.c (do_my_cleanups): Make static, add forward declaration.
12956 * defs.h (do_my_cleanups): Delete declaration.
12957
162467d3
EZ
129582004-01-02 Eli Zaretskii <eliz@elta.co.il>
12959
12960 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12961 bfd/ChangeLog-0203.
12962
78434e59
MK
129632004-01-02 Mark Kettenis <kettenis@gnu.org>
12964
12965 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12966 in <machine/reg.h>.
12967 * configure, config.in: Regenerate.
12968
48efe704
AC
12969For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12970tui/ChangeLog-1998-2003.
c906108c
SS
12971\f
12972Local Variables:
12973mode: change-log
12974left-margin: 8
12975fill-column: 74
12976version-control: never
12977End:
This page took 2.007652 seconds and 4 git commands to generate.