* i386v4-nat.c: Update copyright year and tweak comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
40e20472
MK
12004-06-27 Mark Kettenis <kettenis@gnu.org>
2
3 * i386v4-nat.c: Update copyright year and tweak comment.
4 (regmap): Remove trailing comma.
5 (supply_gregset): Rename local variable i to regnum. Call
6 regcache_raw_supply instead of supply_register.
7 (fill_gregset): Rename argument regno to regnum. Call
8 regcache_raw_collect instead of regcache_collect.
9
12b0b6de
UW
102004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
11
12 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
13 and special_addr_p.
14 (frame_id_build, frame_id_build_special): Update comments.
15 (frame_id_build_wild): New prototype.
16 * frame.c (frame_id_build, frame_id_build_special): Fill in new
17 struct frame_id fields.
18 (frame_id_build_wild): New function.
19 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
20
47b42a3e
MK
212004-06-27 Mark Kettenis <kettenis@gnu.org>
22
23 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
24 hppabsd-tdep.c.
25
1265e4aa
JB
262004-06-27 Joel Brobecker <brobecker@gnat.com>
27
28 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
29
76a01679
JB
302004-06-27 Joel Brobecker <brobecker@gnat.com>
31
32 * ada-lang.c: Re-indent file.
33
7aca490a
JB
342004-06-27 Joel Brobecker <brobecker@gnat.com>
35
36 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
37 (no_symtab_msg): Likewise.
38
5e987968
AS
392004-06-27 Andreas Schwab <schwab@suse.de>
40
41 * source.c: Fix whitespace.
42
315c4276
MK
432004-06-27 Mark Kettenis <kettenis@gnu.org>
44
d15be926
MK
45 * configure.in: Include <sys/param.h> for td_pcb test.
46 * configure: Regenerated.
47
9062529b
MK
48 * i386nbsd-nat.c: New file.
49 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
50 i386obsd-nat.c and i386obsd-tdep.c.
51 (i386nbsd-nat.o): New dependency.
52 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
53 bsd-kvm.o.
54 (LOADLIBES): New variable.
55 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
56 bsd-kvm.o.
57 (LOADLIBES): New variable.
58
8010310e
MK
59 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
60 (LOADLIBES): New variable.
61
efe1d7b9
MK
62 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
63 fetching from BSD_KVM_PADDR. Correctly lookup address for
64 "_thread0".
65
315c4276
MK
66 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
67 "bsd-kvm.h".
68 (amd64fbsd_supply_pcb): New funcion.
69 (_initialize_amd64fbsd_nat): Enable libkvm interface.
70
399cfac6
DL
712004-06-27 <david@streamline-computing.com>
72
73 Partial fix for PR cli/1056.
74 * valarith.c: Check for zero in division and remainder
75 evaluation.
76
6235f9c8
MK
772004-06-27 Mark Kettenis <kettenis@gnu.org>
78
79 * i387-tdep.c: Remove excessive whitespace.
80
2726dafc
AC
812004-06-26 Andrew Cagney <cagney@gnu.org>
82
83 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
84 * gdb-events.h, gdb-events.c: Re-generate.
85 * tui/tui-hooks.c (tui_install_hooks): Update.
86 (tui_remove_hooks): Update.
87 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
88
0e56aeaf
MK
892004-06-26 Mark Kettenis <kettenis@gnu.org>
90
cb461069
MK
91 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
92 (gregset_t, fpregset_t): Remove typedefs.
93 (REG_OFFSET): Rename argument.
94 (amd64bsd_r_reg_offset): Rename from reg_offset.
95 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
96 Remove functions.
97 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
98 of reg_offset.
99 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
100
ecba89de
MK
101 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
102
4cd80476
MK
103 * vax-tdep.c: Tweak comment.
104
0e56aeaf
MK
105 Add OpenBSD/hppa support.
106 * NEWS (New native configurations): Mention OpenBSD/hppa.
107 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
108 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
109 files.
110 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
111 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
112 * configure.host: Add hppa*-*-openbsd*.
113 * configure.tgt: Add hppa*-*-openbsd*.
114
98bbd631
AC
1152004-06-25 Andrew Cagney <cagney@gnu.org>
116
117 * defs.h (deprecated_ui_loop_hook): Deprecated.
118 * wince.c (child_wait): Update.
119 * win32-nat.c (child_wait): Update.
120 * v850ice.c (v850ice_wait): Update.
121 * top.c (deprecated_ui_loop_hook): Update.
122 * serial.h: Update.
123 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
124 (do_unix_readchar): Update.
125 * ser-tcp.c (net_open): Update.
126 * remote-sim.c (gdb_os_poll_quit): Update.
127 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
128
769d7dc4
AC
1292004-06-24 Andrew Cagney <cagney@gnu.org>
130
131 * defs.h (deprecated_pre_add_symbol_hook)
132 (deprecated_post_add_symbol_hook): Deprecated.
133 * symfile.c (symbol_file_add_with_addrs_or_offsets)
134 (symbol_file_add_with_addrs_or_offsets): Update references.
135
11c949aa
AC
1362004-06-24 Andrew Cagney <cagney@gnu.org>
137
138 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
139 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
140 * wince.c (ui_loop_hook): Delete extern declaration.
141 * win32-nat.c (ui_loop_hook): Delete extern declaration..
142 * v850ice.c (ui_loop_hook): Delete extern declaration..
143 * ser-unix.c (ui_loop_hook): Delete extern declaration..
144 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
145 * remote-sim.c (ui_loop_hook): Delete extern declaration..
146 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
147 ui_loop_hook declaration.
148
eedc19af
AC
1492004-06-24 Andrew Cagney <cagney@gnu.org>
150
151 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
152 entry_func_highpc fields.
153 * objfiles.c (init_entry_point_info): Do not clear
154 entry_func_lowpc and entry_func_highpc.
155 (objfile_relocate): Do not relocate entry_func_lowpc and
156 entry_func_highpc.
157 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
158 entry_func_highpc.
159 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
160 entry_func_highpc.
161 * blockframe.c (legacy_frame_chain_valid): Replace tests against
162 entry_func_lowpc and entry_func_highpc with call to
163 inside_entry_func.
164
d47079be
MK
1652004-06-24 Mark Kettenis <kettenis@gnu.org>
166
167 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
168 quad-precision floating point arguments in registers.
169
2107e348
MK
1702004-06-24 Mark Kettenis <kettenis@gnu.org>
171
172 From Michael Mueller <m.mueller99@kay-mueller.de>:
173 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
174 account.
175
46587c42
JJ
1762004-06-22 Jeff Johnston <jjohnstn@redhat.com>
177
178 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
179 to -1.
180 * breakpoint.c (bpstat_stop_status): Move check for ignoring
181 untriggered watchpoints to a separate if clause. Update function
182 comment regarding STOPPED_BY_WATCHPOINT argument.
183
226f5cf4
JB
1842004-06-22 Jim Blandy <jimb@redhat.com>
185
186 * gdbarch.sh: Doc fix.
187
f10683bb
MH
1882004-06-21 Martin Hunt <hunt@redhat.com>
189 Kevin Buettner <kevinb@redhat.com>
190
191 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
192 * mips-tdep.h (MIPS_SP_REGNUM): Define.
193 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
194 to set_gdbarch_sp_regnum(). Use cooked register number.
195 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
196
412d5987
AC
1972004-06-21 Andrew Cagney <cagney@gnu.org>
198
199 * gdbarch.sh: When the macro field is empty, do not generate a
200 macro definition. When the macro field is "=", generate the macro
201 name from the upper-case function name.
202 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
203 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
204 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
205 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
206 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
207 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
208 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
209 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
210 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
211 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
212 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
213 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
214 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
215 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
216 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
217 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
218 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
219 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
220 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
221 (DEPRECATED_USE_STRUCT_CONVENTION)
222 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
223 (DEPRECATED_FRAME_INIT_SAVED_REGS)
224 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
225 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
226 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
227 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
228 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
229 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
230 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
231 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
232 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
233 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
234 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
235 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
236 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
237 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
238 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
239 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
240
68908a3e
AC
2412004-06-21 Andrew Cagney <cagney@gnu.org>
242
48f7351b
AC
243 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
244 macro name, and the function rather than macro value. Only wrap
245 macro print statements in #ifdef. Move format logic to where it
246 is needed.
247 * gdbarch.c: Re-generate.
248
283354d8
AC
249 * gdbarch.sh (read): Delete "print_p" and "description", add
250 "garbage_at_eol". Check for non-empty garbage at end-of-line.
251 Delete references to print_p.
252 (TARGET_ARCHITECTURE): Delete print predicate.
253 * gdbarch.c: Re-generate.
254
68908a3e
AC
255 * gdbarch.sh: Check that multi-arch methods do not provide a
256 macro.
257 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
258 (print_registers_info, print_float_info, print_vector_info)
259 (adjust_breakpoint_address, remote_translate_xfer_address)
260 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
261 (address_class_type_flags_to_name, unwind_sp): Remove the macro
262 name from the multi-arch definition.
263
a2428dbe
AC
2642004-06-20 Andrew Cagney <cagney@gnu.org>
265
266 * gdbarch.sh: Sort by the function, instead of macro name.
267 * gdbarch.c: Re-generate.
268
750eb019
AC
2692004-06-20 Andrew Cagney <cagney@gnu.org>
270
66d659b1
AC
271 * gdbarch.sh: Use the function, instead of macro name in
272 errors and the log file.
273 (return_value): Remove stray ":" in spec.
274
750eb019
AC
275 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
276 * gdbarch.h, gdbarch.c: Re-generate.
277 * Makefile.in (arch-utils.o): Update dependencies.
278 * values.c (using_struct_return): Move code calling
279 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
280 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
281 to legacy_return_value, simplify.
282 * infcmd.c (print_return_value): Move code calling
283 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
284 to legacy_return_value, simplify.
285 * infcall.c (call_function_by_hand): Move code calling
286 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
287 * arch-utils.c: Update copyright. Include "gdbcore.h".
288 (legacy_return_value): New function.
289 * arch-utils.h: Update copyright.
290 (legacy_return_value): Declare.
291
b5622e8d
AC
2922004-06-20 Andrew Cagney <cagney@gnu.org>
293
294 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
295 * gdbarch.h, gdbarch.c: Re-generate.
296 * values.c (using_struct_return): Update call.
297 * mcore-tdep.c: Update comment.
298 * infcall.c (call_function_by_hand): Update comment.
299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
300 * arch-utils.h (always_use_struct_convention): Update.
301 * v850-tdep.c (v850_gdbarch_init): Update.
302 * sh64-tdep.c (sh64_gdbarch_init): Update.
303 * sh-tdep.c (sh_gdbarch_init): Update.
304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
305 * mips-tdep.c (mips_gdbarch_init): Update.
306 * mcore-tdep.c (mcore_gdbarch_init): Update.
307 * m32r-tdep.c (m32r_gdbarch_init): Update.
308 * ia64-tdep.c (ia64_gdbarch_init): Update.
309 * h8300-tdep.c (h8300_gdbarch_init): Update.
310 * frv-tdep.c (frv_gdbarch_init): Update.
311 * cris-tdep.c (cris_gdbarch_init): Update.
312 * arm-tdep.c (arm_gdbarch_init): Update.
313 * alpha-tdep.c (alpha_gdbarch_init): Update.
314
5191de37
MC
3152004-06-18 Michael Chastain <mec.gnu@mindspring.com>
316
317 * PROBLEMS: Add more specific information, and a work-around,
318 for PR gdb/1458.
319
782263ab
AC
3202004-06-18 Andrew Cagney <cagney@gnu.org>
321
322 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
323 * gdbarch.h, gdbarch.c: Re-generate.
324 * ada-lang.c (ada_finish_decode_line_1): Update.
325 * infrun.c (handle_inferior_event): Update.
326 * infcall.c (find_function_addr): Update.
327 * linespec.c (minsym_found): Update.
328 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
329 Update.
330 * blockframe.c (legacy_frameless_look_for_prologue): Update.
331 * cli/cli-cmds.c (disassemble_command): Update.
332 * vax-tdep.c (vax_gdbarch_init): Update.
333
2f305df1
MK
3342004-06-18 Mark Kettenis <kettenis@gnu.org>
335
336 * i386-tdep.c (i386_collect_fpregset): Fix comment.
337
e5fe55f7
AC
3382004-06-17 Andrew Cagney <cagney@gnu.org>
339
340 GDB 6.1.1 released from the GDB 6.1 branch.
341 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
342 * PROBLEMS: Ditto.
343
473b7be6
DJ
3442004-06-16 Daniel Jacobowitz <dan@debian.org>
345
346 PR gdb/1658
347 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
348 operation as a uleb128. Found by Michael Coulter.
349
96d887e8
PH
3502004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
351
352 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
353 make it non-static.
354 * ada-lang.h (task_control_block): declaration moved from ada-task.c
355 to ada-lang.h; this is needed to be able to implement the kill command
356 in multi-task mode.
357 (task_ptid): Ditto.
358 (task_entry): Ditto.
359 (task_list): Ditto.
360 (ada_build_task_list): Ditto.
361
362 * ada-lang.c: Conditionalize routines and data structures related
363 to breakpoints, exceptions, completion, and symbol caching on
364 GNAT_GDB, since these are not yet used in the submitted public sources.
365 (ada_main_name): Editorial: Move definition out of exception-related
366 code.
367
31eef181
AC
3682004-06-15 Andrew Cagney <cagney@gnu.org>
369
370 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
371 deprecated_pc_in_call_dummy.
372
2c500098
AM
3732004-06-15 Alan Modra <amodra@bigpond.net.au>
374
375 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
376 bfd_get_section_size_before_reloc or _raw_size.
377 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
378 * dwarf2read.c (dwarf2_locate_sections): Likewise.
379 (dwarf2_read_section): Likewise.
380 * elfread.c (elf_locate_sections): Likewise.
381 * gcore.c (derive_heap_segment): Likewise.
382 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
383 * remote-e7000.c (e7000_load): Likewise.
384 * remote-m32r-sdi.c (m32r_load): Likewise.
385 * remote-mips.c (mips_load_srec): Likewise.
386 (pmon_load_fast): Likewise.
387 * remote.c (compare_sections_command): Likewise.
388 * symfile.c (add_section_size_callback): Likewise.
389 (load_section_callback): Likewise.
390 (pc_in_unmapped_range): Likewise.
391 (pc_in_mapped_range): Likewise.
392 (sections_overlap): Likewise.
393 (list_overlays_command): Likewise.
394 (simple_overlay_update_1): Likewise.
395 (simple_overlay_update): Likewise.
396 * tracepoint.c (remote_set_transparent_ranges): Likewise.
397 * win32-nat.c (core_section_load_dll_symbols): Likewise.
398
90f943f1
RC
3992004-06-14 Randolph Chung <tausq@debian.org>
400
401 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
402 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
403 static.
404 (hppa_hpux_inferior_created): New function.
405 (hppa_hpux_init_abi): Register observer.
406 * symfile.c (hp_cxx_exception_support_initialized)
407 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
408 (symbol_file_add_main_1, symbol_file_clear): Likewise.
409
700c15aa
RC
4102004-06-14 Randolph Chung <tausq@debian.org>
411
3973a7d3
AC
412 * MAINTAINERS (Write After Approval): Alphabetize my entry
413 correctly.
700c15aa 414
cea4838c
AC
4152004-06-14 Andrew Cagney <cagney@gnu.org>
416
417 * MAINTAINERS (testsuite): List Michael Chastain as the lead
418 testsuite maintainer.
419
97092415
AC
4202004-06-13 Andrew Cagney <cagney@gnu.org>
421
e8c3165b
AC
422 * infcmd.c (print_return_value): Fix logic, allow
423 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
424
bceabdd8
AC
425 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
426 defining any macros.
427 * gdbarch.h: Re-generate.
428
57010b1c
AC
429 * gdbarch.sh: Delete "level" attribute. Only check for a macro
430 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
431 * gdbarch.h: Re-generate.
432
bc87dfa0
AC
433 * values.c (generic_use_struct_convention): Don't check gcc_p.
434
15ac804d
AC
435 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
436 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
437 * gdbarch.h, gdbarch.c: Regenerate.
438 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
439 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
441 deprecated_max_register_raw_size and
442 deprecated_max_register_virtual_size.
443 * v850-tdep.c (v850_gdbarch_init): Ditto.
444 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
445 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
446 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
447 * cris-tdep.c (cris_gdbarch_init): Ditto.
448
97092415
AC
449 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
450 * gdbarch.h, gdbarch.c: Re-generate.
451 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
452 (m68hc11_use_struct_convention): Delete function.
453 (m68hc11_extract_struct_value_address): Delete function.
454 (m68hc11_return_value): New function.
455 (m68hc11_gdbarch_init): Instead of store_return_value,
456 extract_return_value, return_value_on_stack,
457 deprecated_extract_struct_value_address and use_struct_convention,
458 set return_value.
459 * values.c (using_struct_return): Do not call
460 RETURN_VALUE_ON_STACK.
461 * arch-utils.h (generic_return_value_on_stack_not): Delete
462 declaration.
463 * arch-utils.c (generic_return_value_on_stack_not): Delete
464 function.
465
44e5158b
AC
4662004-06-12 Andrew Cagney <cagney@gnu.org>
467
468 * values.c (register_value_being_returned): Delete function.
469 * infcmd.c (legacy_return_value): Delete function.
470 * infcall.c (call_function_by_hand): Inline
471 "register_value_being_returned", simplify.
472 * values.c (using_struct_return): Update comment, refer to
473 print_return_value instead of register_value_being_returned.
474 * infcmd.c (print_return_value): Inline calls to
475 register_value_being_returned and legacy_return_value. Simplify.
476
b887c273
RC
4772004-06-11 Randolph Chung <tausq@debian.org>
478
479 * somread.c (som_symtab_read): Exclude gcc local symbols.
480
1b2bfbb9
RC
4812004-06-11 Randolph Chung <tausq@debian.org>
482
3973a7d3
AC
483 * infrun.c (handle_inferior_event): Handle the case when a
484 trampoline ends up in the runtime resolver, and if the trampoline
485 has no name. Rearrange the code so that all the trampoline
486 processing happens before other step-out-of-range handling.
1b2bfbb9 487
a9d61c86
MH
4882004-06-11 Martin Hunt <hunt@redhat.com>
489
490 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
491 has no fpu.
492
2c87cf5a
AC
4932004-06-10 Andrew Cagney <cagney@gnu.org>
494
495 * blockframe.c (legacy_inside_entry_func): Delete.
496 (legacy_frame_chain_valid): Inline call to
497 legacy_inside_entry_func, simplify.
498
0b67b468 4992004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
500
501 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
502 * dwarf2read.c (partial_die_info): Add dirname field.
503 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
504 (read_partial_die): Save away DW_AT_comp_dir.
505 * defs.h (symtab_to_filename): Removed.
506 * source.c (find_and_open_source): Added.
57c22c6c 507 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
508 (symtab_to_filename): Removed.
509 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
510 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
511 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
512 symtab_to_filename.
513 * symtab.h (partial_symtab): Add dirname field.
514 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
515 (mi_cmd_file_list_exec_source_file): Call new function
516 symtab_to_fullname to find fullname.
57c22c6c 517 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 518 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
519 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
520
9a1dd1ad
AC
5212004-06-10 Andrew Cagney <cagney@gnu.org>
522
239ae8c7
AC
523 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
524 to generic_use_struct_convention, the default value.
525
fc720350
AC
526 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
527 of abort.
528
9a1dd1ad
AC
529 * ns32k-tdep.c (ns32k_push_arguments): New function.
530 (ns32k_gdbarch_init): Set deprecated_push_arguments.
531 * infcall.c (call_function_by_hand): Call error instead of
532 legacy_push_arguments.
533 * value.h (legacy_push_arguments): Delete declaration.
534 * valops.c (legacy_push_arguments): Delete function.
535 (value_push): Delete function.
536
fea25152
BF
5372004-06-10 Brian Ford <ford@vss.fsi.com>
538
539 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
540 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
541 info.
542 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
543
30a4a8e0
AC
5442004-06-10 Andrew Cagney <cagney@gnu.org>
545
546 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
547 * gdbarch.h, gdbarch.c: Re-generate.
548 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
549 parameters.
550 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
551 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
552 deprecated_pc_in_call_dummy instead of
553 DEPRECATED_PC_IN_CALL_DUMMY.
554 (arm_skip_prologue): Ditto.
555 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
556 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
557 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
558 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
559 Ditto.
560 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
561 (sh64_init_extra_frame_info, sh64_get_saved_register)
562 (sh64_pop_frame): Ditto.
563 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
564 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
565 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
566 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
567 (h8300_pop_frame): Ditto.
568 * blockframe.c (legacy_inside_entry_func)
569 (legacy_frame_chain_valid): Ditto.
570 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
571 to deprecated_pc_in_call_dummy.
572
81cfbe54
AC
5732004-06-09 Andrew Cagney <cagney@gnu.org>
574
a1f4a1b6
AC
575 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
576 provide a default value.
577 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
578 * gdbarch.h, gdbarch.c: Re-generate.
579 * arch-utils.c (generic_convert_register_p): Rename
580 legacy_convert_register_p
581 (legacy_register_to_value, legacy_value_to_register): Delete
582 functions.
583 * arch-utils.h (generic_convert_register_p): Rename
584 legacy_convert_register_p.
585 (legacy_register_to_value, legacy_value_to_register): Delete
586 declarations.
587
9730f241
AC
588 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
589 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
590 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
591 * gdbarch.h, gdbarch.c: Re-generate.
592 * infcmd.c (default_print_registers_info): Simplify.
593 * findvar.c (value_of_register): Simplify.
594 * mi/mi-main.c (get_register): Simplify.
595 * arch-utils.c (legacy_convert_register_p): Always return 0.
596 (legacy_register_to_value, legacy_value_to_register): Always call
597 internal_error.
598
8a1bf479
AC
599 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
600 #ifdef CLEAR_INSN_CACHE code.
601 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
602 Delete #ifdef CLEAR_DEFERRED_STORES code.
603
4b38d6f1
AC
604 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
605
2d62ecc7
AC
606 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
607 copyright.
608 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
609
be4f7469
AC
610 * config/mips/mipsv4.mh: Delete file.
611
81cfbe54
AC
612 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
613 unreferenced macro.
614 (hpread_adjust_stack_address): Delete declaration.
615
d966f0cb
AC
6162004-06-08 Andrew Cagney <cagney@gnu.org>
617
618 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
619 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
620 PTRACE_ATTACH / PTRACE_DETACH available call error.
621 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
622 * infttrace.c (update_thread_state_after_attach, attach, detach):
623 Remove #ifdef wrappers.
624 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
625 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
626 * config/nm-bsd.h (ATTACH_DETACH): Delete.
627 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
628 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
629 * config/nm-linux.h (ATTACH_DETACH): Delete.
630 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
631 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
632 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
633 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
634 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
635
d91670b9
CV
6362004-06-08 Corinna Vinschen <vinschen@redhat.com>
637
638 * configure.in: Set $configdir to the right OS specific value.
639 Use value when setting $tcldir and $tkdir.
640 * configure: Regenerate.
641
28ba0b33
PB
6422004-06-06 Paul Brook <paul@codesourcery.com>
643
644 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
645 records.
646
f26caa11
PH
6472004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
648
649 * ada-lang.c (lookup_symbol_in_language): New function to allow
650 re-use of another language's symbol lookup code. (Placed here
651 temporarily while Ada support is being integrated into the public
652 tree).
653 (restore_language): New auxiliary function for
654 lookup_symbol_in_language.
655 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
656 temporarily while Ada support is being integrated into the public
657 tree).
658
d560a54b
AO
6592004-06-08 Alexandre Oliva <aoliva@redhat.com>
660
e75d110c
AO
661 * Makefile.in (check//%): New.
662
d560a54b
AO
663 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
664 (mn10300_store_return_value): Rewrite.
665 (mn10300_type_align): New.
666 (mn10300_use_struct_convention): Rewrite.
667 (mn10300_return_value): New, using all of the above.
668 (mn10300_pop_frame_regular): Add saved_regs_size.
669 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
670
a72fbdb7
AO
671 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
672 regs if PC is on movm.
673
01904826
JB
6742004-06-07 Jim Blandy <jimb@redhat.com>
675
676 Add native Linux support for the PowerPC E500.
677 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
678 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
679 all architectures except the E500.
680 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
681 #definitions.
682 (struct gdb_evrregset_t): New type.
683 (have_ptrace_getsetevrregs): New variable.
684 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
685 fetch_spe_registers): New functions.
686 (fetch_register): Call fetch_spe_register as appropriate.
687 Assert that we're only passed raw register numbers.
688 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
689 Don't fetch gprs if they're pseudoregisters.
690 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
691 store_spe_registers): New functions.
692 (store_register): Call store_spe_register as appropriate.
693 Assert that we're only passed raw register numbers.
694 (store_ppc_registers): Call store_spe_registers as appropriate.
695 Don't store gprs if they're pseudoregisters.
696
f90ef764
JJ
6972004-06-07 Jeff Johnston <jjohnstn@redhat.com>
698
699 * thread-db.c (thread_get_info_callback): Fill in the thread_info
700 struct if one exists, even if we are dealing with a zombie thread.
701
45b75230
AC
7022004-06-07 Andrew Cagney <cagney@gnu.org>
703
704 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
705 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
706 Rename PC_REQUIRES_RUN_BEFORE_USE.
707 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
708 #ifdef.
709
1658da49
RC
7102004-06-07 Randolph Chung <tausq@debian.org>
711
712 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
713 unwinding after sp has been saved to the stack but before the end
714 of the prologue, and after the fp has been modified but before it has
715 been saved to the stack.
716 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
717 Remove superfluous definitions.
718 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
719
9a727a3c
RC
7202004-06-07 Guy Martin <gmsoft@gentoo.org>
721
722 Committed by Randolph Chung.
723 * hppa-linux-nat.c: Include the correct version of the header file
724 depending on the kernel version.
725
9e500012
RC
7262004-06-06 Randolph Chung <tausq@debian.org>
727
728 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
729 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
730
3388d7ff
RC
7312004-06-06 Randolph Chung <tausq@debian.org>
732
733 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
734 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
735 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
736 * hppa-tdep.c (hppa_symbol_address): New function definition.
737 * hppa-tdep.h (hppa_symbol_address): New function declaration.
738
d49771ef
RC
7392004-06-06 Randolph Chung <tausq@debian.org>
740
741 * hppa-tdep.h (struct value): Forward declaration.
742 (gdbarch_tdep): Define tdep find_global_pointer method.
743 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
744 associated with the function we are trying to call, and write it
745 to the gp register.
746 (hppa32_convert_from_funct_ptr_addr): New function.
747 (hppa_find_global_pointer): New function.
748 (hppa_gdbarch_init): Set default find_global_pointer method; set
749 convert_from_func_ptr_addr method.
750 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
751 (hppa_linux_init_abi): Set find_global_pointer method.
752 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
753
7d9b040b
RC
7542004-06-06 Randolph Chung <tausq@debian.org>
755
756 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
757 to struct value *function.
758 * gdbarch.c: Regenerate.
759 * gdbarch.h: Likewise.
760 * infcall.c (call_function_by_hand): Pass entire function value
761 to push_dummy_call.
762
763 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
764 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
765 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
766 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
767 * arm-tdep.c (arm_push_dummy_call): Likewise.
768 * avr-tdep.c (avr_push_dummy_call): Likewise.
769 * cris-tdep.c (cris_push_dummy_call): Likewise.
770 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
771 * frv-tdep.c (frv_push_dummy_call): Likewise.
772 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
773 * hppa-tdep.c (hppa32_push_dummy_call)
774 (hppa64_push_dummy_call): Likewise.
775 * i386-tdep.c (i386_push_dummy_call): Likewise.
776 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
777 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
778 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
779 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
780 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
781 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
782 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
783 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
784 (ppc64_sysv_abi_push_dummy_call): Likewise.
785 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
786 (ppc64_sysv_abi_push_dummy_call): Likewise.
787 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
788 * s390-tdep.c (s390_push_dummy_call): Likewise.
789 * sh-tdep.c (sh_push_dummy_call_fpu)
790 (sh_push_dummy_call_nofpu): Likewise.
791 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
792 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
793 * vax-tdep.c (vax_push_dummy_call): Likewise.
794
4a19ea35
JB
7952004-06-04 Jim Blandy <jimb@redhat.com>
796
8327ccee
JB
797 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
798 gdbarch argument to register_size.
799
a3c001ce
JB
800 * rs6000-tdep.c (rs6000_store_return_value): Use
801 regcache_cooked_write_part instead of
802 deprecated_write_register_bytes.
803 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
804 not gdbarch_deprecated_store_return_value.
805
4a19ea35
JB
806 * ppc-linux-nat.c (store_register, fetch_register): Remove
807 incorrect assertions. Simplify and generalize handling of
808 transfers whose sizes are not multiples of, or less than, sizeof
809 (PTRACE_XFER_TYPE).
810
b9b5d7ea
JJ
8112004-06-04 Jeff Johnston <jjohnstn@redhat.com>
812
813 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
814 as a new thread event.
720c7d64 815 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 816 zombie, return TD_THR_ZOMBIE.
720c7d64 817 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
818 TD_THR_ZOMBIE, check if the thread is still on the thread list
819 and return a -1 ptid if not found.
820 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
821 change the status to TARGET_WAITKIND_SPURIOUS.
822
c8a3b559
CV
8232004-06-03 Corinna Vinschen <vinschen@redhat.com>
824
825 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
826 double values in little endian mode.
827
20605361
AC
8282004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
829
830 Committed by Andrew Cagney.
831 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
832 after last enum constant to avoid error from IBM C
833 compiler.
834
bc97b3ba
JB
8352004-06-02 Jim Blandy <jimb@redhat.com>
836
837 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
838 to 'message', and make it local to the lone block that uses it.
839
1da28ab0
JB
840 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
841
4c4b4cd2
PH
8422004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
843
844 * ada-exp.y: Synchronize with current ACT sources.
845 * ada-lang.c: Ditto.
846 * ada-lang.h: Ditto.
847 * ada-lex.l: Ditto.
848 * ada-tasks.c: Ditto.
849 * ada-typeprint.c: Ditto.
850 * ada-valprint.c: Ditto.
851
f65f91b5
JB
8522004-06-01 Jim Blandy <jimb@redhat.com>
853
854 * ppc-tdep.h: Delete unused 'regoff' member.
855 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
856
d4687fa0
MC
8572004-06-01 Michael Chastain <mec.gnu@mindspring.com>
858
859 Fix PR symtab/1661.
860 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
861 (hpread_read_struct_type): Likewise.
862
de169ec9
AC
8632004-06-01 Andrew Cagney <cagney@gnu.org>
864
c6902d46
AC
865 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
866 instead of xasprintf.
867 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
868 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
869 (mi_cmd_data_list_register_names)
870 (mi_cmd_data_list_changed_registers)
871 (mi_cmd_data_list_register_values)
872 (get_register, mi_cmd_data_write_register_values)
873 (mi_cmd_data_write_register_values)
874 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
875 (mi_cmd_target_download, mi_cmd_target_select)
876 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
877 (mi_execute_cli_command, mi_execute_async_cli_command)
878 (mi_execute_async_cli_command): Ditto.
879 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
880 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
881
6085fc2d
AC
882 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
883 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
884 error_last_message instead of mi_error_last_message.
885 * mi/mi-main.c (mi_error_last_message): Delete function.
886
de169ec9
AC
887 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
888 "invalid number of columns" error. Delete redundant "out of
889 memory" check.
890
1fc7d519
MK
8912004-05-31 Mark Kettenis <kettenis@gnu.org>
892
6cfb2041
MK
893 * i386bsd-nat.c: Don't include <sys/procfs.h>.
894 (gregset_t, fpregset_t): Remove typedefs.
895 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
896 (REG_OFFSET): Rename argument.
897 (i386bsd_r_reg_offset): Rename from reg_offset.
898 (REG_ADDR): Remove macro.
899 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
900 functions.
901 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
902 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
903 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
904 instead of supply_gregset.
905 (store_inferior_registers): Use `struct reg' and `struct fpreg'
906 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
907 instead of fill_gregset.
908 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
909
1fc7d519
MK
910 * i386bsd-nat.c: Don't include "gregset.h".
911 (supply_gregset, fill_gregset): Make static.
912 (supply_fpregset, fill_fpregset): Remove.
913 * Makefile.in (i386bsd-nat.o): Update dependencies.
914
2c34abbe
MK
9152004-05-30 Mark Kettenis <kettenis@gnu.org>
916
448724fb
MK
917 * fbsd-proc.c: Include "regcache.h", "regset.h" and
918 "gdb_assert.h". Con't include "gregset.h".
919 (fbsd_make_corefile_notes): Use regset-based core file support
920 instead off fill_gregset and fill_fpregset.
921 * Makefile.in (fbsd-proc.o): Update dependencies.
922
5ca8ca7c
MK
923 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
924 instructions.
925 (m88k_frame_prev_register): Simplify code a bit.
926
593adc23
MK
927 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
928 (amd64_collect_fpregset): New function.
929 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
930
8d1b517b
MK
931 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
932
7fdafb5a
MK
933 * i386-tdep.c (i386_supply_gregset): Adjust comment.
934 (i386_collect_gregset): New function.
935 (i386_supply_fpregset): Adjust comment.
936 (i386_collect_fpregset): New function.
937 (i386_regset_from_core_section): Use i386_collect_gregset and
938 i386_collect_fpregset.
939
8693c419
MK
940 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
941 handle VALUEP being null.
942
2c34abbe
MK
943 * regset.h (collect_regset_ftype): Unconstify fourth argument.
944
45d134d8
MK
9452004-05-29 Mark Kettenis <kettenis@gnu.org>
946
1698f4e7
MK
947 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
948
45d134d8
MK
949 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
950 assembler in OpenBSD 3.5-current.
951 (amd64obsd_sigcontext_addr): Likewise.
952
691d145a
JB
9532004-05-28 Jim Blandy <jimb@redhat.com>
954
955 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
956 register set, so our regcache isn't declared "legacy" and our E500
957 pseudoregister read and write functions aren't ignored.
958 (rs6000_register_byte, rs6000_register_raw_size,
959 rs6000_register_virtual_type, rs6000_register_convertible,
960 rs6000_register_convert_to_virtual,
961 rs6000_register_convert_to_raw): Deleted.
962 (rs6000_register_type, rs6000_convert_register_p,
963 rs6000_register_to_value, rs6000_value_to_register): New
964 functions.
965 (rs6000_gdbarch_init): Don't register
966 gdbarch_deprecated_register_size,
967 gdbarch_deprecated_register_bytes,
968 gdbarch_deprecated_register_byte,
969 gdbarch_deprecated_register_raw_size,
970 gdbarch_deprecated_register_virtual_type,
971 gdbarch_deprecated_register_convertible,
972 gdbarch_deprecated_register_convert_to_virtual, or
973 gdbarch_deprecated_register_convert_to_raw methods. Instead,
974 register gdbarch_register_type, gdbarch_convert_register_p,
975 gdbarch_register_to_value, and gdbarch_value_to_register methods.
976
18ed0c4e
JB
9772004-05-26 Jim Blandy <jimb@redhat.com>
978
979 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
980 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
981 functions, updated to match the register numberings used in GCC.
982 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
983 rs6000_dwarf2_reg_to_regnum as register number conversions
984 functions for STABS and Dwarf2.
985
779af9e3
RC
9862004-05-26 Randolph Chung <tausq@debian.org>
987
988 * infttrace.h (target_waitkind): Forward declare type instead of pulling
989 in header file.
990
c23968a2
JB
9912004-05-25 Joel Brobecker <brobecker@gnat.com>
992
993 * NEWS: Document new "start" command.
994
3a7d1c27
RC
9952004-05-25 Randolph Chung <tausq@debian.org>
996
997 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
998 hppa-linux.
999
43613416
RC
10002004-05-25 Randolph Chung <tausq@debian.org>
1001
1002 * hppa-hpux-tdep.c (offsetof): Define.
1003 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
1004 (hppa32_hpux_frame_base_before_sigtramp)
1005 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
1006 (hppa64_hpux_frame_saved_pc_in_sigtramp)
1007 (hppa64_hpux_frame_base_before_sigtramp)
1008 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
1009 functions.
1010 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
1011 (hppa_hpux_sigtramp_frame_unwind_cache)
1012 (hppa_hpux_sigtramp_frame_this_id)
1013 (hppa_hpux_sigtramp_frame_prev_register)
1014 (hppa_hpux_sigtramp_frame_unwind)
1015 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
1016 (hppa_hpux_init_abi): Register sigtramp unwinder.
1017 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
1018
6d1be3f1
RC
10192004-05-25 Randolph Chung <tausq@debian.org>
1020
1021 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
1022 and multiple stack unwinds.
1023 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
1024
97c34f65
AC
10252004-05-25 Andrew Cagney <cagney@gnu.org>
1026
1027 * symfile.h (symbol_file_add_from_memory): Delete declaration.
1028 * symfile-mem.h: Delete file.
1029 * symfile-mem.c: Do not include "symfile-mem.h".
1030 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
1031 "struct bfd_section". When an error do not bother returning NULL.
1032 (add_symbol_file_from_memory_command): Use "struct bfd" and
1033 "struct bfd_section".
1034 * Makefile.in (symfile_mem_h): Delete.
1035 (symfile-mem.o): Update dependencies.
1036
e23cbd82
NR
10372004-05-25 Nick Roberts <nickrob@gnu.org>
1038
1039 * gdb-mi.el: New file.
1040
20d2ca3e
AC
10412004-05-25 Andrew Cagney <cagney@gnu.org>
1042
1043 * inftarg.c: Include "observer.h".
1044 (child_attach, child_create_inferior): Notify inferior_created.
1045 * corelow.c: Include "observer.h".
1046 (core_open): Notify inferior_created.
1047 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
1048
c27cda74
AC
10492004-05-25 Andrew Cagney <cagney@gnu.org>
1050
1051 * target.h (struct target_ops): Add from_tty to
1052 to_create_inferior.
1053 (target_create_inferior, find_default_create_inferior): Update.
1054 * infcmd.c (run_command): Update.
1055 * wince.c (child_create_inferior): Update.
1056 * win32-nat.c (child_create_inferior): Update.
1057 * uw-thread.c (uw_thread_create_inferior): Update.
1058 * thread-db.c (thread_db_create_inferior): Update.
1059 * target.c (debug_to_create_inferior)
1060 (find_default_create_inferior): Update.
1061 (maybe_kill_then_create_inferior): Update.
1062 * sol-thread.c (sol_thread_create_inferior): Update.
1063 * remote.c (extended_remote_async_create_inferior)
1064 (extended_remote_create_inferior): Update.
1065 * remote-vx.c (vx_create_inferior): Update.
1066 * remote-st.c (st2000_create_inferior): Update.
1067 * remote-sim.c (gdbsim_create_inferior): Update.
1068 * remote-sds.c (sds_create_inferior): Update.
1069 * remote-rdp.c (remote_rdp_create_inferior): Update.
1070 * remote-rdi.c (arm_rdi_create_inferior): Update.
1071 * remote-m32r-sdi.c (m32r_create_inferior): Update.
1072 * remote-e7000.c (e7000_create_inferior): Update.
1073 * procfs.c (procfs_create_inferior): Update.
1074 * ocd.c (ocd_create_inferior): Update.
1075 * ocd.h (ocd_create_inferior): Update.
1076 * nto-procfs.c (procfs_create_inferior): Update.
1077 * monitor.c (monitor_create_inferior): Update.
1078 * lin-lwp.c (lin_lwp_create_inferior): Update.
1079 * inftarg.c (child_create_inferior): Update.
1080 * hpux-thread.c (hpux_thread_create_inferior): Update.
1081 * gnu-nat.c (gnu_create_inferior): Update.
1082
1db2a798
AC
10832004-05-25 Andrew Cagney <cagney@gnu.com>
1084
1085 * MAINTAINERS: Update e-mail address.
1086
007d08bb
RC
10872004-05-24 Randolph Chung <tausq@debian.org>
1088
1089 * thread.c (info_threads_command, thread_apply_all_command)
1090 (thread_apply_command, thread_command, do_captured_thread_select):
1091 Remove HPUXHPPA-specific code.
1092
69e7b95e
RC
10932004-05-24 Randolph Chung <tausq@debian.org>
1094
1095 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
1096 unused symbols.
1097 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
1098 references.
1099
a4d5f2e0
JB
11002004-05-24 Joel Brobecker <brobecker@gnat.com>
1101
1102 * infcmd.c (kill_if_already_running): New function, extracted
1103 from run_command().
1104 (run_command): Replace extracted code by call to
1105 kill_if_already_running().
1106 (start_command): New function.
1107 (_initialize_infcmd): Add "start" command.
1108
bf2ca189
MK
11092004-05-24 Mark Kettenis <kettenis@gnu.org>
1110
1111 Add OpenBSD/m88k support.
1112 * NEWS (New native configurations): Mention OpenBSD/m88k.
1113 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
1114 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
1115 * Makefile.in (m88k_tdep_h): New variable.
1116 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
1117 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
1118 * configure.host: Add m88*-*-openbsd*.
1119 * configure.tgt: Add m88*-*-openbsd*.
1120
80fadb11
JB
11212004-05-24 Jim Blandy <jimb@redhat.com>
1122
1123 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
1124 to approve changes.
1125
19e2d14b
KB
11262004-05-24 Kevin Buettner <kevinb@redhat.com>
1127
1128 * symtab.c (fixup_section): Search section table when lookup by
1129 name fails.
1130
1b07b470
RC
11312004-05-24 Randolph Chung <tausq@debian.org>
1132
1133 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
1134 be "small_struct".
1135
368702b1
MK
11362004-05-24 Mark Kettenis <kettenis@gnu.org>
1137
5df97fde
MK
1138 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
1139 register number in regcache_raw_collect call.
1140 (m68kbsd_collect_fpregset): Likewise.
1141 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
1142
368702b1
MK
1143 * regset.h (struct regset): Add back `regset' member.
1144
a770d4ec
MK
11452004-05-23 Mark Kettenis <kettenis@gnu.org>
1146
70f9f479
MK
1147 * configure.in: Check for td_pcb in `struct thread'.
1148 * configure, config.in: Regenerated.
1149
2e16d79e
MK
1150 * dpx2-nat.c: Remove file.
1151 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
1152 (dpx2-nat.o): Remove dependencies.
1153
492cf391
MK
1154 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
1155 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1156 (amd64obsd_supply_pcb): New function.
1157 (_initialize_amd64obsd_nat): Enable libkvm interface.
1158 * Makefile.in (amd64obsd-nat.o): Update dependencies.
1159 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
1160 (LOADLIBES): New variable.
1161
a770d4ec
MK
1162 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
1163 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
1164 (sparc32nbsd_supply_pcb): New function.
1165 (_initialize_sparcnbsd_nat): Enable libkvm interface.
1166 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
1167 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1168 (LOADLIBES): New variable.
1169
9ea75c57
MK
11702004-05-22 Mark Kettenis <kettenis@gnu.org>
1171
2e0c3539
MK
1172 * bsd-kvm.c, bsd-kvm.h: New files.
1173 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1174 "bsd-kvm.h".
1175 (i386fbsd_supply_pcb): New function.
1176 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1177 (i386fbsd-nat.o): Update dependencies.
1178 (bsd_kvm_h): New variable.
1179 (bsd-kvm.o): New dependency.
1180 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1181 (LOADLIBES): New variable.
1182
9ea75c57
MK
1183 * regset.c: Tweak comment.
1184 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1185 macro.
1186 * regset.h: Update copyright year.
1187 (struct regset): Remove `descr' member, add `gdbarch' member.
1188 (regset_alloc): Adjust prototype and comment.
1189 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1190 (i386_supply_fpregset): Likewise.
1191 (i386_regset_from_core_section): Update call to regset_alloc.
1192 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1193 REGSET->arch.
1194 (i386obsd_aout_regset_from_core_section): Update call to
1195 regset_alloc.
1196 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1197 REGSET->arch.
1198 (i386nbsd_aout_regset_from_core_section): Update call to
1199 regset_alloc.
1200 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1201 REGSET->arch.
1202 (amd64_regset_from_core_section): Update call to regset_alloc.
1203 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1204 REGSET->arch.
1205 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1206 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1207 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1208 (sparc32nbsd_init_abi): Update call to regset_alloc.
1209 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1210 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1211 (sparc64obsd_init_abi): Update call to regset_alloc.
1212 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1213 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1214 (sparc64nbsd_init_abi): Update call to regset_alloc.
1215 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1216 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1217 (sparc64fbsd_init_abi): Update call to regset_alloc.
1218
867e2dc5
JB
12192004-05-22 Jim Blandy <jimb@redhat.com>
1220
1221 * ppc-tdep.h (spe_register_p): New declaration.
1222 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1223 ppc_spefscr_regnum.
1224 * rs6000-tdep.c (spe_register_p): New function.
1225 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1226 spefscr.
1227 (rs6000_gdbarch_init): Initialize the new members of the tdep
1228 structure.
1229
617a4cba
JB
12302004-05-21 Jim Blandy <jimb@redhat.com>
1231
0397dee1
JB
1232 * ppc-linux-nat.c (fetch_register): Move code back to be next
1233 to the comment that describes it. (Moved code, instead of
1234 comment, for symmetry with store_register.)
1235
617a4cba
JB
1236 Allocate regset structures in the gdbarch's obstack, not using
1237 xmalloc.
1238 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1239 Add 'arch' argument. Allocate the regset on arch's obstack, not
1240 using xmalloc.
1241 * regset.h (regset_alloc): Update declaration.
1242 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1243 gdbarch argument.
1244 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1245 * i386-tdep.c (i386_regset_from_core_section): Same.
1246 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1247 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1248 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1249 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1250 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1251 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1252
9aa3914d
JB
12532004-05-21 Joel Brobecker <brobecker@gnat.com>
1254
1255 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1256
99c87dab
JB
12572004-05-21 Jim Blandy <jimb@redhat.com>
1258
1259 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1260 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1261
c2b6b4aa
JB
12622004-05-20 Jim Blandy <jimb@redhat.com>
1263
1264 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1265
144529d0
MK
12662004-05-20 Mark Kettenis <kettenis@gnu.org>
1267
1268 * regset.h: Make prototype const-correct.
1269 * regset.c (regset_xmalloc): Make const-correct.
1270
4725b721
PH
12712004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1272
1273 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1274 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1275 (symbol_search_name): Declare.
1276
1277 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1278 (iter_name_next_hashed): Ditto.
1279 (iter_name_next_linear): Ditto.
1280 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1281
1282 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1283 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1284 (symbol_search_name): New function.
1285
1286 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1287
1288 * minsyms.c (build_minimal_symbol_hash_tables): Change
1289 test for adding to demangled hash table to check for difference
1290 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1291
be07a590
JB
12922004-05-19 Jim Blandy <jimb@redhat.com>
1293
1294 Use a constructor function to create regset structures.
1295 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1296 (struct regset): Use supply_regset_ftype. Add new
1297 'collect_regset' member.
1298 (regset_xmalloc): New declaration.
1299 * regset.c: New file.
1300 * am64-tdep.c (amd64_regset_from_core_section): Use
1301 regset_xmalloc to construct regset structures.
1302 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1303 * i386-tdep.c (i386_regset_from_core_section): Same.
1304 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1305 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1306 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1307 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1308 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1309 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1310 * Makefile.in (COMMON_OBS): Add regset.o.
1311 (regset.o): New rule.
1312
604368f5
JB
13132004-05-19 Joel Brobecker <brobecker@gnat.com>
1314
1315 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1316 and pthread_cond_wait.c.
1317
82d69f8b
JB
13182004-05-18 Jim Blandy <jimb@redhat.com>
1319
1320 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1321 before the mach-specific switch, and then let the individual cases
1322 override the defaults, rather than leaving them uninitialized
1323 until the switch and then setting them in each case.
1324
5859efe5
RC
13252004-05-18 Randolph Chung <tausq@debian.org>
1326
1327 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1328 millicode functions.
1329
9ca80cf8
RC
13302004-05-18 Randolph Chung <tausq@debian.org>
1331
1332 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1333 references to dld_flags_buffer consistent.
1334
ed70ba00
RC
13352004-05-18 Randolph Chung <tausq@debian.org>
1336
1337 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1338 it for unwinding the stack.
1339
63100632
RC
13402004-05-18 Randolph Chung <tausq@debian.org>
1341
1342 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1343 Undefine these so we can overide them using gdbarch.
1344
090ccbb7
RC
13452004-05-18 Randolph Chung <tausq@debian.org>
1346
1347 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1348 handling for 64-bit HPUX (elf).
1349
594706e6
DJ
13502004-05-18 Daniel Jacobowitz <dan@debian.org>
1351
1352 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1353 constants.
1354 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1355 * ia64-tdep.c (examine_prologue): Likewise.
1356 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1357 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1358
e5483145
MK
13592004-05-18 Mark Kettenis <kettenis@gnu.org>
1360
1361 * vax-tdep.c (vax_return_value): Implement
1362 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1363
caed1a45
MK
13642004-05-17 Mark Kettenis <kettenis@gnu.org>
1365
1366 * vax-tdep.c (vax_return_value): Fix typo.
1367
3c0b7db2
AC
13682004-05-17 Andrew Cagney <cagney@redhat.com>
1369
5aae53e5
AC
1370 * MAINTAINERS: Mark Salter was also responsible for
1371 testsuite/config/
1372
3c0b7db2
AC
1373 * NEWS: Mention signal fixes.
1374
22b0923d
RC
13752004-05-17 Randolph Chung <tausq@debian.org>
1376
1377 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1378 check to see if we are unwinding an export stub. Export stubs clobber
1379 the %rp in the call path and stores the original rp in a stack slot.
1380
22f2b2f3
JB
13812004-05-17 Jim Blandy <jimb@redhat.com>
1382
1383 * MAINTAINERS: Update address for J.T. Conklin.
1384
cea96d64
RC
13852004-05-17 Randolph Chung <tausq@debian.org>
1386
1387 * hppa-tdep.c: Remove superfluous #include's.
1388 * Makefile.in (hppa-tdep.o): Update dependencies.
1389
f08f6a4a
RC
13902004-05-17 Randolph Chung <tausq@debian.org>
1391
1392 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1393 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1394 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1395 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1396 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1397 Remove static function declarations.
1398
51da707a
MK
13992004-05-17 Mark Kettenis <kettenis@gnu.org>
1400
caed1a45
MK
1401 * alphabsd-nat.c: Update copyright year.
1402 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1403
c0c2b0db
MK
1404 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1405 and M68K_A2_REGNUM.
1406
51da707a
MK
1407 * m68k-tdep.c (m68k_svr4_return_value): Implement
1408 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1409
8d027a04
MK
14102004-05-16 Mark Kettenis <kettenis@gnu.org>
1411
1412 * sol-thread.c Update copyright year. Fix various coding
1413 standards violations. Tweak a few comments.
1414 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1415 Delete prototypes.
1416
0d99fdb9
RC
14172004-05-15 Randolph Chung <tausq@debian.org>
1418
1419 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1420 as pointer instead of array reference since HPUX compiler does
1421 not accept unsized array arguments.
1422 * somsolib.c (dld_flags_buffer): Use constant array size.
1423
f7e3843a
MK
14242004-05-15 Mark Kettenis <kettenis@gnu.org>
1425
0fe85704
MK
1426 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1427 offset with decimal offset.
1428 (amd64obsd_sigcontext_addr): Return correct address for entire
1429 signal trampoline.
1430
a54f9a00
MK
1431 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1432 instead of get_frame_base.
1433
feae6502
MK
1434 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1435 (fill_gregset): Use regcache_raw_collect.
1436
0382d099
MK
1437 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1438 ppcobsd-tdep.c.
1439
f7e3843a
MK
1440 * config/sparc/tm-nbsd64.h: Remove file.
1441 * config/tm-sunos.h: Remove file.
1442
773df3e5
JB
14432004-05-15 Joel Brobecker <brobecker@gnat.com>
1444
1445 * rs6000-tdep.c (store_param_on_stack_p): New function,
1446 an improved version of some code extracted from skip_prologue().
1447 (skip_prologue): Use store_param_on_stack_p() to detect
1448 instructions saving a parameter on the stack. Detect when r0
1449 is used to save a parameter.
1450 Do not mark "li rx, SIMM" instructions as part of the prologue,
1451 unless the following instruction is also part of the prologue.
1452
95918acb
AC
14532004-05-14 Andrew Cagney <cagney@redhat.com>
1454
06f32659
AC
1455 * infrun.c (handle_inferior_event): Simplify
1456 STEP_OVER_UNDEBUGGABLE.
1457
95918acb
AC
1458 * infrun.c (handle_step_into_function): Delete function.
1459 (handle_inferior_event): Inline calls to
1460 handle_step_into_function.
1461
42203e46
JG
14622004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1463
1464 * rs6000-nat.c: Fix a comment.
1465
02f60eae
JB
14662004-05-12 David Anderson <davea@sgi.com>
1467
1468 Committed by Jim Blandy <jimb@redhat.com>:
1469 * regcache.c (struct regcache_descr): fix comment spelling.
1470
552e377b
JB
14712004-05-13 J. Brobecker <brobecker@gnat.com>
1472
1473 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1474 Fixes a link link failure.
1475
349766b2
JB
14762004-05-13 J. Brobecker <brobecker@gnat.com>
1477
1478 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1479 error that was causing the build to fail.
1480
0d4d5484
JB
14812004-05-13 J. Brobecker <brobecker@gnat.com>
1482
1483 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1484 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1485
0b30808c
AC
14862004-05-13 Andrew Cagney <cagney@redhat.com>
1487
1488 * infrun.c (handle_inferior_event): Check for
1489 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1490 calls. Update comments.
1491
cdf2c5f5
JB
14922004-05-13 Jim Blandy <jimb@redhat.com>
1493
063715bf
JB
1494 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1495 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1496 (store_regs_user_thread, store_regs_kernel_thread): Use
1497 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1498 * ppc-linux-nat.c (fill_gregset): Same.
1499 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1500 (ppc_linux_sigtramp_cache): Same.
1501 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1502 (ppcnbsd_sigtramp_cache_init): Same.
1503 * rs6000-nat.c (fetch_core_registers): Same.
1504 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1505 (rs6000_frame_cache): Same.
1506
cdf2c5f5
JB
1507 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1508 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1509 of assuming that the gprs are numbered starting with zero.
1510 * ppc-linux-nat.c (fill_gregset): Same.
1511 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1512 * ppcnbsd-nat.c (getregs_supplies): Same.
1513 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1514 * rs6000-nat.c (fetch_core_registers): Same.
1515 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1516
450bd37b
MS
15172004-05-07 Michael Snyder <msnyder@redhat.com>
1518
1519 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1520 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1521
4a72a2a6
AC
15222004-05-13 Andrew Cagney <cagney@redhat.com>
1523
1524 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1525
8edfa926
BM
15262004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1527
1528 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1529 base_address for shared libraries.
1530
723e0e3d
BM
15312004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1532
1533 * MAINTAINERS (write after approval): Add myself.
1534
00d4360e
UW
15352004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1536
1537 * breakpoint.c (bpstat_stop_status): Add new argument
1538 STOPPED_BY_WATCHPOINT. Use it instead of testing
1539 target_stopped_data_address agaist 0 to check whether
1540 or not we stopped due to a hardware watchpoint.
1541 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1542 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1543 with new argument.
1544
ec76baa5
JB
15452004-05-12 Jim Blandy <jimb@redhat.com>
1546
1547 * configure.in: When checking whether we should use the -bbigtoc
1548 option, don't forget to restore the original value of LDFLAGS.
1549 * configure: Regenerated.
1550
f2c9ca08
AC
15512004-05-12 Andrew Cagney <cagney@redhat.com>
1552
1553 * thread.c (load_infrun_state): Delete step_sp.
1554 * infrun.c (context_switch): Ditto.
1555 * inferior.h (step_sp): Ditto.
1556 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1557 * gdbthread.h (struct thread_info, save_infrun_state)
1558 (restore_infrun_state): Ditto.
1559
090ddb2a
UW
15602004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1561
1562 * MAINTAINERS (write after approval): Add myself.
1563
8aad930b
AC
15642004-05-12 Andrew Cagney <cagney@redhat.com>
1565
1566 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1567 eliminate reference to step_sp.
1568 (struct execution_control_state, init_execution_control_state)
1569 (handle_inferior_event, keep_going): Delete update_step_sp and
1570 step_sp.
1571 * infcmd.c (step_sp): Note that variable is unused.
1572
922d5ae0
AC
15732004-05-11 Andrew Cagney <cagney@redhat.com>
1574
1575 * infrun.c (step_over_function): Delete function.
1576 (handle_step_into_function): Use insert_step_resume_breakpoint.
1577 (insert_step_resume_breakpoint): Fix assertion.
1578
017c5ca5
NR
15792004-05-11 Nick Roberts <nickrob@gnu.org>
1580
1581 * utils.c (defaulted_query): Just use the normal query input type
1582 when printing the annotations.
1583
42edda50
AC
15842004-05-11 Andrew Cagney <cagney@redhat.com>
1585
1586 * infrun.c (handle_inferior_event): Simplify code handling
1587 step-into or return-from a signal trampoline.
1588
d28b44a7
AC
15892004-05-11 Andrew Cagney <cagney@redhat.com>
1590
1591 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1592 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1593
383f0f5b
JB
15942004-05-10 Jim Blandy <jimb@redhat.com>
1595
d0b57c3a
JB
1596 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1597 with a call to internal_error.
1598
383f0f5b
JB
1599 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1600 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1601 processor variant lacks those registers.
1602 (ppc_floating_point_unit_p): Change description to make it clear
1603 that this returns info about the ISA, not the ABI.
1604 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1605 return true or false by checking tdep->ppc_fp0_regnum and
1606 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1607 arch/mach switching done in rs6000_gdbarch_init; it's better to
1608 keep that logic there, and just check the results here.
1609 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1610 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1611 floating-point registers.
1612 (ppc_supply_fpregset, ppc_collect_fpregset)
1613 (rs6000_push_dummy_call, rs6000_extract_return_value)
1614 (rs6000_store_return_value): Assert that we have floating-point
1615 registers.
1616 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1617 (rs6000_frame_cache): Don't note the locations at which
1618 floating-point registers were saved if we have no fprs.
1619 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1620 registers.
1621 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1622 (store_regs_user_thread, store_regs_kernel_thread): Only call
1623 supply_fprs / fill_fprs if we actually have floating-point
1624 registers.
1625 (special_register_p): Check ppc_fpscr_regnum before matching
1626 against it.
1627 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1628 supply / collect fpscr if we don't have it.
1629 * ppc-bdm.c: #include "gdb_assert.h".
1630 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1631 have floating-point registers, since I can't test this code on
1632 FP-free systems to adapt it.
1633 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1634 fpscr and floating point register numbers if they don't exist.
1635 (fetch_register): Assert that we have floating-point registers
1636 before we reach the code that handles them.
1637 (store_register): Same. And use tdep instead of calling
1638 gdbarch_tdep again.
1639 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1640 don't have them.
1641 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1642 fprs and fpscr if we don't have them.
1643 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1644 don't have them.
1645 * ppcnbsd-nat.c: #include "gdb_assert.h".
1646 (getfpregs_supplies): Assert that we have floating-point registers.
1647 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1648 * ppcobsd-tdep.c: #include "gdb_assert.h".
1649 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1650 have floating-point registers.
1651 * rs6000-nat.c (regmap): Don't match against the fpscr and
1652 floating point register numbers if they don't exist.
1653 (fetch_inferior_registers, store_inferior_registers,
1654 fetch_core_registers): Only fetch / store / supply the
1655 floating-point registers and the fpscr if we have them.
1656 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1657 (ppcobsd-tdep.o): Update dependencies.
1658
15960608
AC
16592004-05-10 Andrew Cagney <cagney@redhat.com>
1660
1661 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1662 (context_switch): Do not switch through_sigtramp_breakpoint.
1663 * gdbthread.h (save_infrun_state, load_infrun_state)
1664 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1665 and structure member.
1666 * thread.c (load_infrun_state, save_infrun_state): Update.
1667
5ab5aa0f
MK
16682004-05-10 Mark Kettenis <kettenis@gnu.org>
1669
1670 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1671
da78b0e7
DJ
16722004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1673
1674 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1675 throughout.
1676 * aclocal.m4: Regenerate.
1677
cca0d3b0
NW
16782004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1679
1680 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1681
d303a6c7
AC
16822004-05-10 Andrew Cagney <cagney@redhat.com>
1683
1684 * infrun.c (check_sigtramp2): Delete function.
1685 (handle_inferior_event): When single stepping, and taking a
1686 signal, set a breakpoint at the signal return address. Delete
1687 redundant calls to check_sigtramp2.
1688 (insert_step_resume_breakpoint): New function.
1689 (through_sigtramp_breakpoint, handle_inferior_event)
1690 (follow_exec, wait_for_inferior, fetch_inferior_event)
1691 (currently_stepping, keep_going): Delete most uses of
1692 through_sigtramp_breakpoint, not that it should be deleted.
1693 (delete_breakpoint_current_contents): Delete function.
1694
03f4cc20
RC
16952004-05-10 Randolph Chung <tausq@debian.org>
1696
1697 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1698 target.
1699 * config/pa/tm-linux.h: New file.
1700
37fc812e
DJ
17012004-05-10 Daniel Jacobowitz <drow@mvista.com>
1702
1703 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1704 of prefixes. Don't print the prefix twice in the CLI.
1705
26c0b942
JB
17062004-05-10 Jim Blandy <jimb@redhat.com>
1707
2e56e9c1
JB
1708 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1709 collect all the gprs.
1710
26c0b942
JB
1711 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1712 loop collecting gprs.
1713
dc497459
AC
17142004-05-09 Andrew Cagney <cagney@redhat.com>
1715
1716 * remote-vx.c (net_step): Delete step-range code.
1717 * remote.c (remote_resume, init_all_packet_configs)
1718 (set_remote_protocol_E_packet_cmd)
1719 (show_remote_protocol_E_packet_cmd)
1720 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1721 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1722 (show_remote_protocol_e_packet_cmd): Ditto.
1723
0543f387
MK
17242004-05-09 Mark Kettenis <kettenis@gnu.org>
1725
c481d1ca
MK
1726 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1727
f626a069
MK
1728 * hppa-tdep.h: Update copyright year.
1729 (struct trad_frame_saved_reg): Add opaque declaration.
1730
6fa57a7d
MK
1731 * amd64-tdep.c (amd64_return_value): Implement
1732 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1733
e47577ab
MK
1734 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1735 (m68k_value_to_register): New functions.
1736 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1737 value_to_register.
1738
31db7b6c
MK
1739 * defs.h (enum return_value_convention): Add
1740 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1741 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1742 * infcmd.c (legacy_return_value): New function.
1743 (print_return_value): Rwerite to implement
1744 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1745 * values.c (using_struct_return): Check for inequality to
1746 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1747 RETURN_VALUE_STRUCT_CONVENTION.
1748 * i386-tdep.c (i386_return_value): Implement
1749 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1750
0543f387
MK
1751 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1752 include "symtab.h", "opcode/vax.h" and "inferior.h".
1753 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1754 to read_memory_unsigned_integer.
1755 (vax_gdbarch_init): Reorder.
1756 (_initialize_vax_tdep): Spell out prototype.
1757 * Makefile.in (vax-tdep.o): Update dependencies.
1758
0c93b7b6
AC
17592004-05-08 Andrew Cagney <cagney@redhat.com>
1760
e6b55ae2
AC
1761 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1762 * target.c (target_detach, target_disconnect): Ditto.
1763
1ac839b8
AC
1764 * infcall.c (call_function_by_hand): When no
1765 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1766 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1767 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1768 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1769 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1770
28954179
AC
1771 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1772 * gdbarch.h, gdbarch.c: Re-generate.
1773 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1774 deprecated_fix_call_dummy.
1775 * v850-tdep.c (v850_gdbarch_init): Ditto.
1776 * infcall.c (call_function_by_hand): Do not call
1777 DEPRECATED_FIX_CALL_DUMMY.
1778
434b87dd
AC
1779 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1780 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1781 * gdbarch.h, gdbarch.c: Re-generate.
1782 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1783 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1784 deprecated_sizeof_call_dummy_words.
1785 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1787 * v850-tdep.c (v850_gdbarch_init): Ditto.
1788 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1789 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1790 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1791 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1792 * arch-utils.h (legacy_call_dummy_words)
1793 (legacy_sizeof_call_dummy_words): Delete declarations.
1794 * arch-utils.c (legacy_call_dummy_words)
1795 (legacy_sizeof_call_dummy_words): Delete variables.
1796
58d28df8
AC
1797 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1798 * gdbarch.h, gdbarch.c: Re-generate.
1799 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1800 * infcall.c (call_function_by_hand): Eliminate call to
1801 DEPRECATED_PUSH_DUMMY_FRAME.
1802 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1803 push_dummy_frame.
1804 (ns32k_push_dummy_frame): Delete function.
1805
e4a2df64
AC
1806 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1807 deprecated_call_dummy_breakpoint_offset or
1808 deprecated_call_dummy_start_offset.
1809 * dummy-frame.c, arm-tdep.c: Update comments.
1810 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1811 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1812 * gdbarch.h, gdbarch.c: Re-generate.
1813
d3712828
AC
1814 * infcall.c (legacy_push_dummy_code): Delete function.
1815 (push_dummy_code): Delete call.
1816
7a882905
AC
1817 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1818 * gdbarch.h, gdbarch.c: Re-generate.
1819 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1820 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1821 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1822 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1823
0ec5872b
AC
1824 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1825 (struct frame_info): Delete opaque declaration.
1826 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1827 * frame.c (get_frame_type): Delete call.
1828
0c93b7b6
AC
1829 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1830 pc_in_call_dummy.
1831 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1832 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1833
75536971
MK
18342004-05-08 Mark Kettenis <kettenis@gnu.org>
1835
527ca6bb
MK
1836 * alphanbsd-tdep.c: Include "gdb_string.h".
1837 * armnbsd-tdep.c: Update copyright year.
1838 Include "gdb_string.h".
1839 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1840 dependencies.
1841
d39fdc61
MK
1842 * delta68-nat.c: Remove file.
1843 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1844 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1845 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1846 (delta68-nat.o): Remove dependency.
1847
75536971
MK
1848 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1849 function.
1850 (m68k_gdbarch_init): Don't set
1851 deprecated_frameless_function_invocation.
1852
f4ca1d1f
RC
18532004-05-07 Randolph Chung <tausq@debian.org>
1854
1855 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1856 read_memory_nobpt for code reading when doing frame unwinding.
1857 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1858
2f0e8c7a
RC
18592004-05-07 Randolph Chung <tausq@debian.org>
1860
1861 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1862 instead of sp, handle sigaltstack case.
1863 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1864 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1865 signal handler and not that of the caller.
1866 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1867 hppa_linux_sigtramp_find_sigcontext.
1868
959464ff
RC
18692004-05-07 Randolph Chung <tausq@debian.org>
1870
1871 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1872 hppa-linux-nat.c.
1873 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1874 * hppa-linux-nat.c (fetch_register, store_register): Define.
1875 (fetch_inferior_registers, store_inferior_registers): Define.
1876 (supply_gregset): Add comment and clean up some unneeded code.
1877 (fill_gregset): Add comment and fix so that it saves registers in
1878 the right place in the gregset.
1879 (fill_fpregset): Fix buffer overrun problem.
1880 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1881
0da28f8a
RC
18822004-05-07 Randolph Chung <tausq@debian.org>
1883
1884 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1885 do common handling of the pcoqt register.
1886 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1887 to use helper function.
1888 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1889 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1890 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1891 generic fallback unwinder when all else fails.
1892 (hppa_gdbarch_init): Add fallback sniffer.
1893 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1894 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1895 to use helper function.
1896
b9ec757a
JB
18972004-05-08 Joel Brobecker <brobecker@gnat.com>
1898
1899 * config/djgpp/fnchange.lst: Add translation rules for
1900 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1901
756e95f1
MK
19022004-05-08 Mark Kettenis <kettenis@gnu.org>
1903
1904 * frame.c (get_prev_frame_1): Work around GCC bug.
1905 * frame.h: Add comment about GCC bug.
1906
2b4855ab
AC
19072004-05-07 Andrew Cagney <cagney@redhat.com>
1908
1909 * observer.c: Include "commands.h" and "gdbcmd.h".
1910 (observer_debug, _initialize_observer): Add the
1911 command "set/show debug observer".
1912 * observer.sh: When observer debugging, log notify calls.
1913 * Makefile.in (observer.o): Update dependencies.
1914
ba3e8e46
JM
19152004-05-07 Jason Molenda (jmolenda@apple.com)
1916
1917 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1918
16796152
JB
19192004-05-07 Jim Blandy <jimb@redhat.com>
1920
daf6dc85
JB
1921 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1922 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1923 to recognize gpr regnums, instead of assuming that
1924 tdep->ppc_fp0_regnum marks the end of the general-purpose
1925 registers.
1926
16796152
JB
1927 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1928 the given architecture has floating-point registers.
1929
c69b8bfc
AC
19302004-05-07 Andrew Cagney <cagney@redhat.com>
1931
1932 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1933 macro defined to 1.
1934 * gdbarch.h, gdbarch.c: Re-generate.
1935 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1936 deprecated_use_generic_dummy_frames.
1937
7243600a
BF
19382004-05-07 Brian Ford <ford@vss.fsi.com>
1939
1940 * NEWS: Mention Cygwin DWARF 2 support.
1941
73c1e0a1
AC
19422004-05-07 Andrew Cagney <cagney@redhat.com>
1943
1944 * objfiles.h (struct entry_info): Delete unused fields
1945 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1946 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1947 * mipsread.c (mipscoff_symfile_read): Update.
1948 * mdebugread.c (parse_partial_symbols): Update.
1949 * dwarfread.c (read_file_scope): Update.
1950 * dwarf2read.c (read_file_scope): Update.
1951 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1952 * coffread.c (complete_symtab): Update.
1953
1d3056ac
MK
19542004-05-07 Mark Kettenis <kettenis@gnu.org>
1955
1956 * infcall.c (_initialize_infcall): Fix typo.
1957
15170568
AC
19582004-05-07 Andrew Cagney <cagney@redhat.com>
1959
1960 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1961 * command.h (add_setshow_zinteger_cmd): Declare.
1962
34f75cc1
RC
19632004-05-06 Randolph Chung <tausq@debian.org>
1964
1965 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1966 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1967 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1968 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1969 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1970 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1971 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1972 definitions ...
1973 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1974 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1975 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1976 (hppa64_hpux_frame_find_saved_regs_in_sig)
1977 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1978 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1979 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1980 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1981 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1982 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1983 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1984 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1985 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1986 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1987 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1988 (hppa32_register_type, hppa_cannot_store_register)
1989 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1990 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1991 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1992 * pa64solib.c (pa64_solib_have_load_event)
1993 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1994 (pa64_solib_unloaded_library_pathname): Likewise.
1995 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1996 (som_solib_library_pathname): Likewise.
1997
0a5e7efe
JI
19982004-05-05 Jim Ingham <jingham@apple.com>
1999
2000 * breakpoint.c (create_breakpoints): Copy the ignore count and
2001 thread id over from the pended breakpoint to the actual
2002 breakpoint.
2003
10a4b113
AC
20042004-05-05 Andrew Cagney <cagney@redhat.com>
2005
2006 * gdbarch.sh (PARM_BOUNDARY): Delete.
2007 gdbarch.h, gdbarch.c: Re-generate.
2008 * valops.c (PARM_BOUNDARY): Delete macro.
2009 (value_push): Delete PARM_BOUNDARY code.
2010 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
2011
366f009f
JB
20122004-05-04 Jim Blandy <jimb@redhat.com>
2013
32b99774
JB
2014 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
2015 Don't assume that the gprs, fprs, and UISA sprs are
2016 contiguous, start at register number zero, and end with fpscr.
2017 Instead, use the numbers from the tdep structure.
2018
366f009f
JB
2019 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
2020 should no longer be used in code specific to the RS6000 and its
2021 derivatives.
2022 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
2023 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
2024 tdep->ppc_fp0_regnum.
2025 (ppc_supply_fpregset, ppc_collect_fpregset)
2026 (rs6000_push_dummy_call, rs6000_extract_return_value)
2027 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
2028 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
2029 FP0_REGNUM.
2030 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
2031 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
2032 Same.
2033 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
2034 bdm_ppc_store_registers): Same.
2035 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
2036 (store_register, fill_fpregset): Same.
2037 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
2038 (ppc_linux_supply_fpregset): Same.
2039 * ppcnbsd-nat.c (getfpregs_supplies): Same.
2040 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
2041 Same.
2042 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
2043 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
2044 ppc64_sysv_abi_return_value): Same.
2045 * rs6000-nat.c (regmap, fetch_inferior_registers)
2046 (store_inferior_registers, fetch_core_registers): Same.
2047
827f338d
MK
20482004-05-01 Mark Kettenis <kettenis@gnu.org>
2049
2050 * m68knbsd-nat.c: Remove file.
2051 * m68knbsd-tdep.c: Remove file.
2052 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
2053 dependencies.
2054 * configure.host: Add m68k-*-netbsdelf*.
2055 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
2056 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
2057 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
2058 (XM_FILE): Remove.
2059 * config/m68k/nbsdelf.mh: New file.
2060 * config/m68k/nbsd.mt: New file.
2061 * config/m68k/nbsdaout.mt: Remove file.
2062 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
2063 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
2064 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
2065 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
2066 (use_struct_convention): Remove prototype.
2067 (USE_STRUCT_CONVENTION): Remove define.
2068 * config/m68k/xm-nbsd.h: Remove file.
2069
66894781
MS
20702004-05-04 Michael Snyder <msnyder@redhat.com>
2071
2072 * m68k-tdep.c (m68k_gdbarch_init): Default to using
2073 reg_struct_return method (as gcc usually does for cross targets).
2074
f0f63663
AC
20752004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2076
2077 Committed by Andrew Cagney.
2078 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
2079 alignment padding when accessing ucontext struct members.
2080
edf61169
JB
20812004-05-04 Jim Blandy <jimb@redhat.com>
2082
8bf659e8
JB
2083 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
2084 'ppc_gplast_regnum' member.
2085 (ppc_num_gprs): New enum constant.
2086 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
2087 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
2088 * rs6000-nat.c (regmap, fetch_inferior_registers,
2089 store_inferior_registers): Same.
2090 * rs6000-tdep.c (e500_pseudo_register_read)
2091 (e500_pseudo_register_write): Same.
2092 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
2093
b967e06f
JB
2094 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
2095 * ppc-tdep.h (ppc_num_fprs): New enum constant.
2096 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
2097 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
2098 FPLAST_REGNUM.
2099 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2100 Same.
2101 * ppc-linux-nat.c (ppc_register_u_addr): Same.
2102 * rs6000-nat.c (regmap, fetch_inferior_registers)
2103 (store_inferior_registers): Same.
2104
edf61169
JB
2105 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
2106 with FPLAST_REGNUM.
2107
58a9656e
JB
21082004-05-03 Joel Brobecker <brobecker@gnat.com>
2109
2110 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
2111 failure detected by recent versions of GCC.
2112 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
2113 to be consistent with the usage in dwarf2_create_include_psymtab.
2114
dc305454
MS
21152004-05-03 Michael Snyder <msnyder@redhat.com>
2116
2117 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
2118 (heuristic_proc_start): Whitespace cleanup.
2119
29972665
MK
21202004-05-04 Mark Kettenis <kettenis@gnu.org>
2121
6b57680d
MK
2122 * sun3-nat.c: Remove file.
2123 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
2124 dependencies.
2125 (ALLDEPFILES): Remove sun3-nat.c.
2126 (sun3-nat.o): Remove dependencies.
2127
29972665
MK
2128 * i386-interix-nat.c, i386-interix-tdep.c,
2129 config/i386/nm-interix.h, config/i386/interix.mh,
2130 config/i386/interix.mt: Remove files.
2131 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
2132 dependencies.
2133
f595cb19
MK
21342004-05-03 Mark Kettenis <kettenis@gnu.org>
2135
2136 * m68k-tdep.h (struct gdbarch_tdep): Add member
2137 struct_value_regnum.
2138 (m68k_svr4_init_abi): New prototype.
2139 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
2140 different calling conventions.
2141 (m68k_extract_return_value): Remove code dealing with single-field
2142 structs.
2143 (m68k_store_return_value): Remove code dealing with single-field
2144 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
2145 (m68k_extract_struct_value_address): Remove function.
2146 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
2147 (m68k_reg_struct_return_p, m68k_return_value)
2148 (m68k_svr4_return_value): New functions.
2149 (m68k_use_struct_convention): Remove function.
2150 (m68k_push_dummy_call): Use new struct_value_regnum member of
2151 `struct gdbarch_tdep' instead of hardcoded register number to
2152 store STRUCT_ADDR.
2153 (m68k_svr4_init_abi): New function.
2154 (m68k_gdbarch_init): Don't set extract_return_value,
2155 store_return_values, deprecated_extract_struct_value_address and
2156 use_struct_convention. Set return_value instead. Initialize new
2157 struct_value_regnum member of `struct gdbarch_tdep'.
2158 * m68klinux-tdep.c: Update copyright year.
2159 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
2160 (m68k_linux_extract_struct_value_address): Remove function.
2161 (m68k_linux_init_abi): Don't set extract_return_value,
2162 store_return_values, deprecated_extract_struct_value_address and
2163 use_struct_convention. Call m68k_svr4_init_abi but override the
2164 new struct_value_regnum member of `struct gdbarch_tdep'.
2165 * Makefile.in (m68k-tdep.o): Update dependencies.
2166
aaa75496
JB
21672004-05-03 J. Brobecker <brobecker@gnat.com>
2168
2169 * dwarf2read.c (line_header): Add new included_p field in
2170 field file_names.
2171 (partial_die_info): New field has_stmt_list. New field line_offset.
2172 (dwarf2_create_include_psymtab): New function.
2173 (dwarf2_build_include_psymtabs): New function.
2174 (add_file_name): Add forward declaration. Initialize new field.
2175 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2176 to be able to determine the list of files included by the
2177 given unit, and build their associated psymtabs.
2178 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2179 files as well.
2180 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2181 (read_file_scope): Update call to dwarf_decode_lines.
2182 (read_partial_die): Handle DW_AT_stmt_list attributes.
2183
c848556f
MC
21842004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2185
2186 Unfix PR gdb/1626.
2187 * configure.in: Revert special case for osf5.*.
2188 * configure: Regenerate.
2189
eb4556d7
JB
21902004-05-02 Jim Blandy <jimb@redhat.com>
2191
2192 Move the symbol-file-from-memory functions into their own file.
2193 * symfile-mem.c, symfile-mem.h: New files.
2194 * symfile.c (symbol_file_add_from_bfd): New function.
2195 (symbol_file_add): Call symbol_file_add_from_bfd.
2196 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2197 Moved to symfile-mem.c.
2198 (_initialize_symfile): Move definition of
2199 add-symbol-file-from-memory command to symfile-mem.c.
2200 * symfile.h (symbol_file_add_from_bfd): New declaration.
2201 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2202 * config/powerpc/linux.mt (TDEPFILES): Same.
2203 * Makefile.in (SFILES): Add symfile-mem.c.
2204 (symfile_mem_h): New variable.
2205 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2206 (symfile-mem.o): New rule.
2207
80bb239e
AC
22082004-05-01 Andrew Cagney <cagney@redhat.com>
2209
7789d0fa
AC
2210 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2211 frame_find_by_id instead of frame_relative_level.
2212 (do_enable_breakpoint): Ditto.
2213 * thread.c: Update copyright.
2214 (info_threads_command): Ditto, simplify.
2215
80bb239e
AC
2216 * frame.c (deprecated_generic_get_saved_register): Delete
2217 function, moved to "xstormy16-tdep.c".
2218 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2219 deprecated_generic_get_saved_register from "frame.c".
2220 (xstormy16_frame_saved_register): Call
2221 xstormy16_get_saved_register.
2222 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2223 static.
2224 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2225 * frame.h (deprecated_generic_get_saved_register): Delete.
2226
b2a871dd
MC
22272004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2228
2229 * dwarfread.c: Update documentation on the state of dwarf-1.
2230
0e100dab
AC
22312004-05-01 Andrew Cagney <cagney@redhat.com>
2232
acd8056e
AC
2233 * stack.c (select_frame_command): Delete call to
2234 frame_relative_level.
2235 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2236 Delete #if0 code.
2237 (frame_info): Do not print FRAMELESS.
2238 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2239 (catch_info): Delete #if0 code.
2240
0e100dab
AC
2241 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2242 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2243 of frame_relative_level.
2244 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2245 to SENTINEL_FRAME.
2246 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2247 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2248 frame_relative_level.
2249
55699d59
AC
2250 * frame.h (deprecated_set_frame_type): Delete declaration.
2251 * frame.c (deprecated_set_frame_type): Delete function, update
2252 comments.
2253
fcf70625
AC
2254 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2255 * gdbarch.h, gdbarch.c: Re-generate.
2256 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2257 (shnbsd_pc_in_sigtramp): Delete.
2258 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2259 pc_in_sigtramp.
2260 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2261 pc_in_sigtramp.
2262 * frame.h: Update comments.
2263 * ppc-linux-tdep.c: Update comments.
2264 * breakpoint.c (bpstat_what): Update comments.
2265
ac5eccb7
AC
2266 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2267 m68klinux-tdep.o's dependencies, were previously added to
2268 m68klinux-nat.o.
2269
f2524b93
AC
2270 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2271 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2272 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2273 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2274 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2275
17e20bce
AC
2276 * Makefile.in (m68klinux-nat.o): Update dependencies.
2277 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2278 (m68k_linux_sigtramp_frame_cache)
2279 (m68k_linux_sigtramp_frame_this_id)
2280 (m68k_linux_sigtramp_frame_prev_register)
2281 (m68k_linux_sigtramp_frame_unwind)
2282 (m68k_linux_sigtramp_frame_sniffer)
2283 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2284 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2285 names, use trad-frame.h.
2286 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2287 (struct m68k_sigtramp_info): Delete.
2288 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2289 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2290 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2291 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2292 "m68klinux-tdep.c".
2293
c8864fa2
AC
2294 * infrun.c (check_sigtramp2): Delete check for
2295 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2296
511dd2cd
MK
22972004-05-01 Mark Kettenis <kettenis@gnu.org>
2298
2299 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2300
8c6b0e06
AC
23012004-05-01 Andrew Cagney <cagney@redhat.com>
2302
9df0bb3f
AC
2303 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2304 (frv_linux_sigtramp_frame_cache)
2305 (frv_linux_sigtramp_frame_this_id)
2306 (frv_linux_sigtramp_frame_prev_register)
2307 (frv_linux_sigtramp_frame_unwind)
2308 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2309 include "linux" in function and variable names, directly call
2310 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2311 the latest trad-frame code.
2312 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2313 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2314 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2315 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2316 * frv-tdep.c (frv_sigtramp_frame_cache)
2317 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2318 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2319 frv-linux-tdep.c.
2320 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2321 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2322 (frv_set_sigcontext_reg_addr): Delete function.
2323
8c6b0e06
AC
2324 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2325 (DEPRECATED_SIGTRAMP_END): Delete.
2326 * gdbarch.h, gdbarch.c: Re-generate.
2327 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2328 * config/vax/tm-vaxbsd.h: Update copyright.
2329 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2330 (DEPRECATED_IN_SIGTRAMP): Define.
2331 * config/m68k/tm-nbsd.h: Update copyright.
2332 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2333 (DEPRECATED_IN_SIGTRAMP): Define.
2334
50ea7769
MK
23352004-05-01 Mark Kettenis <kettenis@gnu.org>
2336
03ac2a74
MK
2337 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2338 encondings. Fixes PR gdb/1628.
2339
50ea7769
MK
2340 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2341 DW_CFA_restore state without a matching DW_CFA_remember_state
2342 instead of aborting. Fixes PR backtrace/1589.
2343
9a5d7be1
JB
23442004-04-30 Joel Brobecker <brobecker@gnat.com>
2345
2346 * MAINTAINERS: Add self as AIX maintainer.
2347 Update my e-mail address in write-after-approval section.
2348
2593d1cd
AC
23492004-04-30 Andrew Cagney <cagney@redhat.com>
2350
ce12bbf9
AC
2351 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2352 (legacy_get_prev_frame): Ditto.
2353
36710c63
AC
2354 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2355 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2356 * mipsread.c (sigtramp_address): Delete extern variable.
2357 (mipscoff_new_init): Delete reference.
2358 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2359 (fixup_sigtramp): Delete function.
2360 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2361 (fixup_sigtramp): Delete declarations.
2362
2593d1cd
AC
2363 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2364 deprecated_pc_in_sigtramp.
2365 (ppcnbsd_pc_in_sigtramp): Delete function.
2366
2a25f91c
MK
23672004-05-01 Mark Kettenis <kettenis@gnu.org>
2368
2369 * config/m68k/nm-nbsd.h: Tweak comments.
2370 * config/m68k/nm-nbsdaout.h: Likewise.
2371
0b281939
AC
23722004-04-30 Andrew Cagney <cagney@redhat.com>
2373
2374 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2375 legacy_pc_in_sigtramp.
2376 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2377
8f2d3ea0
MK
23782004-05-01 Mark Kettenis <kettenis@gnu.org>
2379
2380 Add OpenBSD/m68k support.
2381 * NEWS (New native configurations): Mention OpenBSD/m68k.
2382 * m68kbsd-tdep.c: New file.
2383 * m68kbsd-nat.c: New file.
2384 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2385 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2386 * configure.host: Add m68k-*-openbsd.
2387 * configure.tgt: Add m68k-*-openbsd.
2388 * config/m68k/tm-obsd.h: New file.
2389 * config/m68k/obsd.mt: New file.
2390 * config/m68k/obsd.mh: New file.
2391 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2392 m68kbsd-tdep.c.
2393
c40f49a4
AC
23942004-04-30 Andrew Cagney <cagney@redhat.com>
2395
2396 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2397 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2398
e81554cd
MK
23992004-04-30 Mark Kettenis <kettenis@gnu.org>
2400
2401 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2402 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2403
d4dc1a91
BF
24042004-04-30 Brian Ford <ford@vss.fsi.com>
2405
2406 Revert 2004-04-16 change.
2407 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2408 (i386_coff_init_abi): Remove.
2409 * i386-tdep.h (i386_coff_init_abi): Remove.
2410 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2411
2f72f850
AC
24122004-04-30 Andrew Cagney <cagney@redhat.com>
2413
e492f9d6
AC
2414 * blockframe.c (find_pc_partial_function): Delete use of
2415 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2416 DEPRECATED_SIGTRAMP_END.
2417
7b7adad0
AC
2418 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2419 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2420 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2421 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2422 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2423
2f72f850
AC
2424 * defs.h (deprecated_inside_entry_file): Delete declaration.
2425 * blockframe.c (deprecated_inside_entry_file): Delete function.
2426 (legacy_frame_chain_valid): Delete call.
2427 * sh64-tdep.c (sh64_frame_chain): Delete call.
2428 * objfiles.h: Update comments.
2429 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2430 call.
2431 * frame.c (get_prev_frame): Delete call, update comments.
2432
283f90a7
BF
24332004-04-30 Brian Ford <ford@vss.fsi.com>
2434
2435 * MAINTAINERS (Write After Approval): Add myself.
2436
8ee56bcf
AC
24372004-04-30 Andrew Cagney <cagney@redhat.com>
2438
2439 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2440 * gdbarch.h, gdbarch.c: Re-generate.
2441 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2442 code.
2443
ee27e1b6
AC
24442004-04-30 Andrew Cagney <cagney@redhat.com>
2445
2446 * gdb-events.sh (selected_thread_changed)
2447 (selected_frame_level_changed, target_changed): Delete.
2448 * gdb-events.h, gdb-events.c: Re-generate.
2449 * valops.c (value_assign): Update.
2450 * stack.c (select_frame_command, up_silently_base)
2451 (down_silently_base): Update.
2452
d5ac5a39
AC
24532004-04-29 Andrew Cagney <cagney@redhat.com>
2454
2455 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2456 registers correctly.
2457 (print_gp_register_row, mips32_heuristic_proc_desc)
2458 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2459 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2460 references to mips_isa_regsize.
2461
ceae6e75
AC
24622004-04-29 Andrew Cagney <cagney@redhat.com>
2463
2464 * mips-tdep.c (struct gdbarch_tdep): Delete
2465 mips_fp_register_double.
2466 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2467 mips_abi_regsize.
2468 (mips_gdbarch_init): Do not set mips_fp_register_double.
2469 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2470
a587af0b
AC
24712004-04-29 Joel Brobecker <brobecker@gnat.com>
2472
2473 Committed by Andrew Cagney.
2474 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2475 function calls.
2476
13326b4e
AC
24772004-04-29 Andrew Cagney <cagney@redhat.com>
2478
2479 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2480 gdbarch, use mips_abi, update callers.
2481 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2482 mips_abi_regsize, update callers.
2483 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2484 mips_default_abi_regsize.
2485 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2486 mips_default_abi_regsize.
2487
711cc5cd
AC
24882004-04-29 Andrew Cagney <cagney@redhat.com>
2489
1b13c4f6
AC
2490 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2491 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2492 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2493 mips_default_abi_regsize.
2494 (mips_isa_regsize): Rename mips_regisze.
2495 * mipsnbsd-tdep.c: Update.
2496 * mips-linux-tdep.c: Update.
2497 * irix5-nat.c: Update.
2498 * mips-tdep.h (mips_isa_regsize): Update.
2499
711cc5cd
AC
2500 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2501 Delete all disabled code.
2502 * gdb-events.h, gdb-events.c: Re-generate.
2503
e63bbc88
MK
25042004-04-19 Jerome Guitton <guitton@gnat.com>
2505 Mark Kettenis <kettenis@gnu.org>
2506
2507 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2508 the function begins with a branch instruction.
2509
fd35795f
MK
25102004-04-29 Mark Kettenis <kettenis@gnu.org>
2511
2512 * i386-tdep.c: Fix spelling mistakes.
2513
c960c18f
AC
25142004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2515 Andrew Cagney <cagney@redhat.com>
2516
2517 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2518 <sys/proc.h>.
2519 * acconfig.h: Provide default _KMEMUSER value.
2520 * config.in, configure: Re-generate.
2521 * NEWS: Mention fix.
2522
50306a9d
RC
25232004-04-24 Randolph Chung <tausq@debian.org>
2524
2525 * configure.host (hppa*-*-linux*): New target.
2526 * configure.tgt (hppa*-*-linux*): Likewise.
2527 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2528 gdbarch_init_osabi() call earlier so that osabi-specific frame
2529 unwinders can be registered first.
2530 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2531 hppa-linux-nat.c.
2532 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2533 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2534 * config/pa/linux.mh: New file.
2535 * config/pa/linux.mt: New file.
2536 * config/pa/nm-linux.h: New file.
2537 * config/pa/xm-linux.h: New file.
2538 * hppa-linux-nat.c: New file.
2539 * hppa-linux-tdep.c: New file.
2540
2a6228ef
RC
25412004-04-28 Randolph Chung <tausq@debian.org>
2542
2543 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2544 return values.
2545 (hppa32_push_dummy_call): Fix small struct and floating point argument
2546 passing, and make sure the stack frame is properly aligned.
2547
82c10df6
AC
25482004-04-28 Andrew Cagney <cagney@redhat.com>
2549
d762c46a
AC
2550 * stack.c (print_stack_frame): Fix description.
2551
82c10df6
AC
2552 * NEWS: Mention gdb/gdbserver/configure execute permission
2553 changed. PR server/519.
2554
0faf0076
AC
25552004-04-28 Andrew Cagney <cagney@redhat.com>
2556
2557 * stack.c (print_stack_frame_stub): Delete declaration.
2558 (struct print_stack_frame_args, print_stack_frame)
2559 (print_frame_info, print_frame): Replace "source" with print what.
2560 Replace "print" with "print_level". Replace "args" with
2561 "print_args".
2562 * frame.h (show_and_print_stack_frame, print_stack_frame)
2563 (print_frame_info): Update declarations.
2564 * stack.c (select_and_print_frame, frame_command)
2565 (current_frame_command, up_command, down_command): Update calls -
2566 use get_selected_frame, pass "enum print_what" for source, do not
2567 call frame_relative_level.
2568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2569 * remote-rdp.c (remote_rdp_open): Ditto.
2570 * remote-mips.c (common_open): Ditto.
2571 * remote-e7000.c (e7000_start_remote): Ditto.
2572 * ocd.c (ocd_start_remote): Ditto.
2573 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2574 * infrun.c (normal_stop): Ditto.
2575 * inflow.c (kill_command): Ditto.
2576 * infcmd.c (finish_command): Ditto.
2577 * corelow.c (core_open): Ditto.
2578 * tracepoint.c (finish_tfind_command): Ditto.
2579 * thread.c (info_threads_command, info_threads_command)
2580 (restore_current_thread, do_captured_thread_select): Ditto.
2581 * ada-tasks.c (task_command): Ditto.
2582
f4c5303c
OF
25832004-04-26 Orjan Friberg <orjanf@axis.com>
2584
2585 * frame.c: Include "observer.h".
2586 (frame_observer_target_changed): New function.
2587 (_initialize_frame): Attach target_changed observer.
2588 * regcache.c: Include "observer.h".
2589 (regcache_observer_target_changed): New function.
2590 (_initialize_regcache): Attach target_changed observer.
2591 * valops.c: Include "observer.h".
2592 (value_assign): Notify target_changed event when modifying register.
2593 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2594
7270d8f2
OF
25952004-04-26 Orjan Friberg <orjanf@axis.com>
2596
2597 From Paul Koning <pkoning@equallogic.com>:
2598 * breakpoint.c (free_valchain): New function.
2599 (insert_bp_location, delete_breakpoint): Use free_valchain.
2600 (remove_breakpoint): Do not remove the valchain.
2601 (bpstat_stop_status): If not stopped by watchpoint, skip
2602 watchpoints when generating stop status list.
2603 * infrun.c (handle_inferior_event): Make
2604 stepped_after_stopped_by_watchpoint a global variable.
2605 * remote.c (remote_stopped_data_address): Return watch data
2606 address rather than zero if stepped_after_stopped_by_watchpoint is
2607 set.
2608
02d62932
MC
26092004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2610
2611 Fix PR gdb/1626.
2612 * configure.in: Check for curses after termcap.
2613 On osf5.*, do not check for ncurses.
2614 * configure: Regenerate.
2615
3e9a183c
MK
26162004-04-25 Mark Kettenis <kettenis@gnu.org>
2617
c79ac407
MK
2618 * ppcobsd-nat.c: Include "ppc-tdep.h".
2619 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2620
3e9a183c
MK
2621 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2622 Fixes PR tdep/1623 and PR tdep/1624.
2623
38cc9c28
MC
26242004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2625
2626 * xmodem.h, xmodem.c: Remove files.
2627 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2628
7f07c5b6
RC
26292004-04-23 Randolph Chung <tausq@debian.org>
2630
2631 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2632 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2633 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2634 for handling stackless frames.
2635 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2636
9f7194c3
RC
26372004-04-23 Randolph Chung <tausq@debian.org>
2638
2639 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2640 starts at a pc before the frame is created.
2641
dcff6009
JB
26422004-04-23 Joel Brobecker <brobecker@gnat.com>
2643
2644 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2645
65951cd9
JG
26462004-04-23 Jerome Guitton <guitton@gnat.fr>
2647
2648 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2649 use convert_typed_floating to get the appropriate format.
2650
abc485a1
RC
26512004-04-22 Randolph Chung <tausq@debian.org>
2652
2653 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2654 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2655 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2656 (hppa_sign_extend): Add prototype.
2657 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2658 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2659 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2660 hppa targets will also use these functions.
2661 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2662 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2663 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2664 (hppa_gdbarch_init): Remove gdbarch setting of
2665 skip_trampoline_code, in_solib_call_trampoline and
2666 in_solib_return_trampoline.
2667 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2668 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2669 hppa_in_solib_call_trampoline.
2670 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2671 Moved from hppa-tdep.c.
2672 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2673 in_solib_call_trampoline and in_solib_return_trampoline.
2674
369aa520
RC
26752004-04-22 Randolph Chung <tausq@debian.org>
2676
2677 * hppa-tdep.c (hppa_debug): New variable.
2678 (find_unwind_entry, hppa_frame_cache): Add debug output.
2679 (_initialize_hppa_tdep): Add command to set debug flag.
2680
476be15e
AC
26812004-04-22 Andrew Cagney <cagney@redhat.com>
2682
2683 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2684 "trad-frame.h".
2685 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2686 signal trampoline unwinder.
2687 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2688
d195bc9f
MK
26892004-04-22 Mark Kettenis <kettenis@gnu.org>
2690
2691 Add OpenBSD/powerpc support.
2692 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2693 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2694 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2695 (ppc_collect_fpregset): New prototypes.
2696 * ppcobsd-nat.c: New file.
2697 * ppcobsd-tdep.c: New file.
2698 * ppcobsd-tdep.h: New file.
2699 * rs6000-tdep.c: Include "regset.h".
2700 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2701 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2702 New functions.
2703 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2704 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2705 (rs6000-tdep.o): Update dependencies.
2706 * configure.host: Add powerpc-*-openbsd.
2707 * configure.tgt: Add powerpc-*-openbsd.
2708 * config/powerpc/obsd.mh: New file.
2709 * config/powerpc/nm-obsd.h: New file.
2710 * config/powerpc/obsd.mt: New file.
2711
6f14cc33
AC
27122004-04-22 Andrew Cagney <cagney@redhat.com>
2713
fcf29e5f
AC
2714 * frame.h (show_frame_info): Delete declaration.
2715
6f14cc33
AC
2716 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2717 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2718 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2719 * frv-tdep.c (frv_frame_this_id): Ditto.
2720 * avr-tdep.c (avr_frame_this_id): Ditto.
2721
e5786a5c
EZ
27222004-04-22 Elena Zannoni <ezannoni@redhat.com>
2723
2724 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2725
26e75e5c
JB
27262004-04-22 Jim Blandy <jimb@redhat.com>
2727
2728 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2729 register number zero.
2730
d8d65dd3
MS
27312004-04-21 Michael Snyder <msnyder@redhat.com>
2732
2733 * mips-tdep.c (heuristic_proc_start):
2734 Warning() already prefixes "Warning: ".
2735
9a4105ab
AC
27362004-04-21 Andrew Cagney <cagney@redhat.com>
2737
2738 * annotate.h (deprecated_annotate_starting_hook)
2739 (deprecated_annotate_stopped_hook)
2740 (deprecated_annotate_exited_hook)
2741 (deprecated_annotate_signal_hook)
2742 (deprecated_annotate_signalled_hook): Deprecate.
2743 * tracepoint.h (deprecated_create_tracepoint_hook)
2744 (deprecated_delete_tracepoint_hook)
2745 (deprecated_modify_tracepoint_hook)
2746 (deprecated_trace_find_hook)
2747 (deprecated_trace_start_stop_hook): Deprecate.
2748 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2749 * remote.h (deprecated_target_resume_hook)
2750 (deprecated_target_wait_loop_hook): Deprecate.
2751 * gdbcore.h (deprecated_exec_file_display_hook)
2752 (deprecated_file_changed_hook): Deprecate.
2753 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2754 * defs.h (deprecated_modify_breakpoint_hook)
2755 (deprecated_command_loop_hook, deprecated_show_load_progress)
2756 (deprecated_print_frame_info_listing_hook)
2757 (deprecated_query_hook, deprecated_warning_hook)
2758 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2759 (deprecated_delete_breakpoint_hook)
2760 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2761 (deprecated_readline_begin_hook, deprecated_readline_hook)
2762 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2763 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2764 (deprecated_context_hook, deprecated_target_wait_hook)
2765 (deprecated_attach_hook, deprecated_detach_hook)
2766 (deprecated_call_command_hook, deprecated_set_hook)
2767 (deprecated_error_hook, deprecated_error_begin_hook)
2768 (deprecated_ui_load_progress_hook): Deprecate.
2769 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2770 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2771 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2772 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2773 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2774 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2775 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2776 * annotate.c, aix-thread.c: Update.
2777
62cf13cc
AC
27782004-04-21 Andrew Cagney <cagney@redhat.com>
2779
b2e31a62
AC
2780 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2781 * vaxnbsd-tdep.c: Include "gdb_string.h".
2782
62cf13cc
AC
2783 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2784 (add_symbol_file_from_memory_command): #if 0 function body, call
2785 error instead.
2786
00e32a35
AC
27872004-04-21 Andrew Cagney <cagney@redhat.com>
2788
2789 * gdbcore.h: Update copyright.
2790 (deprecated_add_core_fns): Rename add_core_fns.
2791 * win32-nat.c (_initialize_core_win32): Update.
2792 * sun3-nat.c (_initialize_core_sun3): Update.
2793 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2794 * rs6000-nat.c (_initialize_core_rs6000): Update.
2795 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2796 * nto-tdep.c (_initialize_nto_tdep): Update.
2797 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2798 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2799 * mips-nat.c (_initialize_core_mips): Update.
2800 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2801 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2802 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2803 * lynx-nat.c (_initialize_core_lynx): Update.
2804 * irix5-nat.c (_initialize_core_irix5): Update.
2805 * i386-interix-nat.c (_initialize_core_interix): Update.
2806 * cris-tdep.c (_initialize_cris_tdep): Update.
2807 * corelow.c (deprecated_add_core_fns): Update.
2808 * core-regset.c (_initialize_core_regset): Update.
2809 * core-aout.c (_initialize_core_aout): Update.
2810 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2811 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2812 * alpha-nat.c (_initialize_core_alpha): Update.
2813
13c7b1ca
JB
28142004-04-21 Jim Blandy <jimb@redhat.com>
2815
2816 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2817
7b5a2f43
DJ
28182004-04-19 Daniel Jacobowitz <drow@mvista.com>
2819
2820 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2821 Delete.
2822 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2823 (read_attribute_value): Update calls to dwarf_alloc_block.
2824 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2825 dwarf2_tmp_obstack.
2826 (psymtab_to_symtab_1): Likewise. Clean up using
2827 free_stack_comp_unit.
2828 (add_to_cu_func_list): Use the comp_unit_obstack.
2829
05cf31d1
JB
28302004-04-19 Joel Brobecker <brobecker@gnat.com>
2831
2832 * dwarf2read.c (dwarf2_flag_true_p): New function.
2833 (die_is_declaration): Use the function above. Add some comments.
2834
adf93a2f
MK
28352004-04-19 Mark Kettenis <kettenis@gnu.org>
2836
2837 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2838 architecture when registering sparcnbsd_core_osabi_sniffer.
2839 Adjust comment.
2840
748894bf
MK
28412004-04-18 Mark Kettenis <kettenis@gnu.org>
2842
f622ad42
MK
2843 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2844 return value.
2845
c4fc7f1b
MK
2846 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2847 * i386-tdep.c: Correct register numbering scheme comments
2848 throughout.
2849 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2850 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2851 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2852 (i386_gdb_arch_init): Likewise.
2853
b4ead1bd
MK
2854 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2855 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2856 ppcnbsd-tdep.o.
2857
748894bf
MK
2858 * m68k-tdep.h: Tweak comments.
2859 * m68k-tdep.c: Tweak comment.
2860
fdd72f95
RC
28612004-04-17 Randolph Chung <tausq@debian.org>
2862
2863 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2864 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2865 (hppa_hpux_som_init_abi): Set is_elf to 0.
2866 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2867 * hppa-tdep.c (low_text_segment_address): Remove global.
2868 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2869 section offset to calculate segment address.
2870 (internalize_unwinds): Define low_text_segment_address as local and
2871 pass to record_text_segment_lowaddr for ELF targets.
2872 (hppa_gdbarch_init): Zero fill tdep structure.
2873 (hppa_dump_tdep): Print tdep structure.
2874 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2875
0f8d9d59
RC
28762004-04-17 Randolph Chung <tausq@debian.org>
2877
2878 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2879 (hppa_gdbarch_init): Set pseudo_register_read.
2880 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2881 * regcache.c (supply_register): Remove check for
2882 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2883
7c46b9fb
RC
28842004-04-17 Randolph Chung <tausq@debian.org>
2885
2886 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2887 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2888 (hpread_adjust_stack_address): Move to hpread.c.
2889 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2890 obj_private_struct): Move from tm-hppa.h.
2891 * hpread.c (hppa-tdep.h): Include.
2892 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2893 (hpread_read_function_type, hpread_read_doc_function_type)
2894 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2895 directly.
2896 * pa64solib.c (hppa-tdep.h): Include.
2897 * somsolib.c (hppa-tdep.h): Include.
2898 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2899 inferior_status): Remove unused forward declarations.
2900 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2901 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2902 obj_private_struct): Move to hppa-tdep.h.
2903 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2904
8d153463
RC
29052004-04-17 Randolph Chung <tausq@debian.org>
2906
2907 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2908 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2909 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2910 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2911 Remove forward declaration and make static.
2912 (hppa_reg_struct_has_addr): Remove.
2913
350c2e5b
JB
29142004-04-16 Joel Brobecker <brobecker@gnat.com>
2915
2916 * observer.sh: Move comments in sed command to first column.
2917
bbde78fa
JM
29182004-04-16 Jason Molenda (jmolenda@apple.com)
2919
2920 * frame.c: Minor typeo corrections in comments.
2921
e0270fd9
JB
29222004-04-16 Joel Brobecker <brobecker@gnat.com>
2923
2924 * observer.c (observer_test_first_notification_function): Update
2925 function profile.
2926 (observer_test_second_notification_function): Likewise.
2927 (observer_test_third_notification_function): Likewise.
2928
3d049254
MK
29292004-04-16 Mark Kettenis <kettenis@gnu.org>
2930
2931 From Brian Ford <ford@vss.fsi.com>:
2932 * i386-tdep.c (i386_coff_init_abi): New function.
2933 * i386-tdep.h (i386_coff_init_abi): New prototype.
2934 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2935 register number translation functions for DWARF and DWARF 2.
2936
7867684d
JB
29372004-04-16 Joel Brobecker <brobecker@gnat.com>
2938
2939 * dwarf2read.c: Back out my previous change, it was incorrect.
2940
72bf9492
DJ
29412004-04-16 Daniel Jacobowitz <drow@mvista.com>
2942
2943 * dwarf2read.c: Include "hashtab.h".
2944 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2945 has_namespace_info.
2946 (struct partial_die_info): Add comments. Use bitfields to reduce
2947 memory footprint. Add scope, scope_set, has_specification,
2948 spec_offset, die_parent, die_child, and die_sibling.
2949 (peek_die_abbrev): Add prototype.
2950 (partial_read_comp_unit_head): New function, broken out from
2951 dwarf2_build_psymtabs_hard.
2952 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2953 Use partial_read_comp_unit_head. Initialize the CU and
2954 comp_unit_obstack. Update calls to read_partial_die and
2955 scan_partial_symbols. Use free_stack_comp_unit and
2956 load_partial_dies.
2957 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2958 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2959 Update calls to helper functions. Remove NAMESPACE argument.
2960 Update comments.
2961 (partial_die_parent_scope, partial_die_full_name): New functions.
2962 (add_partial_symbol): Remove namespace argument. Update call to
2963 pdi_needs_namespace. Use partial_die_full_name. Handle
2964 DW_TAG_namespace. Check has_namespace_info flag.
2965 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2966 tag. Handle namespaces.
2967 (add_partial_namespace, add_partial_enumeration): Simplify.
2968 (guess_structure_name): New function, derived from
2969 add_partial_structure.
2970 (add_partial_structure): Remove.
2971 (determine_class_name): Update comment.
2972 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2973 (is_type_tag_for_partial, load_partial_dies): New functions.
2974 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2975 Record specifications instead of following them immediately.
2976 (find_partial_die_in_comp_unit, find_partial_die)
2977 (fixup_partial_die, free_stack_comp_unit)
2978 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2979 (partial_die_hash, partial_die_eq): New functions.
2980 * Makefile.in (hashtab_h): Define.
2981 (dwarf2read.o): Update dependencies.
2982 (observer_inc, observer_h): Move to the correct section.
2983
fdc860a3
JB
29842004-04-15 Joel Brobecker <brobecker@gnat.com>
2985
2986 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2987 (die_is_declaration): Use the function above. Add comment.
2988
dc718098
JB
29892004-04-15 Joel Brobecker <brobecker@gnat.com>
2990
2991 * dwarf2read.c (read_structure_scope): Identify stub types
2992 using die_is_declaration() only.
2993
8718a420
RM
29942004-04-15 Roland McGrath <roland@redhat.com>
2995
2996 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2997 argument instead of NAME.
2998 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2999 in call to symbol_file_add_with_addrs_or_offsets.
3000 (build_addr_info): New function, helper for ...
3001 (symbol_file_add_from_memory): New function.
3002 (add_symbol_file_from_memory_command): New function using that.
3003 (_initialize_symfile): Register it for add-symbol-file-from-memory.
3004 (pre_add_symbol_hook): Add const to argument type.
3005 * symfile.h (symbol_file_add_from_memory): Declare it.
3006
8b910bab
MK
30072004-04-15 Mark Kettenis <kettenis@gnu.org>
3008
9f076e7a
MK
3009 * NEWS (New native configurations): Mention OpenBSD/vax.
3010 * configure.host: Add vax-*-openbsd*.
3011 * config/vax/obsd.mh: New file.
3012 * config/vax/nm-obsd.h: New file.
3013
8b910bab
MK
3014 * vax-tdep.c: Include "regset.h".
3015 (vax_supply_gregset): New function.
3016 (vax_gregset): New variable.
3017 (vax_regset_from_core_section): New function.
3018 (vax_gdbarch_init): Set regset_from_core_section.
3019 * Makefile.in (vax-tdep.o): Update dependencies.
3020
7a464420
AC
30212004-04-15 Andrew Cagney <cagney@redhat.com>
3022
3023 * observer.c (normal_stop_subject, observer_notify_normal_stop)
3024 (observer_normal_stop_notification_stub)
3025 (observer_attach_normal_stop, observer_detach_normal_stop):
3026 Delete, replaced by #include "observer.inc".
3027 * infrun.c (normal_stop): Pass "stop_bpstat" to
3028 observer_notify_normal_stop.
3029 * Makefile.in (observer_inc): Define.
3030 (observer.o): Update dependencies.
3031 (observer.h, observer.inc): New rules.
3032 * observer.h: Delete file.
3033 * observer.sh: New file.
3034
e36ad527
MK
30352004-04-15 Mark Kettenis <kettenis@gnu.org>
3036
3037 * vax-tdep.c (vax_frame_cache): Fix typo.
3038
67b441e1
MK
30392004-04-14 Mark Kettenis <kettenis@gnu.org>
3040
6f606e1c
MK
3041 * NEWS (New native configurations): Mention NetBSD/vax.
3042 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
3043 * config/vax/nbsdelf.mh: New file.
3044 * config/vax/nbsdaout.mh: New file.
3045 * config/vax/nm-nbsd.h: New file.
3046 * config/vax/nm-nbsdaout.h: New file.
3047
9c5519a5
MK
3048 * vaxnbsd-tdep.c: New file.
3049 * Makefile.in (vaxnbsd-tdep.o): New dependency.
3050 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
3051 * config/vax/nbsd.mt: New file.
3052 * config/vax/tm-nbsd.h: New file.
3053
4844a614
MK
3054 * Makefile.in (vaxbsd-nat.o): New dependency.
3055
67b441e1
MK
3056 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
3057 * vax-tdep.c (vax_store_arguments): Remove struct_return and
3058 struct_addr arguments. Don't push return value address.
3059 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
3060 arguments to vax_store_arguments. Store return value address in
3061 R1.
3062 (vax_store_struct_return, vax_extract_return_value)
3063 (vax_store_return_value): Remove functions.
3064 (vax_return_value): New function.
3065 (vax_gdbarch_init): Set return value. Don't set
3066 deprecated_store_struct_return, deprecated_extract_struct_return
3067 and deprecated_store_return_value.
3068
6672f2ae
AS
30692004-04-14 Andreas Schwab <schwab@suse.de>
3070
3071 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
3072 value buffer.
3073 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
3074
7346c184
MK
30752004-04-14 Mark Kettenis <kettenis@gnu.org>
3076
3077 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
3078 (vax_unwind_dummy_id): New functions.
3079 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
3080 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
3081 variables.
3082 (vax_fix_call_dummy): Remove function.
3083 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
3084 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
3085 call_dummy_location, deprecated_call_dummy_words,
3086 deprecated_sizeof_call_dummy_words,
3087 deprecated_call_dummy_breakpoint_offset,
3088 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
3089 and deprecated_dummy_write_sp.
3090
58e23df4
DC
30912004-04-13 David Carlton <carlton@kealia.com>
3092
3093 * MAINTAINERS: Move myself to "paper trail" section.
3094
5e6b39ff
MK
30952004-04-12 Mark Kettenis <kettenis@gnu.org>
3096
7def7fef
MK
3097 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
3098 "trad-frame.h".
3099 (vax_frame_init_saved_regs): Remove function.
3100 (vax_sigtramp_saved_pc): Remove function.
3101 (vax_frame_saved_pc): Remove function.
3102 (vax_frame_args_address): Remove function.
3103 (vax_frame_num_args): Rewrite.
3104 (vax_frame_chain): Remove function.
3105 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
3106 VAX_FP_REGNUM.
3107 (vax_pop_frame): Likewise.
3108 (vax_saved_pc_after_call): Remove function.
3109 (struct vax_frame_cache): New structure.
3110 (vax_frame_cache): New function.
3111 (vax_frame_this_id): New function.
3112 (vax_frame_prev_register): New function.
3113 (vax_frame_unwind): New variable.
3114 (vax_frame_sniffer): New function.
3115 (vax_frame_base_address): New function.
3116 (vax_frame_args_address): New function.
3117 (vax_frame_base): New variable.
3118 (vax_unwind_pc): New function.
3119 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
3120 deprecated_fp_regnum, deprecated_saved_pc_after_call,
3121 deprecated_frame_chain, deprecated_frame_saved_pc,
3122 deprecated_frame_args_address and
3123 deprecated_frame_init_saved_regs.
3124 * Makefile.in (vax-tdep.o): Update dependencies.
3125
53284fc1
MK
3126 * vaxbsd-nat.c: New file.
3127
5e6b39ff
MK
3128 * vax-tdep.h: Update copyright year. Adjust comments.
3129 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
3130 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
3131 (vax_regnum): New enum. Replacing...
3132 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
3133 (VAX_PS_REGNUM): ... these removed macros.
3134 * vax-tdep.c (vax_register_name): Remove prototype.
3135 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
3136 (vax_register_byte, vax_register_raw_size,
3137 vax_register_virtual_size, vax_register_virtual_type): Remove
3138 functions.
3139 (vax_register_type): New function.
3140 (vax_breakpoint_from_pc): Reorganize.
3141 (vax_gdbarch_init): Set register_type. Don't set
3142 deprecated_register_size, deprecated_register_bytes,
3143 deprecated_register_byte, deprecated_register_raw_size,
3144 deprecated_max_register_raw_size,
3145 deprecated_register_virtual_size,
3146 deprecated_max_register_virtual_size and
3147 deprecated_register_virtual_type. Add comment on stack direction.
3148
e9c71e9f
MK
31492004-04-11 Mark Kettenis <kettenis@gnu.org>
3150
3151 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
3152 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 3153 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 3154
d46f1176 31552004-04-10 Randolph Chung <tausq@debian.org>
8718a420 3156
d46f1176
RC
3157 * MAINTAINERS (write after approval): Add myself.
3158
a2a84a72
RC
31592004-04-07 Randolph Chung <tausq@debian.org>
3160
3161 * hppa-tdep.c (hppa_inner_than): Remove.
3162 (is_pa_2): Remove unused static variable.
8718a420 3163 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 3164
e85c3284
PH
31652004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
3166
3167 * language.h (language_defn): Add new la_post_parser field.
3168 * parser-defs.h (null_post_parser): New declaration (default for
3169 la_post_parser).
8718a420 3170
e85c3284
PH
3171 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
3172 insert call to that function.
3173 (parse_exp_in_context): New function, including code formerly in
8718a420 3174 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
3175 prefixification.
3176 (parse_expression_in_context): New exported function.
3177 (null_post_parser): New definition.
3178 * expression.h (parse_expression_in_context): Add declaration.
8718a420 3179
e85c3284
PH
3180 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3181 * c-lang.c (c_language_defn): Ditto.
3182 (cplus_language_defn): Ditto.
3183 (asm_language_defn): Ditto.
3184 (minimal_language_defn): Ditto.
3185 * f-lang.c (f_language_defn): Ditto.
3186 * jv-lang.c (java_language_defn): Ditto.
3187 * language.c (unknown_language_defn): Ditto.
3188 (auto_language_defn): Ditto.
3189 (local_language_defn): Ditto.
3190 * m2-lang.c (m2_language_defn): Ditto.
3191 * scm-lang.c (scm_language_defn): Ditto.
3192 * obj-lang.c (objc_language_defn): Ditto.
8718a420 3193
d9f8c85b
MK
31942004-04-10 Mark Kettenis <kettenis@gnu.org>
3195
fa34704a
MK
3196 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3197 (amd64nbsd_mcontext_addr): New function.
3198 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3199 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3200 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3201
403e1656
MK
3202 * corelow.c (core_xfer_partial): Fix coding standards violation.
3203 Add support for TARGET_OBJECT_WCOOKIE.
3204
a57e5a95
MK
3205 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3206 deprecated_pc_in_sigtramp.
3207 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3208 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3209 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3210 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3211 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3212 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3213 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3214
377d9ebd
MK
3215 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3216 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3217 Fix typo.
3218
f0ef85a5
MK
3219 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3220 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3221 (amd64_collect_fxsave): Likewise.
3222
d9f8c85b
MK
3223 * i386-sol2-tdep.c: Include "gdb_string.h".
3224 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3225 name.
3226 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3227
75f501b5
MK
32282004-04-10 Mark Kettenis <kettenis@gnu.org>
3229
3230 * i386-sol2-tdep.c: Include "solib-svr4.h".
3231 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3232 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3233 * config/i386/tm-i386sol2.h: Include :solib.h".
3234 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3235 solib-svr4.o and solib-legacy.o.
3236 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3237 solib-svr4.o.
3238
b31bc724
MK
32392004-04-09 Mark Kettenis <kettenis@gnu.org>
3240
18bbbd9e
MK
3241 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3242 whether a register is supplied by PTRACE_GETFPREGS.
3243 (store_inferior_registers): Likewise.
3244 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3245 whether a register is supplied by PT_GETFPREGS.
3246 (store_inferior_registers): Likewise.
3247
3c30bf1b
MK
3248 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3249 * config/i386/linux64.mt (TDEPFILES): Likewise.
3250
a4194092
MK
3251 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3252
911bc6ee
MK
3253 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3254 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3255 the program counter is in the range specified by `struct
3256 gdbarch_tdep'.
3257 * amd64-linux-tdep.c: Include "symtab.h".
3258 (amd64_linux_pc_in_sigtramp): Remove function.
3259 (amd64_linux_sigtramp_p): New function.
3260 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3261 deprecated_pc_in_sigtramp.
3262 * amd64nbsd-tdep.c: Include "symtab.h".
3263 (amd64nbsd_sigtramp_p): New function.
3264 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3265 deprecated_pc_in_sigtramp.
3266 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3267 few comments.
3268 (amd64obsd_pc_in_sigtramp): Remove function.
3269 (amd64obsd_sigtramp_p): New function.
3270 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3271 deprecated_pc_in_sigtramp.
3272 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3273 (i386bsd_pc_ins_sigtramp): Remove prototype.
3274 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3275 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3276 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3277 the program counter is in the range specified by `struct
3278 gdbarch_tdep'.
3279 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3280 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3281 (i386_go32_pc_in_sigtramp): Remove function.
3282 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3283 Initialize TDEP->sigtramp_p.
3284 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3285 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3286 deprecated_pc_in_sigtramp.
3287 * i386-linux-tdep.c: Adjust comments.
3288 (i386_linux_pc_in_sigtramp): Remove function.
3289 (i386_linux_sigtramp_p): New function.
3290 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3291 deprecated_pc_in_sigtramp.
3292 * i386-nto-tdep.c: Update copyright year.
3293 (i386nto_pc_in_sigtramp): Remove function.
3294 (i386nto_sigtramp_p): New function.
3295 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3296 SP_REGNUM.
3297 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3298 deprecated_pc_in_sigtramp.
3299 * i386-sol2-tdep.c: Update copyright year.
3300 (i386_sol2_pc_in_sigtramp): Remove function.
3301 (i386_sol2_sigtramp_p): New function.
3302 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3303 deprecated_pc_in_sigtramp.
3304 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3305 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3306 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3307 deprecated_sigtramp_start and deprecated_sigtramp_end.
3308 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3309 (i386nbsd_pc_in_sigtramp): Remove function.
3310 (i386nbsd_sigtramp_p): New function.
3311 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3312 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3313 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3314 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3315 (i386obsd_pc_in_sigtramp): Remove function.
3316 (i386obsd_sigtramp_p): New function.
3317 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3318 functions.
3319 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3320 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3321 TDEP->sigtramp_p.
3322 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3323 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3324 dependencies.
3325
e083e6ec
MK
3326 * config/i386/i386aout.mt: Remove file.
3327
bd153b94
MK
3328 * configure.tgt: Remove i[34567]86-*-go32*,
3329 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3330 and i[34567]86-*-isc*. Set gdb_target to i386 for
3331 i[34567]86-*-netware* and i[34567]86-*-*.
3332 * config/i386/i386.mt: New file.
3333 * config/i386/embed.mt: Remove file.
3334 * config/i386/go32.mt: Remove file.
3335 * config/i386/i386nw.mt: Remove file.
3336 * config/i386/i386v.mt: Remove file.
3337 * config/i386/tm-go32.h: Remove file.
3338
4a1bcc8c
MK
3339 * tui/tui-hooks.c: Include "readline/readline.h" after
3340 "gdb_curses.h" instead of before.
3341 * tui/tui-io.c: Likewise.
3342
f9a79064
MK
3343 * tui/tui.c: Fix typo in comment.
3344
b31bc724
MK
3345 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3346
f83f82bc
AC
33472004-04-08 Andrew Cagney <cagney@redhat.com>
3348
3349 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3350 (deprecated_exception_support_initialized): Declare.
8718a420 3351 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
3352 (initialize_hp_cxx_exception_support)
3353 (child_enable_exception_callback): Update.
3354 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3355 (deprecated_exception_support_initialized): Rename
3356 deprecated_exception_catchpoints_are_fragile and
3357 deprecated_exception_support_initialized.
3358 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3359
3360 * symtab.c (deprecated_hp_som_som_object_present): Rename
3361 hp_som_som_object_present.
3362 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3363 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3364 Update. Delete extern declaration.
3365 * valops.c (hp_som_som_object_present): Ditto.
8718a420 3366 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
3367 (parse_nested_classes_for_hpacc): Ditto.
3368 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 3369 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
3370 (initialize_hp_cxx_exception_support): Ditto.
3371 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 3372 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 3373 (cp_print_class_method): Ditto.
8718a420 3374 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
3375 (c_type_print_base): Ditto.
3376 * c-exp.y (hp_som_som_object_present): Ditto.
3377
fb2be677
AC
33782004-04-08 Andrew Cagney <cagney@redhat.com>
3379
3380 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3381 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3382 (frame_unwind_find_by_frame): Re-implement the unwind code so
3383 that it can both prepend and append sniffers. Replace
3384 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3385 * tramp-frame.c (tramp_frame_append): Use
3386 frame_unwind_prepend_unwinder.
3387 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3388 frame_unwind_register_unwinder.
3389 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3390 tramp_frame_append.
3391 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 3392 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
3393 (mips_linux_init_abi): Update.
3394
67faf007
KB
33952004-04-08 Kevin Buettner <kevinb@redhat.com>
3396
3397 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3398 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3399 file support.
3400
8973ff21
KB
34012004-04-07 Kevin Buettner <kevinb@redhat.com>
3402
3403 * ia64-tdep.c (elf.h): Don't include.
3404 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3405
4a0e2f88
JM
34062004-04-07 Jason Molenda (jmolenda@apple.com)
3407
3408 * frame.h: Typeo corrections in comments.
3409
9872ad24
JB
34102004-04-07 Jim Blandy <jimb@redhat.com>
3411
3412 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3413 %esp and %ebp
3414
70b216c8
MK
34152004-04-07 Mark Kettenis <kettenis@gnu.org>
3416
11d5789c
MK
3417 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3418 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3419 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3420 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3421 and solib-legacy.o.
3422 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3423 solib-svr4.o.
3424 * config/sparc/tm-sol2.h: Update copyright year. Include
3425 "solib.h".
3426
70b216c8
MK
3427 * sparc-sol2-tdep.c: Update copyright year. Include
3428 "solib-svr4.h".
3429 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3430 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3431 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 3432 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
3433 dependencies.
3434
6339dc9e
AC
34352004-04-06 Andrew Cagney <cagney@redhat.com>
3436
3437 * infttrace.c: Include "infttrace.h".
3438 * infttrace.h: Include "target.h".
3439 * Makefile.in (infttrace_h): Update.
3440 (infttrace.o): Update.
8718a420 3441
93449403
AC
34422004-04-06 Andrew Cagney <cagney@redhat.com>
3443
6d518969
AC
3444 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3445 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3446 move extern declarations from here ...
3447 * infttrace.h: ... to here.
3448 * Makefile.in (hppah-nat.o): Update dependencies.
3449
85f4f2d8
AC
3450 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3451 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 3452 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
3453 (hppa_breakpoint_from_pc): Delete.
3454
93449403
AC
3455 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3456
71456ec6
AC
34572004-04-05 Andrew Cagney <cagney@redhat.com>
3458
3459 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3460 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3461 <sys/file.h>.
8718a420 3462
4c02c60c
AC
34632004-04-06 Randolph Chung <tausq@debian.org>
3464
3465 Committed by Andrew Cagney (mechanical change).
3466 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3467 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3468 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3469 child_enable_exception_callback, current_ex_event,
3470 null_symtab_and_line, child_get_current_exception_event,
3471 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3472 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3473 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3474 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3475 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3476 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3477 Move hpux-specific definitions ...
3478 * hppa-hpux-tdep.c: ... to here.
3479
3a515653
AC
34802004-04-05 Andrew Cagney <cagney@redhat.com>
3481
3482 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3483 skip_prologue_using_sal.
3484
c1730d02
AC
34852004-04-05 Andrew Cagney <cagney@redhat.com>
3486
3487 * config/i386/tm-i386.h: Delete file.
3488 * config/i386/tm-vxworks.h: Update copyright, do not include
3489 "tm-i386.h".
3490 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3491 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3492 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3493 * config/i386/ncr3000.mt (TM_FILE): Delete.
3494 * config/i386/interix.mt (TM_FILE): Delete.
3495 * config/i386/i386v.mt (TM_FILE): Delete.
3496 * config/i386/i386nw.mt (TM_FILE): Delete.
3497 * config/i386/i386gnu.mt (TM_FILE): Delete.
3498 * config/i386/i386aout.mt (TM_FILE): Delete.
3499 * config/i386/embed.mt (TM_FILE): Delete.
3500
8b67aa36
KB
35012004-04-05 Kevin Buettner <kevinb@redhat.com>
3502
3503 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3504 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3505 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3506 (accg7_regnum): New constants.
3507 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
3508 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3509 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
3510 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3511 for accg registers.
3512 (frv_register_sim_regno): Update spr_map[].
3513
3c7012f5
AC
35142004-04-04 Andrew Cagney <cagney@redhat.com>
3515
3516 * config/mips/xm-riscos.h: Delete.
3517 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3518 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3519 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3520 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3521 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3522 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3523 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3524 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3525 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3526 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3527 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3528 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3529 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3530 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3531 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3532 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3533 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3534 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3535 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3536 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3537 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3538 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3539 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3540 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3541 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3542 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 3543
3c7012f5
AC
3544 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3545 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3546 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3547 * configure.host: Remove m680[01]0-sun-sunos3*,
3548 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3549 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3550 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3551 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3552 mips-*-riscos*.
3553 * NEWS: Mention removed systems.
3554
99d16a21
AC
35552004-04-04 Andrew Cagney <cagney@redhat.com>
3556
3557 GDB 6.1 release created from 6.1 branch.
3558
6cdf9d98
AC
35592004-04-04 Andrew Cagney <cagney@redhat.com>
3560
98d346c3
AC
3561 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3562 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3563 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3564
6cdf9d98
AC
3565 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3566 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3567 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3568
859a326d
JB
35692004-04-03 Jim Blandy <jimb@redhat.com>
3570
3571 * MAINTAINERS: Chris Faylor has changed employers; add him to
3572 "paper trail" section, and update his E-mail address.
3573
b87178c3
AC
35742004-04-03 Andrew Cagney <cagney@redhat.com>
3575
4ea2acf0
AC
3576 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3577 generic dummy frames.
3578 * dummy-frame.c: Update copyright.
3579 (dummy_frame_sniffer): Delete check for generic dummy frames.
3580
d0bd2d18 3581 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 3582 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
3583 (REG_PARM_STACK_SPACE): Delete.
3584 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3585 Inline reference to REG_PARM_STACK_SPACE.
3586
b87178c3
AC
3587 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3588 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3589 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3590 (FRAME_BASE_BEFORE_SIGTRAMP)
3591 (hppa32_hpux_frame_base_before_sigtramp)
3592 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3593 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3594 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3595 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3596 (FRAME_BASE_BEFORE_SIGTRAMP)
3597 (hppa64_hpux_frame_base_before_sigtramp)
3598 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3599
43e2e1a0
AC
36002004-04-03 Andrew Cagney <cagney@redhat.com>
3601
3602 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3603
ddc135a4
AC
36042004-04-02 Andrew Cagney <cagney@redhat.com>
3605
3606 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3607 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3608 * dummy-frame.h: Delete out-of-date comments.
3609 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3610 * gdbarch.h, gdbarch.c: Re-generate.
3611
d15bfd3a 36122004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 3613
d15bfd3a
AC
3614 Committed by Andrew Cagney <cagney@redhat.com>.
3615 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3616 into account an instruction saving a register if we have already
3617 seen an earlier instruction saving that same register.
3618
f04ceafa
AC
36192004-04-02 Andrew Cagney <cagney@redhat.com>
3620
08be3abd
AC
3621 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3622 * gdbarch.h, gdbarch.c: Re-generate.
3623 * frame.c (legacy_get_prev_frame): Delete references to
3624 DEPRECATED_INIT_FRAME_PC_FIRST.
3625
f04ceafa
AC
3626 * infrun.c (pc_in_sigtramp): Delete function.
3627 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3628 get_frame_type.
3629
08e69816
AC
36302004-04-02 Andrew Cagney <cagney@redhat.com>
3631
3632 * infrun.c (handle_step_into_function): Delete code conditional on
3633 legacy_frame_p.
3634 (handle_inferior_event, step_over_function): Ditto.
3635
adb54772
AC
36362004-04-02 Andrew Cagney <cagney@redhat.com>
3637
3638 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3639 "previous frame inner to this frame" test.
3640
304396fb
AC
36412004-04-02 Andrew Cagney <cagney@redhat.com>
3642
3643 * frame.c (safe_frame_unwind_memory): New function.
3644 * frame.h (safe_frame_unwind_memory): Declare. Update description
3645 of /safe_/ methods.
3646 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3647 "next_frame". Use safe_frame_unwind_memory.
3648 (tramp_frame_sniffer): Update call to tramp_frame_start.
3649
6502dd73
DJ
36502004-04-01 Daniel Jacobowitz <drow@mvista.com>
3651
3652 * dwarf2read.c (dwarf2_objfile_data_key): New.
3653 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3654 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3655 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3656 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3657 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3658 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3659 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3660 Remove variables.
3661 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3662 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3663 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3664 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3665 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3666 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3667 Remove macros.
3668 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3669 data.
3670 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3671 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3672 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3673 (read_partial_die, read_full_die, read_indirect_string)
3674 (dwarf_decode_line_header, dwarf_decode_macros)
3675 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3676 Update uses of removed variables.
3677 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3678 of removed macros.
3679 (_initialize_dwarf2_read): New function.
3680 * symfile.h (dwarf2_has_info): Update prototype.
3681 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3682 * elfread.c (elf_symfile_read): Likewise.
3683
408752b0
JB
36842004-04-01 Jim Blandy <jimb@redhat.com>
3685
9f744501
JB
3686 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3687 function for register numbers on all the rs6000-derived targets.
3688 (rs6000_gdbarch_init): Don't register a separate
3689 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3690 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3691 variants.
3692
408752b0
JB
3693 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3694 numbering.
3695
2de41bce
PH
36962004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3697
3698 * valarith.c: Update copyright notice.
3699 (value_add): Handle range types.
3700 (value_sub): Ditto.
3701 (value_equal): Ditto.
3702 (value_less): Ditto.
3703 (value_neg): Ditto.
3704 (value_complement): Ditto.
8718a420 3705 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 3706 eliminiating unnecessary COERCE_ENUMs.
8718a420 3707
5613d8d3
AC
37082004-03-31 Andrew Cagney <cagney@redhat.com>
3709
3710 * frame.h (frame_unwind_id): Declare.
3711 * frame.c (frame_unwind_id): New function.
3712 (get_prev_frame_1): New function.
3713 (frame_debug_got_null_frame): New function.
3714 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3715 code proper to prev_frame, update description.
3716 * infrun.c (step_over_function): Use frame_unwind_id.
3717
c4557624
JB
37182004-04-31 J. Brobecker <brobecker@gnat.com>
3719
3720 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3721 (hppa64_push_dummy_call): Likewise.
3722
3e6bb910
JB
37232004-03-30 Jim Blandy <jimb@redhat.com>
3724
3725 From Ulrich Weigand:
3726 * utils.c (query): Do not use a va_list variable multiple times.
3727
a2f23071
DJ
37282004-03-29 Daniel Jacobowitz <drow@mvista.com>
3729
3730 * Makefile.in (linux_nat_h): Update dependencies.
3731 * configure.in: Check for <gnu/libc-version.h>.
3732 * configure: Regenerate.
3733 * config.in: Regenerate.
3734 * linux-nat.h: Include "target.h". Add waitstatus field to
3735 struct lwp_info.
3736 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3737 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3738 to.
3739 (lin_lwp_handle_extended): New function. Handle clone events.
3740 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3741 thread exit events.
3742 (child_wait): Handle clone events.
3743 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3744 * linux-nat.c (linux_enable_event_reporting): Turn on
3745 PTRACE_O_TRACECLONE.
3746 (linux_handle_extended_wait): Handle clone events.
3747 * thread-db.c: Include <gnu/libc-version.h>.
3748 (struct private_thread_info): Add dying flag.
3749 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3750 higher.
3751 (attach_thread): Update comments. Handle dying threads.
3752 (detach_thread): Set the dying flag.
3753 (check_event): Always call attach_thread.
3754
8d5f9dcb
DJ
37552004-03-29 Daniel Jacobowitz <drow@mvista.com>
3756
3757 * mips-tdep.c (mips_pdr_data): New.
3758 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3759 (_initialize_mips_tdep): Initialize mips_pdr_data.
3760
66337bb1
CV
37612004-03-29 Corinna Vinschen <vinschen@redhat.com>
3762
3763 * minsyms.c (install_minimal_symbols): Move dropping leading
3764 char from linkage name from here...
3765 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3766 test for "__gnu_compiled*" symbols.
3767
e802b915
JB
37682004-03-28 Jim Blandy <jimb@redhat.com>
3769
3770 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3771 registers to temp register r0 and byte stores as prologue
3772 instructions.
3773
72b56458
AC
37742004-03-28 Andrew Cagney <cagney@redhat.com>
3775
3776 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3777 arm*-*-*.
3778
0bfbda3b
SC
37792004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3780
3781 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3782 and switch the layout to force a display of register window.
3783
5a7225ed
JB
37842004-02-26 J. Brobecker <brobecker@gnat.com>
3785
3786 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3787 of the INTEGER class.
3788
81a07a45
JB
37892004-03-26 Jim Blandy <jimb@redhat.com>
3790
3791 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3792 bytes long on PPC GNU/Linux.
3793
8c691c7a
DC
37942004-03-26 David Carlton <carlton@kealia.com>
3795
3796 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3797
103a0089
AC
37982004-03-25 Andrew Cagney <cagney@redhat.com>
3799
3800 * PROBLEMS: Add general section titles, remove references to
3801 specific releases.
3802
7a5ea0d4
DJ
38032004-03-25 Daniel Jacobowitz <drow@mvista.com>
3804
3805 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3806 INT_REGISTER_SIZE.
3807 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3808 FP_REGISTER_VIRTUAL_SIZE.
3809 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3810 of DEPRECATED_REGISTER_RAW_SIZE.
3811 (arm_register_type): Add gdbarch argument.
3812 (arm_register_raw_size, arm_register_virtual_size): Delete.
3813 (arm_register_byte, arm_extract_return_value)
3814 (arm_store_return_value, arm_get_longjmp_target): Update references
3815 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3816 (arm_gdbarch_init): Likewise. Don't set
3817 deprecated_register_raw_size, deprecated_register_virtual_size,
3818 deprecated_max_register_raw_size,
3819 deprecated_max_register_virtual_size, or
3820 deprecated_max_register_virtual_type. Do set register_type.
3821 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3822 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3823 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3824 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3825 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3826 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3827 INT_REGISTER_SIZE.
3828 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3829 (remote_rdp_store_register): Likewise.
3830
5792a79b
DJ
38312004-03-24 Daniel Jacobowitz <drow@mvista.com>
3832
3833 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3834 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3835 to after osabi initialization.
3836 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3837 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3838 functions.
3839 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3840 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3841 variables.
3842 (mips_linux_init_abi): Append signal trampoline unwinders.
3843
1196bfda
AC
38442004-03-24 Andrew Cagney <cagney@redhat.com>
3845
3846 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3847 * tramp-frame.c: Include "gdb_assert.h".
3848 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3849 correct sizeof.
3850 (tramp_frame_append): Validate the tramp frame's instructions.
3851 * Makefile.in (tramp-frame.o): Update dependencies.
3852
4be282b4
AC
38532004-03-23 Andrew Cagney <cagney@redhat.com>
3854
3855 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3856
69aec09b
AC
38572004-03-23 Andrew Cagney <cagney@redhat.com>
3858
3859 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3860 Nasser as past testsuite/lib/ (and other) maintainers.
3861
63ed89b4
DJ
38622004-03-23 Daniel Jacobowitz <drow@mvista.com>
3863
3864 * infcmd.c (attach_command): Reread symbols if we already have
3865 an exec file.
3866
f3b36427
AC
38672004-03-23 Andrew Cagney <cagney@redhat.com>
3868
3869 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3870
aa2a3f87
AC
38712004-03-23 Andrew Cagney <cagney@redhat.com>
3872
3873 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3874 * gdbarch.h, gdbarch.c: Re-generate.
3875 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3876 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3877 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 3878 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 3879 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 3880 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
3881 (DEPRECATED_SIGTRAMP_START): Update.
3882 * blockframe.c (find_pc_sect_partial_function): Update.
3883 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3884
00cac895
DJ
38852004-03-23 Daniel Jacobowitz <drow@mvista.com>
3886
3887 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3888 if necessary.
3889
f561f026
AC
38902004-03-23 Andrew Cagney <cagney@redhat.com>
3891
3892 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3893 predicate, deprecate.
3894 * gdbarch.h, gdbarch.c: Re-generate.
3895 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3896 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3897 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3898 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3899 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3900 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3901 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3902 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3903 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3904 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3905 * blockframe.c (find_pc_partial_function): Update.
3906 * breakpoint.c (bpstat_what): Update.
3907 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3908 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3909 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3910 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3911 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3912 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3913 * i386-nto-tdep.c (i386nto_init_abi): Update.
3914 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3915 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3916 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3917 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3918 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3919 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3920 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3921 * infrun.c (pc_in_sigtramp): Update.
3922 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3923 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3924 * mips-tdep.c (mips_gdbarch_init): Update.
3925 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3926 * ppc-linux-tdep.c: Update comment.
3927 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3928 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3929 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3930 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3931 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3932 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3933 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3934 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3935 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3936 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 3937
8050c72f
AC
39382004-03-23 Andrew Cagney <cagney@redhat.com>
3939
d2259dd3
AC
3940 * tramp-frame.h, tramp-frame.h: New files.
3941 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3942 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3943
8050c72f
AC
3944 * Makefile.in: Update all dependencies.
3945
0db9b4b7
AC
39462004-03-23 Andrew Cagney <cagney@redhat.com>
3947
3948 * Makefile.in (trad_frame_h): Add $(frame_h).
3949 * trad-frame.h: Update copyright. Include "frame.h".
3950 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3951 (trad_frame_set_id, trad_frame_get_id): Declare.
3952 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3953 * trad-frame.c: Update copyright.
3954 (struct trad_frame_cache): Define.
3955 (trad_frame_cache_zalloc): New function.
3956 (trad_frame_set_id, trad_frame_get_id): New functions.
3957 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 3958
8e645ae7
AC
39592004-03-22 Andrew Cagney <cagney@redhat.com>
3960
3961 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3962 s390_pltstub_unwind_cache.
3963 (s390_stub_frame_unwind_cache): Rename
3964 s390_pltstub_frame_unwind_cache.
3965 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3966 (s390_stub_frame_prev_register): Rename
3967 s390_pltstub_frame_prev_register.
3968 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3969 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3970
3971 From Ulrich Weigand:
3972 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3973 pointer calls like PLT calls.
3974
34fcf120
DJ
39752004-03-22 Daniel Jacobowitz <drow@mvista.com>
3976
3977 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3978 PC rather than the partial function start address. Use the start
3979 address to sanity check the found PDR.
3980
5b917078
DJ
39812004-03-22 Daniel Jacobowitz <drow@mvista.com>
3982
3983 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3984 linux_handle_extended_wait.
3985
8adf9e78
AC
39862004-03-22 Andrew Cagney <cagney@redhat.com>
3987
c3122434
AC
3988 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3989 function.
3990
8adf9e78
AC
3991 * frame.h (generic_pop_current_frame): Delete declaration.
3992 (deprecate_pop_dummy_frame): Deprecate
3993 generic_pop_dummy_frame.
3994 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3995 (generic_pop_current_frame): Delete function.
3996 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3997 generic_pop_current_frame.
3998 * v850-tdep.c (v850_pop_frame): Update.
3999 * mcore-tdep.c (mcore_pop_frame): Update.
4000 * sh64-tdep.c (sh64_pop_frame): Update.
4001 * h8300-tdep.c (h8300_pop_frame): Update.
4002
90ba813f
AC
40032004-03-22 Andrew Cagney <cagney@redhat.com>
4004
4005 * frame.h (deprecated_pc_in_call_dummy): Rename
4006 generic_pc_in_call_dummy.
4007 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
4008 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
4009 generic_pc_in_call_dummy.
4010 (pc_in_dummy_frame): Make static.
4011 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
4012 * gdbarch.h, gdbarch.c: Re-generate.
4013 * dummy-frame.c (dummy_frame_sniffer): Simplify.
4014 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
4015 (legacy_get_prev_frame): Ditto.
4016 * inferior.h: Delete reference to generic_pc_in_call_dummy in
4017 comment.
8718a420 4018
ca4bb888
AC
40192004-03-21 Andrew Cagney <cagney@redhat.com>
4020
244675f9
AC
4021 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
4022 declaration and out-of-date comment.
4023 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
4024 Delete function.
4025 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
4026 deprecated_pc_in_call_dummy.
4027
ca4bb888
AC
4028 * infrun.c (handle_inferior_event): For non legacy frames, use the
4029 frame ID and frame type to identify a signal trampoline. Update
4030 comments.
4031
1777c7b4
NW
40322004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
4033
4034 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
4035 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
4036
82417da5
AC
40372004-03-21 Andrew Cagney <cagney@redhat.com>
4038
4039 * frame-unwind.h: Update copyright.
4040 (struct frame_data): Add opaque declaration.
4041 (frame_sniffer_ftype): Declare.
4042 (struct frame_unwind): Add "unwind_data" and "sniffer".
4043 (frame_unwind_register_unwinder): Declare.
4044 (frame_unwind_find_by_frame): Add parameter "this_cache".
4045 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
4046 (legacy_get_prev_frame, legacy_get_prev_frame)
4047 (get_frame_type): Pass the prologue_cache to
4048 frame_unwind_find_by_frame.
4049 * frame-unwind.c (struct frame_unwind_table_entry): Add field
4050 "unwinder".
4051 (frame_unwind_register_unwinder): New function.
4052 (frame_unwind_find_by_frame): Handle an unwind sniffer.
4053
b2ba182e
PH
40542004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
4055
4056 * bcache.c (print_percentage): Use floating point to avoid
4057 incorrect results when portion*100 overflows.
4058
81332287
KB
40592004-03-19 Kevin Buettner <kevinb@redhat.com>
4060
4061 * ppc_tdep.h (ppc_linux_frame_saved_pc)
4062 (ppc_linux_init_extra_frame_info)
4063 (ppc_linux_frameless_function_invocation)
4064 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
4065 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
4066 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
4067 (rs6000_frame_chain): Delete declarations.
4068 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
4069 (ppc_linux_init_extra_frame_info)
4070 (ppc_linux_frameless_function_invocation)
4071 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
4072 (ppc_linux_init_abi): Remove registration of above deleted functions.
4073 * rs6000-tdep.c (rs6000_init_extra_frame_info)
4074 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
4075 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
4076 (rs6000_pop_frame, rs6000_frameless_function_invocation)
4077 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
4078 (rs6000_gdbarch_init): Remove registration of above deleted functions.
4079 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
4080 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
4081 frame management for all OSABIs.
4082
61a65099
KB
40832004-03-19 Andrew Cagney <cagney@redhat.com>
4084
4085 Committed by Kevin Buettner <kevinb@redhat.com>.
4086
4087 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
4088 Update copyright.
4089 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
4090 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
4091 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
4092 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
4093 unwinders. #ifdef legacy frame code.
4094 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4095 "frame-base.h".
4096 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
4097 (struct rs6000_frame_cache, rs6000_frame_cache)
4098 (rs6000_frame_this_id, rs6000_frame_prev_register)
4099 (rs6000_frame_sniffer, rs6000_frame_unwind)
4100 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
4101 (rs6000_frame_base): Implement a traditional frame unwinder.
4102 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
4103 frame unwinder.
4104
88f7da05
KB
41052004-03-19 Kevin Buettner <kevinb@redhat.com>
4106
4107 * breakpoint.c (adjust_breakpoint_address): Don't adjust
4108 breakpoint address for watchpoints or the catch eventpoints.
4109 Add new paramter ``bptype''. Adjust all callers.
4110
f826dce1
AC
41112004-03-19 Andrew Cagney <cagney@redhat.com>
4112
33cb8b0f
AC
4113 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
4114
f826dce1
AC
4115 * PROBLEMS: Delete note that ARM does not use frame code, problem
4116 fixed.
4117
43b1ab88
AC
41182004-03-18 Andrew Cagney <cagney@redhat.com>
4119
292ab034
AC
4120 * stack.c (return_command): Delete code wrapped in #ifdef
4121 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
4122
43b1ab88
AC
4123 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
4124
dbfe4626
AC
41252004-03-18 Andrew Cagney <cagney@redhat.com>
4126
4127 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
4128 DEPRECATED_IN_SIGTRAMP.
4129 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4130 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
4131 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4132 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4133 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4134 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4135 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4136 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4137 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
4138 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
4139
0cad6aec
AC
41402004-03-18 Andrew Cagney <cagney@redhat.com>
4141
4142 * frame-base.c: Update copyright. Include "gdb_obstack.h".
4143 (struct frame_base_table_entry): Define.
4144 (struct frame_base_table): Re-implement as a linked list.
4145 (frame_base_init): Re-implement.
4146 (frame_base_table): Delete function.
4147 (append_predicate): Delete function.
4148 (frame_base_append_sniffer): Update.
4149 (frame_base_set_default): Update.
4150 (frame_base_find_by_frame): Update.
4151 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
4152 * Makefile.in (frame-base.o): Update dependencies.
4153
9982c2e7
AC
41542004-03-17 Andrew Cagney <cagney@redhat.com>
4155
4156 * frame.c (legacy_get_prev_frame): Pass correct frame to
4157 frame_unwind_find_by_frame.
4158
8dfe8985
DC
41592004-03-17 David Carlton <carlton@kealia.com>
4160
4161 * NEWS: Mention C++ nested types and namespaces
4162
ed47347a
MC
41632004-03-16 Michael Chastain <mec.gnu@mindspring.com>
4164
4165 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
4166 and "Regressions since gdb 5.3.". Add known regressions since
4167 gdb 6.0.
4168
90aeadfc
DC
41692004-03-16 David Carlton <carlton@kealia.com>
4170
4171 * dwarf2read.c (process_structure_scope): Process children even
4172 when we're a declaration.
4173
73912b9b
AC
41742004-03-16 Andrew Cagney <cagney@redhat.com>
4175
4176 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4177 * blockframe.c (find_pc_partial_function)
4178 (find_pc_sect_partial_function): Merge into a single
4179 find_pc_partial_function.
4180
283accbc
MK
41812004-03-16 Mark Kettenis <kettenis@gnu.org>
4182
4183 * i386bsd-nat.c: s/regno/regnum/g.
4184 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4185 FP0_REGNUM.
4186 (store_inferior_registers): Likewise.
4187
f5b1afdf
MK
41882004-03-16 Mark Kettenis <kettenis@gnu.org>
4189
4190 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4191 of i387_fill_fsave.
4192 (store_inferior_registers): Call i387_collect_fsave and
4193 i387_collect_fxsave instead of i387_fill_fsave and
4194 i387_fill_fxsave.
4195
41fe5eb3
AC
41962004-03-15 Andrew Cagney <cagney@redhat.com>
4197
4198 * Makefile.in (frame-unwind.o): Update dependencies.
4199 * frame-unwind.c: Include "gdb_obstack.h".
4200 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4201 parameter.
4202 (append_predicate): Delete function.
4203 (struct frame_unwind_table_entry): New structure.
4204 (struct frame_unwind_table): Replace "sniffer" with "head" and
4205 "tail".
4206 (frame_unwind_append_sniffer): Update.
4207 (frame_unwind_find_by_frame): Update.
4208 (_initialize_frame_unwind): Registe frame_unwind_init using
4209 gdbarch_data_register_pre_init.
4210
3f63813d
MK
42112004-03-15 Mark Kettenis <kettenis@gnu.org>
4212
4213 * i386bsd-nat.c: Update copyright year.
4214 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4215 define unconditionally.
4216
3248c325 42172004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
4218
4219 * i387-tdep.h (i387_collect_fsave): New prototype.
4220 * i387-tdep.c (i387_collect_fsave): New function containing most
4221 of the code from i387_fill_fsave.
3248c325 4222 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 4223
871fbe6a
MK
42242004-03-15 Mark Kettenis <kettenis@gnu.org>
4225
4226 * i386-linux-tdep.c: Update copyright year.
4227 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4228 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4229 svr4_ilp32_link_map_offsets instead of
4230 i386_linux_svr4_fetch_link_map_offsets.
4231
8176b9b8
DC
42322004-03-15 David Carlton <carlton@kealia.com>
4233
4234 Fix for PR c++/1553:
4235 * dwarf2read.c (read_structure_type): Determine type name by
4236 calling determine_class_name.
4237 (determine_class_name): New.
4238 (determine_prefix): Look at TYPE_TAG_NAME and call
4239 determine_class_name when appropriate.
4240 (determine_prefix_aux, class_name): Delete.
9d58e29d 4241 (read_namespace): Set die->type.
8176b9b8 4242
fe8bf7d7
KB
42432004-03-15 Kevin Buettner <kevinb@redhat.com>
4244
4245 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4246 unused macro definition. The definition in target.h (or perhaps
4247 elsewhere) takes precedence.
4248
ed6edd9b
AC
42492004-03-15 Andrew Cagney <cagney@redhat.com>
4250
f9be684a
AC
4251 * ppc-tdep.h: Update copyright.
4252 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4253 function signatures to match "regsets.h".
4254 * ppc-linux-tdep.c: Include "regset.h".
4255 (ELF_GREGSET_SIZE): Delete.
4256 (right_supply_register): New function.
4257 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4258 using right_supply_register.
4259 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4260 functions.
4261 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4262 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4263 (_initialize_ppc_linux_tdep): Do not register
4264 ppc_linux_regset_core_fns.
4265 (ppc_linux_regset_from_core_section): Replace
4266 fetch_core_registers.
4267 (ppc_linux_regset_core_fns): Delete.
4268 * ppc-linux-nat.c: (right_fill_reg): New function.
4269 (supply_gregset): Update call to ppc_linux_supply_gregset.
4270 (fill_gregset): Clear the register set, use right_fill_reg.
4271 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4272 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4273
ed6edd9b
AC
4274 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4275 unsigned.
4276
030f20e1
AC
42772004-03-15 Andrew Cagney <cagney@redhat.com>
4278
4279 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4280 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4281 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4282 and register_gdbarch_data.
4283 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4284 (struct gdbarch_data): Replace "init" by "pre_init" and
4285 "post_init".
4286 * gdbarch.h, gdbarch.c: Re-generate.
4287 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4288 with"obstack", use OBSTACK_ZALLOC.
4289 (dwarf2_frame_ops): Delete.
4290 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4291 (dwarf2_frame_init_reg): Use gdbarch_data.
4292 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 4293 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
4294 (_initialize_svr4_solib): Update.
4295 * user-regs.c (_initialize_user_regs): Update.
4296 * reggroups.c (_initialize_reggroup): Update.
4297 * regcache.c (_initialize_regcache): Update.
4298 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4299 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4300 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4301 * frame-unwind.c (_initialize_frame_unwind): Update.
4302 * frame-base.c (_initialize_frame_base): Update.
4303 * user-regs.c (user_reg_add): Update.
4304 * reggroups.c (reggroup_add): Update.
4305 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4306 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4307 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4308 * frame-base.c (frame_base_table): Update.
4309 * remote.c (_initialize_remote): Update.
4310 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 4311
3111a3fc
AC
43122004-03-15 Andrew Cagney <cagney@redhat.com>
4313
4314 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4315
5ecb7103
KB
43162004-03-15 Kevin Buettner <kevinb@redhat.com>
4317
4318 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4319 * frv-linux-tdep.c: New file.
4320 * frv-tdep.c (struct gdbarch_tdep): Add new field
4321 ``sigcontext_reg_addr''.
4322 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4323 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4324 (frv_sigramp_frame_sniffer): New functions.
4325 (frv_sigtramp_frame_unwind): New static global.
4326 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4327 sniffers.
4328 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4329 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4330
1ccda5e9
KB
43312004-03-15 Kevin Buettner <kevinb@redhat.com>
4332
4333 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4334 but not via a call to error(), when unable to read memory.
4335
b375a0a5
KB
43362004-03-15 Kevin Buettner <kevinb@redhat.com>
4337
4338 * frv-tdep.c (frv_call_dummy_words): Delete.
4339 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4340
4fdf6121
AC
43412004-03-15 Andrew Cagney <cagney@redhat.com>
4342
4343 * infrun.c (handle_step_into_function, step_over_function): Only
4344 update and use STEP_FRAME_ID when the system is using legacy
4345 frames. Update comments.
4346
34021503
MK
43472004-03-14 Mark Kettenis <kettenis@gnu.org>
4348
187e21d1
MK
4349 * amd64-linux-tdep.h: Remove file.
4350 * amd64-linux-tdep.c: Don't include "inferior.h" and
4351 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4352 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4353 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4354 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4355 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4356 macros.
4357 (user_to_gdb_regmap): Remove variable.
4358 (amd64_linux_gregset_reg_offset): New variable.
4359 (amd64_core_fns): Remove variable.
4360 (fetch_core_registers): Remove function.
4361 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4362 functions.
4363 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4364 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4365 * Makefile.in (amd64_linux_tdep_h): Remove.
4366 (amd64-linux-nat.o): Update dependencies.
4367 (amd64-linux-tdep.o): Update dependencies.
4368
99679982
MK
4369 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4370 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4371 functions.
4372 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4373
34021503
MK
4374 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4375 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4376
134d01f1
DJ
43772004-03-14 Daniel Jacobowitz <drow@mvista.com>
4378
4379 * dwarf2read.c (read_structure_type): Rename from
8718a420 4380 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
4381 Return immediately if die->type is set. Call read_type_die before
4382 dwarf2_add_member_fn.
4383 (process_structure_scope): New function.
4384 (read_enumeration_type, process_enumeration_scope): New functions,
4385 broken out from read_enumeration. Don't create the enumeration
4386 type if it has already been created.
4387 (read_enumeration): Removed.
4388 (process_die): Call read_structure_type, process_structure_scope,
4389 read_enumeration_type, and process_enumeration_scope. Just call
4390 new_symbol for base and subrange types. Add a comment about other
4391 type dies.
4392 (read_type_die): Call read_enumeration_type.
4393 (add_partial_structure, new_symbol): Update comments.
4394
65760afb
SC
43952004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4396
4397 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4398
10f59415
SC
43992004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4400
4401 * tui/tui-win.h (tui_get_cmd_list): Declare.
4402 * tui/tui-win.c (tui_command): New function.
4403 (tui_get_cmd_list): New function.
4404 (_initialize_tui_win): Moved initialization of tui command in
4405 tui_get_cmd_list.
4406
4407 * tui/tui-data.c (init_content_element): Setup new data members.
4408 (init_win_info): Likewise.
4409 (free_content_elements): Free it.
4410 * tui/tui-data.h (struct tui_data_element): Store the register
4411 content to print.
4412 (struct tui_data_info): Keep the current register group.
4413
4414 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4415
4416 * tui/tui-regs.h (tui_show_registers): Update prototype.
4417 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4418 (tui_resize_all): No need to calculate anything for register window.
4419 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4420 (tui_set_register_element, tui_set_general_regs_content): Remove.
4421 (tui_set_special_regs_content): Remove.
4422 (tui_set_general_and_special_regs_content): Remove.
4423 (tui_set_float_regs_content): Remove.
4424 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4425 (tui_set_regs_content): Remove.
4426 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4427 (tui_v_show_registers_command_support): Remove.
4428 (tui_show_registers): Use a reggroup to specify the registers to show.
4429 (tui_show_register_group): New function.
4430 (tui_display_registers_from): Compute the layout of register window
4431 and refresh with new API; be sure to delete old register windows.
4432 (tui_check_register_values): Update to use tui_get_register and
4433 tui_display_data.
4434 (tui_display_register): Just refresh the register window part.
4435 (tui_register_format): Format registers and save in tui_data_element.
4436 (tui_get_register): New to combine tui_reg_value_has_changed and
4437 tui_get_register_raw_value; fix to use the new gdb API.
4438 (tui_show_float_command): Renamed tui_reg_float_command.
4439 (tui_show_general_command): Renamed tui_reg_general_command.
4440 (tui_show_special_command): Renamed tui_reg_system_command.
4441 (_initialize_tui_regs): Remove unused commands.
4442
c3364ea4
MK
44432004-03-13 Mark Kettenis <kettenis@gnu.org>
4444
27d1e716
MK
4445 * NEWS (New native configurations): Mention OpenBSD/amd64.
4446
c3364ea4
MK
4447 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4448 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4449 Remove defines.
4450 * config/i386/nm-fbsd64.h: Likewise.
4451 * config/i386/nm-obsd.h: Likewise.
4452 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4453 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4454
b2d6d697
KB
44552004-03-12 Kevin Buettner <kevinb@redhat.com>
4456
4457 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
4458 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4459 New constants.
4460
76e43199
KB
4461 From Richard Sandiford <rsandifo@redhat.com>:
4462 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4463
34ce532e
KB
44642004-03-12 Kevin Buettner <kevinb@redhat.com>
4465
4466 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4467 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4468 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4469 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4470 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4471 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4472 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4473 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4474 definitions from frv-tdep.c to frv-tdep.h.
4475
c4d10515
KB
44762004-03-12 Kevin Buettner <kevinb@redhat.com>
4477
4478 Add shared library support for FR-V FDPIC ABI:
4479 * Makefile.in (solib-frv.o): Add dependencies.
4480 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4481 New functions.
4482 (frv_push_dummy_call): Add support for FDPIC ABI.
4483 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4484 for FDPIC ABI.
4485 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4486 (frv_fdpic_find_canonical_descriptor): Declare.
4487 * solib-frv.c: New file.
4488 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4489 * config/frv/tm-frv.h (solib.h): Include.
4490
ed1bd989
KB
44912004-03-12 Kevin Buettner <kevinb@redhat.com>
4492
4493 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4494 (frv-tdep.o): Update dependencies.
4495 * frv-tdep.h: New file.
4496 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4497 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4498 constants.
4499 (struct gdbarch_tdep): Add new member ``frv_abi''.
4500 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4501 functions.
4502 (new_variant): Set ``frv_abi'' field.
4503 (gdb_arch_init): Detect FDPIC executables.
4504
82b38f72
MK
45052004-03-12 Mark Kettenis <kettenis@gnu.org>
4506
4507 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4508 wrapper.
4509
db1ea9ba
AC
45102004-03-11 Andrew Cagney <cagney@redhat.com>
4511
4512 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4513
f8766ec1
KB
45142004-03-11 Kevin Buettner <kevinb@redhat.com>
4515
4516 * solist.h (master_so_list): New function.
4517 * solib.c (master_so_list): Likewise.
4518 * solib-svr4.c (enable_break): Iterate over so_list entries
4519 obtained from master list instead of entries obtained directly
4520 via svr4_current_sos().
4521
523f6a27
BE
45222004-03-10 Ben Elliston <bje@gnu.org>
4523
4524 * MAINTAINERS: Update my mail address.
4525
37814c18
KI
45262004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4527
4528 * remote-m32r-sdi.c: Support hardware watchpoint.
4529
8b9740d8
DJ
45302004-03-09 Daniel Jacobowitz <drow@mvista.com>
4531
4532 * user-regs.c: Update copyright years.
4533 (struct user_regs): Rename to gdb_user_regs.
4534 (append_user_reg, builtin_user_regs, user_regs_init)
4535 (user_reg_add, user_reg_map_name_to_regnum)
4536 (usernum_to_user_reg): Update.
4537
4bb7a0a7
DJ
45382004-03-09 Daniel Jacobowitz <drow@mvista.com>
4539
4540 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4541 (skip_children): New functions.
4542 (locate_pdi_sibling): Call skip_children.
4543
44e1a9eb
DJ
45442004-03-09 Daniel Jacobowitz <drow@mvista.com>
4545
4546 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4547 * gdbtypes.c (check_typedef): Update comments.
4548
f3dd6933
DJ
45492004-03-09 Daniel Jacobowitz <drow@mvista.com>
4550
4551 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4552 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4553 pointer. Update comment about comp_unit_head.
4554 (struct abbrev_info): Shorten two int flags.
4555 (dwarf_alloc_abbrev): Take a CU argument.
4556 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4557 each time through the loop. Update cleanup argument.
4558 (psymtab_to_symtab_1): Update cleanup call.
4559 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4560 abbrev_obstack.
4561 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4562 Just call obstack_free and clear the pointer.
4563
b40c7d58
DJ
45642004-03-09 Daniel Jacobowitz <drow@mvista.com>
4565
4566 * infrun.c (handle_inferior_event): Remove short-circuit code for
4567 events in a different thread.
4568
333dabeb
DJ
45692004-03-09 Daniel Jacobowitz <drow@mvista.com>
4570
4571 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4572 print the whole transfer.
4573 (initialize_targets): Update description of "set debug target".
4574
aa17d93e
DJ
45752004-03-09 Daniel Jacobowitz <drow@mvista.com>
4576
4577 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4578
0b71f08f
NW
45792004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4580
4581 * MAINTAINERS (write after approval): Add myself.
4582
3930f270
CV
45832004-03-08 Corinna Vinschen <vinschen@redhat.com>
4584
4585 * sh-tdep.c (sh_print_registers_info): Use for loop.
4586 Don't skip multiple registers when a float register is encountered.
4587
a2b4a96c
CV
45882004-03-08 Corinna Vinschen <vinschen@redhat.com>
4589
4590 Fix PR tdep/1291.
4591 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4592 to official SH documentation.
4593
f15a4bc0
AC
45942004-03-07 Andrew Cagney <cagney@redhat.com>
4595
4596 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4597 unused function.
4598
9498281f
DJ
45992004-03-07 Daniel Jacobowitz <drow@mvista.com>
4600
4601 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4602 (arm_get_next_pc): Handle BX and BLX.
4603
449e1137
AC
46042004-03-07 Andrew Cagney <cagney@redhat.com>
4605
eded0a31
AC
4606 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4607 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4608 HPPA_SP_REGNUM.
4609 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4610 (hppa_target_read_fp): Delete.
4611 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4612 register_virtual_size, max_register_raw_size,
4613 max_register_virtual_size, register_byte, register_size,
4614 target_read_fp, fp_regnum, and register_bytes. Set register_type
4615 instead of register_virtual_type.
4616 (hppa32_register_type, hppa64_register_type): Replace
4617 hppa32_register_virtual_type and hppa64_register_virtual_type.
4618 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4619 (HPPA_FP_REGNUM): Define.
4620
f5f907e2
AC
4621 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4622
69b4bbe4
AC
4623 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4624 (pa_do_registers_info): Delete.
4625 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 4626 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 4627 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 4628
78161e48
AC
4629 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4630 GDB_TARGET_IS_HPPA code.
4631 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 4632 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
4633 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4634 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
4635 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4636 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4637 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 4638 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
4639 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4640 (hppa_frameless_function_invocation, hppa64_store_return_value)
4641 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 4642 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 4643 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 4644 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
4645 (find_proc_framesize, deposit_21, restore_pc_queue)
4646 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 4647 (rp_saved, pc_in_linker_stub): Delete.
78161e48 4648
782eae8b
AC
4649 Unconditionally enable 64-bit frame and ABI code.
4650 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4651 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4652 push_dummy_frame, fix_call_dummy, push_arguments,
4653 call_dummy_location, extract_return_value, use_struct_convention,
4654 store_return_value, store_struct_return, saved_pc_after_call,
4655 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4656 frame_chain, frame_chain_valid, frameless_function_invocation,
4657 frame_saved_pc, and pop_frame.
78161e48 4658
449e1137
AC
4659 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4660 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4661 (hppa_gdbarch_init): Do not set PC_REGNUM.
4662
12507572
MK
46632004-03-06 Mark Kettenis <kettenis@gnu.org>
4664
4665 * config/alpha/tm-fbsd.h: Remove file.
4666 * config/alpha/fbsd.mt: Tweak comment.
4667 (TM_FILE): Set to tm-alpha.h.
4668
c107cc1b
AC
46692004-03-05 Andrew Cagney <cagney@redhat.com>
4670
4671 * infrun.c (step_over_function): When non-legacy code, and no
4672 step_frame_id, use the unwinder to get the caller's frame ID.
4673
f2e7c15d
MK
46742004-03-05 Mark Kettenis <kettenis@gnu.org>
4675
8b0c3633
MK
4676 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4677 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4678 bfd_arch_unknown. Adjust comment.
4679
f2e7c15d
MK
4680 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4681 * i386obsd-tdep.c: Correct spelling in comment.
4682 * i386nbsd-tdep.c: Correct spelling in comment.
4683 * sparc-tdep.c: Correct spelling in comments.
4684
1198ecbe
DC
46852004-03-05 David Carlton <carlton@kealia.com>
4686
4687 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4688 bug.
4689
9eb42ed1
MK
46902004-03-05 Mark Kettenis <kettenis@gnu.org>
4691
4692 * sparc-tdep.c: Fix typo in comment.
4693
52b5e991
JB
46942004-03-04 J. Brobecker <brobecker@gnat.com>
4695
4696 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4697
d8151005
DJ
46982004-03-04 Daniel Jacobowitz <drow@mvista.com>
4699
4700 * dwarf2read.c: Add comment describing memory lifetimes.
4701 (struct dwarf2_pinfo): Update comment.
4702 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4703 (read_enumeration, new_symbol): Don't use obsavestring.
4704
cbeae229
MK
47052004-03-04 Mark Kettenis <kettenis@gnu.org>
4706
722d18c2
MK
4707 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4708 instead of amd64_fill_fxsave.
4709 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4710 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4711
cbeae229
MK
4712 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4713 Reorganize code a bit.
4714
b4206d25
OF
47152004-03-04 Orjan Friberg <orjanf@axis.com>
4716
4717 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
4718 when the frame pointer is pushed. Don't set the frame pointer's
4719 address on the stack unless it's actually located there.
b4206d25
OF
4720 Set the SRP's address on the stack correctly when the PC is still in
4721 the prologue.
4722 (cris_return_value): New function.
4723 (cris_gdbarch_init): Clear deprecated store_return_value,
4724 extract_return_value.
4725
49b0b195
JB
47262004-03-02 Jim Blandy <jimb@redhat.com>
4727
4728 * stabsread.c (reg_value_complaint): The maximum register number
4729 is one less than the number of registers.
4730
e9ff708b
AC
47312004-03-02 Andrew Cagney <cagney@redhat.com>
4732
4733 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4734 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4735 trailing comma and redundant assignment of I386_ST0_REGNUM.
4736 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4737 32-bit segment registers.
4738
d4715e41
AC
47392004-03-01 Andrew Cagney <cagney@redhat.com>
4740
4741 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4742 use frame_relative_level and get_next_frame.
4743
3ce2bf18
AC
47442004-02-29 Andrew Cagney <cagney@redhat.com>
4745
4746 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4747 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4748 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4749 Delete macro.
4750
2da6aac3
DJ
47512004-02-29 Daniel Jacobowitz <drow@mvista.com>
4752
4753 * inflow.c (terminal_inferior): Don't give up the terminal if we
4754 previously couldn't get the inferior's terminal state.
4755
6ba34a8d
DJ
47562004-02-29 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4759 PC_REGNUM.
4760
faae5abe
AC
47612004-02-28 Andrew Cagney <cagney@redhat.com>
4762
4763 * NEWS: Refer to GDB 6.1.
4764 * README: Refer to GDB 6.1.
4765 * PROBLEMS: Refer to GDB 6.1.
4766
2227a3c5
DJ
47672004-02-28 Daniel Jacobowitz <drow@mvista.com>
4768
4769 * thread-db.c (disable_thread_signals): Remove unused function.
4770
80571bff
MK
47712004-02-28 Mark Kettenis <kettenis@gnu.org>
4772
041bd74b
MK
4773 * amd64-nat.c: Include "gdb_string.h".
4774 (amd64_collect_native_gregset): Zero-extend the 32-bit
4775 general-purpose registers and %eip.
4776
3c017e40
MK
4777 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4778 * amd64-tdep.c (amd64_collect_fxsave): New function.
4779 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4780
80571bff
MK
4781 * i387-tdep.h: Update copyright year.
4782 (i387_collect_fxsave): New prototype.
4783 * i387-tdep.c: Update copyright year.
4784 (i387_collect_fxsave): New function containing most of the code
4785 from i387_fill_fxsave.
4786 (i387_fill_fxsave): Call i387_collect_fxsave.
4787
50d71875
AC
47882004-02-28 Andrew Cagney <cagney@redhat.com>
4789
4790 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4791 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4792
4a28816e
MK
47932004-02-28 Mark Kettenis <kettenis@gnu.org>
4794
4795 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4796
dbda9972
AC
47972004-02-28 Andrew Cagney <cagney@redhat.com>
4798
4799 * utils.c: Use "", instead of <>, to include readline.
4800 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4801 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4802 * source.c, solib.c, exec.c, event-top.c: Ditto.
4803 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4804 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4805 * Makefile.in: Update all dependencies.
4806 (readline_tilde_h, readline_history_h): Define.
4807 (readline_headers): Delete.
4808
83277a99
MK
48092004-02-28 Mark Kettenis <kettenis@gnu.org>
4810
91ae4303
MK
4811 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4812 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4813 "config/i386/tm-lx64.h".
4814
83277a99
MK
4815 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4816 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4817 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4818
6e1d7d6c
AC
48192004-02-28 Andrew Cagney <cagney@redhat.com>
4820
ecc9ac84
AC
4821 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4822
6e1d7d6c
AC
4823 * breakpoint.c (_initialize_breakpoint): Use
4824 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4825 Add help to show command.
4826
9671aeef
MK
48272004-02-28 Mark Kettenis <kettenis@gnu.org>
4828
7fa2737c
MK
4829 * i386-nat.c: Reformat to be closer to coding standards.
4830 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4831 `retval'. Make variables `align' and `size' local to while-loop.
4832 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4833 (_initialize_i386_nat): New prototype.
4834
9671aeef
MK
4835 * tui/tui.c: Include <readline/readline.h> instead of
4836 "readline/readline.h". Include it after <term.h> and
4837 "gdb_curses.h".
4838
fca7aa43
AC
48392004-02-27 Andrew Cagney <cagney@redhat.com>
4840
412275d5
AC
4841 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4842 the new frame unwind code.
4843 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4844 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4845 PCOQ_HEAD_REGNUM.
4846
fca7aa43
AC
4847 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4848 "return_value" and "push_dummy_call".
4849 (hppa32_use_struct_convention): Delete unused function.
4850 (hppa32_store_return_value): Delete unused function.
4851 (hppa32_extract_return_value): Delete unused function.
4852 (hppa32_stack_align): Delete function.
4853
e6a8a7d2
EZ
48542004-02-27 Eli Zaretskii <eliz@elta.co.il>
4855
4856 * coffread.c (enter_linenos): Don't let rawptr reference memory
4857 outside linetab[]'s limits.
4858
1797a8f6
AC
48592004-02-27 Andrew Cagney <cagney@redhat.com>
4860
4861 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4862 inferior stack space - the stack needs to grow upwards.
4863 (hppa32_frame_align): New function.
4864 (hppa64_frame_align): Replace hppa_frame_align.
4865 (hppa_gdbarch_init): Update.
4866
2e4b5889
OF
48672004-02-26 Orjan Friberg <orjanf@axis.com>
4868
4869 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4870 (dwarf2-frame.h): Include.
4871 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4872 Remove static variables related to ABI setting.
4873 (struct gdbarch_tdep): Remove cris_abi member.
4874 (struct frame_extra_info): Remove.
4875 (cris_unwind_cache, stack_item): New structs.
4876 (cris_frame_unwind, cris_frame_base): New variables.
4877 (push_stack_item, pop_stack_item)
4878 (cris_frame_unwind_cache, cris_frame_this_id)
4879 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4880 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4881 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4882 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4883 (cris_reg_struct_has_addr): New functions.
4884 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 4885 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
4886 (cris_store_struct_return, cris_frameless_function_invocation)
4887 (cris_pop_frame, cris_skip_prologue_main)
4888 (cris_abi_original_store_return_value)
4889 (cris_abi_v2_store_return_value)
4890 (cris_abi_original_extract_return_value)
4891 (cris_abi_v2_extract_return_value)
4892 (cris_abi_original_reg_struct_has_addr)
4893 (cris_abi_v2_reg_struct_has_addr)
4894 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4895 (cris_push_return_address, cris_abi_update): Remove.
4896 (_initialize_cris_tdep): Remove ABI command.
4897 (cris_dump_tdep): Ditto.
8718a420 4898 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
4899 Set store_return_value, extract_return_value, push_dummy_code,
4900 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4901 frame_unwind_append_sniffer, frame_base_set_default.
4902 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4903 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4904 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 4905 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
4906 init_extra_frame_info, frameless_function_invocation, frame_chain,
4907 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4908 dummy_write_sp.
8718a420 4909
6b9acc27
JJ
49102004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4911
4912 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4913 * valprint.c (print_hex_chars): Change from static to external.
4914 (print_char_chars): New function.
4915 * printcmd.c (print_scalar_formatted): For integer and enum types
4916 that are longer than LONGEST, perform processing via appropriate
4917 print_*_chars routines.
4918
a431654a
AC
49192004-02-26 Andrew Cagney <cagney@redhat.com>
4920
4921 * Makefile.in: Update dependencies.
4922 Changes from Ulrich Weigand,
4923 * s390-tdep.c: Include "dwarf2-frame.h".
4924 (s390_dwarf2_frame_init_reg): New function.
4925 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4926 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4927
fa8d40ab
JJ
49282004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4929
4930 * breakpoint.c (pending_break_support): New setting variable.
4931 (break_command_1): Account for pending_break_support setting
4932 when creating pending breakpoints.
4933 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4934 (_initialize_breakpoint): Add "set breakpoint pending" and
4935 "show breakpoint pending" commands.
4936
0dcd613f
AC
49372004-02-26 Andrew Cagney <cagney@redhat.com>
4938
4939 Fix PR i18n/1570.
4940 * charset.c (backslashable, backslashed, represented): Remove 'e'
4941 from list of escaped characters, not part of ISO-C.
4942
479272a3
JB
49432004-02-25 J. Brobecker <brobecker@gnat.com>
4944
4945 From Peter Schauer <schauer@pdf.de>:
4946 * tui/tui.c: Move system header includes after local includes.
4947 Fixes a build failure on solaris systems.
4948
7613d933
JB
49492004-02-25 J. Brobecker <brobecker@gnat.com>
4950
4951 * configure.in: Refine the previous change.
4952 * configure: Regenerate.
4953
9c1488cb
MK
49542004-02-25 Mark Kettenis <kettenis@gnu.org>
4955
4956 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4957 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4958 "amd64-tdep.h" instead of "x86-64-tdep.h".
4959 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4960 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4961 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4962 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4963 and "x86-64-tdep.c".
4964 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4965 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4966 and "x86-64-tdep.c".
4967 * amd64bsd-nat.c: Update copyright year.
4968 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4969 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4970 "x86-64-tdep.h".
4971 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4972 "x86-64-tdep.h".
4973 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4974 "x86-64-tdep.h".
4975 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4976 "x86-64-tdep.h".
4977 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4978 "x86-64-tdep.h".
4979 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4980 "x86-64-tdep.h".
8718a420 4981 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
4982 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4983 * Makefile.in (amd64_linux_tdep_h): Renamed from
4984 x86_64_linux_tdep_h.
4985 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4986 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4987 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4988 (amd64obsd-tdep.o): Update dependencies.
4989 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4990 dependencies.
4991 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4992 dependencies.
4993 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4994 amd64-linux-nat.c amd64-linux-tdep.c.
4995 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4996 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4997 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4998 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4999 amd64-tdep.o and amd64-linux-tdep.o.
5000 (TM_FILE): Set to tm-linux64.h.
5001 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
5002 (NAT_FILE): Set to nm-linux64.h.
5003 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
5004 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5005 amd64-tdep.o.
5006 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5007 amd64-tdep.o.
5008 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5009 amd64-tdep.o.
5010
4b8dad4a
RM
50112004-02-25 Roland McGrath <roland@redhat.com>
5012
5013 * remote.c (remote_protocol_qPart_auxv): New variable.
5014 (init_all_packet_configs): Initialize it.
5015 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
5016 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
5017 (show_remote_cmd): Call it.
5018 (_initialize_remote): Initialize commands.
5019 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
5020 service TARGET_OBJECT_AUXV requests.
5021
66745969
JB
50222004-02-25 J. Brobecker <brobecker@gnat.com>
5023
5024 * configure.in: Make sure that the wborder function is available.
5025 Otherwise, search for it in the cur_colr library.
5026 * configure: Regenerate.
5027
79508e1e
AC
50282004-02-25 Andrew Cagney <cagney@redhat.com>
5029
5030 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
5031
571ee600
MK
50322004-02-25 Mark Kettenis <kettenis@gnu.org>
5033
5034 * config/i386/tm-x86-64linux.h: Tweak comments.
5035
2b1b322f 50362004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
5037
5038 * MAINTAINERS: Add self to write-after-approval list.
5039
4d2acc65
AC
50402004-02-25 Andrew Cagney <cagney@redhat.com>
5041
4b8dad4a 5042 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
5043 * cli/cli-script.c (execute_control_command): Unconditionally
5044 install a cleanup. Default "ret" to "invalid_control". Use
5045 "break" instead of "return" to escape from the switch.
5046
4cfcaf21
JB
50472004-02-24 J. Brobecker <brobecker@gnat.com>
5048
5049 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
5050 with the lines macro defined in term.h on AiX.
5051 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
5052 a collision with the label_width macro defined in term.h on AiX.
5053
54a5c8d8
KB
50542004-02-23 David Mosberger <davidm@hpl.hp.com>
5055
5056 Committed by Kevin Buettner <kevinb@redhat.com>.
5057
5058 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
5059 * ia64-tdep.c (ia64_write_pc): Make it a global function.
5060 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
5061 instead of ia64_write_pc().
5062 * ia64-linux-tdep.c (regcache.h): Include.
5063 (ia64_linux_write_pc): New function.
4b8dad4a 5064
8a1dac83
RM
50652004-02-23 Roland McGrath <roland@redhat.com>
5066
5067 * auxv.c (info_auxv_command): Fix typos in error messages.
5068
90f90721
MK
50692004-02-23 Mark Kettenis <kettenis@gnu.org>
5070
8a1dac83 5071 * x86-64-tdep.h: Tweak comment.
90f90721
MK
5072 (enum amd64_regnum): New.
5073 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
5074 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
5075 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
5076 (X86_64_XMM1_REGNUM): Removed.
5077 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
5078 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
5079 prototypes for renamed functions.
5080 * x86-64-tdep.c: Fix typo.
5081 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
5082 register numbers.
5083 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
5084 Use constants from `enum amd64_regnum' for register numbers.
5085 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
5086 (amd64_analyze_prologue, amd64_frame_cache,
5087 amd64_sigtramp_frame_cache): Use constants from `enum
5088 amd64_regnum' for register numbers.
5089 (amd64_supply_fpregset): Adjust for renamed functions.
5090 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
5091 `enum amd64_regnum' for register numbers.
5092 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
5093 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
5094 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
5095 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
5096 (amd64_linux_fill_gregset): Adjust for renamed macros.
5097 (fetch_core_registers): Adjust for renamed functions.
5098 (amd64_linux_init_abi): Adjust for renamed functions.
5099 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
5100 renamed functions.
5101 * amd64-nat.c: Adjust for renamed macros.
5102 * amd64bsd-nat.c (fetch_inferior_registers)
5103 (store_inferior_registers): Use constants from `enum amd64_regnum'
5104 for register numbers. Adjust for renamed variables.
5105 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
5106 renamed variables.
5107 (_initialize_amd64fbsd_nat): Use constants from `enum
5108 amd64_regnum' for register numbers.
5109 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
5110 `enum amd64_regnum' for register numbers.
5111 (amd64fbsd_init_abi): Adjust for renamed functions.
5112 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
5113 `enum amd64_regnum' for register numbers.
5114 (amd64nbsd_init_abi): Adjust for renamed functions.
5115 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
5116 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
5117 `enum amd64_regnum' for register numbers.
5118 (amd64obsd_init_abi): Adjust for renamed functions.
5119 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
5120
d5479188
JJ
51212004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5122
5123 * breakpoint.c (print_one_breakpoint): Do not output spaces
5124 after printing <PENDING> for a pending breakpoint.
5125
81cb7cc9
JJ
51262004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5127
5128 * printcmd.c (print_scalar_formatted): Initialize val_long
5129 to remove compiler warning message.
5130
cbdeadca
JJ
51312004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5132
5133 * defs.h (nquery, yquery): New prototypes.
5134 * breakpoint.c (break_command_1): Use new nquery interface.
5135 * utils.c (defaulted_query, nquery, yquery): New functions.
5136
da6bab63
AC
51372004-02-23 Andrew Cagney <cagney@redhat.com>
5138
2f690297
AC
5139 * hppa-tdep.c (hppa_frame_align): New function.
5140 (hppa32_push_dummy_call): New function.
5141 (hppa64_push_dummy_call): New function.
5142 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
5143 disabled.
8a1dac83 5144
da6bab63
AC
5145 * infcall.c (legacy_push_dummy_code): Don't call deprecated
5146 FIX_CALL_DUMMY when push_dummy_call is available.
5147 (call_function_by_hand, push_dummy_code): Ditto.
5148
abf9b42d
AC
51492004-02-22 Andrew Cagney <cagney@redhat.com>
5150
5151 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
5152 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
5153 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
5154 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
5155 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
5156 call_dummy_location to ON_STACK.
5157
10fc94a4
MK
51582004-02-22 Mark Kettenis <kettenis@gnu.org>
5159
51433e4b
MK
5160 * x86-64-linux-tdep.c: Tweak comment.
5161 (amd64_linux_supply_gregset): Renamed from
5162 x86_64_linux_supply_gresget.
5163 (amd64_linux_fill_gregset): Renamed from
5164 x86_64_linux_fill_gregset.
5165 (fetch_core_registers): Adjust for renamed functions.
5166 (amd64_core_fns): Renamed from x86_64_core_fns.
5167 (amd64_linux_sigtramp_start): Renamed from
5168 x86_64_linux_sigtramp_start.
5169 (amd64_linux_pc_in_sigtramp): Renamed from
5170 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
5171 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
5172 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
5173 (amd64_linux_sigcontext_addr): Renamed from
5174 x86_64_linux_sigcontext_addr.
5175 (amd64_linux_sc_reg_offset): Renamed from
5176 x86_64_linux_sc_reg_offset.
5177 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5178 Adjust for renamed functions and variables.
5179 (_initialize_amd64_linux_tdep): Renamed from
5180 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5181 variables.
5182 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5183 Adjust for renamed functions.
5184
430eaf2e
MK
5185 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5186 from x86_64_linux_gregset64_reg_offset.
5187 (amd64_linux_gregset32_reg_offset): Rename from
5188 x86_64_linux_gregset64_reg_offset.
5189 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5190 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5191 (amd64_linux_dr_set_control): Renamed from
5192 x86_64_linux_dr_set_control. Adjust for renamed functions.
5193 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5194 Adjust for renamed functions.
5195 (amd64_linux_dr_reset_addr): Renamed from
5196 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5197 (amd64_linux_dr_get_status): Renamed from
5198 x86_64_linux_dr_get_status. Adjust for renamed functions.
5199 (_initialize_amd64_linux_nat): Renamed from
5200 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5201 functions.
5202 * config/i386/nm-x86-64linux.h: Update copyright year.
5203 Adjust for renamed functions.
5204
10fc94a4
MK
5205 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5206 amd64fbsd_sigtramp_start.
5207 (amd64fbsd_sigtramp_end_addr): Renamed from
5208 amd64fbsd_sigtramp_end.
5209 (amd64fbsd_init_abi): Adjust for renamed variables.
5210 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5211 variables.
5212 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5213 amd64fbsd_sigtramp_start.
5214 (amd64fbsd_sigtramp_end_addr): Renamed from
5215 amd64fbsd_sigtramp_end.
5216
343af405
AC
52172004-02-22 Andrew Cagney <cagney@redhat.com>
5218
537987fc
AC
5219 * hppa-tdep.c (hppa32_return_value): New function.
5220 (hppa64_return_value): New function.
5221 (hppa_gdbarch_init): Set return_value; keep disabled.
5222
fad850b2
AC
5223 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5224 struct-return and inferior function call methods.
5225
26d08f08
AC
5226 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5227 "frame-base.h".
5228 (struct hppa_frame_cache): Define.
5229 (hppa_frame_cache, hppa_frame_this_id): New functions.
5230 (hppa_frame_prev_register): New function.
5231 (hppa_frame_unwind, hppa_frame_base): New variables.
5232 (hppa_frame_unwind_sniffer): New function.
5233 (hppa_frame_base_address, hppa_unwind_pc): New function.
5234 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5235 sniffer, and frame base sniffer; keep disabled.
5236 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5237 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5238
e7d7bd65
AC
5239 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5240 to predicates for "seriously old code".
5241
e963316f
AC
5242 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5243 runtime if(0).
5244
56132691
AC
5245 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5246 unsigned.
5247 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 5248
343af405
AC
5249 * config/pa/tm-hppa.h: Update copyright.
5250 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5251 (deprecated_init_frame_pc_default): Delete declaration.
5252 (hppa_frame_init_saved_regs): Delete declaration.
5253 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5254 * hppa-tdep.c: Include "arch-utils.h".
5255 (hppa_gdbarch_init): Set deprecated init_frame_pc
5256 and deprecated frame_init_saved_regs.
5257 (hppa_frame_init_saved_regs): Make static.
5258
f5859b4d
MK
52592004-02-22 Mark Kettenis <kettenis@gnu.org>
5260
86f6f8e7 5261 Remove old 386BSD support.
cf7c5c23 5262 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
5263 * configure.host: Remove i[34567]86-*-bsd*.
5264 * configure.tgt: Remove i[34567]86-*-bsd*.
5265 * i386b-nat.c: Removed.
5266 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
5267 (i386b-nat.o): Remove dependencies.
5268
86f6f8e7
MK
5269 * config/i386/i386bsd.mh: Removed.
5270 * config/i386/i386bsd.mt: Removed.
5271 * config/i386/nm-i386bsd.h: Removed.
5272 * config/i386/tm-i386bsd.h: Removed.
5273 * config/i386/xm-i386bsd.h: Removed.
5274
971218cd
MK
5275 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5276
7e654c37
MK
5277 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5278 (amd64fbsd_init_abi): Set link map offsets.
5279 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5280 (amd64nbsd_init_abi): Set link map offsets.
5281 * amd64obsd-tdep.c: Include "solib-svr4.h".
5282 (amd64obsd_init_abi): Set link map offsets.
5283 * i386fbsd-tdep.c: Include "solib-svr4.h".
5284 (i386fbsd_init_abi): Set link map offsets.
5285 * i386nbsd-tdep.c: Include "solib-svr4.h".
5286 (i386nbsdelf_init_abi): Set link map offsets.
5287 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5288 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5289 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5290 solib-legacy.o and core-aout.o. Reformat.
5291 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5292 solib-svr4.o, solib-legacy.o. Reformat.
5293 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5294 * config/i386/nbsdelf.mh: Reformat.
5295 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5296 solib-svr4.o, solib-legacy.o and corelow.o.
5297 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5298 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5299 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5300 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5301 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5302 (TM_FILE): Set to tm-fbsd.h.
5303 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5304 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5305 solib-svr4.o.
5306 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5307 solib-svr4.o.
5308 (TM_FILE): Set to nm-nbsd.h.
5309 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5310 Simplify shared library support. Don't include "elf/common.h".
5311 (SVR4_SHARED_LIBS): Don't define.
5312 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5313 "solib.h".
5314 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5315 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5316 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5317 Don't include "i386/tm-i386.h". Include "solib.h".
5318 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5319 Don't include "i386/tm-i386.h".
5320 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5321 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5322 Include "i386/xm-i386.h".
5323 (HOST_LONG_DOUBLE_FORMAT): Remove.
5324
5d93ae8c
MK
5325 Fix OpenBSD/i386 sigtramp recognition.
5326 * i386-tdep.h: Update copyright year.
5327 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5328 (i386bsd_sigtramp_end): New prototypes.
5329 (i386fbsd_sigtramp_start_addr): Renamed from
5330 i386fbsd_sigtramp_start.
5331 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5332 (i386obsd_sigtramp_start_addr): Renamed from
5333 i386obsd_sigtramp_start.
5334 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5335 * i386bsd-tdep.c: Update copyright year.
5336 (i386bsd_pc_in_sigtramp): Make public.
5337 * i386fbsd-nat.c: Update copyright year.
5338 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5339 * i386fbsd-tdep.c: Update copyright year.
5340 (i386fbsd_sigtramp_start_addr): Renamed from
5341 i386fbsd_sigtramp_start.
5342 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5343 (i386fbsdaout_init_abi): Adjust for renamed variables.
5344 * i386obsd-nat.c: Update copyright year.
5345 (_initialize_i386obsd_nat): Adjust for renamed variables.
5346 * i386obsd-tdep.c: Include "target.h".
5347 (i386obsd_page_size): New variable.
5348 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5349 (i386obsd_sigtramp_end): New functions.
5350 (i386obsd_sigtramp_start_addr): Renamed from
5351 i386obsd_sigtramp_start.
5352 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5353 (i386obsd_init_abi): Adjust for renamed variables. Set
5354 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5355 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5356
84d04465
MK
5357 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5358 trampoline change in OpenBSD kernel.
5359
b053aceb
MK
5360 * amd64-nat.c: Update copyright year.
5361 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5362 architecture from REGCACHE.
5363
f5859b4d
MK
5364 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5365 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5366
e4bbbda8
MK
53672004-02-21 Mark Kettenis <kettenis@gnu.org>
5368
ba361932
MK
5369 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5370 i[34567]86-*-openbsd3.[0-3].
5371 * config/i386/obsdaout.mh: New file.
5372
d3e48264
MK
5373 * config/i386/obsd.mh (MH_FLAGS): Remove.
5374
60a6eeb6
MK
5375 Fix PR build/1549.
5376 * i386obsd-tdep.c: Update copyright years. Include
5377 "solib-svr4.h".
5378 (i386obsd_init_abi): Don't set regset_from_core_section here.
5379 (i386obsd_aout_init_abi): New function. Set
5380 regset_from_core_section here.
5381 (i386obsd_elf_init_abi): New function.
5382 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5383 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5384 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5385 (TM_FILE): Set to tm-nbsd.h.
5386
5387 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5388 solib-sunos.o.
5389
e4bbbda8
MK
5390 * solib-svr4.h: Update copyright year.
5391 (svr4_ilp32_fetch_link_map_offsets)
5392 (svr4_lp64_fetch_link_map_offsets): New prototype.
5393 * solib-svr4.c: Update copyright year.
5394 (svr4_ilp32_fetch_link_map_offsets)
5395 (svr4_lp64_fetch_link_map_offsets): New function.
5396
f6fe98ef
DJ
53972004-02-20 Daniel Jacobowitz <drow@mvista.com>
5398
5399 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5400 to the partial symbol table.
5401
589ca796
JB
54022004-02-20 J. brobecker <brobecker@gnat.com>
5403
5404 * PROBLEMS: Add description of problem documented under gdb/1560.
5405
2031c21a
MK
54062004-02-20 Mark Kettenis <kettenis@gnu.org>
5407
30b344b1
MK
5408 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5409 comments.
5410 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5411 functions.
5412 (amd64obsd_init_abi): Reorder initializations. Use
5413 amd64obsd_r_reg_offset to initialize the general-purpose register
5414 set details. Set regset_from_core_section.
5415 (_initialize_amd64obsd_tdep): Rename from
5416 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5417 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5418 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5419
2031c21a
MK
5420 * NEWS (New native configurations): Mention OpenBSD/alpha.
5421 * configure.tgt: Add alpha*-*-openbsd*.
5422 * configure.host: Add alpha*-*-openbsd*.
5423 * alphanbsd-tdep.c: Update copyright year.
5424 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5425
42471775
AC
54262004-02-20 Andrew Cagney <cagney@redhat.com>
5427
5428 Fix PR tdep/1372.
5429 * configure.tgt: Delete target "none-*-*".
5430 * configure.host: Delete host "none-*-*".
5431 * config/none/none.mh: Delete file.
5432 * config/none/none.mt: Delete file.
5433 * config/none/xm-none.h: Delete file.
5434 * config/none/tm-none.h: Delete file.
5435 * config/none/nm-none.h: Delete file.
5436
960ccd7d
FF
54372004-02-19 Fred Fish <fnf@redhat.com>
5438
5439 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5440 cache->uses_fp prior to setting it.
5441
5f883edd
FF
54422004-02-19 Fred Fish <fnf@redhat.com>
5443
5444 Fix for PR breakpoint/1558.
5445 * sh-tdep.c (IS_JSR): New macro.
5446 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5447
f98c22d5
JB
54482004-02-19 Jim Blandy <jimb@redhat.com>
5449
5450 * findvar.c (value_from_register): Doc fix.
5451
95051d27
JJ
54522004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5453
5454 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5455 type being greater than sizeof of host's LONGEST. Always use
5456 unpack_long() unless format 'f' chosen.
5457
ccefbec3
EZ
54582004-02-19 Joel Brobecker <brobecker@gnat.com>
5459
5460 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 5461
ccefbec3
EZ
5462 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5463 contains a symbol wich is the best, non-exact match for the given
5464 pc. Update comments.
5465
54662004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 5467
2ede629f
EZ
5468 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5469 macro, which was part of the now removed Mach 3 port.
5470 * utils.c (request_quit): Ditto.
5471
567ee972
MK
54722004-02-18 Mark Kettenis <kettenis@gnu.org>
5473
5474 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5475 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5476
50cca7bb
MK
54772004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5478
5479 Committed by Mark Kettenis <kettenis@gnu.org>.
5480
5481 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5482 Define.
5483
226361c4
AC
54842004-02-18 Andrew Cagney <cagney@redhat.com>
5485
5486 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5487 CONFIG_INSTALL and CONFIG_UNINSTALL.
5488 * configure: Re-generate.
5489 * interps.h (INTERP_TUI): Define.
5490 * Makefile.in: Update dependencies.
5491 (TUI): New macro.
5492 (tui-main.o): Specify dependencies.
5493 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5494 * tui/tui-main.c: New file.
5495
49cfa46f
MK
54962004-02-18 Mark Kettenis <kettenis@gnu.org>
5497
e2879ccb
MK
5498 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5499 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5500 dependencies.
5501 * configure.host: Add x86_64-*-openbsd*.
5502 * configure.tgt: Add x86_64-*-openbsd*.
5503 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5504
c43f4bec
MK
5505 * tui/tui.c: Don't include <malloc.h>.
5506
09ae75b6
MK
5507 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5508 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5509 amd64nbsd-tdep.c.
5510
49cfa46f 5511 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 5512 static. Remove extraneous whitespace.
49cfa46f
MK
5513 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5514 static.
5515
05957fdb
JB
55162004-02-17 Jim Blandy <jimb@redhat.com>
5517
5518 * findvar.c (value_from_register): Doc fix.
5519
d0f54f9d
JB
55202004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5521
5522 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 5523
8a1dac83 5524 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
5525 CORE_ADDR as type for selectors. Correct types for GNU run time
5526 message lookup function to use double indirection.
5527 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5528 * objc-lang.h (lookup_child_selector): Adapt prototype.
5529
9cbd5950
JB
5530 * s390-nat.c (SUBOFF): New macro.
5531 (supply_gregset, fill_gregset): Use it to handle debugging
5532 of 32-bit exectuables running under a 64-bit kernel.
5533 * s390-tdep.c: Include "solib-svr4.h".
5534 (s390_svr4_fetch_link_map_offset): New function.
5535 (s390x_svr_fetch_link_map_offset): Likewise.
5536 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5537 * Makefile.in (s390-tdep.o): Update dependencies.
5538
a8c99f38
JB
5539 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5540 "frame-unwind.h".
5541 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5542 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5543 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5544 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5545 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5546 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 5547 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
5548 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5549 (struct frame_extra_info): Remove.
5550 (s390_memset_extra_info): Remove.
f73b1eff
JB
5551 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5552 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5553 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
5554 (is_rse): Renamed to ...
5555 (is_rsy): ... this. Support long displacements.
5556 (is_rxe): Renamed to ...
5557 (is_rxy): ... this. Support long displacements.
5558 (compute_x_addr): Support long displacements.
5559 (struct s390_prologue_data): New data type.
5560 (s390_on_stack): Change API to use struct s390_prologue_data.
5561 (s390_store): Reimplement.
5562 (s390_load): New function.
5563 (s390_get_signal_frame_info): Remove.
5564 (s390_get_frame_info): Remove, replace by ...
5565 (s390_analyze_prolog): ... this new function.
5566 (s390_check_function_end): Remove.
5567 (s390_function_start): Remove.
5568 (s390_frameless_function_invokation): Remove.
5569 (s390_is_sigreturn): Remove.
5570 (s390_init_frame_pc_first): Remove.
5571 (s390_init_frame_extra_info): Remove.
5572 (s390_frame_init_saved_regs): Remove.
5573 (s390_frame_saved_pc_nofix): Remove.
5574 (s390_frame_saved_pc): Remove.
5575 (s390_frame_chain): Remove.
5576 (s390_fp_regnum, s390_read_fp): Remove.
5577 (s390_pop_frame_regular, s390_pop_frame): Remove.
5578 (s390_saved_pc_after_call): Remove.
5579 (s390_skip_prologue): Reimplement.
5580 (s390_in_function_epilogue_p): Support long displacements.
5581 (struct s390_unwind_cache): New data structure.
5582 (s390_frame_unwind_cache): New function.
5583 (s390_prologue_frame_unwind_cache): Likewise.
5584 (s390_backchain_frame_unwind_cache): Likewise.
5585 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5586 (s390_frame_unwind): Define.
5587 (s390_frame_sniffer): New function.
5588 (struct s390_pltstub_unwind_cache): New data structure.
5589 (s390_pltstub_frame_unwind_cache): New function.
5590 (s390_pltstub_frame_this_id): Likewise.
5591 (s390_pltstub_frame_prev_register): Likewise.
5592 (s390_pltstub_frame_unwind): Define.
5593 (s390_pltstub_frame_sniffer): New function.
5594 (struct s390_sigtramp_unwind_cache): New data structure.
5595 (s390_sigtramp_frame_unwind_cache): New function.
5596 (s390_sigtramp_frame_this_id): Likewise.
5597 (s390_sigtramp_frame_prev_register): Likewise.
5598 (s390_sigtramp_frame_unwind): Define.
5599 (s390_sigtramp_frame_sniffer): New function.
5600 (s390_frame_base_address, s390_local_base_address): New functions.
5601 (s390_frame_base): Define.
5602 (s390_unwind_pc, s390_unwind_sp): New function.
5603 (s390_push_dummy_call): Use new frame base location.
5604 (s390_unwind_dummy_id): Likewise.
5605 (s390_gdbarch_init): Remove calls to:
5606 set_gdbarch_frameless_function_invocation,
5607 set_gdbarch_deprecated_init_frame_pc,
5608 set_gdbarch_deprecated_frame_chain,
5609 set_gdbarch_deprecated_frame_init_saved_regs,
5610 set_gdbarch_deprecated_pop_frame,
5611 set_gdbarch_deprecated_init_extra_frame_info,
5612 set_gdbarch_deprecated_init_frame_pc_first,
5613 set_gdbarch_deprecated_target_read_fp,
5614 set_gdbarch_deprecated_frame_saved_pc,
5615 set_gdbarch_deprecated_saved_pc_after_call,
5616 set_gdbarch_deprecated_fp_regnum.
5617 Add calls to:
5618 set_gdbarch_in_solib_call_trampoline,
5619 frame_unwind_append_sniffer,
5620 frame_base_set_default,
5621 set_gdbarch_unwind_pc,
5622 set_gdbarch_unwind_sp.
5623 * Makefile.in (s390-tdep.o): Update dependencies.
5624
b0cf273e
JB
5625 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5626 (S390_STACK_FRAME_OVERHEAD): Remove.
5627 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5628 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5629 (s390_promote_integer_argument): Remove.
5630 (s390_cannot_extract_struct_value_address): Remove.
5631 (s390_use_struct_convention, s390_store_struct_return): Remove.
5632 (s390_extract_return_value, s390_store_return_value): Remove.
5633 (s390_return_value_convention, s390_return_value): New functions.
5634 (is_float_singleton): Handle typedefs.
8a1dac83 5635 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
5636 Remove, replace by ...
5637 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5638 s390_function_arg_integer): ... these new functions.
5639 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5640 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5641 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5642 Fill in tdep->abi.
5643 Remove calls to:
5644 set_gdbarch_deprecated_store_struct_return,
5645 set_gdbarch_deprecated_extract_return_value,
5646 set_gdbarch_deprecated_store_return_value,
5647 set_gdbarch_use_struct_convention,
5648 set_gdbarch_extract_struct_value_address,
5649 set_gdbarch_deprecated_pc_in_call_dummy,
5650 set_gdbarch_deprecated_push_arguments,
5651 set_gdbarch_deprecated_save_dummy_frame_tos,
5652 set_gdbarch_deprecated_push_return_address,
5653 set_gdbarch_deprecated_sizeof_call_dummy_words,
5654 set_gdbarch_deprecated_call_dummy_words,
5655 set_gdbarch_deprecated_dummy_write_sp.
5656 Add calls to:
5657 set_gdbarch_push_dummy_call,
5658 set_gdbarch_unwind_dummy_id,
5659 set_gdbarch_return_value.
8a1dac83 5660
e1457d83
JB
5661 * config/s390/nm-linux.h: Update comments.
5662 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5663 (STOPPED_BY_WATCHPOINT): Redefine.
5664 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5665 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5666 (s390_stopped_by_watchpoint): Likewise.
5667 (watch_area_cnt): Remove.
5668 * s390-nat.c: Update comments.
5669 (watch_area): Remove typedef.
5670 Global replace watch_area by struct watch_area.
5671 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 5672 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
5673 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5674 (s390_fix_watch_points): Remove pid argument,
5675 use s390_inferior_tid. Recompute area spanned by watchpoints.
5676 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5677 argument. Reimplement.
5678
d0f54f9d
JB
5679 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5680 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5681 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 5682 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
5683 core-regset.o.
5684 * config/s390/s390x.mt: Remove.
5685 * config/s390/tm-s390.h: Remove.
5686 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5687 (TARGET_ELF64): Remove.
5688 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5689 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5690 s390*-*-* case; always set gdb_target to s390.
5691 * regformats/reg-s390.dat: Remove control registers.
5692 * regformats/reg-s390x.dat: Likewise.
5693 * s390-tdep.h: New file.
8a1dac83 5694 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
5695 Include "inferior.h" and "s390-tdep.h".
5696 Remove private definition of offsetof.
5697 (s390_register_u_addr): Remove.
5698 (regmap_gregset, regmap_fpregset): Define.
5699 (supply_gregset, fill_gregset): Reimplement.
5700 (supply_fpregset, fill_fpregset): Likewise.
5701 (s390_inferior_tid): New function.
5702 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5703 (fetch_inferior_registers, store_inferior_registers): Likewise.
5704 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5705 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5706 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5707 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5708 (struct gdbarch_tdep): Define.
5709 (struct s390_register_info): Define.
5710 (s390_register_info): New variable.
5711 (s390_register_name): Reimplement.
5712 (s390_register_type): New function.
5713 (s390_register_raw_size, s390x_register_raw_size): Remove.
5714 (s390_cannot_fetch_register): Remove.
5715 (s390_register_byte): Remove.
5716 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5717 (s390_dwarf_regmap): New variable.
5718 (s390_dwarf_reg_to_regnum): New function.
5719 (s390_stab_reg_to_regnum): Remove.
5720 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5721 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5722 (s390_convert_register_p): Likewise.
5723 (s390_register_to_value, s390_value_to_register): Likewise.
5724 (s390_register_reggroup_p): Likewise.
5725 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5726 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5727 (s390_supply_regset, s390_regset_from_core_section): New functions.
5728 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5729 (S390_FPR_SIZE): Likewise.
5730 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5731 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5732 (S390_NUM_GPRS): Move here from tm-s390.h.
5733 (S390_NUM_FPRS): Likewise.
5734 (s390_in_function_epilogue_p): New function.
5735 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5736 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5737 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5738 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5739 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5740 Remove calls to:
5741 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
5742 set_gdbarch_deprecated_max_register_virtual_size,
5743 set_gdbarch_deprecated_register_byte,
d0f54f9d 5744 set_gdbarch_cannot_fetch_register,
8a1dac83 5745 set_gdbarch_cannot_store_register,
d0f54f9d
JB
5746 set_gdbarch_deprecated_register_size,
5747 set_gdbarch_deprecated_register_raw_size,
5748 set_gdbarch_deprecated_register_virtual_size,
5749 set_gdbarch_deprecated_register_virtual_type,
5750 set_gdbarch_deprecated_register_bytes.
5751 Add calls to:
5752 set_gdbarch_num_pseudo_regs,
5753 set_gdbarch_register_type,
5754 set_gdbarch_convert_register_p,
5755 set_gdbarch_register_to_value,
5756 set_gdbarch_value_to_register,
5757 set_gdbarch_register_reggroup_p,
5758 set_gdbarch_regset_from_core_section,
5759 set_gdbarch_pseudo_register_read,
5760 set_gdbarch_pseudo_register_write,
5761 set_gdbarch_in_function_epilogue_p.
5762 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5763 (s390_tdep_h): New variable.
5764
8cfe231d
JB
57652004-02-17 Jim Blandy <jimb@redhat.com>
5766
4589a601
JB
5767 * findvar.c (value_from_register): If the type has no length, just
5768 return an acceptable value --- don't report an internal error.
5769
8cfe231d
JB
5770 * stabsread.c (read_type): If we find any type numbers that are
5771 forward references, complain if the references aren't resolved by
5772 the time we're finished reading.
5773 (cleanup_undefined_types): Make error message more appropriate for
5774 a complaint.
5775
5bf0017e
EZ
57762004-02-17 Elena Zannoni <ezannoni@redhat.com>
5777
9d62932d
EZ
5778 * Makefile.in (defs_h): Remove dependency on progress_h.
5779 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5780 progress.h.
5781 * main.c (captured_main): Delete use of START_PROGRESS and
5782 END_PROGRESS.
5783
57842004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 5785
5bf0017e
EZ
5786 * objfiles.c (terminate_minimal_symbol_table): Add back
5787 initialization of MSYMBOL_TYPE.
5788
9fc9f5e2
AC
57892004-02-17 David Mosberger <davidm@hpl.hp.com>
5790
5791 Committed by Andrew Cagney.
5792 * Makefile.in (ia64_tdep_h): New macro.
5793 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5794 (ia64-tdep.o): Likewise.
5795 * ia64-tdep.h: New file.
5796 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5797 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5798 (ia64_aix_sigcontext_register_address): Likewise.
5799 (ia64_linux_getunwind_table): Delete declaration.
5800 * ia64-linux-tdep.c: Likewise.
5801
76cd2bd9
CV
58022004-02-17 Corinna Vinschen <vinschen@redhat.com>
5803
5804 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5805 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5806 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5807
634aa483
AC
58082004-02-17 Andrew Cagney <cagney@redhat.com>
5809
5810 * symtab.c (skip_prologue_using_sal): New function.
5811 * symtab.h (skip_prologue_using_sal): Declare.
5812 * frv-tdep.c: Include "symtab.h".
5813 (skip_prologue_using_sal): Delete function.
5814 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5815 * rs6000-tdep.c (refine_prologue_limit): Mention
5816 skip_prologue_using_sal.
5817 * ia64-tdep.c (refine_prologue_limit): Ditto.
5818 * Makefile.in: Update dependencies.
5819
58202004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 5821
39ce7b3f
AC
5822 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5823 START_INFERIOR_TRAPS_EXPECTED.
5824 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5825 START_INFERIOR_TRAPS_EXPECTED.
5826 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5827 Delete macro.
5828 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5829 macro, moved to "nm-osf.h". Update copyright.
5830 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5831 update copyright.
5832
19772a2c
AC
5833 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5834 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5835 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5836 frameless_look_for_prologue.
5837 * frame.h (legacy_frameless_look_for_prologue): Rename
5838 frameless_look_for_prologue.
5839 * gdbarch.h, gdbarch.c: Re-generate.
5840 * sh64-tdep.c (sh64_gdbarch_init): Update.
5841 * sh-tdep.c (sh_gdbarch_init): Update.
5842 * s390-tdep.c (s390_gdbarch_init): Update.
5843 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5844 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5845 * m68k-tdep.c (m68k_gdbarch_init): Update.
5846 (delta68_frame_args_address): Update.
5847 * m32r-tdep.c (m32r_gdbarch_init): Update.
5848 * hppa-tdep.c (hppa_gdbarch_init): Update.
5849 * h8300-tdep.c (h8300_gdbarch_init): Update.
5850 * frv-tdep.c (frv_gdbarch_init): Update.
5851 (frv_frameless_function_invocation): Update.
5852 * cris-tdep.c (cris_gdbarch_init): Update.
5853 (cris_frameless_function_invocation): Update.
5854 * avr-tdep.c (avr_gdbarch_init): Update.
5855 * arm-tdep.c (arm_gdbarch_init): Update.
5856 * stack.c (frame_info): Update, call predicate.
5857 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5858 * frame.c (legacy_get_prev_frame): Update, call predicate..
5859 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5860 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5861 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5862 invocation.
5863 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5864 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5865 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
5866
5867 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5868 function.
5869
7dcaac91
DJ
58702004-02-16 Daniel Jacobowitz <drow@mvista.com>
5871
5872 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5873 initializations.
5874
88289b6e
AC
58752004-02-16 Andrew Cagney <cagney@redhat.com>
5876
5877 * tui/tui-windata.c: Include "gdb_string.h".
5878 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5879 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5880 * Makefile.in: Update dependencies.
5881
9f976b41
DJ
58822004-02-16 Daniel Jacobowitz <drow@mvista.com>
5883
5884 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5885 * infrun.c: Include "gdb_assert.h".
5886 (singlestep_ptid, saved_singlestep_ptid)
5887 (stepping_past_singlestep_breakpoint): New variables.
5888 (resume): Set singlestep_ptid. Check for singlestep thread
5889 hop.
5890 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5891 (handle_inferior_event): Handle singlestep thread hop.
5892
c324d747
AC
58932004-02-16 Andrew Cagney <cagney@redhat.com>
5894
f090b9b1
AC
5895 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5896 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5897 (dwarf2_frame_init_reg): Ditto.
5898
fd33e6cb
AC
5899 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5900 suggested by Joshua Neuheisel
5901
c324d747
AC
5902 * configure.in: Always check for curses, including pdcurses.
5903 Warn, instead of error, when no curses are found. Enable TUI when
5904 curses is available.
5905 * configure: Re-generate.
5906
b66ba949
CV
59072004-02-16 Corinna Vinschen <vinschen@redhat.com>
5908
5909 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5910 sh_sh4_register_convert_to_virtual.
5911 (sh_register_convert_to_raw): Rename from
5912 sh_sh4_register_convert_to_raw.
5913 (sh_pseudo_register_read): Accomodate above name change.
5914 (sh_pseudo_register_write): Ditto.
5915
b58cbbf2
CV
59162004-02-16 Corinna Vinschen <vinschen@redhat.com>
5917
5918 * sh-tdep.c (sh_generic_register_name): Remove.
5919 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5920
5929a910
AC
59212004-02-15 Andrew Cagney <cagney@redhat.com>
5922
4566dfcf
AC
5923 * configure.in (build_warnings): Add -Wunused-function.
5924 * configure: Re-generate.
5925
db11ed55
AC
5926 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5927 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5928
46ac7a5d
AC
5929 * procfs.c (procfs_init_inferior): Assume that
5930 START_INFERIOR_TRAPS_EXPECTED is defined.
5931 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5932 * config/ns32k/tm-nbsd.h: Delete file,
5933 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5934
ba801595
AC
5935 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5936 * config/vax/tm-vax.h: Delete file.
5937
5929a910
AC
5938 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5939 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5940 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5941 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5942 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5943 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5944 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5945
8f22cb90
MK
59462004-02-15 Mark Kettenis <kettenis@gnu.org>
5947
5948 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5949 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5950 (struct dwarf2_frame_ops): New.
5951 (dwarf2_frame_default_init_reg): New function, based on
5952 dwarf2_frame_init_reg.
5953 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5954 (dwarf2_frame_init_reg): Call architecture-specific function.
5955 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5956 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5957 instead of dwarf2_frame_data.
5958 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5959 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5960
8132723e
AC
59612004-02-15 Andrew Cagney <cagney@redhat.com>
5962
046a4708
AC
5963 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5964 register_gdbarch_swap.
5965 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5966 * f-lang.c (_initialize_f_language): Update, use
5967 DEPRECATED_REGISTER_GDBARCH_SWAP.
5968 * remote.c (_initialize_remote): Ditto.
5969 * regcache.c (_initialize_regcache): Ditto.
5970 * parse.c (_initialize_parse): Ditto.
5971 * infrun.c (_initialize_infrun): Ditto.
5972 * mi/mi-main.c (_initialize_mi_main): Ditto.
5973 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 5974
549c1eea
AC
5975 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5976 poking .cacheable directly.
5977 * symfile.c (symfile_bfd_open): Ditto.
5978
0c0b39de
AC
5979 * Makefile.in: Update all dependencies.
5980
8132723e
AC
5981 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5982 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5983 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5984 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5985 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 5986
b9d26eb9
AC
59872004-02-14 Andrew Cagney <cagney@redhat.com>
5988
8e1f669a
AC
5989 * arch-utils.c (legacy_convert_register_p): Check
5990 DEPRECATED_REGISTER_CONVERTIBLE_P.
5991 * findvar.c (value_of_register): Ditto.
5992
cd0bfa36
AC
5993 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5994 * gdbarch.h, gdbarch.c: Re-generate.
5995 * arch-utils.c (deprecated_register_convertible_not): Delete.
5996 * arch-utils.h (deprecated_register_convertible_not): Delete.
5997 * mi/mi-main.c (get_register): Update. Update copyright.
5998 * infcmd.c (default_print_registers_info): Update.
5999
b9d26eb9
AC
6000 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6001 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
6002 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 6003 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
6004 * frame.c (deprecated_get_next_frame_hack): Delete function.
6005 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
6006 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6007 Update.
6008 * infcall.c (call_function_by_hand): Update.
6009
9ab9195f
EZ
60102004-02-14 Elena Zannoni <ezannoni@redhat.com>
6011
6012 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 6013 from here...
9ab9195f
EZ
6014 * objfiles.c (init_entry_point_info, entry_point_address):..to
6015 here.
6016 * symfile.h (init_entry_point_info, entry_point_address): Remove
6017 prototypes.
6018 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 6019 prototypes.
9ab9195f
EZ
6020 * cris-tdep.c: Remove include of symfile.h. Add include of
6021 objfiles.h.
6022 * infcall.c: Ditto.
6023 * mcore-tdep.c: Ditto.
6024 * mn10300-tdep.c: Ditto.
6025 * sh64-tdep.c: Ditto.
6026 * v850-tdep.c: Ditto.
6027 * arm-tdep.c: Remove include of symfile.h.
6028 * blockframe.c: Ditto.
6029 * coffread.c: Ditto.
6030 * dbxread.c: Ditto.
6031 * dwarf2read.c: Ditto.
6032 * dwarfread.c: Ditto.
8a1dac83 6033 * frv-tdep.c: Ditto.
9ab9195f
EZ
6034 * ia64-tdep.c: Ditto.
6035 * mdebugread.c: Ditto.
6036 * mipsread.c: Ditto.
8a1dac83 6037 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
6038 * s390-tdep.c: Ditto.
6039 * sh-tdep.c: Ditto.
8a1dac83 6040 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
6041 * gdbarch.sh: Remove include of symfile.h.
6042 * gdbarch.c: Regenerate.
6043 * solib-irix.c (enable_break): Use entry_point_address().
6044 Add comment about include file.
6045 * xcoffread.c: Add comment about include file.
8a1dac83
RM
6046 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
6047 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
6048 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
6049 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
6050 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
6051
c4c5b7ba
AC
60522004-02-13 Andrew Cagney <cagney@redhat.com>
6053
6054 * corelow.c (core_xfer_partial): Use "struct bfd_section".
6055 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
6056 copyright.
6057 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
6058
3e7879de
FF
60592004-02-12 Fred Fish <fnf@redhat.com>
6060
6061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
6062 set_gdbarch_store_return_value.
6063
6a7760b6
AC
60642004-02-12 Andrew Cagney <cagney@redhat.com>
6065
6066 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
6067 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
6068 (interrupt_query): Ditto.
6069 (ofunc): Delete unused variable.
6070 * cris-tdep.c (cris_abi): Delete unused function.
6071 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
6072 (cris_get_wide_opcode, cris_get_short_size): Ditto.
6073 (cris_get_asr_quick_shift_steps): Ditto.
6074 (cris_skip_prologue_frameless_p): Ditto.
6075 * arm-tdep.c (arm_push_return_address): Delete unused function.
6076 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
6077 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
6078 * s390-tdep.c (s390_function_start): Delete unused function.
6079
31687c3c
AC
60802004-02-12 Andrew Cagney <cagney@redhat.com>
6081
6082 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
6083 gdbarch.h, gdbarch.c: Re-generate.
6084 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
6085 to generic_prologue_frameless_p.
6086 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
6087 * arch-utils.c (generic_prologue_frameless_p): Delete function.
6088
6de918a6
DJ
60892004-02-11 Daniel Jacobowitz <drow@mvista.com>
6090
6091 * mips-linux-tdep.c: Include "frame.h".
6092 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
6093 (mips_linux_skip_resolver): New functions.
6094 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
6095 and set_gdbarch_in_solib_call_trampoline.
6096 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
6097 to after set_gdbarch_in_solib_return_trampoline. Only set the
6098 solib hooks to mips16 functions if the OS ABI is unknown.
6099 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
6100 including "config/tm-linux.h".
6101 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
6102 * Makefile.in (mips-linux-tdep.o): Update.
6103
87b3ede8
DC
61042004-02-11 David Carlton <carlton@kealia.com>
6105
6106 * linespec.c (decode_compound): Only look for a class symbol when
6107 considering all but the rightmost component.
6108
5979bc46
AC
61092004-02-11 Andrew Cagney <cagney@redhat.com>
6110
6111 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
6112 abi code are are separatly grouped.
6113
5867a2fb
AC
61142004-02-11 Andrew Cagney <cagney@redhat.com>
6115
6116 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
6117 * gdbarch.h, gdbarch.c: Re-generate.
6118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6119 * v850-tdep.c (v850_gdbarch_init): Update.
6120 * sh64-tdep.c (sh64_gdbarch_init): Update.
6121 * sh-tdep.c (sh_gdbarch_init): Update.
6122 * s390-tdep.c (s390_gdbarch_init): Update.
6123 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6124 * mips-tdep.c (mips_gdbarch_init): Update.
6125 * mcore-tdep.c (mcore_gdbarch_init): Update.
6126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6127 * m32r-tdep.c (m32r_gdbarch_init): Update.
6128 * ia64-tdep.c (ia64_gdbarch_init): Update.
6129 * hppa-tdep.c (hppa_gdbarch_init): Update.
6130 * h8300-tdep.c (h8300_gdbarch_init): Update.
6131 * frv-tdep.c (frv_gdbarch_init): Update.
6132 * d10v-tdep.c (d10v_gdbarch_init): Update.
6133 * cris-tdep.c (cris_gdbarch_init): Update.
6134 * avr-tdep.c (avr_gdbarch_init): Update.
6135 * arm-tdep.c (arm_gdbarch_init): Update.
6136 * alpha-tdep.c (alpha_gdbarch_init): Update.
6137
026a72f8
CV
61382004-02-11 Corinna Vinschen <vinschen@redhat.com>
6139
6140 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
6141 comma.
6142 (sh_sh4al_dsp_register_name): Ditto.
6143
3903d437
AC
61442004-02-10 Andrew Cagney <cagney@redhat.com>
6145
6146 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
6147 (mips_init_frame_pc_first): Delete function.
6148 (mips_frame_saved_pc): Delete function.
6149 (mips_frame_chain): Delete function.
6150 (mips_init_extra_frame_info): Delete function.
6151 (mips_xfer_register): Delete unused variable "reg".
6152 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
6153 (mips_n32n64_return_value): Delete unused variable "reg".
6154 (mips_n32n64_return_value): Delete unused variable "pos".
6155 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
6156 (mips_o32_return_value): Delete unused variable "pos".
6157 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
6158 (mips_print_fp_register): Delete unused variable "namelen"
6159 (mips_print_fp_register): Delete unused variable "flt2"
6160 (get_frame_pointer): Delete function.
6161 (cached_proc_desc): Delete static variable.
6162 (mips_pop_frame): Delete function.
6163 (mips_find_saved_regs): Delete function.
6164 (mips_get_saved_register): Delete function.
6165 (mips_saved_pc_after_call): Delete function.
6166 (SIGFRAME_BASE): Delete macro.
6167 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
6168 (SIGFRAME_PC_OFF): Delete macro.
6169 (SIGFRAME_REGSAVE_OFF): Delete macro.
6170 (mips_dump_tdep): Do not print deleted macro definitions.
6171
b9fb98bd
AC
61722004-02-10 Andrew Cagney <cagney@redhat.com>
6173
6174 * Makefile.in (SFILES): Remove explictly listed tui files.
6175 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6176
78ced177 61772004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 6178
78ced177
JJ
6179 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6180 to use paddr functions to format ia64 addresses and long values.
6181 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6182 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6183 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6184 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6185 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6186
6a83354a
AC
61872004-02-10 Andrew Cagney <cagney@redhat.com>
6188
6189 * defs.h: Do not include "tui.h".
6190 * gdb_curses.h: New file.
6191 * tui/tui-hooks.h: New file.
6192 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6193 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6194 (tui_initialize_io): Delete declaration.
6195 (tui_initialize_readline: Delete redundant declaration.
6196 (struct tui_point): Delete definition.
6197 * tui/tui-data.h (struct tui_point): Define.
6198 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6199 * utils.c: Include "tui/tui.h".
6200 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6201 * printcmd.c [TUI]: Include "tui/tui.h".
6202 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6203 * tui/tui-command.c: Include "gdb_curses.h".
6204 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6205 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6206 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6207 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6208 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6209 * Makefile.in: Update all dependencies.
6210 (tui_hooks_h, gdb_curses_h): Define.
6211 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6212
997470ef
EZ
62132004-02-10 Elena Zannoni <ezannoni@redhat.com>
6214
6215 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6216 auxf2. Add comments about some other rarely used fields.
6217
4ff2cc4d
AC
62182004-02-10 Andrew Cagney <cagney@redhat.com>
6219
6220 * Makefile.in (init.c): Fix script removing duplicates. Problem
6221 reported by Peter Schauer.
6222
1ab21617
EZ
62232004-02-09 Elena Zannoni <ezannoni@redhat.com>
6224
6225 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6226 obstack_specify_allocation.
6227 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 6228 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
6229 (allocate_rt_common_objfile): Ditto.
6230 * symfile.c (reread_symbols): Ditto.
6231 * gdb_obstack.h: Add comment.
6232
17763fd9
EZ
62332004-02-09 Elena Zannoni <ezannoni@redhat.com>
6234
6235 * linespec.c (decode_line_1, locate_first_half)
6236 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6237 commented out code.
6238
ec5cdd75
DJ
62392004-02-09 Daniel Jacobowitz <drow@mvista.com>
6240
6241 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6242 obstack_free.
6243
43b54b88
AC
62442004-02-09 Andrew Cagney <cagney@redhat.com>
6245
6246 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6247 fails, try find_pc_section. Fix PR c++/1267.
6248 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6249 instead of find_pc_mapped_section.
6250 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6251 not default to the section containing PC. Fix PR symtab/1519.
6252
edfae063
AC
62532004-02-09 Andrew Cagney <cagney@redhat.com>
6254
6255 * Makefile.in (mips-tdep.o): Update dependencies.
6256 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6257 "trad-frame.h".
6258 (mips_unwind_pc): Return the pseudo PC register.
6259 (mips_unwind_dummy_id): New function.
6260 (mips16_fetch_instruction): New function.
6261 (mips32_fetch_instruction): New function.
6262 (struct mips_frame_cache): Define.
6263 (mips_mdebug_frame_cache): New function.
6264 (mips_mdebug_frame_this_id): New function.
6265 (mips_mdebug_frame_prev_register): New function.
6266 (mips_mdebug_frame_unwind): Define.
6267 (mips_mdebug_frame_sniffer): New function.
6268 (mips_mdebug_frame_base_address): New function.
6269 (mips_mdebug_frame_base): Define.
6270 (mips_mdebug_frame_base_sniffer): New function.
6271 (mips_gdbarch_init): Append unwind and base sniffers. Set
6272 unwind_dummy_id.
6273
defc864c
AC
62742004-02-08 Andrew Cagney <cagney@redhat.com>
6275
6764ddad
AC
6276 * frame.c: Print both the register number and name.
6277
defc864c
AC
6278 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6279 and a sed into a single sed. Make .c and .o patterns more robust.
6280 (OBS): Delete.
6281 (INIT_FILES): Replace OBS with COMMON_OBS.
6282 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6283
645d6d10
MK
62842004-02-08 Mark Kettenis <kettenis@gnu.org>
6285
6286 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6287 the PT_WCOOKIE request.
6288
23e3c3fc
AC
62892004-02-08 Andrew Cagney <cagney@redhat.com>
6290
58dfe9ff
AC
6291 * mips-tdep.c (mips_unwind_pc): New function.
6292 (mips_gdbarch_init): Set mips_unwind_pc.
6293
1152e35e
AC
6294 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6295 (get_frame_id): Allow the UNKNOWN_FRAME.
6296 (frame_register_unwind, get_frame_type): Ditto.
6297
31b75dbf
AC
6298 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6299 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6300 unwind_dummy_id indicates a legacy frame.
6301
3483b318
AC
6302 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6303 * configure: Re-generate.
6304
23e3c3fc
AC
6305 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6306 methods.
6307
33f8ca73
AC
63082004-02-08 Andrew Cagney <cagney@redhat.com>
6309
6310 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6311 makefile macro.
6312 * configure: Re-generate.
6313 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6314 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6315 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6316 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6317 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6318 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6319 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6320 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6321 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6322 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6323
6ba8e26f 63242004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 6325
20d286a5
AC
6326 * Makefile.in: Update all dependencies.
6327
d836ee13
AC
6328 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6329 * configure: Re-generate.
6330 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6331 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6332 (COMMON_OBS): Add "main.o" and "annotate.o".
6333 (ANNOTATE_OBS): Delete.
6334 (OBS): Remove ANNOTATE_OBS.
6335 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6336 CONFIG_INITS.
6337 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6338 against CONFIG_OBS and "main.o".
6339 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6340 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6341
d02c80cd
AC
6342 * tui/tui-command.c: Include "gdb_string.h", delete register
6343 attribute, use ISO-C function signatures.
6344 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6345 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6346 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6347 * tui/tui.c: Ditto.
6ba8e26f
AC
6348
6349 * tui/tui-command.c: Change variable and function names to lower
6350 case.
6351 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6352 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6353 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6354 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6355 * tui/tui-winsource.c, tui/tui.c: Ditto.
6356
4a146b47
EZ
63572004-02-07 Elena Zannoni <ezannoni@redhat.com>
6358
6359 * buildsym.c (free_pending_blocks, finish_block)
6360 (record_pending_block, make_blockvector, end_symtab): Replace
6361 symbol_obstack with objfile_obstack.
8a1dac83 6362 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 6363 (coff_read_enum_type): Ditto.
8a1dac83 6364 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 6365 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 6366 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
6367 (dwarf2_symbol_mark_computed): Ditto.
6368 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6369 * elfread.c (elf_symtab_read): Ditto.
6370 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6371 (hpread_read_enum_type, hpread_read_function_type)
6372 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6373 Ditto.
8a1dac83 6374 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 6375 (java_link_class_type): Ditto.
8a1dac83 6376 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
6377 (new_symbol): Ditto.
6378 * minsyms.c (install_minimal_symbols): Ditto.
6379 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6380 (terminate_minimal_symbol_table): Replace symbol_obstack with
6381 objfile_obstack.
6382 (free_objfile): Remove freeing of symbol_obstack.
6383 * objfiles.h: Remove symbol_obstack field.
6384 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6385 objfile_obstack.
6386 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6387 symbol_obstack.
6388 (solib_add_common_symbols): Replace symbol_obstack with
6389 objfile_obstack.
6390 * somsolib.c (som_solib_add): Ditto.
6391 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6392 (common_block_start, common_block_end): Ditto.
6393 * symfile.c (reread_symbols): Remove freeing and init of
6394 symbol_obstack.
6395 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6396 * symfile.h: Update comment.
6397 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6398 stats printing.
6399 * symtab.c (symbol_set_names): Replace symbol_obstack with
6400 objfile_obstack.
6401 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6402 Update comments.
6403 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6404 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6405 objfile_obstack.
6406
6d012f14
AC
64072004-02-07 Andrew Cagney <cagney@redhat.com>
6408
6409 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6410 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6411 fields and variables.
6412 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6413 (m_beInvisible): Delete macro.
6414 * tui/tui-data.h: Fix case case fields and variables.
6415 (m_genWinPtrIsNull): Delete macro.
6416 (tui_win_list): Rename winList.
6417 (TUI_SRC_WIN): Rename srcWin.
6418 (TUI_DISASM_WIN): Rename disassemWin.
6419 (TUI_DATA_WIN): Rename dataWin.
6420 (TUI_CMD_WIN): Rename cmdWin.
6421 (m_genWinPtrNotNull): Delete macro.
6422 (m_winPtrIsNull): Delete macro.
6423 (m_winPtrNotNull): Delete macro.
6424 (tui_win_is_source_type): Replace m_winIsSourceType
6425 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6426 (tui_win_has_locator): Replace m_hasLocator.
6427 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6428 m_setWinHighlightOff.
6429 * tui/tui-data.c: Update references.
6430 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6431 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6432 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6433 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6434 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6435 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6436 * tui/tui-winsource.c, tui/tui.c: Ditto.
6437
7d34766b
MK
64382004-02-07 Mark Kettenis <kettenis@gnu.org>
6439
1c800673
MK
6440 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6441 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6442 StackGhost.
6443
7d34766b
MK
6444 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6445 variable `i6' to `i7'.
6446 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6447
22940a24
AC
64482004-02-07 Andrew Cagney <cagney@redhat.com>
6449
6450 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6451 (TuiPoint, TuiPointPtr): Ditto.
6452 (TuiStatus, TuiStatusPtr): Ditto.
6453 (TuiWinType, TuiWinTypePtr): Ditto.
6454 (struct tui_point): Rename _TuiPoint.
6455 (tui_get_low_disassembly_address): Rename
6456 tuiGetLowDisassemblyAddress.
6457 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6458 (tuiFree): Delete declaration.
6459 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6460 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6461 * tui/tui.c (tuiFree): Delete function.
6462 * cli/cli-cmds.c (disassemble_command): Update references.
6463 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6464 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6465 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6466 * tui/tui-winsource.c: Ditto.
6467
8b92e4d5
EZ
64682004-02-07 Elena Zannoni <ezannoni@redhat.com>
6469
6470 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6471 coffstab_build_psymtabs, elfstab_build_psymtabs)
6472 (stabsect_build_psymtabs): Replace psymbol_obstack with
6473 objfile_obstack.
6474 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6475 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6476 Ditto.
6477 * dwarfread.c (scan_compilation_units): Ditto.
6478 * elfread.c (elfstab_offset_sections): Ditto.
6479 * hppa-tdep.c (read_unwind_info): Ditto.
6480 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6481 (hpread_end_psymtab): Ditto.
6482 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6483 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6484 Ditto.
6485 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 6486 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
6487 (build_objfile_section_table): Ditto.
6488 (allocate_objfile): Remove init of psymbol_obstack.
6489 (free_objfile): Remove freeing of psymbol_obstack.
6490 * objfiles.h (struct objfile): Remove field
6491 psymbol_obstack. Update comments.
6492 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6493 psymbol_obstack with objfile_obstack.
6494 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6495 psymbol_obstack.
6496 * somread.c (som_symfile_offsets, init_import_symbols)
6497 (init_export_symbols): Replace psymbol_obstack with
6498 objfile_obstack.
6499 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6500 * symfile.c (default_symfile_offsets, syms_from_objfile)
6501 (reread_symbols): Remove freeing and init of psymbol_obstack.
6502 (cashier_psymtab): Update comment.
6503 * symmisc.c (print_objfile_statistics): Don't report stats for
6504 psymbol obstack.
6505 * symtab.h (struct general_symbol_info, struct partial_symtab):
6506 Update comments.
6507 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6508 (xcoff_symfile_offsets): Replace psymbol_obstack with
6509 objfile_obstack.
6510
b99607ea
EZ
65112004-02-07 Elena Zannoni <ezannoni@redhat.com>
6512
6513 * objfiles.h (struct objfile): Add objfile_obstack field.
6514 Remove type_obstack field.
6515
6516 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6517 read_structure_scope read_enumeration, new_symbol): Replace
6518 type_obstack with objfile_obstack.
6519 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 6520 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
6521 (lookup_fundamental_type): Ditto.
6522 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
6523 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6524 (hpread_read_doc_function_type, hpread_read_struct_type)
6525 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 6526 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 6527 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
6528 (java_link_class_type): Ditto.
6529 * mdebugread.c (parse_type): Ditto.
6530 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6531 * solib-sunos.c (solib_add_common_symbols): Ditto.
6532 * stabsread.c (define_symbol, read_type, read_member_functions,
6533 read_cpp_abbrev, read_one_struct_field): Ditto.
6534 * symfile.c (reread_symbols): Ditto.
6535 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 6536
2a8854a7
AC
65372004-02-07 Andrew Cagney <cagney@redhat.com>
6538
6539 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6540 (tui_exec_info_content): Rename TuiExecInfoContent.
6541 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6542 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6543 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6544 (TuiList, TuiListPtr): Ditto.
6545 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6546 (TuiDataType, TuiDataTypePtr): Ditto.
6547 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6548 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6549 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6550 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6551 (TuiDataElement, TuiDataElementPtr): Ditto.
6552 (TuiWinElement, TuiWinElementPtr): Ditto.
6553 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6554 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6555 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6556 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6557 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6558 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6559 * tui/tui-command.c, tui/tui-data.c: Update references.
6560 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6561 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6562 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6563 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 6564
05cbe71a
MK
65652004-02-07 Mark Kettenis <kettenis@gnu.org>
6566
6567 * dwarf2-frame.h: Update copyright.
6568 (enum dwarf2_frame_reg_rule): New.
6569 (struct dwarf2_frame_state_reg): New.
6570 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6571 * dwarf2-frame.c: Update copyright.
6572 (enum dwarf2_reg_rule): Remove.
6573 (struct dwarf2_frame_state): Remove defenition of `struct
6574 dwarf2_frame_state_reg'.
6575 (read_reg): Call get_frame_arch to get the architecture instead of
6576 using CURRENT_GDBARCH.
6577 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6578 DWARF2_FRAME_.
6579 (dwarf2_frame_init_reg): New function.
6580 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6581 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6582 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6583 tags with DWARF2_FRAME_.
6584 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6585 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6586 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6587
ec7d9e56
AC
65882004-02-06 Andrew Cagney <cagney@redhat.com>
6589
dd1abb8c
AC
6590 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6591 (enum tui_data_type): Rename _TuiDataType.
6592 (struct tui_layout_def): Rename _TuiLayoutDef.
6593 (struct tui_source_element): Rename _TuiSourceElement.
6594 (struct tui_data_element): Rename _TuiDataElement.
6595 (struct tui_command_element): Rename _TuiCommandElement.
6596 (struct tui_locator_element): Rename _TuiLocatorElement.
6597 (union tui_which_element): Define.
6598 (struct tui_win_element): Rename _TuiWinElement.
6599 (struct tui_data_info): Rename _TuiDataInfo.
6600 (struct tui_source_info): Rename _TuiSourceInfo.
6601 (struct tui_command_info): Rename _TuiCommandInfo.
6602 (tui_initialize_static_data): Rename initializeStaticData.
6603 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6604 (tui_alloc_win_info): Rename allocWinInfo.
6605 (tui_init_generic_part): Rename initGenericPart.
6606 (tui_init_win_info): Rename initWinInfo.
6607 (tui_alloc_content): Rename allocContent.
6608 (tui_add_content_elements): Rename addContentElements.
6609 (tui_init_content_element): Rename initContentElement.
6610 (tui_free_window): Rename freeWindow.
6611 (tui_free_win_content): Rename freeWinContent.
6612 (tui_free_data_content): Rename freeDataContent.
6613 (tui_free_all_source_wins_content): Rename
6614 freeAllSourceWinsContent.
6615 (tui_del_window): Rename tuiDelWindow.
6616 (tui_del_data_windows): Rename tuiDelDataWindows.
6617 (tui_partial_win_by_name): Rename partialWinByName.
6618 (tui_win_name): Rename winName.
6619 (tui_current_layout): Rename currentLayout.
6620 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6621 (tui_term_height): Rename termHeight.
6622 (tui_set_term_height_to): Rename setTermHeightTo.
6623 (tui_term_width): Rename termWidth.
6624 (tui_set_term_width_to): Rename setTermWidthTo.
6625 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6626 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6627 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6628 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6629 (tui_source_windows): Rename sourceWindows.
6630 (tui_clear_source_windows): Rename clearSourceWindows.
6631 (tui_clear_source_windows_detail): Rename
6632 clearSourceWindowsDetail.
6633 (tui_clear_win_detail): Rename clearWinDetail.
6634 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6635 (tui_default_tab_len): Rename tuiDefaultTabLen.
6636 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6637 (tui_win_with_focus): Rename tuiWinWithFocus.
6638 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6639 (tui_layout_def): Rename tuiLayoutDef.
6640 (tui_win_resized): Rename tuiWinResized.
6641 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6642 (tui_next_win): Rename tuiNextWin.
6643 (tui_prev_win): Rename tuiPrevWin.
6644 (tui_add_to_source_windows): Rename addToSourceWindows.
6645 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6646 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6647 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6648 * tui/tui.c, tui/tui-data.c: Ditto.
6649 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6650 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6651
a358af15
AC
6652 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6653 (struct symtab): Declare.
6654 (tui_set_source_content): Rename tuiSetSourceContent.
6655 (tui_show_symtab_source): Rename tuiShowSource.
6656 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6657 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6658 * tui/tui-source.c: Update copyright. Update references.
6659 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6660 * tui/tui-stack.c: Update references.
6661
a21fcd8f
AC
6662 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6663 (struct tui_win_info): Declare.
6664 (tui_scroll_forward): Rename tuiScrollForward.
6665 (tui_scroll_backward): Rename tuiScrollBackward.
6666 (tui_scroll_left): Rename tuiScrollLeft.
6667 (tui_scroll_right): Rename tuiScrollRight.
6668 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6669 (tui_resize_all): Rename tuiResizeAll.
6670 (tui_refresh_all_win): Rename tuiRefreshAll.
6671 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6672 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6673 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6674 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6675
edae1ccf
AC
6676 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6677 (tui_erase_data_content): Rename tuiEraseDataContent.
6678 (tui_display_all_data): Rename tuiDisplayAllData.
6679 (tui_check_data_values): Rename tuiCheckDataValues.
6680 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6681 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6682 (tui_first_data_element_no_in_line): Rename
6683 tuiFirstDataElementNoInLine.
6684 (tui_delete_data_content_windows): Rename
6685 tuiDeleteDataContentWindows.
6686 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6687 (tui_display_data_from): Rename tuiDisplayDataFrom.
6688 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6689 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6690 * tui/tui-win.c, tui/tui-regs.c: Update references.
6691 * tui/tui-layout.c, tui/tui.c: Update references.
6692
ec7d9e56
AC
6693 * tui/tui-wingeneral.h: Update copyright.
6694 (m_allBeVisible): Delete macro.
8a1dac83 6695 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
6696 (struct tui_gen_win_info): Declare.
6697 (struct tui_win_info): Declare.
6698 (tui_unhighlight_win): Rename unhighlightWin.
6699 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6700 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6701 (tui_make_window): Rename makeWindow.
6702 (tui_copy_win): Rename copyWin.
6703 (tui_box_win): Rename boxWin.
6704 (tui_highlight_win): Rename highlightWin.
6705 (tui_check_and_display_highlight_if_needed): Rename
6706 checkAndDisplayHighlightIfNeeded.
6707 (tui_refresh_all): Rename refreshAll.
6708 (tui_delete_win): Rename tuiDelwin.
6709 (tui_refresh_win): Rename tuiRefreshWin.
6710 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6711 (tui_make_visible, tui_make_invisible): New functions.
6712 (tui_make_all_visible, tui_make_all_invisible): New functions.
6713 (make_all_visible): Rename makeAllVisible.
6714 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6715 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6716 * tui/tui-windata.c, tui/tui-win.c: Update references.
6717 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6718 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6719
1e52e2eb
MK
67202004-02-06 Mark Kettenis <kettenis@gnu.org>
6721
6722 * proc-api.c (write_with_trace): Initialize local variable to
6723 silence compiler warning.
6724
f80bda8e
AC
67252004-02-06 Andrew Cagney <cagney@redhat.com>
6726
6727 * tui/tui-source.h: Do not include "defs.h".
6728 (struct tui_win_info): Declare.
6729 (tui_set_source_content_nil): Declare.
6730 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6731 (union tui_line_or_address): Rename _TuiLineOrAddress.
6732 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6733 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6734 (tui_update_source_window_as_is): Rename
6735 tuiUpdateSourceWindowAsIs.
6736 (tui_update_source_windows_with_addr): Rename
6737 tuiUpdateSourceWindowsWithAddr.
6738 (tui_update_source_windows_with_line): Rename
6739 tuiUpdateSourceWindowsWithLine.
6740 (tui_clear_source_content): Rename tuiClearSourceContent.
6741 (tui_erase_source_content): Rename tuiEraseSourceContent.
6742 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6743 (tui_show_source_content): Rename tuiShowSourceContent.
6744 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6745 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6746 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6747 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6748 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6749 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6750 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6751 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6752 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6753 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6754 (struct tui_win_info): Declare.
6755 * tui/tui-stack.c: Update references.
6756 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6757 * tui/tui-win.c, tui/tui-source.c: Ditto.
6758 * tui/tui.c, tui/tui-disasm.c: Ditto.
6759
9fbfb822
MK
67602004-02-06 Mark Kettenis <kettenis@gnu.org>
6761
6762 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6763 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6764
03cebad2
MK
67652004-02-05 Mark Kettenis <kettenis@gnu.org>
6766
6767 * infrun.c (handle_inferior_event): Allow for breakpoint
6768 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6769 and SIGEMT. Update comments.
6770 * NEWS (Revised SPARC target): Mention support for non-executable
6771 stack.
6772
290281b1
MK
67732004-02-04 Mark Kettenis <kettenis@gnu.org>
6774
6775 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6776 * inftarg.c: Update copyright year.
6777 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6778 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6779 (sparc_xfer_wcookie): New function.
6780 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6781 * Makefile.in (sparc-nat.o): Update dependencies.
6782 * config/sparc/nm-nbsd.h: Include "target.h".
6783 (NATIVE_XFER_WCOOKIE): New define.
6784 (sparc_xfer_wcookie): New prototype.
6785
212161df
AC
67862004-02-04 Andrew Cagney <cagney@redhat.com>
6787
6788 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6789 SYSCALL_TRAP function.
6790 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6791
6e4c6c91
DJ
67922004-02-04 Andrew Cagney <cagney@redhat.com>
6793 Daniel Jacobowitz <drow@mvista.com>
6794
6795 * objfiles.h: Delete comments refering to inside_entry_func and
6796 DEPRECATED_FRAME_CHAIN_VALID.
6797 * defs.h (inside_entry_func): Update prototype..
6798 * blockframe.c (inside_entry_func): Rename to
6799 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6800 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6801
cae688ec
JJ
68022004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6803
6804 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6805 outside of #ifdef SOLIB_ADD region.
6806 (do_restore_lang_radix_cleanup): Ditto.
6807 (resolve_pending_breakpoint): Ditto.
6808
19217676
AC
68092004-02-03 Andrew Cagney <cagney@redhat.com>
6810
6811 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6812 (process_note_abi_tag_sections): Delete unused function.
6813 (ia64_read_fp): Delete unused function.
6814 (gdbarch_extract_struct_value_address): Delete declaration.
6815
876753be
AC
68162004-02-02 Andrew Cagney <cagney@redhat.com>
6817
6818 * vax-tdep.c (vax_frame_chain): Delete call to
6819 deprecated_inside_entry_file.
6820 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6821
d4f10bf2
MK
68222004-02-02 Mark Kettenis <kettenis@gnu.org>
6823
6824 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6825 column that's "empty" or "same value" when eliminating REG_RA
6826 rules.
6827
cae688ec
JJ
68282004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6829
6830 * NEWS: Add information about new pending breakpoint support.
6831
0101ce28
JJ
68322004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6833
6834 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6835 and pending fields for pending breakpoint support.
6836 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6837 (condition_command): Only parse condition if not a pending
6838 breakpoint.
6839 (print_one_breakpoint): Add support for pending breakpoints.
6840 (describe_other_breakpoints): Add checks to verify we are not
6841 dealing with pending breakpoints.
6842 (check_duplicates): Don't check pending breakpoints.
6843 (set_raw_breakpoint): Initialize pending flag.
6844 (do_restore_lang_radix_cleanup): New cleanup routine.
6845 (resolve_pending_breakpoint): New function.
6846 (re_enable_breakpoints_in_shlibs): Try and resolve any
6847 pending breakpoints via resolve_pending_breakpoint.
6848 (mention): Add pending breakpoint support.
6849 (parse_breakpoint_sals): Add new parameter to pass to
6850 decode_line_1 to indicate silent errors when files or functions
6851 are not found. Change all callers.
6852 (do_captured_parse_breakpoint): New function.
6853 (break_command_1): Change prototype to return an rc value and to
6854 take an optional pending breakpoint pointer. Support creating
6855 a pending breakpoint if a "not found" form of error occurs when
6856 parsing the breakpoint. Also support resolving an existing pending
6857 breakpoint and be silent if the resolution fails.
6858 (create_breakpoints): Change prototype to take pending breakpoint
6859 pointer. When resolving a pending breakpoint, use the new pointer
6860 to provide a conditional or commands added by the end-user.
6861 (delete_breakpoint): Add appropriate check for pending.
6862 (breakpoint_re_set_one): Ditto.
6863 (do_enable_breakpoint): Ditto.
6864
8d577d32
DC
68652004-02-02 David Carlton <carlton@kealia.com>
6866
6867 * valops.c (enum oload_classification): New.
6868 (find_overload_match): Break implementation into separate
6869 functions; delete #if 0'd code; look for symbols within
6870 namespaces.
6871 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6872 (find_oload_champ,oload_method_static,classify_oload_match): New.
6873 * cp-support.h: Add declaration for cp_func_name; update
6874 declaration for make_symbol_overload_list.
6875 * cp-support.c (cp_func_name): New.
6876 (overload_list_add_symbol): Fix comment, use
6877 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6878 (make_symbol_overload_list): Take a function name and a namespace
6879 instead of a symbol; change implementation.
6880 (make_symbol_overload_list_using): New.
6881 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6882
22e8e3c7
FF
68832004-02-02 Fred Fish <fnf@redhat.com>
6884
6885 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 6886 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
6887 * remote-sim.c (gdb_os_write_stderr): Write output to
6888 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6889 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 6890 gdb_stderr stream and update copyright years.
22e8e3c7 6891
6b753f60
DJ
68922004-02-01 Daniel Jacobowitz <drow@mvista.com>
6893
6894 * Makefile.in (mips-linux-nat.o): Update dependencies.
6895 * mips-linux-nat.c: Include mips-tdep.h.
6896
68972004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
6898
6899 * sol-thread.c (sol_thread_xfer_partial): New function.
6900 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6901 (init_sol_core_ops): Likewise.
6902
6903 * procfs.c (procfs_xfer_partial): New function.
6904 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6905 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6906
6907 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6908 procfs_xfer_auxv function.
6909
6910 * procfs.c (procfs_make_note_section): If we can read
6911 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6912 * linux-proc.c (linux_make_note_section): Likewise.
6913
6914 * auxv.h: New file.
6915 * auxv.c: New file.
6916 * Makefile.in (auxv_h): New variable.
6917 (COMMON_OBS): Add auxv.o here.
6918 (auxv.o): New target.
6919
6920 * corelow.c (core_xfer_partial): New function.
6921 (init_core_ops): Use it for core_ops.to_xfer_partial.
6922
6923 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6924 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6925 macro if that is defined.
6926
fa5281d0
DJ
69272004-02-01 Daniel Jacobowitz <drow@mvista.com>
6928
6929 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6930 and check the specified thread for each breakpoint.
6931 * breakpoint.h (bpstat_stop_status): Update prototype.
6932 * infrun.c (handle_inferior_event): Update calls to
6933 bpstat_stop_status.
6934
26ee262d
DJ
69352004-02-01 Daniel Jacobowitz <drow@mvista.com>
6936
6937 * Makefile.in (cli-cmds.o): Add $(readline_h).
6938
d9b52655
DJ
69392004-02-01 Daniel Jacobowitz <drow@mvista.com>
6940
6941 * cli/cli-cmds.c: Include readline.h.
6942 (complete_command): Pass the start of the last word to
6943 complete_line.
6944
9709f61c
DJ
69452004-01-31 Daniel Jacobowitz <drow@mvista.com>
6946
6947 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6948 argument, and change first argument to a CORE_ADDR.
6949 * breakpoint.h (bpstat_stop_status): Update prototype.
6950 * infrun.c (adjust_pc_after_break): Add a new comment.
6951 (handle_inferior_event): Update calls to bpstat_stop_status.
6952
4f1280bb
DJ
69532004-01-31 Daniel Jacobowitz <drow@mvista.com>
6954
6955 * breakpoint.h: Update copyright years.
6956
4fa8626c
DJ
69572004-01-31 Daniel Jacobowitz <drow@mvista.com>
6958
6959 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6960 (bpstat_stop_status): Don't decrement PC.
6961 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6962 prototype.
6963 * infrun.c (adjust_pc_after_break): New function.
6964 (handle_inferior_event): Call it, early. Remove later references
6965 to DECR_PC_AFTER_BREAK.
6966 (normal_stop): Add commentary.
6967
fad0733a
DJ
69682004-01-31 Daniel Jacobowitz <drow@mvista.com>
6969
6970 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6971 2004-01-27 double-free fix.
6972
42cdca6c
MK
69732004-01-31 Mark Kettenis <kettenis@gnu.org>
6974
6975 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6976 (sparc32_frame_prev_register): Handle StackGhost.
6977 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6978
932d5416
RM
69792004-01-29 Roland McGrath <roland@redhat.com>
6980
6981 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6982 * configure: Regenerated.
6983
6984 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6985 * Makefile.in (procfs.o): Add dep.
6986
47d3492a
AC
69872004-01-28 Andrew Cagney <cagney@redhat.com>
6988
6989 * tui/tui-stack.h: Update copyright.
6990 (struct frame_info): Add opaque declaration.
6991 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6992 (tui_show_locator_content): Rename tuiShowLocatorContent.
6993 (tui_show_frame_info): Rename tuiShowFrameInfo.
6994 * tui/tui-stack.c: Update copyright. Update references.
6995 * tui/tui-winsource.c: Update references.
6996 * tui/tui-win.c: Update references.
6997 * tui/tui-layout.c: Update references.
6998 * tui/tui-hooks.c: Update copyright, update references.
6999 * tui/tui.c: Update copyright, update references.
7000 * tui/tui-disasm.c: Update references.
7001
5d51ca54
DC
70022004-01-28 David Carlton <carlton@kealia.com>
7003
7004 * dwarf2read.c (add_partial_structure): Use demangled name if
7005 namespace equals "".
7006
086ed43d
JB
70072004-01-27 Jim Blandy <jimb@redhat.com>
7008
7009 Clean up misapplied patch:
7010 * dwarf2read.c (determine_prefix): Change one of the two forward
7011 declarations for 'determine_prefix_aux' to a declaration for this.
7012 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
7013 argument to 'die_specification'.
7014
2a35147e
JB
7015 * dwarf2read.c (read_func_scope): Re-indent comment.
7016
a355c7de 70172004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 7018
a355c7de
AC
7019 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
7020 b->exp to NULL after freeing so that error during re-parsing or
7021 evaluation of expressions associated with breakpoint don't
7022 eventually lead to re-freeing of storage.
7023 Committed by Andrew Cagney.
7024
63ff5125
AC
70252004-01-27 Andrew Cagney <cagney@redhat.com>
7026
7027 * source.c (ambiguous_line_spec): Delete undefined declaration.
7028 * m32r-rom.c (m32r_set_board_address): Delete unused function.
7029 (m32r_set_server_address, m32r_set_download_path): Ditto.
7030 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
7031
e142c38c
DJ
70322004-01-27 Daniel Jacobowitz <drow@mvista.com>
7033
7034 * dwarf2read.c: Update calls to changed and renamed functions, and
7035 references to moved variables.
7036
7037 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
7038 language, language_defn, list_in_scope, and ftypes members.
7039 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
7040 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
7041 (baseaddr): Remove globals.
7042
7043 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
7044 (set_cu_language, die_is_declaration, die_specification)
7045 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
7046 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
7047 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
7048 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
7049
7050 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
7051 cu.list_in_scope. Don't initialize cu_header_offset.
7052 (add_partial_symbol): Add local baseaddr.
7053 (psymtab_to_symtab_1): Add local baseaddr. Use
7054 objfile->section_offsets for consistency. Don't initialize
7055 cu_header_offset; do initialize cu.header.offset and
7056 cu.list_in_scope.
7057 (read_file_scope, read_func_scope, read_lexical_block_scope)
7058 (dwarf_decode_lines, new_symbol): Add local baseaddr.
7059
c6e06ede
MC
70602004-01-27 Michael Chastain <mec.gnu@mindspring.com>
7061
fb328ecc 7062 * PROBLEMS: Add gdb/1516.
c6e06ede 7063
48184fd4
AC
70642003-12-29 Robert Millan <robertmh@gnu.org>
7065
7066 Patch committed by Andrw Cagney.
7067 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
7068 * configure.tgt: Match knetbsd*-gnu.
7069
c1321b30
AC
70702004-01-26 Andrew Cagney <cagney@redhat.com>
7071
f3699be3
AC
7072 * breakpoint.c (catch_command_1): Delete #ifdef code.
7073 (catch_fork_command_1): Delete #ifdef wrapper.
7074 (catch_exec_command_1): Ditto.
7075 (catch_load_command_1): Ditto.
7076 (catch_unload_command_1): Ditto.
7077
c1321b30
AC
7078 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
7079 (catch_breakpoint): Delete #if0ed function.
7080 (disable_catch_breakpoint): Ditto.
7081 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
7082 (disable_catch, enable_catch, delete_catch): Ditto.
7083
b4501125
AC
70842004-01-26 Andrew Cagney <cagney@redhat.com>
7085
7086 * remote.c (echo_check, quit_flag): Delete variables.
7087 (cisco_kernel_mode): Delete variable.
7088 (minitelnet_return, tty_input, escape_count): Delete variables.
7089 (remote_cisco_mode): Delete variable.
7090 (remote_cisco_open, remote_cisco_close): Delete function.
7091 (remote_cisco_mourn, remote_cisco_wait): Delete function.
7092 (init_remote_cisco_ops): Delete function.
7093 (_initialize_remote): Do not install "remote cisco" code.
7094 (read_frame): Delete cisco specific code.
7095 (remote_info_process): Delete function.
7096 (remote_wait): Delete cisco specific code.
7097 (remote_cisco_section_offsets): Delete function.
7098 (remote_cisco_objfile_relocate): Delete function.
7099 (remote_async_wait): Delete cisco specific code.
7100 (minitelnet, readtty, readsocket): Delete function.
7101
74055713
AC
71022004-01-26 Andrew Cagney <cagney@redhat.com>
7103
7104 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
7105 comments mentioning extract_returned_value_address.
7106 * infcmd.c (print_return_value): Update. Add comments on
7107 extract_returned_value_address.
7108 * stack.c (return_command): Add comments on
7109 extract_returned_value_address.
7110 * values.c: Update comment.
7111 * m32r-tdep.c: Update comment.
7112 * sparc-tdep.c: Update comment.
7113 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
7114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7115 * sh64-tdep.c (sh64_gdbarch_init): Update.
7116 * sh-tdep.c (sh_gdbarch_init): Update.
7117 * s390-tdep.c (s390_gdbarch_init): Update.
7118 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7119 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7120 * m68k-tdep.c (m68k_gdbarch_init): Update.
7121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7122 * m32r-tdep.c (m32r_gdbarch_init): Update.
7123 * ia64-tdep.c (ia64_gdbarch_init): Update.
7124 * h8300-tdep.c (h8300_gdbarch_init): Update.
7125 * frv-tdep.c (frv_gdbarch_init): Update.
7126 * arm-tdep.c (arm_gdbarch_init): Update.
7127 * alpha-tdep.c (alpha_gdbarch_init): Update.
7128
a67af2b9
AC
71292004-01-26 Andrew Cagney <cagney@redhat.com>
7130
7131 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
7132 SYMBOL_LOCATION_FUNCS
7133 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
7134 "struct symbol_ops".
7135 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
7136 type to "struct symbol_ops".
7137 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
7138 (struct symbol): Replace ".aux_value.loc.funcs" and
7139 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
7140 (SYMBOL_OBJFILE): Delete macro.
7141 (SYMBOL_LOCATION_FUNCS): Delete macro.
7142 (SYMBOL_LOCATION_BATON): Update.
7143 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
7144 intead of SYMBOL_LOCATION_FUNCS.
7145 * ax-gdb.c (gen_var_ref): Ditto.
7146 * printcmd.c (address_info): Ditto.
7147 * findvar.c (read_var_value): Ditto.
7148 (symbol_read_needs_frame): Ditto.
7149
c034e007
AC
71502004-01-26 Andrew Cagney <cagney@redhat.com>
7151
7152 * dwarf2read.c (read_func_scope): Document frame-base hack.
7153
bb472c1e
MK
71542004-01-25 Mark Kettenis <kettenis@gnu.org>
7155
7156 * infcmd.c (print_return_value): Plug memory leak; delete
7157 ui_stream object. Rename argument `structure_return' to
7158 `struct_return'.
7159
c8e737d5
MK
71602004-01-25 Mark Kettenis <kettenis@gnu.org>
7161
f941662f
MK
7162 * infcmd.c (print_return_value): Wrap long lines.
7163 (finish_command_continuation, finish_command): Remove unused
7164 variable `funcaddr'. Fix some coding-standards problems.
7165
c558d81a 7166 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 7167 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
7168 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
7169 TDEP->fpregset to zero.
7170
bf1e5861 7171 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
7172 floating-point registers for traditional NetBSD core files.
7173 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7174 TDEP->sizeof_fpregset here.
7175
4c72d57a
MK
71762004-01-25 Mark Kettenis <kettenis@gnu.org>
7177
566626fa
MK
7178 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7179 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7180 function with code split out from
7181 sparc32nbsd_sigcontext_frame_cache.
7182 (sparc32nbsd_sigcontext_frame_cache): Use
7183 sparc32nbsd_sigcontext_saved_regs.
7184 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7185 OpenBSD.
7186 * sparcobsd-tdep.c: New file.
7187 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7188 (sparcobsd-tdep.o): New dependency.
7189 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7190 * config/sparc/obsd.mt: New file.
7191
4c72d57a
MK
7192 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7193 TDEP->fpregset to be initialized to enable core file register
7194 sets.
7195
7e5e9f88
MK
71962004-01-24 Mark Kettenis <kettenis@gnu.org>
7197
f0f207fd 7198 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
7199 Add opaque declarations.
7200 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7201 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7202 function with code split out from
7203 sparc64nbsd_sigcontext_frame_cache.
7204 (sparc64nbsd_sigcontext_frame_cache): Use
7205 sparc64nbsd_sigcontext_saved_regs.
7206 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7207 OpenBSD.
7208 * sparc64obsd-tdep.c: New file.
7209 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7210 (sparc64obsd-tdep.o): New dependency.
7211 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7212 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7213 * config/sparc/obsd64.mt: New file.
7214
690668cc
MK
7215 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7216 read the instruction at PC.
7217
7e5e9f88
MK
7218 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7219 value of GDB_OSABI_DEFAULT.
7220 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7221 instead of GDB_OSABI_NETBSD_AOUT.
7222
68b6dce9
NR
72232004-01-24 Nick Roberts <nick@nick.uklinux.net>
7224
7225 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7226 copyright.
7227
080ce8c0
AC
72282004-01-23 Andrew Cagney <cagney@redhat.com>
7229
7230 * printcmd.c (display_command): Replace tui_set_display call with
7231 tui_set_layout_for_display_command.
7232 * tui/tui.h (enum tui_win_type): Define.
7233 (tui_set_layout): Delete declaration.
7234 (tui_set_layout_for_display_command): Rename set_tui_layout.
7235 * tui/tui-data.h (enum tui_layout_type): Define.
7236 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7237 "tui.h".
7238 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7239 (tui_default_win_height): Rename tuiDefaultWinHeight.
7240 (tui_default_win_viewport_height): Rename
7241 tuiDefaultWinViewportHeight.
7242 (tui_set_layout): RenametuiSetLayout.
7243 * tui/tui-layout.c: Update references.
7244 * tui/tui.c: Update references.
7245 * tui/tui-disasm.c: Update references.
7246
b368761e
DC
72472004-01-23 David Carlton <carlton@kealia.com>
7248
7249 Partial workaround for PR c++/1511:
7250 * cp-namespace.c: Include frame.h.
7251 (cp_lookup_transparent_type): New
7252 (cp_lookup_transparent_type_loop): New.
7253 * cp-support.h: Declare cp_lookup_transparent_type.
7254 * symtab.c (basic_lookup_transparent_type): Renamed from
7255 lookup_transparent_type.
7256 (lookup_transparent_type): Replace old body by a call to
7257 current_language->la_lookup_transparent_type.
7258 * symtab.h: Update copyright. Declare
7259 basic_lookup_transparent_type.
7260 * language.h: Update copyright.
7261 (struct language_defn): Add la_lookup_transparent_type.
7262 * language.c: Update copyright.
7263 (unknown_language_defn): Add basic_lookup_transparent_type.
7264 (auto_language_defn): Add basic_lookup_transparent_type.
7265 (local_language_defn): Add basic_lookup_transparent_type.
7266 * ada-lang.c: Update copyright.
7267 (ada_language_defn): Add basic_lookup_transparent_type.
7268 * c-lang.c: Update copyright.
7269 (c_language_defn): Add basic_lookup_transparent_type.
7270 (cplus_language_defn): Add basic_lookup_transparent_type.
7271 (asm_language_defn): Add basic_lookup_transparent_type.
7272 (minimal_language_defn): Add basic_lookup_transparent_type.
7273 * f-lang.c: Update copyright.
7274 (f_language_defn): Add basic_lookup_transparent_type.
7275 * jv-lang.c: Update copyright.
7276 (java_language_defn): Add basic_lookup_transparent_type.
7277 * m2-lang.c: Update copyright.
7278 (m2_language_defn): Add basic_lookup_transparent_type.
7279 * objc-lang.c: Update copyright.
7280 (objc_language_defn): Add basic_lookup_transparent_type.
7281 * p-lang.c: Update copyright.
7282 (p_language_defn): Add basic_lookup_transparent_type.
7283 * scm-lang.c: Update copyright.
7284 (scm_language_defn): Add basic_lookup_transparent_type.
7285 * Makefile.in (cp-namespace.o): Depend on frame.h.
7286
fdde2d81
DC
72872004-01-23 David Carlton <carlton@kealia.com>
7288
7289 Patch for PR c++/1520:
7290 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7291 properly if we have a specification die.
7292 (determine_prefix_aux): Rename from determine_prefix.
7293 (determine_prefix): Like the old determine_prefix, but never
7294 returns NULL.
7295
5b828b6b
TR
72962004-01-23 Theodore A. Roth <troth@openavr.org>
7297
7298 * avr-tdep.c: Update copyright.
7299 (avr_iaddr_p): Delete unused function.
7300 (avr_saddr_p): Delete unused function.
7301
a1b8c067
DC
73022004-01-23 David Carlton <carlton@kealia.com>
7303
7304 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7305 Fix for PR symtab/1534.
7306
f2cab569
MK
73072004-01-23 Mark Kettenis <kettenis@gnu.org>
7308
7309 * NEWS (New native configurations): Mention OpenBSD/sparc and
7310 OpenBSD/sparc64.
7311 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7312 * configure.host: Likewise.
7313 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7314 handler for OpenBSD.
7315 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7316
642d8300
MK
73172004-01-22 Mark Kettenis <kettenis@gnu.org>
7318
89aac506
MK
7319 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7320 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7321
36662fde
MK
7322 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7323 * cli/cli-cmds.c (shell_escape): Likewise.
7324
642d8300
MK
7325 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7326 OpenBSD .note.openbsd.ident sections.
7327
fae299cd
DC
73282004-01-22 David Carlton <carlton@kealia.com>
7329
7330 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7331 get_scope_pc_bounds.
7332 (read_file_scope): Ditto.
7333 (get_scope_pc_bounds): New function, produced by extracting code
7334 from the above two functions, consolidating it, and adding support
7335 for DW_TAG_namespace.
7336
a49d618c
MK
73372004-01-22 Mark Kettenis <kettenis@gnu.org>
7338
7339 * osabi.c (MAX_NOTESZ): New define.
7340 (check_note): New function.
7341 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7342 check_note.
7343
fe61caab
RM
73442004-01-21 Roland McGrath <roland@redhat.com>
7345
7346 * MAINTAINERS (write after approval): Add myself.
7347
ec145965
EZ
73482004-01-21 Eli Zaretskii <eliz@gnu.org>
7349
7350 * utils.c (init_page_info): Move declarations of `rows' and
7351 `cols' before the __GO32__-specific code. Move the closing brace
7352 outside the #ifdef __GO32__..#endif block.
7353 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7354
877522db
PB
73552004-01-21 Paul Brook <paul@codesourcery.com>
7356
7357 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7358 BPSTAT_WHAT_CHECK_SHLIBS.
7359
dbf5be1c
PB
73602004-01-21 Paul Brook <paul@codesourcery.com>
7361
7362 * MAINTAINERS: Add myself to write-after-approval.
7363
81f08b92
AC
73642004-01-20 Andrew Cagney <cagney@redhat.com>
7365
5a1efed7
AC
7366 * ax-gdb.c (print_axs_value): Delete unused function.
7367 * jv-lang.c (java_lookup_type): Delete unused function.
7368 * cli/cli-dump.c (dump_filetype): Delete unused function.
7369 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7370 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7371 (mips_getstring): Delete unused function.
7372 (pmon_insert_breakpoint): Delete #if0ed function.
7373 (PMON_MAX_BP): Delete #if0ed MACRO.
7374 (mips_pmon_bp_info): Delete #if0ed variable.
7375 (pmon_remove_breakpoint): Delete #if0ed function.
7376 * monitor.c (monitor_write_even_block): Delete unused function.
7377 (monitor_write_memory_block): Delete #if0ed code.
7378 * dink32-rom.c (dink32_load): Delete unused function.
7379 (_initialize_dink32_rom): Delete #if0ed code.
7380 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7381
b0a30fce
AC
7382 * tui/tui-command.c: Update references.
7383 * tui/tui-io.c: Update references.
7384 * tui/tui-command.h: Update copyright.
7385 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7386
81f08b92
AC
7387 * source.c (ambiguous_line_spec): Delete never-defined function.
7388 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7389 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7390 * cli/cli-cmds.c (validate_comname): Ditto.
7391
65f05602
AC
7392 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7393 "tui-data.h".
7394 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7395 (tui_show_disassem): Rename tuiShowDisassem.
7396 (tui_show_disassem_and_update_source): Rename
7397 tuiVerticalDisassemScroll.
7398 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7399 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7400 * tui/tui.h: Update copyright.
7401 (enum tui_status): Define.
7402 * tui/tui-data.h (enum tui_scroll_direction): Define.
7403 * tui/tui-disasm.c: Update copyright. Update references.
7404 * tui/tui-winsource.c: Update copyright. Update references.
7405 * tui/tui-win.c: Update references.
7406 * tui/tui-layout.c: Update references.
7407
6bb0384f
AC
74082004-01-20 Andrew Cagney <cagney@redhat.com>
7409
7410 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7411 sym2 to start of block.
7412
9175c9a3
MC
74132004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7414
7415 * MAINTAINERS: Delete mmalloc.
7416 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7417 * NEWS: Mention removal of --with-malloc.
7418 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7419 * config.in: Regenerate.
7420 * configure: Regenerate.
6bb0384f
AC
7421 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7422 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
7423 * gdbinit.in: Remove mmalloc.
7424 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7425 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7426 * config/i386/go32.mh: Likewise.
7427 * config/i386/interix.mh: Likewise.
7428 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7429
4fcef00a
JJ
74302004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7431
7432 * linespec.c (decode_variable, symtab_from_filename): Call
7433 error_silent with error message instead of throwing an exception
7434 directly.
7435 * defs.h (error_silent, error_output_message): Add prototypes.
7436 (catch_exceptions_with_msg): Ditto.
7437 * utils.c (error_silent, error_output_message): New functions.
7438 * top.c (catch_exceptions_with_msg): New function.
7439
8e94b928
NR
74402004-01-20 Nick Roberts <nick@nick.uklinux.net>
7441
7442 * mi/mi-cmds.h (enum print_values): Add definition.
7443
7444 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7445 type and value for simple data types and just the name and type
7446 for complex ones, if required.
7447
7448 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7449 children, if required.
7450
a02d6af8
KB
74512004-01-19 Kevin Buettner <kevinb@redhat.com>
7452
7453 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7454 unused declarations.
7455
78a4a9b9
AC
74562004-01-19 Andrew Cagney <cagney@redhat.com>
7457
7458 * top.h (mapped_symbol_files): Delete declaration.
7459 * main.c (captured_main): Delete option "m" and "mapped".
7460 * objfiles.c (mapped_symbol_files): Delete variable.
7461 * symfile.c (symbol_file_command): Delete mmap code.
7462 (symbol_file_add_with_addrs_or_offsets): Ditto.
7463 (add_symbol_file_command, reread_separate_symbols): Ditto.
7464 * objfiles.h (OBJF_MAPPED): Delete.
7465 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7466 (free_objfile) [USE_MMALLOC]: Ditto.
7467 (open_existing_mapped_file): Delete function.
7468 (open_mapped_file): Delete function.
7469 (map_to_file): Delete function.
7470
2dbd5e30
KB
74712004-01-19 Kevin Buettner <kevinb@redhat.com>
7472
7473 * infrun.c (step_into_function): Account for possible breakpoint
7474 adjustment when computing ``stop_func_start''.
7475
437b434f
KB
74762004-01-19 Kevin Buettner <kevinb@redhat.com>
7477
7478 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7479 the region size against the size of a pointer, not the size of
7480 a register as given by DEPRECATED_REGISTER_SIZE.
7481
55fb0713
AC
74822004-01-19 Andrew Cagney <cagney@redhat.com>
7483
7484 * tui/tui-regs.h: Include "tui-data.h".
7485 (tuiFirstRegElementNoInLine): Delete declaration.
7486 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7487 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7488 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7489 (tui_calculate_regs_column_count): Rename
7490 tuiCalculateRegsColumnCount.
7491 (tui_check_register_values): Rename tuiCheckRegisterValues.
7492 (tui_show_registers): Rename tuiShowRegisters.
7493 (tui_display_registers_from_line): Rename
7494 tuiDisplayRegistersFromLine.
7495 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7496 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7497 (tui_first_reg_element_no_inline): Rename
7498 tuiFirstRegElementNoInLine.
7499 * tui/tui-data.h: Update copyright.
7500 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7501 * tui/tui-windata.c: Update copyright, update references.
7502 * tui/tui-regs.c: Update copyright, update references.
7503 * tui/tui-win.c: Update copyright, update references.
7504 * tui/tui-layout.c: Update copyright, update references.
fe61caab 7505
cebe9500
AC
75062004-01-18 Andrew Cagney <cagney@redhat.com>
7507
bcdf1568
AC
7508 * tui/tui-io.c: Update copyright.
7509 (key_is_end_sequence, key_is_backspace): New functions.
7510 (key_is_command_char, key_is_start_sequence): New function.
7511 (tui_getc): Update references.
7512 * tui/tui-io.h: Update copyright.
7513 (m_tuiStartNewLine): Delete macro.
7514 (m_isBackspace, m_isDeleteChar): Delete macros.
7515 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7516 (m_isNextPage, m_isPrevPage): Delete macros.
7517 (m_isLeftArrow, m_isRightArrow): Delete macros.
7518 (m_isXdbStyleCommandChar): Delete macro.
7519 (key_is_start_sequence): Declare, replace m_isStartSequence.
7520 (key_is_end_sequence): Declare, replace m_isEndSequence.
7521 (key_is_backspace): Declare ,replace m_isBackspace.
7522 (key_is_command_char): Declare, replace m_isCommandChar.
7523 * tui/tui-command.c: Update copyright.
7524 (tuiDispatchCtrlChar): Update references.
7525
130d87e6
AC
7526 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7527 tuiSourceWin.h.
7528
d7b2e967
AC
7529 * tui/tui-command.c: Rename tui/tuiCommand.c.
7530 * tui/tui-command.h: Rename tui/tuiCommand.h.
7531 * tui/tui-data.c: Rename tui/tuiData.c.
7532 * tui/tui-data.h: Rename tui/tuiData.h.
7533 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7534 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7535 * tui/tui-io.c: Rename tui/tuiIO.c.
7536 * tui/tui-io.h: Rename tui/tuiIO.h.
7537 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7538 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7539 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7540 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7541 * tui/tui-source.c: Rename tui/tuiSource.c.
7542 * tui/tui-source.h: Rename tui/tuiSource.h.
7543 * tui/tui-stack.c: Rename tui/tuiStack.c.
7544 * tui/tui-stack.h: Rename tui/tuiStack.h.
7545 * tui/tui-win.c: Rename tui/tuiWin.c.
7546 * tui/tui-win.h: Rename tui/tuiWin.h.
7547 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7548 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7549 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7550 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7551 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7552 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7553 * tui/tui-file.c: Update includes.
7554 * tui/tui-hooks.c: Update includes.
7555 * tui/tui-interp.c: Update includes.
7556 * tui/tui.c: Update includes.
7557 * Makefile.in: Update all tui/ dependencies.
7558 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7559
b2100910
AC
7560 * Makefile.in: Update copyright. Update dependencies.
7561
cebe9500
AC
7562 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7563 problem.
7564
c6f0559b
AC
75652004-01-18 Andrew Cagney <cagney@redhat.com>
7566
43e9390b
AC
7567 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7568 instead of register_gdbarch_init.
7569
c6f0559b
AC
7570 * remote-sds.c (tohex): Delete unused function. Update copyright.
7571 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7572 * v850-tdep.c (v850_register_virtual_size): Ditto.
7573 * target.c (normal_target_post_startup_inferior): Ditto.
7574 * source.c (ambiguous_line_spec): Ditto.
7575 * remote.c (adapt_remote_get_threadinfo): Ditto.
7576 * mi/mi-out.c (out_field_fmt): Ditto.
7577 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7578 (output_control_change_notification): Ditto.
7579 * m68k-tdep.c (m68k_register_byte): Ditto.
7580 (m68k_remote_breakpoint_from_pc): Ditto.
7581 * ui-out.c (init_ui_out_state): Delete unused declaration.
7582 * stabsread.c (search_value): Ditto.
7583 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7584 * maint.c (print_section_table): Ditto.
7585 * infrun.c (set_follow_fork_mode_command): Ditto.
7586
a8504492
MK
75872004-01-18 Mark Kettenis <kettenis@gnu.org>
7588
7589 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7590 DW_CFA_def_cfa_exporession. Add support for
7591 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7592 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7593
0bd8997e
AC
75942004-01-18 Andrew Cagney <cagney@redhat.com>
7595
7596 * ocd.c: Update copyright.
7597 (bdm_read_register_command): Delete unused function.
7598 (_initialize_remote_ocd): Delete commented out reference.
7599 (get_quoted_char, reset_packet): Delete #if0ed function.
7600 (output_packet, put_quoted_char): Delete #if0ed function.
7601 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7602 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7603 (BDM_BREAKPOINT): Delete #if0ed macro.
7604 (remote_timeout): Delete #if0ed variable.
7605
31bb40e4
MK
76062004-01-18 Mark Kettenis <kettenis@gnu.org>
7607
7608 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7609 (core-sol2.o): Remove dependency.
7610 * core-sol2.c: Remove file.
7611
887432a5
AC
76122004-01-17 Andrew Cagney <cagney@redhat.com>
7613
7614 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7615 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7616 enums.
7617
29182b13
DJ
76182004-01-17 Daniel Jacobowitz <drow@mvista.com>
7619
7620 * remote.c: Update copyright years.
7621
2963ee1d
DJ
76222004-01-17 Daniel Jacobowitz <drow@mvista.com>
7623
7624 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7625
79d45cd4
AC
76262004-01-17 Andrew Cagney <cagney@redhat.com>
7627
ee300cd4
AC
7628 * mdebugread.c: Update copyright.
7629 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7630 (parse_type, parse_procedure): Ditto.
7631 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7632
fcacc9c2
AC
7633 * cris-tdep.c (cris_store_struct_return): Put back accidently
7634 deleted function.
7635
79d45cd4
AC
7636 * gdbarch.sh: Update copyright year.
7637 * gdbarch.h, gdbarch.c: Re-generate.
7638
b263358a
DJ
76392004-01-17 Daniel Jacobowitz <drow@mvista.com>
7640
7641 Suggested by George Anzinger.
7642 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7643 correct stack offset. Include unknown opcode numbers in the error
7644 message.
7645
931aecf5
AC
76462004-01-17 Andrew Cagney <cagney@redhat.com>
7647
7648 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7649 extract_struct_value_address, i386 does not set it.
7650 * sparc64-tdep.c (sparc64_init_abi): Do not set
7651 extract_struct_value_address, never called.
7652 (sparc64_extract_struct_value_address): Delete function.
7653 * m68hc11-tdep.c: Update copyright.
7654 (m68hc11_gdbarch_init): Delete redundant assignment of
7655 extract_struct_value_address.
7656 * i386-tdep.c: Update copyright.
7657 (i386_gdbarch_init): Do not set extract_struct_value_address,
7658 never called.
7659 (i386_extract_struct_value_address): Delete function.
7660 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7661 extract_struct_value_address, never called.
7662 (sparc32_extract_struct_value_address): #if 0 function. Add
7663 comments explaining its future.
7664
756fe439
DJ
76652004-01-17 Daniel Jacobowitz <drow@mvista.com>
7666
7667 * arm-tdep.c (arm_write_pc): New function.
7668 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7669
e74f0f02
DJ
76702004-01-17 Daniel Jacobowitz <drow@mvista.com>
7671
7672 * breakpoint.c (must_shift_inst_regs): Delete.
7673 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7674 and SHIFT_INST_REGS.
7675 * infcmd.c (step_1, step_1_continuation): Delete references to
7676 SHIFT_INST_REGS.
7677 * infrun.c (keep_going): Likewise.
7678 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7679 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7680
b6cb9035
AC
76812004-01-17 Andrew Cagney <cagney@redhat.com>
7682
444a1e2e
AC
7683 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7684 * gdbarch.h, gdbarch.c: Re-generate.
7685 * infcmd.c (print_return_value): Delete reference to
7686 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7687
def7e6ed
AC
7688 * cris-tdep.c (cris_gdbarch_init): Do not set
7689 deprecated_extract_struct_value_address.
7690
07be497a
AC
7691 * xstormy16-tdep.c: Update copyright.
7692 (xstormy16_extract_struct_value_address): Update to current
7693 extract struct value address interface.
7694 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7695 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7696 current extract struct value address interface.
7697 (sh64_gdbarch_init): Set extract_struct_value_address.
7698
6b4d5c91
AC
7699 * cris-tdep.c: Update copyright.
7700 (cris_extract_struct_value_address): Delete function.
7701 (struct_return_address): Delete variable.
7702 (cris_store_struct_return): Do not set struct_return_address.
7703
464e0365
AC
7704 * mcore-tdep.c: Update copyright.
7705 (mcore_extract_struct_value_address): Delete function. Update
7706 comments.
7707 (mcore_gdbarch_init): Update.
7708 * mn10300-tdep.c: Update copyright.
7709 (mn10300_extract_struct_value_address): Delete function.
7710 (mn10300_gdbarch_init): Update.
7711 * v850-tdep.c: Update copyright.
7712 (v850_extract_struct_value_address): Delete.
7713 (v850_gdbarch_init): Update.
7714 * ns32k-tdep.c: Update copyright.
7715 (ns32k_extract_struct_value_address): Delete.
7716 (ns32k_gdbarch_init): Update.
7717 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7718 (hppa_gdbarch_init): Update.
7719 * vax-tdep.c: Update copyright.
7720 (vax_extract_struct_value_address): Delete.
7721 (vax_gdbarch_init): Update.
7722
afb18d0f
AC
7723 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7724 * gdbarch.h, gdbarch.c: Re-generate.
7725 * procfs.c (procfs_fetch_registers): Delete reference to
7726 DEPRECATED_NPC_REGNUM.
7727 (procfs_store_registers): Ditto.
7728 * regcache.c (generic_target_write_pc): Simplify.
7729 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7730
a698f53e
AC
7731 * core-sol2.c (fetch_core_registers): Replace
7732 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7733
adc11376
AC
7734 * hppa-tdep.c: Update copyright year.
7735 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7736 NPC_REGNUM.
7737 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7738
b6cb9035
AC
7739 * mips-tdep.c (mips_write_pc): New function.
7740 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7741 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7742 (mips_find_saved_regs, mips_software_single_step: Ditto.
7743 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7744 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7745
6d82d43b
AC
77462004-01-17 Andrew Cagney <cagney@redhat.com>
7747
7748 * mips-tdep.c: Re-indent. Group functions by ABI.
7749
71bd6bd4
AC
77502004-01-17 Andrew Cagney <cagney@redhat.com>
7751
7752 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7753 * gdbarch.c: Re-generate.
7754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7755 DECR_PC_AFTER_BREAK to zero.
7756 * vax-tdep.c (vax_gdbarch_init): Ditto.
7757 * v850-tdep.c (v850_gdbarch_init): Ditto.
7758 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7759 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7760 * sh-tdep.c (sh_gdbarch_init): Ditto.
7761 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7762 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7763 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7764 * mips-tdep.c (mips_gdbarch_init): Ditto.
7765 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7767 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7768 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7769 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7770 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7772 * frv-tdep.c (frv_gdbarch_init): Ditto.
7773 * cris-tdep.c (cris_gdbarch_init): Ditto.
7774 * avr-tdep.c (avr_gdbarch_init): Ditto.
7775 * arm-tdep.c (arm_gdbarch_init): Ditto.
7776 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7777
a02abb62
JB
77782004-01-17 J. Brobecker <brobecker@gnat.com>
7779
7780 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7781 Delete, no longer used.
7782 (read_subrange_type): New function, mostly extracted from
7783 read_array_type().
7784 (read_array_type): Replace extracted code by call to
7785 read_subrange_type().
7786 (dwarf2_get_attr_constant_value): New function.
7787 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7788 (add_partial_symbol): Likewise.
7789 (process_die): Likewise.
7790 (new_symbol): Likewise.
7791 (read_type_die): Likewise.
7792
cf5b2f1b
AC
77932004-01-16 Andrew Cagney <cagney@redhat.com>
7794
7795 * symfile.c: Update copyright year.
7796 (compare_symbols): Delete unused function.
7797 * stabsread.c: Update copyright year.
7798 (lrs_general_complaint): Delete unused function.
7799 (ref_search_value): Ditto.
7800 (get_substring): Delete declaration.
7801 * sh64-tdep.c: Update copyright year.
7802 (sh64_get_gdb_regnum): Delete unused function.
7803 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7804 Delete unused function.
7805
d33b9831
MK
78062004-01-17 Mark Kettenis <kettenis@gnu.org>
7807
7808 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7809 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7810
7aea86e6
AC
78112004-01-16 Andrew Cagney <cagney@redhat.com>
7812
7813 Changes from Peter Schauer.
7814 * rs6000-tdep.c: Update copyright year.
7815 (rs6000_push_dummy_call): Update the stack pointer before
7816 accessing the corresponding stack region.
7817 * rs6000-nat.c: Update copyright year.
7818 (set_host_arch): Set "info.abfd" to "exec_bfd".
7819
26b0da32
MK
78202004-01-15 Mark Kettenis <kettenis@gnu.org>
7821
7822 * blockframe.c: Update copyright year.
7823 (inside_entry_func): Don't treat a zero PC specially.
7824
86fbe6cc
EZ
78252004-01-14 Elena Zannoni <ezannoni@redhat.com>
7826
7827 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7828 variable.
7829 (gcore_create_callback): Ditto. Skip any memory segment that has
7830 no permissions set.
7831
63d06c5c
DC
78322004-01-14 David Carlton <carlton@kealia.com>
7833
7834 Change symbols for C++ nested types to contain the fully qualified
7835 name, if possible. (At least in the DWARF-2 case.) Partial fix
7836 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7837 c++/895.
7838 * c-exp.y (qualified_type): Handle types nested within classes.
7839 * cp-namespace.c: Update comments.
7840 (cp_set_block_scope): Delete #if 0.
7841 (cp_lookup_nested_type): Handle types nested within classes.
7842 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7843 when appropriate.
7844 (add_partial_symbol): Add the name of the enclosing namespace to
7845 types.
7846 (pdi_needs_namespace): New.
7847 (add_partial_namespace): Tweak comment.
7848 (add_partial_structure): New.
7849 (psymtab_to_symtab_1): Initialize processing_current_prefix
7850 here...
7851 (process_die): instead of here.
7852 (read_structure_scope): Try to figure out the name of the class or
7853 namespace that the structure might be defined within.
7854 (read_enumeration): Generate fully-qualified names, if possible.
7855 (read_namespace): Don't set name to NULL.
7856 (die_specification): New.
7857 (new_symbol): Generate fully-qualified names for types.
7858 (read_type_die): Determine appropriate prefix.
7859 (determine_prefix): New.
7860 (typename_concat): New.
7861 (class_name): New.
7862 * valops.c (value_aggregate_elt): Pass NOSIDE to
7863 value_struct_elt_for_reference.
7864 (value_struct_elt_for_reference): Make static, add NOSIDE
7865 parameter, call value_maybe_namespace_elt as a last resort.
7866 (value_namespace_elt): Break out code into
7867 value_maybe_namespace_elt.
7868 (value_maybe_namespace_elt): New.
7869
87783b8b
AC
78702004-01-12 Andrew Cagney <cagney@redhat.com>
7871
7872 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7873 cooked floating-point registers.
7874 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7875 and value_to_register.
7876
6503b91e
AC
78772004-01-13 Andrew Cagney <cagney@redhat.com>
7878
7879 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7880 * gdbarch.c: Re-generate.
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7882 FUNCTION_START_OFFSET.
7883 * v850-tdep.c (v850_gdbarch_init): Ditto.
7884 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7885 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7886 * sh-tdep.c (sh_gdbarch_init): Ditto.
7887 * s390-tdep.c (s390_gdbarch_init): Ditto.
7888 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7889 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7890 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7891 * mips-tdep.c (mips_gdbarch_init): Ditto.
7892 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7893 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7895 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7896 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7897 * i386-tdep.c (i386_gdbarch_init): Ditto.
7898 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7899 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7900 * frv-tdep.c (frv_gdbarch_init): Ditto.
7901 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7902 * cris-tdep.c (cris_gdbarch_init): Ditto.
7903 * avr-tdep.c (avr_gdbarch_init): Ditto.
7904 * arm-tdep.c (arm_gdbarch_init): Ditto.
7905 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7906
ea1dd7bc
DJ
79072004-01-13 Daniel Jacobowitz <drow@mvista.com>
7908
7909 * infrun.c (follow_fork_mode_ask): Remove.
7910 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7911 (follow_fork): Simplify and remove internal error for
7912 follow_fork_mode_ask.
7913 (_initialize_infrun): Update "set follow-fork-mode" help text.
7914
0f0cffd2
AC
79152004-01-13 Andrew Cagney <cagney@redhat.com>
7916
7917 * configure.in: Update copyright year.
7918 (build_warnings): Add -Wunused-label.
7919 * configure: Re-generate.
7920
de38af99
AC
79212004-01-12 Andrew Cagney <cagney@redhat.com>
7922
954a7fba
AC
7923 * exec.h (exec_ops): Make "extern".
7924
de38af99
AC
7925 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7926 the function is void.
7927 (mips_pseudo_register_write): Ditto.
7928
1a111ce3
AC
79292004-01-12 Andrew Cagney <cagney@redhat.com>
7930
7931 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7932 call. Never defined.
7933 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7934 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7935 (struct sparc_gregset, struct regcache): Ditto.
7936 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7937
48efe704
AC
79382004-01-12 Andrew Cagney <cagney@redhat.com>
7939
7940 * mi/ChangeLog: Delete file. Renamed to ...
7941 * mi/ChangeLog-1999-2003: New file.
7942 * tui/ChangeLog: Delete file. Renamed to ...
7943 * tui/ChangeLog-1998-2003: New file.
fe61caab 7944
a54124c5
MK
79452004-01-11 Mark Kettenis <kettenis@gnu.org>
7946
2ca62865
MK
7947 * sparc64nbsd-tdep.c: Include "regset.h".
7948 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7949 Remove variables.
7950 (fetch_core_registers): Remove function.
7951 (sparc64nbsd_core_fns): Remove variable.
7952 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7953 functions.
7954 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7955 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7956 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7957
ca9d58e9
MK
7958 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7959 sparc_extract_struct_value_address.
7960 (sparc32_gdbarch_init): Set extract_struct_value_address.
7961 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7962 function.
7963 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7964 return_value_on_stack.
7965
3cc87ec0
MK
7966 * NEWS: Mention that %cs and %ss have been added to the AMD64
7967 configurations
7968
5bf00f29
MK
7969 * frame.c: Update copyright year.
7970 (get_prev_frame): Improve comment.
7971
4f7ec84e
MK
7972 * sparc64fbsd-tdep.c: Include "regset.h".
7973 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7974 Remove variables.
7975 (fetch_core_registers): Remove function.
7976 (sparc64fbsd_core_fns): Remove variable.
7977 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7978 functions.
7979 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7980 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 7981 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 7982
4e7b0cd3
MK
7983 * sparcnbsd-tdep.c: Include "regset.h".
7984 (fetch_core_registers): Remove function.
7985 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7986 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7987 functions.
7988 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7989 TDEP->fpregset.
46b58ce9 7990 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 7991
a54124c5
MK
7992 * sparc-tdep.h (struct regset): Provide opaque declaration.
7993 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7994 fpregset and sizeof_fpregset members.
7995 * sparc-tdep.c (struct regset): Provide opaque declaration.
7996 (sparc_regset_from_core_section): New function.
7997 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7998 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7999 Set regset_from_core_section when appropriate.
8000
29ff87c5
MK
80012004-01-10 Mark Kettenis <kettenis@gnu.org>
8002
79b1ab3d
MK
8003 * x86-64-tdep.c (amd64_non_pod_p): New function.
8004 (amd64_classify_aggregate): Return class memory for non-POD
8005 C++ structure types.
8006
6470d250
MK
8007 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
8008 argument. Use it to reserve a register if necessary.
8009 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
8010 amd64_push_arguments.
8011
562c50c2
MK
8012 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
8013
af233647
MK
8014 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
8015 register numbers in comments.
8016 * x86-64-tdep.h: Update copyright year.
8017 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
8018 Adjust for addition of %cs and %ss.
8019 * amd64fbsd-nat.c: Update copyright year.
8020 (reg_offset): Add register offsets for %cs and %ss.
8021 * amd64fbsd-tdep.c: Update copyright year.
8022 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
8023 (amd64fbsd_sc_reg_offset): Likewise.
8024 * x86-64-linux-nat.c: Update copyright year.
8025 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
8026 and %ss.
8027 * amd64nbsd-nat.c: Update copyright year.
8028 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
8029 * amd64nbsd-tdep.c: Update copyright year.
8030 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
8031 * x86-64-linux-tdep.c: Update copyright year.
8032 (user_to_gdb_regmap): Add mapping for %cs and %ss.
8033 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
8034 * regformats/reg-x86-64.dat: Add %cs and %ss.
8035
29ff87c5
MK
8036 * blockframe.c (inside_entry_func): Reformat. Introduce new local
8037 variables to prevent long lines. Update comments to reflect
8038 reality.
8039
38d518c9
EZ
80402004-01-09 David Carlton <carlton@kealia.com>
8041
8042 Checked in by Elena Zannoni <ezannoni@redhat.com>.
8043 * dwarf2read.c (read_namespace): Pull out name-generating code
8044 into namespace_name. Rename previous_namespace to previous_prefix
8045 and processing_current_namespace to processing_current_prefix..
8046 (namespace_name): New function.
8047 (add_partial_symbol): Substitute uses of pdi->name with
8048 actual_name.
8049 * cp-support.h: Rename processing_current_namespace to
8050 processing_current_prefix.
8051 Update copyright year.
8052 * cp-namespace.c: Rename processing_current_namespace to
8053 processing_current_prefix.
8054 Update copyright year.
fe61caab 8055
1e4728e7
AC
80562004-01-09 Andrew Cagney <cagney@redhat.com>
8057
8058 * jv-valprint.c, ser-unix.c: Add missing copyright years.
8059
c77c642a
MK
80602004-01-09 Mark Kettenis <kettenis@gnu.org>
8061
8062 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
8063 complaining.
8064 (process_one_symbol): Deal with N_PATCH stabs.
8065
b44e9041
EZ
80662004-01-09 Elena Zannoni <ezannoni@redhat.com>
8067
8068 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
8069 ifdeffed code.
8070 Update copyright year.
38d518c9 8071
eccfb640
MC
80722004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8073
8074 * config/pa/tm-hppa.h: Update extern declarations for
8075 hppa32_hpux_frame_saved_pc_in_sigtramp,
8076 hppa32_hpux_frame_base_before_sigtramp, and
8077 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
8078
848c5feb
MC
80792004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8080
8081 * config/pa/tm-hppah.h: Update copyright years.
8082
3cc5d663
AC
80832004-01-08 Andrew Cagney <cagney@redhat.com>
8084
8085 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
8086 (mips_o32_reg_struct_has_addr): Delete function.
8087 (mips_gdbarch_init): Update.
8088 (mips_extract_struct_value_address): Delete function.
8089
bfec0b41
JJ
80902004-01-08 David Mosberger <davidm@hpl.hp.com>
8091
8092 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
8093 reality.
8094
16e109ca
AC
80952004-01-07 Andrew Cagney <cagney@redhat.com>
8096
6214a8a1
AC
8097 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
8098 architecture's elf flags (when available).
8099
8d5838b5
AC
8100 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
8101 FPU to the start, check the MIPS FPU when looking for an old
8102 architecture.
8103 (set_mipsfpu_single_command): Update the architecture.
8104 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
8105
480d3dd2
AC
8106 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
8107 (mips_mask_address_p): Add "tdep" parameter.
8108 (show_mask_address, mips_addr_bits_remove): Update.
8109 (mips_dump_tdep): Update.
8110 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
8111 (MIPS_STACK_ARGSIZE): Delete macro.
8112 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
8113 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
8114 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
8115 (mips_dump_tdep): Update.
8116 (MIPS_SAVED_REGSIZE): Delete macro.
8117 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
8118 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
8119 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
8120 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
8121 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
8122 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
8123 (mips_pop_frame, return_value_location): Update.
8124 (mips_n32n64_return_value, mips_dump_tdep): Update.
8125
ec03c1ac
AC
8126 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
8127 MIPS ABI.
8128
16e109ca
AC
8129 * mips-tdep.c: Update copyright.
8130 (mips_gdbarch_init): Merge two code blocks handling the register
8131 name and number layout.
8132
15255275
MS
81332004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
8134
8135 * tracepoint.c (validate_actionline): Fix segv at EOF
8136
9f9057da
MC
81372004-01-07 Michael Chastain <mec.gnu@mindspring.com>
8138
8139 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
8140 properly for static fields.
8141
0127c0d3 81422004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 8143 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
8144
8145 * disasm.c: Update copyright to include 2004.
8146 (do_mixed_source_and_assembly): For uiout asm list
8147 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 8148 NULL and do so prior to loop. Only reset when we close off
0127c0d3 8149 the tuple/list. Move check for whether to close off the
fe61caab 8150 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
8151 on each loop iteration.
8152
5269965e
AC
81532004-01-05 Andrew Cagney <cagney@redhat.com>
8154
54f1137d
AC
8155 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
8156 should be a switch case and not a label.
8157 * mips-tdep.c (mips32_next_pc): Delete unused labels
8158 "greater_equal_branch" and "less_zero_branch".
8159 * jv-valprint.c (java_print_value_fields): Delete unused label
8160 "flush_it".
8161
5269965e
AC
8162 * target.c (unpush_target): Only close a target that is in the
8163 target stack.
8164
dbc22fa1
MK
81652004-01-05 Mark Kettenis <kettenis@gnu.org>
8166
9515395e
MK
8167 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
8168 address from [sp + 64] instead of %o2.
8169
dbc22fa1
MK
8170 * frame.c (get_prev_frame): Don't try to unwind the PC. This
8171 fixes PR backtrace/1476.
8172
5439edaa
AC
81732004-01-05 Andrew Cagney <cagney@redhat.com>
8174
8175 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8176 move to start of file.
8177 * i386-tdep.h (struct regcache): Add opaque declaration.
8178 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8179 declaration.
8180 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8181 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8182 * win32-nat.c (fake_create_process): Use ISO C style definition.
8183 * stabsread.c (define_symbol): Delete #ifndef
8184 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8185 stabs_argument_has_addr call, macro never defined.
8186
19061abe
MC
81872004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8188
8189 * op50-rom.c: Delete.
8190 * w89k-rom.c: Delete.
8191 * Makefile.in: Remove references.
8192
e53bef9f
MK
81932004-01-04 Mark Kettenis <kettenis@gnu.org>
8194
8195 * x86-64-tdep.c: Update copyright year.
8196 (struct amd64_register_info): Rename from x86_64_register_info.
8197 (amd64_register_info): Rename from x86_64_register_info.
8198 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8199 (amd64_register_name): Rename from x86_64_register_name.
8200 (amd64_register_type): Rename from x86_64_register_type.
8201 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8202 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8203 (amd64_dwarf_reg_to_regnum): Rename from
8204 x86_64_dwarf_reg_to_regnum.
8205 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8206 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8207 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8208 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8209 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8210 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8211 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8212 (amd64_frame_cache): Rename from x86_64_frame_cache.
8213 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8214 (amd64_frame_prev_register): Rename from
8215 x86_64_frame_prev_register.
8216 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8217 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8218 (amd64_sigtramp_frame_cache): Rename from
8219 x86_64_sigtramp_frame_cache.
8220 (amd64_sigtramp_frame_prev_register): Rename from
8221 x86_64_sigtramp_frame_prev_register.
8222 (amd64_sigtramp_frame_unwind): Rename from
8223 x86_64_sigtramp_frame_unwind.
8224 (amd64_sigtramp_frame_sniffer): Rename from
8225 x86_64_sigtramp_frame_sniffer.
8226 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8227 (amd64_frame_base): Rename from x86_64_frame_base.
8228 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8229 (amd64_frame_align): Rename from x86_64_frame_align.
8230 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8231 (amd64_regset_from_core_section): Rename from
8232 x86_64_regset_from_core_section.
8233 (x86_64_init_abi): Update comments.
8234
fca6aa58
NR
82352004-01-04 Nick Roberts <nick@nick.uklinux.net>
8236
8237 * MAINTAINERS (write after approval): Add myself.
8238
8ada74e3
MK
82392004-01-04 Mark Kettenis <kettenis@gnu.org>
8240
8241 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8242 `float' arguments.
8243
5154b0cd
MK
82442004-01-04 Mark Kettenis <kettenis@gnu.org>
8245
8246 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8247 such that it mentions a specific version of GCC that exhibits this
8248 bug.
8249
fb316966
MK
82502004-01-03 Mark Kettenis <kettenis@gnu.org>
8251
200cc553
MK
8252 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8253 structure that has a single `float' member, store it in %f1 in
8254 addition to %f0.
8255
e226a4a0
MK
8256 * sparc-sol2-nat.c: Add missing '\'.
8257
b9d4c5ed
MK
8258 * sparc-tdep.c (sparc32_return_value): New function.
8259 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8260 Remove functions.
8261 (sparc32_gdbarch_init): Set return_value, don't set
8262 extract_return_value, store_return_value, use_struct_convention
8263 and return_value_on_stack.
8264
fb316966
MK
8265 * sparc-sol2-nat.c: Add missing ')'.
8266
1af510a8
JB
82672004-01-03 J. Brobecker <brobecker@gnat.com>
8268
8269 * infrun.c (handle_step_into_function): New function.
8270 (handle_inferior_event): Extract out some code into the new
8271 function above.
8272
5cf4d23a
JB
82732004-01-03 J. Brobecker <brobecker@gnat.com>
8274
8275 * infrun.c (handle_inferior_event): Move the declaration of
8276 real_stop_pc inside the if blocks where it is used.
8277
60af1db2
MK
82782004-01-03 Mark Kettenis <kettenis@gnu.org>
8279
8280 * sparc64-tdep.c (sparc64_16_byte_align_p)
8281 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8282 Use check_typedef to get subtypes of structures and unions.
8283 (sparc64_store_return_value): Fix calculation of the appropriate
8284 offset into VALBUF when storing a structure or union.
8285 (sparc64_return_value): New function.
8286 (sparc64_use_struct_convention): Remove function.
8287 (sparc64_init_abi): Set return_value, don't set
8288 extract_return_value, store_return_value and
8289 use_struct_convention.
8290
1a901d3f
EZ
82912004-01-03 Eli Zaretskii <eliz@elta.co.il>
8292
8293 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8294 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8295 gdb/config/alpha/xm-alphaosf.h,
8296 gdb/config/powerpc/tm-ppcle-eabi.h,
8297 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8298 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8299 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8300 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8301 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8302 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8303 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8304 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8305 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8306 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8307 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8308 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8309 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8310 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8311 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8312 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8313 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8314 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8315 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8316 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8317 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8318 Remove lines for .cvsignore files.
8319
ef52e463
JB
83202004-01-03 J. Brobecker <brobecker@gnat.com>
8321
8322 * infrun.c: Back out the previous change.
8323
cb1bf9dc
MK
83242004-01-03 Mark Kettenis <kettenis@gnu.org>
8325
f0424ef6
MK
8326 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8327 sparc-*-sunos4* to the list of REMOVED configurations.
8328
cb1bf9dc
MK
8329 * configure.tgt: Add back sparc-*-vxworks*.
8330 * remote-vxsparc.c: Remove all includes except for "defs.h",
8331 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8332 Include "sparc-tdep.h".
8333 (SPARC_R_G1): New define.
8334 (vxsparc_gregset): New variable.
8335 (ext_format_sparc): Remove extern declaration.
8336 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8337 sparc32_supply_fpregset.
8338 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8339 sparc_collect_rwindow and sparc32_collect_fpregset.
8340 * config/sparc/tm-vxworks.h: New file, based on recently removed
8341 tm-vxsparc.h.
8342 * config/sparc/vxworks.mt: New file, based on recently removed
8343 vxworks.mt.
fe61caab 8344
5e938f9f
JB
83452004-01-03 J. Brobecker <brobecker@gnat.com>
8346
8347 * infrun.c (handle_step_into_function): New function.
8348 (handle_inferior_event): Extract out some code into the new
8349 function above.
8350
386c036b
MK
83512004-01-02 Mark Kettenis <kettenis@gnu.org>
8352
8353 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8354 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8355 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8356 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8357 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8358 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8359 (sparc_nat_h): New variable.
8360 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8361 (tm-sun4os4.h): Remove dependency.
8362 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8363 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8364 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8365 sparc-tdep.o): Update dependencies.
8366 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8367 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8368 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8369 dependencies.
8370 * configure.host: Remove existing sparc-*-lynxos*,
8371 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8372 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8373 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8374 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8375 triplets.
8376 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8377 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8378 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8379 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8380 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8381 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8382 sparc64-*-solaris2* and sparc64-*-* triplets.
8383 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8384 "symtab.h" and "objfiles.h".
8385 (BIAS): Remove define.
8386 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8387 (X_DISP19): Remove macros.
8388 (sparc_fetch_instruction): Remove function.
8389 (struct gdbarch_tdep): Remove definition.
8390 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8391 (sparc_breakpoint_from_pc): Remove function.
8392 (struct sparc64_frame_cache): Remove definition.
8393 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8394 sparc64_unwind_pc): Remove functions.
8395 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8396 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8397 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8398 (sparc64_frame_cache): Change return type to `struct
8399 sparc_frame_cache *'. Simply call sparc_frame_cache.
8400 (sparc64_frame_this_id, sparc64_frame_prev_register,
8401 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8402 instead of `struct sparc64_frame_cache.
8403 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8404 sparc_analyze_control_transfer, sparc_software_single_step,
8405 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8406 _initialize_sparc64_tdep): Remove functions.
8407 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8408 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8409 macros.
8410 (sparc64_supply_gregset, sparc64_collect_gregset,
8411 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8412 (sparc64_init_abi): New function.
8413 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8414 inclusion guard. Include "sparc-tdep.h".
8415 (BIAS): Define.
8416 (r_tstate_offset, r_fprs_offset): New defines.
8417 (enum sparc_regnum): Remove defenition.
8418 (enum sparc64_regnum): Reformat.
8419 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8420 (sparc64_init_abi, sparc64_supply_gregset,
8421 sparc64_collect_gregset, sparc64_supply_fpregset,
8422 sparc64_collect_fpregset): New prototypes.
8423 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8424 Add extern declarations.
8425 (sparc64_sol2_init_abi): New prototype.
8426 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8427 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8428 prototypes.
8429 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8430 "sparnbsd-nat.h".
8431 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8432 functions.
8433 (_initialize_sparc64fbsd_nat): Remove initialization of
8434 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8435 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 8436 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
8437 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8438 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8439 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8440 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8441 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8442 (sparc64fbsd_r_y_offset): Remove variables.
8443 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8444 Make static and const.
8445 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8446 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8447 functions.
8448 (sparc64fbsd_gregset): New variable.
8449 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8450 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8451 and sparc64_supply_fpregset.
8452 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8453 (sparc64fbsd_sigtramp_frame_this_id)
8454 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8455 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8456 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8457 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8458 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8459 * sparcnbsd-tdep.c: Update copyright year. Include
8460 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8461 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8462 "value.h" and "sparcnbsd-tdep.h".
8463 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8464 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8465 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8466 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8467 defines.
8468 (sparcnbsd_gregset): New variable.
8469 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8470 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8471 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8472 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8473 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8474 variables.
8475 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8476 (sparc32nbsd_sigcontext_frame_this_id)
8477 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8478 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8479 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8480 (sparcnbsd_get_longjmp_target_32,
8481 sparcnbsd_get_longjmp_target_64): Remove functions.
8482 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8483 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8484 sparcnbsd_init_elf): Remove.
8485 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8486 (sparcnbsd_elf_init_abi): New functions.
8487 (_initialize_sparcnbsd_tdep): New prototype.
8488 (_initialize_sparnbsd_tdep): Update.
8489 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8490 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8491 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8492 * config/sparc/linux.mh: Update comment.
8493 (XM_FILE, HOST_IPC): Remove variables.
8494 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8495 sparc-linux-nat.o.
8496 * config/sparc/linux.mt: Update comment.
8497 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8498 * config/sparc/nbsd.mt: Reformat.
8499 * config/sparc/nbsd64.mh: Update comment.
8500 (NATDEPFILES): Add sparc-nat.o.
8501 * config/sparc/nbsd64.mt: Update comment.
8502 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8503 (TM_FILE): Set to tm-nbsd.h.
8504 * config/sparc/nbsdelf.mh: Update comment.
8505 (NATDEPFILES): Add sparc-nat.o.
8506 (XM_FILE): Delete.
8507 * config/sparc/nbsdaout.mh: Update comment.
8508 (NATDEPFILES): Add sparc-nat.o
8509 (XM_FILE): Delete.
8510 * config/sparc/nm-linux.h: Update copyright year. Don't include
8511 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8512 inclusion.
8513 (KERNEL_U_SIZE): Remove define.
8514 (kernel_u_size): Remove prototype.
8515 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8516 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8517 "regcache.h".
8518 (CHILD_PREPARE_TO_STORE): Remove define.
8519 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8520 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8521 sparcnbsd-nat.c: Rewrite files.
8522 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8523 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8524 sparcnbsd-tdep.h: Remove files.
8525 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8526 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8527 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8528 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8529 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8530 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8531 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8532 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8533 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8534 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8535 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8536 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8537 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8538 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8539 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8540 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8541 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8542 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8543 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8544
ee84457a
AC
85452004-01-02 Andrew Cagney <cagney@redhat.com>
8546
8547 From 2003-12-18 Kazuhiro Inaoka:
8548 * configure.host: Add m32r-linux target.
8549
0bc2134e
MC
85502004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8551
8552 * top.c (print_gdb_version): Update year to 2004.
8553
89a72f9c
MM
85542004-01-02 Mark Mitchell <mark@codesourcery.com>
8555
8556 * MAINTAINERS: Add myself to the write-after-approval category.
8557
86b013ed
DJ
85582004-01-02 Daniel Jacobowitz <drow@mvista.com>
8559
8560 From Bernardo Innocenti <bernie@develer.com>:
8561 * configure.tgt: Add uClinux target.
8562
e42c9534
AC
85632004-01-02 Andrew Cagney <cagney@redhat.com>
8564
8565 * utils.c (do_my_cleanups): Make static, add forward declaration.
8566 * defs.h (do_my_cleanups): Delete declaration.
8567
162467d3
EZ
85682004-01-02 Eli Zaretskii <eliz@elta.co.il>
8569
8570 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8571 bfd/ChangeLog-0203.
8572
78434e59
MK
85732004-01-02 Mark Kettenis <kettenis@gnu.org>
8574
8575 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8576 in <machine/reg.h>.
8577 * configure, config.in: Regenerate.
8578
48efe704
AC
8579For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8580tui/ChangeLog-1998-2003.
c906108c
SS
8581\f
8582Local Variables:
8583mode: change-log
8584left-margin: 8
8585fill-column: 74
8586version-control: never
8587End:
This page took 1.00626 seconds and 4 git commands to generate.