ada-lex.l: Remove useless rule whose right-context clause
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
375c0479
PH
12004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2
3 * ada-lex.l: Remove useless rule whose right-context clause
4 causes unreferenced static function warning for yyrealloc.
5 (ada_flex_use): Remove the artificial reference to yyrealloc.
6
c8e73a31
AC
72004-10-08 Andrew Cagney <cagney@gnu.org>
8
9 * target.h (struct target_ops): Rename to_xfer_memory to
10 deprecated_xfer_memory.
11 * target.c: Update.
12 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
13 * wince.c: Update.
14 * win32-nat.c: Update.
15 * v850ice.c: Update.
16 * uw-thread.c: Update.
17 * thread-db.c: Update.
18 * sol-thread.c: Update.
19 * remote.c: Update.
20 * remote-vx.c: Update.
21 * remote-st.c: Update.
22 * remote-sim.c: Update.
23 * remote-sds.c: Update.
24 * remote-rdp.c: Update.
25 * remote-rdi.c: Update.
26 * remote-mips.c: Update.
27 * remote-m32r-sdi.c: Update.
28 * remote-e7000.c: Update.
29 * procfs.c: Update.
30 * ppc-bdm.c: Update.
31 * nto-procfs.c: Update.
32 * monitor.c: Update.
33 * linux-nat.c: Update.
34 * inftarg.c: Update.
35 * hpux-thread.c: Update.
36 * go32-nat.c: Update.
37 * gnu-nat.c: Update.
38 * exec.c: Update.
39 * corelow.c: Update.
40 * bsd-kvm.c: Update.
41 * aix-thread.c: Update.
42
aa869812
AC
432004-10-08 Andrew Cagney <cagney@gnu.org>
44
45 * target.c (debug_target): Move to near start of file.
46 (target_stopped_data_address_p): Re-org logic, add casts.
47
8dcef9cf
MK
482004-10-02 Mark Kettenis <kettenis@gnu.org>
49
50 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
51 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
52 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
53 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
54 New defines.
55
4aa7a7f5
JJ
562004-10-08 Jeff Johnston <jjohnstn@redhat.com>
57
58 * target.h (to_stopped_data_address): Change prototype to
59 take a CORE_ADDR pointer and return an int.
60 * target.c (update_current_target): Change to_stopped_data_address
61 to match new prototype.
62 (debug_to_stopped_data_address): Change appropriately.
63 * breakpoint.c (bpstat_stop_status): Change call to
64 target_stopped_data_address to use new prototype.
65 * frv-tdep.c (frv_have_stopped_data_address): New function.
66 (frv_stopped_data_address): Change to new prototype and
67 functionality.
68 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
69 prototype and functionality.
70 (ia64_stopped_by_watchpoint): New function.
71 * i386-nat.c (i386_stopped_data_address): Change to new
72 prototype and functionality.
73 (i386_stopped_by_watchpoint): New function.
74 * remote.c (remote_stopped_data_address): Change to new prototype
75 and functionality.
76 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
77 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
78 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
79 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
80 new i386_stopped_by_watchpoint function.
81 (i386_stopped_by_watchpoint): New prototype.
82 (i386_stoppped_data_address): Change to new prototype.
83 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
84 new ia64_stopped_by_watchpoint function.
85 (ia64_stopped_by_watchpoint): New prototype.
86 (ia64_stopped_data_address): Ditto.
87
61ee279c
PH
882004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
89
90 * ada-typeprint.c (ada_print_type): Use int_string for printing
91 modulus of modular type.
92 * ada-lang.h (ada_modulus): Change return type to unsigned.
93 * ada-lang.c (ada_language_arch_info): Correct type of
94 string_char_type.
95 (ada_modulus): Return unsigned result.
96 (ada_lookup_symbol): Remove user disambiguation and modify comment
97 accordingly.
98
992004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
100
101 Committed by Paul Hilfinger.
102 * ada-lang.c (decode_packed_array): On big-endian targets,
103 left-justify the value if it comes with a modular type.
104
1052004-10-08 Joel Brobecker <brobecker@gnat.com>
106
107 Committed by Paul Hilfinger.
108 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
109 (is_name_suffix): Add support for "___JM" suffixes.
110 (ada_check_typedef): Renames ada_completed_type.
111 Update all users of CHECK_TYPEDEF, check_typedef, and
112 ada_complete_type to call ada_check_typedef.
113 * ada-typeprint.c: Likewise.
114 * ada-valprint.c: Likewise.
115
b6c25a56
CV
1162004-10-08 Corinna Vinschen <vinschen@redhat.com>
117
118 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
119
83ca6a46
NR
1202004-10-08 Nick Roberts <nickrob@snap.net.nz>
121
122 * MAINTAINERS: Update e-mail address.
123
1fd8cd20
DJ
1242004-10-07 Daniel Jacobowitz <dan@debian.org>
125
126 From Maciej W. Rozycki <macro@mips.com>:
127 * mips-tdep.c (mips32_next_pc): Check the register's contents,
128 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
129
cea15572
KI
1302004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
131
132 * m32r-tdep.c (decode_prologue): Support functions written
133 in assembler language. Recognize trap instructions as the
134 end of prologue.
135 (m32r_frame_unwind_cache): Ditto.
136 (m32r_skip_prologue): Extend search limit. Quit analyzing
137 prologue if pc's location is not readable.
138
23485554
PH
1392004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
140
141 * Makefile.in (.l.c): Do conversions of names of alloc and free
142 functions that are done for .y.c files, plus special one
143 for yy_flex_realloc. Also, correct missing-file tests here.
144 * ada-lex.l (malloc, free): Remove macros.
145 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
146 xrealloc.
147 (ada_flex_use): Dummy definition to remove warnings about unused
148 functions.
149 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
150 to suppress warning.
151
c0409442
CV
1522004-10-06 Corinna Vinschen <vinschen@redhat.com>
153
154 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
155 RETURN_VALUE.
156 (sh_return_value_fpu): Ditto for CPUs with FPU.
157 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
158 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
159 Install sh_return_value_nofpu resp. sh_return_value_fpu as
160 RETURN_VALUE functions.
161
9bed62d7
CV
1622004-10-06 Corinna Vinschen <vinschen@redhat.com>
163
164 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
165 (sh_pseudo_register_write): Ditto.
166
03131d99
CV
1672004-10-06 Corinna Vinschen <vinschen@redhat.com>
168
169 * sh-tdep.c (IS_MACL_STS): New define.
170 (IS_MOVI20): Ditto.
171 (IS_MACL_LDS): Ditto.
172 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
173 instructions in prologue.
174 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
175 instructions in epilogue.
176
da962468
CV
1772004-10-06 Corinna Vinschen <vinschen@redhat.com>
178
179 * sh-tdep.c (SH_NUM_REGS): Define as 67.
180 (sh_sh_register_name): Add eight empty register names.
181 (sh_sh3_register_name): Ditto.
182 (sh_sh3e_register_name): Ditto.
183 (sh_sh2e_register_name): Ditto.
184 (sh_sh2a_register_name): New function, defining SH2A register set.
185 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
186 in nofpu case.
187 (sh_sh_dsp_register_name): Add eight empty register names.
188 (sh_sh3_dsp_register_name): Ditto.
189 (sh_sh4_register_name): Ditto.
190 (sh_sh4_nofpu_register_name): Ditto.
191 (sh_sh4al_dsp_register_name): Ditto.
192 (sh2a_show_regs): New function.
193 (sh2a_nofpu_show_regs): New function.
194 (sh_sh2a_register_type): New function.
195 (do_bank_register_info): New function.
196 (sh_print_pseudo_register): Call do_bank_register_info.
197 Call sh_print_pseudo_register for valid "bank" register.
198 (sh_sh2a_register_sim_regno): New function.
199 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
200 Increment pseudo register count by one for all sh variants with
201 pseudo registers to accomodate pseudo bank register.
202 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
203 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
204 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
205 Increment pseudo register numbers.
206
1326e61b
CV
2072004-10-06 Corinna Vinschen <vinschen@redhat.com>
208
209 * dwarf2read.c (read_subroutine_type): Call make_function_type
210 instead of lookup_function_type.
211
146c42e3
JB
2122004-10-05 Jim Blandy <jimb@redhat.com>
213
214 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
215 (Previous change missed some uses.)
216
1df84f13
AC
2172004-10-05 Andrew Cagney <cagney@gnu.org>
218
219 * target.h (deprecated_child_ops): Rename child_ops.
220 * wince.c: Update copyright. Rename child_ops.
221 * win32-nat.c: Rename child_ops.
222 * target.c: Rename child_ops.
223 * rs6000-nat.c: Rename child_ops.
224 * linux-nat.c: Rename child_ops.
225 * infttrace.c: Rename child_ops.
226 * inftarg.c: Rename child_ops.
227 * infptrace.c: Rename child_ops.
228 * hppah-nat.c: Update copyright. Rename child_ops.
229 * hpux-thread.c: Update copyright. Rename child_ops.
230
21e3b9b9
DJ
2312004-10-05 Daniel Jacobowitz <dan@debian.org>
232
233 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
234
de83afe7
AC
2352004-10-05 Andrew Cagney <cagney@gnu.org>
236
237 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
238
10b3939b
DJ
2392004-10-05 Daniel Jacobowitz <dan@debian.org>
240
241 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
242 (die_ref_table): Remove.
243 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
244 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
245 the usage of this type.
246 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
247 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
248 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
249 (dwarf2_create_include_psymtab): Update comment.
250 (find_partial_die): Remove third argument. Remove unreachable call
251 to error ().
252 (dwarf2_find_containing_comp_unit): Update comments. Change one
253 assertion to an error. Remove an unreachable error.
254 (dwarf2_find_comp_unit): Update comments.
255 (type_at_offset): Remove dead code.
256 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
257 (store_in_ref_table): Add CU argument.
258 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
259 inter-compilation-unit references.
260 (load_full_comp_unit, process_full_comp_unit): New functions, based
261 on psymtab_to_symtab_1.
262 (psymtab_to_symtab_1): Use them.
263 (dwarf2_add_dependence): New function.
264 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
265 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
266 (partial_die_parent_scope, guess_structure_name): Update for changes
267 to find_partial_die.
268 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
269 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
270 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
271 (read_die_and_children): Update call to store_in_ref_table.
272 (do_free_die_list_cleanup): Remove.
273 (fixup_partial_die): Update for changes to find_partial_die.
274 (read_full_die): Handle queueing absolute references.
275 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
276 (dwarf2_attr, die_specification, die_type)
277 (die_containing_type, dwarf2_extension): Update calls to
278 follow_die_ref.
279 (dump_die): Update DW_FORM_ref* handling.
280 (dwarf2_get_ref_die_offset): Likewise.
281 (free_one_comp_unit): Release the dies list.
282 (dwarf2_mark_helper): New function.
283 (dwarf2_mark): Use it.
284
998bdd68
MK
2852004-10-05 Mark Kettenis <kettenis@jive.nl>
286
287 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
288 when writing to memory.
289
14588880
KI
2902004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
291
292 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
293 (m32r_extract_struct_value_address): Delete function.
294 (m32r_return_value): New function.
295 (m32r_gdbarch_init): Instead of store_return_value,
296 extract_return_value, deprecated_extract_struct_value_address
297 and deprecated_use_struct_convention, set return_value.
298
dd5e6932
DJ
2992004-10-03 Daniel Jacobowitz <dan@debian.org>
300
301 * dwarf2read.c (read_subrange_type): Add comment for variable
302 sized arrays.
303
7dc1ef8d
PH
3042004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
305
306 * Makefile.in (.l.c): Modify rule for compatibility with recent
307 versions of flex, and remove most command-line options.
308 * ada-lex.l: Add %options line in place of -I -i and -s command-line
309 options.
310
1f8173e6
PH
3112004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
312
313 Turn on initial Ada support (mainly expression evaluation).
314
315 * Makefile.in (SFILES): Remove ada-tasks.c.
316 (HFILES_NO_SRCDIR): Add ada-lang.h.
317 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
318 (YYOBJ): Add ada-exp.o.
319 (rule .l.c): Generalize to not mention ada.
320 * symtab.c: Include ada-lang.h.
321 (symbol_natural_name, symbol_demangled_name)
322 (symbol_search_name): Add Ada case.
323
cb85a953
AC
3242004-10-01 Andrew Cagney <cagney@gnu.org>
325
3f3db248
AC
326 * Makefile.in (COMMON_OBS): Add inf-child.o.
327 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
328 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
329 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
330 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
331 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
332 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
333 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
334 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
335 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
336 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
337 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
338 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
339 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
340
cb85a953
AC
341 * target.c (xfer_using_stratum): Change return type to LONGEST.
342 On each iteration offset, readbuf and writebuf.
343 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
344 partial_length, and read/modify/write predicate, update comments.
345 Pass buffer.word to ptrace write.
346
963a6417
PH
3472004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
348
349 * symfile.c (init_filename_language_table): Add extensions for
350 Ada.
351 * defs.h (enum language): Add language_ada.
352 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
353 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
354 (add_symbols_from_enclosing_procs): Make a no-op for now.
355 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
356 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
357 (find_line_in_linetable, find_next_line_in_linetable)
358 (read_all_symtabs, is_plausible_func_for_line)
359 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
360 (is_runtime_sym_defined, check_size): Remove declaration.
361 (function_name_from_pc, ada_translate_error_message)
362 (ada_lookup_minimal_symbol): Remove definition.
363 (ada_add_block_symbols): Remove useless label.
364 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
365 useless declaration.
366 (ada_is_exception_sym): Likewise.
367
9b32d526
KI
3682004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
369
370 Add m32r-linux support.
371 * configure.tgt: Add m32r*-*-linux*.
372 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
373 and m32r-linux-tdep.c.
374 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
375 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
376 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
377 m32r-linux-tdep.c.
378 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
379 config/m32r/linux.mh, config/m32r/linux.mt,
380 config/m32r/nm-linux.h: New files.
381
2de118d3
JB
3822004-09-30 Joel Brobecker <brobecker@gnat.com>
383
384 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
385 (mips32_fetch_instruction): Remove, unused.
386
a9fe69d1
JB
3872004-09-30 Joel Brobecker <brobecker@gnat.com>
388
389 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
390 conditions that will always be true.
391
bc8ffc12
MK
3922004-09-30 Mark Kettenis <kettenis@gnu.org>
393
ba0cd111
MK
394 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
395 (vaxbsd_fetch_inferior_registers): Rename from
396 fetch_inferior_registers. Make static.
397 (vaxbsd_store_inferior_registers): Rename from
398 store_inferior_registers. Make static.
399 (_initialize_vaxbsd_nat): Construct and add target vector.
400 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
401 inftarg.o. Add inf-child.o and inf-ptrace.o.
402 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
403 inftarg.o. Add inf-child.o and inf-ptrace.o.
404 (NAT_FILE): Remove.
405 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
406 inftarg.o. Add inf-child.o and inf-ptrace.o.
407 (NAT_FILE): Remove.
408 * Makefile.in (vaxbsd-nat.o): Update dependencies.
409
bc8ffc12
MK
410 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
411 (m88kbsd_fetch_inferior_registers): Rename from
412 fetch_inferior_registers. Make static.
413 (m88kbsd_store_inferior_registers): Rename from
414 store_inferior_registers. Make static.
415 (_initialize_m88kbsd_nat): New prototype and function.
416 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
417 inftarg.o. Add inf-child.o and inf-ptrace.o.
418 (NAT_FILE): Remove.
419 * Makefile.in (m88kbsd-nat.o): Update dependencies.
420
27394598
AC
4212004-09-30 Andrew Cagney <cagney@gnu.org>
422
423 * target.c (target_xfer_partial): New function.
424 (target_read_memory_partial, target_write_memory_partial)
425 (default_xfer_partial, target_read_partial, target_write_partial)
426 (xfer_using_stratum): Use.
427 (debug_to_xfer_partial): Delete function.
428 (setup_target_debug): Do not override to_xfer_partial.
429
74a4fe32
MK
4302004-09-30 Mark Kettenis <kettenis@chello.nl>
431
432 * fork-child.c: Update copyright year. Fix coding style.
433
982526a1
MK
4342004-09-29 Mark Kettenis <kettenis@gnu.org>
435
436 * defs.h (msavestring, mstrsave): Remove prototypes.
437 * utils.c (msavestring, mstrsave): Remove functions.
438 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
439 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
440 of mstrsave.
441 * source.c (find_and_open_source): Use xstrdup instead of
442 mstrsave.
443
b8eb5af0
AC
4442004-09-30 Andrew Cagney <cagney@gnu.org>
445
0779438d
AC
446 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
447 (inf_ptrace_xfer_memory): Delete.
448 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
449 (target_read_memory, target_write_memory): Use xfer_using_stratum
450 when target_xfer_partial_p.
451 (debug_target): Move to start of file.
452 (target_read_memory_partial, target_write_memory_partial): Use
453 to_xfer_partial when target_xfer_partial_p.
454
f929a579
AC
455 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
456 inf_ptrace_xfer_memory with equivalent code.
457 * inftarg.c (child_xfer_partial): When performing a write, pass
458 writebuf to child_xfer_memory.
459
b8eb5af0
AC
460 * target.c (target_read_string): Use target_read_memory instead of
461 target_xfer_memory.
462
ee21b650
AC
4632004-09-29 Andrew Cagney <cagney@gnu.org>
464
d3e05d0d
AC
465 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
466 the address of status.
467
ee21b650
AC
468 * infptrace.c (ptrace_wait): Mention problem with HPUX.
469 (kill_inferior): Inline ptrace_wait call.
470 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
471 * inftarg.c (child_wait): Inline ptrace_wait call.
472
a182eed6
AC
473 * target.h (struct target_ops): Delete field to_post_wait.
474 (target_post_wait): Delete macro.
475 (child_post_wait): Delete declaration.
476 * target.c (update_current_target, update_current_target)
477 (debug_to_post_wait, setup_target_debug): Delete functions and
478 references.
479 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
480 * inftarg.c (child_post_wait): Delete.
481 (init_child_ops): Do not set to_post_wait.
482 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
483 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
484 * inf-child.c (inf_child_post_wait): Delete.
485 (inf_child_target): Do not set to_post_wait.
486 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
487 (inf_ptrace_target): Do not set to_post_wait.
488
ba0c540b
AC
489 * wince.c (child_ops): Delete.
490 * win32-nat.c (child_ops): Delete.
491
81977402
AC
492 * inftarg.c (inftarg_set_find_memory_regions)
493 (inftarg_set_make_corefile_notes): Delete functions.
494 (_initialize_linux_nat): Inline calls.
495
5ac10fd1
AC
496 * target.h (child_ops): Declare.
497 * inftarg.c (child_ops): Move from here ...
498 * target.c (child_ops): ... to here.
499 * wince.c (child_ops): Delete extern declaration.
500 * win32-nat.c (child_ops): Delete extern declaration.
501 * linux-nat.c (child_ops): Delete extern declaration.
502 * hpux-thread.c (child_ops): Delete extern declaration.
503
663408c2 5042004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
505
506 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
507
0dad8a66
MK
5082004-09-28 Mark Kettenis <kettenis@gnu.org>
509
510 * configure.in: Only set host_makefile_frag when building a native
511 debugger.
512 * configure: Regenerate.
e8d74ed3
MK
513
514 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
515 for OpenBSD ELF.
516
dba24537
AC
5172004-09-28 Andrew Cagney <cagney@gnu.org>
518
e979516b
AC
519 Problem identified by Paul Hilfinger.
520 * Makefile.in (ada_lex_c): Define.
521 (ada-lex.o): Delete rule.
522
dba24537
AC
523 * linux-proc.c: Delete file.
524 * Makefile.in: Update.
525 * config/sparc/linux64.mh (NATDEPFILES):
526 * config/sparc/linux.mh (NATDEPFILES): Update.
527 * config/s390/s390.mh (NATDEPFILES): Update.
528 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
529 * config/powerpc/linux.mh (NATDEPFILES): Update.
530 * config/pa/linux.mh (NATDEPFILES): Update.
531 * config/mips/linux.mh (NATDEPFILES): Update.
532 * config/m68k/linux.mh (NATDEPFILES): Update.
533 * config/ia64/linux.mh (NATDEPFILES): Update.
534 * config/i386/linux64.mh (NATDEPFILES): Update.
535 * config/i386/linux.mh (NATDEPFILES): Update.
536 * config/arm/linux.mh (NATDEPFILES): Update.
537 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
538 * linux-nat.c: Update copyright. Include <sys/param.h>,
539 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
540 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
541 (O_LARGEFILE): Possibly define.
542 (_initialize_linux_nat, linux_proc_pending_signals)
543 (add_line_to_sigset, linux_proc_xfer_memory)
544 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
545 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
546 (struct linux_corefile_thread_data)
547 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
548 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
549
d6b0e80f
AC
5502004-09-16 Andrew Cagney <cagney@gnu.org>
551
552 * lin-lwp.c: Delete file.
553 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
554 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
555 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
556 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
557 (linux_nat_attach, detach_callback, linux_nat_detach)
558 (resume_callback, resume_clear_callback, linux_nat_resume)
559 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
560 (stop_wait_callback, linux_nat_has_pending, flush_callback)
561 (status_callback, running_callback, count_events_callback)
562 (select_singlestep_lwp_callback, select_event_lwp_callback)
563 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
564 (child_wait, stop_and_resume_callback, linux_nat_wait)
565 (kill_callback, kill_wait_callback, linux_nat_kill)
566 (linux_nat_create_inferior, linux_nat_mourn_inferior)
567 (linux_nat_xfer_memory, linux_nat_thread_alive)
568 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
569 (_initialize_linux_nat): New functions.
570 * Makefile.in: Update all dependencies.
571 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
572 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
573 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
574 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
575 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
576 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
577 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
578 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
579 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
580 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
581 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
582 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
583 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
584
5a174d79
MK
5852004-09-27 Mark Kettenis <kettenis@gnu.org>
586
2f604c28
MK
587 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
588 config/i386/obsd64.mh (NAT_FILE): Remove variable.
589
5a174d79
MK
590 * configure.in: Don't comment out NATDEPFILES in the generated
591 Makefile if NAT_FILE is unset.
592 * configure: Regenerate.
593
b2ed1746
AC
5942004-09-27 Andrew Cagney <cagney@gnu.org>
595
44cbf7b5
AC
596 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
597 (insert_step_resume_breakpoint): Delete.
598 (insert_step_resume_breakpoint_at_frame): New function.
599 (insert_step_resume_breakpoint_at_sal): New function.
600 (handle_inferior_event, step_into_function)
601 (insert_step_resume_breakpoint): Simplify by using same.
602
b2ed1746
AC
603 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
604
3691b3be
MK
6052004-09-26 Mark Kettenis <kettenis@gnu.org>
606
36f391e8
MK
607 * fbsd-proc.c: Remove file.
608 * Makefile.in (fbsd-proc.o): Remove dependency.
609
771e236c
MK
610 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
611 code together.
612
3691b3be
MK
613 * config/i386/nm-fbsd64.h: Remove file.
614 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
615
6a5c78a3
MK
6162004-09-26 Mark Kettenis <kettenis@gnu.org>
617
618 * amd64-nat.h: Update copyright year.
619 (amd64bsd_target): New prototype.
620 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
621 (amd64bsd_target): New function.
622 (amd64bsd_fetch_inferior_registers): Rename from
623 fetch_inferior_registers. Make static.
624 (amd64bsd_store_inferior_registers): Rename from
625 store_inferior_registers. Make static.
626 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
627 (_initialize_amd64fbsd_nat): Construct and add target vector.
628 * amd64nbsd-nat.o: Include "target.h".
629 (_initialize_amd64nbsd_nat): Construct and add target vector.
630 * amd64obsd-nat.c: Include "target.h".
631 (_initialize_amd64obsd_nat): Construct and add target vector.
632 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
633 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
634 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
635 fbsd-nat.o.
636 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
637 Remove infptrace.o and inftarg.o. Add inf-child.o and
638 inf-ptrace.o.
639 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
640 (amd64obsd-nat.o): Update dependencies.
641
27acbe61
MK
6422004-09-25 Mark Kettenis <kettenis@gnu.org>
643
509a5e7d
MK
644 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
645 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
646 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
647 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
648 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
649
6e1e94ea
MK
650 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
651 Inline attach call.
652 (inf_ptrace_detach): Inline detach call.
653
8b9cf735
MK
654 * configure.in: Check for waddstr instead of mvwaddstr when
655 searching for curses library. Check for wborder.
656 * configure, config.in: Regenerate.
657 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
658 available.
659
27acbe61
MK
660 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
661
b96ec7ac
AC
6622004-09-24 Robert Picco <Robert.Picco@hp.com>
663
664 Committed by Andrew Cagney.
665 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
666 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
667 configuration.
668 (fetch_register_using_p): Implement 'p' packet. Based on code by
669 Fernando Nasser.
670 (remote_fetch_registers): Call fetch_register_using_p.
671 (init_all_packet_configs, show_remote_cmd)
672 (_initialize_remote): Add p-packet.
673
62ece330
MK
6742004-09-24 Mark Kettenis <kettenis@gnu.org>
675
676 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
677 instead of call_ptrace. Call wait directly instead of
678 ptrace_wait.
679 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
680 (inf_ptrace_wait): Inline ptrace_wait call.
681
00937274
PH
6822004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
683
684 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
685 rolled back instead.
686
3f2c7a45
PH
6872004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
688
689 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
690 the new argument order.
691
b6fcb393
CV
6922004-09-23 Corinna Vinschen <vinschen@redhat.com>
693
694 * MAINTAINERS: Remove "broken" from XStormy16 entry.
695 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
696 (struct gdbarch_tdep): Remove.
697 (struct xstormy16_frame_cache): New frame cache structure.
698 (xstormy16_register_byte, xstormy16_register_raw_size)
699 (xstormy16_reg_virtual_type, xstormy16_register_type)
700 (xstormy16_push_arguments, xstormy16_push_return_address)
701 (xstormy16_pop_frame, xstormy16_store_struct_return)
702 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
703 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
704 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
705 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
706 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
707 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
708 (xstormy16_use_struct_convention): Drop gcc_p parameter.
709 (xstormy16_extract_return_value, xstormy16_store_return_value):
710 Regcachify. Drop useless struct convention handling.
711 (xstormy16_register_type, xstormy16_return_value)
712 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
713 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
714 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
715 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
716 (xstormy16_unwind_sp, xstormy16_unwind_pc)
717 (xstormy16_unwind_dummy_id) : New functions.
718 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
719 of xstormy16_scan_prologue.
720 (xstormy16_frame_unwind): New frame_unwind structure.
721 (xstormy16_frame_base): New frame_base structure.
722 (xstormy16_gdbarch_init): Accomodate all of the above changes.
723 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
724
1285b746
MK
7252004-09-22 Mark Kettenis <kettenis@gnu.org>
726
727 * language.c (language_gdbarch_post_init): Fix off-by one error.
728
1c379e20
DJ
7292004-09-21 Daniel Jacobowitz <dan@debian.org>
730
731 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
732 (struct dwarf2_offset_and_type): New.
733 (set_die_type, reset_die_and_siblings_types, get_die_type)
734 (offset_and_type_hash, offset_and_type_eq): New functions.
735 (read_structure_type, read_enumeration_type, read_array_type)
736 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
737 (read_tag_reference_type, read_tag_const_type)
738 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
739 (read_typedef, read_base_type, read_subrange_type): Use
740 set_die_type.
741
ae038cb0
DJ
7422004-09-20 Daniel Jacobowitz <dan@debian.org>
743
744 * Makefile.in (dwarf2read.o): Update dependencies.
745 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
746 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
747 and read_in_chain.
748 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
749 mark, and has_form_ref_addr.
750 (struct dwarf2_per_cu_data): New.
751 (dwarf2_max_cache_age): New.
752 (dwarf2_build_psymtabs_hard): Free cached compilation units
753 after loading. Create and manage the list of compilation units.
754 Remove unnecessary NULL initialization. Fix indentation.
755 (psymtab_to_symtab_1): Initialize all of CU.
756 (dwarf2_read_abbrevs): Set has_form_ref_addr.
757 (find_partial_die): Use dwarf2_find_containing_comp_unit
758 and load_comp_unit.
759 (free_stack_comp_unit): Update comments. Clear the per-cu
760 pointer. Handle aging.
761 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
762 (age_cached_comp_units, free_one_cached_comp_unit)
763 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
764 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
765 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
766 (show_dwarf2_cmd): New.
767 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
768 and "maint show dwarf2 max-cache-age".
769 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
770 externs.
771 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
772 global.
773
987504bb
JJ
7742004-09-20 Jeff Johnston <jjohnstn@redhat.com>
775
776 * dwarf2read.c (typename_concat): Change prototype to accept obstack
777 and dwarf2_cu struct pointer as arguments. Change function to use
778 obstack if provided and use dwarf2_cu to determine language-specific
779 separator.
780 (partial_die_parent_scope): Change comment to include java. Use
781 new version of typename_concat instead of obconcat.
782 (partial_die_full_name): Use typename_concat.
783 (read_namespace): Ditto.
784 (read_enumeration_type): Use typename_concat instead of obconcat.
785 (new_symbol): Ditto.
786 (add_partial_symbol): Enhance tests for C++ to also test for Java.
787 (guess_structure_name): Ditto.
788 (read_subroutine_type): Ditto.
789 (read_structure_type): Ditto.
790 (is_vtable_name): Add Java support.
791 (determine_class_name): Switch to new typename_concat call.
792 (determine_prefix): Switch to new typename_concat call.
793 * jv-exp.y (FuncStart): New pattern.
794 (MethodInvocation): Add support for simple function calls. Change
795 warning message for other forms of inferior call currently not
796 supported.
797 * valarith.c (value_subscript): Treat an array with upper-bound
798 of -1 as unknown size.
799
d9c8471e
DJ
8002004-09-20 Daniel Jacobowitz <dan@debian.org>
801
802 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
803 (lookup_partial_symtab): Use symtab_to_fullname.
804
d73f140a
JB
8052004-09-19 Jim Blandy <jimb@redhat.com>
806
807 * minsyms.c (lookup_minimal_symbol): Doc fix.
808
adbef1f0
AC
8092004-09-20 Andrew Cagney <cagney@gnu.org>
810
811 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
812 CHILD_RESUME.
813 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
814 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
815 KILL_INFERIOR.
816 * infptrace.c: Update.
817
d092d1a2
DJ
8182004-09-19 Daniel Jacobowitz <dan@debian.org>
819
820 * symtab.c (output_source_filename): Mark first argument as const.
821 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
822 for "info sources" output.
823
86d9e1d7
MK
8242004-09-20 Mark Kettenis <kettenis@gnu.org>
825
826 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
827 <machine/vmparam.h>.
828 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
829 (register_u_addr): Remove prototype.
830
9a6c8ef4
MK
8312004-09-19 Mark Kettenis <kettenis@gnu.org>
832
9692934b
MK
833 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
834 (i386bsd_fetch_inferior_registers): Rename from
835 fetch_inferior_registers. Make static.
836 (i386bsd_store_inferior_registers): Rename from
837 store_inferior_registers. Make static.
838 (i386bsd_target): New function.
839 * i386bsd-nat.h: New file.
840 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
841 "i386bsd-nat.h".
842 (i386fbsd_resume): Rename from child_resume. Make static.
843 (_initialize_i386fbsd_nat): Construct and add target vector.
844 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
845 (_initialize_i386nbsd_nat): Construct and add target vector.
846 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
847 Remove defines.
848 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
849 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
850 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
851 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
852 (LOADLIBES): New variable.
853 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
854 inf-ptrace.o. Remove inftarg.o.
855 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
856 inf-ptrace.o. Remove inftarg.o.
857 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
858 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
859 (LOADLIBES): New variable.
860 * Makefile.in (i386bsd_nat_h): New variable.
861 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
862 dependencies.
863
3510d1f2
MK
864 * sparc64nbsd-tdep.c: Include "objfiles.h".
865 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
866 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
867 svr4_lp64_fetch_link_map_offsets.
868 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
869 "nbsd-tdep.h".
870 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
871 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
872 svr4_lp64_fetch_link_map_offsets.
873 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
874 dependencies.
875
578c1c03
MK
876 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
877 * fbsd-nat.h: New file.
878 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
879 (fbsd_nat_h): New variable.
880 (fbsd-nat.o): New dependency.
881
7a7b73b7
MK
882 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
883 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
884
9a6c8ef4
MK
885 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
886 comment.
887
72d5681a
PH
8882004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
889
890 * ada-exp.y (type_int): New function to add layer of abstraction
891 around references to expression types.
892 (type_long): Ditto.
893 (type_long_long): Ditto.
894 (type_float): Ditto.
895 (type_double): Ditto.
896 (type_long_double): Ditto.
897 (type_char): Ditto.
898 (type_system_address): Ditto.
899 (simple_exp): Use type_* functions in place of builtin_*
900 variables.
901 (exp): Ditto.
902 (write_var_from_name): Ditto.
903 (write_object_renaming): Ditto.
904 * ada-lang.c (ada_create_fundamental_type): Remove redundant
905 declaration.
906 (build_ada_types): Remove, replacing with...
907 (ada_language_arch_info): New function to initialize primitive
908 type vector in language_arch_info.
909 (ada_array_length): Remove use of builtin_type_ada_int.
910 (value_pos_atr): Ditto.
911 (ada_evaluate_subexp): Ditto.
912 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
913 builtin_type_ada_long_long, builtin_type_ada_char,
914 builtin_type_ada_float, builtin_type_ada_double,
915 builtin_type_ada_long_double, builtin_type_ada_natural,
916 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
917 (ada_builtin_types): Remove.
918 (ada_language_defn): Remove entries for la_builtin_type_vector and
919 string_char_type and use ada_language_arch_info.
920 (_initialize_ada_language): Do type-vector initialization along
921 the lines of c-lang.c.
922 (ada_create_fundamental_type): Break up line.
923 (ada_dump_symtab): Remove unused function.
924 (enum ada_primitive_types): Define.
925 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
926 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
927 builtin_type_ada_float, builtin_type_ada_double,
928 builtin_type_ada_long_double, builtin_type_ada_natural,
929 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
930 * ada-lex.l: Use type_* functions in place of builtin_* variables.
931 (processInt): Ditto.
932 (processReal): Ditto.
933 (name_lookup): Ditto.
934 * ada-typeprint.c (print_range): Use builtin_type_int, not
935 builtin_type_ada_int.
936
4f0be353
MK
9372004-09-18 Mark Kettenis <kettenis@gnu.org>
938
30b0e2d8
MK
939 * i386-tdep.c (i386_register_name): Rename regno to regnum.
940
4f0be353
MK
941 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
942 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
943 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
944 * configure.in: Improve checks for curses library by checking for
945 mvwaddstr instead of initscr. Drop HP curses in favour of
946 standard curses on HP-UX.
947 * configure: Regenerated.
948
72d5681a 9492004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
950
951 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
952 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
953 Minor formatting changes.
954 (empty_array): Slight rewrite for formatting.
955 (emit_char,parse,ada_language_defn,build_ada_types,
956 ada_is_exception_sym, _initialize_ada_language): Move
957 definitions around.
958 (ada_dump_symtab): Remove unused definition.
959 (ada_maybe_exception_partial_symbol): Remove unused definition.
960
1c8c7407
AC
9612004-09-16 Andrew Cagney <cagney@gnu.org>
962
7681f339
AC
963 * inf-child.c: Include "gdb_string.h".
964 (inf_child_core_file_to_sym_file): Delete.
965 (inf_child_target): Set to_fetch_registers and to_store_registers.
966 * inf-ptrace.c: Include "gdb_string.h".
967 * Makefile.in: Update all dependencies.
968
1c8c7407
AC
969 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
970 problem.
971
65596487
JB
9722004-09-14 Joel Brobecker <brobecker@gnat.com>
973
974 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
975 call to heuristic_proc_desc. Remove code that became redundant
976 as a consequence.
977 (read_next_frame_reg): Remove special case for SP_REGNUM.
978 (set_reg_offset): Fix small typo.
979 (reset_saved_regs): New procedure.
980 (mips32_heuristic_proc_desc): No longer compute a fake
981 procedure descriptor. Compute the full frame cache instead.
982 Some minor comment reformatting.
983
95575b2e
AC
9842004-09-14 Andrew Cagney <cagney@gnu.org>
985
f200c492
AC
986 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
987 maintainer.
988
95575b2e
AC
989 * thread-db.c (thread_db_new_objfile): Assume that there is a
990 child process.
991
69657671
JB
9922004-09-13 Jim Blandy <jimb@redhat.com>
993
994 * valops.c (value_assign): Move 'buffer' to the enclosing block,
995 so that its storage isn't referenced after its lifetime ends.
996
6c4182dd
JB
997 * valops.c (value_assign): 'use_buffer' is initialized to zero,
998 and never assigned to. Delete it, and the 'if (use_buffer)'
999 clauses. Delete 'raw_buffer', since it is now unused.
1000
ee31a58d
AC
10012004-09-13 Andrew Cagney <cagney@gnu.org>
1002
2c0fc042
AC
1003 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1004 * configure: Re-generate.
1005 * nlm/Makefile.in (TAGS): Update.
1006 * Makefile.in (TAGS): Update.
1007 * config/vax/nbsd.mt (TM_FILE): Update.
1008 * config/sparc/vxworks.mt (TM_FILE): Update.
1009 * config/sparc/sol2.mt (TM_FILE): Update.
1010 * config/sparc/sol2-64.mt (TM_FILE): Update.
1011 * config/sparc/obsd64.mt (TM_FILE): Update.
1012 * config/sparc/obsd.mt (TM_FILE): Update.
1013 * config/sparc/nbsd64.mt (TM_FILE): Update.
1014 * config/sparc/nbsd.mt (TM_FILE): Update.
1015 * config/sparc/linux64.mt (TM_FILE): Update.
1016 * config/sparc/linux.mt (TM_FILE): Update.
1017 * config/sparc/fbsd.mt (TM_FILE): Update.
1018 * config/sh/wince.mt (TM_FILE): Update.
1019 * config/sh/nbsd.mt (TM_FILE): Update.
1020 * config/sh/linux.mt (TM_FILE): Update.
1021 * config/sh/embed.mt (TM_FILE): Update.
1022 * config/s390/s390.mt (TM_FILE): Update.
1023 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1024 * config/rs6000/rs6000.mt (TM_FILE): Update.
1025 * config/rs6000/aix4.mt (TM_FILE): Update.
1026 * config/powerpc/vxworks.mt (TM_FILE): Update.
1027 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1028 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1029 * config/powerpc/obsd.mt (TM_FILE): Update.
1030 * config/powerpc/nbsd.mt (TM_FILE): Update.
1031 * config/powerpc/linux.mt (TM_FILE): Update.
1032 * config/powerpc/aix.mt (TM_FILE): Update.
1033 * config/pa/obsd.mt (TM_FILE): Update.
1034 * config/pa/linux.mt (TM_FILE): Update.
1035 * config/pa/hppahpux.mt (TM_FILE): Update.
1036 * config/pa/hppa64.mt (TM_FILE): Update.
1037 * config/pa/hppa.mt (TM_FILE): Update.
1038 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1039 * config/mips/wince.mt (TM_FILE): Update.
1040 * config/mips/vxmips.mt (TM_FILE): Update.
1041 * config/mips/nbsd.mt (TM_FILE): Update.
1042 * config/mips/linux.mt (TM_FILE): Update.
1043 * config/mips/irix6.mt (TM_FILE): Update.
1044 * config/mips/irix5.mt (TM_FILE): Update.
1045 * config/mips/embed.mt (TM_FILE): Update.
1046 * config/m68k/vxworks68.mt (TM_FILE): Update.
1047 * config/m68k/st2000.mt (TM_FILE): Update.
1048 * config/m68k/os68k.mt (TM_FILE): Update.
1049 * config/m68k/obsd.mt (TM_FILE): Update.
1050 * config/m68k/nbsd.mt (TM_FILE): Update.
1051 * config/m68k/monitor.mt (TM_FILE): Update.
1052 * config/m68k/linux.mt (TM_FILE): Update.
1053 * config/m68k/cisco.mt (TM_FILE): Update.
1054 * config/ia64/linux.mt (TM_FILE): Update.
1055 * config/ia64/aix.mt (TM_FILE): Update.
1056 * config/ia64/ia64.mt (TM_FILE): Update.
1057 * config/i386/vxworks.mt (TM_FILE): Update.
1058 * config/i386/obsd64.mt (TM_FILE): Update.
1059 * config/i386/obsd.mt (TM_FILE): Update.
1060 * config/i386/nto.mt (TM_FILE): Update.
1061 * config/i386/nbsd64.mt (TM_FILE): Update.
1062 * config/i386/nbsd.mt (TM_FILE): Update.
1063 * config/i386/linux64.mt (TM_FILE): Update.
1064 * config/i386/linux.mt (TM_FILE): Update.
1065 * config/i386/i386sol2.mt (TM_FILE): Update.
1066 * config/i386/i386lynx.mt (TM_FILE): Update.
1067 * config/i386/fbsd64.mt (TM_FILE): Update.
1068 * config/i386/fbsd.mt (TM_FILE): Update.
1069 * config/i386/cygwin.mt (TM_FILE): Update.
1070 * config/h8300/h8300.mt (TM_FILE): Update.
1071 * config/frv/frv.mt (TM_FILE): Update.
1072 * config/cris/cris.mt (TM_FILE): Update.
1073 * config/arm/wince.mt (TM_FILE): Update.
1074 * config/arm/nbsd.mt (TM_FILE): Update.
1075 * config/arm/linux.mt (TM_FILE): Update.
1076 * config/arm/embed.mt (TM_FILE): Update.
1077 * config/alpha/nbsd.mt (TM_FILE): Update.
1078 * config/alpha/fbsd.mt (TM_FILE): Update.
1079 * config/alpha/alpha.mt (TM_FILE): Update.
1080 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1081 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1082
362646f5
AC
1083 Eliminate event_loop_p, always has the value 1.
1084 * defs.h (event_loop_p): Delete macro.
1085 * breakpoint.c (until_break_command): Simplify.
1086 * utils.c (prompt_for_continue): Simplify.
1087 * tracepoint.c (read_actions): Simplify.
1088 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1089 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1090 (set_prompt, init_main): Simplify.
1091 (init_signals, disconnect): Delete, unused.
1092 * remote.c (remote_async_resume)
1093 (extended_remote_async_create_inferior): Simplify.
1094 * mi/mi-interp.c (mi_input): Delete, unused.
1095 (mi_interpreter_resume, mi_command_loop): Simplify.
1096 * interps.c (current_interp_command_loop): Simplify.
1097 * infrun.c (proceed): Simplify.
1098 * infcmd.c (run_command, continue_command, step_1, jump_command)
1099 (until_command, advance_command, finish_command)
1100 (interrupt_target_command): Simplify.
1101 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1102
ee31a58d
AC
1103 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1104 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1105 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1106 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1107 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1108 * mips-tdep.c (mips_dump_tdep): Do not print same.
1109
b7ffc4a8
AC
11102004-09-12 Andrew Cagney <cagney@gnu.org>
1111
2bfb72ee
AC
1112 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1113 const.
1114 * Makefile.in (valprint.o): Delete explict rule.
1115
4f17c3c1
AC
1116 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1117 reported by Dave Anderson.
1118
f810308b
AC
1119 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1120
b7ffc4a8
AC
1121 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1122
28b41c52
AC
11232004-09-12 Salvador E. Tropea <set@users.sf.net>
1124 Andrew Cagney <cagney@gnu.org>
1125
1126 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1127 (mi_cmd_data_list_register_values)
1128 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1129 the register number computation.
1130
5bf970f9
AC
11312004-09-12 Andrew Cagney <cagney@gnu.org>
1132
1133 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1134 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1135 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1136 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1137 target.
1138 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1139 inf-ptrace.o and inf-child.o.
1140 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1141 * Makefile.in: Update dependencies.
1142
0759e0bf
AC
11432004-09-11 Andrew Cagney <cagney@gnu.org>
1144
1145 * language.c (hex_string, hex_string_custom): Move from here ...
1146 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1147 (CELLSIZE): Increase to 50.
1148 * language.h (hex_string, hex_string_custom): Move from here ...
1149 * defs.h: ... to here.
1150 * Makefile.in: Update all dependencies.
1151
bb599908
PH
11522004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1153
1154 * language.c (local_hex_format_custom): Remove.
1155 (local_hex_string): Rename to hex_string, use C format, and move to
1156 utils.c
1157 (local_hex_string_custom): Rename to hex_string_custom and change
1158 interface. Now uses C format. Move to utils.c
1159 (local_octal_format_custom): Remove.
1160 (local_decimal_format_custom): Remove.
1161 (unknown_language_defn): Remove language-specific number
1162 formatting entries.
1163 (auto_language_defn): Ditto.
1164 (local_language_defn): Ditto.
1165 * language.h (struct language_format_info): Delete declaration.
1166 (struct language_defn): Remove language_format_info fields
1167 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1168 (local_binary_format): Remove macro.
1169 (local_binary_format_prefix): Remove macro.
1170 (local_binary_format_specifier): Remove macro.
1171 (local_binary_format_suffix): Remove macro.
1172 (local_octal_format): Remove macro.
1173 (local_octal_format_prefix): Remove macro.
1174 (local_octal_format_specifier): Remove macro.
1175 (local_octal_format_suffix): Remove macro.
1176 (local_decimal_format): Remove macro.
1177 (local_decimal_format_prefix): Remove macro.
1178 (local_decimal_format_specifier): Remove macro.
1179 (local_decimal_format_suffix): Remove macro.
1180 (local_hex_format): Remove macro.
1181 (local_hex_format_prefix): Remove macro.
1182 (local_hex_format_specifier): Remove macro.
1183 (local_hex_format_suffix): Remove macro.
1184 (local_decimal_format_custom): Remove.
1185 (local_octal_format_custom): Remove.
1186 (local_hex_format_custom): Remove.
1187 (local_hex_string): Rename to hex_string and move to defs.h.
1188 (local_hex_string_custom): Rename to hex_string_custom, change
1189 interface, and move to defs.h.
1190 * utils.c: (int_string): New function.
1191 (hex_string): New function (from language.c).
1192 (hex_string_custom): New function (from language.c).
1193 (octal2str): New function.
1194 (decimal2str): Add width parameter.
1195 (paddr_u): Use new decimal2str interface.
1196 (paddr_d): Ditto.
1197 * defs.h (hex_string): Declare.
1198 (hex_string_custom): Declare.
1199 (int_string): Declare.
1200 * printcmd.c (print_scalar_formatted): Remove localized binary
1201 formatting.
1202 * valprint.c (print_longest): Use int_string.
1203 (print_floating): Use C hex format.
1204 (print_hex_chars): Ditto.
1205 (print_binary_chars): Remove language-specific formatting.
1206 (print_octal_chars): Use C octal format.
1207 (print_decimal_chars): Delocalize format.
1208 (print_decimal): Remove.
1209 * ada-lang.c (ada_language_defn): Remove language-specific number
1210 formatting entries.
1211 * p-lang.c (pascal_language_defn): Ditto.
1212 * c-lang.c (c_language_defn): Ditto.
1213 (cplus_language_defn): Ditto.
1214 (asm_language_defn): Ditto.
1215 (minimal_language_defn): Ditto.
1216 * f-lang.c (f_language_defn): Ditto.
1217 * jv-lang.c (java_language_defn): Ditto.
1218 * m2-lang.c (m2_language_defn): Ditto.
1219 * scm-lang.c (scm_language_defn): Ditto.
1220 * objc-lang.c (objc_language_defn): Ditto.
1221 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1222 new interface.
1223 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1224 * ui-out.c (ui_out_field_core_addr): Ditto.
1225 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1226 * exec.c (print_section_info): Ditto.
1227 * i387-tdep.c (print_i387_status_word): Ditto.
1228 (print_i387_control_word): Ditto.
1229 (i387_print_float_info): Ditto.
1230 * maint.c (maint_print_section_info): Ditto.
1231 * solib.c (info_sharedlibrary_command): Ditto.
1232 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1233 * symtab.c (print_msymbol_info): Ditto.
1234 * tracepoint.c (tracepoints_info): Ditto.
1235 * solib-frv.c (lm_base): Ditto.
1236 (frv_current_sos): Ditto.
1237 (enable_break2): Ditto.
1238 (enable_break): Ditto.
1239 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1240 (process_one_symbol): Ditto.
1241 * infcmd.c (program_info): Ditto.
1242 * mdebugread.c (parse_partial_symbols): Ditto.
1243 * symfile.c (add_symbol_file_command): Ditto.
1244 * cli/cli-cmds.c (edit_command): Ditto.
1245 (list_command): Ditto.
1246 * infcall.c (call_function_by_hand): Ditto.
1247 * remote-vx.c (vx_run_files_info): Ditto.
1248 (vx_wait): Ditto.
1249 (vx_attach): Ditto.
1250 (vx_detach): Ditto.
1251 (vx_kill): Ditto.
1252 * aix-thread.c (pdc_symbol_addrs): Ditto.
1253 (pdc_read_regs): Ditto.
1254 (pdc_write_regs): Ditto.
1255 (pdc_read_data): Ditto.
1256 (pdc_write_data): Ditto.
1257 * d10v-tdep.c (display_trace): Ditto.
1258 * rs6000-nat.c (find_toc_address): Ditto.
1259 * aix-thread.c: Don't include language.h.
1260 * buildsym.c: Ditto.
1261 * dbxread.c: Ditto.
1262 * mdebugread.c: Ditto.
1263 * rs6000-nat.c: Ditto.
1264 * buildsym.c (make_blockvector): Use renamed hex_string.
1265
33f2d567
JM
12662004-09-10 Jason Molenda (jmolenda@apple.com)
1267
1268 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1269 chars after 'if' or 'while' commands in user-defined commands.
1270
7b90c3f9
JB
12712004-09-08 Jim Blandy <jimb@redhat.com>
1272
1273 Fix bug reported and analyzed by Olivier Crete:
1274 * symfile.c (copy_section_addr_info): New function.
1275 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1276 original set of address arguments, instead of handwritten code
1277 that uses one length to allocate and a different length to
1278 initialize. Use make_cleanup_free_section_addr_info.
1279 * symfile.h (copy_section_addr_info): New declaration.
1280 * utils.c: #include "symfile.h".
1281 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1282 New functions.
1283 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1284 * Makefile.in (utils.o): Update dependencies.
1285
b26a6851
AC
12862004-09-08 Andrew Cagney <cagney@gnu.org>
1287
1288 * thread-db.c (keep_thread_db): Delete.
1289 (thread_db_new_objfile, thread_db_create_inferior)
1290 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1291
be24b061
MK
12922004-09-08 Mark Kettenis <kettenis@gnu.org>
1293
f6792ef4
MK
1294 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1295 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1296 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1297 (i386_frameless_signal_p): Remove prototype.
1298 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1299 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1300 I386_SSE_NUM_REGS.
1301 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1302 instead of FP0_REGNUM.
1303 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1304 of FP0_REGNUM and FPC_REGNUM.
1305
eeefdaa7
MK
1306 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1307 (sunos_solib_create_inferior_hook): Don't call
1308 sunos_relocate_main_executable.
1309
be24b061
MK
1310 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1311 solib_svr4_fetch_link_map_offsets to
1312 svr4_ilp32_fetch_link_map_offsets.
1313 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1314 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1315 svr4_ilp32_fetch_link_map_offsets.
1316 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1317
7c679d16
JB
13182004-09-07 Jim Blandy <jimb@redhat.com>
1319
1320 * frame.h (frame_register): Doc fix.
1321
1f04aa62
AC
13222004-09-07 Andrew Cagney <cagney@gnu.org>
1323
1324 * vx-share/wait.h: Delete #ifdef USG.
1325 * utils.c (request_quit): Ditto.
1326 * tui/tui.c (tui_reset): Ditto.
1327 * remote.c: Ditto.
1328 * remote-sds.c: Ditto.
1329 * remote-rdi.c: Ditto.
1330 * mdebugread.c: Ditto.
1331 * m68klinux-nat.c: Ditto.
1332 * infttrace.c: Ditto.
1333 * infptrace.c: Ditto.
1334 * i386v-nat.c: Ditto.
1335 * exec.c: Ditto.
1336 * dbxread.c: Ditto.
1337 * core-aout.c: Ditto.
1338
90edbfbc
JB
13392004-09-05 Joel Brobecker <brobecker@gnat.com>
1340
1341 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1342 heuristic_proc_desc.
1343 (mips_insn32_frame_cache): Likewise.
1344
01f4bf2b
JB
13452004-09-04 Joel Brobecker <brobecker@gnat.com>
1346
1347 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1348 left behind by error.
1349
8511a048
JB
13502004-09-04 Joel Brobecker <brobecker@gnat.com>
1351
1352 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1353 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1354
649dfe9f
JB
13552004-09-04 Joel Brobecker <brobecker@gnat.com>
1356
1357 * config/rs6000/xm-aix4.h: Remove this file.
1358 * config/rs6000/aix4.mh (XM_FILE): Delete.
1359
6e50f889
JB
13602004-09-04 Joel Brobecker <brobecker@gnat.com>
1361
1362 * config/rs6000/xm-rs6000.h: Remove this file.
1363 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1364
b8c4aece
AC
13652004-09-03 Andrew Cagney <cagney@gnu.org>
1366
fb603883
AC
1367 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1368 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1369 only use.
1370
c9343fd1
AC
1371 * mips-tdep.c (temp_saved_regs): Delete.
1372 (set_reg_offset): Replace saved_regs parameter with this_cache.
1373 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1374 (mips32_heuristic_proc_desc): Add this_cache parameter.
1375 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1376 (after_prologue): Pass a NULL this_cache.
1377
9733cfe1
AC
1378 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1379 non-kernel trap prologues.
1380
0d5febcc
AC
1381 * mips-tdep.c (find_proc_desc): Delete function.
1382 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1383 simplify.
1384 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1385 mips_insn32_frame_cache.
1386
9733cfe1 1387 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1388 Simplify as NEXT_FRAME is NULL.
1389 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1390
177f84a3
AC
1391 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1392 local variable.
1393 (mips_skip_prologue): Update.
1394
465f7520
AC
1395 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1396 "cur_frame" parameter.
177f84a3
AC
1397 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1398 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1399
e38b8658
AC
1400 * config/vax/nm-obsd.h: Delete file.
1401 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1402 * config/vax/nm-nbsd.h: Delete file.
1403 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1404 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1405 * config/sh/nm-nbsd.h: Delete file.
1406 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1407 * config/rs6000/nm-rs6000ly.h: Delete file.
1408 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1409 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1410 * config/powerpc/nm-obsd.h: Delete file.
1411 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1412 * config/powerpc/nm-nbsd.h: Delete file.
1413 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1414 * config/pa/nm-obsd.h: Delete file.
1415 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1416 * config/mips/nm-nbsd.h: Delete file.
1417 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1418 * config/m88k/nm-obsd.h: Delete file.
1419 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1420 * config/m68k/nm-nbsd.h: Delete file.
1421 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1422 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1423 * config/i386/nm-nbsd.h: Delete file.
1424 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1425 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1426 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1427 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1428 * config/i386/nm-i386lynx.h: Delete file.
1429 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1430 * config/arm/nm-nbsd.h: Delete file.
1431 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1432 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1433
be1ed680
AC
1434 * config/i386/tm-fbsd.h: Delete file.
1435 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1436 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1437
4b392b26
AC
1438 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1439 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1440 * config/rs6000/aix4.mt (TM_FILE): Set to
1441 config/rs6000/tm-rs6000.h.
1442 * config/powerpc/tm-ppc-aix.h: Delete file.
1443 * config/powerpc/aix.mt (TM_FILE): Set to
1444 config/rs6000/tm-rs6000.h.
1445 * config/m68k/tm-linux.h: Delete file.
1446 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1447 * config/i386/tm-linux64.h: Delete file.
1448 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1449 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1450
f3219c75
AC
1451 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1452 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1453 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1454 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1455 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1456 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1457 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1458 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1459 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1460
b8c4aece
AC
1461 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1462 gdb_host_cpu.
1463
8ac2e020
JB
14642004-09-02 Joel Brobecker <brobecker@gnat.com>
1465
1466 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1467 Minor reformatting. Some code factoring.
1468
c185a355
AC
14692004-09-02 Andrew Cagney <cagney@gnu.org>
1470
63f22f0d
AC
1471 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1472 * config/vax/tm-nbsd.h: Delete file.
1473 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1474 * config/sparc/tm-vxworks.h: Delete file.
1475 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1476 * config/sparc/tm-nbsd.h: Delete file.
1477 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1478 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1479 * config/sparc/tm-linux.h: Delete file.
1480 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1481 * config/s390/tm-linux.h: Delete file.
1482 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1483 * config/pa/tm-bsd.h: Delete file.
1484 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1485 * config/m68k/tm-obsd.h: Delete file.
1486 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1487 * config/m68k/tm-nbsd.h: Delete file.
1488 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1489 * config/i386/tm-vxworks.h: Delete file.
1490 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1491 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1492 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1493 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1494 * config/i386/tm-nbsd.h: Delete file.
1495 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1496 * config/i386/tm-i386lynx.h: Delete file.
1497 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1498 * config/cris/tm-cris.h: Delete file.
1499
0f475e27
AC
1500 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1501 * configure: Re-generate.
1502 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1503 * config/arm/tm-nbsd.h: Delete file.
1504
458ed000
AC
1505 * config/powerpc/tm-ppcle-sim.h: Delete.
1506 * config/powerpc/tm-ppcle-eabi.h: Delete.
1507 * config/powerpc/tm-nbsd.h: Delete.
1508 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1509 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1510 tm-ppcle-eabi.h.
1511
f14375f3
AC
1512 * config/i386/nto.mh (NAT_FILE): Delete.
1513 * config/i386/nm-nto.h: Delete.
1514
c34d127c
AC
1515 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1516 * config/m68k/tm-os68k.h: Ditto.
1517 * config/m68k/tm-monitor.h: Ditto.
1518 * config/m68k/tm-cisco.h: Ditto.
1519 * config/m68k/st2000.mt (TM_FILE): Delete.
1520 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1521 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1522 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1523 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1524
f7f0fe03
AC
1525 * config/m68k/tm-st2000.h: Delete.
1526 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1527 * config/sparc/fbsd.mt (TM_FILE): Delete.
1528 * config/sparc/tm-fbsd.h: Delete.
1529
a2558533
AC
1530 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1531 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1532 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1533
b78960be
AC
1534 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1535 GDB_TM_FILE and GDB_XM_FILE.
1536 * gdbarch.c: Re-generate.
1537 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1538 quotes in macro definition.
1539 * configure.in: Re-generate.
1540
4d60522e
AC
1541 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1542 validating architecture methods.
1543 * gdbarch.c: Re-generate.
1544
5010d38b
AC
1545 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1546 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1547 GDB_MULTI_ARCH_PARTIAL.
1548 * gdbarch.h: Re-generate.
1549
c185a355
AC
1550 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1551 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1552 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1553 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1554 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1555 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1556 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1557 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1558 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1559 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1560 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1561 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1562
14aaa6ab
AC
15632004-09-01 Andrew Cagney <cagney@gnu.org>
1564
1565 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1566 and main_func_highpc.
1567 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1568 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1569 * nlmread.c (nlm_symfile_read): Update.
1570
a343eb3c
JB
15712004-09-01 Joel Brobecker <brobecker@gnat.com>
1572
1573 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1574 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1575 (find_proc_desc): Remove dead code.
1576
4fbbbd07
JB
15772004-09-01 Joel Brobecker <brobecker@gnat.com>
1578
1579 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1580
84acb35a
JJ
15812004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1582
1583 * observer.sh: Add struct so_list declaration.
1584 * Makefile.in: Add dependencies on observer.h for solib.c and
1585 breakpoint.c.
1586 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1587 function.
1588 (_initialize_breakpoint): Register
1589 disable_breakpoints_in_unloaded_shlib as an observer of the
1590 "solib unloaded" observation event.
1591 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1592 call decode_line_1 so unfound breakpoint errors are silent.
1593 * solib.c (update_solib_list): When a solib is discovered to have
1594 been unloaded by the program, notify all observers of the
1595 "solib unloaded" observation event.
1596
c8cd9f6c
AC
15972004-09-01 Andrew Cagney <cagney@gnu.org>
1598
1599 * frame.c: Include "objfiles.h".
1600 (inside_main_func): New function.
1601 (get_prev_frame): Use new inside_main_func.
1602 * Makefile.in (frame.o): Update dependencies.
1603 * defs.h (inside_main_func): Delete declaration.
1604 * blockframe.c (inside_main_func): Delete function.
1605
1168df01
JB
16062004-08-31 Jim Blandy <jimb@redhat.com>
1607
1608 * dwarf2read.c (is_vtable_name): New function, based on logic from
1609 read_structure_type, but passing the correct length to strncmp,
1610 and using 'sizeof' instead of 'strlen'.
1611 (read_structure_type): Call it.
1612
f14f9744
JB
16132004-08-31 Joel Brobecker <brobecker@gnat.com>
1614
1615 * config/powerpc/aix.mh: Add comment.
1616
386d4518
PG
16172004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1618
1619 * MAINTAINERS: Add self to Write-After-Approval.
1620
7d97d5e2
MI
16212004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1622
1623 * MAINTAINERS: Add self to Write-After-Approval.
1624
68f53502
AC
16252004-08-30 Andrew Cagney <cagney@gnu.org>
1626
1627 Fix PR breakpoints/1757.
1628 * infrun.c (struct execution_control_state): Replace
1629 remove_breakpoints_on_following_step with
1630 step_after_step_resume_breakpoint.
1631 (init_execution_control_state): Update.
1632 (handle_inferior_event): For signals, when stepping off a
1633 breakpoint, set step_after_step_resume_breakpoint. When
1634 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1635 (keep_going): Delete code handling
1636 remove_breakpoints_on_following_step.
1637
7ca2d3a3
DL
16382004-08-29 David Lecomber <david@streamline-computing.com>
1639
1640 Fix PR gdb/648
1641 * language.h (enum array_ordering): New enum.
1642 * language.h (struct language_defn): New la_array_ordering
1643 attribute.
1644 * language.c (unknown_language_defn, auto_language_defn)
1645 (local_language_defn): Ditto.
1646 * ada-lang.c (ada_language_defn): Ditto.
1647 * c-lang.c (c_language_defn, cplus_language_defn)
1648 (asm_language_defn, minimal_language_defn): Ditto.
1649 * f-lang.c (f_language_defn): Ditto.
1650 * jv-lang.c (java_language_defn): Ditto.
1651 * m2-lang.c (f_language_defn): Ditto.
1652 * objc-lang.c (objc_language_defn): Ditto.
1653 * p-lang.c (pascal_language_defn): Ditto.
1654 * scm-lang.c (scm_language_defn): Ditto.
1655 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1656 oriented large to small in type structure.
1657 * dwarf2read.c (read_array_order): New function.
1658 (read_array_type): Use read_array_order to check row/column
1659 major ordering.
1660
e354df01
NW
16612004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1662
1663 * target.c (target_resize_to_sections): Check
1664 current_target.to_sections for an old value when updating.
1665
9185ddce
JB
16662004-08-27 Joel Brobecker <brobecker@gnat.com>
1667
1668 * procfs.c (dbx_link_bpt_addr): New static global variable.
1669 (dbx_link_shadow_contents): New static global variable.
1670 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1671 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1672 if we just hit it.
1673 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1674 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1675 from run to run.
1676 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1677 after the inferior has been forked.
1678 (remove_dbx_link_breakpoint): New function.
1679 (dbx_link_addr): New function.
1680 (insert_dbx_link_bpt_in_file): New function.
1681 (insert_dbx_link_bpt_in_region): New function.
1682 (insert_dbx_link_breakpoint): New function.
1683 (proc_trace_syscalls_1): New function, extracted from
1684 proc_trace_syscalls.
1685 (proc_trace_syscalls): Replace extract code by call to
1686 proc_trace_syscalls_1.
1687 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1688 is no longer valid.
1689
e6742ace
JB
16902004-08-25 Jim Blandy <jimb@redhat.com>
1691
1692 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1693
8fb3e588
AC
16942004-08-25 Andrew Cagney <cagney@gnu.org>
1695
629a41ee
AC
1696 * infrun.c (struct execution_control_state): Delete field
1697 "stepping_through_sigtramp".
1698 (init_execution_control_state): Do not set same.
1699 (context_switch): Do not pass same to save_infrun_state and
1700 load_infrun_state.
1701 * gdbthread.h (struct thread_info): Delete field
1702 stepping_through_sigtramp.
1703 (save_infrun_state, load_infrun_state): Delete parameter
1704 stepping_through_sigtramp.
1705 * thread.c (load_infrun_state, save_infrun_state): Update.
1706
8fb3e588
AC
1707 * infrun.c: Re-indent. Move expression operators to the beginning
1708 of the line. Remove long disabled #if 0 code.
1709
49c54768
AC
17102004-08-24 Andrew Cagney <cagney@gnu.org>
1711
1712 * doublest.h (floatformat_ieee_quad): Rename
1713 floatformat_ia64_quad.
1714 * doublest.c (floatformat_ieee_quad): Rename
1715 floatformat_ia64_quad.
1716 (_initialize_doublest): Update.
1717
5ca2e327
JB
17182004-08-24 Jim Blandy <jimb@redhat.com>
1719
87808bd6
JB
1720 * dwarf2expr.h (struct dwarf_expr_context): New members
1721 'num_pieces' and 'pieces', for returning the result of an
1722 expression that uses DW_OP_piece.
1723 (struct dwarf_expr_piece): New struct type.
1724 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1725 pieces.
1726 (free_dwarf_expr_context): Free pieces, if any.
1727 (add_piece): New function.
1728 (execute_stack_op): Implement DW_OP_piece.
1729 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1730 expression is a list of pieces, print an error message.
1731 (dwarf2_loc_desc_needs_frame): If the expression yields
1732 pieces, and any piece is in a register, then we need a frame.
1733
5ca2e327
JB
1734 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1735 the stack until we've decided what sort of result the evaluation
1736 has produced. Use separate variables, with more specific names.
1737
2afeb6b8
RE
17382004-08-23 Richard Earnshaw <rearnsha@arm.com>
1739
1740 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1741 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1742 (arm_netbsd_init_abi_common): Register them.
1743
5885ab49
MK
17442004-08-22 Mark Kettenis <kettenis@gnu.org>
1745
fda820a6
MK
1746 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1747
1c5bf419
MK
1748 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1749 safe_frame_unwind_memory instead of target_read_memory.
1750
8cbba7c8
MK
1751 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1752 Reorder includes.
1753 (fetch_register, store_register): Remove prototypes.
1754 (child_resume): Reorganize code and comments such that it is
1755 grouped a bit more logically.
1756 (attach): Explicitly compare errno against 0.
1757 (detach): Likewise. Use perror_with_name instead of
1758 print_sys_errmsg.
1759 * Makefile.in (infptrace.o): Update dependencies.
1760
c5fa4245
MK
1761 * ia64-linux-nat.c: Update copyright year.
1762 (fetch_debug_register, store_debug_register)
1763 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1764 PTRACE_TYPE_ARG3.
1765 * config/ia64/nm-linux.h: Update copyright year.
1766 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1767
387c058c
MK
1768 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1769 from CORE_ADDR to struct frame_info *. Use
1770 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1771 (amd64_linux_sigtramp_p): Adjust for changed signature of
1772 and64_linux_sigtramp_start
1773
277215a6
MK
1774 * gdb_ptrace.h: GNU/Linux.
1775
25f6178e
MK
1776 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1777 Remove defines.
1778
652fc137
MK
1779 * infptrace.c: Include "gdb_assert.h".
1780 (PTRACE_XFER_TYPE): Remove define.
1781 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1782 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1783 Tweak comment.
1784 (fetch_inferior_registers, store_inferior_registers): Remove
1785 redundant culry braces. Tweak comment. s/regno/regnum.
1786 * Makefile.in (infptrace.o): Update dependencies.
1787
5885ab49
MK
1788 * configure.in: Change test for return type of ptrace to default
1789 to `long' instead of `int'.
1790 * configure: Regenerate.
1791
11003ae3
MK
17922004-08-21 Mark Kettenis <kettenis@gnu.org>
1793
6b95110c
MK
1794 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1795
bcb3dc3d
MK
1796 * configure.in: Check for ttrace function.
1797 * configure, config.in: Regenerate.
1798
11003ae3
MK
1799 * gdb_ptrace.h: New file.
1800 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1801 <sys/ptrace.h>.
1802 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1803 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1804 (attach): Don't define PT_ATTACH.
1805 (detach): Don't define PT_DETACH.
1806 * Makefile.in (gdb_ptrace_h): New variable.
1807 (infptrace.o): Update dependencies.
1808
f8707cac
MK
18092004-08-16 Mark Kettenis <kettenis@gnu.org>
1810
1811 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1812 instead of `int' if not already defined.
1813 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1814 PTRACE_TYPE_ARG3.
1815 * infptrace.c (call_ptrace): Revert change that replaced
1816 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1817
655c5466
MK
18182004-08-15 Mark Kettenis <kettenis@gnu.org>
1819
156e5ba7
MK
1820 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1821 Remove defines.
1822
de9a9e51
MK
1823 * linux-nat.c (kill_inferior): Add missing third and fourth
1824 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1825
88800403
MK
1826 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1827 PTRACE_TYPE_RET.
1828
849a1d7c
MK
1829 * proc-why.c (proc_prettyfprint_why): Fix format string.
1830
61ad16d1
MK
1831 * solib-osf.c (osf_current_sos): Remove unsused label.
1832
a6ed5501
MK
1833 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1834 curses headers.
1835 * configure, config.in: Regenerate.
1836 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1837 <ncurses/ncurses.h>.
1838
016ddeca
MK
1839 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1840 * config/nm-nbsd.h: Update copyright year.
1841 (PTRACE_ARG3_TYPE): Remove define.
1842
49ec097f
MK
1843 * sparc-nat.c (fetch_inferior_registers)
1844 (store_inferior_registers, sparc_xfer_wcookie):
1845 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1846
9f8e0089
MK
1847 * alphabsd-nat.c (fetch_inferior_registers):
1848 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1849 PTRACE_TYPE_ARG3.
1850 * amd64bsd-nat.c (fetch_inferior_registers)
1851 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1852 PTRACE_TYPE_ARG3.
1853 * armnbsd-nat.c: Update copyright year.
1854 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1855 (store_register, store_regs, store_fp_register, store_fp_regs):
1856 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1857 * hppabsd-nat.c (fetch_inferior_registers)
1858 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1859 PTRACE_TYPE_ARG3.
1860 * i386bsd-nat.c (fetch_inferior_registers)
1861 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1862 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1863 * m68kbsd-nat.c (fetch_inferior_registers)
1864 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1865 PTRACE_TYPE_ARG3.
1866 * m88kbsd-nat.c (fetch_inferior_registers)
1867 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1868 PTRACE_TYPE_ARG3.
1869 * mipsnbsd-nat.c: Update copyright year.
1870 (fetch_inferior_registers, store_inferior_registers):
1871 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1872 * ns32knbsd-nat.c: Update copyright year.
1873 (fetch_inferior_registers, store_inferior_registers):
1874 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1875 * ppcnbsd-nat.c (fetch_inferior_registers):
1876 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1877 PTRACE_TYPE_ARG3.
1878 * ppcobsd-nat.c (fetch_inferior_registers):
1879 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1880 PTRACE_TYPE_ARG3.
1881 * shnbsd-nat.c: Update copyright year.
1882 (fetch_inferior_registers, store_inferior_registers):
1883 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1884 * vaxbsd-nat.c (fetch_inferior_registers)
1885 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1886 PTRACE_TYPE_ARG3.
1887
655c5466
MK
1888 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1889 PTRACE_TYPE_ARG3.
1890 * infptrace.c (call_ptrace, child_resume, attach, detach)
1891 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1892 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1893 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1894 PTRACE_TYPE_ARG3.
1895
c40d0d10
MK
18962004-08-14 Mark Kettenis <kettenis@gnu.org>
1897
5cb0ff31
MK
1898 * defs.h: Remove out-of-date comment.
1899 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1900 [!GETENV_PROVIDED] (getenv): Remove prototype.
1901
5f0f34cb
MK
1902 * standalone.c: Remove file.
1903 * Makefile.in (standalone.o): Remove dependency.
1904
7532965f
MK
1905 * i386-linux-nat.c (dummy_sse_values): Remove function and
1906 prototype.
1907 (i386_linux_dr_get): Fix typo in comment.
1908 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1909
1bdc6c53
MK
1910 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1911
c40d0d10
MK
1912 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1913 from declaration.
1914 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1915 from definition.
1916
64218d3e
MK
19172004-08-13 Mark Kettenis <kettenis@gnu.org>
1918
1919 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1920 parenthesis in definition.
1921 * configure: Regenerated.
1922
926c94e7
MC
19232004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1924
1925 * PROBLEMS: Mention build/1411.
1926
69489883
NN
19272004-08-09 Robert Millan <robertmh@gnu.org>
1928
1929 Committed by Nathanael Nerode.
1930 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1931 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1932
ebb7c577
AC
19332004-08-12 Andrew Cagney <cagney@gnu.org>
1934
1935 * NEWS: Mention fixes in GDB 6.2.1.
1936 * PROBLEMS: Remove mention of mips-irix.
1937
232d697c
JB
19382004-08-11 Joel Brobecker <brobecker@gnat.com>
1939
1940 * config/powerpc/xm-aix.h: Delete.
1941 * config/powerpc/aix.mh (MH_FILE): Remove.
1942 * config/powerpc/aix432.mh (MH_FILE): Remove.
1943
72f4e82b
JB
19442004-08-11 Joel Brobecker <brobecker@gnat.com>
1945
1946 * config/powerpc/aix.mh: Remove obsolete comment.
1947 * config/powerpc/aix432.mh: Likewise.
1948
0687ccb2
JB
19492004-08-11 Joel Brobecker <brobecker@gnat.com>
1950
1951 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1952
dbf3ada7
JB
19532004-08-11 Joel Brobecker <brobecker@gnat.com>
1954
e08e1886
JB
1955 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1956 this file is now empty.
1957 * config/xm-aix4.h: Remove, this file is no longer included
1958 anywhere.
1959
19602004-08-11 Joel Brobecker <brobecker@gnat.com>
1961
1962 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1963 that file is now empty.
dbf3ada7
JB
1964 (termdef): Remove prototype, function no longer used.
1965
4c525ef6
JB
19662004-08-11 Joel Brobecker <brobecker@gnat.com>
1967
1968 * doc/gdbint.texinfo (Host Definition): Remove documentation
1969 for USE_O_NOCTTY, no longer used.
1970 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1971 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1972
82e0b968
JB
19732004-08-11 Joel Brobecker <brobecker@gnat.com>
1974
1975 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1976 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1977 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1978
f2acbe1c
MK
19792004-08-11 Mark Kettenis <kettenis@gnu.org>
1980
daa98270
MK
1981 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1982 instead of FIVE_ARG_PTRACE.
1983
f2acbe1c
MK
1984 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1985 (new_tty): Use O_NOCTTY unconditionally.
1986
cc377e6b
MK
19872004-08-10 Mark Kettenis <kettenis@gnu.org>
1988
1989 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1990 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1991 fflush on stdout.
1992
3bcc18fa
JB
19932004-08-10 Joel Brobecker <brobecker@gnat.com>
1994
1995 * xcoff_symfile_finish: Replace last call to xmfree by call
1996 to xfree.
1997
7936743b
AC
19982004-08-10 Andrew Cagney <cagney@gnu.org>
1999
cc503c8a
AC
2000 * main.c (captured_main): Delete call to init_malloc.
2001 * defs.h (init_malloc): Delete declaration.
2002 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2003 (init_malloc): Delete functions.
2004
2dc74dc1
AC
2005 * defs.h (xmfree): Delete.
2006 * utils.c (xmfree): Delete function.
2007 (xfree): Inline calls to xmfree and mfree.
2008 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2009 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2010 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2011 * somread.c (som_symfile_finish): Ditto.
2012 * objfiles.c (allocate_objfile, free_objfile):
2013 * nlmread.c (nlm_symfile_finish): Ditto.
2014 * hpread.c (hpread_symfile_finish): Ditto.
2015 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2016 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2017 * coffread.c (coff_symfile_finish): Ditto.
2018
aa2ee5f6
AC
2019 * defs.h (xmcalloc): Delete declaration.
2020 * utils.c (xmcalloc): Delete.
2021 (xcalloc): Inline calls to xmcalloc and mcalloc.
2022 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2023 xcalloc and xfree.
2024 * symtab.c (create_demangled_names_hash): Ditto.
2025
0efffb96
AC
2026 * defs.h (xmrealloc): Delete.
2027 * utils.c (xmrealloc): Delete.
2028 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2029 * symmisc.c (extend_psymbol_list): Use xrealloc.
2030 * source.c (find_source_lines): Ditto.
2031 * hpread.c (hpread_lookup_type): Ditto.
2032 * dbxread.c (add_bincl_to_list): Ditto.
2033
7936743b
AC
2034 * utils.c (xmmalloc): Delete.
2035 (xmalloc): Inline xmmalloc and mmalloc calls.
2036 (msavestring): Use xmalloc.
2037 * defs.h (xmmalloc): Delete declaration.
2038 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2039 xmmalloc.
2040 * symmisc.c (extend_psymbol_list): Ditto.
2041 * symfile.c (init_psymbol_list): Ditto.
2042 * source.c (find_source_lines): Ditto.
2043 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2044 * elfread.c (elf_symtab_read): Ditto.
2045 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2046 * coffread.c (coff_symfile_init): Ditto.
2047
252ab814
DC
20482004-08-10 David Carlton <carlton@bactrian.org>
2049
2050 * MAINTAINERS: Remove David Carlton from c++ testsuite
2051 maintainers.
2052
8f5ba92b
JG
20532004-08-10 Jerome Guitton <guitton@gnat.com>
2054
2055 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2056 print a line feed before the prompt.
2057
21749010
MK
20582004-08-10 Mark Kettenis <kettenis@gnu.org>
2059
2060 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2061
1f011ce2
JB
20622004-08-09 Joel Brobecker <brobecker@gnat.com>
2063
2064 General cleanup of the AIX xm include file:
2065 * config/xm-aix4.h (fd_set): Remove undefine.
2066 Remove include of <sys/select.h>.
2067 (HAVE_TERMIO): Remove define.
2068 (USG): Likewise.
2069 (NULL): Remove redefine.
2070 (alloca): Remove #pragma.
2071 (vfork): Remove define.
2072 (termdef): Remove.
2073 (SIGWINCH_HANDLER): Remove.
2074 (SIGWINCH_HANDLER_BODY): Remove.
2075
cf4e7692
MK
20762004-08-09 Mark Kettenis <kettenis@gnu.org>
2077
2078 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2079 GDB_OSABI_OPENBSD_ELF.
2080
ac5754fa
MK
20812004-08-07 Robert Millan <robertmh@gnu.org>
2082
2083 * bsd-kvm.c: Check for nlist.h before including it.
2084
086ec9eb
MK
20852004-08-09 Mark Kettenis <kettenis@gnu.org>
2086
bbe06c74
MK
2087 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2088 sigcontext' offset consistency checks for ancient BSD.
2089
3aa7b3b3
MK
2090 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2091
086ec9eb
MK
2092 * configure.in: Check for <sys/types.h>. Check return and
2093 argument types of ptrace.
2094 * configure, config.in: Regenerate.
2095
09991fa0
JB
20962004-08-09 Jim Blandy <jimb@redhat.com>
2097
2098 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2099 rs6000_register_sim_regno): Doc fixes.
2100
fed7ba43
JB
21012004-08-08 Joel Brobecker <brobecker@gnat.com>
2102
2103 * mips-tdep.c: Include "floatformat.h".
2104 (n32n64_floatformat_always_valid): New function.
2105 (floatformat_n32n64_long_double_big): New constant.
2106 (mips_gdbarch_init): Set size and format of long double
2107 for N32 and N64 ABIs.
2108 * Makefile.in (mips-tdep.o): Update dependencies.
2109
456fcf94
AC
21102004-08-08 Andrew Cagney <cagney@gnu.org>
2111
2f9b146e
AC
2112 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2113 print. Improve script's error messages.
2114 * gdbarch.h: Re-generate.
2115
456fcf94
AC
2116 * gdbarch.sh (pformat): New function.
2117 (float_format, double_format, long_double_format): List with bit
2118 members. Use pformat when printing.
2119 * gdbarch.c, gdbarch.h: Re-generate.
2120
69e9e646
NW
21212004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2122
2123 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2124 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2125 (ppcnbsd_supply_pcb): New function.
2126 (_initialize_ppcnbsd_nat): New prototype and function.
2127 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2128 (LOADLIBES): New variable.
2129 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2130
5ef2d0aa
AC
21312004-08-08 Andrew Cagney <cagney@gnu.org>
2132
2133 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2134 (builtin_type_ieee_double, builtin_type_ia64_quad)
2135 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2136 BE/LE floating-point types.
2137 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2138 (builtin_type_ieee_double, builtin_type_ia64_quad)
2139 (builtin_type_ia64_spill): Declare.
2140 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2141 (floatformat_ieee_double, floatformat_arm_ext)
2142 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2143 of LE/BE floatformats.
2144 * doublest.h: (struct floatformat, floatformat_ieee_single)
2145 (floatformat_ieee_double, floatformat_arm_ext)
2146 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2147
5c7f2947
MK
21482004-08-08 Mark Kettenis <kettenis@gnu.org>
2149
ecac404d
MK
2150 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2151
9b8607ce
MK
2152 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2153 instead of regcache_raw_supply when storing the registers.
2154
f6052080
MK
2155 * i386gnu-nat.c: Update copyright year.
2156 (gnu_store_registers): Don't use deprecated_registers and
2157 deprecated_registers_valid. Use regcache_valid_p and
2158 regcache_raw_supply instead.
2159
17777823
MK
2160 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2161 frame_pc_unwind.
2162
5240ceac
MK
2163 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2164 variables. Incapitalized "process".
2165
5c7f2947
MK
2166 * configure.in: Add cursesX to the list of possible curses libs.
2167 Add cursesX.h to the list of possible curses headers.
2168 * configure, config.in: Regenerate.
2169
da7d81e3
NW
21702004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2171
2172 * configure.in: Test for struct lwp in <sys/lwp.h>.
2173 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2174 the offset of l_addr in struct lwp.
2175
7f245d65
NW
21762004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2177
2178 * bsd-kvm.c: Include "gdbcore.h"
2179 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2180
47b3f456
AC
21812004-08-07 Andrew Cagney <cagney@gnu.org>
2182
70bd8e24
AC
2183 * gdbtypes.c (build_flt, build_complex): New functions.
2184 (gdbtypes_post_init): Use.
2185
9b0dea39
AC
2186 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2187
5cf7abac
AC
2188 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2189 through to builtin_type_uint128.
2190
64d2b26d
AC
2191 * c-exp.y: Use builtin_type function to obtain builtin types.
2192
7ad6570d
AC
2193 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2194 builtin_uint128.
2195 * gdbtypes.c (gdbtypes_post_init): Update.
2196 (build_gdbtypes): Move initialization of builtin_type_int0
2197 through to builtin_type_uint128 from here ...
2198 (_initialize_gdbtypes): ... to here.
2199 * d10v-tdep.c (d10v_register_type): Update.
2200
47b3f456
AC
2201 * doublest.c: Update copyright.
2202 (floatformat_from_length): Call error when floatformat is NULL.
2203 (extract_floating_by_length): Remove NULL fmt check.
2204 (store_floating_by_length): Ditto.
2205
0a8146bf
AC
22062004-08-07 Andrew Cagney <cagney@gnu.org>
2207
2208 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2209 that the register is valid.
2210
c0ccb908
MK
22112004-08-05 Mark Kettenis <kettenis@chello.nl>
2212
8e6bed05
MK
2213 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2214 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2215 struct frame_info *. Use safe_frame_unwind_memory instead of
2216 deprecated_read_memory_nobpt.
2217 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2218 changed signature of i386_linux_sigtramp_start and
2219 i386_linux_rt_sigtramp_start.
2220
24f9f5e3
MK
2221 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2222 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2223 instead of deprecated_read_memory_nobpt.
2224 (i386nbsd_sigtramp_p): Adjust for changed signature of
2225 i386nbsd_sigtramp_offset.
2226
c822af0c
MK
2227 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2228 safe_frame_unwind_memory instead of target_read_memory.
2229
c0ccb908
MK
2230 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2231 !NO_SYS_FILE.
2232 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2233 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2234 (_initialize_kernel_u_addr): Remove prototype and function.
2235 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2236 !NO_SYS_FILE.
2237 * xcoffread.c: Likewise.
2238
b9e1c0d6
MK
22392004-08-06 Mark Kettenis <kettenis@gnu.org>
2240
2241 * vax-nat.c: New file.
2242 * vaxbsd-nat.c: Tweak comment.
2243 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2244 vaxnbsd-tdep.c.
2245 (vax-nat.o): New dependency.
2246 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2247 (vax-*-ultrix2*): Remove.
2248 * config/vax/vax.mh: New file.
2249 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2250 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2251 (vax_register_u_addr): New prototype.
2252 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2253 * config/vax/vaxult2.mh: Remove file.
2254 * config/vax/vaxult.mh: Remove file.
2255 * config/vax/vaxbsd.mh: Remove file.
2256 * config/vax/vax.mt (TM_FILE): Remove.
2257 * config/vax/tm-vaxbsd.h: Remove file.
2258
9ad7bec7
JB
22592004-08-06 Joel Brobecker <brobecker@gnat.com>
2260
2261 * aix-thread.c (get_signaled_thread): New function.
2262 (iter_trap): Delete, no longer used.
2263 (iter_tid): New function.
2264 (pd_update): Find the thread that received the SIGTRAP signal
2265 by first locating the kernel thread, and then finding its
2266 associated thread.
2267
bf0d233d
UW
22682004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2269
2270 * lin-lwp.c (child_wait): Continue inferior after processing
2271 PTRACE_EVENT_CLONE event.
2272
d0f853e1
NN
22732004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2274
2275 * MAINTAINERS: Add self to Write-After-Approval.
2276
ab14aeb0
JJ
22772004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2278
2279 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2280 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2281
9c8dbfa9
AC
22822004-08-05 Andrew Cagney <cagney@gnu.org>
2283
c8f3ca46
AC
2284 * config/xm-sysv4.h: Delete file.
2285 * config/mips/xm-irix5.h: Delete file.
2286 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2287 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2288 * config/ia64/xm-aix.h: Delete file.
2289 * config/ia64/aix.mh (XM_FILE): Delete.
2290 * config/pa/xm-hppah.h: Delete file.
2291 * config/pa/hpux11w.mh (XM_FILE): Delete.
2292 * config/pa/hpux11.mh (XM_FILE): Delete.
2293 * config/pa/hpux1020.mh (XM_FILE): Delete.
2294 * config/pa/hppahpux.mh (XM_FILE): Delete.
2295
5f7daaff
AC
2296 * config/alpha/xm-alphalinux.h: Delete file.
2297 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2298 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2299 * config/alpha/xm-alphaosf.h: Delete file.
2300 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2301 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2302 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2303 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2304
69babf95
AC
2305 * config/i386/xm-i386v.h: Delete file.
2306 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2307 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2308 * config/i386/xm-i386sco.h: Delete file.
2309 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2310 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2311 * config/i386/xm-i386v4.h: Delete file.
2312 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2313 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2314 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2315 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2316
6f009c8a
AC
2317 * config/vax/xm-vax.h: Delete file.
2318 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2319 * config/vax/xm-vaxult2.h: Delete file.
2320 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2321 * config/vax/vaxult2.mh (XM_FILE): Delete.
2322 * config/vax/xm-vaxult.h: Delete file.
2323 * config/vax/vaxult.mh (XM_FILE): Delete.
2324 * config/vax/xm-vaxbsd.h: Delete file.
2325 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2326
9c8dbfa9
AC
2327 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2328 * gdbarch.h, gdbarch.c: Re-generate.
2329 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2330 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2331 * frame.h: Delete deprecated_read_fp from comments.
2332 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2333 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2334
84367a3e
MK
23352004-08-04 Mark Kettenis <kettenis@gnu.org>
2336
9c8e3411
MK
2337 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2338 trampoline in OpenBSD 3.5-current.
2339
b87bc0d8
MK
2340 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2341 SSE registers.
2342
84367a3e
MK
2343 * Makefile.in: Remove embedded page breaks.
2344
a44bddec
JB
23452004-08-04 Jim Blandy <jimb@redhat.com>
2346
7ab3286f
JB
2347 * regcache.c (regcache_raw_read): Assert that, after calling
2348 target_fetch_registers, the register we're reading is cached.
2349
a44bddec
JB
2350 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2351 a call to 'internal_error', with a more helpful error message.
2352 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2353 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2354
35124113
AC
23552004-08-04 Andrew Cagney <cagney@gnu.org>
2356
2357 * Makefile.in: Update dependencies.
2358
9f643768
JB
23592004-08-04 Jim Blandy <jimb@redhat.com>
2360
6ced10dd
JB
2361 Change the layout of the PowerPC E500 raw register cache to allow
2362 the lower 32-bit halves of the GPRS to be their own raw registers,
2363 not pseudoregisters.
2364 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2365 add ppc_ev0_upper_regnum flag.
2366 * rs6000-tdep.c: #include "reggroups.h".
2367 (spe_register_p): Recognize the ev upper half registers as SPE
2368 registers.
2369 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2370 registers.
2371 (e500_move_ev_register): New function.
2372 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2373 vector registers are the pseudo-registers now, formed by splicing
2374 together the gprs and the upper-half registers.
2375 (e500_register_reggroup_p): New function.
2376 (P): Macro deleted.
2377 (P8, A4): New macro.
2378 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2379 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2380 macros.
2381 (registers_e500): Rearrange register set so that the raw register
2382 set contains 32-bit GPRs and upper-half registers, and the SPE
2383 vector registers become pseudo-registers.
2384 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2385 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2386 register numbers are now the same for the E500 as they are for
2387 other PowerPC variants. Register e500_register_reggroup_p as the
2388 register group function for the E500.
2389 * Makefile.in (rs6000-tdep.o): Update dependencies.
2390
2391 Adapt PPC E500 native support to the new raw regcache layout.
2392 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2393 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2394 (fetch_spe_register, store_spe_register): Handle fetching/storing
2395 all the SPE registers at once, if regno == -1. These now take
2396 over the job of fetch_spe_registers and store_spe_registers.
2397 (fetch_spe_registers, store_spe_registers): Deleted.
2398 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2399 unconditionally; they're always raw. Fetch/store SPE upper half
2400 registers, if present, instead of ev registers.
2401 (fetch_register, store_register): Remove sanity checks: gprs are
2402 never pseudo-registers now, so we never need to even mention any
2403 registers that are ever pseudoregisters.
2404
9f643768
JB
2405 Use a fixed register numbering when communicating with the PowerPC
2406 simulator.
2407 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2408 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2409 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2410 New functions.
2411 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2412 init_sim_regno_table.
2413 * Makefile.in (gdb_sim_ppc_h): New variable.
2414 (rs6000-tdep.o): Update dependencies.
2415
1e2279c8
AC
24162004-08-02 Andrew Cagney <cagney@gnu.org>
2417
1d94326f
AC
2418 * cris-tdep.c (cris_register_size): Restore function, still used
2419 locally.
2420
331ae7ed
AC
2421 * gdbarch.sh (deprecated_target_read_fp)
2422 (deprecated_frame_locals_address, deprecated_frame_args_address)
2423 (deprecated_frame_chain_valid, deprecated_frame_chain)
2424 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2425 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2426 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2427 * gdbarch.h, gdbarch.c: Re-generate.
2428 * regcache.c (deprecated_read_fp): Do not call
2429 DEPRECATED_TARGET_READ_FP_P.
2430 * infcmd.c (default_print_registers_info): Do not call
2431 DEPRECATED_DO_REGISTERS_INFO.
2432 * frame-base.c (default_frame_locals_address): Do not call
2433 DEPRECATED_FRAME_LOCALS_ADDRESS.
2434 (default_frame_args_address): Do not call
2435 DEPRECATED_FRAME_ARGS_ADDRESS.
2436
1e2279c8
AC
2437 * gdbarch.sh (deprecated_register_raw_size)
2438 (deprecated_register_virtual_size:int): Delete.
2439 * gdbarch.h, gdbarch.c: Re-generate.
2440 * cris-tdep.c (cris_register_size): Delete.
2441 (cris_gdbarch_init): Update.
2442 * alpha-tdep.c (alpha_register_raw_size)
2443 (alpha_register_virtual_size): Delete.
2444 (alpha_gdbarch_init): Update.
2445
a90c06b4
AC
2446 * gdbarch.sh (deprecated_register_virtual_type)
2447 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2448 (deprecated_dummy_write_sp): Delete.
2449 * gdbarch.h, gdbarch.c: Re-generate.
2450
f42accbe
AC
2451 * gdbarch.sh (deprecated_register_bytes): Delete.
2452 * gdbarch.h, gdbarch.c: Re-generate.
2453 * regcache.c (deprecated_register_bytes): New function.
2454 * regcache.h (deprecated_register_bytes): Declare.
2455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2456 * v850-tdep.c (v850_gdbarch_init): Update.
2457 * sh64-tdep.c (sh64_gdbarch_init): Update.
2458 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2459 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2460 * mcore-tdep.c (mcore_gdbarch_init): Update.
2461 * cris-tdep.c (cris_gdbarch_init): Update.
2462 * arm-tdep.c (arm_gdbarch_init): Update.
2463 * remote.c (init_remote_state): Update.
2464 * remote-vx.c (vx_prepare_to_store): Update.
2465 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2466 * irix5-nat.c (fetch_core_registers): Update.
2467 * cris-tdep.c (cris_register_bytes_ok): Update.
2468 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2469
45c9dd44
AC
2470 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2471 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2472 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2473 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2474 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2475 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2476 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2477 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2478 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2479 with mips_insn16 and mips_insn32.
2480
3acba339
AC
2481 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2482 * rs6000-tdep.c (rs6000_push_dummy_call)
2483 (rs6000_extract_return_value): Use register_size.
2484 * xstormy16-tdep.c (xstormy16_get_saved_register)
2485 (xstormy16_extract_return_value): Ditto.
2486 * valops.c (value_assign): Ditto.
2487 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2488 * v850-tdep.c (v850_extract_return_value): Ditto.
2489 * tracepoint.c (collect_symbol): Ditto.
2490 * target.c (debug_print_register): Ditto.
2491 * stack.c (frame_info): Ditto.
2492 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2493 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2494 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2495 (store_register_using_P): Ditto.
2496 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2497 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2498 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2499 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2500 * regcache.c (deprecated_read_register_bytes)
2501 (deprecated_write_register_bytes, read_register)
2502 (write_register): Ditto.
2503 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2504 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2505 * monitor.c (monitor_supply_register, monitor_fetch_register)
2506 (monitor_store_register): Ditto.
2507 * mn10300-tdep.c (mn10300_pop_frame_regular)
2508 (mn10300_print_register): Ditto.
2509 * mipsv4-nat.c (fill_fpregset): Ditto.
2510 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2511 (mips64_fill_fpregset): Ditto.
2512 * mi/mi-main.c (register_changed_p, get_register)
2513 (mi_cmd_data_write_register_values): Ditto.
2514 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2515 * irix5-nat.c (fill_gregset, fetch_core_registers):
2516 * infrun.c (write_inferior_status_register): Ditto.
2517 * infptrace.c (fetch_register, store_register): Ditto.
2518 * infcmd.c (default_print_registers_info): Ditto.
2519 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2520 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2521 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2522 * hpux-thread.c (hpux_thread_fetch_registers)
2523 (hpux_thread_store_registers): Ditto.
2524 * hppah-nat.c (store_inferior_registers, fetch_register):
2525 * findvar.c (value_from_register): Ditto.
2526 * dve3900-rom.c (fetch_bitmapped_register):
2527 * cris-tdep.c (cris_gdbarch_init): Ditto.
2528 * alpha-tdep.h: Ditto.
2529 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2530
01e1877c
AC
2531 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2532 DEPRECATED_REGISTER_RAW_SIZE from comments.
2533 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2534 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2535 DEPRECATED_REGISTER_RAW_SIZE.
2536 * findvar.c (value_of_register): Simplify by assuming that the
2537 registers raw and virtual sizes are identical.
2538 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2539 comment.
2540 * arch-utils.c (generic_register_size): Simplify by assuming
2541 register_type.
2542
73f458fb
AC
2543 * regcache.c (legacy_read_register_gen, real_register)
2544 (legacy_write_register_gen): Delete, not used.
2545
336a3131
AC
2546 * regcache.c (struct regcache_descr): Delete legacy_p.
2547 (init_legacy_regcache_descr): Delete function.
2548 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2549 Do not use deprecated register functions.
2550 (regcache_raw_read, deprecated_write_register_gen):
2551 (deprecated_read_register_gen, regcache_raw_write): Delete code
2552 predicated on legacy_p.
2553 (register_size): Delete check against register raw size.
2554
c1d546cd
AC
2555 * cris-tdep.c (cris_register_type): Replace
2556 cris_register_virtual_type.
2557 (cris_gdbarch_init): Update, set register_type.
2558
48c2c0a6
AC
2559 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2560 * gdbarch.h, gdbarch.c: Re-generate.
2561 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2562 (arm_gdbarch_init) Do not set frameless function invocation.
2563 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2564 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2565 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2566 (frv_gdbarch_init): Do not set frameless function invocation.
2567 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2568 * sh-tdep.c (sh_gdbarch_init): Ditto.
2569 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2571 * avr-tdep.c (avr_gdbarch_init): Ditto.
2572
474093a6
AC
2573 * blockframe.c (legacy_frame_chain_valid): Delete function.
2574
3c109c8b
AC
2575 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2576 and pc. Update comments.
2577 (pc_in_dummy_frame): Delete function.
2578 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2579 use the "id".
2580 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2581 call_hi, top and pc, use the id.
2582 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2583
96860204
AC
2584 * dummy-frame.c: Include "gdb_string.h".
2585 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2586 (generic_save_dummy_frame_tos): Delete.
2587 (dummy_frame_push): New function, replaces above.
2588 * dummy-frame.h: Update copyright.
2589 (dummy_frame_push): Declare.
2590 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2591 (generic_save_call_dummy_addr): Delete declarations.
2592 * infcall.c: Include "dummy-frame.h".
2593 (call_function_by_hand): Add locals caller_regcache,
2594 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2595 with call to frame_save_as_regcache plus cleanup. Delete calls to
2596 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2597 Move clear_proceed_status to just before the resume, add call to
2598 dummy_frame_push (discard cleanup).
2599 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2600 (dummy-frame.o): Add $(gdb_string_h).
2601
d67ec5db
AC
26022004-08-01 Andrew Cagney <cagney@gnu.org>
2603
2604 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2605 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2606 * dummy-frame.c (find_dummy_frame): Delete.
2607 (struct dummy_frame_cache, dummy_frame_sniffer)
2608 (dummy_frame_prev_register, dummy_frame_this_id)
2609 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2610 frame unwinder using a dummy_frame_cache.
2611
a81dcb05
AC
26122004-08-01 Andrew Cagney <cagney@gnu.org>
2613
2614 * frame.h (frame_save_as_regcache): Declare.
2615 * frame.c (frame_save_as_regcache): New function.
2616 (do_frame_read_register): Replace do_frame_unwind_register.
2617 (frame_pop): Use frame_save_as_regcache.
2618 * dummy-frame.c (generic_push_dummy_frame): Use
2619 frame_save_as_regcache.
2620
aa495d11
JB
26212004-08-01 Joel Brobecker <brobecker@gnat.com>
2622
2623 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2624 file as included until we record the first line in the linetable.
2625
ff65ac78
AC
26262004-08-01 Andrew Cagney <cagney@gnu.org>
2627
2628 * frame.h (deprecated_pop_dummy_frame)
2629 (deprecated_read_register_dummy)
2630 (deprecated_generic_find_dummy_frame): Delete.
2631 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2632 (deprecated_read_register_dummy)
2633 (deprecated_find_dummy_frame_regcache)
2634 (discard_innermost_dummy)
2635 (deprecated_pop_dummy_frame): Delete.
2636 (dummy_frame_this_id): Simplify.
2637 (struct dummy_frame): Delete "fp" and "sp".
2638 (find_dummy_frame): Simplify.
2639 (generic_push_dummy_frame): Do not set "fp" or "sp".
2640 (fprint_dummy_frames): Do not print "fp" and "sp"
2641
37bdc87e
MK
26422004-08-01 Mark Kettenis <kettenis@gnu.org>
2643
2644 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2645 (struct i386_insn): New structure.
2646 (i386_match_insn): New function.
2647 (i386_frame_setup_skip_insns): New variable.
2648 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2649 array i386_frame_setup_insns of instructions that should be
2650 skipped inside the frame setup sequence.
2651
8241eaa6
AC
26522004-08-01 Andrew Cagney <cagney@gnu.org>
2653
5bc602c7
AC
2654 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2655 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2656 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2657 * stack.c (frame_info): Delete references to
2658 DEPRECATED_FRAME_INIT_SAVED_REGS and
2659 deprecated_get_frame_saved_regs.
2660 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2661 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2662 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2663 (frame_unwind_register_signed)
2664 (frame_unwind_register_unsigned)
2665 (frame_unwind_unsigned_register): Use register_size.
2666 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2667 (deprecated_frame_xmalloc_with_cleanup)
2668 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2669 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2670
03d363a1
AC
2671 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2672 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2673 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2674 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2675
8241eaa6
AC
2676 * infcall.c (call_function_by_hand): Do not use
2677 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2678 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2679 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2680 DEPRECATED_STACK_ALIGN.
2681
f00df8b7
AC
26822004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2683
2684 Committed by Andrew Cagney.
2685 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2686
eec63939
AC
26872004-08-01 Andrew Cagney <cagney@gnu.org>
2688
2689 * mips-tdep.c (mips16_frame_cache)
2690 (mips16_frame_this_id, mips16_frame_prev_register)
2691 (mips16_frame_unwind, mips16_frame_sniffer)
2692 (mips16_frame_base_address, mips16_frame_base)
2693 (mips16_frame_base_sniffer, mips32_frame_cache)
2694 (mips32_frame_this_id, mips32_frame_prev_register)
2695 (mips32_frame_unwind, mips32_frame_sniffer)
2696 (mips32_frame_base_address, mips32_frame_base)
2697 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2698 separate heuristic mips16 and mips32 unwinders.
2699 (mips_stub_frame_cache, mips_stub_frame_this_id)
2700 (mips_stub_frame_prev_register)
2701 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2702 (mips_stub_frame_base_address, mips_stub_frame_base)
2703 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2704 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2705 match true mdebug frames.
2706 (non_heuristic_proc_desc): Add forward declaration.
2707
e66299b3
AC
27082004-08-01 Andrew Cagney <cagney@gnu.org>
2709
83cbbf3e
AC
2710 * config/mips/tm-irix6.h: Delete file.
2711 * config/mips/tm-irix5.h: Delete file.
2712 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2713 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2714
22d41b37
AC
2715 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2716 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2717 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2718 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2719 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2720 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2721 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2722 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2723 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2724 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2725 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2726 (TARGET_SIGNAL_RAW_VALUES): Delete.
2727 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2728 Delete.
2729 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2730 (TARGET_HW_WATCH_LIMIT): Delete.
2731 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2732 * minimon.h: Delete file.
2733
e66299b3
AC
2734 * trad-frame.c (trad_frame_get_this_base)
2735 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2736 functions.
2737 * trad-frame.h (trad_frame_set_this_base)
2738 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2739
1f67027d
AC
27402004-07-31 Andrew Cagney <cagney@gnu.org>
2741
2742 * trad-frame.c (trad_frame_get_prev_register): Rename
2743 trad_frame_get_prev_register.
2744 * vax-tdep.c (vax_frame_prev_register): Update.
2745 * trad-frame.h: Update.
2746 * trad-frame.c (trad_frame_get_register): Update.
2747 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2748 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2749 Update.
2750 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2751 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2752 Update.
2753 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2754 Update.
2755 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2756 Update.
2757 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2758 Update.
2759 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2760 Update.
2761 * s390-tdep.c (s390_frame_prev_register)
2762 (s390_stub_frame_prev_register)
2763 (s390_sigtramp_frame_prev_register): Update.
2764 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2765 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2766 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2767 * m88k-tdep.c (m88k_frame_prev_register)
2768 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2769 * m32r-tdep.c (m32r_frame_prev_register): Update.
2770 * hppa-tdep.c (hppa_frame_prev_register_helper)
2771 * frv-tdep.c (frv_frame_prev_register): Update.
2772 * d10v-tdep.c (d10v_frame_prev_register): Update.
2773 * cris-tdep.c (cris_frame_prev_register): Update.
2774 * avr-tdep.c (avr_frame_prev_register): Update.
2775 * arm-tdep.c (arm_prologue_prev_register)
2776 (arm_sigtramp_prev_register): Update.
2777
c1bf6f65
AC
27782004-07-31 Andrew Cagney <cagney@gnu.org>
2779
2780 * frame.h (legacy_saved_regs_unwind)
2781 (legacy_frame_chain_valid, legacy_frame_p)
2782 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2783 * dummy-frame.c (dummy_frame_this_id): Simplify.
2784 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2785 * frame.c (struct frame_info): Delete the field "type".
2786 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2787 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2788 (legacy_saved_regs_unwind, legacy_frame_p)
2789 (frame_type_from_pc): Delete.
2790 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2791 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2792
dc856692
MK
27932004-07-31 Mark Kettenis <kettenis@gnu.org>
2794
5a5effe1
MK
2795 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2796 indentation.
2797
d4fd50a6
MK
2798 * mips-nat.c: Remove file.
2799 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2800 (mips-nat.o): Remove dependency.
2801
2689df5a
MK
2802 * infptrace.c: Update copyright year.
2803 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2804 explicitly setting the buffer to all zeroes.
2805
dc856692
MK
2806 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2807 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2808
763910e0
AC
28092004-07-30 Andrew Cagney <cagney@gnu.org>
2810
2811 * GDB 6.2 released from gdb_6_2-branch.
2812
0b66e38c
EZ
28132004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2814
2815 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2816
2817 * exec.c (exec_file_attach):
2818 * nto-tdep.c (nto_find_and_open_solib):
2819 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2820 * solib.c (solib_open):
2821 * somsolib.c (som_solib_sizeof_symbol_table):
2822 * source.c (is_regular_file, openp, open_source_file):
2823 * symfile.c (symfile_bfd_open):
2824 * wince.c (upload_to_device): Differentiate between the search for
2825 binary and source files.
2826
be7d7357
AC
28272004-07-30 Andrew Cagney <cagney@gnu.org>
2828
2829 * complaints.c (_initialize_complaints): Pass NULL to
2830 add_setshow_zinteger_cmd for help_doc.
2831 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2832
ddc9cd0f
AC
28332004-07-30 Andrew Cagney <cagney@gnu.org>
2834
2835 Fix PR i18n/761.
2836 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2837 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2838 $(PACKAGE).pot and update-po.
2839 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2840 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2841 (update-po): New rules.
2842 (localedir): Define using autoconf.
2843 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2844 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2845 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2846 * configure.in: Generate CATALOGS and LINGUAS from contents of
2847 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2848 * configure: Re-generate.
2849 * po/gdbtext: New file
2850
e92f3704
JG
28512004-07-30 Jerome Guitton <guitton@gnat.com>
2852
2853 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2854 order.
2855
b0f35d58
DL
28562004-07-30 David Lecomber <dsl@sources.redhat.com>
2857
2858 * dwarf2read.c (read_file_scope): Set producer if attribute
2859 present.
2860 (struct dwarf2_cu): Added new member producer.
2861
ce7d4522
JG
28622004-07-30 Jerome Guitton <guitton@gnat.com>
2863
2864 * inflow.c (kill_command): release file handles in BFD.
2865 * exec.c (exec_file_attach): Ditto.
2866 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2867
05ee07c7
AC
28682004-07-29 Andrew Cagney <cagney@gnu.org>
2869
2870 * PROBLEMS (mips-irix): Note that it is broken.
2871
62eceb47
AC
28722004-07-29 Andrew Cagney <cagney@gnu.org>
2873
e57b8d41
AC
2874 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2875 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2876
d334389b
AC
2877 * config/xm-nbsd.h: Delete file.
2878 * config/arm/xm-nbsd.h: Delete file.
2879 * config/i386/xm-nbsd.h: Delete file.
2880 * config/ns32k/xm-nbsd.h: Delete file.
2881 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2882 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2883 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2884 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2885 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2886
e910f676
AC
2887 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2888 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2889 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2890 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2891 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2892 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2893
6fa856b9
AC
2894 * config/powerpc/xm-linux.h: Delete empty file.
2895 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2896 * config/powerpc/linux.mh (XM_FILE): Delete.
2897 * config/m68k/xm-linux.h: Delete empty file.
2898 * config/m68k/linux.mh (XM_FILE): Delete.
2899 * config/ia64/xm-linux.h: Delete empty file.
2900 * config/ia64/linux.mh (XM_FILE): Delete.
2901 * config/arm/xm-linux.h: Delete empty file.
2902 * config/arm/linux.mh (XM_FILE): Delete.
2903
471ae5ae
AC
2904 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2905 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2906 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2907 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2908 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2909 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2910 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2911 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2912
62eceb47
AC
2913 * config/m68k/xm-m68k.h: Delete file.
2914 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2915 copyright.
2916 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2917 * config/pa/xm-linux.h: Delete empty file.
2918 * config/pa/linux.mh (XM_FILE): Delete.
2919 * config/i386/xm-i386.h: Delete empty file.
2920 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2921 "i386/xm-i386.h".
2922 * config/i386/obsdaout.mh (XM_FILE): Delete.
2923 * config/i386/obsd64.mh (XM_FILE): Delete.
2924 * config/i386/fbsd64.mh (XM_FILE): Delete.
2925 * config/i386/nto.mh (XM_FILE): Delete.
2926 * config/i386/obsd.mh (XM_FILE): Delete.
2927 * config/i386/linux64.mh (XM_FILE): Delete.
2928 * config/i386/linux.mh (XM_FILE): Delete.
2929 * config/i386/i386sol2.mh (XM_FILE): Delete.
2930 * config/i386/i386gnu.mh (XM_FILE): Delete.
2931 * config/i386/fbsd.mh (XM_FILE): Delete.
2932 * config/i386/nbsd64.mh (XM_FILE): Delete.
2933
c35f4ffc
AC
29342004-07-29 Andrew Cagney <cagney@gnu.org>
2935
2936 * config/pa/xm-linux.h: Do not include "floatformat.h".
2937 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2938 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2939 * config/i386/xm-i386.h: Do not include "floatformat.h".
2940 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2941 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2942 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2943 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2944 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2945 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2946 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2947 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2948 * configure, config.in: Regenerate.
2949 * configure.host (gdb_host_float_format, gdb_host_double_format)
2950 (gdb_host_long_double_format): Set according to the host.
2951
624a44a3
AC
29522004-07-29 Andrew Cagney <cagney@gnu.org>
2953
2954 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2955
0dea2468
AC
29562004-07-28 Andrew Cagney <cagney@gnu.org>
2957
2958 * PROBLEMS: Mention threads/1650.
2959 * NEWS: Mention the NPTL fix.
2960
b3f42336
AC
29612004-07-28 Andrew Cagney <cagney@gnu.org>
2962
2963 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2964 (add_setshow_cmd_full): Make static.
2965 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2966 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2967 * cli/cli-decode.c (add_setshow_filename_cmd)
2968 (add_setshow_string_cmd): New functions.
2969 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2970 * mips-tdep.c (_initialize_mips_tdep): Update.
2971 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2972 * cli/cli-logging.c (_initialize_cli_logging): Update.
2973 * complaints.c (_initialize_complaints): Update.
2974 * remote.c (_initialize_remote): Update.
2975
3b64bf98
AC
29762004-07-28 Andrew Cagney <cagney@gnu.org>
2977
2978 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2979 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2980 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2981 print parameters. Make string parameters constant.
2982 * command.h: Update. Update copyright.
2983 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2984 * observer.c (_initialize_observer): Ditto.
2985 * frame.c (_initialize_frame): Ditto.
2986 * complaints.c (_initialize_complaints): Ditto.
2987 * maint.c (_initialize_maint_cmds): Ditto.
2988 * target.c (initialize_targets): Ditto.
2989 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2990 * infcall.c (_initialize_infcall): Ditto.
2991 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2992 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2993 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2994 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2995 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2996
e9667a65
AC
29972004-07-28 Andrew Cagney <cagney@gnu.org>
2998
54a5b07d
AC
2999 * gdbtypes.c (lookup_primitive_typename): Delete function.
3000 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3001 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3002 * gdbtypes.c (lookup_typename): Ditto.
3003 * f-exp.y (yylex): Ditto.
3004 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3005
e9667a65
AC
3006 * scm-lang.c (c_builtin_types): Delete extern declaration.
3007 (scm_language_defn): Replace
3008 string_char_type and primitive_type_vector with
3009 la_language_arch_info.
3010 * jv-lang.c (java_language_defn): Replace
3011 string_char_type and primitive_type_vector with
3012 la_language_arch_info.
3013 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3014 c_builtin_types in comment.
3015 * c-lang.h (struct language_arch_info): Declare opaque.
3016 (c_language_arch_info): Declare.
3017 (c_builtin_types): Delete declaration.
3018 * c-lang.c (c_language_arch_info): Set string_char_type to
3019 builtin_char, not builtin_true_char. Make global.
3020 (c_builtin_types): Delete array.
3021 (asm_language_defn, minimal_language_defn): Replace
3022 string_char_type and primitive_type_vector with
3023 la_language_arch_info.
3024
685419e2
AC
30252004-07-28 Andrew Cagney <cagney@gnu.org>
3026
3027 * gdbtypes.h (struct builtin_type): Rename true_char to
3028 builtin_true_char.
3029 * gdbtypes.c (gdbtypes_post_init): Update.
3030 * c-lang.c (arch_info): New function.
3031 (enum c_primitive_types): New enum.
3032 (c_language_defn): Instead of string_char_type and
3033 primitive_type_vector set la_language_arch_info.
3034
5a44ea29
AC
30352004-07-28 Andrew Cagney <cagney@gnu.org>
3036
3037 * language.h (struct language_arch_info): Fix typo
3038 s/primative/primitive/.
3039 * gdbtypes.c (lookup_primitive_typename): Ditto.
3040 * language.c (language_lookup_primitive_type_by_name)
3041 (unknown_language_arch_info): Ditto.
3042
f290d38e
AC
30432004-07-27 Andrew Cagney <cagney@gnu.org>
3044
3045 * defs.h (enum language): Add nr_languages.
3046 * language.h (struct language_arch_info): Define.
3047 (struct language_defn): Add la_language_arch_info.
3048 (language_lookup_primative_type_by_name): Declare.
3049 (language_string_char_type): Declare.
3050 * language.c (_initialize_language, language_gdbarch_post_init)
3051 (struct language_gdbarch, language_gdbarch_data): Implement
3052 per-architecture language information.
3053 (unknown_language_arch_info, language_string_char_type)
3054 (language_lookup_primative_type_by_name): New functions.
3055 (unknown_language_defn, auto_language_defn)
3056 (local_language_defn): Set la_language_arch_info to
3057 unknown_language_arch_info.
3058 (unknown_builtin_types): Delete.
3059 * gdbtypes.c (lookup_primitive_typename): Use
3060 language_lookup_primative_type_by_name.
3061 (create_string_type): Use language_string_char_type.
3062 * values.c (value_from_string): Use language_string_char_type.
3063 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3064 * p-lang.c (pascal_language_defn): Ditto.
3065 * m2-lang.c (m2_language_defn): Ditto.
3066 * jv-lang.c (java_language_defn): Ditto.
3067 * objc-lang.c (objc_language_defn): Ditto.
3068 * f-lang.c (f_language_defn): Ditto.
3069 * c-lang.c (c_language_defn, cplus_language_defn)
3070 (asm_language_defn, minimal_language_defn): Ditto.
3071
000177f0
AC
30722004-07-27 Andrew Cagney <cagney@gnu.org>
3073
3074 * gdbtypes.h (struct builtin_type): Declare.
3075 (builtin_type): Declare.
3076 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3077 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3078 (gdbtypes_post_init): New function.
3079 (builtin_type): New function.
3080
e22f895c
KI
30812004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3082
3083 * remote-m32r-sdi.c: Fix breakpoint bug.
3084 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3085 recv_char_data, recv_long_data): New functions to replace communication
3086 sequences.
3087
536517dd
MC
30882004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3089
3090 Document PR threads/1650.
3091 * PROBLEMS (Threads): Document problem with many threads
3092
a0a44d18
AC
30932004-07-26 Andrew Cagney <cagney@gnu.org>
3094
3095 * gdb-mi.el: Move from here ...
3096 * mi/gdb-mi.el: ... to here.
3097
7ac4ac06
AC
30982004-07-26 Andrew Cagney <cagney@gnu.org>
3099
3100 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3101 * main.c (captured_main): When in batch mode always detach.
3102
a1b461bf
AC
31032004-07-26 Andrew Cagney <cagney@gnu.org>
3104
3105 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3106 and h8300 as broken.
3107 * NEWS: END-OF-LIFE frame compatibility module.
3108 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3109 specific comments.
3110
cb1a6d5f
AC
31112004-07-26 Andrew Cagney <cagney@gnu.org>
3112
3113 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3114 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3115 * wince.c (_initialize_wince): Update.
3116 * win32-nat.c (_initialize_win32_nat): Update.
3117 * varobj.c (_initialize_varobj): Update.
3118 * valops.c (_initialize_valops): Update.
3119 * utils.c (initialize_utils, initialize_utils): Update.
3120 * tui/tui-win.c (_initialize_tui_win): Update.
3121 * top.c (init_main): Update.
3122 * symfile.c (_initialize_symfile): Update.
3123 * source.c (_initialize_source): Update.
3124 * somsolib.c (_initialize_som_solib): Update.
3125 * solib.c (_initialize_solib): Update.
3126 * solib-frv.c (_initialize_frv_solib): Update.
3127 * serial.c (_initialize_serial): Update.
3128 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3129 * remote.c (_initialize_remote, _initialize_remote): Update.
3130 * remote-vx.c (_initialize_vx): Update.
3131 * remote-utils.c (_initialize_sr_support): Update.
3132 * remote-sds.c (_initialize_remote_sds): Update.
3133 * remote-mips.c (_initialize_remote_mips): Update.
3134 * remote-e7000.c (_initialize_remote_e7000): Update.
3135 * proc-api.c (_initialize_proc_api): Update.
3136 * printcmd.c: Update.
3137 * parse.c (_initialize_parse): Update.
3138 * pa64solib.c (_initialize_pa64_solib): Update.
3139 * p-valprint.c (_initialize_pascal_valprint): Update.
3140 * monitor.c (_initialize_remote_monitors): Update.
3141 * mips-tdep.c (_initialize_mips_tdep): Update.
3142 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3143 * maint.c (_initialize_maint_cmds): Update.
3144 * lin-lwp.c (_initialize_lin_lwp): Update.
3145 * language.c (_initialize_language): Update.
3146 * kod.c (_initialize_kod): Update.
3147 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3148 * i386-tdep.c (_initialize_i386_tdep): Update.
3149 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3150 * gdbarch.sh: Update.
3151 * gdbarch.c: Re-generate.
3152 * gdb-events.sh: Update.
3153 * gdb-events.c: Re-generate.
3154 * frame.c (_initialize_frame): Update.
3155 * exec.c: Update.
3156 * demangle.c (_initialize_demangler): Update.
3157 * dcache.c (_initialize_dcache): Update.
3158 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3159 * cp-valprint.c (_initialize_cp_valprint): Update.
3160 * corefile.c (_initialize_core): Update.
3161 * command.h: Update.
3162 * cli/cli-decode.h: Update.
3163 * cli/cli-cmds.c (init_cli_cmds): Update.
3164 * charset.c (_initialize_charset): Update.
3165 * breakpoint.c (_initialize_breakpoint): Update.
3166 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3167 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3168 * aix-thread.c (_initialize_aix_thread): Update.
3169
b4632131
MK
31702004-07-24 Mark Kettenis <kettenis@gnu.org>
3171
3172 Partial fix for PR backtrace/1718.
3173 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3174 that GCC migrates into the prolugue. Don't handle any
3175 instructions that clobber %ebx.
3176
822c9732
AC
31772004-07-23 Andrew Cagney <cagney@gnu.org>
3178
3179 Use regcache_raw_collect instead of regcache_collect.
3180 * regcache.h (regcache_collect): Delete declaration.
3181 * regcache.c (regcache_colect): Delete function.
3182 * win32-nat.c (do_child_store_inferior_registers): Update.
3183 * sol-thread.c (sol_thread_store_registers): Update.
3184 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3185 * rs6000-nat.c (store_register): Update.
3186 * remote.c (store_register_using_P, remote_store_registers): Update.
3187 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3188 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3189 (fill_vrregset, store_spe_registers, fill_gregset)
3190 (fill_gregset): Update.
3191 * nto-procfs.c (procfs_store_registers): Update.
3192 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3193 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3194 * m68klinux-nat.c (store_register, fill_gregset): Update.
3195 * m68k-tdep.c (fill_gregset): Update.
3196 * infptrace.c (store_register): Update.
3197 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3198 * i386-linux-nat.c (store_register, fill_gregset): Update.
3199 * hppa-linux-nat.c (fill_gregset): Update.
3200 * go32-nat.c (store_register): Update.
3201 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3202 (store_fp_regs): Update.
3203 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3204 (store_nwfpe_extended, store_fpregister, store_fpregs)
3205 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3206 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3207 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3208 (store_regs_user_thread, store_regs_kernel_thread): Update.
3209
32b05c07
MK
32102004-07-24 Mark Kettenis <kettenis@gnu.org>
3211
3212 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3213 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3214 encoding.
3215 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3216 member of `struct comp_unit'.
3217
8567c30f
AC
32182004-07-23 Andrew Cagney <cagney@gnu.org>
3219
3220 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3221 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3222
f6da8dd8
MH
32232004-07-23 Martin Hunt <hunt@redhat.com>
3224 Kevin Buettner <kevinb@redhat.com>
3225
3226 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3227 alignment was being added to the offset instead of multiplied.
3228
bd921882
MK
32292004-07-23 Mark Kettenis <kettenis@gnu.org>
3230
24f033e8
MK
3231 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3232 changed signal trampoline in OpenBSD 3.5-current.
3233
90f3cecd
MK
3234 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3235 <machine/pcb.h> and "bsd-kvm.h".
3236 (sparc64nbsd_supply_pcb): New function.
3237 (_initialize_sparc64nbsd_nat): Renamed from
3238 _initialize_sparcnbsd_nat. Enable libkvm interface.
3239 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3240 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3241 (LOADLIBES): New variable.
3242
a4954a62
MK
3243 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3244
bd921882
MK
3245 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3246
23a6d369
AC
32472004-07-21 Andrew Cagney <cagney@gnu.org>
3248
3249 Use regcache_raw_supply instead of supply_register.
3250 * regcache.h (supply_register): Delete declaration.
3251 * regcache.c (supply_register): Delete function.
3252 * wince.c (do_child_fetch_inferior_registers): Update.
3253 * win32-nat.c (do_child_fetch_inferior_registers)
3254 (fetch_elf_core_registers): Update.
3255 * v850ice.c (v850ice_fetch_registers): Update.
3256 * thread-db.c (thread_db_store_registers): Update.
3257 * sol-thread.c (sol_thread_store_registers): Update.
3258 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3259 * rs6000-nat.c (fetch_register): Update.
3260 * rom68k-rom.c (rom68k_supply_one_register): Update.
3261 * remote.c (remote_wait, remote_async_wait): Update.
3262 * remote-st.c (get_hex_regs): Update.
3263 * remote-sim.c (gdbsim_fetch_register): Update.
3264 * remote-sds.c (sds_fetch_registers): Update.
3265 * remote-rdp.c (remote_rdp_fetch_register): Update.
3266 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3267 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3268 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3269 * remote-hms.c (init_hms_cmds): Update.
3270 * remote-est.c (init_est_cmds): Update.
3271 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3272 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3273 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3274 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3275 (fetch_register, supply_vrregset, supply_vrregset)
3276 (fetch_spe_registers): Update.
3277 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3278 * monitor.c (monitor_supply_register): Update.
3279 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3280 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3281 (mipsnbsd_supply_fpreg): Update.
3282 * mips-nat.c (fetch_inferior_registers)
3283 (fetch_core_registers): Update.
3284 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3285 (supply_fpregset, mips64_supply_gregset)
3286 (mips64_supply_fpregset): Update.
3287 * m68klinux-nat.c (fetch_register, supply_gregset)
3288 (supply_fpregset): Update.
3289 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3290 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3291 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3292 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3293 * infptrace.c (fetch_register): Update.
3294 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3295 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3296 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3297 (gnu_fetch_registers, gnu_store_registers): Update.
3298 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3299 * i386-linux-nat.c (fetch_register, supply_gregset)
3300 (dummy_sse_values): Update.
3301 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3302 * hppah-nat.c (fetch_register): Update.
3303 * hppa-linux-nat.c (fetch_register, supply_gregset)
3304 (supply_fpregset): Update.
3305 * go32-nat.c (fetch_register): Update.
3306 * dve3900-rom.c (fetch_bitmapped_register)
3307 (_initialize_r3900_rom): Update.
3308 * cris-tdep.c (supply_gregset): Update.
3309 * abug-rom.c (init_abug_cmds): Update.
3310 * core-aout.c (fetch_core_registers): Update.
3311 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3312 (fetch_register, fetch_fp_register): Update.
3313 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3314 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3315 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3316 * alphanbsd-tdep.c (fetch_core_registers): Update.
3317 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3318 * alpha-nat.c (fetch_osf_core_registers)
3319 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3320 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3321 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3322
73cc75f3
AC
33232004-07-21 Andrew Cagney <cagney@gnu.org>
3324
3325 * PROBLEMS: Mention breakpoints/1702.
3326 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3327 that is known to work.
3328
a53c66de
AC
33292004-07-21 Andrew Cagney <cagney@gnu.org>
3330
3331 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3332 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3333 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3334 (handle_inferior_event): Wrap call to deprecated
3335 IGNORE_HELPER_CALL in #ifdef.
3336 * config/mips/tm-nbsd.h: Update.
3337
708ff411
JB
33382004-07-20 Jim Blandy <jimb@redhat.com>
3339
412b3060
JB
3340 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3341 bfd_mach_ppc has no segment registers.
3342
13ac140c
JB
3343 Include PowerPC SPR numbers for special-purpose registers.
3344 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3345 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3346 new member in initializer.
3347 (S, S4, SN4, S64): New macros for defining special-purpose
3348 registers.
3349 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3350 registers_403, registers_403GC, registers_505, registers_860,
3351 registers_601, registers_602, registers_603, registers_604,
3352 registers_750, registers_e500): Use them.
3353
708ff411
JB
3354 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3355 replace references with expression used to initialize variable.
3356
1f602b35
AC
33572004-07-20 Andrew Cagney <cagney@gnu.org>
3358
3359 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3360 read_memory_nobpt.
3361 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3362 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3363 (s390_sigtramp_frame_sniffer): Update.
3364 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3365 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3366 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3367 (mips32_fetch_instruction): Update.
3368 * mcore-tdep.c (get_insn): Update.
3369 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3370 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3371 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3372 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3373 (i386_linux_rt_sigtramp_start): Update.
3374 * i386-linux-nat.c (child_resume): Update.
3375 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3376 * hppa-linux-tdep.c (insns_match_pattern): Update.
3377 * gdbcore.h: Update.
3378 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3379 * frame.c (safe_frame_unwind_memory): Update.
3380 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3381 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3382 * alpha-tdep.c (alpha_read_insn): Update.
3383
2cd8546d
AC
33842004-07-20 Andrew Cagney <cagney@gnu.org>
3385
3386 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3387 containing both bytes and mask. Add "frame_type".
3388 * tramp-frame.c (tramp_frame_start): Update.
3389 (tramp_frame_prepend_unwinder): Update.
3390 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3391 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3392 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3393 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3394
f928dd62
EZ
33952004-07-19 Eli Zaretskii <eliz@gnu.org>
3396
3397 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3398 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3399 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3400 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3401
d5c560f7
AC
34022004-07-17 Andrew Cagney <cagney@gnu.org>
3403
860660cb
AC
3404 * NEWS, PROBLEMS: Update for 6.2.
3405
8c266f54
AC
3406 * README: Update to 6.2.
3407
a552edd9
AC
3408 * utils.c (xvasprintf): Call xstrvprintf.
3409
c4a172b5
AC
3410 * parse.c: Update copyright.
3411 (null_post_parser): Eliminate ARGSUSED.
3412
da745b36
AC
3413 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3414 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3415 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3416
9cbc6ef0
AC
3417 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3418 * ppc-linux-nat.c: Use "Linux kernel".
3419 * hppa-linux-tdep.c: Use GNU/Linux.
3420 * hppa-linux-nat.c: Use GNU/Linux.
3421 * dwarfread.c: Add [sic] to use of Linux.
3422
1b89295f
AC
3423 * hppa-linux-nat.c: Do not include <string.h>.
3424 (supply_fpregset): Remove "register" attribute.
3425
d5c560f7
AC
3426 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3427
7ddd7709
MK
34282004-07-17 Mark Kettenis <kettenis@gnu.org>
3429
b1d19a62
MK
3430 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3431 * configure, config.in: Regenerated.
3432
7ddd7709
MK
3433 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3434 "bsd-kvm.h".
3435 (vaxbsd_supply_pcb): New function.
3436 (_initialize_vaxbsd_nat): New prototype and function.
3437 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3438 solib-sunos.o.
3439 (LOADLIBES): New variable.
3440 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3441 (LOADLIBES): New variable.
3442 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3443 (LOADLIBES): New variable.
3444 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3445
2c07db7a
AC
34462004-07-16 Andrew Cagney <cagney@gnu.org>
3447
3448 * defs.h (event_loop_p): Replace variable declaration with macro,
3449 always 1.
3450 * main.c (captured_main): Delete options "-async" and "-noasync".
3451 (event_loop_p): Delete variable.
3452 * NEWS: Mention that "-async" and "-noasync" were removed.
3453
717eb1cf
AC
34542004-07-16 Andrew Cagney <cagney@gnu.org>
3455
3456 * remote-m32r-sdi.c: Re-indent.
3457
c101bc14
JB
34582004-07-16 Jim Blandy <jimb@redhat.com>
3459
5109a438
JB
3460 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3461 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3462 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3463 missing MPC823 SPRs.
3464 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3465 incorrect. (This was corrected in GDB's register name tables on
3466 2004-07-14.)
3467
c101bc14
JB
3468 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3469 should be "esasrr" ("ESA Save and Restore Register").
3470
7ce450bd
AC
34712004-07-16 Andrew Cagney <cagney@gnu.org>
3472
3473 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3474 calls, no longer applicable. Update comments and rename parameter
3475 "step_frame" to "return_frame".
3476
ca73dd9d
AC
34772004-07-16 Andrew Cagney <cagney@gnu.org>
3478
3479 * frame.c (fprint_field): New function.
3480 (fprint_frame_id): Use fprint_field.
3481
31941f6d
JB
34822004-07-15 Joel Brobecker <brobecker@gnat.com>
3483
3484 * ada-lang.c (ada_language_defn): Remove commented out code.
3485
f86a7158
JB
34862004-07-15 Jim Blandy <jimb@redhat.com>
3487
3488 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3489 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3490
c24791ec
JB
34912004-07-14 Jim Blandy <jimb@redhat.com>
3492
29bb1356
JB
3493 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3494
cc98b5cc
JB
3495 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3496
8f088af7
JB
3497 * ppc-tdep.h (ppc_num_srs): New enum constant.
3498
0ea0ec5f
JB
3499 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3500 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3501 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3502 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3503 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3504 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3505 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3506 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3507 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3508 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3509 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3510 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3511 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3512 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3513 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3514 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3515 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3516 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3517 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3518 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3519 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3520 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3521 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3522 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3523 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3524 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3525 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3526 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3527 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3528 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3529 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3530 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3531 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3532 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3533 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3534 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3535 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3536 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3537 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3538 special-purpose register numbers.
3539
c24791ec
JB
3540 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3541 manual mentions 'md_twb', but many mention 'm_twb', and at that
3542 point in the register list.)
3543
d833db3b
AC
35442004-07-14 Andrew Cagney <cagney@gnu.org>
3545
3546 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3547 instead of "internal-error".
3548
080228b2
JB
35492004-07-10 Joel Brobecker <brobecker@gnat.com>
3550
3551 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3552 that was inserted inside a comment.
3553
c268433a
RC
35542004-07-10 Randolph Chung <tausq@debian.org>
3555
3556 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3557 function.
3558 (hppa_hpux_push_dummy_code): New function.
3559 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3560 Set find_global_pointer method.
3561
71009278
MK
35622004-07-10 Mark Kettenis <kettenis@gnu.org>
3563
3564 * NEWS: Mention BSD libkvm interface.
3565
b2fa5097
MS
35662004-07-10 Michael Snyder <msnyder@redhat.com>
3567
3568 * symfile.c (generic_load): Comment typo.
3569 * stack.c (get_selected_block): Ditto.
3570 * regcache.c (regcache_cooked_read): Ditto.
3571 * monitor.c (monitor_debug): Ditto.
3572 * mips-tdep.c (mips_read_pc): Ditto.
3573 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3574 * gdb_mbuild.sh: Ditto.
3575 * gdbarch.sh: Ditto.
3576 * gdbarch.h: Ditto.
3577
c3e5cd34
PH
35782004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3579
8a2225b2
PH
3580 * ada-tasks.c: Remove file.
3581
c3e5cd34
PH
3582 Remove ARI problems:
3583
3584 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3585 beginning of line.
3586
3587 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3588 Add comment.
3589 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3590 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3591 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3592 (UMIN_OF_SIZE): Remove.
3593 (max_of_type): New function to replace orphan macro in gdbtypes.h
3594 (min_of_type): Ditto.
3595 (discrete_type_high_bound): Use max_of_type.
3596 (discrete_type_low_bound): Use min_of_type.
3597 (possible_user_operator_p): Move operator to beginning of line.
3598 (ada_is_variant_part): Ditto.
3599 (ensure_lval): Rewrite to avoid deprecated operations.
3600 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3601 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3602 (ada_enum_name): Remove assignments in 'if' statements.
3603 (build_ada_types): Add gdbarch parameter.
3604 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3605 with gdbarch_data_register_post_init.
3606 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3607 add_show_from_set.
3608
3609 * ada-valprint.c (inspect_it): Remove declaration.
3610 (repeat_count_threshold): Remove declaration.
3611 (ada_print_floating): Remove assignments in 'if' statements.
3612 (print_str): Move operator to beginning of line.
3613
61ce229a
JB
36142004-07-08 Jim Blandy <jimb@redhat.com>
3615
3616 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3617
09bcec80
BR
36182004-07-08 Bob Rossi <bob@brasko.net>
3619
3620 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3621
31c27f77
JJ
36222004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3623
3624 * language.h (struct_language_defn): Add new function pointer:
3625 la_class_name_from_physname. Also add new prototype for
3626 language_class_name_from_physname.
3627 * language.c (language_class_name_from_physname): New function.
3628 (unk_lang_class_name): Ditto.
3629 (unknown_language_defn, auto_language_defn): Change
3630 to add unk_lang_class_name function pointer for
3631 la_class_name_from_physname.
3632 (local_language_defn): Ditto.
3633 * dwarf2read.c (guess_structure_name): Change to call
3634 language_class_name_from_physname.
3635 (determine_class_name): Ditto.
3636 * cp-support.c (class_name_from_physname): Renamed.
3637 (cp_class_name_from_physname): New name of function.
3638 * cp-support.h: Ditto.
3639 * c-lang.c (c_language_defn): Change to add NULL
3640 for class_name_from_physname function pointer.
3641 (cplus_language_defn): Change to add cp_class_name_from_physname.
3642 * jv-lang.c (java_class_name_physname): New function.
3643 (java_find_last_component): New static routine.
3644 (java_language_defn): Add java_class_name_from_physname pointer.
3645 * ada-lang.c (ada_language_defn): Change to add NULL
3646 for class_name_from_physname function pointer.
3647 * f-lang.c (f_language_defn): Ditto.
3648 * m2-lang.c (m2_language_defn): Ditto.
3649 * objc-lang.c (objc_language_defn): Ditto.
3650 * p-lang.c (pascal_language_defn): Ditto.
3651 * scm-lang.c (scm_language_defn): Ditto.
3652
ee28ca0f
AC
36532004-07-06 Andrew Cagney <cagney@gnu.org>
3654
3655 Patch from Bart Robinson.
3656 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3657 (O_LARGEFILE): Define to 0, if not defined.
3658
fdb1bf9d
MK
36592004-07-03 Mark Kettenis <kettenis@gnu.org>
3660
cb162ff6
MK
3661 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3662 <machine/pcb.h> and "bsd-kvm.h".
3663 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3664 (m68kbsd_supply_pcb): New function.
3665 (_initialize_m68kbsd_nat): New prototype and function.
3666 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3667 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3668 (LOADLIBES): New variable.
3669 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3670 (LOADLIBES): New variable.
3671
fdb1bf9d
MK
3672 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3673
963c4174
MK
36742004-07-03 Mark Kettenis <kettenis@gnu.org>
3675
3676 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3677 <sys/proc.h>.
3678 (bsd_kvm_cmdlist): New variable.
3679 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3680 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3681 command and "kvm proc" command.
3682 * Makefile.in (bsd-kvm.o): Update dependencies.
3683
533f1d8f
MK
36842004-07-02 Mark Kettenis <kettenis@gnu.org>
3685
3686 * osabi.c: Update copyright year.
3687 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3688 notes if EI_OSABI is set to ELFOSABI_HPUX.
3689
6780dcde
MS
36902004-07-01 Michael Snyder <msnyder@redhat.com>
3691
3692 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3693 that seems to have gotten whacked out of line.
3694
67bebe79
MK
36952004-07-01 Mark Kettenis <kettenis@gnu.org>
3696
3697 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3698 code.
3699
0b5d8877
PH
37002004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3701
3702 * ada-lang.c (decode_packed_array): Minor change to comment.
3703 (ada_value_slice_ptr): New function.
3704 (ada_value_slice): New function.
3705 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3706 test. Don't know why it is there.
3707 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3708 to avoid dereferencing huge arrays from which one is slicing.
3709 (empty_array): Correct to return an array rather than
3710 a subrange value.
3711 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3712 on empty arrays (let'em use 'FIRST instead).
3713
19c1ef65
PH
37142004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3715
3716 Address complaints from gdb_ari.sh:
3717
3718 * ada-exp.y: Include gdb_string.h rather than string.h.
3719 (convert_char_literal): Reformat declaration.
3720 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3721 * ada-lex.l: Change use of free to xfree (the macro would do so
3722 anyway, but this is harmless).
3723 Include gdb_string.h rather than string.h.
3724 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3725
3726 * ada-lang.c (parse): Remove K&Rism in parameter list.
3727 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3728
d81cbc94
MK
37292004-06-30 Mark Kettenis <kettenis@gnu.org>
3730
3731 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3732 dead code.
3733
07681759
MK
37342004-06-30 Mark Kettenis <kettenis@gnu.org>
3735
3736 * alphabsd-nat.c: Update copyright year.
3737 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3738
f7948b5f
JB
37392004-06-29 Joel Brobecker <brobecker@gnat.com>
3740
6e0cdd28 3741 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3742 (i386_cygwin_in_solib_call_trampoline): New function.
3743 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3744 and skip_trampoline_code gdbarch methods.
3745
8f113c9a
JB
37462004-06-29 Jim Blandy <jimb@redhat.com>
3747
3748 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3749 name actually used in the dependency lists.
3750
97dc871c
RC
37512004-06-29 Randolph Chung <tausq@debian.org>
3752
3753 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3754
47216e51
CV
37552004-06-29 Corinna Vinschen <vinschen@redhat.com>
3756
3757 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3758 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3759 functionality.
3760
e623b504
AC
37612004-06-28 Andrew Cagney <cagney@gnu.org>
3762
3763 * defs.h (xstrvprintf): Declare.
3764 * utils.c (xstrvprintf): New function.
3765 (internal_vproblem, xstrprintf, xasprintf)
3766 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3767 * serial.c (serial_printf): Ditto.
3768 * complaints.c (vcomplaint): Ditto.
3769
79acc9b3
CV
37702004-06-29 Corinna Vinschen <vinschen@redhat.com>
3771
3772 * infcmd.c (attach_command): Move call to target_terminal_inferior
3773 behind loading symbol table.
3774
1daf35d9
AC
37752004-06-28 Andrew Cagney <cagney@gnu.org>
3776
3777 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3778 change - add back extern deprecated_ui_loop_hook declaration.
3779
b435e160
AC
37802004-06-28 Andrew Cagney <cagney@gnu.org>
3781
3782 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3783 xstrprintf.
3784 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3785 (c_value_of_variable): Ditto.
3786 * utils.c (internal_vproblem): Ditto.
3787 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3788 * remote.c (add_packet_config_cmd): Ditto.
3789 * remote-rdp.c (rdp_set_command_line): Ditto.
3790 * regcache.c (regcache_dump): Ditto.
3791 * frv-tdep.c (new_variant, new_variant): Ditto.
3792 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3793 (fbsd_find_memory_regions): Ditto.
3794 * breakpoint.c (create_thread_event_breakpoint)
3795 (create_breakpoints): Ditto.
3796 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3797 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3798
06d5cf63
JB
37992004-06-28 Joel Brobecker <brobecker@gnat.com>
3800
3801 * ada-lang.c: Re-indent file, with some massaging to help indent
3802 a bit when the result is otherwise really too ugly.
3803
35809fad
UW
38042004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3805
3806 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3807 code_addr_p and special_addr_p to 'unsigned int'.
3808
40e20472
MK
38092004-06-27 Mark Kettenis <kettenis@gnu.org>
3810
3811 * i386v4-nat.c: Update copyright year and tweak comment.
3812 (regmap): Remove trailing comma.
3813 (supply_gregset): Rename local variable i to regnum. Call
3814 regcache_raw_supply instead of supply_register.
3815 (fill_gregset): Rename argument regno to regnum. Call
3816 regcache_raw_collect instead of regcache_collect.
3817
12b0b6de
UW
38182004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3819
3820 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3821 and special_addr_p.
3822 (frame_id_build, frame_id_build_special): Update comments.
3823 (frame_id_build_wild): New prototype.
3824 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3825 struct frame_id fields.
3826 (frame_id_build_wild): New function.
3827 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3828
47b42a3e
MK
38292004-06-27 Mark Kettenis <kettenis@gnu.org>
3830
3831 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3832 hppabsd-tdep.c.
3833
1265e4aa
JB
38342004-06-27 Joel Brobecker <brobecker@gnat.com>
3835
3836 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3837
76a01679
JB
38382004-06-27 Joel Brobecker <brobecker@gnat.com>
3839
3840 * ada-lang.c: Re-indent file.
3841
7aca490a
JB
38422004-06-27 Joel Brobecker <brobecker@gnat.com>
3843
3844 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3845 (no_symtab_msg): Likewise.
3846
5e987968
AS
38472004-06-27 Andreas Schwab <schwab@suse.de>
3848
3849 * source.c: Fix whitespace.
3850
315c4276
MK
38512004-06-27 Mark Kettenis <kettenis@gnu.org>
3852
d15be926
MK
3853 * configure.in: Include <sys/param.h> for td_pcb test.
3854 * configure: Regenerated.
3855
9062529b
MK
3856 * i386nbsd-nat.c: New file.
3857 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3858 i386obsd-nat.c and i386obsd-tdep.c.
3859 (i386nbsd-nat.o): New dependency.
3860 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3861 bsd-kvm.o.
3862 (LOADLIBES): New variable.
3863 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3864 bsd-kvm.o.
3865 (LOADLIBES): New variable.
3866
8010310e
MK
3867 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3868 (LOADLIBES): New variable.
3869
efe1d7b9
MK
3870 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3871 fetching from BSD_KVM_PADDR. Correctly lookup address for
3872 "_thread0".
3873
315c4276
MK
3874 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3875 "bsd-kvm.h".
3876 (amd64fbsd_supply_pcb): New funcion.
3877 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3878
399cfac6
DL
38792004-06-27 <david@streamline-computing.com>
3880
3881 Partial fix for PR cli/1056.
3882 * valarith.c: Check for zero in division and remainder
3883 evaluation.
3884
6235f9c8
MK
38852004-06-27 Mark Kettenis <kettenis@gnu.org>
3886
3887 * i387-tdep.c: Remove excessive whitespace.
3888
2726dafc
AC
38892004-06-26 Andrew Cagney <cagney@gnu.org>
3890
3891 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3892 * gdb-events.h, gdb-events.c: Re-generate.
3893 * tui/tui-hooks.c (tui_install_hooks): Update.
3894 (tui_remove_hooks): Update.
3895 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3896
0e56aeaf
MK
38972004-06-26 Mark Kettenis <kettenis@gnu.org>
3898
cb461069
MK
3899 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3900 (gregset_t, fpregset_t): Remove typedefs.
3901 (REG_OFFSET): Rename argument.
3902 (amd64bsd_r_reg_offset): Rename from reg_offset.
3903 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3904 Remove functions.
3905 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3906 of reg_offset.
3907 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3908
ecba89de
MK
3909 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3910
4cd80476
MK
3911 * vax-tdep.c: Tweak comment.
3912
0e56aeaf
MK
3913 Add OpenBSD/hppa support.
3914 * NEWS (New native configurations): Mention OpenBSD/hppa.
3915 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3916 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3917 files.
3918 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3919 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3920 * configure.host: Add hppa*-*-openbsd*.
3921 * configure.tgt: Add hppa*-*-openbsd*.
3922
98bbd631
AC
39232004-06-25 Andrew Cagney <cagney@gnu.org>
3924
3925 * defs.h (deprecated_ui_loop_hook): Deprecated.
3926 * wince.c (child_wait): Update.
3927 * win32-nat.c (child_wait): Update.
3928 * v850ice.c (v850ice_wait): Update.
3929 * top.c (deprecated_ui_loop_hook): Update.
3930 * serial.h: Update.
3931 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3932 (do_unix_readchar): Update.
3933 * ser-tcp.c (net_open): Update.
3934 * remote-sim.c (gdb_os_poll_quit): Update.
3935 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3936
769d7dc4
AC
39372004-06-24 Andrew Cagney <cagney@gnu.org>
3938
3939 * defs.h (deprecated_pre_add_symbol_hook)
3940 (deprecated_post_add_symbol_hook): Deprecated.
3941 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3942 (symbol_file_add_with_addrs_or_offsets): Update references.
3943
11c949aa
AC
39442004-06-24 Andrew Cagney <cagney@gnu.org>
3945
3946 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3947 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3948 * wince.c (ui_loop_hook): Delete extern declaration.
3949 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3950 * v850ice.c (ui_loop_hook): Delete extern declaration..
3951 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3952 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3953 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3954 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3955 ui_loop_hook declaration.
3956
eedc19af
AC
39572004-06-24 Andrew Cagney <cagney@gnu.org>
3958
3959 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3960 entry_func_highpc fields.
3961 * objfiles.c (init_entry_point_info): Do not clear
3962 entry_func_lowpc and entry_func_highpc.
3963 (objfile_relocate): Do not relocate entry_func_lowpc and
3964 entry_func_highpc.
3965 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3966 entry_func_highpc.
3967 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3968 entry_func_highpc.
3969 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3970 entry_func_lowpc and entry_func_highpc with call to
3971 inside_entry_func.
3972
d47079be
MK
39732004-06-24 Mark Kettenis <kettenis@gnu.org>
3974
3975 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3976 quad-precision floating point arguments in registers.
3977
2107e348
MK
39782004-06-24 Mark Kettenis <kettenis@gnu.org>
3979
3980 From Michael Mueller <m.mueller99@kay-mueller.de>:
3981 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3982 account.
3983
46587c42
JJ
39842004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3985
3986 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3987 to -1.
3988 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3989 untriggered watchpoints to a separate if clause. Update function
3990 comment regarding STOPPED_BY_WATCHPOINT argument.
3991
226f5cf4
JB
39922004-06-22 Jim Blandy <jimb@redhat.com>
3993
3994 * gdbarch.sh: Doc fix.
3995
f10683bb
MH
39962004-06-21 Martin Hunt <hunt@redhat.com>
3997 Kevin Buettner <kevinb@redhat.com>
3998
3999 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4000 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4001 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4002 to set_gdbarch_sp_regnum(). Use cooked register number.
4003 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4004
412d5987
AC
40052004-06-21 Andrew Cagney <cagney@gnu.org>
4006
4007 * gdbarch.sh: When the macro field is empty, do not generate a
4008 macro definition. When the macro field is "=", generate the macro
4009 name from the upper-case function name.
4010 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4011 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4012 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4013 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4014 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4015 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4016 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4017 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4018 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4019 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4020 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4021 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4022 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4023 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4024 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4025 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4026 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4027 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4028 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4029 (DEPRECATED_USE_STRUCT_CONVENTION)
4030 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4031 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4032 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4033 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4034 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4035 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4036 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4037 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4038 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4039 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4040 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4041 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4042 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4043 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4044 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4045 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4046 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4047 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4048
68908a3e
AC
40492004-06-21 Andrew Cagney <cagney@gnu.org>
4050
48f7351b
AC
4051 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4052 macro name, and the function rather than macro value. Only wrap
4053 macro print statements in #ifdef. Move format logic to where it
4054 is needed.
4055 * gdbarch.c: Re-generate.
4056
283354d8
AC
4057 * gdbarch.sh (read): Delete "print_p" and "description", add
4058 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4059 Delete references to print_p.
4060 (TARGET_ARCHITECTURE): Delete print predicate.
4061 * gdbarch.c: Re-generate.
4062
68908a3e
AC
4063 * gdbarch.sh: Check that multi-arch methods do not provide a
4064 macro.
4065 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4066 (print_registers_info, print_float_info, print_vector_info)
4067 (adjust_breakpoint_address, remote_translate_xfer_address)
4068 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4069 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4070 name from the multi-arch definition.
4071
a2428dbe
AC
40722004-06-20 Andrew Cagney <cagney@gnu.org>
4073
4074 * gdbarch.sh: Sort by the function, instead of macro name.
4075 * gdbarch.c: Re-generate.
4076
750eb019
AC
40772004-06-20 Andrew Cagney <cagney@gnu.org>
4078
66d659b1
AC
4079 * gdbarch.sh: Use the function, instead of macro name in
4080 errors and the log file.
4081 (return_value): Remove stray ":" in spec.
4082
750eb019
AC
4083 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4084 * gdbarch.h, gdbarch.c: Re-generate.
4085 * Makefile.in (arch-utils.o): Update dependencies.
4086 * values.c (using_struct_return): Move code calling
4087 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4088 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4089 to legacy_return_value, simplify.
4090 * infcmd.c (print_return_value): Move code calling
4091 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4092 to legacy_return_value, simplify.
4093 * infcall.c (call_function_by_hand): Move code calling
4094 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4095 * arch-utils.c: Update copyright. Include "gdbcore.h".
4096 (legacy_return_value): New function.
4097 * arch-utils.h: Update copyright.
4098 (legacy_return_value): Declare.
4099
b5622e8d
AC
41002004-06-20 Andrew Cagney <cagney@gnu.org>
4101
4102 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4103 * gdbarch.h, gdbarch.c: Re-generate.
4104 * values.c (using_struct_return): Update call.
4105 * mcore-tdep.c: Update comment.
4106 * infcall.c (call_function_by_hand): Update comment.
4107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4108 * arch-utils.h (always_use_struct_convention): Update.
4109 * v850-tdep.c (v850_gdbarch_init): Update.
4110 * sh64-tdep.c (sh64_gdbarch_init): Update.
4111 * sh-tdep.c (sh_gdbarch_init): Update.
4112 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4113 * mips-tdep.c (mips_gdbarch_init): Update.
4114 * mcore-tdep.c (mcore_gdbarch_init): Update.
4115 * m32r-tdep.c (m32r_gdbarch_init): Update.
4116 * ia64-tdep.c (ia64_gdbarch_init): Update.
4117 * h8300-tdep.c (h8300_gdbarch_init): Update.
4118 * frv-tdep.c (frv_gdbarch_init): Update.
4119 * cris-tdep.c (cris_gdbarch_init): Update.
4120 * arm-tdep.c (arm_gdbarch_init): Update.
4121 * alpha-tdep.c (alpha_gdbarch_init): Update.
4122
5191de37
MC
41232004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4124
4125 * PROBLEMS: Add more specific information, and a work-around,
4126 for PR gdb/1458.
4127
782263ab
AC
41282004-06-18 Andrew Cagney <cagney@gnu.org>
4129
4130 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4131 * gdbarch.h, gdbarch.c: Re-generate.
4132 * ada-lang.c (ada_finish_decode_line_1): Update.
4133 * infrun.c (handle_inferior_event): Update.
4134 * infcall.c (find_function_addr): Update.
4135 * linespec.c (minsym_found): Update.
4136 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4137 Update.
4138 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4139 * cli/cli-cmds.c (disassemble_command): Update.
4140 * vax-tdep.c (vax_gdbarch_init): Update.
4141
2f305df1
MK
41422004-06-18 Mark Kettenis <kettenis@gnu.org>
4143
4144 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4145
e5fe55f7
AC
41462004-06-17 Andrew Cagney <cagney@gnu.org>
4147
4148 GDB 6.1.1 released from the GDB 6.1 branch.
4149 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4150 * PROBLEMS: Ditto.
4151
473b7be6
DJ
41522004-06-16 Daniel Jacobowitz <dan@debian.org>
4153
4154 PR gdb/1658
4155 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4156 operation as a uleb128. Found by Michael Coulter.
4157
96d887e8
PH
41582004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4159
4160 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4161 make it non-static.
4162 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4163 to ada-lang.h; this is needed to be able to implement the kill command
4164 in multi-task mode.
4165 (task_ptid): Ditto.
4166 (task_entry): Ditto.
4167 (task_list): Ditto.
4168 (ada_build_task_list): Ditto.
4169
4170 * ada-lang.c: Conditionalize routines and data structures related
4171 to breakpoints, exceptions, completion, and symbol caching on
4172 GNAT_GDB, since these are not yet used in the submitted public sources.
4173 (ada_main_name): Editorial: Move definition out of exception-related
4174 code.
4175
31eef181
AC
41762004-06-15 Andrew Cagney <cagney@gnu.org>
4177
4178 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4179 deprecated_pc_in_call_dummy.
4180
2c500098
AM
41812004-06-15 Alan Modra <amodra@bigpond.net.au>
4182
4183 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4184 bfd_get_section_size_before_reloc or _raw_size.
4185 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4186 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4187 (dwarf2_read_section): Likewise.
4188 * elfread.c (elf_locate_sections): Likewise.
4189 * gcore.c (derive_heap_segment): Likewise.
4190 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4191 * remote-e7000.c (e7000_load): Likewise.
4192 * remote-m32r-sdi.c (m32r_load): Likewise.
4193 * remote-mips.c (mips_load_srec): Likewise.
4194 (pmon_load_fast): Likewise.
4195 * remote.c (compare_sections_command): Likewise.
4196 * symfile.c (add_section_size_callback): Likewise.
4197 (load_section_callback): Likewise.
4198 (pc_in_unmapped_range): Likewise.
4199 (pc_in_mapped_range): Likewise.
4200 (sections_overlap): Likewise.
4201 (list_overlays_command): Likewise.
4202 (simple_overlay_update_1): Likewise.
4203 (simple_overlay_update): Likewise.
4204 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4205 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4206
90f943f1
RC
42072004-06-14 Randolph Chung <tausq@debian.org>
4208
4209 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4210 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4211 static.
4212 (hppa_hpux_inferior_created): New function.
4213 (hppa_hpux_init_abi): Register observer.
4214 * symfile.c (hp_cxx_exception_support_initialized)
4215 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4216 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4217
700c15aa
RC
42182004-06-14 Randolph Chung <tausq@debian.org>
4219
3973a7d3
AC
4220 * MAINTAINERS (Write After Approval): Alphabetize my entry
4221 correctly.
700c15aa 4222
cea4838c
AC
42232004-06-14 Andrew Cagney <cagney@gnu.org>
4224
4225 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4226 testsuite maintainer.
4227
97092415
AC
42282004-06-13 Andrew Cagney <cagney@gnu.org>
4229
e8c3165b
AC
4230 * infcmd.c (print_return_value): Fix logic, allow
4231 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4232
bceabdd8
AC
4233 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4234 defining any macros.
4235 * gdbarch.h: Re-generate.
4236
57010b1c
AC
4237 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4238 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4239 * gdbarch.h: Re-generate.
4240
bc87dfa0
AC
4241 * values.c (generic_use_struct_convention): Don't check gcc_p.
4242
15ac804d
AC
4243 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4244 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4245 * gdbarch.h, gdbarch.c: Regenerate.
4246 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4247 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4249 deprecated_max_register_raw_size and
4250 deprecated_max_register_virtual_size.
4251 * v850-tdep.c (v850_gdbarch_init): Ditto.
4252 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4253 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4254 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4255 * cris-tdep.c (cris_gdbarch_init): Ditto.
4256
97092415
AC
4257 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4258 * gdbarch.h, gdbarch.c: Re-generate.
4259 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4260 (m68hc11_use_struct_convention): Delete function.
4261 (m68hc11_extract_struct_value_address): Delete function.
4262 (m68hc11_return_value): New function.
4263 (m68hc11_gdbarch_init): Instead of store_return_value,
4264 extract_return_value, return_value_on_stack,
4265 deprecated_extract_struct_value_address and use_struct_convention,
4266 set return_value.
4267 * values.c (using_struct_return): Do not call
4268 RETURN_VALUE_ON_STACK.
4269 * arch-utils.h (generic_return_value_on_stack_not): Delete
4270 declaration.
4271 * arch-utils.c (generic_return_value_on_stack_not): Delete
4272 function.
4273
44e5158b
AC
42742004-06-12 Andrew Cagney <cagney@gnu.org>
4275
4276 * values.c (register_value_being_returned): Delete function.
4277 * infcmd.c (legacy_return_value): Delete function.
4278 * infcall.c (call_function_by_hand): Inline
4279 "register_value_being_returned", simplify.
4280 * values.c (using_struct_return): Update comment, refer to
4281 print_return_value instead of register_value_being_returned.
4282 * infcmd.c (print_return_value): Inline calls to
4283 register_value_being_returned and legacy_return_value. Simplify.
4284
b887c273
RC
42852004-06-11 Randolph Chung <tausq@debian.org>
4286
4287 * somread.c (som_symtab_read): Exclude gcc local symbols.
4288
1b2bfbb9
RC
42892004-06-11 Randolph Chung <tausq@debian.org>
4290
3973a7d3
AC
4291 * infrun.c (handle_inferior_event): Handle the case when a
4292 trampoline ends up in the runtime resolver, and if the trampoline
4293 has no name. Rearrange the code so that all the trampoline
4294 processing happens before other step-out-of-range handling.
1b2bfbb9 4295
a9d61c86
MH
42962004-06-11 Martin Hunt <hunt@redhat.com>
4297
4298 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4299 has no fpu.
4300
2c87cf5a
AC
43012004-06-10 Andrew Cagney <cagney@gnu.org>
4302
4303 * blockframe.c (legacy_inside_entry_func): Delete.
4304 (legacy_frame_chain_valid): Inline call to
4305 legacy_inside_entry_func, simplify.
4306
0b67b468 43072004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4308
4309 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4310 * dwarf2read.c (partial_die_info): Add dirname field.
4311 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4312 (read_partial_die): Save away DW_AT_comp_dir.
4313 * defs.h (symtab_to_filename): Removed.
4314 * source.c (find_and_open_source): Added.
57c22c6c 4315 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4316 (symtab_to_filename): Removed.
4317 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4318 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4319 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4320 symtab_to_filename.
4321 * symtab.h (partial_symtab): Add dirname field.
4322 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4323 (mi_cmd_file_list_exec_source_file): Call new function
4324 symtab_to_fullname to find fullname.
57c22c6c 4325 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4326 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4327 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4328
9a1dd1ad
AC
43292004-06-10 Andrew Cagney <cagney@gnu.org>
4330
239ae8c7
AC
4331 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4332 to generic_use_struct_convention, the default value.
4333
fc720350
AC
4334 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4335 of abort.
4336
9a1dd1ad
AC
4337 * ns32k-tdep.c (ns32k_push_arguments): New function.
4338 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4339 * infcall.c (call_function_by_hand): Call error instead of
4340 legacy_push_arguments.
4341 * value.h (legacy_push_arguments): Delete declaration.
4342 * valops.c (legacy_push_arguments): Delete function.
4343 (value_push): Delete function.
4344
fea25152
BF
43452004-06-10 Brian Ford <ford@vss.fsi.com>
4346
4347 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4348 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4349 info.
4350 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4351
30a4a8e0
AC
43522004-06-10 Andrew Cagney <cagney@gnu.org>
4353
4354 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4355 * gdbarch.h, gdbarch.c: Re-generate.
4356 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4357 parameters.
4358 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4359 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4360 deprecated_pc_in_call_dummy instead of
4361 DEPRECATED_PC_IN_CALL_DUMMY.
4362 (arm_skip_prologue): Ditto.
4363 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4364 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4365 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4366 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4367 Ditto.
4368 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4369 (sh64_init_extra_frame_info, sh64_get_saved_register)
4370 (sh64_pop_frame): Ditto.
4371 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4372 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4373 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4374 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4375 (h8300_pop_frame): Ditto.
4376 * blockframe.c (legacy_inside_entry_func)
4377 (legacy_frame_chain_valid): Ditto.
4378 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4379 to deprecated_pc_in_call_dummy.
4380
81cfbe54
AC
43812004-06-09 Andrew Cagney <cagney@gnu.org>
4382
a1f4a1b6
AC
4383 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4384 provide a default value.
4385 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4386 * gdbarch.h, gdbarch.c: Re-generate.
4387 * arch-utils.c (generic_convert_register_p): Rename
4388 legacy_convert_register_p
4389 (legacy_register_to_value, legacy_value_to_register): Delete
4390 functions.
4391 * arch-utils.h (generic_convert_register_p): Rename
4392 legacy_convert_register_p.
4393 (legacy_register_to_value, legacy_value_to_register): Delete
4394 declarations.
4395
9730f241
AC
4396 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4397 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4398 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4399 * gdbarch.h, gdbarch.c: Re-generate.
4400 * infcmd.c (default_print_registers_info): Simplify.
4401 * findvar.c (value_of_register): Simplify.
4402 * mi/mi-main.c (get_register): Simplify.
4403 * arch-utils.c (legacy_convert_register_p): Always return 0.
4404 (legacy_register_to_value, legacy_value_to_register): Always call
4405 internal_error.
4406
8a1bf479
AC
4407 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4408 #ifdef CLEAR_INSN_CACHE code.
4409 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4410 Delete #ifdef CLEAR_DEFERRED_STORES code.
4411
4b38d6f1
AC
4412 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4413
2d62ecc7
AC
4414 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4415 copyright.
4416 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4417
be4f7469
AC
4418 * config/mips/mipsv4.mh: Delete file.
4419
81cfbe54
AC
4420 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4421 unreferenced macro.
4422 (hpread_adjust_stack_address): Delete declaration.
4423
d966f0cb
AC
44242004-06-08 Andrew Cagney <cagney@gnu.org>
4425
4426 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4427 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4428 PTRACE_ATTACH / PTRACE_DETACH available call error.
4429 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4430 * infttrace.c (update_thread_state_after_attach, attach, detach):
4431 Remove #ifdef wrappers.
4432 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4433 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4434 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4435 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4436 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4437 * config/nm-linux.h (ATTACH_DETACH): Delete.
4438 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4439 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4440 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4441 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4442 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4443
d91670b9
CV
44442004-06-08 Corinna Vinschen <vinschen@redhat.com>
4445
4446 * configure.in: Set $configdir to the right OS specific value.
4447 Use value when setting $tcldir and $tkdir.
4448 * configure: Regenerate.
4449
28ba0b33
PB
44502004-06-06 Paul Brook <paul@codesourcery.com>
4451
4452 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4453 records.
4454
f26caa11
PH
44552004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4456
4457 * ada-lang.c (lookup_symbol_in_language): New function to allow
4458 re-use of another language's symbol lookup code. (Placed here
4459 temporarily while Ada support is being integrated into the public
4460 tree).
4461 (restore_language): New auxiliary function for
4462 lookup_symbol_in_language.
4463 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4464 temporarily while Ada support is being integrated into the public
4465 tree).
4466
d560a54b
AO
44672004-06-08 Alexandre Oliva <aoliva@redhat.com>
4468
e75d110c
AO
4469 * Makefile.in (check//%): New.
4470
d560a54b
AO
4471 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4472 (mn10300_store_return_value): Rewrite.
4473 (mn10300_type_align): New.
4474 (mn10300_use_struct_convention): Rewrite.
4475 (mn10300_return_value): New, using all of the above.
4476 (mn10300_pop_frame_regular): Add saved_regs_size.
4477 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4478
a72fbdb7
AO
4479 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4480 regs if PC is on movm.
4481
01904826
JB
44822004-06-07 Jim Blandy <jimb@redhat.com>
4483
4484 Add native Linux support for the PowerPC E500.
4485 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4486 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4487 all architectures except the E500.
4488 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4489 #definitions.
4490 (struct gdb_evrregset_t): New type.
4491 (have_ptrace_getsetevrregs): New variable.
4492 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4493 fetch_spe_registers): New functions.
4494 (fetch_register): Call fetch_spe_register as appropriate.
4495 Assert that we're only passed raw register numbers.
4496 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4497 Don't fetch gprs if they're pseudoregisters.
4498 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4499 store_spe_registers): New functions.
4500 (store_register): Call store_spe_register as appropriate.
4501 Assert that we're only passed raw register numbers.
4502 (store_ppc_registers): Call store_spe_registers as appropriate.
4503 Don't store gprs if they're pseudoregisters.
4504
f90ef764
JJ
45052004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4506
4507 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4508 struct if one exists, even if we are dealing with a zombie thread.
4509
45b75230
AC
45102004-06-07 Andrew Cagney <cagney@gnu.org>
4511
4512 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4513 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4514 Rename PC_REQUIRES_RUN_BEFORE_USE.
4515 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4516 #ifdef.
4517
1658da49
RC
45182004-06-07 Randolph Chung <tausq@debian.org>
4519
4520 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4521 unwinding after sp has been saved to the stack but before the end
4522 of the prologue, and after the fp has been modified but before it has
4523 been saved to the stack.
4524 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4525 Remove superfluous definitions.
4526 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4527
9a727a3c
RC
45282004-06-07 Guy Martin <gmsoft@gentoo.org>
4529
4530 Committed by Randolph Chung.
4531 * hppa-linux-nat.c: Include the correct version of the header file
4532 depending on the kernel version.
4533
9e500012
RC
45342004-06-06 Randolph Chung <tausq@debian.org>
4535
4536 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4537 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4538
3388d7ff
RC
45392004-06-06 Randolph Chung <tausq@debian.org>
4540
4541 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4542 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4543 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4544 * hppa-tdep.c (hppa_symbol_address): New function definition.
4545 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4546
d49771ef
RC
45472004-06-06 Randolph Chung <tausq@debian.org>
4548
4549 * hppa-tdep.h (struct value): Forward declaration.
4550 (gdbarch_tdep): Define tdep find_global_pointer method.
4551 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4552 associated with the function we are trying to call, and write it
4553 to the gp register.
4554 (hppa32_convert_from_funct_ptr_addr): New function.
4555 (hppa_find_global_pointer): New function.
4556 (hppa_gdbarch_init): Set default find_global_pointer method; set
4557 convert_from_func_ptr_addr method.
4558 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4559 (hppa_linux_init_abi): Set find_global_pointer method.
4560 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4561
7d9b040b
RC
45622004-06-06 Randolph Chung <tausq@debian.org>
4563
4564 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4565 to struct value *function.
4566 * gdbarch.c: Regenerate.
4567 * gdbarch.h: Likewise.
4568 * infcall.c (call_function_by_hand): Pass entire function value
4569 to push_dummy_call.
4570
4571 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4572 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4573 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4574 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4575 * arm-tdep.c (arm_push_dummy_call): Likewise.
4576 * avr-tdep.c (avr_push_dummy_call): Likewise.
4577 * cris-tdep.c (cris_push_dummy_call): Likewise.
4578 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4579 * frv-tdep.c (frv_push_dummy_call): Likewise.
4580 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4581 * hppa-tdep.c (hppa32_push_dummy_call)
4582 (hppa64_push_dummy_call): Likewise.
4583 * i386-tdep.c (i386_push_dummy_call): Likewise.
4584 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4585 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4586 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4587 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4588 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4589 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4590 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4591 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4592 (ppc64_sysv_abi_push_dummy_call): Likewise.
4593 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4594 (ppc64_sysv_abi_push_dummy_call): Likewise.
4595 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4596 * s390-tdep.c (s390_push_dummy_call): Likewise.
4597 * sh-tdep.c (sh_push_dummy_call_fpu)
4598 (sh_push_dummy_call_nofpu): Likewise.
4599 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4600 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4601 * vax-tdep.c (vax_push_dummy_call): Likewise.
4602
4a19ea35
JB
46032004-06-04 Jim Blandy <jimb@redhat.com>
4604
8327ccee
JB
4605 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4606 gdbarch argument to register_size.
4607
a3c001ce
JB
4608 * rs6000-tdep.c (rs6000_store_return_value): Use
4609 regcache_cooked_write_part instead of
4610 deprecated_write_register_bytes.
4611 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4612 not gdbarch_deprecated_store_return_value.
4613
4a19ea35
JB
4614 * ppc-linux-nat.c (store_register, fetch_register): Remove
4615 incorrect assertions. Simplify and generalize handling of
4616 transfers whose sizes are not multiples of, or less than, sizeof
4617 (PTRACE_XFER_TYPE).
4618
b9b5d7ea
JJ
46192004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4620
4621 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4622 as a new thread event.
720c7d64 4623 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4624 zombie, return TD_THR_ZOMBIE.
720c7d64 4625 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4626 TD_THR_ZOMBIE, check if the thread is still on the thread list
4627 and return a -1 ptid if not found.
4628 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4629 change the status to TARGET_WAITKIND_SPURIOUS.
4630
c8a3b559
CV
46312004-06-03 Corinna Vinschen <vinschen@redhat.com>
4632
4633 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4634 double values in little endian mode.
4635
20605361
AC
46362004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4637
4638 Committed by Andrew Cagney.
4639 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4640 after last enum constant to avoid error from IBM C
4641 compiler.
4642
bc97b3ba
JB
46432004-06-02 Jim Blandy <jimb@redhat.com>
4644
4645 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4646 to 'message', and make it local to the lone block that uses it.
4647
1da28ab0
JB
4648 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4649
4c4b4cd2
PH
46502004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4651
8a2225b2
PH
4652 * ada-exp.y: Update copyright notice.
4653 Include block.h.
4654
4655 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4656 SPECIAL_VARIABLE and unify the treatment of these cases.
4657
4658 (write_attribute_call0): Remove.
4659 (write_attribute_call1): Remove.
4660 (write_attribute_calln): Remove.
4661 (save_qualifier): Add missing semicolon.
4662
4663 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4664 temporarily disabled to allow compilation with FSF head version.
4665
4666 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4667 use individual operators (OP_*) for all attributes.
4668 (exp syntax): Use write_int.
4669 Handle STRING literals with OP_STRING.
4670 (variable syntax): Add limit parameter to calls to
4671 write_object_renaming.
4672
4673 (temp_parse_space): New definition to hold entities that need
4674 only live until the next call to ada_parse.
4675 (string_to_operator): Rename fields of ada_opname_table entries.
4676
4677 (write_var_from_sym): Record block.
4678 (write_var_from_name): Minor reformatting.
4679 Make sure saved name is properly encoded in the case of multiple
4680 matches, and set its language to Ada.
4681 Update comment.
4682 Modify to indicate unresolved name as symbol in the UNRESOLVED
4683 namespace, allocated in temp_parse_space.
4684 (write_int): New function.
4685
4686 (write_object_renaming): Add max_depth parameter to limit
4687 chains of object renamings.
4688 Handle case where root of renaming expression is itself a renaming.
4689 Use temp_parse_space for temporary name buffer.
4690 Handle renamings to dereferenced pointers (___XEXA suffices).
4691
4692 (ada_parse, yyerror, string_to_operator,
4693 write_var_from_sym, write_var_from_name, write_attribute_call0,
4694 write_attribute_call1, write_attribute_calln,
4695 write_object_renaming): Protoize.
4696
4697 (_initialize_ada_exp): New function.
4698
4699 * ada-lang.c: Update copyright notice.
4700 General terminology change to conform to GNAT compiler usage:
4701 mangle => encode, demangle => decode
4702 Include gdb_obstack.h.
4703 Include gdb_regex.h
4704 Include frame.h
4705 Include hashtab.h
4706 Include completer.h
4707 Include gdb_stat.h
4708 Include block.h
4709 Include infcall.h
4710
4711 (ADA_RETAIN_DOTS): Make sure this is defined.
4712 (TRUNCATION_TOWARDS_ZERO): Define.
4713 (struct string_vector): Define.
4714 (unresolved_names): Remove definition.
4715 (xnew_string_vector): New function.
4716 (string_vector_append): New function.
4717 (extract_string): Make static.
4718 (ada_unqualified_name): New function.
4719 (add_angle_brackets): New function.
4720 (function_name_from_pc): New function.
4721 (place_on_stack): Rename to ensure_lval.
4722
4723 (ensure_lval): Renamed from place_on_stack.
4724 Make identity on lvals.
4725 Update comment.
4726 (is_nonfunction): New interface.
4727 Only symbols in LOC_CONST class can be enumerals.
4728 (fill_in_ada_prototype): Remove; now independent of language.
4729 (add_defn_to_vec): Add obstack and symtab arguments.
4730 Use obstack to hold collected definitions.
4731 (num_defns_collected): New function.
4732 (defns_collected): New function.
4733 (ada_resolve_subexp): Rename to resolve_subexp.
4734 (resolve_subexp): Renamed from ada_resolve_subexp.
4735 (ada_op_name): Return non-const result.
4736 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4737 other purposes.
4738
4739 (to_fixed_array_type): Add declaration.
4740 (coerce_unspec_val_to_type): Remove offset parameter.
4741 (find_sal_from_funcs_and_line): New interface.
4742 (find_line_in_linetable): Ditto.
4743
4744 (all_sals_for_line): Rename to ada_sals_for_line and make
4745 global.
4746 Add new parameter. When set, do not ask the user to choose the
4747 instance, but use the first one found instead.
4748 Use given line number in returned sals.
4749 Fix comment.
4750 Skip the prologue if funfirstline is set.
4751 Correct for memory leak when 0 lines found.
4752
4753 (value_pos_atr): Use pos_atr.
4754 (pos_atr): New function.
4755 (standard_lookup): Add block parameter.
4756
4757 (makeTimeStart): Remove declaration and uses.
4758 (makeTimeStop): Remove declaration and uses.
4759
4760 (ada_completer_word_break_characters): Allow for VMS.
4761 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4762 (raise_sym_name): New constant.
4763 (raise_unhandled_sym_name): New constant.
4764 (raise_assert_sym_name): New constant.
4765 (process_raise_exception_name): New constant.
4766 (longest_exception_template): New constant.
4767 (warning_limit): New variable to limit warnings during expression
4768 evaluation.
4769 (warnings_issued): New variable to keep track of warnings issued.
4770 (known_runtime_file_name_patterns): New constant.
4771 (known_auxiliary_function_name_patterns): New constant.
4772 (symbol_list_obstack): New variable.
4773
4774 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4775 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4776 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4777 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4778 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4779 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4780 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4781 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4782 and strcmp.
4783
4784 (ada_get_field_index): New function.
4785 (lim_warning): New function.
4786 (ada_translate_error_message): New function.
4787 (MAX_OF_SIZE): New function.
4788 (MIN_OF_SIZE): New function.
4789 (UMAX_OF_SIZE): New function.
4790 (UMIN_OF_SIZE): New function.
4791 (discrete_type_high_bound): New function.
4792 (discrete_type_low_bound): New function.
4793 (base_type): New function.
4794 (do_command): Remove.
4795
4796 (ada_update_initial_language): Use language_ada, not language_unknown.
4797 (ada_encode): Renamed from ada_mangle.
4798 Obey ADA_RETAIN_DOTS.
4799 (ada_decode): Renamed from ada_demangle.
4800 Update coding conventions.
4801 (decoded_names_store): New hash table.
4802 (ada_decode_symbol): New function.
4803 (ada_la_decode): New function.
4804
4805 (modify_general_field): Correct computations of offset and bit
4806 position.
4807 (desc_base_type): Handle ref types, too.
4808 (ada_is_direct_array_type): New function.
4809
4810 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4811 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4812 (ada_is_bogus_array_descriptor,ada_type_of_array,
4813 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4814 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4815 ada_is_array_descriptor_type.
4816
4817 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4818 (ada_is_packed_array_type): Handle pointers or
4819 references to packed arrays as well.
4820 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4821 (decode_packed_array_type): Search for the packed array type
4822 symbol in the currently selected block and associated
4823 superblocks too.
4824 Use lookup_symbol again.
4825
4826 (decode_packed_array): Handle pointers and references.
4827 Update call to coerce_unspec_val_to_type.
4828 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4829 (ada_value_primitive_packed_val): Improve comment.
4830
4831 (ada_index_type): Substitute int type for "undefined".
4832 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4833 ada_array_langth, ada_is_string_type): Use renamed
4834 ada_is_simple_array_type.
4835 (empty_array): New function.
4836
4837 (ada_resolve): Rename to resolve.
4838 (resolve): Make static.
4839 Call renamed resolve_subexp.
4840 Update comment.
4841 (ada_resolve_subexp): Rename to resolve_subexp.
4842 (resolve_subexp): Update comment.
4843 Decomment disabled code.
4844 Add LOC_COMPUTED* cases.
4845 Modify to use temporary struct symbols (marked as being in
4846 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4847 OP_UNRESOLVED_VALUE.
4848 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4849 Add OP_STRING case.
4850 Remove OP_ARRAY.
4851 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4852 Use new ada_lookup_symbol_list interface.
4853 Use new ada_resolve_function interface.
4854 Remove OP_TYPE case.
4855
4856 (ada_args_match): Idiot proof against null actuals.
4857 Use intermediate variables to clarify.
4858 (ada_resolve_function): Update comment and interface.
4859 (mangled_ordered_before): Rename to encoded_ordered_before and
4860 update comment.
4861 (sort_choices): Update comment and interface.
4862 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4863 (user_select_syms): New interface.
4864 Use new sort_choices interface.
4865 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4866 (possible_user_operator_p): Idiot-proof against null values.
4867 (ada_simple_renamed_entity): Don't make cleanup; rely on
4868 caller to free result string.
4869 Remove const from return type.
4870 (make_array_descriptor): Rename uses of place_on_stack to
4871 ensure_lval.
4872 Make sure that arrays are on stack.
4873
4874 (HASH_SIZE): Define.
4875 (struct cache_entry): Define.
4876 (cache_space): Define.
4877 (cache): Define.
4878 (clear_ada_sym_cache): New function.
4879 (find_entry): New function.
4880 (lookup_cached_symbol): New function.
4881 (defn_vector_size): Define.
4882 (cache_symbol): New function.
4883 (defn_symbols): Remove.
4884
4885 (standard_lookup): Use lookup_symbol_in_language to get effect of
4886 C lookup.
4887 Cache results.
4888
4889 (symbol_completion_match): New function.
4890 (symbol_completion_add): New function.
4891 (ada_make_symbol_completion_list): New function.
4892
4893 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4894 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4895 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4896 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4897
4898 (ada_lookup_simple_minsym): New function.
4899 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4900
4901 (add_symbols_from_enclosing_procs): New interface.
4902 Conditionalize more helpfully.
4903 Don't bother if program isn't running.
4904 Use new interface to get_frame_block.
4905 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4906
4907 (remove_extra_symbols): New interface.
4908 (xget_renaming_scope): New function.
4909 (is_package_name): New function.
4910 (renaming_is_visible): New function.
4911 (remove_out_of_scope_renamings): New function.
4912
4913 (ada_lookup_symbol_list): New interface.
4914 Properly reinitialize the symbol list obstack.
4915 Don't call add_symbols_from_enclosing_procs if we start from a
4916 static or global block.
4917 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4918 add_symbols_from_enclosing_procs.
4919 Add symtab data to cached entries.
4920 Handle symbols prefixed with
4921 "standard__" specially; strip prefix and don't look in local symbols.
4922 Do not include out of scope renaming symbols in list of
4923 symbols returned.
4924 Add const to block parameter.
4925 Move check for non-local, non-global symbols earlier.
4926 Remove timing stuff.
4927 (ada_lookup_symbol): New interface.
4928 Find symtab as well.
4929 (ada_lookup_symbol_nonlocal): New function.
4930
4931 (is_name_suffix): Enhance suffix detection to recognize
4932 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4933 (is_dot_digits_suffix): New function.
4934 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4935
4936 (ada_add_block_symbols): New interface. Use obstack to return results
4937 in a vector of struct ada_symbol_infos. Add symtab argument.
4938 Use new interface to add_defn_to_vec.
4939 Remove calls to fill_in_ada_prototype.
4940 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4941
4942 (ada_finish_decode_line_1): Add const qualification to local to fix
4943 warning.
4944 Start looking in static block for functions to avoid attempts
4945 to search frame chain for up-level variables.
4946 Adapt to new ada_sals_for_line interface.
4947 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4948 Handle quoting of the function name inside the spec string.
4949 Skip prologue when funfirstline is set and update the
4950 function documentation to that effect.
4951
4952 (debug_print_lines, debug_print_block, debug_print_blocks,
4953 debug_print_symtab): Remove.
4954
4955 (ada_main_name): New function.
4956 (ada_exception_breakpoint_type): New function.
4957 (is_known_support_routine): New function.
4958 (ada_find_printable_frame): Renamed from find_printable_frame and made
4959 global.
4960 Remove level parameter.
4961 Use new interface to select_frame.
4962
4963 (begin_command): Remove.
4964 (ada_adjust_exception_stop): New function.
4965 (ada_print_exception_stop): New function.
4966 (exception_name_from_cond): New function.
4967 (ada_report_exception_break): Replace disabled code with
4968 conditionalization on GNAT_GDB.
4969 Get the exception name from the condition string.
4970 Remove and move functionality into new functions
4971 ada_print_exception_breakpoint_task and
4972 ada_print_exception_breakpoint_nontask.
4973 (error_breakpoint_runtime_sym_not_found): New function.
4974 (is_runtime_sym_defined): New function.
4975 (ada_breakpoint_rewrite): Uncomment suppressed code.
4976 Use symbolic error-message and runtime-symbol names.
4977 Surround runtime symbol names in quotes.
4978 Allow non-specific breakpoints on exceptions and assertions before
4979 program starts.
4980
4981 (ada_is_tagged_type): Add parameter.
4982 (ada_is_tag_type): New function.
4983 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4984 (ada_variant_discrim_type): Ditto.
4985 (value_tag_from_contents_and_address): New function.
4986 (type_from_tag): New function.
4987 (struct tag_args): New structure used to communicate with
4988 ada_tag_name_1.
4989 (ada_tag_name_1): New function.
4990 (ada_tag_name): New function.
4991
4992 (ada_scan_number): Update comment.
4993 (find_struct_field): New function.
4994 (ada_search_struct_field): Make static.
4995 (ada_value_struct_elt): New version that returns references when
4996 given pointers or references to structs.
4997 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4998 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4999 interface.
5000 (ada_value_ind): Use new ada_to_fixed_value interface.
5001 (ada_coerce_ref): Ditto.
5002 (field_offset): Remove.
5003
5004 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5005 (ada_find_renaming_symbol): New function.
5006 (ada_prefer_type): Prefer named types over unnamed ones.
5007 (variant_field_index): New function.
5008 (contains_variant_part): Removed: subsumed by variant_field_index.
5009 (ada_template_to_fixed_record_type): New function, mostly from
5010 template_to_fixed_record_type.
5011 (template_to_fixed_record_type):
5012 Do not scan the type fields beyond the last one; prevents a
5013 potential SEGV.
5014 Handle case where variant field is listed BEFORE discriminant it
5015 depends on.
5016 Fix calculation of record length when bit length is
5017 not evenly divisible by char length.
5018 Move code to ada_template_to_fixed_record_type and call it.
5019
5020 (template_to_static_fixed_type): Revise comment.
5021 Modify to work on ordinary record types as well as templates,
5022 so as to handle fields that use ___XVE or ___XVU encodings.
5023 (to_record_with_fixed_variant_part): Fill out comment.
5024 Initialize C++ stuff in right type.
5025 Allow case where DVAL is null.
5026 Handle case where variant field is not last.
5027 Fix typo concerning record length.
5028 (to_fixed_record_type): Decomment disabled code.
5029 (to_fixed_record_type): Use variant_field_index instead of
5030 contains_variant_part.
5031 (to_fixed_variant_branch_type): Ditto.
5032 (to_fixed_array_type): Decomment disabled code.
5033 (ada_to_fixed_type): Convert tagged types to the specific type.
5034 Deactivate the size-check for array types in order to avoid
5035 some false size alarms.
5036 (to_static_fixed_type): Decomment disabled code.
5037 Modify to call template_to_static_fixed_type
5038 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5039 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5040 Remove valaddr argument, as it is never really used.
5041 (ada_to_fixed_value): Change interface to act on single struct value*
5042 operand.
5043 (adjust_pc_past_prologue): New function.
5044 (ada_attribute_name): Modify to take enum exp_opcode argument.
5045
5046 (ada_enum_name): Recognize new homonym-distinguishing convention.
5047 Adjust local variable's type to remove compiler warning.
5048 Fix a small problem in the part that unqualifies the enumeration name.
5049 (ada_value_binop): New function.
5050 (ada_value_equal): New function.
5051
5052 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5053 Don't give error message when not doing normal evaluation
5054 and a tagged type doesn't seem to contain a structure member.
5055 Give error message for packed arrays.
5056 For indexing arrays, handle pointers to packed arrays correctly.
5057 Handle case of 'first and 'last attributes of bare integral type
5058 without encoded subtype info.
5059 Remove some unnecessary casts.
5060 Fix uninitialized value of type in computing 'first, 'last, or 'length
5061 of array object.
5062 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5063 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5064 calls.
5065 Attributes are now exp_opcode values.
5066 Correct treatment of 'modulus.
5067 Better error message for taking 'length of wrong kind of type;
5068 improve comment.
5069 Change EVAL_NORMAL to noside for consistency.
5070 Use ada_value_binop for DIV, MOD, REM.
5071 Make special case out of array of length 0, since an argument
5072 of 0 upsets some platforms' malloc.
5073 Use OP_STRING instead of OP_ARRAY.
5074 For slice, add check that we have an array type before extracting
5075 a slice out of it. Avoids a SEGV.
5076 When evaluating an array slice, if the array type is a reference to
5077 an aligner type, then replace the aligner type by the actual type.
5078 Decomment disabled code.
5079 Remove some dead code.
5080 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5081 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5082 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5083 and UNOP_MBR to UNOP_IN_RANGE.
5084 If an array type has a parallel ___XVE type, then use it.
5085 Turn arrays into pointers for lvalue arrays.
5086 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5087 bounds error and handle 0-length slices.
5088 Use lim_warning.
5089 When selecting fields, apply ada_to_fixed_value (because the fields
5090 might have ___XVU or ___XVE encodings even if not dynamic.)
5091 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5092 (ada_is_system_address_type): New function.
5093
5094 (get_var_value): Use new interface to ada_lookup_symbol_list.
5095 (get_int_var_value): New interface.
5096 (to_fixed_range_type): Allow unknown bound, with warning.
5097 (ada_is_modular_type): Decomment disabled code.
5098 (ADA_OPERATORS): New definition.
5099 (ada_operator_length): New function.
5100 (ada_expr_op_name): New function.
5101 (ada_forward_operator_length): New function.
5102 (ada_dump_subexp_body): New function.
5103 (ada_print_subexp): New function.
5104 (ada_exp_descriptor): New constant.
5105 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5106 (ada_language_defn): Add ada_exp_descriptor entry.
5107 Change ada_parse => parse.
5108 Add post-parser entry.
5109 Use ada-specific non-local symbol lookup.
5110 Don't use C-style arrays.
5111 String lower-bound is 1.
5112 Decomment disabled code.
5113 (parse): New function.
5114 New fields ada_translate_error_message, ada_lookup_symbol,
5115 ada_lookup_minimal_symbol.
5116
5117 * ada-lang.h: Update copyright dates.
5118 Replace the mangle/demangle terminology throughout by the
5119 more appropriate encode/decode one.
5120 Include breakpoint.h.
5121 Forward declare struct partial_symbol, struct block.
5122 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5123 (EXTRACT_ADDRESS): Remove.
5124 (EXTRACT_INT): Remove.
5125 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5126 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5127 (MAX_RENAMING_CHAIN_LENGTH): Define.
5128 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5129
5130 (enum task_states): Remove.
5131 ada_task_states: Remove.
5132 (fat_string): Remove.
5133 (struct entry_call): Remove.
5134 (struct task_fields): Remove.
5135 (struct task_entry): Remove.
5136
5137 (struct ada_symbol_info): Define.
5138 (enum ada_attribute): Remove.
5139 (enum ada_operator): Define.
5140
5141 (ada_get_field_index): Declare.
5142 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5143 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5144 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5145 (ada_lookup_symbol_list): New interface.
5146 (ada_decode_symbol): Declare.
5147 (ada_decode): Declare.
5148 (ada_lookup_symbol): New interface.
5149 (ada_update_initial_language): Declare.
5150 (ada_lookup_simple_minsym): Declare.
5151 (user_select_syms): New interface.
5152 (ada_sals_for_line): Declare.
5153 (ada_is_tagged_type): New interface.
5154 (ada_tag_name): Declare.
5155 (ada_lookup_struct_elt_type): Remove declaration.
5156 (ada_search_struct_field): Remove declaration.
5157 (ada_attribute_name): New interface.
5158 (ada_is_system_address_type): Declare.
5159 (ada_to_fixed_value): Remove declaration.
5160 (ada_template_to_fixed_record_type_1): Declare.
5161 (get_int_var_value): New interface.
5162 (ada_find_any_symbol): Declare.
5163 (ada_find_renaming_symbol): Declare.
5164 (ada_mangle): Rename to ada_encode.
5165 (ada_simple_renamed_entity): Remove const.
5166 (ada_main_name): Declare.
5167 (get_current_task): Rename to ada_get_current_task.
5168 (get_entry_number): Remove declaration.
5169 (ada_report_exception_break): Remove declaration.
5170 (ada_print_exception_breakpoint_nontask): Declare.
5171 (ada_print_exception_breakpoint_task): Declare.
5172 (ada_find_printable_frame): Declare.
5173
5174 * ada-lex.l: Update copyright notices.
5175 Use xmalloc and xfree instead of malloc and free.
5176 Use new interface to name_lookup.
5177 Use new interface to
5178 ada_mangle=>ada_encode.
5179 Redo handling of '$...' variable to parallel current treatment
5180 in c-exp.y.
5181 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5182 digit_to_int, strtoulst, processInt, processReal, processId,
5183 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5184 yywrap): Protoize.
5185
5186 (processInt): Use cast to remove harmless warning.
5187 (processReal): Modify to get rid of compiler warning on scan formats.
5188
5189 (processId): Replace xmalloc with obstack_alloc for name and remove
5190 call to ada_name_string_cleanup.
5191 Remove obsolete disabled code.
5192 (name_lookup): Ditto.
5193 New interface.
5194 Use obsavestring on temp_parse_space instead of savestring
5195 on name, and remove call to ada_name_string_cleanup.
5196 Free string returned from ada_simple_renamed_entity.
5197 Use new interface to ada_lookup_symbol_list.
5198 Decomment disabled code.
5199 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5200 not types.
5201 When a type name lookup succeeds as a result of
5202 lookup_primitive_typename, check for regular type entry that has not
5203 yet been read in.
5204 Limit length of chain of renamed symbols we are willing to follow.
5205 Do not break names beginning with "standard__" into segments.
5206 (block_lookup): Use new interface to ada_lookup_symbol_list.
5207
5208 * ada-typeprint.c: Update copyright notice.
5209 (demangled_type_name): Rename to decoded_type_name.
5210 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5211 (print_range_bound): Correct handling of negative
5212 bounds that make the index type looked unsigned under STABS.
5213 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5214 (print_range_type_named): Use the builtin int type if no type
5215 corresponding to the given type name could be found.
5216 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5217 Add some bullet-proofing.
5218 (print_variant_clauses): Allow for variant branches with ___XVU
5219 encodings that are not dynamic fields.
5220 Use new interface to ada_is_tagged_type.
5221 (print_record_type): Allow for fields with ___XVE encodings that
5222 are not dynamic fields.
5223 Use new interface to ada_is_tagged_type.
5224 (ada_print_type): ada_is_array_descriptor =>
5225 ada_is_array_descriptor_type.
5226
5227 * ada-valprint.c: Update copyright notice.
5228 Include gdb_string.h
5229 Include infcall.h
5230 (ui_memcpy): New function.
5231 (ada_print_floating): New function.
5232 (ada_print_str): Order arguments correctly.
5233 Correct handling of empty arrays and arrays of 0-length items.
5234 ada_is_array_descriptor => ada_is_array_descriptor_type
5235 Print values of type System.Address in hexadecimal format.
5236 Use ada_print_floating to print floating-point numbers in Ada format.
5237 Print class tag values with type names.
5238 No longer print the address of reference values. Avoids
5239 a potential confusion.
5240 (ada_value_print): Stop printing the object type for reference
5241 values, but preserve that behavior for access types. Avoids
5242 a potential confusion.
5243 Simplify one conditional expression, as the first part is now
5244 necessarily true.
5245 ada_is_array_descriptor => ada_is_array_descriptor_type
5246 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5247
f65f91b5
JB
52482004-06-01 Jim Blandy <jimb@redhat.com>
5249
5250 * ppc-tdep.h: Delete unused 'regoff' member.
5251 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5252
d4687fa0
MC
52532004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5254
5255 Fix PR symtab/1661.
5256 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5257 (hpread_read_struct_type): Likewise.
5258
de169ec9
AC
52592004-06-01 Andrew Cagney <cagney@gnu.org>
5260
c6902d46
AC
5261 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5262 instead of xasprintf.
5263 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5264 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5265 (mi_cmd_data_list_register_names)
5266 (mi_cmd_data_list_changed_registers)
5267 (mi_cmd_data_list_register_values)
5268 (get_register, mi_cmd_data_write_register_values)
5269 (mi_cmd_data_write_register_values)
5270 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5271 (mi_cmd_target_download, mi_cmd_target_select)
5272 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5273 (mi_execute_cli_command, mi_execute_async_cli_command)
5274 (mi_execute_async_cli_command): Ditto.
5275 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5276 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5277
6085fc2d
AC
5278 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5279 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5280 error_last_message instead of mi_error_last_message.
5281 * mi/mi-main.c (mi_error_last_message): Delete function.
5282
de169ec9
AC
5283 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5284 "invalid number of columns" error. Delete redundant "out of
5285 memory" check.
5286
1fc7d519
MK
52872004-05-31 Mark Kettenis <kettenis@gnu.org>
5288
6cfb2041
MK
5289 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5290 (gregset_t, fpregset_t): Remove typedefs.
5291 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5292 (REG_OFFSET): Rename argument.
5293 (i386bsd_r_reg_offset): Rename from reg_offset.
5294 (REG_ADDR): Remove macro.
5295 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5296 functions.
5297 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5298 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5299 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5300 instead of supply_gregset.
5301 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5302 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5303 instead of fill_gregset.
5304 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5305
1fc7d519
MK
5306 * i386bsd-nat.c: Don't include "gregset.h".
5307 (supply_gregset, fill_gregset): Make static.
5308 (supply_fpregset, fill_fpregset): Remove.
5309 * Makefile.in (i386bsd-nat.o): Update dependencies.
5310
2c34abbe
MK
53112004-05-30 Mark Kettenis <kettenis@gnu.org>
5312
448724fb
MK
5313 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5314 "gdb_assert.h". Con't include "gregset.h".
5315 (fbsd_make_corefile_notes): Use regset-based core file support
5316 instead off fill_gregset and fill_fpregset.
5317 * Makefile.in (fbsd-proc.o): Update dependencies.
5318
5ca8ca7c
MK
5319 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5320 instructions.
5321 (m88k_frame_prev_register): Simplify code a bit.
5322
593adc23
MK
5323 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5324 (amd64_collect_fpregset): New function.
5325 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5326
8d1b517b
MK
5327 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5328
7fdafb5a
MK
5329 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5330 (i386_collect_gregset): New function.
5331 (i386_supply_fpregset): Adjust comment.
5332 (i386_collect_fpregset): New function.
5333 (i386_regset_from_core_section): Use i386_collect_gregset and
5334 i386_collect_fpregset.
5335
8693c419
MK
5336 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5337 handle VALUEP being null.
5338
2c34abbe
MK
5339 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5340
45d134d8
MK
53412004-05-29 Mark Kettenis <kettenis@gnu.org>
5342
1698f4e7
MK
5343 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5344
45d134d8
MK
5345 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5346 assembler in OpenBSD 3.5-current.
5347 (amd64obsd_sigcontext_addr): Likewise.
5348
691d145a
JB
53492004-05-28 Jim Blandy <jimb@redhat.com>
5350
5351 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5352 register set, so our regcache isn't declared "legacy" and our E500
5353 pseudoregister read and write functions aren't ignored.
5354 (rs6000_register_byte, rs6000_register_raw_size,
5355 rs6000_register_virtual_type, rs6000_register_convertible,
5356 rs6000_register_convert_to_virtual,
5357 rs6000_register_convert_to_raw): Deleted.
5358 (rs6000_register_type, rs6000_convert_register_p,
5359 rs6000_register_to_value, rs6000_value_to_register): New
5360 functions.
5361 (rs6000_gdbarch_init): Don't register
5362 gdbarch_deprecated_register_size,
5363 gdbarch_deprecated_register_bytes,
5364 gdbarch_deprecated_register_byte,
5365 gdbarch_deprecated_register_raw_size,
5366 gdbarch_deprecated_register_virtual_type,
5367 gdbarch_deprecated_register_convertible,
5368 gdbarch_deprecated_register_convert_to_virtual, or
5369 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5370 register gdbarch_register_type, gdbarch_convert_register_p,
5371 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5372
18ed0c4e
JB
53732004-05-26 Jim Blandy <jimb@redhat.com>
5374
5375 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5376 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5377 functions, updated to match the register numberings used in GCC.
5378 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5379 rs6000_dwarf2_reg_to_regnum as register number conversions
5380 functions for STABS and Dwarf2.
5381
779af9e3
RC
53822004-05-26 Randolph Chung <tausq@debian.org>
5383
5384 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5385 in header file.
5386
c23968a2
JB
53872004-05-25 Joel Brobecker <brobecker@gnat.com>
5388
5389 * NEWS: Document new "start" command.
5390
3a7d1c27
RC
53912004-05-25 Randolph Chung <tausq@debian.org>
5392
5393 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5394 hppa-linux.
5395
43613416
RC
53962004-05-25 Randolph Chung <tausq@debian.org>
5397
5398 * hppa-hpux-tdep.c (offsetof): Define.
5399 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5400 (hppa32_hpux_frame_base_before_sigtramp)
5401 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5402 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5403 (hppa64_hpux_frame_base_before_sigtramp)
5404 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5405 functions.
5406 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5407 (hppa_hpux_sigtramp_frame_unwind_cache)
5408 (hppa_hpux_sigtramp_frame_this_id)
5409 (hppa_hpux_sigtramp_frame_prev_register)
5410 (hppa_hpux_sigtramp_frame_unwind)
5411 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5412 (hppa_hpux_init_abi): Register sigtramp unwinder.
5413 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5414
6d1be3f1
RC
54152004-05-25 Randolph Chung <tausq@debian.org>
5416
5417 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5418 and multiple stack unwinds.
5419 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5420
97c34f65
AC
54212004-05-25 Andrew Cagney <cagney@gnu.org>
5422
5423 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5424 * symfile-mem.h: Delete file.
5425 * symfile-mem.c: Do not include "symfile-mem.h".
5426 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5427 "struct bfd_section". When an error do not bother returning NULL.
5428 (add_symbol_file_from_memory_command): Use "struct bfd" and
5429 "struct bfd_section".
5430 * Makefile.in (symfile_mem_h): Delete.
5431 (symfile-mem.o): Update dependencies.
5432
e23cbd82
NR
54332004-05-25 Nick Roberts <nickrob@gnu.org>
5434
5435 * gdb-mi.el: New file.
5436
20d2ca3e
AC
54372004-05-25 Andrew Cagney <cagney@gnu.org>
5438
5439 * inftarg.c: Include "observer.h".
5440 (child_attach, child_create_inferior): Notify inferior_created.
5441 * corelow.c: Include "observer.h".
5442 (core_open): Notify inferior_created.
5443 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5444
c27cda74
AC
54452004-05-25 Andrew Cagney <cagney@gnu.org>
5446
5447 * target.h (struct target_ops): Add from_tty to
5448 to_create_inferior.
5449 (target_create_inferior, find_default_create_inferior): Update.
5450 * infcmd.c (run_command): Update.
5451 * wince.c (child_create_inferior): Update.
5452 * win32-nat.c (child_create_inferior): Update.
5453 * uw-thread.c (uw_thread_create_inferior): Update.
5454 * thread-db.c (thread_db_create_inferior): Update.
5455 * target.c (debug_to_create_inferior)
5456 (find_default_create_inferior): Update.
5457 (maybe_kill_then_create_inferior): Update.
5458 * sol-thread.c (sol_thread_create_inferior): Update.
5459 * remote.c (extended_remote_async_create_inferior)
5460 (extended_remote_create_inferior): Update.
5461 * remote-vx.c (vx_create_inferior): Update.
5462 * remote-st.c (st2000_create_inferior): Update.
5463 * remote-sim.c (gdbsim_create_inferior): Update.
5464 * remote-sds.c (sds_create_inferior): Update.
5465 * remote-rdp.c (remote_rdp_create_inferior): Update.
5466 * remote-rdi.c (arm_rdi_create_inferior): Update.
5467 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5468 * remote-e7000.c (e7000_create_inferior): Update.
5469 * procfs.c (procfs_create_inferior): Update.
5470 * ocd.c (ocd_create_inferior): Update.
5471 * ocd.h (ocd_create_inferior): Update.
5472 * nto-procfs.c (procfs_create_inferior): Update.
5473 * monitor.c (monitor_create_inferior): Update.
5474 * lin-lwp.c (lin_lwp_create_inferior): Update.
5475 * inftarg.c (child_create_inferior): Update.
5476 * hpux-thread.c (hpux_thread_create_inferior): Update.
5477 * gnu-nat.c (gnu_create_inferior): Update.
5478
1db2a798
AC
54792004-05-25 Andrew Cagney <cagney@gnu.com>
5480
5481 * MAINTAINERS: Update e-mail address.
5482
007d08bb
RC
54832004-05-24 Randolph Chung <tausq@debian.org>
5484
5485 * thread.c (info_threads_command, thread_apply_all_command)
5486 (thread_apply_command, thread_command, do_captured_thread_select):
5487 Remove HPUXHPPA-specific code.
5488
69e7b95e
RC
54892004-05-24 Randolph Chung <tausq@debian.org>
5490
5491 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5492 unused symbols.
5493 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5494 references.
5495
a4d5f2e0
JB
54962004-05-24 Joel Brobecker <brobecker@gnat.com>
5497
5498 * infcmd.c (kill_if_already_running): New function, extracted
5499 from run_command().
5500 (run_command): Replace extracted code by call to
5501 kill_if_already_running().
5502 (start_command): New function.
5503 (_initialize_infcmd): Add "start" command.
5504
bf2ca189
MK
55052004-05-24 Mark Kettenis <kettenis@gnu.org>
5506
5507 Add OpenBSD/m88k support.
5508 * NEWS (New native configurations): Mention OpenBSD/m88k.
5509 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5510 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5511 * Makefile.in (m88k_tdep_h): New variable.
5512 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5513 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5514 * configure.host: Add m88*-*-openbsd*.
5515 * configure.tgt: Add m88*-*-openbsd*.
5516
80fadb11
JB
55172004-05-24 Jim Blandy <jimb@redhat.com>
5518
5519 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5520 to approve changes.
5521
19e2d14b
KB
55222004-05-24 Kevin Buettner <kevinb@redhat.com>
5523
5524 * symtab.c (fixup_section): Search section table when lookup by
5525 name fails.
5526
1b07b470
RC
55272004-05-24 Randolph Chung <tausq@debian.org>
5528
5529 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5530 be "small_struct".
5531
368702b1
MK
55322004-05-24 Mark Kettenis <kettenis@gnu.org>
5533
5df97fde
MK
5534 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5535 register number in regcache_raw_collect call.
5536 (m68kbsd_collect_fpregset): Likewise.
5537 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5538
368702b1
MK
5539 * regset.h (struct regset): Add back `regset' member.
5540
a770d4ec
MK
55412004-05-23 Mark Kettenis <kettenis@gnu.org>
5542
70f9f479
MK
5543 * configure.in: Check for td_pcb in `struct thread'.
5544 * configure, config.in: Regenerated.
5545
2e16d79e
MK
5546 * dpx2-nat.c: Remove file.
5547 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5548 (dpx2-nat.o): Remove dependencies.
5549
492cf391
MK
5550 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5551 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5552 (amd64obsd_supply_pcb): New function.
5553 (_initialize_amd64obsd_nat): Enable libkvm interface.
5554 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5555 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5556 (LOADLIBES): New variable.
5557
a770d4ec
MK
5558 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5559 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5560 (sparc32nbsd_supply_pcb): New function.
5561 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5562 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5563 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5564 (LOADLIBES): New variable.
5565
9ea75c57
MK
55662004-05-22 Mark Kettenis <kettenis@gnu.org>
5567
2e0c3539
MK
5568 * bsd-kvm.c, bsd-kvm.h: New files.
5569 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5570 "bsd-kvm.h".
5571 (i386fbsd_supply_pcb): New function.
5572 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5573 (i386fbsd-nat.o): Update dependencies.
5574 (bsd_kvm_h): New variable.
5575 (bsd-kvm.o): New dependency.
5576 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5577 (LOADLIBES): New variable.
5578
9ea75c57
MK
5579 * regset.c: Tweak comment.
5580 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5581 macro.
5582 * regset.h: Update copyright year.
5583 (struct regset): Remove `descr' member, add `gdbarch' member.
5584 (regset_alloc): Adjust prototype and comment.
5585 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5586 (i386_supply_fpregset): Likewise.
5587 (i386_regset_from_core_section): Update call to regset_alloc.
5588 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5589 REGSET->arch.
5590 (i386obsd_aout_regset_from_core_section): Update call to
5591 regset_alloc.
5592 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5593 REGSET->arch.
5594 (i386nbsd_aout_regset_from_core_section): Update call to
5595 regset_alloc.
5596 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5597 REGSET->arch.
5598 (amd64_regset_from_core_section): Update call to regset_alloc.
5599 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5600 REGSET->arch.
5601 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5602 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5603 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5604 (sparc32nbsd_init_abi): Update call to regset_alloc.
5605 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5606 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5607 (sparc64obsd_init_abi): Update call to regset_alloc.
5608 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5609 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5610 (sparc64nbsd_init_abi): Update call to regset_alloc.
5611 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5612 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5613 (sparc64fbsd_init_abi): Update call to regset_alloc.
5614
867e2dc5
JB
56152004-05-22 Jim Blandy <jimb@redhat.com>
5616
5617 * ppc-tdep.h (spe_register_p): New declaration.
5618 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5619 ppc_spefscr_regnum.
5620 * rs6000-tdep.c (spe_register_p): New function.
5621 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5622 spefscr.
5623 (rs6000_gdbarch_init): Initialize the new members of the tdep
5624 structure.
5625
617a4cba
JB
56262004-05-21 Jim Blandy <jimb@redhat.com>
5627
0397dee1
JB
5628 * ppc-linux-nat.c (fetch_register): Move code back to be next
5629 to the comment that describes it. (Moved code, instead of
5630 comment, for symmetry with store_register.)
5631
617a4cba
JB
5632 Allocate regset structures in the gdbarch's obstack, not using
5633 xmalloc.
5634 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5635 Add 'arch' argument. Allocate the regset on arch's obstack, not
5636 using xmalloc.
5637 * regset.h (regset_alloc): Update declaration.
5638 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5639 gdbarch argument.
5640 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5641 * i386-tdep.c (i386_regset_from_core_section): Same.
5642 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5643 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5644 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5645 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5646 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5647 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5648
9aa3914d
JB
56492004-05-21 Joel Brobecker <brobecker@gnat.com>
5650
5651 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5652
99c87dab
JB
56532004-05-21 Jim Blandy <jimb@redhat.com>
5654
5655 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5656 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5657
c2b6b4aa
JB
56582004-05-20 Jim Blandy <jimb@redhat.com>
5659
5660 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5661
144529d0
MK
56622004-05-20 Mark Kettenis <kettenis@gnu.org>
5663
5664 * regset.h: Make prototype const-correct.
5665 * regset.c (regset_xmalloc): Make const-correct.
5666
4725b721
PH
56672004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5668
5669 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5670 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5671 (symbol_search_name): Declare.
5672
5673 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5674 (iter_name_next_hashed): Ditto.
5675 (iter_name_next_linear): Ditto.
5676 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5677
5678 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5679 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5680 (symbol_search_name): New function.
5681
5682 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5683
5684 * minsyms.c (build_minimal_symbol_hash_tables): Change
5685 test for adding to demangled hash table to check for difference
5686 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5687
be07a590
JB
56882004-05-19 Jim Blandy <jimb@redhat.com>
5689
5690 Use a constructor function to create regset structures.
5691 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5692 (struct regset): Use supply_regset_ftype. Add new
5693 'collect_regset' member.
5694 (regset_xmalloc): New declaration.
5695 * regset.c: New file.
5696 * am64-tdep.c (amd64_regset_from_core_section): Use
5697 regset_xmalloc to construct regset structures.
5698 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5699 * i386-tdep.c (i386_regset_from_core_section): Same.
5700 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5701 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5702 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5703 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5704 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5705 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5706 * Makefile.in (COMMON_OBS): Add regset.o.
5707 (regset.o): New rule.
5708
604368f5
JB
57092004-05-19 Joel Brobecker <brobecker@gnat.com>
5710
5711 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5712 and pthread_cond_wait.c.
5713
82d69f8b
JB
57142004-05-18 Jim Blandy <jimb@redhat.com>
5715
5716 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5717 before the mach-specific switch, and then let the individual cases
5718 override the defaults, rather than leaving them uninitialized
5719 until the switch and then setting them in each case.
5720
5859efe5
RC
57212004-05-18 Randolph Chung <tausq@debian.org>
5722
5723 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5724 millicode functions.
5725
9ca80cf8
RC
57262004-05-18 Randolph Chung <tausq@debian.org>
5727
5728 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5729 references to dld_flags_buffer consistent.
5730
ed70ba00
RC
57312004-05-18 Randolph Chung <tausq@debian.org>
5732
5733 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5734 it for unwinding the stack.
5735
63100632
RC
57362004-05-18 Randolph Chung <tausq@debian.org>
5737
5738 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5739 Undefine these so we can overide them using gdbarch.
5740
090ccbb7
RC
57412004-05-18 Randolph Chung <tausq@debian.org>
5742
5743 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5744 handling for 64-bit HPUX (elf).
5745
594706e6
DJ
57462004-05-18 Daniel Jacobowitz <dan@debian.org>
5747
5748 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5749 constants.
5750 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5751 * ia64-tdep.c (examine_prologue): Likewise.
5752 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5753 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5754
e5483145
MK
57552004-05-18 Mark Kettenis <kettenis@gnu.org>
5756
5757 * vax-tdep.c (vax_return_value): Implement
5758 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5759
caed1a45
MK
57602004-05-17 Mark Kettenis <kettenis@gnu.org>
5761
5762 * vax-tdep.c (vax_return_value): Fix typo.
5763
3c0b7db2
AC
57642004-05-17 Andrew Cagney <cagney@redhat.com>
5765
5aae53e5
AC
5766 * MAINTAINERS: Mark Salter was also responsible for
5767 testsuite/config/
5768
3c0b7db2
AC
5769 * NEWS: Mention signal fixes.
5770
22b0923d
RC
57712004-05-17 Randolph Chung <tausq@debian.org>
5772
5773 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5774 check to see if we are unwinding an export stub. Export stubs clobber
5775 the %rp in the call path and stores the original rp in a stack slot.
5776
22f2b2f3
JB
57772004-05-17 Jim Blandy <jimb@redhat.com>
5778
5779 * MAINTAINERS: Update address for J.T. Conklin.
5780
cea96d64
RC
57812004-05-17 Randolph Chung <tausq@debian.org>
5782
5783 * hppa-tdep.c: Remove superfluous #include's.
5784 * Makefile.in (hppa-tdep.o): Update dependencies.
5785
f08f6a4a
RC
57862004-05-17 Randolph Chung <tausq@debian.org>
5787
5788 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5789 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5790 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5791 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5792 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5793 Remove static function declarations.
5794
51da707a
MK
57952004-05-17 Mark Kettenis <kettenis@gnu.org>
5796
caed1a45
MK
5797 * alphabsd-nat.c: Update copyright year.
5798 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5799
c0c2b0db
MK
5800 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5801 and M68K_A2_REGNUM.
5802
51da707a
MK
5803 * m68k-tdep.c (m68k_svr4_return_value): Implement
5804 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5805
8d027a04
MK
58062004-05-16 Mark Kettenis <kettenis@gnu.org>
5807
5808 * sol-thread.c Update copyright year. Fix various coding
5809 standards violations. Tweak a few comments.
5810 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5811 Delete prototypes.
5812
0d99fdb9
RC
58132004-05-15 Randolph Chung <tausq@debian.org>
5814
5815 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5816 as pointer instead of array reference since HPUX compiler does
5817 not accept unsized array arguments.
5818 * somsolib.c (dld_flags_buffer): Use constant array size.
5819
f7e3843a
MK
58202004-05-15 Mark Kettenis <kettenis@gnu.org>
5821
0fe85704
MK
5822 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5823 offset with decimal offset.
5824 (amd64obsd_sigcontext_addr): Return correct address for entire
5825 signal trampoline.
5826
a54f9a00
MK
5827 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5828 instead of get_frame_base.
5829
feae6502
MK
5830 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5831 (fill_gregset): Use regcache_raw_collect.
5832
0382d099
MK
5833 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5834 ppcobsd-tdep.c.
5835
f7e3843a
MK
5836 * config/sparc/tm-nbsd64.h: Remove file.
5837 * config/tm-sunos.h: Remove file.
5838
773df3e5
JB
58392004-05-15 Joel Brobecker <brobecker@gnat.com>
5840
5841 * rs6000-tdep.c (store_param_on_stack_p): New function,
5842 an improved version of some code extracted from skip_prologue().
5843 (skip_prologue): Use store_param_on_stack_p() to detect
5844 instructions saving a parameter on the stack. Detect when r0
5845 is used to save a parameter.
5846 Do not mark "li rx, SIMM" instructions as part of the prologue,
5847 unless the following instruction is also part of the prologue.
5848
95918acb
AC
58492004-05-14 Andrew Cagney <cagney@redhat.com>
5850
06f32659
AC
5851 * infrun.c (handle_inferior_event): Simplify
5852 STEP_OVER_UNDEBUGGABLE.
5853
95918acb
AC
5854 * infrun.c (handle_step_into_function): Delete function.
5855 (handle_inferior_event): Inline calls to
5856 handle_step_into_function.
5857
40711ff1 58582004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5859
5860 * rs6000-nat.c: Fix a comment.
5861
02f60eae
JB
58622004-05-12 David Anderson <davea@sgi.com>
5863
5864 Committed by Jim Blandy <jimb@redhat.com>:
5865 * regcache.c (struct regcache_descr): fix comment spelling.
5866
552e377b
JB
58672004-05-13 J. Brobecker <brobecker@gnat.com>
5868
5869 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5870 Fixes a link link failure.
5871
349766b2
JB
58722004-05-13 J. Brobecker <brobecker@gnat.com>
5873
5874 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5875 error that was causing the build to fail.
5876
0d4d5484
JB
58772004-05-13 J. Brobecker <brobecker@gnat.com>
5878
5879 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5880 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5881
0b30808c
AC
58822004-05-13 Andrew Cagney <cagney@redhat.com>
5883
5884 * infrun.c (handle_inferior_event): Check for
5885 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5886 calls. Update comments.
5887
cdf2c5f5
JB
58882004-05-13 Jim Blandy <jimb@redhat.com>
5889
063715bf
JB
5890 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5891 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5892 (store_regs_user_thread, store_regs_kernel_thread): Use
5893 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5894 * ppc-linux-nat.c (fill_gregset): Same.
5895 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5896 (ppc_linux_sigtramp_cache): Same.
5897 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5898 (ppcnbsd_sigtramp_cache_init): Same.
5899 * rs6000-nat.c (fetch_core_registers): Same.
5900 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5901 (rs6000_frame_cache): Same.
5902
cdf2c5f5
JB
5903 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5904 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5905 of assuming that the gprs are numbered starting with zero.
5906 * ppc-linux-nat.c (fill_gregset): Same.
5907 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5908 * ppcnbsd-nat.c (getregs_supplies): Same.
5909 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5910 * rs6000-nat.c (fetch_core_registers): Same.
5911 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5912
450bd37b
MS
59132004-05-07 Michael Snyder <msnyder@redhat.com>
5914
5915 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5916 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5917
4a72a2a6
AC
59182004-05-13 Andrew Cagney <cagney@redhat.com>
5919
5920 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5921
8edfa926
BM
59222004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5923
5924 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5925 base_address for shared libraries.
5926
723e0e3d
BM
59272004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5928
5929 * MAINTAINERS (write after approval): Add myself.
5930
00d4360e
UW
59312004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5932
5933 * breakpoint.c (bpstat_stop_status): Add new argument
5934 STOPPED_BY_WATCHPOINT. Use it instead of testing
5935 target_stopped_data_address agaist 0 to check whether
5936 or not we stopped due to a hardware watchpoint.
5937 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5938 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5939 with new argument.
5940
ec76baa5
JB
59412004-05-12 Jim Blandy <jimb@redhat.com>
5942
5943 * configure.in: When checking whether we should use the -bbigtoc
5944 option, don't forget to restore the original value of LDFLAGS.
5945 * configure: Regenerated.
5946
f2c9ca08
AC
59472004-05-12 Andrew Cagney <cagney@redhat.com>
5948
5949 * thread.c (load_infrun_state): Delete step_sp.
5950 * infrun.c (context_switch): Ditto.
5951 * inferior.h (step_sp): Ditto.
5952 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5953 * gdbthread.h (struct thread_info, save_infrun_state)
5954 (restore_infrun_state): Ditto.
5955
090ddb2a
UW
59562004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5957
5958 * MAINTAINERS (write after approval): Add myself.
5959
8aad930b
AC
59602004-05-12 Andrew Cagney <cagney@redhat.com>
5961
5962 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5963 eliminate reference to step_sp.
5964 (struct execution_control_state, init_execution_control_state)
5965 (handle_inferior_event, keep_going): Delete update_step_sp and
5966 step_sp.
5967 * infcmd.c (step_sp): Note that variable is unused.
5968
922d5ae0
AC
59692004-05-11 Andrew Cagney <cagney@redhat.com>
5970
5971 * infrun.c (step_over_function): Delete function.
5972 (handle_step_into_function): Use insert_step_resume_breakpoint.
5973 (insert_step_resume_breakpoint): Fix assertion.
5974
017c5ca5
NR
59752004-05-11 Nick Roberts <nickrob@gnu.org>
5976
5977 * utils.c (defaulted_query): Just use the normal query input type
5978 when printing the annotations.
5979
42edda50
AC
59802004-05-11 Andrew Cagney <cagney@redhat.com>
5981
5982 * infrun.c (handle_inferior_event): Simplify code handling
5983 step-into or return-from a signal trampoline.
5984
d28b44a7
AC
59852004-05-11 Andrew Cagney <cagney@redhat.com>
5986
5987 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5988 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5989
383f0f5b
JB
59902004-05-10 Jim Blandy <jimb@redhat.com>
5991
d0b57c3a
JB
5992 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5993 with a call to internal_error.
5994
383f0f5b
JB
5995 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5996 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5997 processor variant lacks those registers.
5998 (ppc_floating_point_unit_p): Change description to make it clear
5999 that this returns info about the ISA, not the ABI.
6000 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6001 return true or false by checking tdep->ppc_fp0_regnum and
6002 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6003 arch/mach switching done in rs6000_gdbarch_init; it's better to
6004 keep that logic there, and just check the results here.
6005 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6006 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6007 floating-point registers.
6008 (ppc_supply_fpregset, ppc_collect_fpregset)
6009 (rs6000_push_dummy_call, rs6000_extract_return_value)
6010 (rs6000_store_return_value): Assert that we have floating-point
6011 registers.
6012 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6013 (rs6000_frame_cache): Don't note the locations at which
6014 floating-point registers were saved if we have no fprs.
6015 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6016 registers.
6017 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6018 (store_regs_user_thread, store_regs_kernel_thread): Only call
6019 supply_fprs / fill_fprs if we actually have floating-point
6020 registers.
6021 (special_register_p): Check ppc_fpscr_regnum before matching
6022 against it.
6023 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6024 supply / collect fpscr if we don't have it.
6025 * ppc-bdm.c: #include "gdb_assert.h".
6026 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6027 have floating-point registers, since I can't test this code on
6028 FP-free systems to adapt it.
6029 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6030 fpscr and floating point register numbers if they don't exist.
6031 (fetch_register): Assert that we have floating-point registers
6032 before we reach the code that handles them.
6033 (store_register): Same. And use tdep instead of calling
6034 gdbarch_tdep again.
6035 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6036 don't have them.
6037 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6038 fprs and fpscr if we don't have them.
6039 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6040 don't have them.
6041 * ppcnbsd-nat.c: #include "gdb_assert.h".
6042 (getfpregs_supplies): Assert that we have floating-point registers.
6043 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6044 * ppcobsd-tdep.c: #include "gdb_assert.h".
6045 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6046 have floating-point registers.
6047 * rs6000-nat.c (regmap): Don't match against the fpscr and
6048 floating point register numbers if they don't exist.
6049 (fetch_inferior_registers, store_inferior_registers,
6050 fetch_core_registers): Only fetch / store / supply the
6051 floating-point registers and the fpscr if we have them.
6052 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6053 (ppcobsd-tdep.o): Update dependencies.
6054
15960608
AC
60552004-05-10 Andrew Cagney <cagney@redhat.com>
6056
6057 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6058 (context_switch): Do not switch through_sigtramp_breakpoint.
6059 * gdbthread.h (save_infrun_state, load_infrun_state)
6060 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6061 and structure member.
6062 * thread.c (load_infrun_state, save_infrun_state): Update.
6063
5ab5aa0f
MK
60642004-05-10 Mark Kettenis <kettenis@gnu.org>
6065
6066 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6067
da78b0e7
DJ
60682004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6069
6070 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6071 throughout.
6072 * aclocal.m4: Regenerate.
6073
cca0d3b0
NW
60742004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6075
6076 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6077
d303a6c7
AC
60782004-05-10 Andrew Cagney <cagney@redhat.com>
6079
6080 * infrun.c (check_sigtramp2): Delete function.
6081 (handle_inferior_event): When single stepping, and taking a
6082 signal, set a breakpoint at the signal return address. Delete
6083 redundant calls to check_sigtramp2.
6084 (insert_step_resume_breakpoint): New function.
6085 (through_sigtramp_breakpoint, handle_inferior_event)
6086 (follow_exec, wait_for_inferior, fetch_inferior_event)
6087 (currently_stepping, keep_going): Delete most uses of
6088 through_sigtramp_breakpoint, not that it should be deleted.
6089 (delete_breakpoint_current_contents): Delete function.
6090
03f4cc20
RC
60912004-05-10 Randolph Chung <tausq@debian.org>
6092
6093 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6094 target.
6095 * config/pa/tm-linux.h: New file.
6096
37fc812e
DJ
60972004-05-10 Daniel Jacobowitz <drow@mvista.com>
6098
6099 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6100 of prefixes. Don't print the prefix twice in the CLI.
6101
26c0b942
JB
61022004-05-10 Jim Blandy <jimb@redhat.com>
6103
2e56e9c1
JB
6104 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6105 collect all the gprs.
6106
26c0b942
JB
6107 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6108 loop collecting gprs.
6109
dc497459
AC
61102004-05-09 Andrew Cagney <cagney@redhat.com>
6111
6112 * remote-vx.c (net_step): Delete step-range code.
6113 * remote.c (remote_resume, init_all_packet_configs)
6114 (set_remote_protocol_E_packet_cmd)
6115 (show_remote_protocol_E_packet_cmd)
6116 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6117 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6118 (show_remote_protocol_e_packet_cmd): Ditto.
6119
0543f387
MK
61202004-05-09 Mark Kettenis <kettenis@gnu.org>
6121
c481d1ca
MK
6122 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6123
f626a069
MK
6124 * hppa-tdep.h: Update copyright year.
6125 (struct trad_frame_saved_reg): Add opaque declaration.
6126
6fa57a7d
MK
6127 * amd64-tdep.c (amd64_return_value): Implement
6128 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6129
e47577ab
MK
6130 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6131 (m68k_value_to_register): New functions.
6132 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6133 value_to_register.
6134
31db7b6c
MK
6135 * defs.h (enum return_value_convention): Add
6136 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6137 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6138 * infcmd.c (legacy_return_value): New function.
6139 (print_return_value): Rwerite to implement
6140 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6141 * values.c (using_struct_return): Check for inequality to
6142 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6143 RETURN_VALUE_STRUCT_CONVENTION.
6144 * i386-tdep.c (i386_return_value): Implement
6145 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6146
0543f387
MK
6147 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6148 include "symtab.h", "opcode/vax.h" and "inferior.h".
6149 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6150 to read_memory_unsigned_integer.
6151 (vax_gdbarch_init): Reorder.
6152 (_initialize_vax_tdep): Spell out prototype.
6153 * Makefile.in (vax-tdep.o): Update dependencies.
6154
0c93b7b6
AC
61552004-05-08 Andrew Cagney <cagney@redhat.com>
6156
e6b55ae2
AC
6157 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6158 * target.c (target_detach, target_disconnect): Ditto.
6159
1ac839b8
AC
6160 * infcall.c (call_function_by_hand): When no
6161 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6162 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6163 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6165 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6166
28954179
AC
6167 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6168 * gdbarch.h, gdbarch.c: Re-generate.
6169 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6170 deprecated_fix_call_dummy.
6171 * v850-tdep.c (v850_gdbarch_init): Ditto.
6172 * infcall.c (call_function_by_hand): Do not call
6173 DEPRECATED_FIX_CALL_DUMMY.
6174
434b87dd
AC
6175 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6176 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6177 * gdbarch.h, gdbarch.c: Re-generate.
6178 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6179 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6180 deprecated_sizeof_call_dummy_words.
6181 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6183 * v850-tdep.c (v850_gdbarch_init): Ditto.
6184 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6185 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6186 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6187 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6188 * arch-utils.h (legacy_call_dummy_words)
6189 (legacy_sizeof_call_dummy_words): Delete declarations.
6190 * arch-utils.c (legacy_call_dummy_words)
6191 (legacy_sizeof_call_dummy_words): Delete variables.
6192
58d28df8
AC
6193 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6194 * gdbarch.h, gdbarch.c: Re-generate.
6195 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6196 * infcall.c (call_function_by_hand): Eliminate call to
6197 DEPRECATED_PUSH_DUMMY_FRAME.
6198 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6199 push_dummy_frame.
6200 (ns32k_push_dummy_frame): Delete function.
6201
e4a2df64
AC
6202 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6203 deprecated_call_dummy_breakpoint_offset or
6204 deprecated_call_dummy_start_offset.
6205 * dummy-frame.c, arm-tdep.c: Update comments.
6206 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6207 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6208 * gdbarch.h, gdbarch.c: Re-generate.
6209
d3712828
AC
6210 * infcall.c (legacy_push_dummy_code): Delete function.
6211 (push_dummy_code): Delete call.
6212
7a882905
AC
6213 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6214 * gdbarch.h, gdbarch.c: Re-generate.
6215 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6216 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6217 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6218 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6219
0ec5872b
AC
6220 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6221 (struct frame_info): Delete opaque declaration.
6222 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6223 * frame.c (get_frame_type): Delete call.
6224
0c93b7b6
AC
6225 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6226 pc_in_call_dummy.
6227 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6228 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6229
75536971
MK
62302004-05-08 Mark Kettenis <kettenis@gnu.org>
6231
527ca6bb
MK
6232 * alphanbsd-tdep.c: Include "gdb_string.h".
6233 * armnbsd-tdep.c: Update copyright year.
6234 Include "gdb_string.h".
6235 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6236 dependencies.
6237
d39fdc61
MK
6238 * delta68-nat.c: Remove file.
6239 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6240 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6241 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6242 (delta68-nat.o): Remove dependency.
6243
75536971
MK
6244 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6245 function.
6246 (m68k_gdbarch_init): Don't set
6247 deprecated_frameless_function_invocation.
6248
f4ca1d1f
RC
62492004-05-07 Randolph Chung <tausq@debian.org>
6250
6251 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6252 read_memory_nobpt for code reading when doing frame unwinding.
6253 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6254
2f0e8c7a
RC
62552004-05-07 Randolph Chung <tausq@debian.org>
6256
6257 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6258 instead of sp, handle sigaltstack case.
6259 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6260 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6261 signal handler and not that of the caller.
6262 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6263 hppa_linux_sigtramp_find_sigcontext.
6264
959464ff
RC
62652004-05-07 Randolph Chung <tausq@debian.org>
6266
6267 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6268 hppa-linux-nat.c.
6269 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6270 * hppa-linux-nat.c (fetch_register, store_register): Define.
6271 (fetch_inferior_registers, store_inferior_registers): Define.
6272 (supply_gregset): Add comment and clean up some unneeded code.
6273 (fill_gregset): Add comment and fix so that it saves registers in
6274 the right place in the gregset.
6275 (fill_fpregset): Fix buffer overrun problem.
6276 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6277
0da28f8a
RC
62782004-05-07 Randolph Chung <tausq@debian.org>
6279
6280 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6281 do common handling of the pcoqt register.
6282 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6283 to use helper function.
6284 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6285 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6286 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6287 generic fallback unwinder when all else fails.
6288 (hppa_gdbarch_init): Add fallback sniffer.
6289 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6290 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6291 to use helper function.
6292
b9ec757a
JB
62932004-05-08 Joel Brobecker <brobecker@gnat.com>
6294
6295 * config/djgpp/fnchange.lst: Add translation rules for
6296 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6297
756e95f1
MK
62982004-05-08 Mark Kettenis <kettenis@gnu.org>
6299
6300 * frame.c (get_prev_frame_1): Work around GCC bug.
6301 * frame.h: Add comment about GCC bug.
6302
2b4855ab
AC
63032004-05-07 Andrew Cagney <cagney@redhat.com>
6304
6305 * observer.c: Include "commands.h" and "gdbcmd.h".
6306 (observer_debug, _initialize_observer): Add the
6307 command "set/show debug observer".
6308 * observer.sh: When observer debugging, log notify calls.
6309 * Makefile.in (observer.o): Update dependencies.
6310
ba3e8e46
JM
63112004-05-07 Jason Molenda (jmolenda@apple.com)
6312
6313 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6314
16796152
JB
63152004-05-07 Jim Blandy <jimb@redhat.com>
6316
daf6dc85
JB
6317 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6318 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6319 to recognize gpr regnums, instead of assuming that
6320 tdep->ppc_fp0_regnum marks the end of the general-purpose
6321 registers.
6322
16796152
JB
6323 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6324 the given architecture has floating-point registers.
6325
c69b8bfc
AC
63262004-05-07 Andrew Cagney <cagney@redhat.com>
6327
6328 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6329 macro defined to 1.
6330 * gdbarch.h, gdbarch.c: Re-generate.
6331 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6332 deprecated_use_generic_dummy_frames.
6333
7243600a
BF
63342004-05-07 Brian Ford <ford@vss.fsi.com>
6335
6336 * NEWS: Mention Cygwin DWARF 2 support.
6337
73c1e0a1
AC
63382004-05-07 Andrew Cagney <cagney@redhat.com>
6339
6340 * objfiles.h (struct entry_info): Delete unused fields
6341 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6342 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6343 * mipsread.c (mipscoff_symfile_read): Update.
6344 * mdebugread.c (parse_partial_symbols): Update.
6345 * dwarfread.c (read_file_scope): Update.
6346 * dwarf2read.c (read_file_scope): Update.
6347 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6348 * coffread.c (complete_symtab): Update.
6349
1d3056ac
MK
63502004-05-07 Mark Kettenis <kettenis@gnu.org>
6351
6352 * infcall.c (_initialize_infcall): Fix typo.
6353
15170568
AC
63542004-05-07 Andrew Cagney <cagney@redhat.com>
6355
6356 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6357 * command.h (add_setshow_zinteger_cmd): Declare.
6358
34f75cc1
RC
63592004-05-06 Randolph Chung <tausq@debian.org>
6360
6361 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6362 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6363 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6364 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6365 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6366 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6367 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6368 definitions ...
6369 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6370 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6371 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6372 (hppa64_hpux_frame_find_saved_regs_in_sig)
6373 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6374 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6375 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6376 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6377 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6378 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6379 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6380 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6381 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6382 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6383 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6384 (hppa32_register_type, hppa_cannot_store_register)
6385 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6386 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6387 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6388 * pa64solib.c (pa64_solib_have_load_event)
6389 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6390 (pa64_solib_unloaded_library_pathname): Likewise.
6391 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6392 (som_solib_library_pathname): Likewise.
6393
0a5e7efe
JI
63942004-05-05 Jim Ingham <jingham@apple.com>
6395
6396 * breakpoint.c (create_breakpoints): Copy the ignore count and
6397 thread id over from the pended breakpoint to the actual
6398 breakpoint.
6399
10a4b113
AC
64002004-05-05 Andrew Cagney <cagney@redhat.com>
6401
6402 * gdbarch.sh (PARM_BOUNDARY): Delete.
6403 gdbarch.h, gdbarch.c: Re-generate.
6404 * valops.c (PARM_BOUNDARY): Delete macro.
6405 (value_push): Delete PARM_BOUNDARY code.
6406 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6407
366f009f
JB
64082004-05-04 Jim Blandy <jimb@redhat.com>
6409
32b99774
JB
6410 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6411 Don't assume that the gprs, fprs, and UISA sprs are
6412 contiguous, start at register number zero, and end with fpscr.
6413 Instead, use the numbers from the tdep structure.
6414
366f009f
JB
6415 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6416 should no longer be used in code specific to the RS6000 and its
6417 derivatives.
6418 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6419 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6420 tdep->ppc_fp0_regnum.
6421 (ppc_supply_fpregset, ppc_collect_fpregset)
6422 (rs6000_push_dummy_call, rs6000_extract_return_value)
6423 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6424 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6425 FP0_REGNUM.
6426 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6427 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6428 Same.
6429 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6430 bdm_ppc_store_registers): Same.
6431 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6432 (store_register, fill_fpregset): Same.
6433 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6434 (ppc_linux_supply_fpregset): Same.
6435 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6436 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6437 Same.
6438 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6439 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6440 ppc64_sysv_abi_return_value): Same.
6441 * rs6000-nat.c (regmap, fetch_inferior_registers)
6442 (store_inferior_registers, fetch_core_registers): Same.
6443
827f338d
MK
64442004-05-01 Mark Kettenis <kettenis@gnu.org>
6445
6446 * m68knbsd-nat.c: Remove file.
6447 * m68knbsd-tdep.c: Remove file.
6448 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6449 dependencies.
6450 * configure.host: Add m68k-*-netbsdelf*.
6451 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6452 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6453 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6454 (XM_FILE): Remove.
6455 * config/m68k/nbsdelf.mh: New file.
6456 * config/m68k/nbsd.mt: New file.
6457 * config/m68k/nbsdaout.mt: Remove file.
6458 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6459 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6460 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6461 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6462 (use_struct_convention): Remove prototype.
6463 (USE_STRUCT_CONVENTION): Remove define.
6464 * config/m68k/xm-nbsd.h: Remove file.
6465
66894781
MS
64662004-05-04 Michael Snyder <msnyder@redhat.com>
6467
6468 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6469 reg_struct_return method (as gcc usually does for cross targets).
6470
f0f63663
AC
64712004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6472
6473 Committed by Andrew Cagney.
6474 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6475 alignment padding when accessing ucontext struct members.
6476
edf61169
JB
64772004-05-04 Jim Blandy <jimb@redhat.com>
6478
8bf659e8
JB
6479 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6480 'ppc_gplast_regnum' member.
6481 (ppc_num_gprs): New enum constant.
6482 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6483 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6484 * rs6000-nat.c (regmap, fetch_inferior_registers,
6485 store_inferior_registers): Same.
6486 * rs6000-tdep.c (e500_pseudo_register_read)
6487 (e500_pseudo_register_write): Same.
6488 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6489
b967e06f
JB
6490 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6491 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6492 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6493 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6494 FPLAST_REGNUM.
6495 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6496 Same.
6497 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6498 * rs6000-nat.c (regmap, fetch_inferior_registers)
6499 (store_inferior_registers): Same.
6500
edf61169
JB
6501 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6502 with FPLAST_REGNUM.
6503
58a9656e
JB
65042004-05-03 Joel Brobecker <brobecker@gnat.com>
6505
6506 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6507 failure detected by recent versions of GCC.
6508 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6509 to be consistent with the usage in dwarf2_create_include_psymtab.
6510
dc305454
MS
65112004-05-03 Michael Snyder <msnyder@redhat.com>
6512
6513 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6514 (heuristic_proc_start): Whitespace cleanup.
6515
29972665
MK
65162004-05-04 Mark Kettenis <kettenis@gnu.org>
6517
6b57680d
MK
6518 * sun3-nat.c: Remove file.
6519 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6520 dependencies.
6521 (ALLDEPFILES): Remove sun3-nat.c.
6522 (sun3-nat.o): Remove dependencies.
6523
29972665
MK
6524 * i386-interix-nat.c, i386-interix-tdep.c,
6525 config/i386/nm-interix.h, config/i386/interix.mh,
6526 config/i386/interix.mt: Remove files.
6527 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6528 dependencies.
6529
f595cb19
MK
65302004-05-03 Mark Kettenis <kettenis@gnu.org>
6531
6532 * m68k-tdep.h (struct gdbarch_tdep): Add member
6533 struct_value_regnum.
6534 (m68k_svr4_init_abi): New prototype.
6535 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6536 different calling conventions.
6537 (m68k_extract_return_value): Remove code dealing with single-field
6538 structs.
6539 (m68k_store_return_value): Remove code dealing with single-field
6540 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6541 (m68k_extract_struct_value_address): Remove function.
6542 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6543 (m68k_reg_struct_return_p, m68k_return_value)
6544 (m68k_svr4_return_value): New functions.
6545 (m68k_use_struct_convention): Remove function.
6546 (m68k_push_dummy_call): Use new struct_value_regnum member of
6547 `struct gdbarch_tdep' instead of hardcoded register number to
6548 store STRUCT_ADDR.
6549 (m68k_svr4_init_abi): New function.
6550 (m68k_gdbarch_init): Don't set extract_return_value,
6551 store_return_values, deprecated_extract_struct_value_address and
6552 use_struct_convention. Set return_value instead. Initialize new
6553 struct_value_regnum member of `struct gdbarch_tdep'.
6554 * m68klinux-tdep.c: Update copyright year.
6555 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6556 (m68k_linux_extract_struct_value_address): Remove function.
6557 (m68k_linux_init_abi): Don't set extract_return_value,
6558 store_return_values, deprecated_extract_struct_value_address and
6559 use_struct_convention. Call m68k_svr4_init_abi but override the
6560 new struct_value_regnum member of `struct gdbarch_tdep'.
6561 * Makefile.in (m68k-tdep.o): Update dependencies.
6562
aaa75496
JB
65632004-05-03 J. Brobecker <brobecker@gnat.com>
6564
6565 * dwarf2read.c (line_header): Add new included_p field in
6566 field file_names.
6567 (partial_die_info): New field has_stmt_list. New field line_offset.
6568 (dwarf2_create_include_psymtab): New function.
6569 (dwarf2_build_include_psymtabs): New function.
6570 (add_file_name): Add forward declaration. Initialize new field.
6571 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6572 to be able to determine the list of files included by the
6573 given unit, and build their associated psymtabs.
6574 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6575 files as well.
6576 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6577 (read_file_scope): Update call to dwarf_decode_lines.
6578 (read_partial_die): Handle DW_AT_stmt_list attributes.
6579
c848556f
MC
65802004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6581
6582 Unfix PR gdb/1626.
6583 * configure.in: Revert special case for osf5.*.
6584 * configure: Regenerate.
6585
eb4556d7
JB
65862004-05-02 Jim Blandy <jimb@redhat.com>
6587
6588 Move the symbol-file-from-memory functions into their own file.
6589 * symfile-mem.c, symfile-mem.h: New files.
6590 * symfile.c (symbol_file_add_from_bfd): New function.
6591 (symbol_file_add): Call symbol_file_add_from_bfd.
6592 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6593 Moved to symfile-mem.c.
6594 (_initialize_symfile): Move definition of
6595 add-symbol-file-from-memory command to symfile-mem.c.
6596 * symfile.h (symbol_file_add_from_bfd): New declaration.
6597 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6598 * config/powerpc/linux.mt (TDEPFILES): Same.
6599 * Makefile.in (SFILES): Add symfile-mem.c.
6600 (symfile_mem_h): New variable.
6601 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6602 (symfile-mem.o): New rule.
6603
80bb239e
AC
66042004-05-01 Andrew Cagney <cagney@redhat.com>
6605
7789d0fa
AC
6606 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6607 frame_find_by_id instead of frame_relative_level.
6608 (do_enable_breakpoint): Ditto.
6609 * thread.c: Update copyright.
6610 (info_threads_command): Ditto, simplify.
6611
80bb239e
AC
6612 * frame.c (deprecated_generic_get_saved_register): Delete
6613 function, moved to "xstormy16-tdep.c".
6614 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6615 deprecated_generic_get_saved_register from "frame.c".
6616 (xstormy16_frame_saved_register): Call
6617 xstormy16_get_saved_register.
6618 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6619 static.
6620 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6621 * frame.h (deprecated_generic_get_saved_register): Delete.
6622
b2a871dd
MC
66232004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6624
6625 * dwarfread.c: Update documentation on the state of dwarf-1.
6626
0e100dab
AC
66272004-05-01 Andrew Cagney <cagney@redhat.com>
6628
acd8056e
AC
6629 * stack.c (select_frame_command): Delete call to
6630 frame_relative_level.
6631 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6632 Delete #if0 code.
6633 (frame_info): Do not print FRAMELESS.
6634 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6635 (catch_info): Delete #if0 code.
6636
0e100dab
AC
6637 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6638 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6639 of frame_relative_level.
6640 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6641 to SENTINEL_FRAME.
6642 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6643 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6644 frame_relative_level.
6645
55699d59
AC
6646 * frame.h (deprecated_set_frame_type): Delete declaration.
6647 * frame.c (deprecated_set_frame_type): Delete function, update
6648 comments.
6649
fcf70625
AC
6650 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6651 * gdbarch.h, gdbarch.c: Re-generate.
6652 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6653 (shnbsd_pc_in_sigtramp): Delete.
6654 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6655 pc_in_sigtramp.
6656 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6657 pc_in_sigtramp.
6658 * frame.h: Update comments.
6659 * ppc-linux-tdep.c: Update comments.
6660 * breakpoint.c (bpstat_what): Update comments.
6661
ac5eccb7
AC
6662 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6663 m68klinux-tdep.o's dependencies, were previously added to
6664 m68klinux-nat.o.
6665
f2524b93
AC
6666 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6667 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6668 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6669 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6670 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6671
17e20bce
AC
6672 * Makefile.in (m68klinux-nat.o): Update dependencies.
6673 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6674 (m68k_linux_sigtramp_frame_cache)
6675 (m68k_linux_sigtramp_frame_this_id)
6676 (m68k_linux_sigtramp_frame_prev_register)
6677 (m68k_linux_sigtramp_frame_unwind)
6678 (m68k_linux_sigtramp_frame_sniffer)
6679 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6680 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6681 names, use trad-frame.h.
6682 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6683 (struct m68k_sigtramp_info): Delete.
6684 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6685 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6686 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6687 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6688 "m68klinux-tdep.c".
6689
c8864fa2
AC
6690 * infrun.c (check_sigtramp2): Delete check for
6691 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6692
511dd2cd
MK
66932004-05-01 Mark Kettenis <kettenis@gnu.org>
6694
6695 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6696
8c6b0e06
AC
66972004-05-01 Andrew Cagney <cagney@redhat.com>
6698
9df0bb3f
AC
6699 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6700 (frv_linux_sigtramp_frame_cache)
6701 (frv_linux_sigtramp_frame_this_id)
6702 (frv_linux_sigtramp_frame_prev_register)
6703 (frv_linux_sigtramp_frame_unwind)
6704 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6705 include "linux" in function and variable names, directly call
6706 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6707 the latest trad-frame code.
6708 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6709 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6710 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6711 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6712 * frv-tdep.c (frv_sigtramp_frame_cache)
6713 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6714 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6715 frv-linux-tdep.c.
6716 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6717 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6718 (frv_set_sigcontext_reg_addr): Delete function.
6719
8c6b0e06
AC
6720 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6721 (DEPRECATED_SIGTRAMP_END): Delete.
6722 * gdbarch.h, gdbarch.c: Re-generate.
6723 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6724 * config/vax/tm-vaxbsd.h: Update copyright.
6725 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6726 (DEPRECATED_IN_SIGTRAMP): Define.
6727 * config/m68k/tm-nbsd.h: Update copyright.
6728 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6729 (DEPRECATED_IN_SIGTRAMP): Define.
6730
50ea7769
MK
67312004-05-01 Mark Kettenis <kettenis@gnu.org>
6732
03ac2a74
MK
6733 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6734 encondings. Fixes PR gdb/1628.
6735
50ea7769
MK
6736 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6737 DW_CFA_restore state without a matching DW_CFA_remember_state
6738 instead of aborting. Fixes PR backtrace/1589.
6739
9a5d7be1
JB
67402004-04-30 Joel Brobecker <brobecker@gnat.com>
6741
6742 * MAINTAINERS: Add self as AIX maintainer.
6743 Update my e-mail address in write-after-approval section.
6744
2593d1cd
AC
67452004-04-30 Andrew Cagney <cagney@redhat.com>
6746
ce12bbf9
AC
6747 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6748 (legacy_get_prev_frame): Ditto.
6749
36710c63
AC
6750 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6751 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6752 * mipsread.c (sigtramp_address): Delete extern variable.
6753 (mipscoff_new_init): Delete reference.
6754 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6755 (fixup_sigtramp): Delete function.
6756 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6757 (fixup_sigtramp): Delete declarations.
6758
2593d1cd
AC
6759 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6760 deprecated_pc_in_sigtramp.
6761 (ppcnbsd_pc_in_sigtramp): Delete function.
6762
2a25f91c
MK
67632004-05-01 Mark Kettenis <kettenis@gnu.org>
6764
6765 * config/m68k/nm-nbsd.h: Tweak comments.
6766 * config/m68k/nm-nbsdaout.h: Likewise.
6767
0b281939
AC
67682004-04-30 Andrew Cagney <cagney@redhat.com>
6769
6770 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6771 legacy_pc_in_sigtramp.
6772 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6773
8f2d3ea0
MK
67742004-05-01 Mark Kettenis <kettenis@gnu.org>
6775
6776 Add OpenBSD/m68k support.
6777 * NEWS (New native configurations): Mention OpenBSD/m68k.
6778 * m68kbsd-tdep.c: New file.
6779 * m68kbsd-nat.c: New file.
6780 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6781 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6782 * configure.host: Add m68k-*-openbsd.
6783 * configure.tgt: Add m68k-*-openbsd.
6784 * config/m68k/tm-obsd.h: New file.
6785 * config/m68k/obsd.mt: New file.
6786 * config/m68k/obsd.mh: New file.
6787 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6788 m68kbsd-tdep.c.
6789
c40f49a4
AC
67902004-04-30 Andrew Cagney <cagney@redhat.com>
6791
6792 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6793 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6794
e81554cd
MK
67952004-04-30 Mark Kettenis <kettenis@gnu.org>
6796
6797 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6798 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6799
d4dc1a91
BF
68002004-04-30 Brian Ford <ford@vss.fsi.com>
6801
6802 Revert 2004-04-16 change.
6803 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6804 (i386_coff_init_abi): Remove.
6805 * i386-tdep.h (i386_coff_init_abi): Remove.
6806 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6807
2f72f850
AC
68082004-04-30 Andrew Cagney <cagney@redhat.com>
6809
e492f9d6
AC
6810 * blockframe.c (find_pc_partial_function): Delete use of
6811 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6812 DEPRECATED_SIGTRAMP_END.
6813
7b7adad0
AC
6814 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6815 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6816 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6817 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6818 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6819
2f72f850
AC
6820 * defs.h (deprecated_inside_entry_file): Delete declaration.
6821 * blockframe.c (deprecated_inside_entry_file): Delete function.
6822 (legacy_frame_chain_valid): Delete call.
6823 * sh64-tdep.c (sh64_frame_chain): Delete call.
6824 * objfiles.h: Update comments.
6825 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6826 call.
6827 * frame.c (get_prev_frame): Delete call, update comments.
6828
283f90a7
BF
68292004-04-30 Brian Ford <ford@vss.fsi.com>
6830
6831 * MAINTAINERS (Write After Approval): Add myself.
6832
8ee56bcf
AC
68332004-04-30 Andrew Cagney <cagney@redhat.com>
6834
6835 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6836 * gdbarch.h, gdbarch.c: Re-generate.
6837 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6838 code.
6839
ee27e1b6
AC
68402004-04-30 Andrew Cagney <cagney@redhat.com>
6841
6842 * gdb-events.sh (selected_thread_changed)
6843 (selected_frame_level_changed, target_changed): Delete.
6844 * gdb-events.h, gdb-events.c: Re-generate.
6845 * valops.c (value_assign): Update.
6846 * stack.c (select_frame_command, up_silently_base)
6847 (down_silently_base): Update.
6848
d5ac5a39
AC
68492004-04-29 Andrew Cagney <cagney@redhat.com>
6850
6851 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6852 registers correctly.
6853 (print_gp_register_row, mips32_heuristic_proc_desc)
6854 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6855 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6856 references to mips_isa_regsize.
6857
ceae6e75
AC
68582004-04-29 Andrew Cagney <cagney@redhat.com>
6859
6860 * mips-tdep.c (struct gdbarch_tdep): Delete
6861 mips_fp_register_double.
6862 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6863 mips_abi_regsize.
6864 (mips_gdbarch_init): Do not set mips_fp_register_double.
6865 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6866
a587af0b
AC
68672004-04-29 Joel Brobecker <brobecker@gnat.com>
6868
6869 Committed by Andrew Cagney.
6870 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6871 function calls.
6872
13326b4e
AC
68732004-04-29 Andrew Cagney <cagney@redhat.com>
6874
6875 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6876 gdbarch, use mips_abi, update callers.
6877 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6878 mips_abi_regsize, update callers.
6879 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6880 mips_default_abi_regsize.
6881 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6882 mips_default_abi_regsize.
6883
711cc5cd
AC
68842004-04-29 Andrew Cagney <cagney@redhat.com>
6885
1b13c4f6
AC
6886 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6887 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6888 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6889 mips_default_abi_regsize.
6890 (mips_isa_regsize): Rename mips_regisze.
6891 * mipsnbsd-tdep.c: Update.
6892 * mips-linux-tdep.c: Update.
6893 * irix5-nat.c: Update.
6894 * mips-tdep.h (mips_isa_regsize): Update.
6895
711cc5cd
AC
6896 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6897 Delete all disabled code.
6898 * gdb-events.h, gdb-events.c: Re-generate.
6899
e63bbc88
MK
69002004-04-19 Jerome Guitton <guitton@gnat.com>
6901 Mark Kettenis <kettenis@gnu.org>
6902
6903 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6904 the function begins with a branch instruction.
6905
fd35795f
MK
69062004-04-29 Mark Kettenis <kettenis@gnu.org>
6907
6908 * i386-tdep.c: Fix spelling mistakes.
6909
c960c18f
AC
69102004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6911 Andrew Cagney <cagney@redhat.com>
6912
6913 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6914 <sys/proc.h>.
6915 * acconfig.h: Provide default _KMEMUSER value.
6916 * config.in, configure: Re-generate.
6917 * NEWS: Mention fix.
6918
50306a9d
RC
69192004-04-24 Randolph Chung <tausq@debian.org>
6920
6921 * configure.host (hppa*-*-linux*): New target.
6922 * configure.tgt (hppa*-*-linux*): Likewise.
6923 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6924 gdbarch_init_osabi() call earlier so that osabi-specific frame
6925 unwinders can be registered first.
6926 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6927 hppa-linux-nat.c.
6928 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6929 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6930 * config/pa/linux.mh: New file.
6931 * config/pa/linux.mt: New file.
6932 * config/pa/nm-linux.h: New file.
6933 * config/pa/xm-linux.h: New file.
6934 * hppa-linux-nat.c: New file.
6935 * hppa-linux-tdep.c: New file.
6936
2a6228ef
RC
69372004-04-28 Randolph Chung <tausq@debian.org>
6938
6939 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6940 return values.
6941 (hppa32_push_dummy_call): Fix small struct and floating point argument
6942 passing, and make sure the stack frame is properly aligned.
6943
82c10df6
AC
69442004-04-28 Andrew Cagney <cagney@redhat.com>
6945
d762c46a
AC
6946 * stack.c (print_stack_frame): Fix description.
6947
82c10df6
AC
6948 * NEWS: Mention gdb/gdbserver/configure execute permission
6949 changed. PR server/519.
6950
0faf0076
AC
69512004-04-28 Andrew Cagney <cagney@redhat.com>
6952
6953 * stack.c (print_stack_frame_stub): Delete declaration.
6954 (struct print_stack_frame_args, print_stack_frame)
6955 (print_frame_info, print_frame): Replace "source" with print what.
6956 Replace "print" with "print_level". Replace "args" with
6957 "print_args".
6958 * frame.h (show_and_print_stack_frame, print_stack_frame)
6959 (print_frame_info): Update declarations.
6960 * stack.c (select_and_print_frame, frame_command)
6961 (current_frame_command, up_command, down_command): Update calls -
6962 use get_selected_frame, pass "enum print_what" for source, do not
6963 call frame_relative_level.
6964 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6965 * remote-rdp.c (remote_rdp_open): Ditto.
6966 * remote-mips.c (common_open): Ditto.
6967 * remote-e7000.c (e7000_start_remote): Ditto.
6968 * ocd.c (ocd_start_remote): Ditto.
6969 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6970 * infrun.c (normal_stop): Ditto.
6971 * inflow.c (kill_command): Ditto.
6972 * infcmd.c (finish_command): Ditto.
6973 * corelow.c (core_open): Ditto.
6974 * tracepoint.c (finish_tfind_command): Ditto.
6975 * thread.c (info_threads_command, info_threads_command)
6976 (restore_current_thread, do_captured_thread_select): Ditto.
6977 * ada-tasks.c (task_command): Ditto.
6978
f4c5303c
OF
69792004-04-26 Orjan Friberg <orjanf@axis.com>
6980
6981 * frame.c: Include "observer.h".
6982 (frame_observer_target_changed): New function.
6983 (_initialize_frame): Attach target_changed observer.
6984 * regcache.c: Include "observer.h".
6985 (regcache_observer_target_changed): New function.
6986 (_initialize_regcache): Attach target_changed observer.
6987 * valops.c: Include "observer.h".
6988 (value_assign): Notify target_changed event when modifying register.
6989 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6990
7270d8f2
OF
69912004-04-26 Orjan Friberg <orjanf@axis.com>
6992
6993 From Paul Koning <pkoning@equallogic.com>:
6994 * breakpoint.c (free_valchain): New function.
6995 (insert_bp_location, delete_breakpoint): Use free_valchain.
6996 (remove_breakpoint): Do not remove the valchain.
6997 (bpstat_stop_status): If not stopped by watchpoint, skip
6998 watchpoints when generating stop status list.
6999 * infrun.c (handle_inferior_event): Make
7000 stepped_after_stopped_by_watchpoint a global variable.
7001 * remote.c (remote_stopped_data_address): Return watch data
7002 address rather than zero if stepped_after_stopped_by_watchpoint is
7003 set.
7004
02d62932
MC
70052004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7006
7007 Fix PR gdb/1626.
7008 * configure.in: Check for curses after termcap.
7009 On osf5.*, do not check for ncurses.
7010 * configure: Regenerate.
7011
3e9a183c
MK
70122004-04-25 Mark Kettenis <kettenis@gnu.org>
7013
c79ac407
MK
7014 * ppcobsd-nat.c: Include "ppc-tdep.h".
7015 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7016
3e9a183c
MK
7017 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7018 Fixes PR tdep/1623 and PR tdep/1624.
7019
38cc9c28
MC
70202004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7021
7022 * xmodem.h, xmodem.c: Remove files.
7023 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7024
7f07c5b6
RC
70252004-04-23 Randolph Chung <tausq@debian.org>
7026
7027 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7028 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7029 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7030 for handling stackless frames.
7031 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7032
9f7194c3
RC
70332004-04-23 Randolph Chung <tausq@debian.org>
7034
7035 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7036 starts at a pc before the frame is created.
7037
dcff6009
JB
70382004-04-23 Joel Brobecker <brobecker@gnat.com>
7039
7040 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7041
40711ff1 70422004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7043
7044 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7045 use convert_typed_floating to get the appropriate format.
7046
abc485a1
RC
70472004-04-22 Randolph Chung <tausq@debian.org>
7048
7049 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7050 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7051 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7052 (hppa_sign_extend): Add prototype.
7053 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7054 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7055 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7056 hppa targets will also use these functions.
7057 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7058 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7059 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7060 (hppa_gdbarch_init): Remove gdbarch setting of
7061 skip_trampoline_code, in_solib_call_trampoline and
7062 in_solib_return_trampoline.
7063 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7064 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7065 hppa_in_solib_call_trampoline.
7066 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7067 Moved from hppa-tdep.c.
7068 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7069 in_solib_call_trampoline and in_solib_return_trampoline.
7070
369aa520
RC
70712004-04-22 Randolph Chung <tausq@debian.org>
7072
7073 * hppa-tdep.c (hppa_debug): New variable.
7074 (find_unwind_entry, hppa_frame_cache): Add debug output.
7075 (_initialize_hppa_tdep): Add command to set debug flag.
7076
476be15e
AC
70772004-04-22 Andrew Cagney <cagney@redhat.com>
7078
7079 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7080 "trad-frame.h".
7081 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7082 signal trampoline unwinder.
7083 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7084
d195bc9f
MK
70852004-04-22 Mark Kettenis <kettenis@gnu.org>
7086
7087 Add OpenBSD/powerpc support.
7088 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7089 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7090 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7091 (ppc_collect_fpregset): New prototypes.
7092 * ppcobsd-nat.c: New file.
7093 * ppcobsd-tdep.c: New file.
7094 * ppcobsd-tdep.h: New file.
7095 * rs6000-tdep.c: Include "regset.h".
7096 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7097 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7098 New functions.
7099 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7100 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7101 (rs6000-tdep.o): Update dependencies.
7102 * configure.host: Add powerpc-*-openbsd.
7103 * configure.tgt: Add powerpc-*-openbsd.
7104 * config/powerpc/obsd.mh: New file.
7105 * config/powerpc/nm-obsd.h: New file.
7106 * config/powerpc/obsd.mt: New file.
7107
6f14cc33
AC
71082004-04-22 Andrew Cagney <cagney@redhat.com>
7109
fcf29e5f
AC
7110 * frame.h (show_frame_info): Delete declaration.
7111
6f14cc33
AC
7112 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7113 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7114 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7115 * frv-tdep.c (frv_frame_this_id): Ditto.
7116 * avr-tdep.c (avr_frame_this_id): Ditto.
7117
e5786a5c
EZ
71182004-04-22 Elena Zannoni <ezannoni@redhat.com>
7119
7120 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7121
26e75e5c
JB
71222004-04-22 Jim Blandy <jimb@redhat.com>
7123
7124 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7125 register number zero.
7126
d8d65dd3
MS
71272004-04-21 Michael Snyder <msnyder@redhat.com>
7128
7129 * mips-tdep.c (heuristic_proc_start):
7130 Warning() already prefixes "Warning: ".
7131
9a4105ab
AC
71322004-04-21 Andrew Cagney <cagney@redhat.com>
7133
7134 * annotate.h (deprecated_annotate_starting_hook)
7135 (deprecated_annotate_stopped_hook)
7136 (deprecated_annotate_exited_hook)
7137 (deprecated_annotate_signal_hook)
7138 (deprecated_annotate_signalled_hook): Deprecate.
7139 * tracepoint.h (deprecated_create_tracepoint_hook)
7140 (deprecated_delete_tracepoint_hook)
7141 (deprecated_modify_tracepoint_hook)
7142 (deprecated_trace_find_hook)
7143 (deprecated_trace_start_stop_hook): Deprecate.
7144 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7145 * remote.h (deprecated_target_resume_hook)
7146 (deprecated_target_wait_loop_hook): Deprecate.
7147 * gdbcore.h (deprecated_exec_file_display_hook)
7148 (deprecated_file_changed_hook): Deprecate.
7149 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7150 * defs.h (deprecated_modify_breakpoint_hook)
7151 (deprecated_command_loop_hook, deprecated_show_load_progress)
7152 (deprecated_print_frame_info_listing_hook)
7153 (deprecated_query_hook, deprecated_warning_hook)
7154 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7155 (deprecated_delete_breakpoint_hook)
7156 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7157 (deprecated_readline_begin_hook, deprecated_readline_hook)
7158 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7159 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7160 (deprecated_context_hook, deprecated_target_wait_hook)
7161 (deprecated_attach_hook, deprecated_detach_hook)
7162 (deprecated_call_command_hook, deprecated_set_hook)
7163 (deprecated_error_hook, deprecated_error_begin_hook)
7164 (deprecated_ui_load_progress_hook): Deprecate.
7165 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7166 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7167 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7168 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7169 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7170 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7171 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7172 * annotate.c, aix-thread.c: Update.
7173
62cf13cc
AC
71742004-04-21 Andrew Cagney <cagney@redhat.com>
7175
b2e31a62
AC
7176 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7177 * vaxnbsd-tdep.c: Include "gdb_string.h".
7178
62cf13cc
AC
7179 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7180 (add_symbol_file_from_memory_command): #if 0 function body, call
7181 error instead.
7182
00e32a35
AC
71832004-04-21 Andrew Cagney <cagney@redhat.com>
7184
7185 * gdbcore.h: Update copyright.
7186 (deprecated_add_core_fns): Rename add_core_fns.
7187 * win32-nat.c (_initialize_core_win32): Update.
7188 * sun3-nat.c (_initialize_core_sun3): Update.
7189 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7190 * rs6000-nat.c (_initialize_core_rs6000): Update.
7191 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7192 * nto-tdep.c (_initialize_nto_tdep): Update.
7193 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7194 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7195 * mips-nat.c (_initialize_core_mips): Update.
7196 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7197 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7198 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7199 * lynx-nat.c (_initialize_core_lynx): Update.
7200 * irix5-nat.c (_initialize_core_irix5): Update.
7201 * i386-interix-nat.c (_initialize_core_interix): Update.
7202 * cris-tdep.c (_initialize_cris_tdep): Update.
7203 * corelow.c (deprecated_add_core_fns): Update.
7204 * core-regset.c (_initialize_core_regset): Update.
7205 * core-aout.c (_initialize_core_aout): Update.
7206 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7207 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7208 * alpha-nat.c (_initialize_core_alpha): Update.
7209
13c7b1ca
JB
72102004-04-21 Jim Blandy <jimb@redhat.com>
7211
7212 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7213
7b5a2f43
DJ
72142004-04-19 Daniel Jacobowitz <drow@mvista.com>
7215
7216 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7217 Delete.
7218 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7219 (read_attribute_value): Update calls to dwarf_alloc_block.
7220 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7221 dwarf2_tmp_obstack.
7222 (psymtab_to_symtab_1): Likewise. Clean up using
7223 free_stack_comp_unit.
7224 (add_to_cu_func_list): Use the comp_unit_obstack.
7225
05cf31d1
JB
72262004-04-19 Joel Brobecker <brobecker@gnat.com>
7227
7228 * dwarf2read.c (dwarf2_flag_true_p): New function.
7229 (die_is_declaration): Use the function above. Add some comments.
7230
adf93a2f
MK
72312004-04-19 Mark Kettenis <kettenis@gnu.org>
7232
7233 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7234 architecture when registering sparcnbsd_core_osabi_sniffer.
7235 Adjust comment.
7236
748894bf
MK
72372004-04-18 Mark Kettenis <kettenis@gnu.org>
7238
f622ad42
MK
7239 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7240 return value.
7241
c4fc7f1b
MK
7242 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7243 * i386-tdep.c: Correct register numbering scheme comments
7244 throughout.
7245 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7246 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7247 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7248 (i386_gdb_arch_init): Likewise.
7249
b4ead1bd
MK
7250 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7251 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7252 ppcnbsd-tdep.o.
7253
748894bf
MK
7254 * m68k-tdep.h: Tweak comments.
7255 * m68k-tdep.c: Tweak comment.
7256
fdd72f95
RC
72572004-04-17 Randolph Chung <tausq@debian.org>
7258
7259 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7260 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7261 (hppa_hpux_som_init_abi): Set is_elf to 0.
7262 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7263 * hppa-tdep.c (low_text_segment_address): Remove global.
7264 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7265 section offset to calculate segment address.
7266 (internalize_unwinds): Define low_text_segment_address as local and
7267 pass to record_text_segment_lowaddr for ELF targets.
7268 (hppa_gdbarch_init): Zero fill tdep structure.
7269 (hppa_dump_tdep): Print tdep structure.
7270 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7271
0f8d9d59
RC
72722004-04-17 Randolph Chung <tausq@debian.org>
7273
7274 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7275 (hppa_gdbarch_init): Set pseudo_register_read.
7276 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7277 * regcache.c (supply_register): Remove check for
7278 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7279
7c46b9fb
RC
72802004-04-17 Randolph Chung <tausq@debian.org>
7281
7282 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7283 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7284 (hpread_adjust_stack_address): Move to hpread.c.
7285 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7286 obj_private_struct): Move from tm-hppa.h.
7287 * hpread.c (hppa-tdep.h): Include.
7288 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7289 (hpread_read_function_type, hpread_read_doc_function_type)
7290 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7291 directly.
7292 * pa64solib.c (hppa-tdep.h): Include.
7293 * somsolib.c (hppa-tdep.h): Include.
7294 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7295 inferior_status): Remove unused forward declarations.
7296 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7297 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7298 obj_private_struct): Move to hppa-tdep.h.
7299 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7300
8d153463
RC
73012004-04-17 Randolph Chung <tausq@debian.org>
7302
7303 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7304 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7305 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7306 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7307 Remove forward declaration and make static.
7308 (hppa_reg_struct_has_addr): Remove.
7309
350c2e5b
JB
73102004-04-16 Joel Brobecker <brobecker@gnat.com>
7311
7312 * observer.sh: Move comments in sed command to first column.
7313
bbde78fa
JM
73142004-04-16 Jason Molenda (jmolenda@apple.com)
7315
7316 * frame.c: Minor typeo corrections in comments.
7317
e0270fd9
JB
73182004-04-16 Joel Brobecker <brobecker@gnat.com>
7319
7320 * observer.c (observer_test_first_notification_function): Update
7321 function profile.
7322 (observer_test_second_notification_function): Likewise.
7323 (observer_test_third_notification_function): Likewise.
7324
3d049254
MK
73252004-04-16 Mark Kettenis <kettenis@gnu.org>
7326
7327 From Brian Ford <ford@vss.fsi.com>:
7328 * i386-tdep.c (i386_coff_init_abi): New function.
7329 * i386-tdep.h (i386_coff_init_abi): New prototype.
7330 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7331 register number translation functions for DWARF and DWARF 2.
7332
7867684d
JB
73332004-04-16 Joel Brobecker <brobecker@gnat.com>
7334
7335 * dwarf2read.c: Back out my previous change, it was incorrect.
7336
72bf9492
DJ
73372004-04-16 Daniel Jacobowitz <drow@mvista.com>
7338
7339 * dwarf2read.c: Include "hashtab.h".
7340 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7341 has_namespace_info.
7342 (struct partial_die_info): Add comments. Use bitfields to reduce
7343 memory footprint. Add scope, scope_set, has_specification,
7344 spec_offset, die_parent, die_child, and die_sibling.
7345 (peek_die_abbrev): Add prototype.
7346 (partial_read_comp_unit_head): New function, broken out from
7347 dwarf2_build_psymtabs_hard.
7348 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7349 Use partial_read_comp_unit_head. Initialize the CU and
7350 comp_unit_obstack. Update calls to read_partial_die and
7351 scan_partial_symbols. Use free_stack_comp_unit and
7352 load_partial_dies.
7353 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7354 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7355 Update calls to helper functions. Remove NAMESPACE argument.
7356 Update comments.
7357 (partial_die_parent_scope, partial_die_full_name): New functions.
7358 (add_partial_symbol): Remove namespace argument. Update call to
7359 pdi_needs_namespace. Use partial_die_full_name. Handle
7360 DW_TAG_namespace. Check has_namespace_info flag.
7361 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7362 tag. Handle namespaces.
7363 (add_partial_namespace, add_partial_enumeration): Simplify.
7364 (guess_structure_name): New function, derived from
7365 add_partial_structure.
7366 (add_partial_structure): Remove.
7367 (determine_class_name): Update comment.
7368 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7369 (is_type_tag_for_partial, load_partial_dies): New functions.
7370 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7371 Record specifications instead of following them immediately.
7372 (find_partial_die_in_comp_unit, find_partial_die)
7373 (fixup_partial_die, free_stack_comp_unit)
7374 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7375 (partial_die_hash, partial_die_eq): New functions.
7376 * Makefile.in (hashtab_h): Define.
7377 (dwarf2read.o): Update dependencies.
7378 (observer_inc, observer_h): Move to the correct section.
7379
fdc860a3
JB
73802004-04-15 Joel Brobecker <brobecker@gnat.com>
7381
7382 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7383 (die_is_declaration): Use the function above. Add comment.
7384
dc718098
JB
73852004-04-15 Joel Brobecker <brobecker@gnat.com>
7386
7387 * dwarf2read.c (read_structure_scope): Identify stub types
7388 using die_is_declaration() only.
7389
8718a420
RM
73902004-04-15 Roland McGrath <roland@redhat.com>
7391
7392 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7393 argument instead of NAME.
7394 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7395 in call to symbol_file_add_with_addrs_or_offsets.
7396 (build_addr_info): New function, helper for ...
7397 (symbol_file_add_from_memory): New function.
7398 (add_symbol_file_from_memory_command): New function using that.
7399 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7400 (pre_add_symbol_hook): Add const to argument type.
7401 * symfile.h (symbol_file_add_from_memory): Declare it.
7402
8b910bab
MK
74032004-04-15 Mark Kettenis <kettenis@gnu.org>
7404
9f076e7a
MK
7405 * NEWS (New native configurations): Mention OpenBSD/vax.
7406 * configure.host: Add vax-*-openbsd*.
7407 * config/vax/obsd.mh: New file.
7408 * config/vax/nm-obsd.h: New file.
7409
8b910bab
MK
7410 * vax-tdep.c: Include "regset.h".
7411 (vax_supply_gregset): New function.
7412 (vax_gregset): New variable.
7413 (vax_regset_from_core_section): New function.
7414 (vax_gdbarch_init): Set regset_from_core_section.
7415 * Makefile.in (vax-tdep.o): Update dependencies.
7416
7a464420
AC
74172004-04-15 Andrew Cagney <cagney@redhat.com>
7418
7419 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7420 (observer_normal_stop_notification_stub)
7421 (observer_attach_normal_stop, observer_detach_normal_stop):
7422 Delete, replaced by #include "observer.inc".
7423 * infrun.c (normal_stop): Pass "stop_bpstat" to
7424 observer_notify_normal_stop.
7425 * Makefile.in (observer_inc): Define.
7426 (observer.o): Update dependencies.
7427 (observer.h, observer.inc): New rules.
7428 * observer.h: Delete file.
7429 * observer.sh: New file.
7430
e36ad527
MK
74312004-04-15 Mark Kettenis <kettenis@gnu.org>
7432
7433 * vax-tdep.c (vax_frame_cache): Fix typo.
7434
67b441e1
MK
74352004-04-14 Mark Kettenis <kettenis@gnu.org>
7436
6f606e1c
MK
7437 * NEWS (New native configurations): Mention NetBSD/vax.
7438 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7439 * config/vax/nbsdelf.mh: New file.
7440 * config/vax/nbsdaout.mh: New file.
7441 * config/vax/nm-nbsd.h: New file.
7442 * config/vax/nm-nbsdaout.h: New file.
7443
9c5519a5
MK
7444 * vaxnbsd-tdep.c: New file.
7445 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7446 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7447 * config/vax/nbsd.mt: New file.
7448 * config/vax/tm-nbsd.h: New file.
7449
4844a614
MK
7450 * Makefile.in (vaxbsd-nat.o): New dependency.
7451
67b441e1
MK
7452 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7453 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7454 struct_addr arguments. Don't push return value address.
7455 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7456 arguments to vax_store_arguments. Store return value address in
7457 R1.
7458 (vax_store_struct_return, vax_extract_return_value)
7459 (vax_store_return_value): Remove functions.
7460 (vax_return_value): New function.
7461 (vax_gdbarch_init): Set return value. Don't set
7462 deprecated_store_struct_return, deprecated_extract_struct_return
7463 and deprecated_store_return_value.
7464
6672f2ae
AS
74652004-04-14 Andreas Schwab <schwab@suse.de>
7466
7467 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7468 value buffer.
7469 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7470
7346c184
MK
74712004-04-14 Mark Kettenis <kettenis@gnu.org>
7472
7473 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7474 (vax_unwind_dummy_id): New functions.
7475 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7476 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7477 variables.
7478 (vax_fix_call_dummy): Remove function.
7479 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7480 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7481 call_dummy_location, deprecated_call_dummy_words,
7482 deprecated_sizeof_call_dummy_words,
7483 deprecated_call_dummy_breakpoint_offset,
7484 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7485 and deprecated_dummy_write_sp.
7486
58e23df4
DC
74872004-04-13 David Carlton <carlton@kealia.com>
7488
7489 * MAINTAINERS: Move myself to "paper trail" section.
7490
5e6b39ff
MK
74912004-04-12 Mark Kettenis <kettenis@gnu.org>
7492
7def7fef
MK
7493 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7494 "trad-frame.h".
7495 (vax_frame_init_saved_regs): Remove function.
7496 (vax_sigtramp_saved_pc): Remove function.
7497 (vax_frame_saved_pc): Remove function.
7498 (vax_frame_args_address): Remove function.
7499 (vax_frame_num_args): Rewrite.
7500 (vax_frame_chain): Remove function.
7501 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7502 VAX_FP_REGNUM.
7503 (vax_pop_frame): Likewise.
7504 (vax_saved_pc_after_call): Remove function.
7505 (struct vax_frame_cache): New structure.
7506 (vax_frame_cache): New function.
7507 (vax_frame_this_id): New function.
7508 (vax_frame_prev_register): New function.
7509 (vax_frame_unwind): New variable.
7510 (vax_frame_sniffer): New function.
7511 (vax_frame_base_address): New function.
7512 (vax_frame_args_address): New function.
7513 (vax_frame_base): New variable.
7514 (vax_unwind_pc): New function.
7515 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7516 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7517 deprecated_frame_chain, deprecated_frame_saved_pc,
7518 deprecated_frame_args_address and
7519 deprecated_frame_init_saved_regs.
7520 * Makefile.in (vax-tdep.o): Update dependencies.
7521
53284fc1
MK
7522 * vaxbsd-nat.c: New file.
7523
5e6b39ff
MK
7524 * vax-tdep.h: Update copyright year. Adjust comments.
7525 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7526 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7527 (vax_regnum): New enum. Replacing...
7528 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7529 (VAX_PS_REGNUM): ... these removed macros.
7530 * vax-tdep.c (vax_register_name): Remove prototype.
7531 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7532 (vax_register_byte, vax_register_raw_size,
7533 vax_register_virtual_size, vax_register_virtual_type): Remove
7534 functions.
7535 (vax_register_type): New function.
7536 (vax_breakpoint_from_pc): Reorganize.
7537 (vax_gdbarch_init): Set register_type. Don't set
7538 deprecated_register_size, deprecated_register_bytes,
7539 deprecated_register_byte, deprecated_register_raw_size,
7540 deprecated_max_register_raw_size,
7541 deprecated_register_virtual_size,
7542 deprecated_max_register_virtual_size and
7543 deprecated_register_virtual_type. Add comment on stack direction.
7544
e9c71e9f
MK
75452004-04-11 Mark Kettenis <kettenis@gnu.org>
7546
7547 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7548 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7549 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7550
d46f1176 75512004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7552
d46f1176
RC
7553 * MAINTAINERS (write after approval): Add myself.
7554
a2a84a72
RC
75552004-04-07 Randolph Chung <tausq@debian.org>
7556
7557 * hppa-tdep.c (hppa_inner_than): Remove.
7558 (is_pa_2): Remove unused static variable.
8718a420 7559 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7560
e85c3284
PH
75612004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7562
7563 * language.h (language_defn): Add new la_post_parser field.
7564 * parser-defs.h (null_post_parser): New declaration (default for
7565 la_post_parser).
8718a420 7566
e85c3284
PH
7567 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7568 insert call to that function.
7569 (parse_exp_in_context): New function, including code formerly in
8718a420 7570 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7571 prefixification.
7572 (parse_expression_in_context): New exported function.
7573 (null_post_parser): New definition.
7574 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7575
e85c3284
PH
7576 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7577 * c-lang.c (c_language_defn): Ditto.
7578 (cplus_language_defn): Ditto.
7579 (asm_language_defn): Ditto.
7580 (minimal_language_defn): Ditto.
7581 * f-lang.c (f_language_defn): Ditto.
7582 * jv-lang.c (java_language_defn): Ditto.
7583 * language.c (unknown_language_defn): Ditto.
7584 (auto_language_defn): Ditto.
7585 (local_language_defn): Ditto.
7586 * m2-lang.c (m2_language_defn): Ditto.
7587 * scm-lang.c (scm_language_defn): Ditto.
7588 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7589
d9f8c85b
MK
75902004-04-10 Mark Kettenis <kettenis@gnu.org>
7591
fa34704a
MK
7592 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7593 (amd64nbsd_mcontext_addr): New function.
7594 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7595 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7596 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7597
403e1656
MK
7598 * corelow.c (core_xfer_partial): Fix coding standards violation.
7599 Add support for TARGET_OBJECT_WCOOKIE.
7600
a57e5a95
MK
7601 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7602 deprecated_pc_in_sigtramp.
7603 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7604 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7605 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7606 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7607 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7608 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7609 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7610
377d9ebd
MK
7611 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7612 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7613 Fix typo.
7614
f0ef85a5
MK
7615 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7616 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7617 (amd64_collect_fxsave): Likewise.
7618
d9f8c85b
MK
7619 * i386-sol2-tdep.c: Include "gdb_string.h".
7620 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7621 name.
7622 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7623
75f501b5
MK
76242004-04-10 Mark Kettenis <kettenis@gnu.org>
7625
7626 * i386-sol2-tdep.c: Include "solib-svr4.h".
7627 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7628 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7629 * config/i386/tm-i386sol2.h: Include :solib.h".
7630 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7631 solib-svr4.o and solib-legacy.o.
7632 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7633 solib-svr4.o.
7634
b31bc724
MK
76352004-04-09 Mark Kettenis <kettenis@gnu.org>
7636
18bbbd9e
MK
7637 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7638 whether a register is supplied by PTRACE_GETFPREGS.
7639 (store_inferior_registers): Likewise.
7640 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7641 whether a register is supplied by PT_GETFPREGS.
7642 (store_inferior_registers): Likewise.
7643
3c30bf1b
MK
7644 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7645 * config/i386/linux64.mt (TDEPFILES): Likewise.
7646
a4194092
MK
7647 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7648
911bc6ee
MK
7649 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7650 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7651 the program counter is in the range specified by `struct
7652 gdbarch_tdep'.
7653 * amd64-linux-tdep.c: Include "symtab.h".
7654 (amd64_linux_pc_in_sigtramp): Remove function.
7655 (amd64_linux_sigtramp_p): New function.
7656 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7657 deprecated_pc_in_sigtramp.
7658 * amd64nbsd-tdep.c: Include "symtab.h".
7659 (amd64nbsd_sigtramp_p): New function.
7660 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7661 deprecated_pc_in_sigtramp.
7662 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7663 few comments.
7664 (amd64obsd_pc_in_sigtramp): Remove function.
7665 (amd64obsd_sigtramp_p): New function.
7666 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7667 deprecated_pc_in_sigtramp.
7668 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7669 (i386bsd_pc_ins_sigtramp): Remove prototype.
7670 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7671 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7672 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7673 the program counter is in the range specified by `struct
7674 gdbarch_tdep'.
7675 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7676 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7677 (i386_go32_pc_in_sigtramp): Remove function.
7678 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7679 Initialize TDEP->sigtramp_p.
7680 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7681 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7682 deprecated_pc_in_sigtramp.
7683 * i386-linux-tdep.c: Adjust comments.
7684 (i386_linux_pc_in_sigtramp): Remove function.
7685 (i386_linux_sigtramp_p): New function.
7686 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7687 deprecated_pc_in_sigtramp.
7688 * i386-nto-tdep.c: Update copyright year.
7689 (i386nto_pc_in_sigtramp): Remove function.
7690 (i386nto_sigtramp_p): New function.
7691 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7692 SP_REGNUM.
7693 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7694 deprecated_pc_in_sigtramp.
7695 * i386-sol2-tdep.c: Update copyright year.
7696 (i386_sol2_pc_in_sigtramp): Remove function.
7697 (i386_sol2_sigtramp_p): New function.
7698 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7699 deprecated_pc_in_sigtramp.
7700 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7701 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7702 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7703 deprecated_sigtramp_start and deprecated_sigtramp_end.
7704 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7705 (i386nbsd_pc_in_sigtramp): Remove function.
7706 (i386nbsd_sigtramp_p): New function.
7707 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7708 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7709 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7710 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7711 (i386obsd_pc_in_sigtramp): Remove function.
7712 (i386obsd_sigtramp_p): New function.
7713 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7714 functions.
7715 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7716 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7717 TDEP->sigtramp_p.
7718 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7719 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7720 dependencies.
7721
e083e6ec
MK
7722 * config/i386/i386aout.mt: Remove file.
7723
bd153b94
MK
7724 * configure.tgt: Remove i[34567]86-*-go32*,
7725 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7726 and i[34567]86-*-isc*. Set gdb_target to i386 for
7727 i[34567]86-*-netware* and i[34567]86-*-*.
7728 * config/i386/i386.mt: New file.
7729 * config/i386/embed.mt: Remove file.
7730 * config/i386/go32.mt: Remove file.
7731 * config/i386/i386nw.mt: Remove file.
7732 * config/i386/i386v.mt: Remove file.
7733 * config/i386/tm-go32.h: Remove file.
7734
4a1bcc8c
MK
7735 * tui/tui-hooks.c: Include "readline/readline.h" after
7736 "gdb_curses.h" instead of before.
7737 * tui/tui-io.c: Likewise.
7738
f9a79064
MK
7739 * tui/tui.c: Fix typo in comment.
7740
b31bc724
MK
7741 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7742
f83f82bc
AC
77432004-04-08 Andrew Cagney <cagney@redhat.com>
7744
7745 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7746 (deprecated_exception_support_initialized): Declare.
8718a420 7747 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7748 (initialize_hp_cxx_exception_support)
7749 (child_enable_exception_callback): Update.
7750 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7751 (deprecated_exception_support_initialized): Rename
7752 deprecated_exception_catchpoints_are_fragile and
7753 deprecated_exception_support_initialized.
7754 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7755
7756 * symtab.c (deprecated_hp_som_som_object_present): Rename
7757 hp_som_som_object_present.
7758 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7759 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7760 Update. Delete extern declaration.
7761 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7762 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7763 (parse_nested_classes_for_hpacc): Ditto.
7764 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7765 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7766 (initialize_hp_cxx_exception_support): Ditto.
7767 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7768 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7769 (cp_print_class_method): Ditto.
8718a420 7770 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7771 (c_type_print_base): Ditto.
7772 * c-exp.y (hp_som_som_object_present): Ditto.
7773
fb2be677
AC
77742004-04-08 Andrew Cagney <cagney@redhat.com>
7775
7776 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7777 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7778 (frame_unwind_find_by_frame): Re-implement the unwind code so
7779 that it can both prepend and append sniffers. Replace
7780 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7781 * tramp-frame.c (tramp_frame_append): Use
7782 frame_unwind_prepend_unwinder.
7783 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7784 frame_unwind_register_unwinder.
7785 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7786 tramp_frame_append.
7787 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7788 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7789 (mips_linux_init_abi): Update.
7790
67faf007
KB
77912004-04-08 Kevin Buettner <kevinb@redhat.com>
7792
7793 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7794 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7795 file support.
7796
8973ff21
KB
77972004-04-07 Kevin Buettner <kevinb@redhat.com>
7798
7799 * ia64-tdep.c (elf.h): Don't include.
7800 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7801
4a0e2f88
JM
78022004-04-07 Jason Molenda (jmolenda@apple.com)
7803
7804 * frame.h: Typeo corrections in comments.
7805
9872ad24
JB
78062004-04-07 Jim Blandy <jimb@redhat.com>
7807
7808 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7809 %esp and %ebp
7810
70b216c8
MK
78112004-04-07 Mark Kettenis <kettenis@gnu.org>
7812
11d5789c
MK
7813 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7814 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7815 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7816 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7817 and solib-legacy.o.
7818 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7819 solib-svr4.o.
7820 * config/sparc/tm-sol2.h: Update copyright year. Include
7821 "solib.h".
7822
70b216c8
MK
7823 * sparc-sol2-tdep.c: Update copyright year. Include
7824 "solib-svr4.h".
7825 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7826 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7827 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7828 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7829 dependencies.
7830
6339dc9e
AC
78312004-04-06 Andrew Cagney <cagney@redhat.com>
7832
7833 * infttrace.c: Include "infttrace.h".
7834 * infttrace.h: Include "target.h".
7835 * Makefile.in (infttrace_h): Update.
7836 (infttrace.o): Update.
8718a420 7837
93449403
AC
78382004-04-06 Andrew Cagney <cagney@redhat.com>
7839
6d518969
AC
7840 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7841 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7842 move extern declarations from here ...
7843 * infttrace.h: ... to here.
7844 * Makefile.in (hppah-nat.o): Update dependencies.
7845
85f4f2d8
AC
7846 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7847 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7848 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7849 (hppa_breakpoint_from_pc): Delete.
7850
93449403
AC
7851 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7852
71456ec6
AC
78532004-04-05 Andrew Cagney <cagney@redhat.com>
7854
7855 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7856 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7857 <sys/file.h>.
8718a420 7858
4c02c60c
AC
78592004-04-06 Randolph Chung <tausq@debian.org>
7860
7861 Committed by Andrew Cagney (mechanical change).
7862 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7863 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7864 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7865 child_enable_exception_callback, current_ex_event,
7866 null_symtab_and_line, child_get_current_exception_event,
7867 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7868 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7869 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7870 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7871 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7872 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7873 Move hpux-specific definitions ...
7874 * hppa-hpux-tdep.c: ... to here.
7875
3a515653
AC
78762004-04-05 Andrew Cagney <cagney@redhat.com>
7877
7878 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7879 skip_prologue_using_sal.
7880
c1730d02
AC
78812004-04-05 Andrew Cagney <cagney@redhat.com>
7882
7883 * config/i386/tm-i386.h: Delete file.
7884 * config/i386/tm-vxworks.h: Update copyright, do not include
7885 "tm-i386.h".
7886 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7887 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7888 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7889 * config/i386/ncr3000.mt (TM_FILE): Delete.
7890 * config/i386/interix.mt (TM_FILE): Delete.
7891 * config/i386/i386v.mt (TM_FILE): Delete.
7892 * config/i386/i386nw.mt (TM_FILE): Delete.
7893 * config/i386/i386gnu.mt (TM_FILE): Delete.
7894 * config/i386/i386aout.mt (TM_FILE): Delete.
7895 * config/i386/embed.mt (TM_FILE): Delete.
7896
8b67aa36
KB
78972004-04-05 Kevin Buettner <kevinb@redhat.com>
7898
7899 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7900 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7901 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7902 (accg7_regnum): New constants.
7903 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7904 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7905 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7906 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7907 for accg registers.
7908 (frv_register_sim_regno): Update spr_map[].
7909
3c7012f5
AC
79102004-04-04 Andrew Cagney <cagney@redhat.com>
7911
7912 * config/mips/xm-riscos.h: Delete.
7913 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7914 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7915 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7916 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7917 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7918 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7919 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7920 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7921 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7922 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7923 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7924 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7925 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7926 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7927 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7928 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7929 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7930 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7931 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7932 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7933 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7934 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7935 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7936 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7937 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7938 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7939
3c7012f5
AC
7940 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7941 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7942 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7943 * configure.host: Remove m680[01]0-sun-sunos3*,
7944 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7945 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7946 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7947 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7948 mips-*-riscos*.
7949 * NEWS: Mention removed systems.
7950
99d16a21
AC
79512004-04-04 Andrew Cagney <cagney@redhat.com>
7952
7953 GDB 6.1 release created from 6.1 branch.
7954
6cdf9d98
AC
79552004-04-04 Andrew Cagney <cagney@redhat.com>
7956
98d346c3
AC
7957 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7958 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7959 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7960
6cdf9d98
AC
7961 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7962 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7963 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7964
859a326d
JB
79652004-04-03 Jim Blandy <jimb@redhat.com>
7966
7967 * MAINTAINERS: Chris Faylor has changed employers; add him to
7968 "paper trail" section, and update his E-mail address.
7969
b87178c3
AC
79702004-04-03 Andrew Cagney <cagney@redhat.com>
7971
4ea2acf0
AC
7972 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7973 generic dummy frames.
7974 * dummy-frame.c: Update copyright.
7975 (dummy_frame_sniffer): Delete check for generic dummy frames.
7976
d0bd2d18 7977 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7978 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7979 (REG_PARM_STACK_SPACE): Delete.
7980 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7981 Inline reference to REG_PARM_STACK_SPACE.
7982
b87178c3
AC
7983 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7984 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7985 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7986 (FRAME_BASE_BEFORE_SIGTRAMP)
7987 (hppa32_hpux_frame_base_before_sigtramp)
7988 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7989 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7990 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7991 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7992 (FRAME_BASE_BEFORE_SIGTRAMP)
7993 (hppa64_hpux_frame_base_before_sigtramp)
7994 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7995
43e2e1a0
AC
79962004-04-03 Andrew Cagney <cagney@redhat.com>
7997
7998 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7999
ddc135a4
AC
80002004-04-02 Andrew Cagney <cagney@redhat.com>
8001
8002 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8003 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8004 * dummy-frame.h: Delete out-of-date comments.
8005 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8006 * gdbarch.h, gdbarch.c: Re-generate.
8007
d15bfd3a 80082004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8009
d15bfd3a
AC
8010 Committed by Andrew Cagney <cagney@redhat.com>.
8011 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8012 into account an instruction saving a register if we have already
8013 seen an earlier instruction saving that same register.
8014
f04ceafa
AC
80152004-04-02 Andrew Cagney <cagney@redhat.com>
8016
08be3abd
AC
8017 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8018 * gdbarch.h, gdbarch.c: Re-generate.
8019 * frame.c (legacy_get_prev_frame): Delete references to
8020 DEPRECATED_INIT_FRAME_PC_FIRST.
8021
f04ceafa
AC
8022 * infrun.c (pc_in_sigtramp): Delete function.
8023 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8024 get_frame_type.
8025
08e69816
AC
80262004-04-02 Andrew Cagney <cagney@redhat.com>
8027
8028 * infrun.c (handle_step_into_function): Delete code conditional on
8029 legacy_frame_p.
8030 (handle_inferior_event, step_over_function): Ditto.
8031
adb54772
AC
80322004-04-02 Andrew Cagney <cagney@redhat.com>
8033
8034 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8035 "previous frame inner to this frame" test.
8036
304396fb
AC
80372004-04-02 Andrew Cagney <cagney@redhat.com>
8038
8039 * frame.c (safe_frame_unwind_memory): New function.
8040 * frame.h (safe_frame_unwind_memory): Declare. Update description
8041 of /safe_/ methods.
8042 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8043 "next_frame". Use safe_frame_unwind_memory.
8044 (tramp_frame_sniffer): Update call to tramp_frame_start.
8045
6502dd73
DJ
80462004-04-01 Daniel Jacobowitz <drow@mvista.com>
8047
8048 * dwarf2read.c (dwarf2_objfile_data_key): New.
8049 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8050 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8051 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8052 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8053 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8054 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8055 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8056 Remove variables.
8057 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8058 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8059 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8060 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8061 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8062 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8063 Remove macros.
8064 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8065 data.
8066 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8067 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8068 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8069 (read_partial_die, read_full_die, read_indirect_string)
8070 (dwarf_decode_line_header, dwarf_decode_macros)
8071 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8072 Update uses of removed variables.
8073 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8074 of removed macros.
8075 (_initialize_dwarf2_read): New function.
8076 * symfile.h (dwarf2_has_info): Update prototype.
8077 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8078 * elfread.c (elf_symfile_read): Likewise.
8079
408752b0
JB
80802004-04-01 Jim Blandy <jimb@redhat.com>
8081
9f744501
JB
8082 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8083 function for register numbers on all the rs6000-derived targets.
8084 (rs6000_gdbarch_init): Don't register a separate
8085 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8086 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8087 variants.
8088
408752b0
JB
8089 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8090 numbering.
8091
2de41bce
PH
80922004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8093
8094 * valarith.c: Update copyright notice.
8095 (value_add): Handle range types.
8096 (value_sub): Ditto.
8097 (value_equal): Ditto.
8098 (value_less): Ditto.
8099 (value_neg): Ditto.
8100 (value_complement): Ditto.
8718a420 8101 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8102 eliminiating unnecessary COERCE_ENUMs.
8718a420 8103
5613d8d3
AC
81042004-03-31 Andrew Cagney <cagney@redhat.com>
8105
8106 * frame.h (frame_unwind_id): Declare.
8107 * frame.c (frame_unwind_id): New function.
8108 (get_prev_frame_1): New function.
8109 (frame_debug_got_null_frame): New function.
8110 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8111 code proper to prev_frame, update description.
8112 * infrun.c (step_over_function): Use frame_unwind_id.
8113
c4557624
JB
81142004-04-31 J. Brobecker <brobecker@gnat.com>
8115
8116 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8117 (hppa64_push_dummy_call): Likewise.
8118
3e6bb910
JB
81192004-03-30 Jim Blandy <jimb@redhat.com>
8120
8121 From Ulrich Weigand:
8122 * utils.c (query): Do not use a va_list variable multiple times.
8123
a2f23071
DJ
81242004-03-29 Daniel Jacobowitz <drow@mvista.com>
8125
8126 * Makefile.in (linux_nat_h): Update dependencies.
8127 * configure.in: Check for <gnu/libc-version.h>.
8128 * configure: Regenerate.
8129 * config.in: Regenerate.
8130 * linux-nat.h: Include "target.h". Add waitstatus field to
8131 struct lwp_info.
8132 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8133 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8134 to.
8135 (lin_lwp_handle_extended): New function. Handle clone events.
8136 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8137 thread exit events.
8138 (child_wait): Handle clone events.
8139 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8140 * linux-nat.c (linux_enable_event_reporting): Turn on
8141 PTRACE_O_TRACECLONE.
8142 (linux_handle_extended_wait): Handle clone events.
8143 * thread-db.c: Include <gnu/libc-version.h>.
8144 (struct private_thread_info): Add dying flag.
8145 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8146 higher.
8147 (attach_thread): Update comments. Handle dying threads.
8148 (detach_thread): Set the dying flag.
8149 (check_event): Always call attach_thread.
8150
8d5f9dcb
DJ
81512004-03-29 Daniel Jacobowitz <drow@mvista.com>
8152
8153 * mips-tdep.c (mips_pdr_data): New.
8154 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8155 (_initialize_mips_tdep): Initialize mips_pdr_data.
8156
66337bb1
CV
81572004-03-29 Corinna Vinschen <vinschen@redhat.com>
8158
8159 * minsyms.c (install_minimal_symbols): Move dropping leading
8160 char from linkage name from here...
8161 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8162 test for "__gnu_compiled*" symbols.
8163
e802b915
JB
81642004-03-28 Jim Blandy <jimb@redhat.com>
8165
8166 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8167 registers to temp register r0 and byte stores as prologue
8168 instructions.
8169
72b56458
AC
81702004-03-28 Andrew Cagney <cagney@redhat.com>
8171
8172 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8173 arm*-*-*.
8174
0bfbda3b
SC
81752004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8176
8177 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8178 and switch the layout to force a display of register window.
8179
5a7225ed
JB
81802004-02-26 J. Brobecker <brobecker@gnat.com>
8181
8182 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8183 of the INTEGER class.
8184
81a07a45
JB
81852004-03-26 Jim Blandy <jimb@redhat.com>
8186
8187 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8188 bytes long on PPC GNU/Linux.
8189
8c691c7a
DC
81902004-03-26 David Carlton <carlton@kealia.com>
8191
8192 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8193
103a0089
AC
81942004-03-25 Andrew Cagney <cagney@redhat.com>
8195
8196 * PROBLEMS: Add general section titles, remove references to
8197 specific releases.
8198
7a5ea0d4
DJ
81992004-03-25 Daniel Jacobowitz <drow@mvista.com>
8200
8201 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8202 INT_REGISTER_SIZE.
8203 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8204 FP_REGISTER_VIRTUAL_SIZE.
8205 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8206 of DEPRECATED_REGISTER_RAW_SIZE.
8207 (arm_register_type): Add gdbarch argument.
8208 (arm_register_raw_size, arm_register_virtual_size): Delete.
8209 (arm_register_byte, arm_extract_return_value)
8210 (arm_store_return_value, arm_get_longjmp_target): Update references
8211 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8212 (arm_gdbarch_init): Likewise. Don't set
8213 deprecated_register_raw_size, deprecated_register_virtual_size,
8214 deprecated_max_register_raw_size,
8215 deprecated_max_register_virtual_size, or
8216 deprecated_max_register_virtual_type. Do set register_type.
8217 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8218 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8219 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8220 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8221 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8222 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8223 INT_REGISTER_SIZE.
8224 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8225 (remote_rdp_store_register): Likewise.
8226
5792a79b
DJ
82272004-03-24 Daniel Jacobowitz <drow@mvista.com>
8228
8229 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8230 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8231 to after osabi initialization.
8232 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8233 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8234 functions.
8235 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8236 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8237 variables.
8238 (mips_linux_init_abi): Append signal trampoline unwinders.
8239
1196bfda
AC
82402004-03-24 Andrew Cagney <cagney@redhat.com>
8241
8242 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8243 * tramp-frame.c: Include "gdb_assert.h".
8244 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8245 correct sizeof.
8246 (tramp_frame_append): Validate the tramp frame's instructions.
8247 * Makefile.in (tramp-frame.o): Update dependencies.
8248
4be282b4
AC
82492004-03-23 Andrew Cagney <cagney@redhat.com>
8250
8251 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8252
69aec09b
AC
82532004-03-23 Andrew Cagney <cagney@redhat.com>
8254
8255 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8256 Nasser as past testsuite/lib/ (and other) maintainers.
8257
63ed89b4
DJ
82582004-03-23 Daniel Jacobowitz <drow@mvista.com>
8259
8260 * infcmd.c (attach_command): Reread symbols if we already have
8261 an exec file.
8262
f3b36427
AC
82632004-03-23 Andrew Cagney <cagney@redhat.com>
8264
8265 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8266
aa2a3f87
AC
82672004-03-23 Andrew Cagney <cagney@redhat.com>
8268
8269 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8270 * gdbarch.h, gdbarch.c: Re-generate.
8271 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8272 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8273 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8274 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8275 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8276 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8277 (DEPRECATED_SIGTRAMP_START): Update.
8278 * blockframe.c (find_pc_sect_partial_function): Update.
8279 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8280
00cac895
DJ
82812004-03-23 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8284 if necessary.
8285
f561f026
AC
82862004-03-23 Andrew Cagney <cagney@redhat.com>
8287
8288 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8289 predicate, deprecate.
8290 * gdbarch.h, gdbarch.c: Re-generate.
8291 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8292 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8293 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8294 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8295 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8296 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8297 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8298 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8299 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8300 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8301 * blockframe.c (find_pc_partial_function): Update.
8302 * breakpoint.c (bpstat_what): Update.
8303 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8304 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8305 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8306 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8307 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8308 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8309 * i386-nto-tdep.c (i386nto_init_abi): Update.
8310 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8311 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8312 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8313 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8314 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8315 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8316 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8317 * infrun.c (pc_in_sigtramp): Update.
8318 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8319 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8320 * mips-tdep.c (mips_gdbarch_init): Update.
8321 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8322 * ppc-linux-tdep.c: Update comment.
8323 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8324 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8325 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8326 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8327 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8328 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8329 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8330 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8331 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8332 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8333
8050c72f
AC
83342004-03-23 Andrew Cagney <cagney@redhat.com>
8335
d2259dd3
AC
8336 * tramp-frame.h, tramp-frame.h: New files.
8337 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8338 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8339
8050c72f
AC
8340 * Makefile.in: Update all dependencies.
8341
0db9b4b7
AC
83422004-03-23 Andrew Cagney <cagney@redhat.com>
8343
8344 * Makefile.in (trad_frame_h): Add $(frame_h).
8345 * trad-frame.h: Update copyright. Include "frame.h".
8346 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8347 (trad_frame_set_id, trad_frame_get_id): Declare.
8348 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8349 * trad-frame.c: Update copyright.
8350 (struct trad_frame_cache): Define.
8351 (trad_frame_cache_zalloc): New function.
8352 (trad_frame_set_id, trad_frame_get_id): New functions.
8353 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8354
8e645ae7
AC
83552004-03-22 Andrew Cagney <cagney@redhat.com>
8356
8357 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8358 s390_pltstub_unwind_cache.
8359 (s390_stub_frame_unwind_cache): Rename
8360 s390_pltstub_frame_unwind_cache.
8361 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8362 (s390_stub_frame_prev_register): Rename
8363 s390_pltstub_frame_prev_register.
8364 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8365 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8366
8367 From Ulrich Weigand:
8368 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8369 pointer calls like PLT calls.
8370
34fcf120
DJ
83712004-03-22 Daniel Jacobowitz <drow@mvista.com>
8372
8373 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8374 PC rather than the partial function start address. Use the start
8375 address to sanity check the found PDR.
8376
5b917078
DJ
83772004-03-22 Daniel Jacobowitz <drow@mvista.com>
8378
8379 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8380 linux_handle_extended_wait.
8381
8adf9e78
AC
83822004-03-22 Andrew Cagney <cagney@redhat.com>
8383
c3122434
AC
8384 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8385 function.
8386
8adf9e78
AC
8387 * frame.h (generic_pop_current_frame): Delete declaration.
8388 (deprecate_pop_dummy_frame): Deprecate
8389 generic_pop_dummy_frame.
8390 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8391 (generic_pop_current_frame): Delete function.
8392 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8393 generic_pop_current_frame.
8394 * v850-tdep.c (v850_pop_frame): Update.
8395 * mcore-tdep.c (mcore_pop_frame): Update.
8396 * sh64-tdep.c (sh64_pop_frame): Update.
8397 * h8300-tdep.c (h8300_pop_frame): Update.
8398
90ba813f
AC
83992004-03-22 Andrew Cagney <cagney@redhat.com>
8400
8401 * frame.h (deprecated_pc_in_call_dummy): Rename
8402 generic_pc_in_call_dummy.
8403 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8404 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8405 generic_pc_in_call_dummy.
8406 (pc_in_dummy_frame): Make static.
8407 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8408 * gdbarch.h, gdbarch.c: Re-generate.
8409 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8410 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8411 (legacy_get_prev_frame): Ditto.
8412 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8413 comment.
8718a420 8414
ca4bb888
AC
84152004-03-21 Andrew Cagney <cagney@redhat.com>
8416
244675f9
AC
8417 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8418 declaration and out-of-date comment.
8419 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8420 Delete function.
8421 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8422 deprecated_pc_in_call_dummy.
8423
ca4bb888
AC
8424 * infrun.c (handle_inferior_event): For non legacy frames, use the
8425 frame ID and frame type to identify a signal trampoline. Update
8426 comments.
8427
1777c7b4
NW
84282004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8429
8430 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8431 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8432
82417da5
AC
84332004-03-21 Andrew Cagney <cagney@redhat.com>
8434
8435 * frame-unwind.h: Update copyright.
8436 (struct frame_data): Add opaque declaration.
8437 (frame_sniffer_ftype): Declare.
8438 (struct frame_unwind): Add "unwind_data" and "sniffer".
8439 (frame_unwind_register_unwinder): Declare.
8440 (frame_unwind_find_by_frame): Add parameter "this_cache".
8441 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8442 (legacy_get_prev_frame, legacy_get_prev_frame)
8443 (get_frame_type): Pass the prologue_cache to
8444 frame_unwind_find_by_frame.
8445 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8446 "unwinder".
8447 (frame_unwind_register_unwinder): New function.
8448 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8449
b2ba182e
PH
84502004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8451
8452 * bcache.c (print_percentage): Use floating point to avoid
8453 incorrect results when portion*100 overflows.
8454
81332287
KB
84552004-03-19 Kevin Buettner <kevinb@redhat.com>
8456
8457 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8458 (ppc_linux_init_extra_frame_info)
8459 (ppc_linux_frameless_function_invocation)
8460 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8461 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8462 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8463 (rs6000_frame_chain): Delete declarations.
8464 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8465 (ppc_linux_init_extra_frame_info)
8466 (ppc_linux_frameless_function_invocation)
8467 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8468 (ppc_linux_init_abi): Remove registration of above deleted functions.
8469 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8470 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8471 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8472 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8473 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8474 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8475 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8476 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8477 frame management for all OSABIs.
8478
61a65099
KB
84792004-03-19 Andrew Cagney <cagney@redhat.com>
8480
8481 Committed by Kevin Buettner <kevinb@redhat.com>.
8482
8483 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8484 Update copyright.
8485 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8486 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8487 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8488 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8489 unwinders. #ifdef legacy frame code.
8490 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8491 "frame-base.h".
8492 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8493 (struct rs6000_frame_cache, rs6000_frame_cache)
8494 (rs6000_frame_this_id, rs6000_frame_prev_register)
8495 (rs6000_frame_sniffer, rs6000_frame_unwind)
8496 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8497 (rs6000_frame_base): Implement a traditional frame unwinder.
8498 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8499 frame unwinder.
8500
88f7da05
KB
85012004-03-19 Kevin Buettner <kevinb@redhat.com>
8502
8503 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8504 breakpoint address for watchpoints or the catch eventpoints.
8505 Add new paramter ``bptype''. Adjust all callers.
8506
f826dce1
AC
85072004-03-19 Andrew Cagney <cagney@redhat.com>
8508
33cb8b0f
AC
8509 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8510
f826dce1
AC
8511 * PROBLEMS: Delete note that ARM does not use frame code, problem
8512 fixed.
8513
43b1ab88
AC
85142004-03-18 Andrew Cagney <cagney@redhat.com>
8515
292ab034
AC
8516 * stack.c (return_command): Delete code wrapped in #ifdef
8517 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8518
43b1ab88
AC
8519 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8520
dbfe4626
AC
85212004-03-18 Andrew Cagney <cagney@redhat.com>
8522
8523 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8524 DEPRECATED_IN_SIGTRAMP.
8525 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8526 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8527 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8528 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8529 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8530 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8531 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8532 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8533 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8534 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8535
0cad6aec
AC
85362004-03-18 Andrew Cagney <cagney@redhat.com>
8537
8538 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8539 (struct frame_base_table_entry): Define.
8540 (struct frame_base_table): Re-implement as a linked list.
8541 (frame_base_init): Re-implement.
8542 (frame_base_table): Delete function.
8543 (append_predicate): Delete function.
8544 (frame_base_append_sniffer): Update.
8545 (frame_base_set_default): Update.
8546 (frame_base_find_by_frame): Update.
8547 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8548 * Makefile.in (frame-base.o): Update dependencies.
8549
9982c2e7
AC
85502004-03-17 Andrew Cagney <cagney@redhat.com>
8551
8552 * frame.c (legacy_get_prev_frame): Pass correct frame to
8553 frame_unwind_find_by_frame.
8554
8dfe8985
DC
85552004-03-17 David Carlton <carlton@kealia.com>
8556
8557 * NEWS: Mention C++ nested types and namespaces
8558
ed47347a
MC
85592004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8560
8561 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8562 and "Regressions since gdb 5.3.". Add known regressions since
8563 gdb 6.0.
8564
90aeadfc
DC
85652004-03-16 David Carlton <carlton@kealia.com>
8566
8567 * dwarf2read.c (process_structure_scope): Process children even
8568 when we're a declaration.
8569
73912b9b
AC
85702004-03-16 Andrew Cagney <cagney@redhat.com>
8571
8572 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8573 * blockframe.c (find_pc_partial_function)
8574 (find_pc_sect_partial_function): Merge into a single
8575 find_pc_partial_function.
8576
283accbc
MK
85772004-03-16 Mark Kettenis <kettenis@gnu.org>
8578
8579 * i386bsd-nat.c: s/regno/regnum/g.
8580 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8581 FP0_REGNUM.
8582 (store_inferior_registers): Likewise.
8583
f5b1afdf
MK
85842004-03-16 Mark Kettenis <kettenis@gnu.org>
8585
8586 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8587 of i387_fill_fsave.
8588 (store_inferior_registers): Call i387_collect_fsave and
8589 i387_collect_fxsave instead of i387_fill_fsave and
8590 i387_fill_fxsave.
8591
41fe5eb3
AC
85922004-03-15 Andrew Cagney <cagney@redhat.com>
8593
8594 * Makefile.in (frame-unwind.o): Update dependencies.
8595 * frame-unwind.c: Include "gdb_obstack.h".
8596 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8597 parameter.
8598 (append_predicate): Delete function.
8599 (struct frame_unwind_table_entry): New structure.
8600 (struct frame_unwind_table): Replace "sniffer" with "head" and
8601 "tail".
8602 (frame_unwind_append_sniffer): Update.
8603 (frame_unwind_find_by_frame): Update.
8604 (_initialize_frame_unwind): Registe frame_unwind_init using
8605 gdbarch_data_register_pre_init.
8606
3f63813d
MK
86072004-03-15 Mark Kettenis <kettenis@gnu.org>
8608
8609 * i386bsd-nat.c: Update copyright year.
8610 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8611 define unconditionally.
8612
3248c325 86132004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8614
8615 * i387-tdep.h (i387_collect_fsave): New prototype.
8616 * i387-tdep.c (i387_collect_fsave): New function containing most
8617 of the code from i387_fill_fsave.
3248c325 8618 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8619
871fbe6a
MK
86202004-03-15 Mark Kettenis <kettenis@gnu.org>
8621
8622 * i386-linux-tdep.c: Update copyright year.
8623 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8624 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8625 svr4_ilp32_link_map_offsets instead of
8626 i386_linux_svr4_fetch_link_map_offsets.
8627
8176b9b8
DC
86282004-03-15 David Carlton <carlton@kealia.com>
8629
8630 Fix for PR c++/1553:
8631 * dwarf2read.c (read_structure_type): Determine type name by
8632 calling determine_class_name.
8633 (determine_class_name): New.
8634 (determine_prefix): Look at TYPE_TAG_NAME and call
8635 determine_class_name when appropriate.
8636 (determine_prefix_aux, class_name): Delete.
9d58e29d 8637 (read_namespace): Set die->type.
8176b9b8 8638
fe8bf7d7
KB
86392004-03-15 Kevin Buettner <kevinb@redhat.com>
8640
8641 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8642 unused macro definition. The definition in target.h (or perhaps
8643 elsewhere) takes precedence.
8644
ed6edd9b
AC
86452004-03-15 Andrew Cagney <cagney@redhat.com>
8646
f9be684a
AC
8647 * ppc-tdep.h: Update copyright.
8648 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8649 function signatures to match "regsets.h".
8650 * ppc-linux-tdep.c: Include "regset.h".
8651 (ELF_GREGSET_SIZE): Delete.
8652 (right_supply_register): New function.
8653 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8654 using right_supply_register.
8655 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8656 functions.
8657 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8658 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8659 (_initialize_ppc_linux_tdep): Do not register
8660 ppc_linux_regset_core_fns.
8661 (ppc_linux_regset_from_core_section): Replace
8662 fetch_core_registers.
8663 (ppc_linux_regset_core_fns): Delete.
8664 * ppc-linux-nat.c: (right_fill_reg): New function.
8665 (supply_gregset): Update call to ppc_linux_supply_gregset.
8666 (fill_gregset): Clear the register set, use right_fill_reg.
8667 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8668 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8669
ed6edd9b
AC
8670 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8671 unsigned.
8672
030f20e1
AC
86732004-03-15 Andrew Cagney <cagney@redhat.com>
8674
8675 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8676 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8677 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8678 and register_gdbarch_data.
8679 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8680 (struct gdbarch_data): Replace "init" by "pre_init" and
8681 "post_init".
8682 * gdbarch.h, gdbarch.c: Re-generate.
8683 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8684 with"obstack", use OBSTACK_ZALLOC.
8685 (dwarf2_frame_ops): Delete.
8686 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8687 (dwarf2_frame_init_reg): Use gdbarch_data.
8688 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8689 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8690 (_initialize_svr4_solib): Update.
8691 * user-regs.c (_initialize_user_regs): Update.
8692 * reggroups.c (_initialize_reggroup): Update.
8693 * regcache.c (_initialize_regcache): Update.
8694 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8695 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8696 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8697 * frame-unwind.c (_initialize_frame_unwind): Update.
8698 * frame-base.c (_initialize_frame_base): Update.
8699 * user-regs.c (user_reg_add): Update.
8700 * reggroups.c (reggroup_add): Update.
8701 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8702 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8703 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8704 * frame-base.c (frame_base_table): Update.
8705 * remote.c (_initialize_remote): Update.
8706 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8707
3111a3fc
AC
87082004-03-15 Andrew Cagney <cagney@redhat.com>
8709
8710 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8711
5ecb7103
KB
87122004-03-15 Kevin Buettner <kevinb@redhat.com>
8713
8714 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8715 * frv-linux-tdep.c: New file.
8716 * frv-tdep.c (struct gdbarch_tdep): Add new field
8717 ``sigcontext_reg_addr''.
8718 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8719 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8720 (frv_sigramp_frame_sniffer): New functions.
8721 (frv_sigtramp_frame_unwind): New static global.
8722 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8723 sniffers.
8724 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8725 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8726
1ccda5e9
KB
87272004-03-15 Kevin Buettner <kevinb@redhat.com>
8728
8729 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8730 but not via a call to error(), when unable to read memory.
8731
b375a0a5
KB
87322004-03-15 Kevin Buettner <kevinb@redhat.com>
8733
8734 * frv-tdep.c (frv_call_dummy_words): Delete.
8735 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8736
4fdf6121
AC
87372004-03-15 Andrew Cagney <cagney@redhat.com>
8738
8739 * infrun.c (handle_step_into_function, step_over_function): Only
8740 update and use STEP_FRAME_ID when the system is using legacy
8741 frames. Update comments.
8742
34021503
MK
87432004-03-14 Mark Kettenis <kettenis@gnu.org>
8744
187e21d1
MK
8745 * amd64-linux-tdep.h: Remove file.
8746 * amd64-linux-tdep.c: Don't include "inferior.h" and
8747 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8748 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8749 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8750 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8751 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8752 macros.
8753 (user_to_gdb_regmap): Remove variable.
8754 (amd64_linux_gregset_reg_offset): New variable.
8755 (amd64_core_fns): Remove variable.
8756 (fetch_core_registers): Remove function.
8757 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8758 functions.
8759 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8760 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8761 * Makefile.in (amd64_linux_tdep_h): Remove.
8762 (amd64-linux-nat.o): Update dependencies.
8763 (amd64-linux-tdep.o): Update dependencies.
8764
99679982
MK
8765 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8766 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8767 functions.
8768 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8769
34021503
MK
8770 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8771 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8772
134d01f1
DJ
87732004-03-14 Daniel Jacobowitz <drow@mvista.com>
8774
8775 * dwarf2read.c (read_structure_type): Rename from
8718a420 8776 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8777 Return immediately if die->type is set. Call read_type_die before
8778 dwarf2_add_member_fn.
8779 (process_structure_scope): New function.
8780 (read_enumeration_type, process_enumeration_scope): New functions,
8781 broken out from read_enumeration. Don't create the enumeration
8782 type if it has already been created.
8783 (read_enumeration): Removed.
8784 (process_die): Call read_structure_type, process_structure_scope,
8785 read_enumeration_type, and process_enumeration_scope. Just call
8786 new_symbol for base and subrange types. Add a comment about other
8787 type dies.
8788 (read_type_die): Call read_enumeration_type.
8789 (add_partial_structure, new_symbol): Update comments.
8790
65760afb
SC
87912004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8792
8793 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8794
10f59415
SC
87952004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8796
8797 * tui/tui-win.h (tui_get_cmd_list): Declare.
8798 * tui/tui-win.c (tui_command): New function.
8799 (tui_get_cmd_list): New function.
8800 (_initialize_tui_win): Moved initialization of tui command in
8801 tui_get_cmd_list.
8802
8803 * tui/tui-data.c (init_content_element): Setup new data members.
8804 (init_win_info): Likewise.
8805 (free_content_elements): Free it.
8806 * tui/tui-data.h (struct tui_data_element): Store the register
8807 content to print.
8808 (struct tui_data_info): Keep the current register group.
8809
8810 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8811
8812 * tui/tui-regs.h (tui_show_registers): Update prototype.
8813 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8814 (tui_resize_all): No need to calculate anything for register window.
8815 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8816 (tui_set_register_element, tui_set_general_regs_content): Remove.
8817 (tui_set_special_regs_content): Remove.
8818 (tui_set_general_and_special_regs_content): Remove.
8819 (tui_set_float_regs_content): Remove.
8820 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8821 (tui_set_regs_content): Remove.
8822 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8823 (tui_v_show_registers_command_support): Remove.
8824 (tui_show_registers): Use a reggroup to specify the registers to show.
8825 (tui_show_register_group): New function.
8826 (tui_display_registers_from): Compute the layout of register window
8827 and refresh with new API; be sure to delete old register windows.
8828 (tui_check_register_values): Update to use tui_get_register and
8829 tui_display_data.
8830 (tui_display_register): Just refresh the register window part.
8831 (tui_register_format): Format registers and save in tui_data_element.
8832 (tui_get_register): New to combine tui_reg_value_has_changed and
8833 tui_get_register_raw_value; fix to use the new gdb API.
8834 (tui_show_float_command): Renamed tui_reg_float_command.
8835 (tui_show_general_command): Renamed tui_reg_general_command.
8836 (tui_show_special_command): Renamed tui_reg_system_command.
8837 (_initialize_tui_regs): Remove unused commands.
8838
c3364ea4
MK
88392004-03-13 Mark Kettenis <kettenis@gnu.org>
8840
27d1e716
MK
8841 * NEWS (New native configurations): Mention OpenBSD/amd64.
8842
c3364ea4
MK
8843 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8844 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8845 Remove defines.
8846 * config/i386/nm-fbsd64.h: Likewise.
8847 * config/i386/nm-obsd.h: Likewise.
8848 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8849 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8850
b2d6d697
KB
88512004-03-12 Kevin Buettner <kevinb@redhat.com>
8852
8853 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8854 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8855 New constants.
8856
76e43199
KB
8857 From Richard Sandiford <rsandifo@redhat.com>:
8858 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8859
34ce532e
KB
88602004-03-12 Kevin Buettner <kevinb@redhat.com>
8861
8862 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8863 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8864 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8865 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8866 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8867 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8868 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8869 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8870 definitions from frv-tdep.c to frv-tdep.h.
8871
c4d10515
KB
88722004-03-12 Kevin Buettner <kevinb@redhat.com>
8873
8874 Add shared library support for FR-V FDPIC ABI:
8875 * Makefile.in (solib-frv.o): Add dependencies.
8876 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8877 New functions.
8878 (frv_push_dummy_call): Add support for FDPIC ABI.
8879 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8880 for FDPIC ABI.
8881 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8882 (frv_fdpic_find_canonical_descriptor): Declare.
8883 * solib-frv.c: New file.
8884 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8885 * config/frv/tm-frv.h (solib.h): Include.
8886
ed1bd989
KB
88872004-03-12 Kevin Buettner <kevinb@redhat.com>
8888
8889 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8890 (frv-tdep.o): Update dependencies.
8891 * frv-tdep.h: New file.
8892 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8893 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8894 constants.
8895 (struct gdbarch_tdep): Add new member ``frv_abi''.
8896 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8897 functions.
8898 (new_variant): Set ``frv_abi'' field.
8899 (gdb_arch_init): Detect FDPIC executables.
8900
82b38f72
MK
89012004-03-12 Mark Kettenis <kettenis@gnu.org>
8902
8903 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8904 wrapper.
8905
db1ea9ba
AC
89062004-03-11 Andrew Cagney <cagney@redhat.com>
8907
8908 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8909
f8766ec1
KB
89102004-03-11 Kevin Buettner <kevinb@redhat.com>
8911
8912 * solist.h (master_so_list): New function.
8913 * solib.c (master_so_list): Likewise.
8914 * solib-svr4.c (enable_break): Iterate over so_list entries
8915 obtained from master list instead of entries obtained directly
8916 via svr4_current_sos().
8917
523f6a27
BE
89182004-03-10 Ben Elliston <bje@gnu.org>
8919
8920 * MAINTAINERS: Update my mail address.
8921
37814c18
KI
89222004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8923
8924 * remote-m32r-sdi.c: Support hardware watchpoint.
8925
8b9740d8
DJ
89262004-03-09 Daniel Jacobowitz <drow@mvista.com>
8927
8928 * user-regs.c: Update copyright years.
8929 (struct user_regs): Rename to gdb_user_regs.
8930 (append_user_reg, builtin_user_regs, user_regs_init)
8931 (user_reg_add, user_reg_map_name_to_regnum)
8932 (usernum_to_user_reg): Update.
8933
4bb7a0a7
DJ
89342004-03-09 Daniel Jacobowitz <drow@mvista.com>
8935
8936 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8937 (skip_children): New functions.
8938 (locate_pdi_sibling): Call skip_children.
8939
44e1a9eb
DJ
89402004-03-09 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8943 * gdbtypes.c (check_typedef): Update comments.
8944
f3dd6933
DJ
89452004-03-09 Daniel Jacobowitz <drow@mvista.com>
8946
8947 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8948 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8949 pointer. Update comment about comp_unit_head.
8950 (struct abbrev_info): Shorten two int flags.
8951 (dwarf_alloc_abbrev): Take a CU argument.
8952 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8953 each time through the loop. Update cleanup argument.
8954 (psymtab_to_symtab_1): Update cleanup call.
8955 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8956 abbrev_obstack.
8957 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8958 Just call obstack_free and clear the pointer.
8959
b40c7d58
DJ
89602004-03-09 Daniel Jacobowitz <drow@mvista.com>
8961
8962 * infrun.c (handle_inferior_event): Remove short-circuit code for
8963 events in a different thread.
8964
333dabeb
DJ
89652004-03-09 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8968 print the whole transfer.
8969 (initialize_targets): Update description of "set debug target".
8970
aa17d93e
DJ
89712004-03-09 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8974
0b71f08f
NW
89752004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8976
8977 * MAINTAINERS (write after approval): Add myself.
8978
3930f270
CV
89792004-03-08 Corinna Vinschen <vinschen@redhat.com>
8980
8981 * sh-tdep.c (sh_print_registers_info): Use for loop.
8982 Don't skip multiple registers when a float register is encountered.
8983
a2b4a96c
CV
89842004-03-08 Corinna Vinschen <vinschen@redhat.com>
8985
8986 Fix PR tdep/1291.
8987 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8988 to official SH documentation.
8989
f15a4bc0
AC
89902004-03-07 Andrew Cagney <cagney@redhat.com>
8991
8992 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8993 unused function.
8994
9498281f
DJ
89952004-03-07 Daniel Jacobowitz <drow@mvista.com>
8996
8997 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8998 (arm_get_next_pc): Handle BX and BLX.
8999
449e1137
AC
90002004-03-07 Andrew Cagney <cagney@redhat.com>
9001
eded0a31
AC
9002 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9003 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9004 HPPA_SP_REGNUM.
9005 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9006 (hppa_target_read_fp): Delete.
9007 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9008 register_virtual_size, max_register_raw_size,
9009 max_register_virtual_size, register_byte, register_size,
9010 target_read_fp, fp_regnum, and register_bytes. Set register_type
9011 instead of register_virtual_type.
9012 (hppa32_register_type, hppa64_register_type): Replace
9013 hppa32_register_virtual_type and hppa64_register_virtual_type.
9014 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9015 (HPPA_FP_REGNUM): Define.
9016
f5f907e2
AC
9017 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9018
69b4bbe4
AC
9019 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9020 (pa_do_registers_info): Delete.
9021 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9022 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9023 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9024
78161e48
AC
9025 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9026 GDB_TARGET_IS_HPPA code.
9027 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9028 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9029 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9030 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9031 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9032 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9033 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9034 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9035 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9036 (hppa_frameless_function_invocation, hppa64_store_return_value)
9037 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9038 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9039 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9040 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9041 (find_proc_framesize, deposit_21, restore_pc_queue)
9042 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9043 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9044
782eae8b
AC
9045 Unconditionally enable 64-bit frame and ABI code.
9046 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9047 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9048 push_dummy_frame, fix_call_dummy, push_arguments,
9049 call_dummy_location, extract_return_value, use_struct_convention,
9050 store_return_value, store_struct_return, saved_pc_after_call,
9051 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9052 frame_chain, frame_chain_valid, frameless_function_invocation,
9053 frame_saved_pc, and pop_frame.
78161e48 9054
449e1137
AC
9055 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9056 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9057 (hppa_gdbarch_init): Do not set PC_REGNUM.
9058
12507572
MK
90592004-03-06 Mark Kettenis <kettenis@gnu.org>
9060
9061 * config/alpha/tm-fbsd.h: Remove file.
9062 * config/alpha/fbsd.mt: Tweak comment.
9063 (TM_FILE): Set to tm-alpha.h.
9064
c107cc1b
AC
90652004-03-05 Andrew Cagney <cagney@redhat.com>
9066
9067 * infrun.c (step_over_function): When non-legacy code, and no
9068 step_frame_id, use the unwinder to get the caller's frame ID.
9069
f2e7c15d
MK
90702004-03-05 Mark Kettenis <kettenis@gnu.org>
9071
8b0c3633
MK
9072 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9073 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9074 bfd_arch_unknown. Adjust comment.
9075
f2e7c15d
MK
9076 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9077 * i386obsd-tdep.c: Correct spelling in comment.
9078 * i386nbsd-tdep.c: Correct spelling in comment.
9079 * sparc-tdep.c: Correct spelling in comments.
9080
1198ecbe
DC
90812004-03-05 David Carlton <carlton@kealia.com>
9082
9083 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9084 bug.
9085
9eb42ed1
MK
90862004-03-05 Mark Kettenis <kettenis@gnu.org>
9087
9088 * sparc-tdep.c: Fix typo in comment.
9089
52b5e991
JB
90902004-03-04 J. Brobecker <brobecker@gnat.com>
9091
9092 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9093
d8151005
DJ
90942004-03-04 Daniel Jacobowitz <drow@mvista.com>
9095
9096 * dwarf2read.c: Add comment describing memory lifetimes.
9097 (struct dwarf2_pinfo): Update comment.
9098 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9099 (read_enumeration, new_symbol): Don't use obsavestring.
9100
cbeae229
MK
91012004-03-04 Mark Kettenis <kettenis@gnu.org>
9102
722d18c2
MK
9103 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9104 instead of amd64_fill_fxsave.
9105 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9106 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9107
cbeae229
MK
9108 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9109 Reorganize code a bit.
9110
b4206d25
OF
91112004-03-04 Orjan Friberg <orjanf@axis.com>
9112
9113 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9114 when the frame pointer is pushed. Don't set the frame pointer's
9115 address on the stack unless it's actually located there.
b4206d25
OF
9116 Set the SRP's address on the stack correctly when the PC is still in
9117 the prologue.
9118 (cris_return_value): New function.
9119 (cris_gdbarch_init): Clear deprecated store_return_value,
9120 extract_return_value.
9121
49b0b195
JB
91222004-03-02 Jim Blandy <jimb@redhat.com>
9123
9124 * stabsread.c (reg_value_complaint): The maximum register number
9125 is one less than the number of registers.
9126
e9ff708b
AC
91272004-03-02 Andrew Cagney <cagney@redhat.com>
9128
9129 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9130 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9131 trailing comma and redundant assignment of I386_ST0_REGNUM.
9132 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9133 32-bit segment registers.
9134
d4715e41
AC
91352004-03-01 Andrew Cagney <cagney@redhat.com>
9136
9137 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9138 use frame_relative_level and get_next_frame.
9139
3ce2bf18
AC
91402004-02-29 Andrew Cagney <cagney@redhat.com>
9141
9142 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9143 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9144 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9145 Delete macro.
9146
2da6aac3
DJ
91472004-02-29 Daniel Jacobowitz <drow@mvista.com>
9148
9149 * inflow.c (terminal_inferior): Don't give up the terminal if we
9150 previously couldn't get the inferior's terminal state.
9151
6ba34a8d
DJ
91522004-02-29 Daniel Jacobowitz <drow@mvista.com>
9153
9154 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9155 PC_REGNUM.
9156
faae5abe
AC
91572004-02-28 Andrew Cagney <cagney@redhat.com>
9158
9159 * NEWS: Refer to GDB 6.1.
9160 * README: Refer to GDB 6.1.
9161 * PROBLEMS: Refer to GDB 6.1.
9162
2227a3c5
DJ
91632004-02-28 Daniel Jacobowitz <drow@mvista.com>
9164
9165 * thread-db.c (disable_thread_signals): Remove unused function.
9166
80571bff
MK
91672004-02-28 Mark Kettenis <kettenis@gnu.org>
9168
041bd74b
MK
9169 * amd64-nat.c: Include "gdb_string.h".
9170 (amd64_collect_native_gregset): Zero-extend the 32-bit
9171 general-purpose registers and %eip.
9172
3c017e40
MK
9173 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9174 * amd64-tdep.c (amd64_collect_fxsave): New function.
9175 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9176
80571bff
MK
9177 * i387-tdep.h: Update copyright year.
9178 (i387_collect_fxsave): New prototype.
9179 * i387-tdep.c: Update copyright year.
9180 (i387_collect_fxsave): New function containing most of the code
9181 from i387_fill_fxsave.
9182 (i387_fill_fxsave): Call i387_collect_fxsave.
9183
50d71875
AC
91842004-02-28 Andrew Cagney <cagney@redhat.com>
9185
9186 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9187 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9188
4a28816e
MK
91892004-02-28 Mark Kettenis <kettenis@gnu.org>
9190
9191 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9192
dbda9972
AC
91932004-02-28 Andrew Cagney <cagney@redhat.com>
9194
9195 * utils.c: Use "", instead of <>, to include readline.
9196 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9197 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9198 * source.c, solib.c, exec.c, event-top.c: Ditto.
9199 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9200 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9201 * Makefile.in: Update all dependencies.
9202 (readline_tilde_h, readline_history_h): Define.
9203 (readline_headers): Delete.
9204
83277a99
MK
92052004-02-28 Mark Kettenis <kettenis@gnu.org>
9206
91ae4303
MK
9207 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9208 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9209 "config/i386/tm-lx64.h".
9210
83277a99
MK
9211 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9212 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9213 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9214
6e1d7d6c
AC
92152004-02-28 Andrew Cagney <cagney@redhat.com>
9216
ecc9ac84
AC
9217 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9218
6e1d7d6c
AC
9219 * breakpoint.c (_initialize_breakpoint): Use
9220 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9221 Add help to show command.
9222
9671aeef
MK
92232004-02-28 Mark Kettenis <kettenis@gnu.org>
9224
7fa2737c
MK
9225 * i386-nat.c: Reformat to be closer to coding standards.
9226 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9227 `retval'. Make variables `align' and `size' local to while-loop.
9228 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9229 (_initialize_i386_nat): New prototype.
9230
9671aeef
MK
9231 * tui/tui.c: Include <readline/readline.h> instead of
9232 "readline/readline.h". Include it after <term.h> and
9233 "gdb_curses.h".
9234
fca7aa43
AC
92352004-02-27 Andrew Cagney <cagney@redhat.com>
9236
412275d5
AC
9237 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9238 the new frame unwind code.
9239 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9240 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9241 PCOQ_HEAD_REGNUM.
9242
fca7aa43
AC
9243 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9244 "return_value" and "push_dummy_call".
9245 (hppa32_use_struct_convention): Delete unused function.
9246 (hppa32_store_return_value): Delete unused function.
9247 (hppa32_extract_return_value): Delete unused function.
9248 (hppa32_stack_align): Delete function.
9249
e6a8a7d2
EZ
92502004-02-27 Eli Zaretskii <eliz@elta.co.il>
9251
9252 * coffread.c (enter_linenos): Don't let rawptr reference memory
9253 outside linetab[]'s limits.
9254
1797a8f6
AC
92552004-02-27 Andrew Cagney <cagney@redhat.com>
9256
9257 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9258 inferior stack space - the stack needs to grow upwards.
9259 (hppa32_frame_align): New function.
9260 (hppa64_frame_align): Replace hppa_frame_align.
9261 (hppa_gdbarch_init): Update.
9262
2e4b5889
OF
92632004-02-26 Orjan Friberg <orjanf@axis.com>
9264
9265 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9266 (dwarf2-frame.h): Include.
9267 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9268 Remove static variables related to ABI setting.
9269 (struct gdbarch_tdep): Remove cris_abi member.
9270 (struct frame_extra_info): Remove.
9271 (cris_unwind_cache, stack_item): New structs.
9272 (cris_frame_unwind, cris_frame_base): New variables.
9273 (push_stack_item, pop_stack_item)
9274 (cris_frame_unwind_cache, cris_frame_this_id)
9275 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9276 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9277 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9278 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9279 (cris_reg_struct_has_addr): New functions.
9280 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9281 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9282 (cris_store_struct_return, cris_frameless_function_invocation)
9283 (cris_pop_frame, cris_skip_prologue_main)
9284 (cris_abi_original_store_return_value)
9285 (cris_abi_v2_store_return_value)
9286 (cris_abi_original_extract_return_value)
9287 (cris_abi_v2_extract_return_value)
9288 (cris_abi_original_reg_struct_has_addr)
9289 (cris_abi_v2_reg_struct_has_addr)
9290 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9291 (cris_push_return_address, cris_abi_update): Remove.
9292 (_initialize_cris_tdep): Remove ABI command.
9293 (cris_dump_tdep): Ditto.
8718a420 9294 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9295 Set store_return_value, extract_return_value, push_dummy_code,
9296 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9297 frame_unwind_append_sniffer, frame_base_set_default.
9298 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9299 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9300 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9301 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9302 init_extra_frame_info, frameless_function_invocation, frame_chain,
9303 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9304 dummy_write_sp.
8718a420 9305
6b9acc27
JJ
93062004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9307
9308 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9309 * valprint.c (print_hex_chars): Change from static to external.
9310 (print_char_chars): New function.
9311 * printcmd.c (print_scalar_formatted): For integer and enum types
9312 that are longer than LONGEST, perform processing via appropriate
9313 print_*_chars routines.
9314
a431654a
AC
93152004-02-26 Andrew Cagney <cagney@redhat.com>
9316
9317 * Makefile.in: Update dependencies.
9318 Changes from Ulrich Weigand,
9319 * s390-tdep.c: Include "dwarf2-frame.h".
9320 (s390_dwarf2_frame_init_reg): New function.
9321 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9322 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9323
fa8d40ab
JJ
93242004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9325
9326 * breakpoint.c (pending_break_support): New setting variable.
9327 (break_command_1): Account for pending_break_support setting
9328 when creating pending breakpoints.
9329 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9330 (_initialize_breakpoint): Add "set breakpoint pending" and
9331 "show breakpoint pending" commands.
9332
0dcd613f
AC
93332004-02-26 Andrew Cagney <cagney@redhat.com>
9334
9335 Fix PR i18n/1570.
9336 * charset.c (backslashable, backslashed, represented): Remove 'e'
9337 from list of escaped characters, not part of ISO-C.
9338
479272a3
JB
93392004-02-25 J. Brobecker <brobecker@gnat.com>
9340
9341 From Peter Schauer <schauer@pdf.de>:
9342 * tui/tui.c: Move system header includes after local includes.
9343 Fixes a build failure on solaris systems.
9344
7613d933
JB
93452004-02-25 J. Brobecker <brobecker@gnat.com>
9346
9347 * configure.in: Refine the previous change.
9348 * configure: Regenerate.
9349
9c1488cb
MK
93502004-02-25 Mark Kettenis <kettenis@gnu.org>
9351
9352 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9353 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9354 "amd64-tdep.h" instead of "x86-64-tdep.h".
9355 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9356 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9357 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9358 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9359 and "x86-64-tdep.c".
9360 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9361 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9362 and "x86-64-tdep.c".
9363 * amd64bsd-nat.c: Update copyright year.
9364 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9365 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9366 "x86-64-tdep.h".
9367 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9368 "x86-64-tdep.h".
9369 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9370 "x86-64-tdep.h".
9371 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9372 "x86-64-tdep.h".
9373 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9374 "x86-64-tdep.h".
9375 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9376 "x86-64-tdep.h".
8718a420 9377 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9378 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9379 * Makefile.in (amd64_linux_tdep_h): Renamed from
9380 x86_64_linux_tdep_h.
9381 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9382 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9383 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9384 (amd64obsd-tdep.o): Update dependencies.
9385 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9386 dependencies.
9387 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9388 dependencies.
9389 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9390 amd64-linux-nat.c amd64-linux-tdep.c.
9391 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9392 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9393 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9394 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9395 amd64-tdep.o and amd64-linux-tdep.o.
9396 (TM_FILE): Set to tm-linux64.h.
9397 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9398 (NAT_FILE): Set to nm-linux64.h.
9399 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9400 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9401 amd64-tdep.o.
9402 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9403 amd64-tdep.o.
9404 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9405 amd64-tdep.o.
9406
4b8dad4a
RM
94072004-02-25 Roland McGrath <roland@redhat.com>
9408
9409 * remote.c (remote_protocol_qPart_auxv): New variable.
9410 (init_all_packet_configs): Initialize it.
9411 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9412 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9413 (show_remote_cmd): Call it.
9414 (_initialize_remote): Initialize commands.
9415 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9416 service TARGET_OBJECT_AUXV requests.
9417
66745969
JB
94182004-02-25 J. Brobecker <brobecker@gnat.com>
9419
9420 * configure.in: Make sure that the wborder function is available.
9421 Otherwise, search for it in the cur_colr library.
9422 * configure: Regenerate.
9423
79508e1e
AC
94242004-02-25 Andrew Cagney <cagney@redhat.com>
9425
9426 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9427
571ee600
MK
94282004-02-25 Mark Kettenis <kettenis@gnu.org>
9429
9430 * config/i386/tm-x86-64linux.h: Tweak comments.
9431
2b1b322f 94322004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9433
9434 * MAINTAINERS: Add self to write-after-approval list.
9435
4d2acc65
AC
94362004-02-25 Andrew Cagney <cagney@redhat.com>
9437
4b8dad4a 9438 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9439 * cli/cli-script.c (execute_control_command): Unconditionally
9440 install a cleanup. Default "ret" to "invalid_control". Use
9441 "break" instead of "return" to escape from the switch.
9442
4cfcaf21
JB
94432004-02-24 J. Brobecker <brobecker@gnat.com>
9444
9445 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9446 with the lines macro defined in term.h on AiX.
9447 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9448 a collision with the label_width macro defined in term.h on AiX.
9449
54a5c8d8
KB
94502004-02-23 David Mosberger <davidm@hpl.hp.com>
9451
9452 Committed by Kevin Buettner <kevinb@redhat.com>.
9453
9454 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9455 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9456 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9457 instead of ia64_write_pc().
9458 * ia64-linux-tdep.c (regcache.h): Include.
9459 (ia64_linux_write_pc): New function.
4b8dad4a 9460
8a1dac83
RM
94612004-02-23 Roland McGrath <roland@redhat.com>
9462
9463 * auxv.c (info_auxv_command): Fix typos in error messages.
9464
90f90721
MK
94652004-02-23 Mark Kettenis <kettenis@gnu.org>
9466
8a1dac83 9467 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9468 (enum amd64_regnum): New.
9469 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9470 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9471 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9472 (X86_64_XMM1_REGNUM): Removed.
9473 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9474 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9475 prototypes for renamed functions.
9476 * x86-64-tdep.c: Fix typo.
9477 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9478 register numbers.
9479 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9480 Use constants from `enum amd64_regnum' for register numbers.
9481 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9482 (amd64_analyze_prologue, amd64_frame_cache,
9483 amd64_sigtramp_frame_cache): Use constants from `enum
9484 amd64_regnum' for register numbers.
9485 (amd64_supply_fpregset): Adjust for renamed functions.
9486 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9487 `enum amd64_regnum' for register numbers.
9488 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9489 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9490 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9491 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9492 (amd64_linux_fill_gregset): Adjust for renamed macros.
9493 (fetch_core_registers): Adjust for renamed functions.
9494 (amd64_linux_init_abi): Adjust for renamed functions.
9495 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9496 renamed functions.
9497 * amd64-nat.c: Adjust for renamed macros.
9498 * amd64bsd-nat.c (fetch_inferior_registers)
9499 (store_inferior_registers): Use constants from `enum amd64_regnum'
9500 for register numbers. Adjust for renamed variables.
9501 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9502 renamed variables.
9503 (_initialize_amd64fbsd_nat): Use constants from `enum
9504 amd64_regnum' for register numbers.
9505 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9506 `enum amd64_regnum' for register numbers.
9507 (amd64fbsd_init_abi): Adjust for renamed functions.
9508 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9509 `enum amd64_regnum' for register numbers.
9510 (amd64nbsd_init_abi): Adjust for renamed functions.
9511 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9512 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9513 `enum amd64_regnum' for register numbers.
9514 (amd64obsd_init_abi): Adjust for renamed functions.
9515 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9516
d5479188
JJ
95172004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9518
9519 * breakpoint.c (print_one_breakpoint): Do not output spaces
9520 after printing <PENDING> for a pending breakpoint.
9521
81cb7cc9
JJ
95222004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9523
9524 * printcmd.c (print_scalar_formatted): Initialize val_long
9525 to remove compiler warning message.
9526
cbdeadca
JJ
95272004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9528
9529 * defs.h (nquery, yquery): New prototypes.
9530 * breakpoint.c (break_command_1): Use new nquery interface.
9531 * utils.c (defaulted_query, nquery, yquery): New functions.
9532
da6bab63
AC
95332004-02-23 Andrew Cagney <cagney@redhat.com>
9534
2f690297
AC
9535 * hppa-tdep.c (hppa_frame_align): New function.
9536 (hppa32_push_dummy_call): New function.
9537 (hppa64_push_dummy_call): New function.
9538 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9539 disabled.
8a1dac83 9540
da6bab63
AC
9541 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9542 FIX_CALL_DUMMY when push_dummy_call is available.
9543 (call_function_by_hand, push_dummy_code): Ditto.
9544
abf9b42d
AC
95452004-02-22 Andrew Cagney <cagney@redhat.com>
9546
9547 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9548 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9549 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9550 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9551 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9552 call_dummy_location to ON_STACK.
9553
10fc94a4
MK
95542004-02-22 Mark Kettenis <kettenis@gnu.org>
9555
51433e4b
MK
9556 * x86-64-linux-tdep.c: Tweak comment.
9557 (amd64_linux_supply_gregset): Renamed from
9558 x86_64_linux_supply_gresget.
9559 (amd64_linux_fill_gregset): Renamed from
9560 x86_64_linux_fill_gregset.
9561 (fetch_core_registers): Adjust for renamed functions.
9562 (amd64_core_fns): Renamed from x86_64_core_fns.
9563 (amd64_linux_sigtramp_start): Renamed from
9564 x86_64_linux_sigtramp_start.
9565 (amd64_linux_pc_in_sigtramp): Renamed from
9566 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9567 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9568 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9569 (amd64_linux_sigcontext_addr): Renamed from
9570 x86_64_linux_sigcontext_addr.
9571 (amd64_linux_sc_reg_offset): Renamed from
9572 x86_64_linux_sc_reg_offset.
9573 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9574 Adjust for renamed functions and variables.
9575 (_initialize_amd64_linux_tdep): Renamed from
9576 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9577 variables.
9578 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9579 Adjust for renamed functions.
9580
430eaf2e
MK
9581 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9582 from x86_64_linux_gregset64_reg_offset.
9583 (amd64_linux_gregset32_reg_offset): Rename from
9584 x86_64_linux_gregset64_reg_offset.
9585 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9586 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9587 (amd64_linux_dr_set_control): Renamed from
9588 x86_64_linux_dr_set_control. Adjust for renamed functions.
9589 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9590 Adjust for renamed functions.
9591 (amd64_linux_dr_reset_addr): Renamed from
9592 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9593 (amd64_linux_dr_get_status): Renamed from
9594 x86_64_linux_dr_get_status. Adjust for renamed functions.
9595 (_initialize_amd64_linux_nat): Renamed from
9596 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9597 functions.
9598 * config/i386/nm-x86-64linux.h: Update copyright year.
9599 Adjust for renamed functions.
9600
10fc94a4
MK
9601 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9602 amd64fbsd_sigtramp_start.
9603 (amd64fbsd_sigtramp_end_addr): Renamed from
9604 amd64fbsd_sigtramp_end.
9605 (amd64fbsd_init_abi): Adjust for renamed variables.
9606 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9607 variables.
9608 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9609 amd64fbsd_sigtramp_start.
9610 (amd64fbsd_sigtramp_end_addr): Renamed from
9611 amd64fbsd_sigtramp_end.
9612
343af405
AC
96132004-02-22 Andrew Cagney <cagney@redhat.com>
9614
537987fc
AC
9615 * hppa-tdep.c (hppa32_return_value): New function.
9616 (hppa64_return_value): New function.
9617 (hppa_gdbarch_init): Set return_value; keep disabled.
9618
fad850b2
AC
9619 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9620 struct-return and inferior function call methods.
9621
26d08f08
AC
9622 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9623 "frame-base.h".
9624 (struct hppa_frame_cache): Define.
9625 (hppa_frame_cache, hppa_frame_this_id): New functions.
9626 (hppa_frame_prev_register): New function.
9627 (hppa_frame_unwind, hppa_frame_base): New variables.
9628 (hppa_frame_unwind_sniffer): New function.
9629 (hppa_frame_base_address, hppa_unwind_pc): New function.
9630 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9631 sniffer, and frame base sniffer; keep disabled.
9632 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9633 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9634
e7d7bd65
AC
9635 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9636 to predicates for "seriously old code".
9637
e963316f
AC
9638 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9639 runtime if(0).
9640
56132691
AC
9641 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9642 unsigned.
9643 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9644
343af405
AC
9645 * config/pa/tm-hppa.h: Update copyright.
9646 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9647 (deprecated_init_frame_pc_default): Delete declaration.
9648 (hppa_frame_init_saved_regs): Delete declaration.
9649 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9650 * hppa-tdep.c: Include "arch-utils.h".
9651 (hppa_gdbarch_init): Set deprecated init_frame_pc
9652 and deprecated frame_init_saved_regs.
9653 (hppa_frame_init_saved_regs): Make static.
9654
f5859b4d
MK
96552004-02-22 Mark Kettenis <kettenis@gnu.org>
9656
86f6f8e7 9657 Remove old 386BSD support.
cf7c5c23 9658 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9659 * configure.host: Remove i[34567]86-*-bsd*.
9660 * configure.tgt: Remove i[34567]86-*-bsd*.
9661 * i386b-nat.c: Removed.
9662 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9663 (i386b-nat.o): Remove dependencies.
9664
86f6f8e7
MK
9665 * config/i386/i386bsd.mh: Removed.
9666 * config/i386/i386bsd.mt: Removed.
9667 * config/i386/nm-i386bsd.h: Removed.
9668 * config/i386/tm-i386bsd.h: Removed.
9669 * config/i386/xm-i386bsd.h: Removed.
9670
971218cd
MK
9671 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9672
7e654c37
MK
9673 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9674 (amd64fbsd_init_abi): Set link map offsets.
9675 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9676 (amd64nbsd_init_abi): Set link map offsets.
9677 * amd64obsd-tdep.c: Include "solib-svr4.h".
9678 (amd64obsd_init_abi): Set link map offsets.
9679 * i386fbsd-tdep.c: Include "solib-svr4.h".
9680 (i386fbsd_init_abi): Set link map offsets.
9681 * i386nbsd-tdep.c: Include "solib-svr4.h".
9682 (i386nbsdelf_init_abi): Set link map offsets.
9683 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9684 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9685 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9686 solib-legacy.o and core-aout.o. Reformat.
9687 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9688 solib-svr4.o, solib-legacy.o. Reformat.
9689 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9690 * config/i386/nbsdelf.mh: Reformat.
9691 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9692 solib-svr4.o, solib-legacy.o and corelow.o.
9693 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9694 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9695 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9696 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9697 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9698 (TM_FILE): Set to tm-fbsd.h.
9699 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9700 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9701 solib-svr4.o.
9702 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9703 solib-svr4.o.
9704 (TM_FILE): Set to nm-nbsd.h.
9705 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9706 Simplify shared library support. Don't include "elf/common.h".
9707 (SVR4_SHARED_LIBS): Don't define.
9708 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9709 "solib.h".
9710 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9711 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9712 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9713 Don't include "i386/tm-i386.h". Include "solib.h".
9714 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9715 Don't include "i386/tm-i386.h".
9716 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9717 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9718 Include "i386/xm-i386.h".
9719 (HOST_LONG_DOUBLE_FORMAT): Remove.
9720
5d93ae8c
MK
9721 Fix OpenBSD/i386 sigtramp recognition.
9722 * i386-tdep.h: Update copyright year.
9723 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9724 (i386bsd_sigtramp_end): New prototypes.
9725 (i386fbsd_sigtramp_start_addr): Renamed from
9726 i386fbsd_sigtramp_start.
9727 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9728 (i386obsd_sigtramp_start_addr): Renamed from
9729 i386obsd_sigtramp_start.
9730 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9731 * i386bsd-tdep.c: Update copyright year.
9732 (i386bsd_pc_in_sigtramp): Make public.
9733 * i386fbsd-nat.c: Update copyright year.
9734 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9735 * i386fbsd-tdep.c: Update copyright year.
9736 (i386fbsd_sigtramp_start_addr): Renamed from
9737 i386fbsd_sigtramp_start.
9738 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9739 (i386fbsdaout_init_abi): Adjust for renamed variables.
9740 * i386obsd-nat.c: Update copyright year.
9741 (_initialize_i386obsd_nat): Adjust for renamed variables.
9742 * i386obsd-tdep.c: Include "target.h".
9743 (i386obsd_page_size): New variable.
9744 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9745 (i386obsd_sigtramp_end): New functions.
9746 (i386obsd_sigtramp_start_addr): Renamed from
9747 i386obsd_sigtramp_start.
9748 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9749 (i386obsd_init_abi): Adjust for renamed variables. Set
9750 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9751 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9752
84d04465
MK
9753 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9754 trampoline change in OpenBSD kernel.
9755
b053aceb
MK
9756 * amd64-nat.c: Update copyright year.
9757 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9758 architecture from REGCACHE.
9759
f5859b4d
MK
9760 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9761 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9762
e4bbbda8
MK
97632004-02-21 Mark Kettenis <kettenis@gnu.org>
9764
ba361932
MK
9765 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9766 i[34567]86-*-openbsd3.[0-3].
9767 * config/i386/obsdaout.mh: New file.
9768
d3e48264
MK
9769 * config/i386/obsd.mh (MH_FLAGS): Remove.
9770
60a6eeb6
MK
9771 Fix PR build/1549.
9772 * i386obsd-tdep.c: Update copyright years. Include
9773 "solib-svr4.h".
9774 (i386obsd_init_abi): Don't set regset_from_core_section here.
9775 (i386obsd_aout_init_abi): New function. Set
9776 regset_from_core_section here.
9777 (i386obsd_elf_init_abi): New function.
9778 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9779 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9780 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9781 (TM_FILE): Set to tm-nbsd.h.
9782
9783 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9784 solib-sunos.o.
9785
e4bbbda8
MK
9786 * solib-svr4.h: Update copyright year.
9787 (svr4_ilp32_fetch_link_map_offsets)
9788 (svr4_lp64_fetch_link_map_offsets): New prototype.
9789 * solib-svr4.c: Update copyright year.
9790 (svr4_ilp32_fetch_link_map_offsets)
9791 (svr4_lp64_fetch_link_map_offsets): New function.
9792
f6fe98ef
DJ
97932004-02-20 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9796 to the partial symbol table.
9797
589ca796
JB
97982004-02-20 J. brobecker <brobecker@gnat.com>
9799
9800 * PROBLEMS: Add description of problem documented under gdb/1560.
9801
2031c21a
MK
98022004-02-20 Mark Kettenis <kettenis@gnu.org>
9803
30b344b1
MK
9804 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9805 comments.
9806 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9807 functions.
9808 (amd64obsd_init_abi): Reorder initializations. Use
9809 amd64obsd_r_reg_offset to initialize the general-purpose register
9810 set details. Set regset_from_core_section.
9811 (_initialize_amd64obsd_tdep): Rename from
9812 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9813 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9814 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9815
2031c21a
MK
9816 * NEWS (New native configurations): Mention OpenBSD/alpha.
9817 * configure.tgt: Add alpha*-*-openbsd*.
9818 * configure.host: Add alpha*-*-openbsd*.
9819 * alphanbsd-tdep.c: Update copyright year.
9820 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9821
42471775
AC
98222004-02-20 Andrew Cagney <cagney@redhat.com>
9823
9824 Fix PR tdep/1372.
9825 * configure.tgt: Delete target "none-*-*".
9826 * configure.host: Delete host "none-*-*".
9827 * config/none/none.mh: Delete file.
9828 * config/none/none.mt: Delete file.
9829 * config/none/xm-none.h: Delete file.
9830 * config/none/tm-none.h: Delete file.
9831 * config/none/nm-none.h: Delete file.
9832
960ccd7d
FF
98332004-02-19 Fred Fish <fnf@redhat.com>
9834
9835 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9836 cache->uses_fp prior to setting it.
9837
5f883edd
FF
98382004-02-19 Fred Fish <fnf@redhat.com>
9839
9840 Fix for PR breakpoint/1558.
9841 * sh-tdep.c (IS_JSR): New macro.
9842 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9843
f98c22d5
JB
98442004-02-19 Jim Blandy <jimb@redhat.com>
9845
9846 * findvar.c (value_from_register): Doc fix.
9847
95051d27
JJ
98482004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9849
9850 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9851 type being greater than sizeof of host's LONGEST. Always use
9852 unpack_long() unless format 'f' chosen.
9853
ccefbec3
EZ
98542004-02-19 Joel Brobecker <brobecker@gnat.com>
9855
9856 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9857
ccefbec3
EZ
9858 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9859 contains a symbol wich is the best, non-exact match for the given
9860 pc. Update comments.
9861
98622004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9863
2ede629f
EZ
9864 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9865 macro, which was part of the now removed Mach 3 port.
9866 * utils.c (request_quit): Ditto.
9867
567ee972
MK
98682004-02-18 Mark Kettenis <kettenis@gnu.org>
9869
9870 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9871 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9872
50cca7bb
MK
98732004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9874
9875 Committed by Mark Kettenis <kettenis@gnu.org>.
9876
9877 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9878 Define.
9879
226361c4
AC
98802004-02-18 Andrew Cagney <cagney@redhat.com>
9881
9882 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9883 CONFIG_INSTALL and CONFIG_UNINSTALL.
9884 * configure: Re-generate.
9885 * interps.h (INTERP_TUI): Define.
9886 * Makefile.in: Update dependencies.
9887 (TUI): New macro.
9888 (tui-main.o): Specify dependencies.
9889 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9890 * tui/tui-main.c: New file.
9891
49cfa46f
MK
98922004-02-18 Mark Kettenis <kettenis@gnu.org>
9893
e2879ccb
MK
9894 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9895 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9896 dependencies.
9897 * configure.host: Add x86_64-*-openbsd*.
9898 * configure.tgt: Add x86_64-*-openbsd*.
9899 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9900
c43f4bec
MK
9901 * tui/tui.c: Don't include <malloc.h>.
9902
09ae75b6
MK
9903 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9904 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9905 amd64nbsd-tdep.c.
9906
49cfa46f 9907 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9908 static. Remove extraneous whitespace.
49cfa46f
MK
9909 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9910 static.
9911
05957fdb
JB
99122004-02-17 Jim Blandy <jimb@redhat.com>
9913
9914 * findvar.c (value_from_register): Doc fix.
9915
d0f54f9d
JB
99162004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9917
9918 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9919
8a1dac83 9920 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9921 CORE_ADDR as type for selectors. Correct types for GNU run time
9922 message lookup function to use double indirection.
9923 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9924 * objc-lang.h (lookup_child_selector): Adapt prototype.
9925
9cbd5950
JB
9926 * s390-nat.c (SUBOFF): New macro.
9927 (supply_gregset, fill_gregset): Use it to handle debugging
9928 of 32-bit exectuables running under a 64-bit kernel.
9929 * s390-tdep.c: Include "solib-svr4.h".
9930 (s390_svr4_fetch_link_map_offset): New function.
9931 (s390x_svr_fetch_link_map_offset): Likewise.
9932 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9933 * Makefile.in (s390-tdep.o): Update dependencies.
9934
a8c99f38
JB
9935 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9936 "frame-unwind.h".
9937 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9938 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9939 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9940 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9941 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9942 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9943 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9944 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9945 (struct frame_extra_info): Remove.
9946 (s390_memset_extra_info): Remove.
f73b1eff
JB
9947 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9948 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9949 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9950 (is_rse): Renamed to ...
9951 (is_rsy): ... this. Support long displacements.
9952 (is_rxe): Renamed to ...
9953 (is_rxy): ... this. Support long displacements.
9954 (compute_x_addr): Support long displacements.
9955 (struct s390_prologue_data): New data type.
9956 (s390_on_stack): Change API to use struct s390_prologue_data.
9957 (s390_store): Reimplement.
9958 (s390_load): New function.
9959 (s390_get_signal_frame_info): Remove.
9960 (s390_get_frame_info): Remove, replace by ...
9961 (s390_analyze_prolog): ... this new function.
9962 (s390_check_function_end): Remove.
9963 (s390_function_start): Remove.
9964 (s390_frameless_function_invokation): Remove.
9965 (s390_is_sigreturn): Remove.
9966 (s390_init_frame_pc_first): Remove.
9967 (s390_init_frame_extra_info): Remove.
9968 (s390_frame_init_saved_regs): Remove.
9969 (s390_frame_saved_pc_nofix): Remove.
9970 (s390_frame_saved_pc): Remove.
9971 (s390_frame_chain): Remove.
9972 (s390_fp_regnum, s390_read_fp): Remove.
9973 (s390_pop_frame_regular, s390_pop_frame): Remove.
9974 (s390_saved_pc_after_call): Remove.
9975 (s390_skip_prologue): Reimplement.
9976 (s390_in_function_epilogue_p): Support long displacements.
9977 (struct s390_unwind_cache): New data structure.
9978 (s390_frame_unwind_cache): New function.
9979 (s390_prologue_frame_unwind_cache): Likewise.
9980 (s390_backchain_frame_unwind_cache): Likewise.
9981 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9982 (s390_frame_unwind): Define.
9983 (s390_frame_sniffer): New function.
9984 (struct s390_pltstub_unwind_cache): New data structure.
9985 (s390_pltstub_frame_unwind_cache): New function.
9986 (s390_pltstub_frame_this_id): Likewise.
9987 (s390_pltstub_frame_prev_register): Likewise.
9988 (s390_pltstub_frame_unwind): Define.
9989 (s390_pltstub_frame_sniffer): New function.
9990 (struct s390_sigtramp_unwind_cache): New data structure.
9991 (s390_sigtramp_frame_unwind_cache): New function.
9992 (s390_sigtramp_frame_this_id): Likewise.
9993 (s390_sigtramp_frame_prev_register): Likewise.
9994 (s390_sigtramp_frame_unwind): Define.
9995 (s390_sigtramp_frame_sniffer): New function.
9996 (s390_frame_base_address, s390_local_base_address): New functions.
9997 (s390_frame_base): Define.
9998 (s390_unwind_pc, s390_unwind_sp): New function.
9999 (s390_push_dummy_call): Use new frame base location.
10000 (s390_unwind_dummy_id): Likewise.
10001 (s390_gdbarch_init): Remove calls to:
10002 set_gdbarch_frameless_function_invocation,
10003 set_gdbarch_deprecated_init_frame_pc,
10004 set_gdbarch_deprecated_frame_chain,
10005 set_gdbarch_deprecated_frame_init_saved_regs,
10006 set_gdbarch_deprecated_pop_frame,
10007 set_gdbarch_deprecated_init_extra_frame_info,
10008 set_gdbarch_deprecated_init_frame_pc_first,
10009 set_gdbarch_deprecated_target_read_fp,
10010 set_gdbarch_deprecated_frame_saved_pc,
10011 set_gdbarch_deprecated_saved_pc_after_call,
10012 set_gdbarch_deprecated_fp_regnum.
10013 Add calls to:
10014 set_gdbarch_in_solib_call_trampoline,
10015 frame_unwind_append_sniffer,
10016 frame_base_set_default,
10017 set_gdbarch_unwind_pc,
10018 set_gdbarch_unwind_sp.
10019 * Makefile.in (s390-tdep.o): Update dependencies.
10020
b0cf273e
JB
10021 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10022 (S390_STACK_FRAME_OVERHEAD): Remove.
10023 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10024 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10025 (s390_promote_integer_argument): Remove.
10026 (s390_cannot_extract_struct_value_address): Remove.
10027 (s390_use_struct_convention, s390_store_struct_return): Remove.
10028 (s390_extract_return_value, s390_store_return_value): Remove.
10029 (s390_return_value_convention, s390_return_value): New functions.
10030 (is_float_singleton): Handle typedefs.
8a1dac83 10031 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10032 Remove, replace by ...
10033 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10034 s390_function_arg_integer): ... these new functions.
10035 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10036 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10037 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10038 Fill in tdep->abi.
10039 Remove calls to:
10040 set_gdbarch_deprecated_store_struct_return,
10041 set_gdbarch_deprecated_extract_return_value,
10042 set_gdbarch_deprecated_store_return_value,
10043 set_gdbarch_use_struct_convention,
10044 set_gdbarch_extract_struct_value_address,
10045 set_gdbarch_deprecated_pc_in_call_dummy,
10046 set_gdbarch_deprecated_push_arguments,
10047 set_gdbarch_deprecated_save_dummy_frame_tos,
10048 set_gdbarch_deprecated_push_return_address,
10049 set_gdbarch_deprecated_sizeof_call_dummy_words,
10050 set_gdbarch_deprecated_call_dummy_words,
10051 set_gdbarch_deprecated_dummy_write_sp.
10052 Add calls to:
10053 set_gdbarch_push_dummy_call,
10054 set_gdbarch_unwind_dummy_id,
10055 set_gdbarch_return_value.
8a1dac83 10056
e1457d83
JB
10057 * config/s390/nm-linux.h: Update comments.
10058 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10059 (STOPPED_BY_WATCHPOINT): Redefine.
10060 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10061 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10062 (s390_stopped_by_watchpoint): Likewise.
10063 (watch_area_cnt): Remove.
10064 * s390-nat.c: Update comments.
10065 (watch_area): Remove typedef.
10066 Global replace watch_area by struct watch_area.
10067 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10068 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10069 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10070 (s390_fix_watch_points): Remove pid argument,
10071 use s390_inferior_tid. Recompute area spanned by watchpoints.
10072 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10073 argument. Reimplement.
10074
d0f54f9d
JB
10075 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10076 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10077 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10078 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10079 core-regset.o.
10080 * config/s390/s390x.mt: Remove.
10081 * config/s390/tm-s390.h: Remove.
10082 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10083 (TARGET_ELF64): Remove.
10084 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10085 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10086 s390*-*-* case; always set gdb_target to s390.
10087 * regformats/reg-s390.dat: Remove control registers.
10088 * regformats/reg-s390x.dat: Likewise.
10089 * s390-tdep.h: New file.
8a1dac83 10090 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10091 Include "inferior.h" and "s390-tdep.h".
10092 Remove private definition of offsetof.
10093 (s390_register_u_addr): Remove.
10094 (regmap_gregset, regmap_fpregset): Define.
10095 (supply_gregset, fill_gregset): Reimplement.
10096 (supply_fpregset, fill_fpregset): Likewise.
10097 (s390_inferior_tid): New function.
10098 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10099 (fetch_inferior_registers, store_inferior_registers): Likewise.
10100 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10101 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10102 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10103 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10104 (struct gdbarch_tdep): Define.
10105 (struct s390_register_info): Define.
10106 (s390_register_info): New variable.
10107 (s390_register_name): Reimplement.
10108 (s390_register_type): New function.
10109 (s390_register_raw_size, s390x_register_raw_size): Remove.
10110 (s390_cannot_fetch_register): Remove.
10111 (s390_register_byte): Remove.
10112 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10113 (s390_dwarf_regmap): New variable.
10114 (s390_dwarf_reg_to_regnum): New function.
10115 (s390_stab_reg_to_regnum): Remove.
10116 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10117 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10118 (s390_convert_register_p): Likewise.
10119 (s390_register_to_value, s390_value_to_register): Likewise.
10120 (s390_register_reggroup_p): Likewise.
10121 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10122 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10123 (s390_supply_regset, s390_regset_from_core_section): New functions.
10124 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10125 (S390_FPR_SIZE): Likewise.
10126 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10127 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10128 (S390_NUM_GPRS): Move here from tm-s390.h.
10129 (S390_NUM_FPRS): Likewise.
10130 (s390_in_function_epilogue_p): New function.
10131 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10132 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10133 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10134 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10135 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10136 Remove calls to:
10137 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10138 set_gdbarch_deprecated_max_register_virtual_size,
10139 set_gdbarch_deprecated_register_byte,
d0f54f9d 10140 set_gdbarch_cannot_fetch_register,
8a1dac83 10141 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10142 set_gdbarch_deprecated_register_size,
10143 set_gdbarch_deprecated_register_raw_size,
10144 set_gdbarch_deprecated_register_virtual_size,
10145 set_gdbarch_deprecated_register_virtual_type,
10146 set_gdbarch_deprecated_register_bytes.
10147 Add calls to:
10148 set_gdbarch_num_pseudo_regs,
10149 set_gdbarch_register_type,
10150 set_gdbarch_convert_register_p,
10151 set_gdbarch_register_to_value,
10152 set_gdbarch_value_to_register,
10153 set_gdbarch_register_reggroup_p,
10154 set_gdbarch_regset_from_core_section,
10155 set_gdbarch_pseudo_register_read,
10156 set_gdbarch_pseudo_register_write,
10157 set_gdbarch_in_function_epilogue_p.
10158 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10159 (s390_tdep_h): New variable.
10160
8cfe231d
JB
101612004-02-17 Jim Blandy <jimb@redhat.com>
10162
4589a601
JB
10163 * findvar.c (value_from_register): If the type has no length, just
10164 return an acceptable value --- don't report an internal error.
10165
8cfe231d
JB
10166 * stabsread.c (read_type): If we find any type numbers that are
10167 forward references, complain if the references aren't resolved by
10168 the time we're finished reading.
10169 (cleanup_undefined_types): Make error message more appropriate for
10170 a complaint.
10171
5bf0017e
EZ
101722004-02-17 Elena Zannoni <ezannoni@redhat.com>
10173
9d62932d
EZ
10174 * Makefile.in (defs_h): Remove dependency on progress_h.
10175 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10176 progress.h.
10177 * main.c (captured_main): Delete use of START_PROGRESS and
10178 END_PROGRESS.
10179
101802004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10181
5bf0017e
EZ
10182 * objfiles.c (terminate_minimal_symbol_table): Add back
10183 initialization of MSYMBOL_TYPE.
10184
9fc9f5e2
AC
101852004-02-17 David Mosberger <davidm@hpl.hp.com>
10186
10187 Committed by Andrew Cagney.
10188 * Makefile.in (ia64_tdep_h): New macro.
10189 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10190 (ia64-tdep.o): Likewise.
10191 * ia64-tdep.h: New file.
10192 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10193 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10194 (ia64_aix_sigcontext_register_address): Likewise.
10195 (ia64_linux_getunwind_table): Delete declaration.
10196 * ia64-linux-tdep.c: Likewise.
10197
76cd2bd9
CV
101982004-02-17 Corinna Vinschen <vinschen@redhat.com>
10199
10200 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10201 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10202 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10203
634aa483
AC
102042004-02-17 Andrew Cagney <cagney@redhat.com>
10205
10206 * symtab.c (skip_prologue_using_sal): New function.
10207 * symtab.h (skip_prologue_using_sal): Declare.
10208 * frv-tdep.c: Include "symtab.h".
10209 (skip_prologue_using_sal): Delete function.
10210 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10211 * rs6000-tdep.c (refine_prologue_limit): Mention
10212 skip_prologue_using_sal.
10213 * ia64-tdep.c (refine_prologue_limit): Ditto.
10214 * Makefile.in: Update dependencies.
10215
102162004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10217
39ce7b3f
AC
10218 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10219 START_INFERIOR_TRAPS_EXPECTED.
10220 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10221 START_INFERIOR_TRAPS_EXPECTED.
10222 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10223 Delete macro.
10224 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10225 macro, moved to "nm-osf.h". Update copyright.
10226 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10227 update copyright.
10228
19772a2c
AC
10229 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10230 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10231 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10232 frameless_look_for_prologue.
10233 * frame.h (legacy_frameless_look_for_prologue): Rename
10234 frameless_look_for_prologue.
10235 * gdbarch.h, gdbarch.c: Re-generate.
10236 * sh64-tdep.c (sh64_gdbarch_init): Update.
10237 * sh-tdep.c (sh_gdbarch_init): Update.
10238 * s390-tdep.c (s390_gdbarch_init): Update.
10239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10240 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10241 * m68k-tdep.c (m68k_gdbarch_init): Update.
10242 (delta68_frame_args_address): Update.
10243 * m32r-tdep.c (m32r_gdbarch_init): Update.
10244 * hppa-tdep.c (hppa_gdbarch_init): Update.
10245 * h8300-tdep.c (h8300_gdbarch_init): Update.
10246 * frv-tdep.c (frv_gdbarch_init): Update.
10247 (frv_frameless_function_invocation): Update.
10248 * cris-tdep.c (cris_gdbarch_init): Update.
10249 (cris_frameless_function_invocation): Update.
10250 * avr-tdep.c (avr_gdbarch_init): Update.
10251 * arm-tdep.c (arm_gdbarch_init): Update.
10252 * stack.c (frame_info): Update, call predicate.
10253 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10254 * frame.c (legacy_get_prev_frame): Update, call predicate..
10255 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10256 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10257 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10258 invocation.
10259 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10260 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10261 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10262
10263 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10264 function.
10265
7dcaac91
DJ
102662004-02-16 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10269 initializations.
10270
88289b6e
AC
102712004-02-16 Andrew Cagney <cagney@redhat.com>
10272
10273 * tui/tui-windata.c: Include "gdb_string.h".
10274 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10275 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10276 * Makefile.in: Update dependencies.
10277
9f976b41
DJ
102782004-02-16 Daniel Jacobowitz <drow@mvista.com>
10279
10280 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10281 * infrun.c: Include "gdb_assert.h".
10282 (singlestep_ptid, saved_singlestep_ptid)
10283 (stepping_past_singlestep_breakpoint): New variables.
10284 (resume): Set singlestep_ptid. Check for singlestep thread
10285 hop.
10286 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10287 (handle_inferior_event): Handle singlestep thread hop.
10288
c324d747
AC
102892004-02-16 Andrew Cagney <cagney@redhat.com>
10290
f090b9b1
AC
10291 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10292 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10293 (dwarf2_frame_init_reg): Ditto.
10294
fd33e6cb
AC
10295 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10296 suggested by Joshua Neuheisel
10297
c324d747
AC
10298 * configure.in: Always check for curses, including pdcurses.
10299 Warn, instead of error, when no curses are found. Enable TUI when
10300 curses is available.
10301 * configure: Re-generate.
10302
b66ba949
CV
103032004-02-16 Corinna Vinschen <vinschen@redhat.com>
10304
10305 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10306 sh_sh4_register_convert_to_virtual.
10307 (sh_register_convert_to_raw): Rename from
10308 sh_sh4_register_convert_to_raw.
10309 (sh_pseudo_register_read): Accomodate above name change.
10310 (sh_pseudo_register_write): Ditto.
10311
b58cbbf2
CV
103122004-02-16 Corinna Vinschen <vinschen@redhat.com>
10313
10314 * sh-tdep.c (sh_generic_register_name): Remove.
10315 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10316
5929a910
AC
103172004-02-15 Andrew Cagney <cagney@redhat.com>
10318
4566dfcf
AC
10319 * configure.in (build_warnings): Add -Wunused-function.
10320 * configure: Re-generate.
10321
db11ed55
AC
10322 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10323 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10324
46ac7a5d
AC
10325 * procfs.c (procfs_init_inferior): Assume that
10326 START_INFERIOR_TRAPS_EXPECTED is defined.
10327 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10328 * config/ns32k/tm-nbsd.h: Delete file,
10329 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10330
ba801595
AC
10331 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10332 * config/vax/tm-vax.h: Delete file.
10333
5929a910
AC
10334 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10335 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10336 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10337 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10338 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10339 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10340 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10341
8f22cb90
MK
103422004-02-15 Mark Kettenis <kettenis@gnu.org>
10343
10344 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10345 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10346 (struct dwarf2_frame_ops): New.
10347 (dwarf2_frame_default_init_reg): New function, based on
10348 dwarf2_frame_init_reg.
10349 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10350 (dwarf2_frame_init_reg): Call architecture-specific function.
10351 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10352 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10353 instead of dwarf2_frame_data.
10354 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10355 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10356
8132723e
AC
103572004-02-15 Andrew Cagney <cagney@redhat.com>
10358
046a4708
AC
10359 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10360 register_gdbarch_swap.
10361 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10362 * f-lang.c (_initialize_f_language): Update, use
10363 DEPRECATED_REGISTER_GDBARCH_SWAP.
10364 * remote.c (_initialize_remote): Ditto.
10365 * regcache.c (_initialize_regcache): Ditto.
10366 * parse.c (_initialize_parse): Ditto.
10367 * infrun.c (_initialize_infrun): Ditto.
10368 * mi/mi-main.c (_initialize_mi_main): Ditto.
10369 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10370
549c1eea
AC
10371 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10372 poking .cacheable directly.
10373 * symfile.c (symfile_bfd_open): Ditto.
10374
0c0b39de
AC
10375 * Makefile.in: Update all dependencies.
10376
8132723e
AC
10377 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10378 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10379 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10380 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10381 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10382
b9d26eb9
AC
103832004-02-14 Andrew Cagney <cagney@redhat.com>
10384
8e1f669a
AC
10385 * arch-utils.c (legacy_convert_register_p): Check
10386 DEPRECATED_REGISTER_CONVERTIBLE_P.
10387 * findvar.c (value_of_register): Ditto.
10388
cd0bfa36
AC
10389 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10390 * gdbarch.h, gdbarch.c: Re-generate.
10391 * arch-utils.c (deprecated_register_convertible_not): Delete.
10392 * arch-utils.h (deprecated_register_convertible_not): Delete.
10393 * mi/mi-main.c (get_register): Update. Update copyright.
10394 * infcmd.c (default_print_registers_info): Update.
10395
b9d26eb9
AC
10396 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10397 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10398 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10399 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10400 * frame.c (deprecated_get_next_frame_hack): Delete function.
10401 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10402 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10403 Update.
10404 * infcall.c (call_function_by_hand): Update.
10405
9ab9195f
EZ
104062004-02-14 Elena Zannoni <ezannoni@redhat.com>
10407
10408 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10409 from here...
9ab9195f
EZ
10410 * objfiles.c (init_entry_point_info, entry_point_address):..to
10411 here.
10412 * symfile.h (init_entry_point_info, entry_point_address): Remove
10413 prototypes.
10414 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10415 prototypes.
9ab9195f
EZ
10416 * cris-tdep.c: Remove include of symfile.h. Add include of
10417 objfiles.h.
10418 * infcall.c: Ditto.
10419 * mcore-tdep.c: Ditto.
10420 * mn10300-tdep.c: Ditto.
10421 * sh64-tdep.c: Ditto.
10422 * v850-tdep.c: Ditto.
10423 * arm-tdep.c: Remove include of symfile.h.
10424 * blockframe.c: Ditto.
10425 * coffread.c: Ditto.
10426 * dbxread.c: Ditto.
10427 * dwarf2read.c: Ditto.
10428 * dwarfread.c: Ditto.
8a1dac83 10429 * frv-tdep.c: Ditto.
9ab9195f
EZ
10430 * ia64-tdep.c: Ditto.
10431 * mdebugread.c: Ditto.
10432 * mipsread.c: Ditto.
8a1dac83 10433 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10434 * s390-tdep.c: Ditto.
10435 * sh-tdep.c: Ditto.
8a1dac83 10436 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10437 * gdbarch.sh: Remove include of symfile.h.
10438 * gdbarch.c: Regenerate.
10439 * solib-irix.c (enable_break): Use entry_point_address().
10440 Add comment about include file.
10441 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10442 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10443 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10444 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10445 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10446 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10447
c4c5b7ba
AC
104482004-02-13 Andrew Cagney <cagney@redhat.com>
10449
10450 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10451 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10452 copyright.
10453 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10454
3e7879de
FF
104552004-02-12 Fred Fish <fnf@redhat.com>
10456
10457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10458 set_gdbarch_store_return_value.
10459
6a7760b6
AC
104602004-02-12 Andrew Cagney <cagney@redhat.com>
10461
10462 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10463 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10464 (interrupt_query): Ditto.
10465 (ofunc): Delete unused variable.
10466 * cris-tdep.c (cris_abi): Delete unused function.
10467 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10468 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10469 (cris_get_asr_quick_shift_steps): Ditto.
10470 (cris_skip_prologue_frameless_p): Ditto.
10471 * arm-tdep.c (arm_push_return_address): Delete unused function.
10472 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10473 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10474 * s390-tdep.c (s390_function_start): Delete unused function.
10475
31687c3c
AC
104762004-02-12 Andrew Cagney <cagney@redhat.com>
10477
10478 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10479 gdbarch.h, gdbarch.c: Re-generate.
10480 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10481 to generic_prologue_frameless_p.
10482 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10483 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10484
6de918a6
DJ
104852004-02-11 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * mips-linux-tdep.c: Include "frame.h".
10488 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10489 (mips_linux_skip_resolver): New functions.
10490 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10491 and set_gdbarch_in_solib_call_trampoline.
10492 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10493 to after set_gdbarch_in_solib_return_trampoline. Only set the
10494 solib hooks to mips16 functions if the OS ABI is unknown.
10495 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10496 including "config/tm-linux.h".
10497 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10498 * Makefile.in (mips-linux-tdep.o): Update.
10499
87b3ede8
DC
105002004-02-11 David Carlton <carlton@kealia.com>
10501
10502 * linespec.c (decode_compound): Only look for a class symbol when
10503 considering all but the rightmost component.
10504
5979bc46
AC
105052004-02-11 Andrew Cagney <cagney@redhat.com>
10506
10507 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10508 abi code are are separatly grouped.
10509
5867a2fb
AC
105102004-02-11 Andrew Cagney <cagney@redhat.com>
10511
10512 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10513 * gdbarch.h, gdbarch.c: Re-generate.
10514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10515 * v850-tdep.c (v850_gdbarch_init): Update.
10516 * sh64-tdep.c (sh64_gdbarch_init): Update.
10517 * sh-tdep.c (sh_gdbarch_init): Update.
10518 * s390-tdep.c (s390_gdbarch_init): Update.
10519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10520 * mips-tdep.c (mips_gdbarch_init): Update.
10521 * mcore-tdep.c (mcore_gdbarch_init): Update.
10522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10523 * m32r-tdep.c (m32r_gdbarch_init): Update.
10524 * ia64-tdep.c (ia64_gdbarch_init): Update.
10525 * hppa-tdep.c (hppa_gdbarch_init): Update.
10526 * h8300-tdep.c (h8300_gdbarch_init): Update.
10527 * frv-tdep.c (frv_gdbarch_init): Update.
10528 * d10v-tdep.c (d10v_gdbarch_init): Update.
10529 * cris-tdep.c (cris_gdbarch_init): Update.
10530 * avr-tdep.c (avr_gdbarch_init): Update.
10531 * arm-tdep.c (arm_gdbarch_init): Update.
10532 * alpha-tdep.c (alpha_gdbarch_init): Update.
10533
026a72f8
CV
105342004-02-11 Corinna Vinschen <vinschen@redhat.com>
10535
10536 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10537 comma.
10538 (sh_sh4al_dsp_register_name): Ditto.
10539
3903d437
AC
105402004-02-10 Andrew Cagney <cagney@redhat.com>
10541
10542 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10543 (mips_init_frame_pc_first): Delete function.
10544 (mips_frame_saved_pc): Delete function.
10545 (mips_frame_chain): Delete function.
10546 (mips_init_extra_frame_info): Delete function.
10547 (mips_xfer_register): Delete unused variable "reg".
10548 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10549 (mips_n32n64_return_value): Delete unused variable "reg".
10550 (mips_n32n64_return_value): Delete unused variable "pos".
10551 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10552 (mips_o32_return_value): Delete unused variable "pos".
10553 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10554 (mips_print_fp_register): Delete unused variable "namelen"
10555 (mips_print_fp_register): Delete unused variable "flt2"
10556 (get_frame_pointer): Delete function.
10557 (cached_proc_desc): Delete static variable.
10558 (mips_pop_frame): Delete function.
10559 (mips_find_saved_regs): Delete function.
10560 (mips_get_saved_register): Delete function.
10561 (mips_saved_pc_after_call): Delete function.
10562 (SIGFRAME_BASE): Delete macro.
10563 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10564 (SIGFRAME_PC_OFF): Delete macro.
10565 (SIGFRAME_REGSAVE_OFF): Delete macro.
10566 (mips_dump_tdep): Do not print deleted macro definitions.
10567
b9fb98bd
AC
105682004-02-10 Andrew Cagney <cagney@redhat.com>
10569
10570 * Makefile.in (SFILES): Remove explictly listed tui files.
10571 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10572
78ced177 105732004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10574
78ced177
JJ
10575 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10576 to use paddr functions to format ia64 addresses and long values.
10577 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10578 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10579 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10580 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10581 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10582
6a83354a
AC
105832004-02-10 Andrew Cagney <cagney@redhat.com>
10584
10585 * defs.h: Do not include "tui.h".
10586 * gdb_curses.h: New file.
10587 * tui/tui-hooks.h: New file.
10588 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10589 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10590 (tui_initialize_io): Delete declaration.
10591 (tui_initialize_readline: Delete redundant declaration.
10592 (struct tui_point): Delete definition.
10593 * tui/tui-data.h (struct tui_point): Define.
10594 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10595 * utils.c: Include "tui/tui.h".
10596 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10597 * printcmd.c [TUI]: Include "tui/tui.h".
10598 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10599 * tui/tui-command.c: Include "gdb_curses.h".
10600 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10601 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10602 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10603 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10604 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10605 * Makefile.in: Update all dependencies.
10606 (tui_hooks_h, gdb_curses_h): Define.
10607 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10608
997470ef
EZ
106092004-02-10 Elena Zannoni <ezannoni@redhat.com>
10610
10611 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10612 auxf2. Add comments about some other rarely used fields.
10613
4ff2cc4d
AC
106142004-02-10 Andrew Cagney <cagney@redhat.com>
10615
10616 * Makefile.in (init.c): Fix script removing duplicates. Problem
10617 reported by Peter Schauer.
10618
1ab21617
EZ
106192004-02-09 Elena Zannoni <ezannoni@redhat.com>
10620
10621 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10622 obstack_specify_allocation.
10623 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10624 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10625 (allocate_rt_common_objfile): Ditto.
10626 * symfile.c (reread_symbols): Ditto.
10627 * gdb_obstack.h: Add comment.
10628
17763fd9
EZ
106292004-02-09 Elena Zannoni <ezannoni@redhat.com>
10630
10631 * linespec.c (decode_line_1, locate_first_half)
10632 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10633 commented out code.
10634
ec5cdd75
DJ
106352004-02-09 Daniel Jacobowitz <drow@mvista.com>
10636
10637 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10638 obstack_free.
10639
43b54b88
AC
106402004-02-09 Andrew Cagney <cagney@redhat.com>
10641
10642 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10643 fails, try find_pc_section. Fix PR c++/1267.
10644 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10645 instead of find_pc_mapped_section.
10646 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10647 not default to the section containing PC. Fix PR symtab/1519.
10648
edfae063
AC
106492004-02-09 Andrew Cagney <cagney@redhat.com>
10650
10651 * Makefile.in (mips-tdep.o): Update dependencies.
10652 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10653 "trad-frame.h".
10654 (mips_unwind_pc): Return the pseudo PC register.
10655 (mips_unwind_dummy_id): New function.
10656 (mips16_fetch_instruction): New function.
10657 (mips32_fetch_instruction): New function.
10658 (struct mips_frame_cache): Define.
10659 (mips_mdebug_frame_cache): New function.
10660 (mips_mdebug_frame_this_id): New function.
10661 (mips_mdebug_frame_prev_register): New function.
10662 (mips_mdebug_frame_unwind): Define.
10663 (mips_mdebug_frame_sniffer): New function.
10664 (mips_mdebug_frame_base_address): New function.
10665 (mips_mdebug_frame_base): Define.
10666 (mips_mdebug_frame_base_sniffer): New function.
10667 (mips_gdbarch_init): Append unwind and base sniffers. Set
10668 unwind_dummy_id.
10669
defc864c
AC
106702004-02-08 Andrew Cagney <cagney@redhat.com>
10671
6764ddad
AC
10672 * frame.c: Print both the register number and name.
10673
defc864c
AC
10674 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10675 and a sed into a single sed. Make .c and .o patterns more robust.
10676 (OBS): Delete.
10677 (INIT_FILES): Replace OBS with COMMON_OBS.
10678 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10679
645d6d10
MK
106802004-02-08 Mark Kettenis <kettenis@gnu.org>
10681
10682 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10683 the PT_WCOOKIE request.
10684
23e3c3fc
AC
106852004-02-08 Andrew Cagney <cagney@redhat.com>
10686
58dfe9ff
AC
10687 * mips-tdep.c (mips_unwind_pc): New function.
10688 (mips_gdbarch_init): Set mips_unwind_pc.
10689
1152e35e
AC
10690 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10691 (get_frame_id): Allow the UNKNOWN_FRAME.
10692 (frame_register_unwind, get_frame_type): Ditto.
10693
31b75dbf
AC
10694 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10695 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10696 unwind_dummy_id indicates a legacy frame.
10697
3483b318
AC
10698 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10699 * configure: Re-generate.
10700
23e3c3fc
AC
10701 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10702 methods.
10703
33f8ca73
AC
107042004-02-08 Andrew Cagney <cagney@redhat.com>
10705
10706 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10707 makefile macro.
10708 * configure: Re-generate.
10709 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10710 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10711 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10712 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10713 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10714 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10715 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10716 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10717 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10718 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10719
6ba8e26f 107202004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10721
20d286a5
AC
10722 * Makefile.in: Update all dependencies.
10723
d836ee13
AC
10724 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10725 * configure: Re-generate.
10726 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10727 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10728 (COMMON_OBS): Add "main.o" and "annotate.o".
10729 (ANNOTATE_OBS): Delete.
10730 (OBS): Remove ANNOTATE_OBS.
10731 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10732 CONFIG_INITS.
10733 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10734 against CONFIG_OBS and "main.o".
10735 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10736 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10737
d02c80cd
AC
10738 * tui/tui-command.c: Include "gdb_string.h", delete register
10739 attribute, use ISO-C function signatures.
10740 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10741 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10742 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10743 * tui/tui.c: Ditto.
6ba8e26f
AC
10744
10745 * tui/tui-command.c: Change variable and function names to lower
10746 case.
10747 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10748 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10749 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10750 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10751 * tui/tui-winsource.c, tui/tui.c: Ditto.
10752
4a146b47
EZ
107532004-02-07 Elena Zannoni <ezannoni@redhat.com>
10754
10755 * buildsym.c (free_pending_blocks, finish_block)
10756 (record_pending_block, make_blockvector, end_symtab): Replace
10757 symbol_obstack with objfile_obstack.
8a1dac83 10758 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10759 (coff_read_enum_type): Ditto.
8a1dac83 10760 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10761 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10762 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10763 (dwarf2_symbol_mark_computed): Ditto.
10764 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10765 * elfread.c (elf_symtab_read): Ditto.
10766 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10767 (hpread_read_enum_type, hpread_read_function_type)
10768 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10769 Ditto.
8a1dac83 10770 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10771 (java_link_class_type): Ditto.
8a1dac83 10772 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10773 (new_symbol): Ditto.
10774 * minsyms.c (install_minimal_symbols): Ditto.
10775 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10776 (terminate_minimal_symbol_table): Replace symbol_obstack with
10777 objfile_obstack.
10778 (free_objfile): Remove freeing of symbol_obstack.
10779 * objfiles.h: Remove symbol_obstack field.
10780 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10781 objfile_obstack.
10782 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10783 symbol_obstack.
10784 (solib_add_common_symbols): Replace symbol_obstack with
10785 objfile_obstack.
10786 * somsolib.c (som_solib_add): Ditto.
10787 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10788 (common_block_start, common_block_end): Ditto.
10789 * symfile.c (reread_symbols): Remove freeing and init of
10790 symbol_obstack.
10791 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10792 * symfile.h: Update comment.
10793 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10794 stats printing.
10795 * symtab.c (symbol_set_names): Replace symbol_obstack with
10796 objfile_obstack.
10797 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10798 Update comments.
10799 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10800 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10801 objfile_obstack.
10802
6d012f14
AC
108032004-02-07 Andrew Cagney <cagney@redhat.com>
10804
10805 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10806 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10807 fields and variables.
10808 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10809 (m_beInvisible): Delete macro.
10810 * tui/tui-data.h: Fix case case fields and variables.
10811 (m_genWinPtrIsNull): Delete macro.
10812 (tui_win_list): Rename winList.
10813 (TUI_SRC_WIN): Rename srcWin.
10814 (TUI_DISASM_WIN): Rename disassemWin.
10815 (TUI_DATA_WIN): Rename dataWin.
10816 (TUI_CMD_WIN): Rename cmdWin.
10817 (m_genWinPtrNotNull): Delete macro.
10818 (m_winPtrIsNull): Delete macro.
10819 (m_winPtrNotNull): Delete macro.
10820 (tui_win_is_source_type): Replace m_winIsSourceType
10821 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10822 (tui_win_has_locator): Replace m_hasLocator.
10823 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10824 m_setWinHighlightOff.
10825 * tui/tui-data.c: Update references.
10826 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10827 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10828 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10829 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10830 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10831 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10832 * tui/tui-winsource.c, tui/tui.c: Ditto.
10833
7d34766b
MK
108342004-02-07 Mark Kettenis <kettenis@gnu.org>
10835
1c800673
MK
10836 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10837 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10838 StackGhost.
10839
7d34766b
MK
10840 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10841 variable `i6' to `i7'.
10842 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10843
22940a24
AC
108442004-02-07 Andrew Cagney <cagney@redhat.com>
10845
10846 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10847 (TuiPoint, TuiPointPtr): Ditto.
10848 (TuiStatus, TuiStatusPtr): Ditto.
10849 (TuiWinType, TuiWinTypePtr): Ditto.
10850 (struct tui_point): Rename _TuiPoint.
10851 (tui_get_low_disassembly_address): Rename
10852 tuiGetLowDisassemblyAddress.
10853 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10854 (tuiFree): Delete declaration.
10855 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10856 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10857 * tui/tui.c (tuiFree): Delete function.
10858 * cli/cli-cmds.c (disassemble_command): Update references.
10859 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10860 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10861 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10862 * tui/tui-winsource.c: Ditto.
10863
8b92e4d5
EZ
108642004-02-07 Elena Zannoni <ezannoni@redhat.com>
10865
10866 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10867 coffstab_build_psymtabs, elfstab_build_psymtabs)
10868 (stabsect_build_psymtabs): Replace psymbol_obstack with
10869 objfile_obstack.
10870 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10871 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10872 Ditto.
10873 * dwarfread.c (scan_compilation_units): Ditto.
10874 * elfread.c (elfstab_offset_sections): Ditto.
10875 * hppa-tdep.c (read_unwind_info): Ditto.
10876 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10877 (hpread_end_psymtab): Ditto.
10878 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10879 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10880 Ditto.
10881 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10882 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10883 (build_objfile_section_table): Ditto.
10884 (allocate_objfile): Remove init of psymbol_obstack.
10885 (free_objfile): Remove freeing of psymbol_obstack.
10886 * objfiles.h (struct objfile): Remove field
10887 psymbol_obstack. Update comments.
10888 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10889 psymbol_obstack with objfile_obstack.
10890 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10891 psymbol_obstack.
10892 * somread.c (som_symfile_offsets, init_import_symbols)
10893 (init_export_symbols): Replace psymbol_obstack with
10894 objfile_obstack.
10895 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10896 * symfile.c (default_symfile_offsets, syms_from_objfile)
10897 (reread_symbols): Remove freeing and init of psymbol_obstack.
10898 (cashier_psymtab): Update comment.
10899 * symmisc.c (print_objfile_statistics): Don't report stats for
10900 psymbol obstack.
10901 * symtab.h (struct general_symbol_info, struct partial_symtab):
10902 Update comments.
10903 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10904 (xcoff_symfile_offsets): Replace psymbol_obstack with
10905 objfile_obstack.
10906
b99607ea
EZ
109072004-02-07 Elena Zannoni <ezannoni@redhat.com>
10908
10909 * objfiles.h (struct objfile): Add objfile_obstack field.
10910 Remove type_obstack field.
10911
10912 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10913 read_structure_scope read_enumeration, new_symbol): Replace
10914 type_obstack with objfile_obstack.
10915 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10916 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10917 (lookup_fundamental_type): Ditto.
10918 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10919 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10920 (hpread_read_doc_function_type, hpread_read_struct_type)
10921 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10922 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10923 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10924 (java_link_class_type): Ditto.
10925 * mdebugread.c (parse_type): Ditto.
10926 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10927 * solib-sunos.c (solib_add_common_symbols): Ditto.
10928 * stabsread.c (define_symbol, read_type, read_member_functions,
10929 read_cpp_abbrev, read_one_struct_field): Ditto.
10930 * symfile.c (reread_symbols): Ditto.
10931 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10932
2a8854a7
AC
109332004-02-07 Andrew Cagney <cagney@redhat.com>
10934
10935 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10936 (tui_exec_info_content): Rename TuiExecInfoContent.
10937 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10938 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10939 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10940 (TuiList, TuiListPtr): Ditto.
10941 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10942 (TuiDataType, TuiDataTypePtr): Ditto.
10943 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10944 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10945 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10946 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10947 (TuiDataElement, TuiDataElementPtr): Ditto.
10948 (TuiWinElement, TuiWinElementPtr): Ditto.
10949 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10950 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10951 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10952 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10953 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10954 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10955 * tui/tui-command.c, tui/tui-data.c: Update references.
10956 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10957 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10958 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10959 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10960
05cbe71a
MK
109612004-02-07 Mark Kettenis <kettenis@gnu.org>
10962
10963 * dwarf2-frame.h: Update copyright.
10964 (enum dwarf2_frame_reg_rule): New.
10965 (struct dwarf2_frame_state_reg): New.
10966 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10967 * dwarf2-frame.c: Update copyright.
10968 (enum dwarf2_reg_rule): Remove.
10969 (struct dwarf2_frame_state): Remove defenition of `struct
10970 dwarf2_frame_state_reg'.
10971 (read_reg): Call get_frame_arch to get the architecture instead of
10972 using CURRENT_GDBARCH.
10973 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10974 DWARF2_FRAME_.
10975 (dwarf2_frame_init_reg): New function.
10976 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10977 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10978 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10979 tags with DWARF2_FRAME_.
10980 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10981 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10982 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10983
ec7d9e56
AC
109842004-02-06 Andrew Cagney <cagney@redhat.com>
10985
dd1abb8c
AC
10986 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10987 (enum tui_data_type): Rename _TuiDataType.
10988 (struct tui_layout_def): Rename _TuiLayoutDef.
10989 (struct tui_source_element): Rename _TuiSourceElement.
10990 (struct tui_data_element): Rename _TuiDataElement.
10991 (struct tui_command_element): Rename _TuiCommandElement.
10992 (struct tui_locator_element): Rename _TuiLocatorElement.
10993 (union tui_which_element): Define.
10994 (struct tui_win_element): Rename _TuiWinElement.
10995 (struct tui_data_info): Rename _TuiDataInfo.
10996 (struct tui_source_info): Rename _TuiSourceInfo.
10997 (struct tui_command_info): Rename _TuiCommandInfo.
10998 (tui_initialize_static_data): Rename initializeStaticData.
10999 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11000 (tui_alloc_win_info): Rename allocWinInfo.
11001 (tui_init_generic_part): Rename initGenericPart.
11002 (tui_init_win_info): Rename initWinInfo.
11003 (tui_alloc_content): Rename allocContent.
11004 (tui_add_content_elements): Rename addContentElements.
11005 (tui_init_content_element): Rename initContentElement.
11006 (tui_free_window): Rename freeWindow.
11007 (tui_free_win_content): Rename freeWinContent.
11008 (tui_free_data_content): Rename freeDataContent.
11009 (tui_free_all_source_wins_content): Rename
11010 freeAllSourceWinsContent.
11011 (tui_del_window): Rename tuiDelWindow.
11012 (tui_del_data_windows): Rename tuiDelDataWindows.
11013 (tui_partial_win_by_name): Rename partialWinByName.
11014 (tui_win_name): Rename winName.
11015 (tui_current_layout): Rename currentLayout.
11016 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11017 (tui_term_height): Rename termHeight.
11018 (tui_set_term_height_to): Rename setTermHeightTo.
11019 (tui_term_width): Rename termWidth.
11020 (tui_set_term_width_to): Rename setTermWidthTo.
11021 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11022 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11023 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11024 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11025 (tui_source_windows): Rename sourceWindows.
11026 (tui_clear_source_windows): Rename clearSourceWindows.
11027 (tui_clear_source_windows_detail): Rename
11028 clearSourceWindowsDetail.
11029 (tui_clear_win_detail): Rename clearWinDetail.
11030 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11031 (tui_default_tab_len): Rename tuiDefaultTabLen.
11032 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11033 (tui_win_with_focus): Rename tuiWinWithFocus.
11034 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11035 (tui_layout_def): Rename tuiLayoutDef.
11036 (tui_win_resized): Rename tuiWinResized.
11037 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11038 (tui_next_win): Rename tuiNextWin.
11039 (tui_prev_win): Rename tuiPrevWin.
11040 (tui_add_to_source_windows): Rename addToSourceWindows.
11041 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11042 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11043 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11044 * tui/tui.c, tui/tui-data.c: Ditto.
11045 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11046 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11047
a358af15
AC
11048 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11049 (struct symtab): Declare.
11050 (tui_set_source_content): Rename tuiSetSourceContent.
11051 (tui_show_symtab_source): Rename tuiShowSource.
11052 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11053 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11054 * tui/tui-source.c: Update copyright. Update references.
11055 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11056 * tui/tui-stack.c: Update references.
11057
a21fcd8f
AC
11058 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11059 (struct tui_win_info): Declare.
11060 (tui_scroll_forward): Rename tuiScrollForward.
11061 (tui_scroll_backward): Rename tuiScrollBackward.
11062 (tui_scroll_left): Rename tuiScrollLeft.
11063 (tui_scroll_right): Rename tuiScrollRight.
11064 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11065 (tui_resize_all): Rename tuiResizeAll.
11066 (tui_refresh_all_win): Rename tuiRefreshAll.
11067 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11068 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11069 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11070 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11071
edae1ccf
AC
11072 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11073 (tui_erase_data_content): Rename tuiEraseDataContent.
11074 (tui_display_all_data): Rename tuiDisplayAllData.
11075 (tui_check_data_values): Rename tuiCheckDataValues.
11076 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11077 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11078 (tui_first_data_element_no_in_line): Rename
11079 tuiFirstDataElementNoInLine.
11080 (tui_delete_data_content_windows): Rename
11081 tuiDeleteDataContentWindows.
11082 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11083 (tui_display_data_from): Rename tuiDisplayDataFrom.
11084 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11085 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11086 * tui/tui-win.c, tui/tui-regs.c: Update references.
11087 * tui/tui-layout.c, tui/tui.c: Update references.
11088
ec7d9e56
AC
11089 * tui/tui-wingeneral.h: Update copyright.
11090 (m_allBeVisible): Delete macro.
8a1dac83 11091 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11092 (struct tui_gen_win_info): Declare.
11093 (struct tui_win_info): Declare.
11094 (tui_unhighlight_win): Rename unhighlightWin.
11095 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11096 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11097 (tui_make_window): Rename makeWindow.
11098 (tui_copy_win): Rename copyWin.
11099 (tui_box_win): Rename boxWin.
11100 (tui_highlight_win): Rename highlightWin.
11101 (tui_check_and_display_highlight_if_needed): Rename
11102 checkAndDisplayHighlightIfNeeded.
11103 (tui_refresh_all): Rename refreshAll.
11104 (tui_delete_win): Rename tuiDelwin.
11105 (tui_refresh_win): Rename tuiRefreshWin.
11106 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11107 (tui_make_visible, tui_make_invisible): New functions.
11108 (tui_make_all_visible, tui_make_all_invisible): New functions.
11109 (make_all_visible): Rename makeAllVisible.
11110 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11111 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11112 * tui/tui-windata.c, tui/tui-win.c: Update references.
11113 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11114 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11115
1e52e2eb
MK
111162004-02-06 Mark Kettenis <kettenis@gnu.org>
11117
11118 * proc-api.c (write_with_trace): Initialize local variable to
11119 silence compiler warning.
11120
f80bda8e
AC
111212004-02-06 Andrew Cagney <cagney@redhat.com>
11122
11123 * tui/tui-source.h: Do not include "defs.h".
11124 (struct tui_win_info): Declare.
11125 (tui_set_source_content_nil): Declare.
11126 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11127 (union tui_line_or_address): Rename _TuiLineOrAddress.
11128 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11129 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11130 (tui_update_source_window_as_is): Rename
11131 tuiUpdateSourceWindowAsIs.
11132 (tui_update_source_windows_with_addr): Rename
11133 tuiUpdateSourceWindowsWithAddr.
11134 (tui_update_source_windows_with_line): Rename
11135 tuiUpdateSourceWindowsWithLine.
11136 (tui_clear_source_content): Rename tuiClearSourceContent.
11137 (tui_erase_source_content): Rename tuiEraseSourceContent.
11138 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11139 (tui_show_source_content): Rename tuiShowSourceContent.
11140 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11141 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11142 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11143 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11144 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11145 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11146 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11147 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11148 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11149 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11150 (struct tui_win_info): Declare.
11151 * tui/tui-stack.c: Update references.
11152 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11153 * tui/tui-win.c, tui/tui-source.c: Ditto.
11154 * tui/tui.c, tui/tui-disasm.c: Ditto.
11155
9fbfb822
MK
111562004-02-06 Mark Kettenis <kettenis@gnu.org>
11157
11158 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11159 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11160
03cebad2
MK
111612004-02-05 Mark Kettenis <kettenis@gnu.org>
11162
11163 * infrun.c (handle_inferior_event): Allow for breakpoint
11164 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11165 and SIGEMT. Update comments.
11166 * NEWS (Revised SPARC target): Mention support for non-executable
11167 stack.
11168
290281b1
MK
111692004-02-04 Mark Kettenis <kettenis@gnu.org>
11170
11171 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11172 * inftarg.c: Update copyright year.
11173 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11174 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11175 (sparc_xfer_wcookie): New function.
11176 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11177 * Makefile.in (sparc-nat.o): Update dependencies.
11178 * config/sparc/nm-nbsd.h: Include "target.h".
11179 (NATIVE_XFER_WCOOKIE): New define.
11180 (sparc_xfer_wcookie): New prototype.
11181
212161df
AC
111822004-02-04 Andrew Cagney <cagney@redhat.com>
11183
11184 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11185 SYSCALL_TRAP function.
11186 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11187
6e4c6c91
DJ
111882004-02-04 Andrew Cagney <cagney@redhat.com>
11189 Daniel Jacobowitz <drow@mvista.com>
11190
11191 * objfiles.h: Delete comments refering to inside_entry_func and
11192 DEPRECATED_FRAME_CHAIN_VALID.
11193 * defs.h (inside_entry_func): Update prototype..
11194 * blockframe.c (inside_entry_func): Rename to
11195 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11196 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11197
cae688ec
JJ
111982004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11199
11200 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11201 outside of #ifdef SOLIB_ADD region.
11202 (do_restore_lang_radix_cleanup): Ditto.
11203 (resolve_pending_breakpoint): Ditto.
11204
19217676
AC
112052004-02-03 Andrew Cagney <cagney@redhat.com>
11206
11207 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11208 (process_note_abi_tag_sections): Delete unused function.
11209 (ia64_read_fp): Delete unused function.
11210 (gdbarch_extract_struct_value_address): Delete declaration.
11211
876753be
AC
112122004-02-02 Andrew Cagney <cagney@redhat.com>
11213
11214 * vax-tdep.c (vax_frame_chain): Delete call to
11215 deprecated_inside_entry_file.
11216 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11217
d4f10bf2
MK
112182004-02-02 Mark Kettenis <kettenis@gnu.org>
11219
11220 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11221 column that's "empty" or "same value" when eliminating REG_RA
11222 rules.
11223
cae688ec
JJ
112242004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11225
11226 * NEWS: Add information about new pending breakpoint support.
11227
0101ce28
JJ
112282004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11229
11230 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11231 and pending fields for pending breakpoint support.
11232 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11233 (condition_command): Only parse condition if not a pending
11234 breakpoint.
11235 (print_one_breakpoint): Add support for pending breakpoints.
11236 (describe_other_breakpoints): Add checks to verify we are not
11237 dealing with pending breakpoints.
11238 (check_duplicates): Don't check pending breakpoints.
11239 (set_raw_breakpoint): Initialize pending flag.
11240 (do_restore_lang_radix_cleanup): New cleanup routine.
11241 (resolve_pending_breakpoint): New function.
11242 (re_enable_breakpoints_in_shlibs): Try and resolve any
11243 pending breakpoints via resolve_pending_breakpoint.
11244 (mention): Add pending breakpoint support.
11245 (parse_breakpoint_sals): Add new parameter to pass to
11246 decode_line_1 to indicate silent errors when files or functions
11247 are not found. Change all callers.
11248 (do_captured_parse_breakpoint): New function.
11249 (break_command_1): Change prototype to return an rc value and to
11250 take an optional pending breakpoint pointer. Support creating
11251 a pending breakpoint if a "not found" form of error occurs when
11252 parsing the breakpoint. Also support resolving an existing pending
11253 breakpoint and be silent if the resolution fails.
11254 (create_breakpoints): Change prototype to take pending breakpoint
11255 pointer. When resolving a pending breakpoint, use the new pointer
11256 to provide a conditional or commands added by the end-user.
11257 (delete_breakpoint): Add appropriate check for pending.
11258 (breakpoint_re_set_one): Ditto.
11259 (do_enable_breakpoint): Ditto.
11260
8d577d32
DC
112612004-02-02 David Carlton <carlton@kealia.com>
11262
11263 * valops.c (enum oload_classification): New.
11264 (find_overload_match): Break implementation into separate
11265 functions; delete #if 0'd code; look for symbols within
11266 namespaces.
11267 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11268 (find_oload_champ,oload_method_static,classify_oload_match): New.
11269 * cp-support.h: Add declaration for cp_func_name; update
11270 declaration for make_symbol_overload_list.
11271 * cp-support.c (cp_func_name): New.
11272 (overload_list_add_symbol): Fix comment, use
11273 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11274 (make_symbol_overload_list): Take a function name and a namespace
11275 instead of a symbol; change implementation.
11276 (make_symbol_overload_list_using): New.
11277 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11278
22e8e3c7
FF
112792004-02-02 Fred Fish <fnf@redhat.com>
11280
11281 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11282 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11283 * remote-sim.c (gdb_os_write_stderr): Write output to
11284 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11285 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11286 gdb_stderr stream and update copyright years.
22e8e3c7 11287
6b753f60
DJ
112882004-02-01 Daniel Jacobowitz <drow@mvista.com>
11289
11290 * Makefile.in (mips-linux-nat.o): Update dependencies.
11291 * mips-linux-nat.c: Include mips-tdep.h.
11292
112932004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11294
11295 * sol-thread.c (sol_thread_xfer_partial): New function.
11296 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11297 (init_sol_core_ops): Likewise.
11298
11299 * procfs.c (procfs_xfer_partial): New function.
11300 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11301 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11302
11303 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11304 procfs_xfer_auxv function.
11305
11306 * procfs.c (procfs_make_note_section): If we can read
11307 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11308 * linux-proc.c (linux_make_note_section): Likewise.
11309
11310 * auxv.h: New file.
11311 * auxv.c: New file.
11312 * Makefile.in (auxv_h): New variable.
11313 (COMMON_OBS): Add auxv.o here.
11314 (auxv.o): New target.
11315
11316 * corelow.c (core_xfer_partial): New function.
11317 (init_core_ops): Use it for core_ops.to_xfer_partial.
11318
11319 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11320 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11321 macro if that is defined.
11322
fa5281d0
DJ
113232004-02-01 Daniel Jacobowitz <drow@mvista.com>
11324
11325 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11326 and check the specified thread for each breakpoint.
11327 * breakpoint.h (bpstat_stop_status): Update prototype.
11328 * infrun.c (handle_inferior_event): Update calls to
11329 bpstat_stop_status.
11330
26ee262d
DJ
113312004-02-01 Daniel Jacobowitz <drow@mvista.com>
11332
11333 * Makefile.in (cli-cmds.o): Add $(readline_h).
11334
d9b52655
DJ
113352004-02-01 Daniel Jacobowitz <drow@mvista.com>
11336
11337 * cli/cli-cmds.c: Include readline.h.
11338 (complete_command): Pass the start of the last word to
11339 complete_line.
11340
9709f61c
DJ
113412004-01-31 Daniel Jacobowitz <drow@mvista.com>
11342
11343 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11344 argument, and change first argument to a CORE_ADDR.
11345 * breakpoint.h (bpstat_stop_status): Update prototype.
11346 * infrun.c (adjust_pc_after_break): Add a new comment.
11347 (handle_inferior_event): Update calls to bpstat_stop_status.
11348
4f1280bb
DJ
113492004-01-31 Daniel Jacobowitz <drow@mvista.com>
11350
11351 * breakpoint.h: Update copyright years.
11352
4fa8626c
DJ
113532004-01-31 Daniel Jacobowitz <drow@mvista.com>
11354
11355 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11356 (bpstat_stop_status): Don't decrement PC.
11357 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11358 prototype.
11359 * infrun.c (adjust_pc_after_break): New function.
11360 (handle_inferior_event): Call it, early. Remove later references
11361 to DECR_PC_AFTER_BREAK.
11362 (normal_stop): Add commentary.
11363
fad0733a
DJ
113642004-01-31 Daniel Jacobowitz <drow@mvista.com>
11365
11366 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11367 2004-01-27 double-free fix.
11368
42cdca6c
MK
113692004-01-31 Mark Kettenis <kettenis@gnu.org>
11370
11371 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11372 (sparc32_frame_prev_register): Handle StackGhost.
11373 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11374
932d5416
RM
113752004-01-29 Roland McGrath <roland@redhat.com>
11376
11377 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11378 * configure: Regenerated.
11379
11380 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11381 * Makefile.in (procfs.o): Add dep.
11382
47d3492a
AC
113832004-01-28 Andrew Cagney <cagney@redhat.com>
11384
11385 * tui/tui-stack.h: Update copyright.
11386 (struct frame_info): Add opaque declaration.
11387 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11388 (tui_show_locator_content): Rename tuiShowLocatorContent.
11389 (tui_show_frame_info): Rename tuiShowFrameInfo.
11390 * tui/tui-stack.c: Update copyright. Update references.
11391 * tui/tui-winsource.c: Update references.
11392 * tui/tui-win.c: Update references.
11393 * tui/tui-layout.c: Update references.
11394 * tui/tui-hooks.c: Update copyright, update references.
11395 * tui/tui.c: Update copyright, update references.
11396 * tui/tui-disasm.c: Update references.
11397
5d51ca54
DC
113982004-01-28 David Carlton <carlton@kealia.com>
11399
11400 * dwarf2read.c (add_partial_structure): Use demangled name if
11401 namespace equals "".
11402
086ed43d
JB
114032004-01-27 Jim Blandy <jimb@redhat.com>
11404
11405 Clean up misapplied patch:
11406 * dwarf2read.c (determine_prefix): Change one of the two forward
11407 declarations for 'determine_prefix_aux' to a declaration for this.
11408 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11409 argument to 'die_specification'.
11410
2a35147e
JB
11411 * dwarf2read.c (read_func_scope): Re-indent comment.
11412
a355c7de 114132004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11414
a355c7de
AC
11415 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11416 b->exp to NULL after freeing so that error during re-parsing or
11417 evaluation of expressions associated with breakpoint don't
11418 eventually lead to re-freeing of storage.
11419 Committed by Andrew Cagney.
11420
63ff5125
AC
114212004-01-27 Andrew Cagney <cagney@redhat.com>
11422
11423 * source.c (ambiguous_line_spec): Delete undefined declaration.
11424 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11425 (m32r_set_server_address, m32r_set_download_path): Ditto.
11426 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11427
e142c38c
DJ
114282004-01-27 Daniel Jacobowitz <drow@mvista.com>
11429
11430 * dwarf2read.c: Update calls to changed and renamed functions, and
11431 references to moved variables.
11432
11433 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11434 language, language_defn, list_in_scope, and ftypes members.
11435 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11436 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11437 (baseaddr): Remove globals.
11438
11439 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11440 (set_cu_language, die_is_declaration, die_specification)
11441 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11442 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11443 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11444 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11445
11446 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11447 cu.list_in_scope. Don't initialize cu_header_offset.
11448 (add_partial_symbol): Add local baseaddr.
11449 (psymtab_to_symtab_1): Add local baseaddr. Use
11450 objfile->section_offsets for consistency. Don't initialize
11451 cu_header_offset; do initialize cu.header.offset and
11452 cu.list_in_scope.
11453 (read_file_scope, read_func_scope, read_lexical_block_scope)
11454 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11455
c6e06ede
MC
114562004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11457
fb328ecc 11458 * PROBLEMS: Add gdb/1516.
c6e06ede 11459
48184fd4
AC
114602003-12-29 Robert Millan <robertmh@gnu.org>
11461
11462 Patch committed by Andrw Cagney.
11463 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11464 * configure.tgt: Match knetbsd*-gnu.
11465
c1321b30
AC
114662004-01-26 Andrew Cagney <cagney@redhat.com>
11467
f3699be3
AC
11468 * breakpoint.c (catch_command_1): Delete #ifdef code.
11469 (catch_fork_command_1): Delete #ifdef wrapper.
11470 (catch_exec_command_1): Ditto.
11471 (catch_load_command_1): Ditto.
11472 (catch_unload_command_1): Ditto.
11473
c1321b30
AC
11474 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11475 (catch_breakpoint): Delete #if0ed function.
11476 (disable_catch_breakpoint): Ditto.
11477 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11478 (disable_catch, enable_catch, delete_catch): Ditto.
11479
b4501125
AC
114802004-01-26 Andrew Cagney <cagney@redhat.com>
11481
11482 * remote.c (echo_check, quit_flag): Delete variables.
11483 (cisco_kernel_mode): Delete variable.
11484 (minitelnet_return, tty_input, escape_count): Delete variables.
11485 (remote_cisco_mode): Delete variable.
11486 (remote_cisco_open, remote_cisco_close): Delete function.
11487 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11488 (init_remote_cisco_ops): Delete function.
11489 (_initialize_remote): Do not install "remote cisco" code.
11490 (read_frame): Delete cisco specific code.
11491 (remote_info_process): Delete function.
11492 (remote_wait): Delete cisco specific code.
11493 (remote_cisco_section_offsets): Delete function.
11494 (remote_cisco_objfile_relocate): Delete function.
11495 (remote_async_wait): Delete cisco specific code.
11496 (minitelnet, readtty, readsocket): Delete function.
11497
74055713
AC
114982004-01-26 Andrew Cagney <cagney@redhat.com>
11499
11500 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11501 comments mentioning extract_returned_value_address.
11502 * infcmd.c (print_return_value): Update. Add comments on
11503 extract_returned_value_address.
11504 * stack.c (return_command): Add comments on
11505 extract_returned_value_address.
11506 * values.c: Update comment.
11507 * m32r-tdep.c: Update comment.
11508 * sparc-tdep.c: Update comment.
11509 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11511 * sh64-tdep.c (sh64_gdbarch_init): Update.
11512 * sh-tdep.c (sh_gdbarch_init): Update.
11513 * s390-tdep.c (s390_gdbarch_init): Update.
11514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11515 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11516 * m68k-tdep.c (m68k_gdbarch_init): Update.
11517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11518 * m32r-tdep.c (m32r_gdbarch_init): Update.
11519 * ia64-tdep.c (ia64_gdbarch_init): Update.
11520 * h8300-tdep.c (h8300_gdbarch_init): Update.
11521 * frv-tdep.c (frv_gdbarch_init): Update.
11522 * arm-tdep.c (arm_gdbarch_init): Update.
11523 * alpha-tdep.c (alpha_gdbarch_init): Update.
11524
a67af2b9
AC
115252004-01-26 Andrew Cagney <cagney@redhat.com>
11526
11527 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11528 SYMBOL_LOCATION_FUNCS
11529 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11530 "struct symbol_ops".
11531 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11532 type to "struct symbol_ops".
11533 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11534 (struct symbol): Replace ".aux_value.loc.funcs" and
11535 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11536 (SYMBOL_OBJFILE): Delete macro.
11537 (SYMBOL_LOCATION_FUNCS): Delete macro.
11538 (SYMBOL_LOCATION_BATON): Update.
11539 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11540 intead of SYMBOL_LOCATION_FUNCS.
11541 * ax-gdb.c (gen_var_ref): Ditto.
11542 * printcmd.c (address_info): Ditto.
11543 * findvar.c (read_var_value): Ditto.
11544 (symbol_read_needs_frame): Ditto.
11545
c034e007
AC
115462004-01-26 Andrew Cagney <cagney@redhat.com>
11547
11548 * dwarf2read.c (read_func_scope): Document frame-base hack.
11549
bb472c1e
MK
115502004-01-25 Mark Kettenis <kettenis@gnu.org>
11551
11552 * infcmd.c (print_return_value): Plug memory leak; delete
11553 ui_stream object. Rename argument `structure_return' to
11554 `struct_return'.
11555
c8e737d5
MK
115562004-01-25 Mark Kettenis <kettenis@gnu.org>
11557
f941662f
MK
11558 * infcmd.c (print_return_value): Wrap long lines.
11559 (finish_command_continuation, finish_command): Remove unused
11560 variable `funcaddr'. Fix some coding-standards problems.
11561
c558d81a 11562 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11563 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11564 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11565 TDEP->fpregset to zero.
11566
bf1e5861 11567 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11568 floating-point registers for traditional NetBSD core files.
11569 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11570 TDEP->sizeof_fpregset here.
11571
4c72d57a
MK
115722004-01-25 Mark Kettenis <kettenis@gnu.org>
11573
566626fa
MK
11574 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11575 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11576 function with code split out from
11577 sparc32nbsd_sigcontext_frame_cache.
11578 (sparc32nbsd_sigcontext_frame_cache): Use
11579 sparc32nbsd_sigcontext_saved_regs.
11580 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11581 OpenBSD.
11582 * sparcobsd-tdep.c: New file.
11583 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11584 (sparcobsd-tdep.o): New dependency.
11585 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11586 * config/sparc/obsd.mt: New file.
11587
4c72d57a
MK
11588 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11589 TDEP->fpregset to be initialized to enable core file register
11590 sets.
11591
7e5e9f88
MK
115922004-01-24 Mark Kettenis <kettenis@gnu.org>
11593
f0f207fd 11594 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11595 Add opaque declarations.
11596 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11597 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11598 function with code split out from
11599 sparc64nbsd_sigcontext_frame_cache.
11600 (sparc64nbsd_sigcontext_frame_cache): Use
11601 sparc64nbsd_sigcontext_saved_regs.
11602 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11603 OpenBSD.
11604 * sparc64obsd-tdep.c: New file.
11605 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11606 (sparc64obsd-tdep.o): New dependency.
11607 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11608 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11609 * config/sparc/obsd64.mt: New file.
11610
690668cc
MK
11611 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11612 read the instruction at PC.
11613
7e5e9f88
MK
11614 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11615 value of GDB_OSABI_DEFAULT.
11616 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11617 instead of GDB_OSABI_NETBSD_AOUT.
11618
68b6dce9
NR
116192004-01-24 Nick Roberts <nick@nick.uklinux.net>
11620
11621 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11622 copyright.
11623
080ce8c0
AC
116242004-01-23 Andrew Cagney <cagney@redhat.com>
11625
11626 * printcmd.c (display_command): Replace tui_set_display call with
11627 tui_set_layout_for_display_command.
11628 * tui/tui.h (enum tui_win_type): Define.
11629 (tui_set_layout): Delete declaration.
11630 (tui_set_layout_for_display_command): Rename set_tui_layout.
11631 * tui/tui-data.h (enum tui_layout_type): Define.
11632 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11633 "tui.h".
11634 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11635 (tui_default_win_height): Rename tuiDefaultWinHeight.
11636 (tui_default_win_viewport_height): Rename
11637 tuiDefaultWinViewportHeight.
11638 (tui_set_layout): RenametuiSetLayout.
11639 * tui/tui-layout.c: Update references.
11640 * tui/tui.c: Update references.
11641 * tui/tui-disasm.c: Update references.
11642
b368761e
DC
116432004-01-23 David Carlton <carlton@kealia.com>
11644
11645 Partial workaround for PR c++/1511:
11646 * cp-namespace.c: Include frame.h.
11647 (cp_lookup_transparent_type): New
11648 (cp_lookup_transparent_type_loop): New.
11649 * cp-support.h: Declare cp_lookup_transparent_type.
11650 * symtab.c (basic_lookup_transparent_type): Renamed from
11651 lookup_transparent_type.
11652 (lookup_transparent_type): Replace old body by a call to
11653 current_language->la_lookup_transparent_type.
11654 * symtab.h: Update copyright. Declare
11655 basic_lookup_transparent_type.
11656 * language.h: Update copyright.
11657 (struct language_defn): Add la_lookup_transparent_type.
11658 * language.c: Update copyright.
11659 (unknown_language_defn): Add basic_lookup_transparent_type.
11660 (auto_language_defn): Add basic_lookup_transparent_type.
11661 (local_language_defn): Add basic_lookup_transparent_type.
11662 * ada-lang.c: Update copyright.
11663 (ada_language_defn): Add basic_lookup_transparent_type.
11664 * c-lang.c: Update copyright.
11665 (c_language_defn): Add basic_lookup_transparent_type.
11666 (cplus_language_defn): Add basic_lookup_transparent_type.
11667 (asm_language_defn): Add basic_lookup_transparent_type.
11668 (minimal_language_defn): Add basic_lookup_transparent_type.
11669 * f-lang.c: Update copyright.
11670 (f_language_defn): Add basic_lookup_transparent_type.
11671 * jv-lang.c: Update copyright.
11672 (java_language_defn): Add basic_lookup_transparent_type.
11673 * m2-lang.c: Update copyright.
11674 (m2_language_defn): Add basic_lookup_transparent_type.
11675 * objc-lang.c: Update copyright.
11676 (objc_language_defn): Add basic_lookup_transparent_type.
11677 * p-lang.c: Update copyright.
11678 (p_language_defn): Add basic_lookup_transparent_type.
11679 * scm-lang.c: Update copyright.
11680 (scm_language_defn): Add basic_lookup_transparent_type.
11681 * Makefile.in (cp-namespace.o): Depend on frame.h.
11682
fdde2d81
DC
116832004-01-23 David Carlton <carlton@kealia.com>
11684
11685 Patch for PR c++/1520:
11686 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11687 properly if we have a specification die.
11688 (determine_prefix_aux): Rename from determine_prefix.
11689 (determine_prefix): Like the old determine_prefix, but never
11690 returns NULL.
11691
5b828b6b
TR
116922004-01-23 Theodore A. Roth <troth@openavr.org>
11693
11694 * avr-tdep.c: Update copyright.
11695 (avr_iaddr_p): Delete unused function.
11696 (avr_saddr_p): Delete unused function.
11697
a1b8c067
DC
116982004-01-23 David Carlton <carlton@kealia.com>
11699
11700 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11701 Fix for PR symtab/1534.
11702
f2cab569
MK
117032004-01-23 Mark Kettenis <kettenis@gnu.org>
11704
11705 * NEWS (New native configurations): Mention OpenBSD/sparc and
11706 OpenBSD/sparc64.
11707 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11708 * configure.host: Likewise.
11709 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11710 handler for OpenBSD.
11711 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11712
642d8300
MK
117132004-01-22 Mark Kettenis <kettenis@gnu.org>
11714
89aac506
MK
11715 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11716 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11717
36662fde
MK
11718 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11719 * cli/cli-cmds.c (shell_escape): Likewise.
11720
642d8300
MK
11721 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11722 OpenBSD .note.openbsd.ident sections.
11723
fae299cd
DC
117242004-01-22 David Carlton <carlton@kealia.com>
11725
11726 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11727 get_scope_pc_bounds.
11728 (read_file_scope): Ditto.
11729 (get_scope_pc_bounds): New function, produced by extracting code
11730 from the above two functions, consolidating it, and adding support
11731 for DW_TAG_namespace.
11732
a49d618c
MK
117332004-01-22 Mark Kettenis <kettenis@gnu.org>
11734
11735 * osabi.c (MAX_NOTESZ): New define.
11736 (check_note): New function.
11737 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11738 check_note.
11739
fe61caab
RM
117402004-01-21 Roland McGrath <roland@redhat.com>
11741
11742 * MAINTAINERS (write after approval): Add myself.
11743
ec145965
EZ
117442004-01-21 Eli Zaretskii <eliz@gnu.org>
11745
11746 * utils.c (init_page_info): Move declarations of `rows' and
11747 `cols' before the __GO32__-specific code. Move the closing brace
11748 outside the #ifdef __GO32__..#endif block.
11749 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11750
877522db
PB
117512004-01-21 Paul Brook <paul@codesourcery.com>
11752
11753 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11754 BPSTAT_WHAT_CHECK_SHLIBS.
11755
dbf5be1c
PB
117562004-01-21 Paul Brook <paul@codesourcery.com>
11757
11758 * MAINTAINERS: Add myself to write-after-approval.
11759
81f08b92
AC
117602004-01-20 Andrew Cagney <cagney@redhat.com>
11761
5a1efed7
AC
11762 * ax-gdb.c (print_axs_value): Delete unused function.
11763 * jv-lang.c (java_lookup_type): Delete unused function.
11764 * cli/cli-dump.c (dump_filetype): Delete unused function.
11765 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11766 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11767 (mips_getstring): Delete unused function.
11768 (pmon_insert_breakpoint): Delete #if0ed function.
11769 (PMON_MAX_BP): Delete #if0ed MACRO.
11770 (mips_pmon_bp_info): Delete #if0ed variable.
11771 (pmon_remove_breakpoint): Delete #if0ed function.
11772 * monitor.c (monitor_write_even_block): Delete unused function.
11773 (monitor_write_memory_block): Delete #if0ed code.
11774 * dink32-rom.c (dink32_load): Delete unused function.
11775 (_initialize_dink32_rom): Delete #if0ed code.
11776 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11777
b0a30fce
AC
11778 * tui/tui-command.c: Update references.
11779 * tui/tui-io.c: Update references.
11780 * tui/tui-command.h: Update copyright.
11781 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11782
81f08b92
AC
11783 * source.c (ambiguous_line_spec): Delete never-defined function.
11784 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11785 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11786 * cli/cli-cmds.c (validate_comname): Ditto.
11787
65f05602
AC
11788 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11789 "tui-data.h".
11790 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11791 (tui_show_disassem): Rename tuiShowDisassem.
11792 (tui_show_disassem_and_update_source): Rename
11793 tuiVerticalDisassemScroll.
11794 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11795 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11796 * tui/tui.h: Update copyright.
11797 (enum tui_status): Define.
11798 * tui/tui-data.h (enum tui_scroll_direction): Define.
11799 * tui/tui-disasm.c: Update copyright. Update references.
11800 * tui/tui-winsource.c: Update copyright. Update references.
11801 * tui/tui-win.c: Update references.
11802 * tui/tui-layout.c: Update references.
11803
6bb0384f
AC
118042004-01-20 Andrew Cagney <cagney@redhat.com>
11805
11806 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11807 sym2 to start of block.
11808
9175c9a3
MC
118092004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11810
11811 * MAINTAINERS: Delete mmalloc.
11812 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11813 * NEWS: Mention removal of --with-malloc.
11814 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11815 * config.in: Regenerate.
11816 * configure: Regenerate.
6bb0384f
AC
11817 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11818 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11819 * gdbinit.in: Remove mmalloc.
11820 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11821 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11822 * config/i386/go32.mh: Likewise.
11823 * config/i386/interix.mh: Likewise.
11824 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11825
4fcef00a
JJ
118262004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11827
11828 * linespec.c (decode_variable, symtab_from_filename): Call
11829 error_silent with error message instead of throwing an exception
11830 directly.
11831 * defs.h (error_silent, error_output_message): Add prototypes.
11832 (catch_exceptions_with_msg): Ditto.
11833 * utils.c (error_silent, error_output_message): New functions.
11834 * top.c (catch_exceptions_with_msg): New function.
11835
8e94b928
NR
118362004-01-20 Nick Roberts <nick@nick.uklinux.net>
11837
11838 * mi/mi-cmds.h (enum print_values): Add definition.
11839
11840 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11841 type and value for simple data types and just the name and type
11842 for complex ones, if required.
11843
11844 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11845 children, if required.
11846
a02d6af8
KB
118472004-01-19 Kevin Buettner <kevinb@redhat.com>
11848
11849 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11850 unused declarations.
11851
78a4a9b9
AC
118522004-01-19 Andrew Cagney <cagney@redhat.com>
11853
11854 * top.h (mapped_symbol_files): Delete declaration.
11855 * main.c (captured_main): Delete option "m" and "mapped".
11856 * objfiles.c (mapped_symbol_files): Delete variable.
11857 * symfile.c (symbol_file_command): Delete mmap code.
11858 (symbol_file_add_with_addrs_or_offsets): Ditto.
11859 (add_symbol_file_command, reread_separate_symbols): Ditto.
11860 * objfiles.h (OBJF_MAPPED): Delete.
11861 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11862 (free_objfile) [USE_MMALLOC]: Ditto.
11863 (open_existing_mapped_file): Delete function.
11864 (open_mapped_file): Delete function.
11865 (map_to_file): Delete function.
11866
2dbd5e30
KB
118672004-01-19 Kevin Buettner <kevinb@redhat.com>
11868
11869 * infrun.c (step_into_function): Account for possible breakpoint
11870 adjustment when computing ``stop_func_start''.
11871
437b434f
KB
118722004-01-19 Kevin Buettner <kevinb@redhat.com>
11873
11874 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11875 the region size against the size of a pointer, not the size of
11876 a register as given by DEPRECATED_REGISTER_SIZE.
11877
55fb0713
AC
118782004-01-19 Andrew Cagney <cagney@redhat.com>
11879
11880 * tui/tui-regs.h: Include "tui-data.h".
11881 (tuiFirstRegElementNoInLine): Delete declaration.
11882 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11883 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11884 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11885 (tui_calculate_regs_column_count): Rename
11886 tuiCalculateRegsColumnCount.
11887 (tui_check_register_values): Rename tuiCheckRegisterValues.
11888 (tui_show_registers): Rename tuiShowRegisters.
11889 (tui_display_registers_from_line): Rename
11890 tuiDisplayRegistersFromLine.
11891 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11892 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11893 (tui_first_reg_element_no_inline): Rename
11894 tuiFirstRegElementNoInLine.
11895 * tui/tui-data.h: Update copyright.
11896 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11897 * tui/tui-windata.c: Update copyright, update references.
11898 * tui/tui-regs.c: Update copyright, update references.
11899 * tui/tui-win.c: Update copyright, update references.
11900 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11901
cebe9500
AC
119022004-01-18 Andrew Cagney <cagney@redhat.com>
11903
bcdf1568
AC
11904 * tui/tui-io.c: Update copyright.
11905 (key_is_end_sequence, key_is_backspace): New functions.
11906 (key_is_command_char, key_is_start_sequence): New function.
11907 (tui_getc): Update references.
11908 * tui/tui-io.h: Update copyright.
11909 (m_tuiStartNewLine): Delete macro.
11910 (m_isBackspace, m_isDeleteChar): Delete macros.
11911 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11912 (m_isNextPage, m_isPrevPage): Delete macros.
11913 (m_isLeftArrow, m_isRightArrow): Delete macros.
11914 (m_isXdbStyleCommandChar): Delete macro.
11915 (key_is_start_sequence): Declare, replace m_isStartSequence.
11916 (key_is_end_sequence): Declare, replace m_isEndSequence.
11917 (key_is_backspace): Declare ,replace m_isBackspace.
11918 (key_is_command_char): Declare, replace m_isCommandChar.
11919 * tui/tui-command.c: Update copyright.
11920 (tuiDispatchCtrlChar): Update references.
11921
130d87e6
AC
11922 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11923 tuiSourceWin.h.
11924
d7b2e967
AC
11925 * tui/tui-command.c: Rename tui/tuiCommand.c.
11926 * tui/tui-command.h: Rename tui/tuiCommand.h.
11927 * tui/tui-data.c: Rename tui/tuiData.c.
11928 * tui/tui-data.h: Rename tui/tuiData.h.
11929 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11930 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11931 * tui/tui-io.c: Rename tui/tuiIO.c.
11932 * tui/tui-io.h: Rename tui/tuiIO.h.
11933 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11934 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11935 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11936 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11937 * tui/tui-source.c: Rename tui/tuiSource.c.
11938 * tui/tui-source.h: Rename tui/tuiSource.h.
11939 * tui/tui-stack.c: Rename tui/tuiStack.c.
11940 * tui/tui-stack.h: Rename tui/tuiStack.h.
11941 * tui/tui-win.c: Rename tui/tuiWin.c.
11942 * tui/tui-win.h: Rename tui/tuiWin.h.
11943 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11944 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11945 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11946 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11947 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11948 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11949 * tui/tui-file.c: Update includes.
11950 * tui/tui-hooks.c: Update includes.
11951 * tui/tui-interp.c: Update includes.
11952 * tui/tui.c: Update includes.
11953 * Makefile.in: Update all tui/ dependencies.
11954 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11955
b2100910
AC
11956 * Makefile.in: Update copyright. Update dependencies.
11957
cebe9500
AC
11958 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11959 problem.
11960
c6f0559b
AC
119612004-01-18 Andrew Cagney <cagney@redhat.com>
11962
43e9390b
AC
11963 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11964 instead of register_gdbarch_init.
11965
c6f0559b
AC
11966 * remote-sds.c (tohex): Delete unused function. Update copyright.
11967 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11968 * v850-tdep.c (v850_register_virtual_size): Ditto.
11969 * target.c (normal_target_post_startup_inferior): Ditto.
11970 * source.c (ambiguous_line_spec): Ditto.
11971 * remote.c (adapt_remote_get_threadinfo): Ditto.
11972 * mi/mi-out.c (out_field_fmt): Ditto.
11973 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11974 (output_control_change_notification): Ditto.
11975 * m68k-tdep.c (m68k_register_byte): Ditto.
11976 (m68k_remote_breakpoint_from_pc): Ditto.
11977 * ui-out.c (init_ui_out_state): Delete unused declaration.
11978 * stabsread.c (search_value): Ditto.
11979 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11980 * maint.c (print_section_table): Ditto.
11981 * infrun.c (set_follow_fork_mode_command): Ditto.
11982
a8504492
MK
119832004-01-18 Mark Kettenis <kettenis@gnu.org>
11984
11985 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11986 DW_CFA_def_cfa_exporession. Add support for
11987 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11988 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11989
0bd8997e
AC
119902004-01-18 Andrew Cagney <cagney@redhat.com>
11991
11992 * ocd.c: Update copyright.
11993 (bdm_read_register_command): Delete unused function.
11994 (_initialize_remote_ocd): Delete commented out reference.
11995 (get_quoted_char, reset_packet): Delete #if0ed function.
11996 (output_packet, put_quoted_char): Delete #if0ed function.
11997 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11998 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11999 (BDM_BREAKPOINT): Delete #if0ed macro.
12000 (remote_timeout): Delete #if0ed variable.
12001
31bb40e4
MK
120022004-01-18 Mark Kettenis <kettenis@gnu.org>
12003
12004 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12005 (core-sol2.o): Remove dependency.
12006 * core-sol2.c: Remove file.
12007
887432a5
AC
120082004-01-17 Andrew Cagney <cagney@redhat.com>
12009
12010 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12011 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12012 enums.
12013
29182b13
DJ
120142004-01-17 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * remote.c: Update copyright years.
12017
2963ee1d
DJ
120182004-01-17 Daniel Jacobowitz <drow@mvista.com>
12019
12020 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12021
79d45cd4
AC
120222004-01-17 Andrew Cagney <cagney@redhat.com>
12023
ee300cd4
AC
12024 * mdebugread.c: Update copyright.
12025 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12026 (parse_type, parse_procedure): Ditto.
12027 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12028
fcacc9c2
AC
12029 * cris-tdep.c (cris_store_struct_return): Put back accidently
12030 deleted function.
12031
79d45cd4
AC
12032 * gdbarch.sh: Update copyright year.
12033 * gdbarch.h, gdbarch.c: Re-generate.
12034
b263358a
DJ
120352004-01-17 Daniel Jacobowitz <drow@mvista.com>
12036
12037 Suggested by George Anzinger.
12038 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12039 correct stack offset. Include unknown opcode numbers in the error
12040 message.
12041
931aecf5
AC
120422004-01-17 Andrew Cagney <cagney@redhat.com>
12043
12044 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12045 extract_struct_value_address, i386 does not set it.
12046 * sparc64-tdep.c (sparc64_init_abi): Do not set
12047 extract_struct_value_address, never called.
12048 (sparc64_extract_struct_value_address): Delete function.
12049 * m68hc11-tdep.c: Update copyright.
12050 (m68hc11_gdbarch_init): Delete redundant assignment of
12051 extract_struct_value_address.
12052 * i386-tdep.c: Update copyright.
12053 (i386_gdbarch_init): Do not set extract_struct_value_address,
12054 never called.
12055 (i386_extract_struct_value_address): Delete function.
12056 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12057 extract_struct_value_address, never called.
12058 (sparc32_extract_struct_value_address): #if 0 function. Add
12059 comments explaining its future.
12060
756fe439
DJ
120612004-01-17 Daniel Jacobowitz <drow@mvista.com>
12062
12063 * arm-tdep.c (arm_write_pc): New function.
12064 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12065
e74f0f02
DJ
120662004-01-17 Daniel Jacobowitz <drow@mvista.com>
12067
12068 * breakpoint.c (must_shift_inst_regs): Delete.
12069 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12070 and SHIFT_INST_REGS.
12071 * infcmd.c (step_1, step_1_continuation): Delete references to
12072 SHIFT_INST_REGS.
12073 * infrun.c (keep_going): Likewise.
12074 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12075 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12076
b6cb9035
AC
120772004-01-17 Andrew Cagney <cagney@redhat.com>
12078
444a1e2e
AC
12079 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12080 * gdbarch.h, gdbarch.c: Re-generate.
12081 * infcmd.c (print_return_value): Delete reference to
12082 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12083
def7e6ed
AC
12084 * cris-tdep.c (cris_gdbarch_init): Do not set
12085 deprecated_extract_struct_value_address.
12086
07be497a
AC
12087 * xstormy16-tdep.c: Update copyright.
12088 (xstormy16_extract_struct_value_address): Update to current
12089 extract struct value address interface.
12090 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12091 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12092 current extract struct value address interface.
12093 (sh64_gdbarch_init): Set extract_struct_value_address.
12094
6b4d5c91
AC
12095 * cris-tdep.c: Update copyright.
12096 (cris_extract_struct_value_address): Delete function.
12097 (struct_return_address): Delete variable.
12098 (cris_store_struct_return): Do not set struct_return_address.
12099
464e0365
AC
12100 * mcore-tdep.c: Update copyright.
12101 (mcore_extract_struct_value_address): Delete function. Update
12102 comments.
12103 (mcore_gdbarch_init): Update.
12104 * mn10300-tdep.c: Update copyright.
12105 (mn10300_extract_struct_value_address): Delete function.
12106 (mn10300_gdbarch_init): Update.
12107 * v850-tdep.c: Update copyright.
12108 (v850_extract_struct_value_address): Delete.
12109 (v850_gdbarch_init): Update.
12110 * ns32k-tdep.c: Update copyright.
12111 (ns32k_extract_struct_value_address): Delete.
12112 (ns32k_gdbarch_init): Update.
12113 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12114 (hppa_gdbarch_init): Update.
12115 * vax-tdep.c: Update copyright.
12116 (vax_extract_struct_value_address): Delete.
12117 (vax_gdbarch_init): Update.
12118
afb18d0f
AC
12119 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12120 * gdbarch.h, gdbarch.c: Re-generate.
12121 * procfs.c (procfs_fetch_registers): Delete reference to
12122 DEPRECATED_NPC_REGNUM.
12123 (procfs_store_registers): Ditto.
12124 * regcache.c (generic_target_write_pc): Simplify.
12125 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12126
a698f53e
AC
12127 * core-sol2.c (fetch_core_registers): Replace
12128 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12129
adc11376
AC
12130 * hppa-tdep.c: Update copyright year.
12131 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12132 NPC_REGNUM.
12133 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12134
b6cb9035
AC
12135 * mips-tdep.c (mips_write_pc): New function.
12136 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12137 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12138 (mips_find_saved_regs, mips_software_single_step: Ditto.
12139 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12140 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12141
6d82d43b
AC
121422004-01-17 Andrew Cagney <cagney@redhat.com>
12143
12144 * mips-tdep.c: Re-indent. Group functions by ABI.
12145
71bd6bd4
AC
121462004-01-17 Andrew Cagney <cagney@redhat.com>
12147
12148 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12149 * gdbarch.c: Re-generate.
12150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12151 DECR_PC_AFTER_BREAK to zero.
12152 * vax-tdep.c (vax_gdbarch_init): Ditto.
12153 * v850-tdep.c (v850_gdbarch_init): Ditto.
12154 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12155 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12156 * sh-tdep.c (sh_gdbarch_init): Ditto.
12157 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12158 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12159 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12160 * mips-tdep.c (mips_gdbarch_init): Ditto.
12161 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12163 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12165 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12166 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12168 * frv-tdep.c (frv_gdbarch_init): Ditto.
12169 * cris-tdep.c (cris_gdbarch_init): Ditto.
12170 * avr-tdep.c (avr_gdbarch_init): Ditto.
12171 * arm-tdep.c (arm_gdbarch_init): Ditto.
12172 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12173
a02abb62
JB
121742004-01-17 J. Brobecker <brobecker@gnat.com>
12175
12176 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12177 Delete, no longer used.
12178 (read_subrange_type): New function, mostly extracted from
12179 read_array_type().
12180 (read_array_type): Replace extracted code by call to
12181 read_subrange_type().
12182 (dwarf2_get_attr_constant_value): New function.
12183 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12184 (add_partial_symbol): Likewise.
12185 (process_die): Likewise.
12186 (new_symbol): Likewise.
12187 (read_type_die): Likewise.
12188
cf5b2f1b
AC
121892004-01-16 Andrew Cagney <cagney@redhat.com>
12190
12191 * symfile.c: Update copyright year.
12192 (compare_symbols): Delete unused function.
12193 * stabsread.c: Update copyright year.
12194 (lrs_general_complaint): Delete unused function.
12195 (ref_search_value): Ditto.
12196 (get_substring): Delete declaration.
12197 * sh64-tdep.c: Update copyright year.
12198 (sh64_get_gdb_regnum): Delete unused function.
12199 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12200 Delete unused function.
12201
d33b9831
MK
122022004-01-17 Mark Kettenis <kettenis@gnu.org>
12203
12204 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12205 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12206
7aea86e6
AC
122072004-01-16 Andrew Cagney <cagney@redhat.com>
12208
12209 Changes from Peter Schauer.
12210 * rs6000-tdep.c: Update copyright year.
12211 (rs6000_push_dummy_call): Update the stack pointer before
12212 accessing the corresponding stack region.
12213 * rs6000-nat.c: Update copyright year.
12214 (set_host_arch): Set "info.abfd" to "exec_bfd".
12215
26b0da32
MK
122162004-01-15 Mark Kettenis <kettenis@gnu.org>
12217
12218 * blockframe.c: Update copyright year.
12219 (inside_entry_func): Don't treat a zero PC specially.
12220
86fbe6cc
EZ
122212004-01-14 Elena Zannoni <ezannoni@redhat.com>
12222
12223 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12224 variable.
12225 (gcore_create_callback): Ditto. Skip any memory segment that has
12226 no permissions set.
12227
63d06c5c
DC
122282004-01-14 David Carlton <carlton@kealia.com>
12229
12230 Change symbols for C++ nested types to contain the fully qualified
12231 name, if possible. (At least in the DWARF-2 case.) Partial fix
12232 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12233 c++/895.
12234 * c-exp.y (qualified_type): Handle types nested within classes.
12235 * cp-namespace.c: Update comments.
12236 (cp_set_block_scope): Delete #if 0.
12237 (cp_lookup_nested_type): Handle types nested within classes.
12238 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12239 when appropriate.
12240 (add_partial_symbol): Add the name of the enclosing namespace to
12241 types.
12242 (pdi_needs_namespace): New.
12243 (add_partial_namespace): Tweak comment.
12244 (add_partial_structure): New.
12245 (psymtab_to_symtab_1): Initialize processing_current_prefix
12246 here...
12247 (process_die): instead of here.
12248 (read_structure_scope): Try to figure out the name of the class or
12249 namespace that the structure might be defined within.
12250 (read_enumeration): Generate fully-qualified names, if possible.
12251 (read_namespace): Don't set name to NULL.
12252 (die_specification): New.
12253 (new_symbol): Generate fully-qualified names for types.
12254 (read_type_die): Determine appropriate prefix.
12255 (determine_prefix): New.
12256 (typename_concat): New.
12257 (class_name): New.
12258 * valops.c (value_aggregate_elt): Pass NOSIDE to
12259 value_struct_elt_for_reference.
12260 (value_struct_elt_for_reference): Make static, add NOSIDE
12261 parameter, call value_maybe_namespace_elt as a last resort.
12262 (value_namespace_elt): Break out code into
12263 value_maybe_namespace_elt.
12264 (value_maybe_namespace_elt): New.
12265
87783b8b
AC
122662004-01-12 Andrew Cagney <cagney@redhat.com>
12267
12268 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12269 cooked floating-point registers.
12270 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12271 and value_to_register.
12272
6503b91e
AC
122732004-01-13 Andrew Cagney <cagney@redhat.com>
12274
12275 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12276 * gdbarch.c: Re-generate.
12277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12278 FUNCTION_START_OFFSET.
12279 * v850-tdep.c (v850_gdbarch_init): Ditto.
12280 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12281 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12282 * sh-tdep.c (sh_gdbarch_init): Ditto.
12283 * s390-tdep.c (s390_gdbarch_init): Ditto.
12284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12285 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12286 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12287 * mips-tdep.c (mips_gdbarch_init): Ditto.
12288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12289 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12291 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12292 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12293 * i386-tdep.c (i386_gdbarch_init): Ditto.
12294 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12295 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12296 * frv-tdep.c (frv_gdbarch_init): Ditto.
12297 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12298 * cris-tdep.c (cris_gdbarch_init): Ditto.
12299 * avr-tdep.c (avr_gdbarch_init): Ditto.
12300 * arm-tdep.c (arm_gdbarch_init): Ditto.
12301 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12302
ea1dd7bc
DJ
123032004-01-13 Daniel Jacobowitz <drow@mvista.com>
12304
12305 * infrun.c (follow_fork_mode_ask): Remove.
12306 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12307 (follow_fork): Simplify and remove internal error for
12308 follow_fork_mode_ask.
12309 (_initialize_infrun): Update "set follow-fork-mode" help text.
12310
0f0cffd2
AC
123112004-01-13 Andrew Cagney <cagney@redhat.com>
12312
12313 * configure.in: Update copyright year.
12314 (build_warnings): Add -Wunused-label.
12315 * configure: Re-generate.
12316
de38af99
AC
123172004-01-12 Andrew Cagney <cagney@redhat.com>
12318
954a7fba
AC
12319 * exec.h (exec_ops): Make "extern".
12320
de38af99
AC
12321 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12322 the function is void.
12323 (mips_pseudo_register_write): Ditto.
12324
1a111ce3
AC
123252004-01-12 Andrew Cagney <cagney@redhat.com>
12326
12327 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12328 call. Never defined.
12329 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12330 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12331 (struct sparc_gregset, struct regcache): Ditto.
12332 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12333
48efe704
AC
123342004-01-12 Andrew Cagney <cagney@redhat.com>
12335
12336 * mi/ChangeLog: Delete file. Renamed to ...
12337 * mi/ChangeLog-1999-2003: New file.
12338 * tui/ChangeLog: Delete file. Renamed to ...
12339 * tui/ChangeLog-1998-2003: New file.
fe61caab 12340
a54124c5
MK
123412004-01-11 Mark Kettenis <kettenis@gnu.org>
12342
2ca62865
MK
12343 * sparc64nbsd-tdep.c: Include "regset.h".
12344 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12345 Remove variables.
12346 (fetch_core_registers): Remove function.
12347 (sparc64nbsd_core_fns): Remove variable.
12348 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12349 functions.
12350 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12351 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12352 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12353
ca9d58e9
MK
12354 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12355 sparc_extract_struct_value_address.
12356 (sparc32_gdbarch_init): Set extract_struct_value_address.
12357 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12358 function.
12359 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12360 return_value_on_stack.
12361
3cc87ec0
MK
12362 * NEWS: Mention that %cs and %ss have been added to the AMD64
12363 configurations
12364
5bf00f29
MK
12365 * frame.c: Update copyright year.
12366 (get_prev_frame): Improve comment.
12367
4f7ec84e
MK
12368 * sparc64fbsd-tdep.c: Include "regset.h".
12369 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12370 Remove variables.
12371 (fetch_core_registers): Remove function.
12372 (sparc64fbsd_core_fns): Remove variable.
12373 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12374 functions.
12375 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12376 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12377 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12378
4e7b0cd3
MK
12379 * sparcnbsd-tdep.c: Include "regset.h".
12380 (fetch_core_registers): Remove function.
12381 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12382 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12383 functions.
12384 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12385 TDEP->fpregset.
46b58ce9 12386 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12387
a54124c5
MK
12388 * sparc-tdep.h (struct regset): Provide opaque declaration.
12389 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12390 fpregset and sizeof_fpregset members.
12391 * sparc-tdep.c (struct regset): Provide opaque declaration.
12392 (sparc_regset_from_core_section): New function.
12393 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12394 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12395 Set regset_from_core_section when appropriate.
12396
29ff87c5
MK
123972004-01-10 Mark Kettenis <kettenis@gnu.org>
12398
79b1ab3d
MK
12399 * x86-64-tdep.c (amd64_non_pod_p): New function.
12400 (amd64_classify_aggregate): Return class memory for non-POD
12401 C++ structure types.
12402
6470d250
MK
12403 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12404 argument. Use it to reserve a register if necessary.
12405 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12406 amd64_push_arguments.
12407
562c50c2
MK
12408 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12409
af233647
MK
12410 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12411 register numbers in comments.
12412 * x86-64-tdep.h: Update copyright year.
12413 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12414 Adjust for addition of %cs and %ss.
12415 * amd64fbsd-nat.c: Update copyright year.
12416 (reg_offset): Add register offsets for %cs and %ss.
12417 * amd64fbsd-tdep.c: Update copyright year.
12418 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12419 (amd64fbsd_sc_reg_offset): Likewise.
12420 * x86-64-linux-nat.c: Update copyright year.
12421 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12422 and %ss.
12423 * amd64nbsd-nat.c: Update copyright year.
12424 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12425 * amd64nbsd-tdep.c: Update copyright year.
12426 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12427 * x86-64-linux-tdep.c: Update copyright year.
12428 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12429 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12430 * regformats/reg-x86-64.dat: Add %cs and %ss.
12431
29ff87c5
MK
12432 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12433 variables to prevent long lines. Update comments to reflect
12434 reality.
12435
38d518c9
EZ
124362004-01-09 David Carlton <carlton@kealia.com>
12437
12438 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12439 * dwarf2read.c (read_namespace): Pull out name-generating code
12440 into namespace_name. Rename previous_namespace to previous_prefix
12441 and processing_current_namespace to processing_current_prefix..
12442 (namespace_name): New function.
12443 (add_partial_symbol): Substitute uses of pdi->name with
12444 actual_name.
12445 * cp-support.h: Rename processing_current_namespace to
12446 processing_current_prefix.
12447 Update copyright year.
12448 * cp-namespace.c: Rename processing_current_namespace to
12449 processing_current_prefix.
12450 Update copyright year.
fe61caab 12451
1e4728e7
AC
124522004-01-09 Andrew Cagney <cagney@redhat.com>
12453
12454 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12455
c77c642a
MK
124562004-01-09 Mark Kettenis <kettenis@gnu.org>
12457
12458 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12459 complaining.
12460 (process_one_symbol): Deal with N_PATCH stabs.
12461
b44e9041
EZ
124622004-01-09 Elena Zannoni <ezannoni@redhat.com>
12463
12464 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12465 ifdeffed code.
12466 Update copyright year.
38d518c9 12467
eccfb640
MC
124682004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12469
12470 * config/pa/tm-hppa.h: Update extern declarations for
12471 hppa32_hpux_frame_saved_pc_in_sigtramp,
12472 hppa32_hpux_frame_base_before_sigtramp, and
12473 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12474
848c5feb
MC
124752004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12476
12477 * config/pa/tm-hppah.h: Update copyright years.
12478
3cc5d663
AC
124792004-01-08 Andrew Cagney <cagney@redhat.com>
12480
12481 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12482 (mips_o32_reg_struct_has_addr): Delete function.
12483 (mips_gdbarch_init): Update.
12484 (mips_extract_struct_value_address): Delete function.
12485
bfec0b41
JJ
124862004-01-08 David Mosberger <davidm@hpl.hp.com>
12487
12488 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12489 reality.
12490
16e109ca
AC
124912004-01-07 Andrew Cagney <cagney@redhat.com>
12492
6214a8a1
AC
12493 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12494 architecture's elf flags (when available).
12495
8d5838b5
AC
12496 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12497 FPU to the start, check the MIPS FPU when looking for an old
12498 architecture.
12499 (set_mipsfpu_single_command): Update the architecture.
12500 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12501
480d3dd2
AC
12502 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12503 (mips_mask_address_p): Add "tdep" parameter.
12504 (show_mask_address, mips_addr_bits_remove): Update.
12505 (mips_dump_tdep): Update.
12506 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12507 (MIPS_STACK_ARGSIZE): Delete macro.
12508 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12509 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12510 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12511 (mips_dump_tdep): Update.
12512 (MIPS_SAVED_REGSIZE): Delete macro.
12513 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12514 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12515 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12516 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12517 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12518 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12519 (mips_pop_frame, return_value_location): Update.
12520 (mips_n32n64_return_value, mips_dump_tdep): Update.
12521
ec03c1ac
AC
12522 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12523 MIPS ABI.
12524
16e109ca
AC
12525 * mips-tdep.c: Update copyright.
12526 (mips_gdbarch_init): Merge two code blocks handling the register
12527 name and number layout.
12528
15255275
MS
125292004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12530
12531 * tracepoint.c (validate_actionline): Fix segv at EOF
12532
9f9057da
MC
125332004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12534
12535 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12536 properly for static fields.
12537
0127c0d3 125382004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12539 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12540
12541 * disasm.c: Update copyright to include 2004.
12542 (do_mixed_source_and_assembly): For uiout asm list
12543 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12544 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12545 the tuple/list. Move check for whether to close off the
fe61caab 12546 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12547 on each loop iteration.
12548
5269965e
AC
125492004-01-05 Andrew Cagney <cagney@redhat.com>
12550
54f1137d
AC
12551 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12552 should be a switch case and not a label.
12553 * mips-tdep.c (mips32_next_pc): Delete unused labels
12554 "greater_equal_branch" and "less_zero_branch".
12555 * jv-valprint.c (java_print_value_fields): Delete unused label
12556 "flush_it".
12557
5269965e
AC
12558 * target.c (unpush_target): Only close a target that is in the
12559 target stack.
12560
dbc22fa1
MK
125612004-01-05 Mark Kettenis <kettenis@gnu.org>
12562
9515395e
MK
12563 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12564 address from [sp + 64] instead of %o2.
12565
dbc22fa1
MK
12566 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12567 fixes PR backtrace/1476.
12568
5439edaa
AC
125692004-01-05 Andrew Cagney <cagney@redhat.com>
12570
12571 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12572 move to start of file.
12573 * i386-tdep.h (struct regcache): Add opaque declaration.
12574 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12575 declaration.
12576 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12577 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12578 * win32-nat.c (fake_create_process): Use ISO C style definition.
12579 * stabsread.c (define_symbol): Delete #ifndef
12580 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12581 stabs_argument_has_addr call, macro never defined.
12582
19061abe
MC
125832004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12584
12585 * op50-rom.c: Delete.
12586 * w89k-rom.c: Delete.
12587 * Makefile.in: Remove references.
12588
e53bef9f
MK
125892004-01-04 Mark Kettenis <kettenis@gnu.org>
12590
12591 * x86-64-tdep.c: Update copyright year.
12592 (struct amd64_register_info): Rename from x86_64_register_info.
12593 (amd64_register_info): Rename from x86_64_register_info.
12594 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12595 (amd64_register_name): Rename from x86_64_register_name.
12596 (amd64_register_type): Rename from x86_64_register_type.
12597 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12598 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12599 (amd64_dwarf_reg_to_regnum): Rename from
12600 x86_64_dwarf_reg_to_regnum.
12601 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12602 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12603 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12604 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12605 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12606 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12607 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12608 (amd64_frame_cache): Rename from x86_64_frame_cache.
12609 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12610 (amd64_frame_prev_register): Rename from
12611 x86_64_frame_prev_register.
12612 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12613 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12614 (amd64_sigtramp_frame_cache): Rename from
12615 x86_64_sigtramp_frame_cache.
12616 (amd64_sigtramp_frame_prev_register): Rename from
12617 x86_64_sigtramp_frame_prev_register.
12618 (amd64_sigtramp_frame_unwind): Rename from
12619 x86_64_sigtramp_frame_unwind.
12620 (amd64_sigtramp_frame_sniffer): Rename from
12621 x86_64_sigtramp_frame_sniffer.
12622 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12623 (amd64_frame_base): Rename from x86_64_frame_base.
12624 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12625 (amd64_frame_align): Rename from x86_64_frame_align.
12626 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12627 (amd64_regset_from_core_section): Rename from
12628 x86_64_regset_from_core_section.
12629 (x86_64_init_abi): Update comments.
12630
fca6aa58
NR
126312004-01-04 Nick Roberts <nick@nick.uklinux.net>
12632
12633 * MAINTAINERS (write after approval): Add myself.
12634
8ada74e3
MK
126352004-01-04 Mark Kettenis <kettenis@gnu.org>
12636
12637 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12638 `float' arguments.
12639
5154b0cd
MK
126402004-01-04 Mark Kettenis <kettenis@gnu.org>
12641
12642 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12643 such that it mentions a specific version of GCC that exhibits this
12644 bug.
12645
fb316966
MK
126462004-01-03 Mark Kettenis <kettenis@gnu.org>
12647
200cc553
MK
12648 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12649 structure that has a single `float' member, store it in %f1 in
12650 addition to %f0.
12651
e226a4a0
MK
12652 * sparc-sol2-nat.c: Add missing '\'.
12653
b9d4c5ed
MK
12654 * sparc-tdep.c (sparc32_return_value): New function.
12655 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12656 Remove functions.
12657 (sparc32_gdbarch_init): Set return_value, don't set
12658 extract_return_value, store_return_value, use_struct_convention
12659 and return_value_on_stack.
12660
fb316966
MK
12661 * sparc-sol2-nat.c: Add missing ')'.
12662
1af510a8
JB
126632004-01-03 J. Brobecker <brobecker@gnat.com>
12664
12665 * infrun.c (handle_step_into_function): New function.
12666 (handle_inferior_event): Extract out some code into the new
12667 function above.
12668
5cf4d23a
JB
126692004-01-03 J. Brobecker <brobecker@gnat.com>
12670
12671 * infrun.c (handle_inferior_event): Move the declaration of
12672 real_stop_pc inside the if blocks where it is used.
12673
60af1db2
MK
126742004-01-03 Mark Kettenis <kettenis@gnu.org>
12675
12676 * sparc64-tdep.c (sparc64_16_byte_align_p)
12677 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12678 Use check_typedef to get subtypes of structures and unions.
12679 (sparc64_store_return_value): Fix calculation of the appropriate
12680 offset into VALBUF when storing a structure or union.
12681 (sparc64_return_value): New function.
12682 (sparc64_use_struct_convention): Remove function.
12683 (sparc64_init_abi): Set return_value, don't set
12684 extract_return_value, store_return_value and
12685 use_struct_convention.
12686
1a901d3f
EZ
126872004-01-03 Eli Zaretskii <eliz@elta.co.il>
12688
12689 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12690 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12691 gdb/config/alpha/xm-alphaosf.h,
12692 gdb/config/powerpc/tm-ppcle-eabi.h,
12693 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12694 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12695 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12696 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12697 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12698 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12699 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12700 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12701 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12702 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12703 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12704 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12705 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12706 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12707 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12708 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12709 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12710 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12711 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12712 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12713 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12714 Remove lines for .cvsignore files.
12715
ef52e463
JB
127162004-01-03 J. Brobecker <brobecker@gnat.com>
12717
12718 * infrun.c: Back out the previous change.
12719
cb1bf9dc
MK
127202004-01-03 Mark Kettenis <kettenis@gnu.org>
12721
f0424ef6
MK
12722 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12723 sparc-*-sunos4* to the list of REMOVED configurations.
12724
cb1bf9dc
MK
12725 * configure.tgt: Add back sparc-*-vxworks*.
12726 * remote-vxsparc.c: Remove all includes except for "defs.h",
12727 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12728 Include "sparc-tdep.h".
12729 (SPARC_R_G1): New define.
12730 (vxsparc_gregset): New variable.
12731 (ext_format_sparc): Remove extern declaration.
12732 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12733 sparc32_supply_fpregset.
12734 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12735 sparc_collect_rwindow and sparc32_collect_fpregset.
12736 * config/sparc/tm-vxworks.h: New file, based on recently removed
12737 tm-vxsparc.h.
12738 * config/sparc/vxworks.mt: New file, based on recently removed
12739 vxworks.mt.
fe61caab 12740
5e938f9f
JB
127412004-01-03 J. Brobecker <brobecker@gnat.com>
12742
12743 * infrun.c (handle_step_into_function): New function.
12744 (handle_inferior_event): Extract out some code into the new
12745 function above.
12746
386c036b
MK
127472004-01-02 Mark Kettenis <kettenis@gnu.org>
12748
12749 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12750 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12751 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12752 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12753 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12754 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12755 (sparc_nat_h): New variable.
12756 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12757 (tm-sun4os4.h): Remove dependency.
12758 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12759 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12760 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12761 sparc-tdep.o): Update dependencies.
12762 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12763 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12764 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12765 dependencies.
12766 * configure.host: Remove existing sparc-*-lynxos*,
12767 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12768 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12769 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12770 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12771 triplets.
12772 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12773 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12774 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12775 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12776 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12777 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12778 sparc64-*-solaris2* and sparc64-*-* triplets.
12779 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12780 "symtab.h" and "objfiles.h".
12781 (BIAS): Remove define.
12782 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12783 (X_DISP19): Remove macros.
12784 (sparc_fetch_instruction): Remove function.
12785 (struct gdbarch_tdep): Remove definition.
12786 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12787 (sparc_breakpoint_from_pc): Remove function.
12788 (struct sparc64_frame_cache): Remove definition.
12789 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12790 sparc64_unwind_pc): Remove functions.
12791 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12792 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12793 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12794 (sparc64_frame_cache): Change return type to `struct
12795 sparc_frame_cache *'. Simply call sparc_frame_cache.
12796 (sparc64_frame_this_id, sparc64_frame_prev_register,
12797 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12798 instead of `struct sparc64_frame_cache.
12799 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12800 sparc_analyze_control_transfer, sparc_software_single_step,
12801 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12802 _initialize_sparc64_tdep): Remove functions.
12803 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12804 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12805 macros.
12806 (sparc64_supply_gregset, sparc64_collect_gregset,
12807 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12808 (sparc64_init_abi): New function.
12809 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12810 inclusion guard. Include "sparc-tdep.h".
12811 (BIAS): Define.
12812 (r_tstate_offset, r_fprs_offset): New defines.
12813 (enum sparc_regnum): Remove defenition.
12814 (enum sparc64_regnum): Reformat.
12815 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12816 (sparc64_init_abi, sparc64_supply_gregset,
12817 sparc64_collect_gregset, sparc64_supply_fpregset,
12818 sparc64_collect_fpregset): New prototypes.
12819 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12820 Add extern declarations.
12821 (sparc64_sol2_init_abi): New prototype.
12822 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12823 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12824 prototypes.
12825 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12826 "sparnbsd-nat.h".
12827 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12828 functions.
12829 (_initialize_sparc64fbsd_nat): Remove initialization of
12830 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12831 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12832 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12833 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12834 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12835 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12836 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12837 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12838 (sparc64fbsd_r_y_offset): Remove variables.
12839 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12840 Make static and const.
12841 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12842 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12843 functions.
12844 (sparc64fbsd_gregset): New variable.
12845 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12846 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12847 and sparc64_supply_fpregset.
12848 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12849 (sparc64fbsd_sigtramp_frame_this_id)
12850 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12851 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12852 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12853 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12854 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12855 * sparcnbsd-tdep.c: Update copyright year. Include
12856 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12857 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12858 "value.h" and "sparcnbsd-tdep.h".
12859 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12860 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12861 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12862 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12863 defines.
12864 (sparcnbsd_gregset): New variable.
12865 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12866 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12867 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12868 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12869 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12870 variables.
12871 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12872 (sparc32nbsd_sigcontext_frame_this_id)
12873 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12874 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12875 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12876 (sparcnbsd_get_longjmp_target_32,
12877 sparcnbsd_get_longjmp_target_64): Remove functions.
12878 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12879 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12880 sparcnbsd_init_elf): Remove.
12881 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12882 (sparcnbsd_elf_init_abi): New functions.
12883 (_initialize_sparcnbsd_tdep): New prototype.
12884 (_initialize_sparnbsd_tdep): Update.
12885 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12886 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12887 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12888 * config/sparc/linux.mh: Update comment.
12889 (XM_FILE, HOST_IPC): Remove variables.
12890 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12891 sparc-linux-nat.o.
12892 * config/sparc/linux.mt: Update comment.
12893 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12894 * config/sparc/nbsd.mt: Reformat.
12895 * config/sparc/nbsd64.mh: Update comment.
12896 (NATDEPFILES): Add sparc-nat.o.
12897 * config/sparc/nbsd64.mt: Update comment.
12898 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12899 (TM_FILE): Set to tm-nbsd.h.
12900 * config/sparc/nbsdelf.mh: Update comment.
12901 (NATDEPFILES): Add sparc-nat.o.
12902 (XM_FILE): Delete.
12903 * config/sparc/nbsdaout.mh: Update comment.
12904 (NATDEPFILES): Add sparc-nat.o
12905 (XM_FILE): Delete.
12906 * config/sparc/nm-linux.h: Update copyright year. Don't include
12907 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12908 inclusion.
12909 (KERNEL_U_SIZE): Remove define.
12910 (kernel_u_size): Remove prototype.
12911 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12912 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12913 "regcache.h".
12914 (CHILD_PREPARE_TO_STORE): Remove define.
12915 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12916 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12917 sparcnbsd-nat.c: Rewrite files.
12918 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12919 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12920 sparcnbsd-tdep.h: Remove files.
12921 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12922 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12923 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12924 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12925 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12926 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12927 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12928 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12929 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12930 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12931 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12932 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12933 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12934 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12935 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12936 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12937 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12938 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12939 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12940
ee84457a
AC
129412004-01-02 Andrew Cagney <cagney@redhat.com>
12942
12943 From 2003-12-18 Kazuhiro Inaoka:
12944 * configure.host: Add m32r-linux target.
12945
0bc2134e
MC
129462004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12947
12948 * top.c (print_gdb_version): Update year to 2004.
12949
89a72f9c
MM
129502004-01-02 Mark Mitchell <mark@codesourcery.com>
12951
12952 * MAINTAINERS: Add myself to the write-after-approval category.
12953
86b013ed
DJ
129542004-01-02 Daniel Jacobowitz <drow@mvista.com>
12955
12956 From Bernardo Innocenti <bernie@develer.com>:
12957 * configure.tgt: Add uClinux target.
12958
e42c9534
AC
129592004-01-02 Andrew Cagney <cagney@redhat.com>
12960
12961 * utils.c (do_my_cleanups): Make static, add forward declaration.
12962 * defs.h (do_my_cleanups): Delete declaration.
12963
162467d3
EZ
129642004-01-02 Eli Zaretskii <eliz@elta.co.il>
12965
12966 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12967 bfd/ChangeLog-0203.
12968
78434e59
MK
129692004-01-02 Mark Kettenis <kettenis@gnu.org>
12970
12971 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12972 in <machine/reg.h>.
12973 * configure, config.in: Regenerate.
12974
48efe704
AC
12975For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12976tui/ChangeLog-1998-2003.
c906108c
SS
12977\f
12978Local Variables:
12979mode: change-log
12980left-margin: 8
12981fill-column: 74
12982version-control: never
12983End:
This page took 1.176096 seconds and 4 git commands to generate.