* configure.in: Use common simulator always. Don't subst sim_gen
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12004-06-26 Mark Kettenis <kettenis@gnu.org>
2
3 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4 (gregset_t, fpregset_t): Remove typedefs.
5 (REG_OFFSET): Rename argument.
6 (amd64bsd_r_reg_offset): Rename from reg_offset.
7 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8 Remove functions.
9 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
10 of reg_offset.
11 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
12
13 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
14
15 * vax-tdep.c: Tweak comment.
16
17 Add OpenBSD/hppa support.
18 * NEWS (New native configurations): Mention OpenBSD/hppa.
19 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
20 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
21 files.
22 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
23 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
24 * configure.host: Add hppa*-*-openbsd*.
25 * configure.tgt: Add hppa*-*-openbsd*.
26
272004-06-25 Andrew Cagney <cagney@gnu.org>
28
29 * defs.h (deprecated_ui_loop_hook): Deprecated.
30 * wince.c (child_wait): Update.
31 * win32-nat.c (child_wait): Update.
32 * v850ice.c (v850ice_wait): Update.
33 * top.c (deprecated_ui_loop_hook): Update.
34 * serial.h: Update.
35 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
36 (do_unix_readchar): Update.
37 * ser-tcp.c (net_open): Update.
38 * remote-sim.c (gdb_os_poll_quit): Update.
39 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
40
412004-06-24 Andrew Cagney <cagney@gnu.org>
42
43 * defs.h (deprecated_pre_add_symbol_hook)
44 (deprecated_post_add_symbol_hook): Deprecated.
45 * symfile.c (symbol_file_add_with_addrs_or_offsets)
46 (symbol_file_add_with_addrs_or_offsets): Update references.
47
482004-06-24 Andrew Cagney <cagney@gnu.org>
49
50 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
51 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
52 * wince.c (ui_loop_hook): Delete extern declaration.
53 * win32-nat.c (ui_loop_hook): Delete extern declaration..
54 * v850ice.c (ui_loop_hook): Delete extern declaration..
55 * ser-unix.c (ui_loop_hook): Delete extern declaration..
56 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
57 * remote-sim.c (ui_loop_hook): Delete extern declaration..
58 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
59 ui_loop_hook declaration.
60
612004-06-24 Andrew Cagney <cagney@gnu.org>
62
63 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
64 entry_func_highpc fields.
65 * objfiles.c (init_entry_point_info): Do not clear
66 entry_func_lowpc and entry_func_highpc.
67 (objfile_relocate): Do not relocate entry_func_lowpc and
68 entry_func_highpc.
69 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
70 entry_func_highpc.
71 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
72 entry_func_highpc.
73 * blockframe.c (legacy_frame_chain_valid): Replace tests against
74 entry_func_lowpc and entry_func_highpc with call to
75 inside_entry_func.
76
772004-06-24 Mark Kettenis <kettenis@gnu.org>
78
79 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
80 quad-precision floating point arguments in registers.
81
822004-06-24 Mark Kettenis <kettenis@gnu.org>
83
84 From Michael Mueller <m.mueller99@kay-mueller.de>:
85 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
86 account.
87
882004-06-22 Jeff Johnston <jjohnstn@redhat.com>
89
90 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
91 to -1.
92 * breakpoint.c (bpstat_stop_status): Move check for ignoring
93 untriggered watchpoints to a separate if clause. Update function
94 comment regarding STOPPED_BY_WATCHPOINT argument.
95
962004-06-22 Jim Blandy <jimb@redhat.com>
97
98 * gdbarch.sh: Doc fix.
99
1002004-06-21 Martin Hunt <hunt@redhat.com>
101 Kevin Buettner <kevinb@redhat.com>
102
103 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
104 * mips-tdep.h (MIPS_SP_REGNUM): Define.
105 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
106 to set_gdbarch_sp_regnum(). Use cooked register number.
107 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
108
1092004-06-21 Andrew Cagney <cagney@gnu.org>
110
111 * gdbarch.sh: When the macro field is empty, do not generate a
112 macro definition. When the macro field is "=", generate the macro
113 name from the upper-case function name.
114 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
115 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
116 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
117 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
118 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
119 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
120 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
121 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
122 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
123 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
124 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
125 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
126 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
127 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
128 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
129 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
130 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
131 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
132 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
133 (DEPRECATED_USE_STRUCT_CONVENTION)
134 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
135 (DEPRECATED_FRAME_INIT_SAVED_REGS)
136 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
137 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
138 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
139 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
140 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
141 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
142 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
143 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
144 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
145 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
146 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
147 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
148 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
149 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
150 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
151 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
152
1532004-06-21 Andrew Cagney <cagney@gnu.org>
154
155 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
156 macro name, and the function rather than macro value. Only wrap
157 macro print statements in #ifdef. Move format logic to where it
158 is needed.
159 * gdbarch.c: Re-generate.
160
161 * gdbarch.sh (read): Delete "print_p" and "description", add
162 "garbage_at_eol". Check for non-empty garbage at end-of-line.
163 Delete references to print_p.
164 (TARGET_ARCHITECTURE): Delete print predicate.
165 * gdbarch.c: Re-generate.
166
167 * gdbarch.sh: Check that multi-arch methods do not provide a
168 macro.
169 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
170 (print_registers_info, print_float_info, print_vector_info)
171 (adjust_breakpoint_address, remote_translate_xfer_address)
172 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
173 (address_class_type_flags_to_name, unwind_sp): Remove the macro
174 name from the multi-arch definition.
175
1762004-06-20 Andrew Cagney <cagney@gnu.org>
177
178 * gdbarch.sh: Sort by the function, instead of macro name.
179 * gdbarch.c: Re-generate.
180
1812004-06-20 Andrew Cagney <cagney@gnu.org>
182
183 * gdbarch.sh: Use the function, instead of macro name in
184 errors and the log file.
185 (return_value): Remove stray ":" in spec.
186
187 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
188 * gdbarch.h, gdbarch.c: Re-generate.
189 * Makefile.in (arch-utils.o): Update dependencies.
190 * values.c (using_struct_return): Move code calling
191 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
192 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
193 to legacy_return_value, simplify.
194 * infcmd.c (print_return_value): Move code calling
195 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
196 to legacy_return_value, simplify.
197 * infcall.c (call_function_by_hand): Move code calling
198 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
199 * arch-utils.c: Update copyright. Include "gdbcore.h".
200 (legacy_return_value): New function.
201 * arch-utils.h: Update copyright.
202 (legacy_return_value): Declare.
203
2042004-06-20 Andrew Cagney <cagney@gnu.org>
205
206 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
207 * gdbarch.h, gdbarch.c: Re-generate.
208 * values.c (using_struct_return): Update call.
209 * mcore-tdep.c: Update comment.
210 * infcall.c (call_function_by_hand): Update comment.
211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
212 * arch-utils.h (always_use_struct_convention): Update.
213 * v850-tdep.c (v850_gdbarch_init): Update.
214 * sh64-tdep.c (sh64_gdbarch_init): Update.
215 * sh-tdep.c (sh_gdbarch_init): Update.
216 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
217 * mips-tdep.c (mips_gdbarch_init): Update.
218 * mcore-tdep.c (mcore_gdbarch_init): Update.
219 * m32r-tdep.c (m32r_gdbarch_init): Update.
220 * ia64-tdep.c (ia64_gdbarch_init): Update.
221 * h8300-tdep.c (h8300_gdbarch_init): Update.
222 * frv-tdep.c (frv_gdbarch_init): Update.
223 * cris-tdep.c (cris_gdbarch_init): Update.
224 * arm-tdep.c (arm_gdbarch_init): Update.
225 * alpha-tdep.c (alpha_gdbarch_init): Update.
226
2272004-06-18 Michael Chastain <mec.gnu@mindspring.com>
228
229 * PROBLEMS: Add more specific information, and a work-around,
230 for PR gdb/1458.
231
2322004-06-18 Andrew Cagney <cagney@gnu.org>
233
234 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
235 * gdbarch.h, gdbarch.c: Re-generate.
236 * ada-lang.c (ada_finish_decode_line_1): Update.
237 * infrun.c (handle_inferior_event): Update.
238 * infcall.c (find_function_addr): Update.
239 * linespec.c (minsym_found): Update.
240 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
241 Update.
242 * blockframe.c (legacy_frameless_look_for_prologue): Update.
243 * cli/cli-cmds.c (disassemble_command): Update.
244 * vax-tdep.c (vax_gdbarch_init): Update.
245
2462004-06-18 Mark Kettenis <kettenis@gnu.org>
247
248 * i386-tdep.c (i386_collect_fpregset): Fix comment.
249
2502004-06-17 Andrew Cagney <cagney@gnu.org>
251
252 GDB 6.1.1 released from the GDB 6.1 branch.
253 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
254 * PROBLEMS: Ditto.
255
2562004-06-16 Daniel Jacobowitz <dan@debian.org>
257
258 PR gdb/1658
259 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
260 operation as a uleb128. Found by Michael Coulter.
261
2622004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
263
264 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
265 make it non-static.
266 * ada-lang.h (task_control_block): declaration moved from ada-task.c
267 to ada-lang.h; this is needed to be able to implement the kill command
268 in multi-task mode.
269 (task_ptid): Ditto.
270 (task_entry): Ditto.
271 (task_list): Ditto.
272 (ada_build_task_list): Ditto.
273
274 * ada-lang.c: Conditionalize routines and data structures related
275 to breakpoints, exceptions, completion, and symbol caching on
276 GNAT_GDB, since these are not yet used in the submitted public sources.
277 (ada_main_name): Editorial: Move definition out of exception-related
278 code.
279
2802004-06-15 Andrew Cagney <cagney@gnu.org>
281
282 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
283 deprecated_pc_in_call_dummy.
284
2852004-06-15 Alan Modra <amodra@bigpond.net.au>
286
287 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
288 bfd_get_section_size_before_reloc or _raw_size.
289 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
290 * dwarf2read.c (dwarf2_locate_sections): Likewise.
291 (dwarf2_read_section): Likewise.
292 * elfread.c (elf_locate_sections): Likewise.
293 * gcore.c (derive_heap_segment): Likewise.
294 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
295 * remote-e7000.c (e7000_load): Likewise.
296 * remote-m32r-sdi.c (m32r_load): Likewise.
297 * remote-mips.c (mips_load_srec): Likewise.
298 (pmon_load_fast): Likewise.
299 * remote.c (compare_sections_command): Likewise.
300 * symfile.c (add_section_size_callback): Likewise.
301 (load_section_callback): Likewise.
302 (pc_in_unmapped_range): Likewise.
303 (pc_in_mapped_range): Likewise.
304 (sections_overlap): Likewise.
305 (list_overlays_command): Likewise.
306 (simple_overlay_update_1): Likewise.
307 (simple_overlay_update): Likewise.
308 * tracepoint.c (remote_set_transparent_ranges): Likewise.
309 * win32-nat.c (core_section_load_dll_symbols): Likewise.
310
3112004-06-14 Randolph Chung <tausq@debian.org>
312
313 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
314 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
315 static.
316 (hppa_hpux_inferior_created): New function.
317 (hppa_hpux_init_abi): Register observer.
318 * symfile.c (hp_cxx_exception_support_initialized)
319 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
320 (symbol_file_add_main_1, symbol_file_clear): Likewise.
321
3222004-06-14 Randolph Chung <tausq@debian.org>
323
324 * MAINTAINERS (Write After Approval): Alphabetize my entry
325 correctly.
326
3272004-06-14 Andrew Cagney <cagney@gnu.org>
328
329 * MAINTAINERS (testsuite): List Michael Chastain as the lead
330 testsuite maintainer.
331
3322004-06-13 Andrew Cagney <cagney@gnu.org>
333
334 * infcmd.c (print_return_value): Fix logic, allow
335 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
336
337 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
338 defining any macros.
339 * gdbarch.h: Re-generate.
340
341 * gdbarch.sh: Delete "level" attribute. Only check for a macro
342 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
343 * gdbarch.h: Re-generate.
344
345 * values.c (generic_use_struct_convention): Don't check gcc_p.
346
347 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
348 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
349 * gdbarch.h, gdbarch.c: Regenerate.
350 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
351 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
353 deprecated_max_register_raw_size and
354 deprecated_max_register_virtual_size.
355 * v850-tdep.c (v850_gdbarch_init): Ditto.
356 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
357 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
358 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
359 * cris-tdep.c (cris_gdbarch_init): Ditto.
360
361 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
362 * gdbarch.h, gdbarch.c: Re-generate.
363 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
364 (m68hc11_use_struct_convention): Delete function.
365 (m68hc11_extract_struct_value_address): Delete function.
366 (m68hc11_return_value): New function.
367 (m68hc11_gdbarch_init): Instead of store_return_value,
368 extract_return_value, return_value_on_stack,
369 deprecated_extract_struct_value_address and use_struct_convention,
370 set return_value.
371 * values.c (using_struct_return): Do not call
372 RETURN_VALUE_ON_STACK.
373 * arch-utils.h (generic_return_value_on_stack_not): Delete
374 declaration.
375 * arch-utils.c (generic_return_value_on_stack_not): Delete
376 function.
377
3782004-06-12 Andrew Cagney <cagney@gnu.org>
379
380 * values.c (register_value_being_returned): Delete function.
381 * infcmd.c (legacy_return_value): Delete function.
382 * infcall.c (call_function_by_hand): Inline
383 "register_value_being_returned", simplify.
384 * values.c (using_struct_return): Update comment, refer to
385 print_return_value instead of register_value_being_returned.
386 * infcmd.c (print_return_value): Inline calls to
387 register_value_being_returned and legacy_return_value. Simplify.
388
3892004-06-11 Randolph Chung <tausq@debian.org>
390
391 * somread.c (som_symtab_read): Exclude gcc local symbols.
392
3932004-06-11 Randolph Chung <tausq@debian.org>
394
395 * infrun.c (handle_inferior_event): Handle the case when a
396 trampoline ends up in the runtime resolver, and if the trampoline
397 has no name. Rearrange the code so that all the trampoline
398 processing happens before other step-out-of-range handling.
399
4002004-06-11 Martin Hunt <hunt@redhat.com>
401
402 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
403 has no fpu.
404
4052004-06-10 Andrew Cagney <cagney@gnu.org>
406
407 * blockframe.c (legacy_inside_entry_func): Delete.
408 (legacy_frame_chain_valid): Inline call to
409 legacy_inside_entry_func, simplify.
410
4112004-06-10 Bob Rossi <bob@brasko.net>
412
413 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
414 * dwarf2read.c (partial_die_info): Add dirname field.
415 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
416 (read_partial_die): Save away DW_AT_comp_dir.
417 * defs.h (symtab_to_filename): Removed.
418 * source.c (find_and_open_source): Added.
419 (open_source_file): Just calls find_and_open_source.
420 (symtab_to_filename): Removed.
421 (symtab_to_fullname, psymtab_to_fullname): Added.
422 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
423 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
424 symtab_to_filename.
425 * symtab.h (partial_symtab): Add dirname field.
426 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
427 (mi_cmd_file_list_exec_source_file): Call new function
428 symtab_to_fullname to find fullname.
429 (mi_cmd_file_list_exec_source_files): Added.
430 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
431 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
432
4332004-06-10 Andrew Cagney <cagney@gnu.org>
434
435 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
436 to generic_use_struct_convention, the default value.
437
438 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
439 of abort.
440
441 * ns32k-tdep.c (ns32k_push_arguments): New function.
442 (ns32k_gdbarch_init): Set deprecated_push_arguments.
443 * infcall.c (call_function_by_hand): Call error instead of
444 legacy_push_arguments.
445 * value.h (legacy_push_arguments): Delete declaration.
446 * valops.c (legacy_push_arguments): Delete function.
447 (value_push): Delete function.
448
4492004-06-10 Brian Ford <ford@vss.fsi.com>
450
451 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
452 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
453 info.
454 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
455
4562004-06-10 Andrew Cagney <cagney@gnu.org>
457
458 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
459 * gdbarch.h, gdbarch.c: Re-generate.
460 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
461 parameters.
462 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
463 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
464 deprecated_pc_in_call_dummy instead of
465 DEPRECATED_PC_IN_CALL_DUMMY.
466 (arm_skip_prologue): Ditto.
467 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
468 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
469 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
470 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
471 Ditto.
472 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
473 (sh64_init_extra_frame_info, sh64_get_saved_register)
474 (sh64_pop_frame): Ditto.
475 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
476 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
477 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
478 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
479 (h8300_pop_frame): Ditto.
480 * blockframe.c (legacy_inside_entry_func)
481 (legacy_frame_chain_valid): Ditto.
482 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
483 to deprecated_pc_in_call_dummy.
484
4852004-06-09 Andrew Cagney <cagney@gnu.org>
486
487 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
488 provide a default value.
489 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
490 * gdbarch.h, gdbarch.c: Re-generate.
491 * arch-utils.c (generic_convert_register_p): Rename
492 legacy_convert_register_p
493 (legacy_register_to_value, legacy_value_to_register): Delete
494 functions.
495 * arch-utils.h (generic_convert_register_p): Rename
496 legacy_convert_register_p.
497 (legacy_register_to_value, legacy_value_to_register): Delete
498 declarations.
499
500 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
501 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
502 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
503 * gdbarch.h, gdbarch.c: Re-generate.
504 * infcmd.c (default_print_registers_info): Simplify.
505 * findvar.c (value_of_register): Simplify.
506 * mi/mi-main.c (get_register): Simplify.
507 * arch-utils.c (legacy_convert_register_p): Always return 0.
508 (legacy_register_to_value, legacy_value_to_register): Always call
509 internal_error.
510
511 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
512 #ifdef CLEAR_INSN_CACHE code.
513 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
514 Delete #ifdef CLEAR_DEFERRED_STORES code.
515
516 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
517
518 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
519 copyright.
520 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
521
522 * config/mips/mipsv4.mh: Delete file.
523
524 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
525 unreferenced macro.
526 (hpread_adjust_stack_address): Delete declaration.
527
5282004-06-08 Andrew Cagney <cagney@gnu.org>
529
530 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
531 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
532 PTRACE_ATTACH / PTRACE_DETACH available call error.
533 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
534 * infttrace.c (update_thread_state_after_attach, attach, detach):
535 Remove #ifdef wrappers.
536 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
537 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
538 * config/nm-bsd.h (ATTACH_DETACH): Delete.
539 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
540 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
541 * config/nm-linux.h (ATTACH_DETACH): Delete.
542 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
543 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
544 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
545 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
546 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
547
5482004-06-08 Corinna Vinschen <vinschen@redhat.com>
549
550 * configure.in: Set $configdir to the right OS specific value.
551 Use value when setting $tcldir and $tkdir.
552 * configure: Regenerate.
553
5542004-06-06 Paul Brook <paul@codesourcery.com>
555
556 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
557 records.
558
5592004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
560
561 * ada-lang.c (lookup_symbol_in_language): New function to allow
562 re-use of another language's symbol lookup code. (Placed here
563 temporarily while Ada support is being integrated into the public
564 tree).
565 (restore_language): New auxiliary function for
566 lookup_symbol_in_language.
567 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
568 temporarily while Ada support is being integrated into the public
569 tree).
570
5712004-06-08 Alexandre Oliva <aoliva@redhat.com>
572
573 * Makefile.in (check//%): New.
574
575 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
576 (mn10300_store_return_value): Rewrite.
577 (mn10300_type_align): New.
578 (mn10300_use_struct_convention): Rewrite.
579 (mn10300_return_value): New, using all of the above.
580 (mn10300_pop_frame_regular): Add saved_regs_size.
581 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
582
583 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
584 regs if PC is on movm.
585
5862004-06-07 Jim Blandy <jimb@redhat.com>
587
588 Add native Linux support for the PowerPC E500.
589 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
590 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
591 all architectures except the E500.
592 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
593 #definitions.
594 (struct gdb_evrregset_t): New type.
595 (have_ptrace_getsetevrregs): New variable.
596 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
597 fetch_spe_registers): New functions.
598 (fetch_register): Call fetch_spe_register as appropriate.
599 Assert that we're only passed raw register numbers.
600 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
601 Don't fetch gprs if they're pseudoregisters.
602 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
603 store_spe_registers): New functions.
604 (store_register): Call store_spe_register as appropriate.
605 Assert that we're only passed raw register numbers.
606 (store_ppc_registers): Call store_spe_registers as appropriate.
607 Don't store gprs if they're pseudoregisters.
608
6092004-06-07 Jeff Johnston <jjohnstn@redhat.com>
610
611 * thread-db.c (thread_get_info_callback): Fill in the thread_info
612 struct if one exists, even if we are dealing with a zombie thread.
613
6142004-06-07 Andrew Cagney <cagney@gnu.org>
615
616 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
617 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
618 Rename PC_REQUIRES_RUN_BEFORE_USE.
619 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
620 #ifdef.
621
6222004-06-07 Randolph Chung <tausq@debian.org>
623
624 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
625 unwinding after sp has been saved to the stack but before the end
626 of the prologue, and after the fp has been modified but before it has
627 been saved to the stack.
628 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
629 Remove superfluous definitions.
630 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
631
6322004-06-07 Guy Martin <gmsoft@gentoo.org>
633
634 Committed by Randolph Chung.
635 * hppa-linux-nat.c: Include the correct version of the header file
636 depending on the kernel version.
637
6382004-06-06 Randolph Chung <tausq@debian.org>
639
640 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
641 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
642
6432004-06-06 Randolph Chung <tausq@debian.org>
644
645 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
646 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
647 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
648 * hppa-tdep.c (hppa_symbol_address): New function definition.
649 * hppa-tdep.h (hppa_symbol_address): New function declaration.
650
6512004-06-06 Randolph Chung <tausq@debian.org>
652
653 * hppa-tdep.h (struct value): Forward declaration.
654 (gdbarch_tdep): Define tdep find_global_pointer method.
655 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
656 associated with the function we are trying to call, and write it
657 to the gp register.
658 (hppa32_convert_from_funct_ptr_addr): New function.
659 (hppa_find_global_pointer): New function.
660 (hppa_gdbarch_init): Set default find_global_pointer method; set
661 convert_from_func_ptr_addr method.
662 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
663 (hppa_linux_init_abi): Set find_global_pointer method.
664 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
665
6662004-06-06 Randolph Chung <tausq@debian.org>
667
668 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
669 to struct value *function.
670 * gdbarch.c: Regenerate.
671 * gdbarch.h: Likewise.
672 * infcall.c (call_function_by_hand): Pass entire function value
673 to push_dummy_call.
674
675 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
676 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
677 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
678 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
679 * arm-tdep.c (arm_push_dummy_call): Likewise.
680 * avr-tdep.c (avr_push_dummy_call): Likewise.
681 * cris-tdep.c (cris_push_dummy_call): Likewise.
682 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
683 * frv-tdep.c (frv_push_dummy_call): Likewise.
684 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
685 * hppa-tdep.c (hppa32_push_dummy_call)
686 (hppa64_push_dummy_call): Likewise.
687 * i386-tdep.c (i386_push_dummy_call): Likewise.
688 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
689 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
690 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
691 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
692 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
693 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
694 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
695 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
696 (ppc64_sysv_abi_push_dummy_call): Likewise.
697 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
698 (ppc64_sysv_abi_push_dummy_call): Likewise.
699 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
700 * s390-tdep.c (s390_push_dummy_call): Likewise.
701 * sh-tdep.c (sh_push_dummy_call_fpu)
702 (sh_push_dummy_call_nofpu): Likewise.
703 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
704 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
705 * vax-tdep.c (vax_push_dummy_call): Likewise.
706
7072004-06-04 Jim Blandy <jimb@redhat.com>
708
709 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
710 gdbarch argument to register_size.
711
712 * rs6000-tdep.c (rs6000_store_return_value): Use
713 regcache_cooked_write_part instead of
714 deprecated_write_register_bytes.
715 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
716 not gdbarch_deprecated_store_return_value.
717
718 * ppc-linux-nat.c (store_register, fetch_register): Remove
719 incorrect assertions. Simplify and generalize handling of
720 transfers whose sizes are not multiples of, or less than, sizeof
721 (PTRACE_XFER_TYPE).
722
7232004-06-04 Jeff Johnston <jjohnstn@redhat.com>
724
725 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
726 as a new thread event.
727 * thread-db.c (thread_get_info_callback): If the thread is a
728 zombie, return TD_THR_ZOMBIE.
729 (thread_from_lwp): If thread_get_info_callback returns
730 TD_THR_ZOMBIE, check if the thread is still on the thread list
731 and return a -1 ptid if not found.
732 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
733 change the status to TARGET_WAITKIND_SPURIOUS.
734
7352004-06-03 Corinna Vinschen <vinschen@redhat.com>
736
737 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
738 double values in little endian mode.
739
7402004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
741
742 Committed by Andrew Cagney.
743 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
744 after last enum constant to avoid error from IBM C
745 compiler.
746
7472004-06-02 Jim Blandy <jimb@redhat.com>
748
749 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
750 to 'message', and make it local to the lone block that uses it.
751
752 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
753
7542004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
755
756 * ada-exp.y: Synchronize with current ACT sources.
757 * ada-lang.c: Ditto.
758 * ada-lang.h: Ditto.
759 * ada-lex.l: Ditto.
760 * ada-tasks.c: Ditto.
761 * ada-typeprint.c: Ditto.
762 * ada-valprint.c: Ditto.
763
7642004-06-01 Jim Blandy <jimb@redhat.com>
765
766 * ppc-tdep.h: Delete unused 'regoff' member.
767 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
768
7692004-06-01 Michael Chastain <mec.gnu@mindspring.com>
770
771 Fix PR symtab/1661.
772 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
773 (hpread_read_struct_type): Likewise.
774
7752004-06-01 Andrew Cagney <cagney@gnu.org>
776
777 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
778 instead of xasprintf.
779 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
780 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
781 (mi_cmd_data_list_register_names)
782 (mi_cmd_data_list_changed_registers)
783 (mi_cmd_data_list_register_values)
784 (get_register, mi_cmd_data_write_register_values)
785 (mi_cmd_data_write_register_values)
786 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
787 (mi_cmd_target_download, mi_cmd_target_select)
788 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
789 (mi_execute_cli_command, mi_execute_async_cli_command)
790 (mi_execute_async_cli_command): Ditto.
791 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
792 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
793
794 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
795 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
796 error_last_message instead of mi_error_last_message.
797 * mi/mi-main.c (mi_error_last_message): Delete function.
798
799 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
800 "invalid number of columns" error. Delete redundant "out of
801 memory" check.
802
8032004-05-31 Mark Kettenis <kettenis@gnu.org>
804
805 * i386bsd-nat.c: Don't include <sys/procfs.h>.
806 (gregset_t, fpregset_t): Remove typedefs.
807 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
808 (REG_OFFSET): Rename argument.
809 (i386bsd_r_reg_offset): Rename from reg_offset.
810 (REG_ADDR): Remove macro.
811 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
812 functions.
813 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
814 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
815 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
816 instead of supply_gregset.
817 (store_inferior_registers): Use `struct reg' and `struct fpreg'
818 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
819 instead of fill_gregset.
820 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
821
822 * i386bsd-nat.c: Don't include "gregset.h".
823 (supply_gregset, fill_gregset): Make static.
824 (supply_fpregset, fill_fpregset): Remove.
825 * Makefile.in (i386bsd-nat.o): Update dependencies.
826
8272004-05-30 Mark Kettenis <kettenis@gnu.org>
828
829 * fbsd-proc.c: Include "regcache.h", "regset.h" and
830 "gdb_assert.h". Con't include "gregset.h".
831 (fbsd_make_corefile_notes): Use regset-based core file support
832 instead off fill_gregset and fill_fpregset.
833 * Makefile.in (fbsd-proc.o): Update dependencies.
834
835 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
836 instructions.
837 (m88k_frame_prev_register): Simplify code a bit.
838
839 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
840 (amd64_collect_fpregset): New function.
841 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
842
843 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
844
845 * i386-tdep.c (i386_supply_gregset): Adjust comment.
846 (i386_collect_gregset): New function.
847 (i386_supply_fpregset): Adjust comment.
848 (i386_collect_fpregset): New function.
849 (i386_regset_from_core_section): Use i386_collect_gregset and
850 i386_collect_fpregset.
851
852 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
853 handle VALUEP being null.
854
855 * regset.h (collect_regset_ftype): Unconstify fourth argument.
856
8572004-05-29 Mark Kettenis <kettenis@gnu.org>
858
859 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
860
861 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
862 assembler in OpenBSD 3.5-current.
863 (amd64obsd_sigcontext_addr): Likewise.
864
8652004-05-28 Jim Blandy <jimb@redhat.com>
866
867 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
868 register set, so our regcache isn't declared "legacy" and our E500
869 pseudoregister read and write functions aren't ignored.
870 (rs6000_register_byte, rs6000_register_raw_size,
871 rs6000_register_virtual_type, rs6000_register_convertible,
872 rs6000_register_convert_to_virtual,
873 rs6000_register_convert_to_raw): Deleted.
874 (rs6000_register_type, rs6000_convert_register_p,
875 rs6000_register_to_value, rs6000_value_to_register): New
876 functions.
877 (rs6000_gdbarch_init): Don't register
878 gdbarch_deprecated_register_size,
879 gdbarch_deprecated_register_bytes,
880 gdbarch_deprecated_register_byte,
881 gdbarch_deprecated_register_raw_size,
882 gdbarch_deprecated_register_virtual_type,
883 gdbarch_deprecated_register_convertible,
884 gdbarch_deprecated_register_convert_to_virtual, or
885 gdbarch_deprecated_register_convert_to_raw methods. Instead,
886 register gdbarch_register_type, gdbarch_convert_register_p,
887 gdbarch_register_to_value, and gdbarch_value_to_register methods.
888
8892004-05-26 Jim Blandy <jimb@redhat.com>
890
891 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
892 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
893 functions, updated to match the register numberings used in GCC.
894 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
895 rs6000_dwarf2_reg_to_regnum as register number conversions
896 functions for STABS and Dwarf2.
897
8982004-05-26 Randolph Chung <tausq@debian.org>
899
900 * infttrace.h (target_waitkind): Forward declare type instead of pulling
901 in header file.
902
9032004-05-25 Joel Brobecker <brobecker@gnat.com>
904
905 * NEWS: Document new "start" command.
906
9072004-05-25 Randolph Chung <tausq@debian.org>
908
909 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
910 hppa-linux.
911
9122004-05-25 Randolph Chung <tausq@debian.org>
913
914 * hppa-hpux-tdep.c (offsetof): Define.
915 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
916 (hppa32_hpux_frame_base_before_sigtramp)
917 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
918 (hppa64_hpux_frame_saved_pc_in_sigtramp)
919 (hppa64_hpux_frame_base_before_sigtramp)
920 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
921 functions.
922 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
923 (hppa_hpux_sigtramp_frame_unwind_cache)
924 (hppa_hpux_sigtramp_frame_this_id)
925 (hppa_hpux_sigtramp_frame_prev_register)
926 (hppa_hpux_sigtramp_frame_unwind)
927 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
928 (hppa_hpux_init_abi): Register sigtramp unwinder.
929 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
930
9312004-05-25 Randolph Chung <tausq@debian.org>
932
933 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
934 and multiple stack unwinds.
935 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
936
9372004-05-25 Andrew Cagney <cagney@gnu.org>
938
939 * symfile.h (symbol_file_add_from_memory): Delete declaration.
940 * symfile-mem.h: Delete file.
941 * symfile-mem.c: Do not include "symfile-mem.h".
942 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
943 "struct bfd_section". When an error do not bother returning NULL.
944 (add_symbol_file_from_memory_command): Use "struct bfd" and
945 "struct bfd_section".
946 * Makefile.in (symfile_mem_h): Delete.
947 (symfile-mem.o): Update dependencies.
948
9492004-05-25 Nick Roberts <nickrob@gnu.org>
950
951 * gdb-mi.el: New file.
952
9532004-05-25 Andrew Cagney <cagney@gnu.org>
954
955 * inftarg.c: Include "observer.h".
956 (child_attach, child_create_inferior): Notify inferior_created.
957 * corelow.c: Include "observer.h".
958 (core_open): Notify inferior_created.
959 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
960
9612004-05-25 Andrew Cagney <cagney@gnu.org>
962
963 * target.h (struct target_ops): Add from_tty to
964 to_create_inferior.
965 (target_create_inferior, find_default_create_inferior): Update.
966 * infcmd.c (run_command): Update.
967 * wince.c (child_create_inferior): Update.
968 * win32-nat.c (child_create_inferior): Update.
969 * uw-thread.c (uw_thread_create_inferior): Update.
970 * thread-db.c (thread_db_create_inferior): Update.
971 * target.c (debug_to_create_inferior)
972 (find_default_create_inferior): Update.
973 (maybe_kill_then_create_inferior): Update.
974 * sol-thread.c (sol_thread_create_inferior): Update.
975 * remote.c (extended_remote_async_create_inferior)
976 (extended_remote_create_inferior): Update.
977 * remote-vx.c (vx_create_inferior): Update.
978 * remote-st.c (st2000_create_inferior): Update.
979 * remote-sim.c (gdbsim_create_inferior): Update.
980 * remote-sds.c (sds_create_inferior): Update.
981 * remote-rdp.c (remote_rdp_create_inferior): Update.
982 * remote-rdi.c (arm_rdi_create_inferior): Update.
983 * remote-m32r-sdi.c (m32r_create_inferior): Update.
984 * remote-e7000.c (e7000_create_inferior): Update.
985 * procfs.c (procfs_create_inferior): Update.
986 * ocd.c (ocd_create_inferior): Update.
987 * ocd.h (ocd_create_inferior): Update.
988 * nto-procfs.c (procfs_create_inferior): Update.
989 * monitor.c (monitor_create_inferior): Update.
990 * lin-lwp.c (lin_lwp_create_inferior): Update.
991 * inftarg.c (child_create_inferior): Update.
992 * hpux-thread.c (hpux_thread_create_inferior): Update.
993 * gnu-nat.c (gnu_create_inferior): Update.
994
9952004-05-25 Andrew Cagney <cagney@gnu.com>
996
997 * MAINTAINERS: Update e-mail address.
998
9992004-05-24 Randolph Chung <tausq@debian.org>
1000
1001 * thread.c (info_threads_command, thread_apply_all_command)
1002 (thread_apply_command, thread_command, do_captured_thread_select):
1003 Remove HPUXHPPA-specific code.
1004
10052004-05-24 Randolph Chung <tausq@debian.org>
1006
1007 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
1008 unused symbols.
1009 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
1010 references.
1011
10122004-05-24 Joel Brobecker <brobecker@gnat.com>
1013
1014 * infcmd.c (kill_if_already_running): New function, extracted
1015 from run_command().
1016 (run_command): Replace extracted code by call to
1017 kill_if_already_running().
1018 (start_command): New function.
1019 (_initialize_infcmd): Add "start" command.
1020
10212004-05-24 Mark Kettenis <kettenis@gnu.org>
1022
1023 Add OpenBSD/m88k support.
1024 * NEWS (New native configurations): Mention OpenBSD/m88k.
1025 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
1026 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
1027 * Makefile.in (m88k_tdep_h): New variable.
1028 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
1029 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
1030 * configure.host: Add m88*-*-openbsd*.
1031 * configure.tgt: Add m88*-*-openbsd*.
1032
10332004-05-24 Jim Blandy <jimb@redhat.com>
1034
1035 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
1036 to approve changes.
1037
10382004-05-24 Kevin Buettner <kevinb@redhat.com>
1039
1040 * symtab.c (fixup_section): Search section table when lookup by
1041 name fails.
1042
10432004-05-24 Randolph Chung <tausq@debian.org>
1044
1045 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
1046 be "small_struct".
1047
10482004-05-24 Mark Kettenis <kettenis@gnu.org>
1049
1050 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
1051 register number in regcache_raw_collect call.
1052 (m68kbsd_collect_fpregset): Likewise.
1053 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
1054
1055 * regset.h (struct regset): Add back `regset' member.
1056
10572004-05-23 Mark Kettenis <kettenis@gnu.org>
1058
1059 * configure.in: Check for td_pcb in `struct thread'.
1060 * configure, config.in: Regenerated.
1061
1062 * dpx2-nat.c: Remove file.
1063 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
1064 (dpx2-nat.o): Remove dependencies.
1065
1066 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
1067 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1068 (amd64obsd_supply_pcb): New function.
1069 (_initialize_amd64obsd_nat): Enable libkvm interface.
1070 * Makefile.in (amd64obsd-nat.o): Update dependencies.
1071 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
1072 (LOADLIBES): New variable.
1073
1074 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
1075 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
1076 (sparc32nbsd_supply_pcb): New function.
1077 (_initialize_sparcnbsd_nat): Enable libkvm interface.
1078 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
1079 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1080 (LOADLIBES): New variable.
1081
10822004-05-22 Mark Kettenis <kettenis@gnu.org>
1083
1084 * bsd-kvm.c, bsd-kvm.h: New files.
1085 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1086 "bsd-kvm.h".
1087 (i386fbsd_supply_pcb): New function.
1088 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1089 (i386fbsd-nat.o): Update dependencies.
1090 (bsd_kvm_h): New variable.
1091 (bsd-kvm.o): New dependency.
1092 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1093 (LOADLIBES): New variable.
1094
1095 * regset.c: Tweak comment.
1096 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1097 macro.
1098 * regset.h: Update copyright year.
1099 (struct regset): Remove `descr' member, add `gdbarch' member.
1100 (regset_alloc): Adjust prototype and comment.
1101 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1102 (i386_supply_fpregset): Likewise.
1103 (i386_regset_from_core_section): Update call to regset_alloc.
1104 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1105 REGSET->arch.
1106 (i386obsd_aout_regset_from_core_section): Update call to
1107 regset_alloc.
1108 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1109 REGSET->arch.
1110 (i386nbsd_aout_regset_from_core_section): Update call to
1111 regset_alloc.
1112 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1113 REGSET->arch.
1114 (amd64_regset_from_core_section): Update call to regset_alloc.
1115 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1116 REGSET->arch.
1117 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1118 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1119 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1120 (sparc32nbsd_init_abi): Update call to regset_alloc.
1121 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1122 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1123 (sparc64obsd_init_abi): Update call to regset_alloc.
1124 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1125 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1126 (sparc64nbsd_init_abi): Update call to regset_alloc.
1127 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1128 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1129 (sparc64fbsd_init_abi): Update call to regset_alloc.
1130
11312004-05-22 Jim Blandy <jimb@redhat.com>
1132
1133 * ppc-tdep.h (spe_register_p): New declaration.
1134 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1135 ppc_spefscr_regnum.
1136 * rs6000-tdep.c (spe_register_p): New function.
1137 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1138 spefscr.
1139 (rs6000_gdbarch_init): Initialize the new members of the tdep
1140 structure.
1141
11422004-05-21 Jim Blandy <jimb@redhat.com>
1143
1144 * ppc-linux-nat.c (fetch_register): Move code back to be next
1145 to the comment that describes it. (Moved code, instead of
1146 comment, for symmetry with store_register.)
1147
1148 Allocate regset structures in the gdbarch's obstack, not using
1149 xmalloc.
1150 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1151 Add 'arch' argument. Allocate the regset on arch's obstack, not
1152 using xmalloc.
1153 * regset.h (regset_alloc): Update declaration.
1154 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1155 gdbarch argument.
1156 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1157 * i386-tdep.c (i386_regset_from_core_section): Same.
1158 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1159 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1160 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1161 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1162 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1163 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1164
11652004-05-21 Joel Brobecker <brobecker@gnat.com>
1166
1167 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1168
11692004-05-21 Jim Blandy <jimb@redhat.com>
1170
1171 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1172 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1173
11742004-05-20 Jim Blandy <jimb@redhat.com>
1175
1176 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1177
11782004-05-20 Mark Kettenis <kettenis@gnu.org>
1179
1180 * regset.h: Make prototype const-correct.
1181 * regset.c (regset_xmalloc): Make const-correct.
1182
11832004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1184
1185 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1186 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1187 (symbol_search_name): Declare.
1188
1189 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1190 (iter_name_next_hashed): Ditto.
1191 (iter_name_next_linear): Ditto.
1192 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1193
1194 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1195 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1196 (symbol_search_name): New function.
1197
1198 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1199
1200 * minsyms.c (build_minimal_symbol_hash_tables): Change
1201 test for adding to demangled hash table to check for difference
1202 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1203
12042004-05-19 Jim Blandy <jimb@redhat.com>
1205
1206 Use a constructor function to create regset structures.
1207 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1208 (struct regset): Use supply_regset_ftype. Add new
1209 'collect_regset' member.
1210 (regset_xmalloc): New declaration.
1211 * regset.c: New file.
1212 * am64-tdep.c (amd64_regset_from_core_section): Use
1213 regset_xmalloc to construct regset structures.
1214 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1215 * i386-tdep.c (i386_regset_from_core_section): Same.
1216 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1217 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1218 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1219 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1220 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1221 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1222 * Makefile.in (COMMON_OBS): Add regset.o.
1223 (regset.o): New rule.
1224
12252004-05-19 Joel Brobecker <brobecker@gnat.com>
1226
1227 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1228 and pthread_cond_wait.c.
1229
12302004-05-18 Jim Blandy <jimb@redhat.com>
1231
1232 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1233 before the mach-specific switch, and then let the individual cases
1234 override the defaults, rather than leaving them uninitialized
1235 until the switch and then setting them in each case.
1236
12372004-05-18 Randolph Chung <tausq@debian.org>
1238
1239 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1240 millicode functions.
1241
12422004-05-18 Randolph Chung <tausq@debian.org>
1243
1244 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1245 references to dld_flags_buffer consistent.
1246
12472004-05-18 Randolph Chung <tausq@debian.org>
1248
1249 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1250 it for unwinding the stack.
1251
12522004-05-18 Randolph Chung <tausq@debian.org>
1253
1254 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1255 Undefine these so we can overide them using gdbarch.
1256
12572004-05-18 Randolph Chung <tausq@debian.org>
1258
1259 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1260 handling for 64-bit HPUX (elf).
1261
12622004-05-18 Daniel Jacobowitz <dan@debian.org>
1263
1264 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1265 constants.
1266 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1267 * ia64-tdep.c (examine_prologue): Likewise.
1268 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1269 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1270
12712004-05-18 Mark Kettenis <kettenis@gnu.org>
1272
1273 * vax-tdep.c (vax_return_value): Implement
1274 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1275
12762004-05-17 Mark Kettenis <kettenis@gnu.org>
1277
1278 * vax-tdep.c (vax_return_value): Fix typo.
1279
12802004-05-17 Andrew Cagney <cagney@redhat.com>
1281
1282 * MAINTAINERS: Mark Salter was also responsible for
1283 testsuite/config/
1284
1285 * NEWS: Mention signal fixes.
1286
12872004-05-17 Randolph Chung <tausq@debian.org>
1288
1289 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1290 check to see if we are unwinding an export stub. Export stubs clobber
1291 the %rp in the call path and stores the original rp in a stack slot.
1292
12932004-05-17 Jim Blandy <jimb@redhat.com>
1294
1295 * MAINTAINERS: Update address for J.T. Conklin.
1296
12972004-05-17 Randolph Chung <tausq@debian.org>
1298
1299 * hppa-tdep.c: Remove superfluous #include's.
1300 * Makefile.in (hppa-tdep.o): Update dependencies.
1301
13022004-05-17 Randolph Chung <tausq@debian.org>
1303
1304 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1305 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1306 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1307 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1308 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1309 Remove static function declarations.
1310
13112004-05-17 Mark Kettenis <kettenis@gnu.org>
1312
1313 * alphabsd-nat.c: Update copyright year.
1314 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1315
1316 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1317 and M68K_A2_REGNUM.
1318
1319 * m68k-tdep.c (m68k_svr4_return_value): Implement
1320 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1321
13222004-05-16 Mark Kettenis <kettenis@gnu.org>
1323
1324 * sol-thread.c Update copyright year. Fix various coding
1325 standards violations. Tweak a few comments.
1326 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1327 Delete prototypes.
1328
13292004-05-15 Randolph Chung <tausq@debian.org>
1330
1331 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1332 as pointer instead of array reference since HPUX compiler does
1333 not accept unsized array arguments.
1334 * somsolib.c (dld_flags_buffer): Use constant array size.
1335
13362004-05-15 Mark Kettenis <kettenis@gnu.org>
1337
1338 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1339 offset with decimal offset.
1340 (amd64obsd_sigcontext_addr): Return correct address for entire
1341 signal trampoline.
1342
1343 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1344 instead of get_frame_base.
1345
1346 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1347 (fill_gregset): Use regcache_raw_collect.
1348
1349 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1350 ppcobsd-tdep.c.
1351
1352 * config/sparc/tm-nbsd64.h: Remove file.
1353 * config/tm-sunos.h: Remove file.
1354
13552004-05-15 Joel Brobecker <brobecker@gnat.com>
1356
1357 * rs6000-tdep.c (store_param_on_stack_p): New function,
1358 an improved version of some code extracted from skip_prologue().
1359 (skip_prologue): Use store_param_on_stack_p() to detect
1360 instructions saving a parameter on the stack. Detect when r0
1361 is used to save a parameter.
1362 Do not mark "li rx, SIMM" instructions as part of the prologue,
1363 unless the following instruction is also part of the prologue.
1364
13652004-05-14 Andrew Cagney <cagney@redhat.com>
1366
1367 * infrun.c (handle_inferior_event): Simplify
1368 STEP_OVER_UNDEBUGGABLE.
1369
1370 * infrun.c (handle_step_into_function): Delete function.
1371 (handle_inferior_event): Inline calls to
1372 handle_step_into_function.
1373
13742004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1375
1376 * rs6000-nat.c: Fix a comment.
1377
13782004-05-12 David Anderson <davea@sgi.com>
1379
1380 Committed by Jim Blandy <jimb@redhat.com>:
1381 * regcache.c (struct regcache_descr): fix comment spelling.
1382
13832004-05-13 J. Brobecker <brobecker@gnat.com>
1384
1385 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1386 Fixes a link link failure.
1387
13882004-05-13 J. Brobecker <brobecker@gnat.com>
1389
1390 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1391 error that was causing the build to fail.
1392
13932004-05-13 J. Brobecker <brobecker@gnat.com>
1394
1395 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1396 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1397
13982004-05-13 Andrew Cagney <cagney@redhat.com>
1399
1400 * infrun.c (handle_inferior_event): Check for
1401 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1402 calls. Update comments.
1403
14042004-05-13 Jim Blandy <jimb@redhat.com>
1405
1406 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1407 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1408 (store_regs_user_thread, store_regs_kernel_thread): Use
1409 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1410 * ppc-linux-nat.c (fill_gregset): Same.
1411 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1412 (ppc_linux_sigtramp_cache): Same.
1413 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1414 (ppcnbsd_sigtramp_cache_init): Same.
1415 * rs6000-nat.c (fetch_core_registers): Same.
1416 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1417 (rs6000_frame_cache): Same.
1418
1419 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1420 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1421 of assuming that the gprs are numbered starting with zero.
1422 * ppc-linux-nat.c (fill_gregset): Same.
1423 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1424 * ppcnbsd-nat.c (getregs_supplies): Same.
1425 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1426 * rs6000-nat.c (fetch_core_registers): Same.
1427 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1428
14292004-05-07 Michael Snyder <msnyder@redhat.com>
1430
1431 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1432 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1433
14342004-05-13 Andrew Cagney <cagney@redhat.com>
1435
1436 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1437
14382004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1439
1440 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1441 base_address for shared libraries.
1442
14432004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1444
1445 * MAINTAINERS (write after approval): Add myself.
1446
14472004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1448
1449 * breakpoint.c (bpstat_stop_status): Add new argument
1450 STOPPED_BY_WATCHPOINT. Use it instead of testing
1451 target_stopped_data_address agaist 0 to check whether
1452 or not we stopped due to a hardware watchpoint.
1453 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1454 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1455 with new argument.
1456
14572004-05-12 Jim Blandy <jimb@redhat.com>
1458
1459 * configure.in: When checking whether we should use the -bbigtoc
1460 option, don't forget to restore the original value of LDFLAGS.
1461 * configure: Regenerated.
1462
14632004-05-12 Andrew Cagney <cagney@redhat.com>
1464
1465 * thread.c (load_infrun_state): Delete step_sp.
1466 * infrun.c (context_switch): Ditto.
1467 * inferior.h (step_sp): Ditto.
1468 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1469 * gdbthread.h (struct thread_info, save_infrun_state)
1470 (restore_infrun_state): Ditto.
1471
14722004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1473
1474 * MAINTAINERS (write after approval): Add myself.
1475
14762004-05-12 Andrew Cagney <cagney@redhat.com>
1477
1478 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1479 eliminate reference to step_sp.
1480 (struct execution_control_state, init_execution_control_state)
1481 (handle_inferior_event, keep_going): Delete update_step_sp and
1482 step_sp.
1483 * infcmd.c (step_sp): Note that variable is unused.
1484
14852004-05-11 Andrew Cagney <cagney@redhat.com>
1486
1487 * infrun.c (step_over_function): Delete function.
1488 (handle_step_into_function): Use insert_step_resume_breakpoint.
1489 (insert_step_resume_breakpoint): Fix assertion.
1490
14912004-05-11 Nick Roberts <nickrob@gnu.org>
1492
1493 * utils.c (defaulted_query): Just use the normal query input type
1494 when printing the annotations.
1495
14962004-05-11 Andrew Cagney <cagney@redhat.com>
1497
1498 * infrun.c (handle_inferior_event): Simplify code handling
1499 step-into or return-from a signal trampoline.
1500
15012004-05-11 Andrew Cagney <cagney@redhat.com>
1502
1503 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1504 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1505
15062004-05-10 Jim Blandy <jimb@redhat.com>
1507
1508 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1509 with a call to internal_error.
1510
1511 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1512 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1513 processor variant lacks those registers.
1514 (ppc_floating_point_unit_p): Change description to make it clear
1515 that this returns info about the ISA, not the ABI.
1516 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1517 return true or false by checking tdep->ppc_fp0_regnum and
1518 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1519 arch/mach switching done in rs6000_gdbarch_init; it's better to
1520 keep that logic there, and just check the results here.
1521 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1522 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1523 floating-point registers.
1524 (ppc_supply_fpregset, ppc_collect_fpregset)
1525 (rs6000_push_dummy_call, rs6000_extract_return_value)
1526 (rs6000_store_return_value): Assert that we have floating-point
1527 registers.
1528 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1529 (rs6000_frame_cache): Don't note the locations at which
1530 floating-point registers were saved if we have no fprs.
1531 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1532 registers.
1533 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1534 (store_regs_user_thread, store_regs_kernel_thread): Only call
1535 supply_fprs / fill_fprs if we actually have floating-point
1536 registers.
1537 (special_register_p): Check ppc_fpscr_regnum before matching
1538 against it.
1539 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1540 supply / collect fpscr if we don't have it.
1541 * ppc-bdm.c: #include "gdb_assert.h".
1542 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1543 have floating-point registers, since I can't test this code on
1544 FP-free systems to adapt it.
1545 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1546 fpscr and floating point register numbers if they don't exist.
1547 (fetch_register): Assert that we have floating-point registers
1548 before we reach the code that handles them.
1549 (store_register): Same. And use tdep instead of calling
1550 gdbarch_tdep again.
1551 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1552 don't have them.
1553 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1554 fprs and fpscr if we don't have them.
1555 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1556 don't have them.
1557 * ppcnbsd-nat.c: #include "gdb_assert.h".
1558 (getfpregs_supplies): Assert that we have floating-point registers.
1559 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1560 * ppcobsd-tdep.c: #include "gdb_assert.h".
1561 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1562 have floating-point registers.
1563 * rs6000-nat.c (regmap): Don't match against the fpscr and
1564 floating point register numbers if they don't exist.
1565 (fetch_inferior_registers, store_inferior_registers,
1566 fetch_core_registers): Only fetch / store / supply the
1567 floating-point registers and the fpscr if we have them.
1568 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1569 (ppcobsd-tdep.o): Update dependencies.
1570
15712004-05-10 Andrew Cagney <cagney@redhat.com>
1572
1573 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1574 (context_switch): Do not switch through_sigtramp_breakpoint.
1575 * gdbthread.h (save_infrun_state, load_infrun_state)
1576 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1577 and structure member.
1578 * thread.c (load_infrun_state, save_infrun_state): Update.
1579
15802004-05-10 Mark Kettenis <kettenis@gnu.org>
1581
1582 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1583
15842004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1585
1586 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1587 throughout.
1588 * aclocal.m4: Regenerate.
1589
15902004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1591
1592 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1593
15942004-05-10 Andrew Cagney <cagney@redhat.com>
1595
1596 * infrun.c (check_sigtramp2): Delete function.
1597 (handle_inferior_event): When single stepping, and taking a
1598 signal, set a breakpoint at the signal return address. Delete
1599 redundant calls to check_sigtramp2.
1600 (insert_step_resume_breakpoint): New function.
1601 (through_sigtramp_breakpoint, handle_inferior_event)
1602 (follow_exec, wait_for_inferior, fetch_inferior_event)
1603 (currently_stepping, keep_going): Delete most uses of
1604 through_sigtramp_breakpoint, not that it should be deleted.
1605 (delete_breakpoint_current_contents): Delete function.
1606
16072004-05-10 Randolph Chung <tausq@debian.org>
1608
1609 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1610 target.
1611 * config/pa/tm-linux.h: New file.
1612
16132004-05-10 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1616 of prefixes. Don't print the prefix twice in the CLI.
1617
16182004-05-10 Jim Blandy <jimb@redhat.com>
1619
1620 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1621 collect all the gprs.
1622
1623 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1624 loop collecting gprs.
1625
16262004-05-09 Andrew Cagney <cagney@redhat.com>
1627
1628 * remote-vx.c (net_step): Delete step-range code.
1629 * remote.c (remote_resume, init_all_packet_configs)
1630 (set_remote_protocol_E_packet_cmd)
1631 (show_remote_protocol_E_packet_cmd)
1632 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1633 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1634 (show_remote_protocol_e_packet_cmd): Ditto.
1635
16362004-05-09 Mark Kettenis <kettenis@gnu.org>
1637
1638 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1639
1640 * hppa-tdep.h: Update copyright year.
1641 (struct trad_frame_saved_reg): Add opaque declaration.
1642
1643 * amd64-tdep.c (amd64_return_value): Implement
1644 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1645
1646 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1647 (m68k_value_to_register): New functions.
1648 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1649 value_to_register.
1650
1651 * defs.h (enum return_value_convention): Add
1652 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1653 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1654 * infcmd.c (legacy_return_value): New function.
1655 (print_return_value): Rwerite to implement
1656 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1657 * values.c (using_struct_return): Check for inequality to
1658 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1659 RETURN_VALUE_STRUCT_CONVENTION.
1660 * i386-tdep.c (i386_return_value): Implement
1661 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1662
1663 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1664 include "symtab.h", "opcode/vax.h" and "inferior.h".
1665 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1666 to read_memory_unsigned_integer.
1667 (vax_gdbarch_init): Reorder.
1668 (_initialize_vax_tdep): Spell out prototype.
1669 * Makefile.in (vax-tdep.o): Update dependencies.
1670
16712004-05-08 Andrew Cagney <cagney@redhat.com>
1672
1673 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1674 * target.c (target_detach, target_disconnect): Ditto.
1675
1676 * infcall.c (call_function_by_hand): When no
1677 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1678 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1679 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1680 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1682
1683 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1684 * gdbarch.h, gdbarch.c: Re-generate.
1685 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1686 deprecated_fix_call_dummy.
1687 * v850-tdep.c (v850_gdbarch_init): Ditto.
1688 * infcall.c (call_function_by_hand): Do not call
1689 DEPRECATED_FIX_CALL_DUMMY.
1690
1691 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1692 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1693 * gdbarch.h, gdbarch.c: Re-generate.
1694 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1695 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1696 deprecated_sizeof_call_dummy_words.
1697 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1699 * v850-tdep.c (v850_gdbarch_init): Ditto.
1700 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1701 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1703 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1704 * arch-utils.h (legacy_call_dummy_words)
1705 (legacy_sizeof_call_dummy_words): Delete declarations.
1706 * arch-utils.c (legacy_call_dummy_words)
1707 (legacy_sizeof_call_dummy_words): Delete variables.
1708
1709 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1710 * gdbarch.h, gdbarch.c: Re-generate.
1711 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1712 * infcall.c (call_function_by_hand): Eliminate call to
1713 DEPRECATED_PUSH_DUMMY_FRAME.
1714 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1715 push_dummy_frame.
1716 (ns32k_push_dummy_frame): Delete function.
1717
1718 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1719 deprecated_call_dummy_breakpoint_offset or
1720 deprecated_call_dummy_start_offset.
1721 * dummy-frame.c, arm-tdep.c: Update comments.
1722 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1723 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1724 * gdbarch.h, gdbarch.c: Re-generate.
1725
1726 * infcall.c (legacy_push_dummy_code): Delete function.
1727 (push_dummy_code): Delete call.
1728
1729 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1730 * gdbarch.h, gdbarch.c: Re-generate.
1731 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1732 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1733 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1734 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1735
1736 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1737 (struct frame_info): Delete opaque declaration.
1738 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1739 * frame.c (get_frame_type): Delete call.
1740
1741 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1742 pc_in_call_dummy.
1743 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1744 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1745
17462004-05-08 Mark Kettenis <kettenis@gnu.org>
1747
1748 * alphanbsd-tdep.c: Include "gdb_string.h".
1749 * armnbsd-tdep.c: Update copyright year.
1750 Include "gdb_string.h".
1751 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1752 dependencies.
1753
1754 * delta68-nat.c: Remove file.
1755 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1756 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1757 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1758 (delta68-nat.o): Remove dependency.
1759
1760 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1761 function.
1762 (m68k_gdbarch_init): Don't set
1763 deprecated_frameless_function_invocation.
1764
17652004-05-07 Randolph Chung <tausq@debian.org>
1766
1767 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1768 read_memory_nobpt for code reading when doing frame unwinding.
1769 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1770
17712004-05-07 Randolph Chung <tausq@debian.org>
1772
1773 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1774 instead of sp, handle sigaltstack case.
1775 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1776 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1777 signal handler and not that of the caller.
1778 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1779 hppa_linux_sigtramp_find_sigcontext.
1780
17812004-05-07 Randolph Chung <tausq@debian.org>
1782
1783 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1784 hppa-linux-nat.c.
1785 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1786 * hppa-linux-nat.c (fetch_register, store_register): Define.
1787 (fetch_inferior_registers, store_inferior_registers): Define.
1788 (supply_gregset): Add comment and clean up some unneeded code.
1789 (fill_gregset): Add comment and fix so that it saves registers in
1790 the right place in the gregset.
1791 (fill_fpregset): Fix buffer overrun problem.
1792 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1793
17942004-05-07 Randolph Chung <tausq@debian.org>
1795
1796 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1797 do common handling of the pcoqt register.
1798 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1799 to use helper function.
1800 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1801 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1802 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1803 generic fallback unwinder when all else fails.
1804 (hppa_gdbarch_init): Add fallback sniffer.
1805 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1806 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1807 to use helper function.
1808
18092004-05-08 Joel Brobecker <brobecker@gnat.com>
1810
1811 * config/djgpp/fnchange.lst: Add translation rules for
1812 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1813
18142004-05-08 Mark Kettenis <kettenis@gnu.org>
1815
1816 * frame.c (get_prev_frame_1): Work around GCC bug.
1817 * frame.h: Add comment about GCC bug.
1818
18192004-05-07 Andrew Cagney <cagney@redhat.com>
1820
1821 * observer.c: Include "commands.h" and "gdbcmd.h".
1822 (observer_debug, _initialize_observer): Add the
1823 command "set/show debug observer".
1824 * observer.sh: When observer debugging, log notify calls.
1825 * Makefile.in (observer.o): Update dependencies.
1826
18272004-05-07 Jason Molenda (jmolenda@apple.com)
1828
1829 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1830
18312004-05-07 Jim Blandy <jimb@redhat.com>
1832
1833 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1834 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1835 to recognize gpr regnums, instead of assuming that
1836 tdep->ppc_fp0_regnum marks the end of the general-purpose
1837 registers.
1838
1839 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1840 the given architecture has floating-point registers.
1841
18422004-05-07 Andrew Cagney <cagney@redhat.com>
1843
1844 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1845 macro defined to 1.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1847 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1848 deprecated_use_generic_dummy_frames.
1849
18502004-05-07 Brian Ford <ford@vss.fsi.com>
1851
1852 * NEWS: Mention Cygwin DWARF 2 support.
1853
18542004-05-07 Andrew Cagney <cagney@redhat.com>
1855
1856 * objfiles.h (struct entry_info): Delete unused fields
1857 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1858 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1859 * mipsread.c (mipscoff_symfile_read): Update.
1860 * mdebugread.c (parse_partial_symbols): Update.
1861 * dwarfread.c (read_file_scope): Update.
1862 * dwarf2read.c (read_file_scope): Update.
1863 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1864 * coffread.c (complete_symtab): Update.
1865
18662004-05-07 Mark Kettenis <kettenis@gnu.org>
1867
1868 * infcall.c (_initialize_infcall): Fix typo.
1869
18702004-05-07 Andrew Cagney <cagney@redhat.com>
1871
1872 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1873 * command.h (add_setshow_zinteger_cmd): Declare.
1874
18752004-05-06 Randolph Chung <tausq@debian.org>
1876
1877 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1878 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1879 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1880 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1881 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1882 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1883 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1884 definitions ...
1885 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1886 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1887 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1888 (hppa64_hpux_frame_find_saved_regs_in_sig)
1889 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1890 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1891 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1892 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1893 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1894 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1895 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1896 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1897 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1898 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1899 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1900 (hppa32_register_type, hppa_cannot_store_register)
1901 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1902 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1903 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1904 * pa64solib.c (pa64_solib_have_load_event)
1905 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1906 (pa64_solib_unloaded_library_pathname): Likewise.
1907 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1908 (som_solib_library_pathname): Likewise.
1909
19102004-05-05 Jim Ingham <jingham@apple.com>
1911
1912 * breakpoint.c (create_breakpoints): Copy the ignore count and
1913 thread id over from the pended breakpoint to the actual
1914 breakpoint.
1915
19162004-05-05 Andrew Cagney <cagney@redhat.com>
1917
1918 * gdbarch.sh (PARM_BOUNDARY): Delete.
1919 gdbarch.h, gdbarch.c: Re-generate.
1920 * valops.c (PARM_BOUNDARY): Delete macro.
1921 (value_push): Delete PARM_BOUNDARY code.
1922 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1923
19242004-05-04 Jim Blandy <jimb@redhat.com>
1925
1926 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1927 Don't assume that the gprs, fprs, and UISA sprs are
1928 contiguous, start at register number zero, and end with fpscr.
1929 Instead, use the numbers from the tdep structure.
1930
1931 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1932 should no longer be used in code specific to the RS6000 and its
1933 derivatives.
1934 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1935 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1936 tdep->ppc_fp0_regnum.
1937 (ppc_supply_fpregset, ppc_collect_fpregset)
1938 (rs6000_push_dummy_call, rs6000_extract_return_value)
1939 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1940 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1941 FP0_REGNUM.
1942 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1943 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1944 Same.
1945 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1946 bdm_ppc_store_registers): Same.
1947 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1948 (store_register, fill_fpregset): Same.
1949 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1950 (ppc_linux_supply_fpregset): Same.
1951 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1952 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1953 Same.
1954 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1955 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1956 ppc64_sysv_abi_return_value): Same.
1957 * rs6000-nat.c (regmap, fetch_inferior_registers)
1958 (store_inferior_registers, fetch_core_registers): Same.
1959
19602004-05-01 Mark Kettenis <kettenis@gnu.org>
1961
1962 * m68knbsd-nat.c: Remove file.
1963 * m68knbsd-tdep.c: Remove file.
1964 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1965 dependencies.
1966 * configure.host: Add m68k-*-netbsdelf*.
1967 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1968 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1969 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1970 (XM_FILE): Remove.
1971 * config/m68k/nbsdelf.mh: New file.
1972 * config/m68k/nbsd.mt: New file.
1973 * config/m68k/nbsdaout.mt: Remove file.
1974 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1975 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1976 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1977 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1978 (use_struct_convention): Remove prototype.
1979 (USE_STRUCT_CONVENTION): Remove define.
1980 * config/m68k/xm-nbsd.h: Remove file.
1981
19822004-05-04 Michael Snyder <msnyder@redhat.com>
1983
1984 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1985 reg_struct_return method (as gcc usually does for cross targets).
1986
19872004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1988
1989 Committed by Andrew Cagney.
1990 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1991 alignment padding when accessing ucontext struct members.
1992
19932004-05-04 Jim Blandy <jimb@redhat.com>
1994
1995 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1996 'ppc_gplast_regnum' member.
1997 (ppc_num_gprs): New enum constant.
1998 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1999 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
2000 * rs6000-nat.c (regmap, fetch_inferior_registers,
2001 store_inferior_registers): Same.
2002 * rs6000-tdep.c (e500_pseudo_register_read)
2003 (e500_pseudo_register_write): Same.
2004 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
2005
2006 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
2007 * ppc-tdep.h (ppc_num_fprs): New enum constant.
2008 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
2009 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
2010 FPLAST_REGNUM.
2011 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2012 Same.
2013 * ppc-linux-nat.c (ppc_register_u_addr): Same.
2014 * rs6000-nat.c (regmap, fetch_inferior_registers)
2015 (store_inferior_registers): Same.
2016
2017 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
2018 with FPLAST_REGNUM.
2019
20202004-05-03 Joel Brobecker <brobecker@gnat.com>
2021
2022 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
2023 failure detected by recent versions of GCC.
2024 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
2025 to be consistent with the usage in dwarf2_create_include_psymtab.
2026
20272004-05-03 Michael Snyder <msnyder@redhat.com>
2028
2029 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
2030 (heuristic_proc_start): Whitespace cleanup.
2031
20322004-05-04 Mark Kettenis <kettenis@gnu.org>
2033
2034 * sun3-nat.c: Remove file.
2035 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
2036 dependencies.
2037 (ALLDEPFILES): Remove sun3-nat.c.
2038 (sun3-nat.o): Remove dependencies.
2039
2040 * i386-interix-nat.c, i386-interix-tdep.c,
2041 config/i386/nm-interix.h, config/i386/interix.mh,
2042 config/i386/interix.mt: Remove files.
2043 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
2044 dependencies.
2045
20462004-05-03 Mark Kettenis <kettenis@gnu.org>
2047
2048 * m68k-tdep.h (struct gdbarch_tdep): Add member
2049 struct_value_regnum.
2050 (m68k_svr4_init_abi): New prototype.
2051 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
2052 different calling conventions.
2053 (m68k_extract_return_value): Remove code dealing with single-field
2054 structs.
2055 (m68k_store_return_value): Remove code dealing with single-field
2056 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
2057 (m68k_extract_struct_value_address): Remove function.
2058 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
2059 (m68k_reg_struct_return_p, m68k_return_value)
2060 (m68k_svr4_return_value): New functions.
2061 (m68k_use_struct_convention): Remove function.
2062 (m68k_push_dummy_call): Use new struct_value_regnum member of
2063 `struct gdbarch_tdep' instead of hardcoded register number to
2064 store STRUCT_ADDR.
2065 (m68k_svr4_init_abi): New function.
2066 (m68k_gdbarch_init): Don't set extract_return_value,
2067 store_return_values, deprecated_extract_struct_value_address and
2068 use_struct_convention. Set return_value instead. Initialize new
2069 struct_value_regnum member of `struct gdbarch_tdep'.
2070 * m68klinux-tdep.c: Update copyright year.
2071 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
2072 (m68k_linux_extract_struct_value_address): Remove function.
2073 (m68k_linux_init_abi): Don't set extract_return_value,
2074 store_return_values, deprecated_extract_struct_value_address and
2075 use_struct_convention. Call m68k_svr4_init_abi but override the
2076 new struct_value_regnum member of `struct gdbarch_tdep'.
2077 * Makefile.in (m68k-tdep.o): Update dependencies.
2078
20792004-05-03 J. Brobecker <brobecker@gnat.com>
2080
2081 * dwarf2read.c (line_header): Add new included_p field in
2082 field file_names.
2083 (partial_die_info): New field has_stmt_list. New field line_offset.
2084 (dwarf2_create_include_psymtab): New function.
2085 (dwarf2_build_include_psymtabs): New function.
2086 (add_file_name): Add forward declaration. Initialize new field.
2087 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2088 to be able to determine the list of files included by the
2089 given unit, and build their associated psymtabs.
2090 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2091 files as well.
2092 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2093 (read_file_scope): Update call to dwarf_decode_lines.
2094 (read_partial_die): Handle DW_AT_stmt_list attributes.
2095
20962004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2097
2098 Unfix PR gdb/1626.
2099 * configure.in: Revert special case for osf5.*.
2100 * configure: Regenerate.
2101
21022004-05-02 Jim Blandy <jimb@redhat.com>
2103
2104 Move the symbol-file-from-memory functions into their own file.
2105 * symfile-mem.c, symfile-mem.h: New files.
2106 * symfile.c (symbol_file_add_from_bfd): New function.
2107 (symbol_file_add): Call symbol_file_add_from_bfd.
2108 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2109 Moved to symfile-mem.c.
2110 (_initialize_symfile): Move definition of
2111 add-symbol-file-from-memory command to symfile-mem.c.
2112 * symfile.h (symbol_file_add_from_bfd): New declaration.
2113 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2114 * config/powerpc/linux.mt (TDEPFILES): Same.
2115 * Makefile.in (SFILES): Add symfile-mem.c.
2116 (symfile_mem_h): New variable.
2117 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2118 (symfile-mem.o): New rule.
2119
21202004-05-01 Andrew Cagney <cagney@redhat.com>
2121
2122 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2123 frame_find_by_id instead of frame_relative_level.
2124 (do_enable_breakpoint): Ditto.
2125 * thread.c: Update copyright.
2126 (info_threads_command): Ditto, simplify.
2127
2128 * frame.c (deprecated_generic_get_saved_register): Delete
2129 function, moved to "xstormy16-tdep.c".
2130 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2131 deprecated_generic_get_saved_register from "frame.c".
2132 (xstormy16_frame_saved_register): Call
2133 xstormy16_get_saved_register.
2134 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2135 static.
2136 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2137 * frame.h (deprecated_generic_get_saved_register): Delete.
2138
21392004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2140
2141 * dwarfread.c: Update documentation on the state of dwarf-1.
2142
21432004-05-01 Andrew Cagney <cagney@redhat.com>
2144
2145 * stack.c (select_frame_command): Delete call to
2146 frame_relative_level.
2147 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2148 Delete #if0 code.
2149 (frame_info): Do not print FRAMELESS.
2150 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2151 (catch_info): Delete #if0 code.
2152
2153 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2154 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2155 of frame_relative_level.
2156 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2157 to SENTINEL_FRAME.
2158 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2159 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2160 frame_relative_level.
2161
2162 * frame.h (deprecated_set_frame_type): Delete declaration.
2163 * frame.c (deprecated_set_frame_type): Delete function, update
2164 comments.
2165
2166 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2167 * gdbarch.h, gdbarch.c: Re-generate.
2168 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2169 (shnbsd_pc_in_sigtramp): Delete.
2170 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2171 pc_in_sigtramp.
2172 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2173 pc_in_sigtramp.
2174 * frame.h: Update comments.
2175 * ppc-linux-tdep.c: Update comments.
2176 * breakpoint.c (bpstat_what): Update comments.
2177
2178 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2179 m68klinux-tdep.o's dependencies, were previously added to
2180 m68klinux-nat.o.
2181
2182 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2183 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2184 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2185 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2186 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2187
2188 * Makefile.in (m68klinux-nat.o): Update dependencies.
2189 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2190 (m68k_linux_sigtramp_frame_cache)
2191 (m68k_linux_sigtramp_frame_this_id)
2192 (m68k_linux_sigtramp_frame_prev_register)
2193 (m68k_linux_sigtramp_frame_unwind)
2194 (m68k_linux_sigtramp_frame_sniffer)
2195 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2196 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2197 names, use trad-frame.h.
2198 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2199 (struct m68k_sigtramp_info): Delete.
2200 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2201 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2202 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2203 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2204 "m68klinux-tdep.c".
2205
2206 * infrun.c (check_sigtramp2): Delete check for
2207 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2208
22092004-05-01 Mark Kettenis <kettenis@gnu.org>
2210
2211 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2212
22132004-05-01 Andrew Cagney <cagney@redhat.com>
2214
2215 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2216 (frv_linux_sigtramp_frame_cache)
2217 (frv_linux_sigtramp_frame_this_id)
2218 (frv_linux_sigtramp_frame_prev_register)
2219 (frv_linux_sigtramp_frame_unwind)
2220 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2221 include "linux" in function and variable names, directly call
2222 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2223 the latest trad-frame code.
2224 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2225 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2226 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2227 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2228 * frv-tdep.c (frv_sigtramp_frame_cache)
2229 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2230 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2231 frv-linux-tdep.c.
2232 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2233 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2234 (frv_set_sigcontext_reg_addr): Delete function.
2235
2236 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2237 (DEPRECATED_SIGTRAMP_END): Delete.
2238 * gdbarch.h, gdbarch.c: Re-generate.
2239 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2240 * config/vax/tm-vaxbsd.h: Update copyright.
2241 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2242 (DEPRECATED_IN_SIGTRAMP): Define.
2243 * config/m68k/tm-nbsd.h: Update copyright.
2244 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2245 (DEPRECATED_IN_SIGTRAMP): Define.
2246
22472004-05-01 Mark Kettenis <kettenis@gnu.org>
2248
2249 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2250 encondings. Fixes PR gdb/1628.
2251
2252 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2253 DW_CFA_restore state without a matching DW_CFA_remember_state
2254 instead of aborting. Fixes PR backtrace/1589.
2255
22562004-04-30 Joel Brobecker <brobecker@gnat.com>
2257
2258 * MAINTAINERS: Add self as AIX maintainer.
2259 Update my e-mail address in write-after-approval section.
2260
22612004-04-30 Andrew Cagney <cagney@redhat.com>
2262
2263 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2264 (legacy_get_prev_frame): Ditto.
2265
2266 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2267 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2268 * mipsread.c (sigtramp_address): Delete extern variable.
2269 (mipscoff_new_init): Delete reference.
2270 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2271 (fixup_sigtramp): Delete function.
2272 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2273 (fixup_sigtramp): Delete declarations.
2274
2275 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2276 deprecated_pc_in_sigtramp.
2277 (ppcnbsd_pc_in_sigtramp): Delete function.
2278
22792004-05-01 Mark Kettenis <kettenis@gnu.org>
2280
2281 * config/m68k/nm-nbsd.h: Tweak comments.
2282 * config/m68k/nm-nbsdaout.h: Likewise.
2283
22842004-04-30 Andrew Cagney <cagney@redhat.com>
2285
2286 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2287 legacy_pc_in_sigtramp.
2288 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2289
22902004-05-01 Mark Kettenis <kettenis@gnu.org>
2291
2292 Add OpenBSD/m68k support.
2293 * NEWS (New native configurations): Mention OpenBSD/m68k.
2294 * m68kbsd-tdep.c: New file.
2295 * m68kbsd-nat.c: New file.
2296 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2297 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2298 * configure.host: Add m68k-*-openbsd.
2299 * configure.tgt: Add m68k-*-openbsd.
2300 * config/m68k/tm-obsd.h: New file.
2301 * config/m68k/obsd.mt: New file.
2302 * config/m68k/obsd.mh: New file.
2303 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2304 m68kbsd-tdep.c.
2305
23062004-04-30 Andrew Cagney <cagney@redhat.com>
2307
2308 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2309 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2310
23112004-04-30 Mark Kettenis <kettenis@gnu.org>
2312
2313 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2314 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2315
23162004-04-30 Brian Ford <ford@vss.fsi.com>
2317
2318 Revert 2004-04-16 change.
2319 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2320 (i386_coff_init_abi): Remove.
2321 * i386-tdep.h (i386_coff_init_abi): Remove.
2322 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2323
23242004-04-30 Andrew Cagney <cagney@redhat.com>
2325
2326 * blockframe.c (find_pc_partial_function): Delete use of
2327 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2328 DEPRECATED_SIGTRAMP_END.
2329
2330 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2331 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2332 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2333 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2334 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2335
2336 * defs.h (deprecated_inside_entry_file): Delete declaration.
2337 * blockframe.c (deprecated_inside_entry_file): Delete function.
2338 (legacy_frame_chain_valid): Delete call.
2339 * sh64-tdep.c (sh64_frame_chain): Delete call.
2340 * objfiles.h: Update comments.
2341 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2342 call.
2343 * frame.c (get_prev_frame): Delete call, update comments.
2344
23452004-04-30 Brian Ford <ford@vss.fsi.com>
2346
2347 * MAINTAINERS (Write After Approval): Add myself.
2348
23492004-04-30 Andrew Cagney <cagney@redhat.com>
2350
2351 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2352 * gdbarch.h, gdbarch.c: Re-generate.
2353 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2354 code.
2355
23562004-04-30 Andrew Cagney <cagney@redhat.com>
2357
2358 * gdb-events.sh (selected_thread_changed)
2359 (selected_frame_level_changed, target_changed): Delete.
2360 * gdb-events.h, gdb-events.c: Re-generate.
2361 * valops.c (value_assign): Update.
2362 * stack.c (select_frame_command, up_silently_base)
2363 (down_silently_base): Update.
2364
23652004-04-29 Andrew Cagney <cagney@redhat.com>
2366
2367 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2368 registers correctly.
2369 (print_gp_register_row, mips32_heuristic_proc_desc)
2370 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2371 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2372 references to mips_isa_regsize.
2373
23742004-04-29 Andrew Cagney <cagney@redhat.com>
2375
2376 * mips-tdep.c (struct gdbarch_tdep): Delete
2377 mips_fp_register_double.
2378 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2379 mips_abi_regsize.
2380 (mips_gdbarch_init): Do not set mips_fp_register_double.
2381 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2382
23832004-04-29 Joel Brobecker <brobecker@gnat.com>
2384
2385 Committed by Andrew Cagney.
2386 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2387 function calls.
2388
23892004-04-29 Andrew Cagney <cagney@redhat.com>
2390
2391 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2392 gdbarch, use mips_abi, update callers.
2393 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2394 mips_abi_regsize, update callers.
2395 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2396 mips_default_abi_regsize.
2397 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2398 mips_default_abi_regsize.
2399
24002004-04-29 Andrew Cagney <cagney@redhat.com>
2401
2402 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2403 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2404 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2405 mips_default_abi_regsize.
2406 (mips_isa_regsize): Rename mips_regisze.
2407 * mipsnbsd-tdep.c: Update.
2408 * mips-linux-tdep.c: Update.
2409 * irix5-nat.c: Update.
2410 * mips-tdep.h (mips_isa_regsize): Update.
2411
2412 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2413 Delete all disabled code.
2414 * gdb-events.h, gdb-events.c: Re-generate.
2415
24162004-04-19 Jerome Guitton <guitton@gnat.com>
2417 Mark Kettenis <kettenis@gnu.org>
2418
2419 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2420 the function begins with a branch instruction.
2421
24222004-04-29 Mark Kettenis <kettenis@gnu.org>
2423
2424 * i386-tdep.c: Fix spelling mistakes.
2425
24262004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2427 Andrew Cagney <cagney@redhat.com>
2428
2429 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2430 <sys/proc.h>.
2431 * acconfig.h: Provide default _KMEMUSER value.
2432 * config.in, configure: Re-generate.
2433 * NEWS: Mention fix.
2434
24352004-04-24 Randolph Chung <tausq@debian.org>
2436
2437 * configure.host (hppa*-*-linux*): New target.
2438 * configure.tgt (hppa*-*-linux*): Likewise.
2439 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2440 gdbarch_init_osabi() call earlier so that osabi-specific frame
2441 unwinders can be registered first.
2442 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2443 hppa-linux-nat.c.
2444 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2445 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2446 * config/pa/linux.mh: New file.
2447 * config/pa/linux.mt: New file.
2448 * config/pa/nm-linux.h: New file.
2449 * config/pa/xm-linux.h: New file.
2450 * hppa-linux-nat.c: New file.
2451 * hppa-linux-tdep.c: New file.
2452
24532004-04-28 Randolph Chung <tausq@debian.org>
2454
2455 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2456 return values.
2457 (hppa32_push_dummy_call): Fix small struct and floating point argument
2458 passing, and make sure the stack frame is properly aligned.
2459
24602004-04-28 Andrew Cagney <cagney@redhat.com>
2461
2462 * stack.c (print_stack_frame): Fix description.
2463
2464 * NEWS: Mention gdb/gdbserver/configure execute permission
2465 changed. PR server/519.
2466
24672004-04-28 Andrew Cagney <cagney@redhat.com>
2468
2469 * stack.c (print_stack_frame_stub): Delete declaration.
2470 (struct print_stack_frame_args, print_stack_frame)
2471 (print_frame_info, print_frame): Replace "source" with print what.
2472 Replace "print" with "print_level". Replace "args" with
2473 "print_args".
2474 * frame.h (show_and_print_stack_frame, print_stack_frame)
2475 (print_frame_info): Update declarations.
2476 * stack.c (select_and_print_frame, frame_command)
2477 (current_frame_command, up_command, down_command): Update calls -
2478 use get_selected_frame, pass "enum print_what" for source, do not
2479 call frame_relative_level.
2480 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2481 * remote-rdp.c (remote_rdp_open): Ditto.
2482 * remote-mips.c (common_open): Ditto.
2483 * remote-e7000.c (e7000_start_remote): Ditto.
2484 * ocd.c (ocd_start_remote): Ditto.
2485 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2486 * infrun.c (normal_stop): Ditto.
2487 * inflow.c (kill_command): Ditto.
2488 * infcmd.c (finish_command): Ditto.
2489 * corelow.c (core_open): Ditto.
2490 * tracepoint.c (finish_tfind_command): Ditto.
2491 * thread.c (info_threads_command, info_threads_command)
2492 (restore_current_thread, do_captured_thread_select): Ditto.
2493 * ada-tasks.c (task_command): Ditto.
2494
24952004-04-26 Orjan Friberg <orjanf@axis.com>
2496
2497 * frame.c: Include "observer.h".
2498 (frame_observer_target_changed): New function.
2499 (_initialize_frame): Attach target_changed observer.
2500 * regcache.c: Include "observer.h".
2501 (regcache_observer_target_changed): New function.
2502 (_initialize_regcache): Attach target_changed observer.
2503 * valops.c: Include "observer.h".
2504 (value_assign): Notify target_changed event when modifying register.
2505 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2506
25072004-04-26 Orjan Friberg <orjanf@axis.com>
2508
2509 From Paul Koning <pkoning@equallogic.com>:
2510 * breakpoint.c (free_valchain): New function.
2511 (insert_bp_location, delete_breakpoint): Use free_valchain.
2512 (remove_breakpoint): Do not remove the valchain.
2513 (bpstat_stop_status): If not stopped by watchpoint, skip
2514 watchpoints when generating stop status list.
2515 * infrun.c (handle_inferior_event): Make
2516 stepped_after_stopped_by_watchpoint a global variable.
2517 * remote.c (remote_stopped_data_address): Return watch data
2518 address rather than zero if stepped_after_stopped_by_watchpoint is
2519 set.
2520
25212004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2522
2523 Fix PR gdb/1626.
2524 * configure.in: Check for curses after termcap.
2525 On osf5.*, do not check for ncurses.
2526 * configure: Regenerate.
2527
25282004-04-25 Mark Kettenis <kettenis@gnu.org>
2529
2530 * ppcobsd-nat.c: Include "ppc-tdep.h".
2531 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2532
2533 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2534 Fixes PR tdep/1623 and PR tdep/1624.
2535
25362004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2537
2538 * xmodem.h, xmodem.c: Remove files.
2539 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2540
25412004-04-23 Randolph Chung <tausq@debian.org>
2542
2543 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2544 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2545 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2546 for handling stackless frames.
2547 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2548
25492004-04-23 Randolph Chung <tausq@debian.org>
2550
2551 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2552 starts at a pc before the frame is created.
2553
25542004-04-23 Joel Brobecker <brobecker@gnat.com>
2555
2556 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2557
25582004-04-23 Jerome Guitton <guitton@gnat.fr>
2559
2560 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2561 use convert_typed_floating to get the appropriate format.
2562
25632004-04-22 Randolph Chung <tausq@debian.org>
2564
2565 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2566 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2567 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2568 (hppa_sign_extend): Add prototype.
2569 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2570 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2571 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2572 hppa targets will also use these functions.
2573 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2574 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2575 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2576 (hppa_gdbarch_init): Remove gdbarch setting of
2577 skip_trampoline_code, in_solib_call_trampoline and
2578 in_solib_return_trampoline.
2579 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2580 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2581 hppa_in_solib_call_trampoline.
2582 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2583 Moved from hppa-tdep.c.
2584 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2585 in_solib_call_trampoline and in_solib_return_trampoline.
2586
25872004-04-22 Randolph Chung <tausq@debian.org>
2588
2589 * hppa-tdep.c (hppa_debug): New variable.
2590 (find_unwind_entry, hppa_frame_cache): Add debug output.
2591 (_initialize_hppa_tdep): Add command to set debug flag.
2592
25932004-04-22 Andrew Cagney <cagney@redhat.com>
2594
2595 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2596 "trad-frame.h".
2597 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2598 signal trampoline unwinder.
2599 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2600
26012004-04-22 Mark Kettenis <kettenis@gnu.org>
2602
2603 Add OpenBSD/powerpc support.
2604 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2605 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2606 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2607 (ppc_collect_fpregset): New prototypes.
2608 * ppcobsd-nat.c: New file.
2609 * ppcobsd-tdep.c: New file.
2610 * ppcobsd-tdep.h: New file.
2611 * rs6000-tdep.c: Include "regset.h".
2612 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2613 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2614 New functions.
2615 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2616 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2617 (rs6000-tdep.o): Update dependencies.
2618 * configure.host: Add powerpc-*-openbsd.
2619 * configure.tgt: Add powerpc-*-openbsd.
2620 * config/powerpc/obsd.mh: New file.
2621 * config/powerpc/nm-obsd.h: New file.
2622 * config/powerpc/obsd.mt: New file.
2623
26242004-04-22 Andrew Cagney <cagney@redhat.com>
2625
2626 * frame.h (show_frame_info): Delete declaration.
2627
2628 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2629 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2630 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2631 * frv-tdep.c (frv_frame_this_id): Ditto.
2632 * avr-tdep.c (avr_frame_this_id): Ditto.
2633
26342004-04-22 Elena Zannoni <ezannoni@redhat.com>
2635
2636 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2637
26382004-04-22 Jim Blandy <jimb@redhat.com>
2639
2640 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2641 register number zero.
2642
26432004-04-21 Michael Snyder <msnyder@redhat.com>
2644
2645 * mips-tdep.c (heuristic_proc_start):
2646 Warning() already prefixes "Warning: ".
2647
26482004-04-21 Andrew Cagney <cagney@redhat.com>
2649
2650 * annotate.h (deprecated_annotate_starting_hook)
2651 (deprecated_annotate_stopped_hook)
2652 (deprecated_annotate_exited_hook)
2653 (deprecated_annotate_signal_hook)
2654 (deprecated_annotate_signalled_hook): Deprecate.
2655 * tracepoint.h (deprecated_create_tracepoint_hook)
2656 (deprecated_delete_tracepoint_hook)
2657 (deprecated_modify_tracepoint_hook)
2658 (deprecated_trace_find_hook)
2659 (deprecated_trace_start_stop_hook): Deprecate.
2660 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2661 * remote.h (deprecated_target_resume_hook)
2662 (deprecated_target_wait_loop_hook): Deprecate.
2663 * gdbcore.h (deprecated_exec_file_display_hook)
2664 (deprecated_file_changed_hook): Deprecate.
2665 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2666 * defs.h (deprecated_modify_breakpoint_hook)
2667 (deprecated_command_loop_hook, deprecated_show_load_progress)
2668 (deprecated_print_frame_info_listing_hook)
2669 (deprecated_query_hook, deprecated_warning_hook)
2670 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2671 (deprecated_delete_breakpoint_hook)
2672 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2673 (deprecated_readline_begin_hook, deprecated_readline_hook)
2674 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2675 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2676 (deprecated_context_hook, deprecated_target_wait_hook)
2677 (deprecated_attach_hook, deprecated_detach_hook)
2678 (deprecated_call_command_hook, deprecated_set_hook)
2679 (deprecated_error_hook, deprecated_error_begin_hook)
2680 (deprecated_ui_load_progress_hook): Deprecate.
2681 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2682 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2683 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2684 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2685 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2686 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2687 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2688 * annotate.c, aix-thread.c: Update.
2689
26902004-04-21 Andrew Cagney <cagney@redhat.com>
2691
2692 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2693 * vaxnbsd-tdep.c: Include "gdb_string.h".
2694
2695 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2696 (add_symbol_file_from_memory_command): #if 0 function body, call
2697 error instead.
2698
26992004-04-21 Andrew Cagney <cagney@redhat.com>
2700
2701 * gdbcore.h: Update copyright.
2702 (deprecated_add_core_fns): Rename add_core_fns.
2703 * win32-nat.c (_initialize_core_win32): Update.
2704 * sun3-nat.c (_initialize_core_sun3): Update.
2705 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2706 * rs6000-nat.c (_initialize_core_rs6000): Update.
2707 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2708 * nto-tdep.c (_initialize_nto_tdep): Update.
2709 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2710 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2711 * mips-nat.c (_initialize_core_mips): Update.
2712 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2713 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2714 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2715 * lynx-nat.c (_initialize_core_lynx): Update.
2716 * irix5-nat.c (_initialize_core_irix5): Update.
2717 * i386-interix-nat.c (_initialize_core_interix): Update.
2718 * cris-tdep.c (_initialize_cris_tdep): Update.
2719 * corelow.c (deprecated_add_core_fns): Update.
2720 * core-regset.c (_initialize_core_regset): Update.
2721 * core-aout.c (_initialize_core_aout): Update.
2722 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2723 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2724 * alpha-nat.c (_initialize_core_alpha): Update.
2725
27262004-04-21 Jim Blandy <jimb@redhat.com>
2727
2728 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2729
27302004-04-19 Daniel Jacobowitz <drow@mvista.com>
2731
2732 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2733 Delete.
2734 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2735 (read_attribute_value): Update calls to dwarf_alloc_block.
2736 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2737 dwarf2_tmp_obstack.
2738 (psymtab_to_symtab_1): Likewise. Clean up using
2739 free_stack_comp_unit.
2740 (add_to_cu_func_list): Use the comp_unit_obstack.
2741
27422004-04-19 Joel Brobecker <brobecker@gnat.com>
2743
2744 * dwarf2read.c (dwarf2_flag_true_p): New function.
2745 (die_is_declaration): Use the function above. Add some comments.
2746
27472004-04-19 Mark Kettenis <kettenis@gnu.org>
2748
2749 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2750 architecture when registering sparcnbsd_core_osabi_sniffer.
2751 Adjust comment.
2752
27532004-04-18 Mark Kettenis <kettenis@gnu.org>
2754
2755 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2756 return value.
2757
2758 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2759 * i386-tdep.c: Correct register numbering scheme comments
2760 throughout.
2761 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2762 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2763 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2764 (i386_gdb_arch_init): Likewise.
2765
2766 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2767 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2768 ppcnbsd-tdep.o.
2769
2770 * m68k-tdep.h: Tweak comments.
2771 * m68k-tdep.c: Tweak comment.
2772
27732004-04-17 Randolph Chung <tausq@debian.org>
2774
2775 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2776 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2777 (hppa_hpux_som_init_abi): Set is_elf to 0.
2778 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2779 * hppa-tdep.c (low_text_segment_address): Remove global.
2780 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2781 section offset to calculate segment address.
2782 (internalize_unwinds): Define low_text_segment_address as local and
2783 pass to record_text_segment_lowaddr for ELF targets.
2784 (hppa_gdbarch_init): Zero fill tdep structure.
2785 (hppa_dump_tdep): Print tdep structure.
2786 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2787
27882004-04-17 Randolph Chung <tausq@debian.org>
2789
2790 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2791 (hppa_gdbarch_init): Set pseudo_register_read.
2792 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2793 * regcache.c (supply_register): Remove check for
2794 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2795
27962004-04-17 Randolph Chung <tausq@debian.org>
2797
2798 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2799 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2800 (hpread_adjust_stack_address): Move to hpread.c.
2801 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2802 obj_private_struct): Move from tm-hppa.h.
2803 * hpread.c (hppa-tdep.h): Include.
2804 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2805 (hpread_read_function_type, hpread_read_doc_function_type)
2806 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2807 directly.
2808 * pa64solib.c (hppa-tdep.h): Include.
2809 * somsolib.c (hppa-tdep.h): Include.
2810 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2811 inferior_status): Remove unused forward declarations.
2812 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2813 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2814 obj_private_struct): Move to hppa-tdep.h.
2815 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2816
28172004-04-17 Randolph Chung <tausq@debian.org>
2818
2819 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2820 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2821 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2822 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2823 Remove forward declaration and make static.
2824 (hppa_reg_struct_has_addr): Remove.
2825
28262004-04-16 Joel Brobecker <brobecker@gnat.com>
2827
2828 * observer.sh: Move comments in sed command to first column.
2829
28302004-04-16 Jason Molenda (jmolenda@apple.com)
2831
2832 * frame.c: Minor typeo corrections in comments.
2833
28342004-04-16 Joel Brobecker <brobecker@gnat.com>
2835
2836 * observer.c (observer_test_first_notification_function): Update
2837 function profile.
2838 (observer_test_second_notification_function): Likewise.
2839 (observer_test_third_notification_function): Likewise.
2840
28412004-04-16 Mark Kettenis <kettenis@gnu.org>
2842
2843 From Brian Ford <ford@vss.fsi.com>:
2844 * i386-tdep.c (i386_coff_init_abi): New function.
2845 * i386-tdep.h (i386_coff_init_abi): New prototype.
2846 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2847 register number translation functions for DWARF and DWARF 2.
2848
28492004-04-16 Joel Brobecker <brobecker@gnat.com>
2850
2851 * dwarf2read.c: Back out my previous change, it was incorrect.
2852
28532004-04-16 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * dwarf2read.c: Include "hashtab.h".
2856 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2857 has_namespace_info.
2858 (struct partial_die_info): Add comments. Use bitfields to reduce
2859 memory footprint. Add scope, scope_set, has_specification,
2860 spec_offset, die_parent, die_child, and die_sibling.
2861 (peek_die_abbrev): Add prototype.
2862 (partial_read_comp_unit_head): New function, broken out from
2863 dwarf2_build_psymtabs_hard.
2864 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2865 Use partial_read_comp_unit_head. Initialize the CU and
2866 comp_unit_obstack. Update calls to read_partial_die and
2867 scan_partial_symbols. Use free_stack_comp_unit and
2868 load_partial_dies.
2869 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2870 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2871 Update calls to helper functions. Remove NAMESPACE argument.
2872 Update comments.
2873 (partial_die_parent_scope, partial_die_full_name): New functions.
2874 (add_partial_symbol): Remove namespace argument. Update call to
2875 pdi_needs_namespace. Use partial_die_full_name. Handle
2876 DW_TAG_namespace. Check has_namespace_info flag.
2877 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2878 tag. Handle namespaces.
2879 (add_partial_namespace, add_partial_enumeration): Simplify.
2880 (guess_structure_name): New function, derived from
2881 add_partial_structure.
2882 (add_partial_structure): Remove.
2883 (determine_class_name): Update comment.
2884 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2885 (is_type_tag_for_partial, load_partial_dies): New functions.
2886 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2887 Record specifications instead of following them immediately.
2888 (find_partial_die_in_comp_unit, find_partial_die)
2889 (fixup_partial_die, free_stack_comp_unit)
2890 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2891 (partial_die_hash, partial_die_eq): New functions.
2892 * Makefile.in (hashtab_h): Define.
2893 (dwarf2read.o): Update dependencies.
2894 (observer_inc, observer_h): Move to the correct section.
2895
28962004-04-15 Joel Brobecker <brobecker@gnat.com>
2897
2898 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2899 (die_is_declaration): Use the function above. Add comment.
2900
29012004-04-15 Joel Brobecker <brobecker@gnat.com>
2902
2903 * dwarf2read.c (read_structure_scope): Identify stub types
2904 using die_is_declaration() only.
2905
29062004-04-15 Roland McGrath <roland@redhat.com>
2907
2908 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2909 argument instead of NAME.
2910 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2911 in call to symbol_file_add_with_addrs_or_offsets.
2912 (build_addr_info): New function, helper for ...
2913 (symbol_file_add_from_memory): New function.
2914 (add_symbol_file_from_memory_command): New function using that.
2915 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2916 (pre_add_symbol_hook): Add const to argument type.
2917 * symfile.h (symbol_file_add_from_memory): Declare it.
2918
29192004-04-15 Mark Kettenis <kettenis@gnu.org>
2920
2921 * NEWS (New native configurations): Mention OpenBSD/vax.
2922 * configure.host: Add vax-*-openbsd*.
2923 * config/vax/obsd.mh: New file.
2924 * config/vax/nm-obsd.h: New file.
2925
2926 * vax-tdep.c: Include "regset.h".
2927 (vax_supply_gregset): New function.
2928 (vax_gregset): New variable.
2929 (vax_regset_from_core_section): New function.
2930 (vax_gdbarch_init): Set regset_from_core_section.
2931 * Makefile.in (vax-tdep.o): Update dependencies.
2932
29332004-04-15 Andrew Cagney <cagney@redhat.com>
2934
2935 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2936 (observer_normal_stop_notification_stub)
2937 (observer_attach_normal_stop, observer_detach_normal_stop):
2938 Delete, replaced by #include "observer.inc".
2939 * infrun.c (normal_stop): Pass "stop_bpstat" to
2940 observer_notify_normal_stop.
2941 * Makefile.in (observer_inc): Define.
2942 (observer.o): Update dependencies.
2943 (observer.h, observer.inc): New rules.
2944 * observer.h: Delete file.
2945 * observer.sh: New file.
2946
29472004-04-15 Mark Kettenis <kettenis@gnu.org>
2948
2949 * vax-tdep.c (vax_frame_cache): Fix typo.
2950
29512004-04-14 Mark Kettenis <kettenis@gnu.org>
2952
2953 * NEWS (New native configurations): Mention NetBSD/vax.
2954 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2955 * config/vax/nbsdelf.mh: New file.
2956 * config/vax/nbsdaout.mh: New file.
2957 * config/vax/nm-nbsd.h: New file.
2958 * config/vax/nm-nbsdaout.h: New file.
2959
2960 * vaxnbsd-tdep.c: New file.
2961 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2962 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2963 * config/vax/nbsd.mt: New file.
2964 * config/vax/tm-nbsd.h: New file.
2965
2966 * Makefile.in (vaxbsd-nat.o): New dependency.
2967
2968 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2969 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2970 struct_addr arguments. Don't push return value address.
2971 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2972 arguments to vax_store_arguments. Store return value address in
2973 R1.
2974 (vax_store_struct_return, vax_extract_return_value)
2975 (vax_store_return_value): Remove functions.
2976 (vax_return_value): New function.
2977 (vax_gdbarch_init): Set return value. Don't set
2978 deprecated_store_struct_return, deprecated_extract_struct_return
2979 and deprecated_store_return_value.
2980
29812004-04-14 Andreas Schwab <schwab@suse.de>
2982
2983 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2984 value buffer.
2985 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2986
29872004-04-14 Mark Kettenis <kettenis@gnu.org>
2988
2989 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2990 (vax_unwind_dummy_id): New functions.
2991 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2992 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2993 variables.
2994 (vax_fix_call_dummy): Remove function.
2995 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2996 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2997 call_dummy_location, deprecated_call_dummy_words,
2998 deprecated_sizeof_call_dummy_words,
2999 deprecated_call_dummy_breakpoint_offset,
3000 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
3001 and deprecated_dummy_write_sp.
3002
30032004-04-13 David Carlton <carlton@kealia.com>
3004
3005 * MAINTAINERS: Move myself to "paper trail" section.
3006
30072004-04-12 Mark Kettenis <kettenis@gnu.org>
3008
3009 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
3010 "trad-frame.h".
3011 (vax_frame_init_saved_regs): Remove function.
3012 (vax_sigtramp_saved_pc): Remove function.
3013 (vax_frame_saved_pc): Remove function.
3014 (vax_frame_args_address): Remove function.
3015 (vax_frame_num_args): Rewrite.
3016 (vax_frame_chain): Remove function.
3017 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
3018 VAX_FP_REGNUM.
3019 (vax_pop_frame): Likewise.
3020 (vax_saved_pc_after_call): Remove function.
3021 (struct vax_frame_cache): New structure.
3022 (vax_frame_cache): New function.
3023 (vax_frame_this_id): New function.
3024 (vax_frame_prev_register): New function.
3025 (vax_frame_unwind): New variable.
3026 (vax_frame_sniffer): New function.
3027 (vax_frame_base_address): New function.
3028 (vax_frame_args_address): New function.
3029 (vax_frame_base): New variable.
3030 (vax_unwind_pc): New function.
3031 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
3032 deprecated_fp_regnum, deprecated_saved_pc_after_call,
3033 deprecated_frame_chain, deprecated_frame_saved_pc,
3034 deprecated_frame_args_address and
3035 deprecated_frame_init_saved_regs.
3036 * Makefile.in (vax-tdep.o): Update dependencies.
3037
3038 * vaxbsd-nat.c: New file.
3039
3040 * vax-tdep.h: Update copyright year. Adjust comments.
3041 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
3042 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
3043 (vax_regnum): New enum. Replacing...
3044 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
3045 (VAX_PS_REGNUM): ... these removed macros.
3046 * vax-tdep.c (vax_register_name): Remove prototype.
3047 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
3048 (vax_register_byte, vax_register_raw_size,
3049 vax_register_virtual_size, vax_register_virtual_type): Remove
3050 functions.
3051 (vax_register_type): New function.
3052 (vax_breakpoint_from_pc): Reorganize.
3053 (vax_gdbarch_init): Set register_type. Don't set
3054 deprecated_register_size, deprecated_register_bytes,
3055 deprecated_register_byte, deprecated_register_raw_size,
3056 deprecated_max_register_raw_size,
3057 deprecated_register_virtual_size,
3058 deprecated_max_register_virtual_size and
3059 deprecated_register_virtual_type. Add comment on stack direction.
3060
30612004-04-11 Mark Kettenis <kettenis@gnu.org>
3062
3063 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
3064 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
3065 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
3066
30672004-04-10 Randolph Chung <tausq@debian.org>
3068
3069 * MAINTAINERS (write after approval): Add myself.
3070
30712004-04-07 Randolph Chung <tausq@debian.org>
3072
3073 * hppa-tdep.c (hppa_inner_than): Remove.
3074 (is_pa_2): Remove unused static variable.
3075 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
3076
30772004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
3078
3079 * language.h (language_defn): Add new la_post_parser field.
3080 * parser-defs.h (null_post_parser): New declaration (default for
3081 la_post_parser).
3082
3083 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
3084 insert call to that function.
3085 (parse_exp_in_context): New function, including code formerly in
3086 parse_exp_1. Calls language-dependent post-parser after
3087 prefixification.
3088 (parse_expression_in_context): New exported function.
3089 (null_post_parser): New definition.
3090 * expression.h (parse_expression_in_context): Add declaration.
3091
3092 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3093 * c-lang.c (c_language_defn): Ditto.
3094 (cplus_language_defn): Ditto.
3095 (asm_language_defn): Ditto.
3096 (minimal_language_defn): Ditto.
3097 * f-lang.c (f_language_defn): Ditto.
3098 * jv-lang.c (java_language_defn): Ditto.
3099 * language.c (unknown_language_defn): Ditto.
3100 (auto_language_defn): Ditto.
3101 (local_language_defn): Ditto.
3102 * m2-lang.c (m2_language_defn): Ditto.
3103 * scm-lang.c (scm_language_defn): Ditto.
3104 * obj-lang.c (objc_language_defn): Ditto.
3105
31062004-04-10 Mark Kettenis <kettenis@gnu.org>
3107
3108 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3109 (amd64nbsd_mcontext_addr): New function.
3110 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3111 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3112 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3113
3114 * corelow.c (core_xfer_partial): Fix coding standards violation.
3115 Add support for TARGET_OBJECT_WCOOKIE.
3116
3117 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3118 deprecated_pc_in_sigtramp.
3119 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3120 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3121 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3122 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3123 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3124 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3125 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3126
3127 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3128 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3129 Fix typo.
3130
3131 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3132 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3133 (amd64_collect_fxsave): Likewise.
3134
3135 * i386-sol2-tdep.c: Include "gdb_string.h".
3136 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3137 name.
3138 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3139
31402004-04-10 Mark Kettenis <kettenis@gnu.org>
3141
3142 * i386-sol2-tdep.c: Include "solib-svr4.h".
3143 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3144 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3145 * config/i386/tm-i386sol2.h: Include :solib.h".
3146 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3147 solib-svr4.o and solib-legacy.o.
3148 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3149 solib-svr4.o.
3150
31512004-04-09 Mark Kettenis <kettenis@gnu.org>
3152
3153 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3154 whether a register is supplied by PTRACE_GETFPREGS.
3155 (store_inferior_registers): Likewise.
3156 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3157 whether a register is supplied by PT_GETFPREGS.
3158 (store_inferior_registers): Likewise.
3159
3160 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3161 * config/i386/linux64.mt (TDEPFILES): Likewise.
3162
3163 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3164
3165 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3166 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3167 the program counter is in the range specified by `struct
3168 gdbarch_tdep'.
3169 * amd64-linux-tdep.c: Include "symtab.h".
3170 (amd64_linux_pc_in_sigtramp): Remove function.
3171 (amd64_linux_sigtramp_p): New function.
3172 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3173 deprecated_pc_in_sigtramp.
3174 * amd64nbsd-tdep.c: Include "symtab.h".
3175 (amd64nbsd_sigtramp_p): New function.
3176 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3177 deprecated_pc_in_sigtramp.
3178 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3179 few comments.
3180 (amd64obsd_pc_in_sigtramp): Remove function.
3181 (amd64obsd_sigtramp_p): New function.
3182 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3183 deprecated_pc_in_sigtramp.
3184 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3185 (i386bsd_pc_ins_sigtramp): Remove prototype.
3186 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3187 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3188 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3189 the program counter is in the range specified by `struct
3190 gdbarch_tdep'.
3191 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3192 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3193 (i386_go32_pc_in_sigtramp): Remove function.
3194 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3195 Initialize TDEP->sigtramp_p.
3196 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3197 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3198 deprecated_pc_in_sigtramp.
3199 * i386-linux-tdep.c: Adjust comments.
3200 (i386_linux_pc_in_sigtramp): Remove function.
3201 (i386_linux_sigtramp_p): New function.
3202 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3203 deprecated_pc_in_sigtramp.
3204 * i386-nto-tdep.c: Update copyright year.
3205 (i386nto_pc_in_sigtramp): Remove function.
3206 (i386nto_sigtramp_p): New function.
3207 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3208 SP_REGNUM.
3209 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3210 deprecated_pc_in_sigtramp.
3211 * i386-sol2-tdep.c: Update copyright year.
3212 (i386_sol2_pc_in_sigtramp): Remove function.
3213 (i386_sol2_sigtramp_p): New function.
3214 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3215 deprecated_pc_in_sigtramp.
3216 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3217 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3218 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3219 deprecated_sigtramp_start and deprecated_sigtramp_end.
3220 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3221 (i386nbsd_pc_in_sigtramp): Remove function.
3222 (i386nbsd_sigtramp_p): New function.
3223 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3224 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3225 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3226 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3227 (i386obsd_pc_in_sigtramp): Remove function.
3228 (i386obsd_sigtramp_p): New function.
3229 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3230 functions.
3231 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3232 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3233 TDEP->sigtramp_p.
3234 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3235 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3236 dependencies.
3237
3238 * config/i386/i386aout.mt: Remove file.
3239
3240 * configure.tgt: Remove i[34567]86-*-go32*,
3241 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3242 and i[34567]86-*-isc*. Set gdb_target to i386 for
3243 i[34567]86-*-netware* and i[34567]86-*-*.
3244 * config/i386/i386.mt: New file.
3245 * config/i386/embed.mt: Remove file.
3246 * config/i386/go32.mt: Remove file.
3247 * config/i386/i386nw.mt: Remove file.
3248 * config/i386/i386v.mt: Remove file.
3249 * config/i386/tm-go32.h: Remove file.
3250
3251 * tui/tui-hooks.c: Include "readline/readline.h" after
3252 "gdb_curses.h" instead of before.
3253 * tui/tui-io.c: Likewise.
3254
3255 * tui/tui.c: Fix typo in comment.
3256
3257 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3258
32592004-04-08 Andrew Cagney <cagney@redhat.com>
3260
3261 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3262 (deprecated_exception_support_initialized): Declare.
3263 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
3264 (initialize_hp_cxx_exception_support)
3265 (child_enable_exception_callback): Update.
3266 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3267 (deprecated_exception_support_initialized): Rename
3268 deprecated_exception_catchpoints_are_fragile and
3269 deprecated_exception_support_initialized.
3270 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3271
3272 * symtab.c (deprecated_hp_som_som_object_present): Rename
3273 hp_som_som_object_present.
3274 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3275 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3276 Update. Delete extern declaration.
3277 * valops.c (hp_som_som_object_present): Ditto.
3278 * parse.c (deprecated_hp_som_som_object_present)
3279 (parse_nested_classes_for_hpacc): Ditto.
3280 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
3281 * hppa-hpux-tdep.c (hp_som_som_object_present)
3282 (initialize_hp_cxx_exception_support): Ditto.
3283 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
3284 * cp-valprint.c (hp_som_som_object_present)
3285 (cp_print_class_method): Ditto.
3286 * c-typeprint.c (hp_som_som_object_present):
3287 (c_type_print_base): Ditto.
3288 * c-exp.y (hp_som_som_object_present): Ditto.
3289
32902004-04-08 Andrew Cagney <cagney@redhat.com>
3291
3292 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3293 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3294 (frame_unwind_find_by_frame): Re-implement the unwind code so
3295 that it can both prepend and append sniffers. Replace
3296 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3297 * tramp-frame.c (tramp_frame_append): Use
3298 frame_unwind_prepend_unwinder.
3299 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3300 frame_unwind_register_unwinder.
3301 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3302 tramp_frame_append.
3303 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
3304 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
3305 (mips_linux_init_abi): Update.
3306
33072004-04-08 Kevin Buettner <kevinb@redhat.com>
3308
3309 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3310 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3311 file support.
3312
33132004-04-07 Kevin Buettner <kevinb@redhat.com>
3314
3315 * ia64-tdep.c (elf.h): Don't include.
3316 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3317
33182004-04-07 Jason Molenda (jmolenda@apple.com)
3319
3320 * frame.h: Typeo corrections in comments.
3321
33222004-04-07 Jim Blandy <jimb@redhat.com>
3323
3324 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3325 %esp and %ebp
3326
33272004-04-07 Mark Kettenis <kettenis@gnu.org>
3328
3329 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3330 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3331 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3332 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3333 and solib-legacy.o.
3334 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3335 solib-svr4.o.
3336 * config/sparc/tm-sol2.h: Update copyright year. Include
3337 "solib.h".
3338
3339 * sparc-sol2-tdep.c: Update copyright year. Include
3340 "solib-svr4.h".
3341 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3342 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3343 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3344 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
3345 dependencies.
3346
33472004-04-06 Andrew Cagney <cagney@redhat.com>
3348
3349 * infttrace.c: Include "infttrace.h".
3350 * infttrace.h: Include "target.h".
3351 * Makefile.in (infttrace_h): Update.
3352 (infttrace.o): Update.
3353
33542004-04-06 Andrew Cagney <cagney@redhat.com>
3355
3356 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3357 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3358 move extern declarations from here ...
3359 * infttrace.h: ... to here.
3360 * Makefile.in (hppah-nat.o): Update dependencies.
3361
3362 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3363 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
3364 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
3365 (hppa_breakpoint_from_pc): Delete.
3366
3367 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3368
33692004-04-05 Andrew Cagney <cagney@redhat.com>
3370
3371 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3372 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3373 <sys/file.h>.
3374
33752004-04-06 Randolph Chung <tausq@debian.org>
3376
3377 Committed by Andrew Cagney (mechanical change).
3378 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3379 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3380 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3381 child_enable_exception_callback, current_ex_event,
3382 null_symtab_and_line, child_get_current_exception_event,
3383 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3384 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3385 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3386 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3387 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3388 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3389 Move hpux-specific definitions ...
3390 * hppa-hpux-tdep.c: ... to here.
3391
33922004-04-05 Andrew Cagney <cagney@redhat.com>
3393
3394 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3395 skip_prologue_using_sal.
3396
33972004-04-05 Andrew Cagney <cagney@redhat.com>
3398
3399 * config/i386/tm-i386.h: Delete file.
3400 * config/i386/tm-vxworks.h: Update copyright, do not include
3401 "tm-i386.h".
3402 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3403 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3404 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3405 * config/i386/ncr3000.mt (TM_FILE): Delete.
3406 * config/i386/interix.mt (TM_FILE): Delete.
3407 * config/i386/i386v.mt (TM_FILE): Delete.
3408 * config/i386/i386nw.mt (TM_FILE): Delete.
3409 * config/i386/i386gnu.mt (TM_FILE): Delete.
3410 * config/i386/i386aout.mt (TM_FILE): Delete.
3411 * config/i386/embed.mt (TM_FILE): Delete.
3412
34132004-04-05 Kevin Buettner <kevinb@redhat.com>
3414
3415 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3416 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3417 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3418 (accg7_regnum): New constants.
3419 (last_spr_regnum, last_pseudo_regnum): Update.
3420 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3421 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
3422 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3423 for accg registers.
3424 (frv_register_sim_regno): Update spr_map[].
3425
34262004-04-04 Andrew Cagney <cagney@redhat.com>
3427
3428 * config/mips/xm-riscos.h: Delete.
3429 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3430 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3431 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3432 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3433 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3434 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3435 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3436 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3437 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3438 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3439 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3440 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3441 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3442 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3443 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3444 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3445 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3446 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3447 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3448 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3449 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3450 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3451 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3452 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3453 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3454 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
3455
3456 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3457 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3458 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3459 * configure.host: Remove m680[01]0-sun-sunos3*,
3460 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3461 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3462 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3463 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3464 mips-*-riscos*.
3465 * NEWS: Mention removed systems.
3466
34672004-04-04 Andrew Cagney <cagney@redhat.com>
3468
3469 GDB 6.1 release created from 6.1 branch.
3470
34712004-04-04 Andrew Cagney <cagney@redhat.com>
3472
3473 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3474 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3475 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3476
3477 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3478 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3479 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3480
34812004-04-03 Jim Blandy <jimb@redhat.com>
3482
3483 * MAINTAINERS: Chris Faylor has changed employers; add him to
3484 "paper trail" section, and update his E-mail address.
3485
34862004-04-03 Andrew Cagney <cagney@redhat.com>
3487
3488 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3489 generic dummy frames.
3490 * dummy-frame.c: Update copyright.
3491 (dummy_frame_sniffer): Delete check for generic dummy frames.
3492
3493 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
3494 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
3495 (REG_PARM_STACK_SPACE): Delete.
3496 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3497 Inline reference to REG_PARM_STACK_SPACE.
3498
3499 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3500 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3501 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3502 (FRAME_BASE_BEFORE_SIGTRAMP)
3503 (hppa32_hpux_frame_base_before_sigtramp)
3504 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3505 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3506 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3507 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3508 (FRAME_BASE_BEFORE_SIGTRAMP)
3509 (hppa64_hpux_frame_base_before_sigtramp)
3510 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3511
35122004-04-03 Andrew Cagney <cagney@redhat.com>
3513
3514 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3515
35162004-04-02 Andrew Cagney <cagney@redhat.com>
3517
3518 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3519 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3520 * dummy-frame.h: Delete out-of-date comments.
3521 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3522 * gdbarch.h, gdbarch.c: Re-generate.
3523
35242004-04-02 Joel Brobecker <brobecker@gnat.com>
3525
3526 Committed by Andrew Cagney <cagney@redhat.com>.
3527 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3528 into account an instruction saving a register if we have already
3529 seen an earlier instruction saving that same register.
3530
35312004-04-02 Andrew Cagney <cagney@redhat.com>
3532
3533 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3534 * gdbarch.h, gdbarch.c: Re-generate.
3535 * frame.c (legacy_get_prev_frame): Delete references to
3536 DEPRECATED_INIT_FRAME_PC_FIRST.
3537
3538 * infrun.c (pc_in_sigtramp): Delete function.
3539 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3540 get_frame_type.
3541
35422004-04-02 Andrew Cagney <cagney@redhat.com>
3543
3544 * infrun.c (handle_step_into_function): Delete code conditional on
3545 legacy_frame_p.
3546 (handle_inferior_event, step_over_function): Ditto.
3547
35482004-04-02 Andrew Cagney <cagney@redhat.com>
3549
3550 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3551 "previous frame inner to this frame" test.
3552
35532004-04-02 Andrew Cagney <cagney@redhat.com>
3554
3555 * frame.c (safe_frame_unwind_memory): New function.
3556 * frame.h (safe_frame_unwind_memory): Declare. Update description
3557 of /safe_/ methods.
3558 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3559 "next_frame". Use safe_frame_unwind_memory.
3560 (tramp_frame_sniffer): Update call to tramp_frame_start.
3561
35622004-04-01 Daniel Jacobowitz <drow@mvista.com>
3563
3564 * dwarf2read.c (dwarf2_objfile_data_key): New.
3565 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3566 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3567 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3568 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3569 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3570 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3571 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3572 Remove variables.
3573 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3574 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3575 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3576 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3577 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3578 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3579 Remove macros.
3580 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3581 data.
3582 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3583 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3584 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3585 (read_partial_die, read_full_die, read_indirect_string)
3586 (dwarf_decode_line_header, dwarf_decode_macros)
3587 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3588 Update uses of removed variables.
3589 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3590 of removed macros.
3591 (_initialize_dwarf2_read): New function.
3592 * symfile.h (dwarf2_has_info): Update prototype.
3593 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3594 * elfread.c (elf_symfile_read): Likewise.
3595
35962004-04-01 Jim Blandy <jimb@redhat.com>
3597
3598 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3599 function for register numbers on all the rs6000-derived targets.
3600 (rs6000_gdbarch_init): Don't register a separate
3601 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3602 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3603 variants.
3604
3605 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3606 numbering.
3607
36082004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3609
3610 * valarith.c: Update copyright notice.
3611 (value_add): Handle range types.
3612 (value_sub): Ditto.
3613 (value_equal): Ditto.
3614 (value_less): Ditto.
3615 (value_neg): Ditto.
3616 (value_complement): Ditto.
3617 (value_binop): Simplify slightly by using is_integral_type and
3618 eliminiating unnecessary COERCE_ENUMs.
3619
36202004-03-31 Andrew Cagney <cagney@redhat.com>
3621
3622 * frame.h (frame_unwind_id): Declare.
3623 * frame.c (frame_unwind_id): New function.
3624 (get_prev_frame_1): New function.
3625 (frame_debug_got_null_frame): New function.
3626 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3627 code proper to prev_frame, update description.
3628 * infrun.c (step_over_function): Use frame_unwind_id.
3629
36302004-04-31 J. Brobecker <brobecker@gnat.com>
3631
3632 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3633 (hppa64_push_dummy_call): Likewise.
3634
36352004-03-30 Jim Blandy <jimb@redhat.com>
3636
3637 From Ulrich Weigand:
3638 * utils.c (query): Do not use a va_list variable multiple times.
3639
36402004-03-29 Daniel Jacobowitz <drow@mvista.com>
3641
3642 * Makefile.in (linux_nat_h): Update dependencies.
3643 * configure.in: Check for <gnu/libc-version.h>.
3644 * configure: Regenerate.
3645 * config.in: Regenerate.
3646 * linux-nat.h: Include "target.h". Add waitstatus field to
3647 struct lwp_info.
3648 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3649 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3650 to.
3651 (lin_lwp_handle_extended): New function. Handle clone events.
3652 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3653 thread exit events.
3654 (child_wait): Handle clone events.
3655 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3656 * linux-nat.c (linux_enable_event_reporting): Turn on
3657 PTRACE_O_TRACECLONE.
3658 (linux_handle_extended_wait): Handle clone events.
3659 * thread-db.c: Include <gnu/libc-version.h>.
3660 (struct private_thread_info): Add dying flag.
3661 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3662 higher.
3663 (attach_thread): Update comments. Handle dying threads.
3664 (detach_thread): Set the dying flag.
3665 (check_event): Always call attach_thread.
3666
36672004-03-29 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * mips-tdep.c (mips_pdr_data): New.
3670 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3671 (_initialize_mips_tdep): Initialize mips_pdr_data.
3672
36732004-03-29 Corinna Vinschen <vinschen@redhat.com>
3674
3675 * minsyms.c (install_minimal_symbols): Move dropping leading
3676 char from linkage name from here...
3677 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3678 test for "__gnu_compiled*" symbols.
3679
36802004-03-28 Jim Blandy <jimb@redhat.com>
3681
3682 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3683 registers to temp register r0 and byte stores as prologue
3684 instructions.
3685
36862004-03-28 Andrew Cagney <cagney@redhat.com>
3687
3688 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3689 arm*-*-*.
3690
36912004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3692
3693 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3694 and switch the layout to force a display of register window.
3695
36962004-02-26 J. Brobecker <brobecker@gnat.com>
3697
3698 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3699 of the INTEGER class.
3700
37012004-03-26 Jim Blandy <jimb@redhat.com>
3702
3703 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3704 bytes long on PPC GNU/Linux.
3705
37062004-03-26 David Carlton <carlton@kealia.com>
3707
3708 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3709
37102004-03-25 Andrew Cagney <cagney@redhat.com>
3711
3712 * PROBLEMS: Add general section titles, remove references to
3713 specific releases.
3714
37152004-03-25 Daniel Jacobowitz <drow@mvista.com>
3716
3717 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3718 INT_REGISTER_SIZE.
3719 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3720 FP_REGISTER_VIRTUAL_SIZE.
3721 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3722 of DEPRECATED_REGISTER_RAW_SIZE.
3723 (arm_register_type): Add gdbarch argument.
3724 (arm_register_raw_size, arm_register_virtual_size): Delete.
3725 (arm_register_byte, arm_extract_return_value)
3726 (arm_store_return_value, arm_get_longjmp_target): Update references
3727 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3728 (arm_gdbarch_init): Likewise. Don't set
3729 deprecated_register_raw_size, deprecated_register_virtual_size,
3730 deprecated_max_register_raw_size,
3731 deprecated_max_register_virtual_size, or
3732 deprecated_max_register_virtual_type. Do set register_type.
3733 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3734 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3735 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3736 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3737 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3738 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3739 INT_REGISTER_SIZE.
3740 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3741 (remote_rdp_store_register): Likewise.
3742
37432004-03-24 Daniel Jacobowitz <drow@mvista.com>
3744
3745 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3746 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3747 to after osabi initialization.
3748 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3749 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3750 functions.
3751 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3752 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3753 variables.
3754 (mips_linux_init_abi): Append signal trampoline unwinders.
3755
37562004-03-24 Andrew Cagney <cagney@redhat.com>
3757
3758 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3759 * tramp-frame.c: Include "gdb_assert.h".
3760 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3761 correct sizeof.
3762 (tramp_frame_append): Validate the tramp frame's instructions.
3763 * Makefile.in (tramp-frame.o): Update dependencies.
3764
37652004-03-23 Andrew Cagney <cagney@redhat.com>
3766
3767 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3768
37692004-03-23 Andrew Cagney <cagney@redhat.com>
3770
3771 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3772 Nasser as past testsuite/lib/ (and other) maintainers.
3773
37742004-03-23 Daniel Jacobowitz <drow@mvista.com>
3775
3776 * infcmd.c (attach_command): Reread symbols if we already have
3777 an exec file.
3778
37792004-03-23 Andrew Cagney <cagney@redhat.com>
3780
3781 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3782
37832004-03-23 Andrew Cagney <cagney@redhat.com>
3784
3785 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3786 * gdbarch.h, gdbarch.c: Re-generate.
3787 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3788 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3789 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3790 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
3791 (DEPRECATED_SIGTRAMP_START): Update.
3792 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
3793 (DEPRECATED_SIGTRAMP_START): Update.
3794 * blockframe.c (find_pc_sect_partial_function): Update.
3795 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3796
37972004-03-23 Daniel Jacobowitz <drow@mvista.com>
3798
3799 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3800 if necessary.
3801
38022004-03-23 Andrew Cagney <cagney@redhat.com>
3803
3804 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3805 predicate, deprecate.
3806 * gdbarch.h, gdbarch.c: Re-generate.
3807 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3808 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3809 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3810 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3811 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3812 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3813 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3814 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3815 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3816 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3817 * blockframe.c (find_pc_partial_function): Update.
3818 * breakpoint.c (bpstat_what): Update.
3819 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3820 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3821 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3822 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3823 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3824 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3825 * i386-nto-tdep.c (i386nto_init_abi): Update.
3826 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3827 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3828 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3829 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3830 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3831 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3832 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3833 * infrun.c (pc_in_sigtramp): Update.
3834 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3835 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3836 * mips-tdep.c (mips_gdbarch_init): Update.
3837 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3838 * ppc-linux-tdep.c: Update comment.
3839 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3840 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3841 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3842 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3843 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3844 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3845 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3846 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3847 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3848 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
3849
38502004-03-23 Andrew Cagney <cagney@redhat.com>
3851
3852 * tramp-frame.h, tramp-frame.h: New files.
3853 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3854 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3855
3856 * Makefile.in: Update all dependencies.
3857
38582004-03-23 Andrew Cagney <cagney@redhat.com>
3859
3860 * Makefile.in (trad_frame_h): Add $(frame_h).
3861 * trad-frame.h: Update copyright. Include "frame.h".
3862 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3863 (trad_frame_set_id, trad_frame_get_id): Declare.
3864 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3865 * trad-frame.c: Update copyright.
3866 (struct trad_frame_cache): Define.
3867 (trad_frame_cache_zalloc): New function.
3868 (trad_frame_set_id, trad_frame_get_id): New functions.
3869 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
3870
38712004-03-22 Andrew Cagney <cagney@redhat.com>
3872
3873 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3874 s390_pltstub_unwind_cache.
3875 (s390_stub_frame_unwind_cache): Rename
3876 s390_pltstub_frame_unwind_cache.
3877 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3878 (s390_stub_frame_prev_register): Rename
3879 s390_pltstub_frame_prev_register.
3880 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3881 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3882
3883 From Ulrich Weigand:
3884 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3885 pointer calls like PLT calls.
3886
38872004-03-22 Daniel Jacobowitz <drow@mvista.com>
3888
3889 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3890 PC rather than the partial function start address. Use the start
3891 address to sanity check the found PDR.
3892
38932004-03-22 Daniel Jacobowitz <drow@mvista.com>
3894
3895 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3896 linux_handle_extended_wait.
3897
38982004-03-22 Andrew Cagney <cagney@redhat.com>
3899
3900 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3901 function.
3902
3903 * frame.h (generic_pop_current_frame): Delete declaration.
3904 (deprecate_pop_dummy_frame): Deprecate
3905 generic_pop_dummy_frame.
3906 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3907 (generic_pop_current_frame): Delete function.
3908 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3909 generic_pop_current_frame.
3910 * v850-tdep.c (v850_pop_frame): Update.
3911 * mcore-tdep.c (mcore_pop_frame): Update.
3912 * sh64-tdep.c (sh64_pop_frame): Update.
3913 * h8300-tdep.c (h8300_pop_frame): Update.
3914
39152004-03-22 Andrew Cagney <cagney@redhat.com>
3916
3917 * frame.h (deprecated_pc_in_call_dummy): Rename
3918 generic_pc_in_call_dummy.
3919 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3920 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3921 generic_pc_in_call_dummy.
3922 (pc_in_dummy_frame): Make static.
3923 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3924 * gdbarch.h, gdbarch.c: Re-generate.
3925 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3926 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3927 (legacy_get_prev_frame): Ditto.
3928 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3929 comment.
3930
39312004-03-21 Andrew Cagney <cagney@redhat.com>
3932
3933 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3934 declaration and out-of-date comment.
3935 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3936 Delete function.
3937 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3938 deprecated_pc_in_call_dummy.
3939
3940 * infrun.c (handle_inferior_event): For non legacy frames, use the
3941 frame ID and frame type to identify a signal trampoline. Update
3942 comments.
3943
39442004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3945
3946 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3947 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3948
39492004-03-21 Andrew Cagney <cagney@redhat.com>
3950
3951 * frame-unwind.h: Update copyright.
3952 (struct frame_data): Add opaque declaration.
3953 (frame_sniffer_ftype): Declare.
3954 (struct frame_unwind): Add "unwind_data" and "sniffer".
3955 (frame_unwind_register_unwinder): Declare.
3956 (frame_unwind_find_by_frame): Add parameter "this_cache".
3957 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3958 (legacy_get_prev_frame, legacy_get_prev_frame)
3959 (get_frame_type): Pass the prologue_cache to
3960 frame_unwind_find_by_frame.
3961 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3962 "unwinder".
3963 (frame_unwind_register_unwinder): New function.
3964 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3965
39662004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3967
3968 * bcache.c (print_percentage): Use floating point to avoid
3969 incorrect results when portion*100 overflows.
3970
39712004-03-19 Kevin Buettner <kevinb@redhat.com>
3972
3973 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3974 (ppc_linux_init_extra_frame_info)
3975 (ppc_linux_frameless_function_invocation)
3976 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3977 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3978 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3979 (rs6000_frame_chain): Delete declarations.
3980 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3981 (ppc_linux_init_extra_frame_info)
3982 (ppc_linux_frameless_function_invocation)
3983 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3984 (ppc_linux_init_abi): Remove registration of above deleted functions.
3985 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3986 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3987 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3988 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3989 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3990 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3991 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3992 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3993 frame management for all OSABIs.
3994
39952004-03-19 Andrew Cagney <cagney@redhat.com>
3996
3997 Committed by Kevin Buettner <kevinb@redhat.com>.
3998
3999 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
4000 Update copyright.
4001 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
4002 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
4003 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
4004 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
4005 unwinders. #ifdef legacy frame code.
4006 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4007 "frame-base.h".
4008 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
4009 (struct rs6000_frame_cache, rs6000_frame_cache)
4010 (rs6000_frame_this_id, rs6000_frame_prev_register)
4011 (rs6000_frame_sniffer, rs6000_frame_unwind)
4012 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
4013 (rs6000_frame_base): Implement a traditional frame unwinder.
4014 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
4015 frame unwinder.
4016
40172004-03-19 Kevin Buettner <kevinb@redhat.com>
4018
4019 * breakpoint.c (adjust_breakpoint_address): Don't adjust
4020 breakpoint address for watchpoints or the catch eventpoints.
4021 Add new paramter ``bptype''. Adjust all callers.
4022
40232004-03-19 Andrew Cagney <cagney@redhat.com>
4024
4025 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
4026
4027 * PROBLEMS: Delete note that ARM does not use frame code, problem
4028 fixed.
4029
40302004-03-18 Andrew Cagney <cagney@redhat.com>
4031
4032 * stack.c (return_command): Delete code wrapped in #ifdef
4033 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
4034
4035 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
4036
40372004-03-18 Andrew Cagney <cagney@redhat.com>
4038
4039 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
4040 DEPRECATED_IN_SIGTRAMP.
4041 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4042 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
4043 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4044 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4045 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4046 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4047 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4048 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4049 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
4050 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
4051
40522004-03-18 Andrew Cagney <cagney@redhat.com>
4053
4054 * frame-base.c: Update copyright. Include "gdb_obstack.h".
4055 (struct frame_base_table_entry): Define.
4056 (struct frame_base_table): Re-implement as a linked list.
4057 (frame_base_init): Re-implement.
4058 (frame_base_table): Delete function.
4059 (append_predicate): Delete function.
4060 (frame_base_append_sniffer): Update.
4061 (frame_base_set_default): Update.
4062 (frame_base_find_by_frame): Update.
4063 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
4064 * Makefile.in (frame-base.o): Update dependencies.
4065
40662004-03-17 Andrew Cagney <cagney@redhat.com>
4067
4068 * frame.c (legacy_get_prev_frame): Pass correct frame to
4069 frame_unwind_find_by_frame.
4070
40712004-03-17 David Carlton <carlton@kealia.com>
4072
4073 * NEWS: Mention C++ nested types and namespaces
4074
40752004-03-16 Michael Chastain <mec.gnu@mindspring.com>
4076
4077 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
4078 and "Regressions since gdb 5.3.". Add known regressions since
4079 gdb 6.0.
4080
40812004-03-16 David Carlton <carlton@kealia.com>
4082
4083 * dwarf2read.c (process_structure_scope): Process children even
4084 when we're a declaration.
4085
40862004-03-16 Andrew Cagney <cagney@redhat.com>
4087
4088 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4089 * blockframe.c (find_pc_partial_function)
4090 (find_pc_sect_partial_function): Merge into a single
4091 find_pc_partial_function.
4092
40932004-03-16 Mark Kettenis <kettenis@gnu.org>
4094
4095 * i386bsd-nat.c: s/regno/regnum/g.
4096 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4097 FP0_REGNUM.
4098 (store_inferior_registers): Likewise.
4099
41002004-03-16 Mark Kettenis <kettenis@gnu.org>
4101
4102 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4103 of i387_fill_fsave.
4104 (store_inferior_registers): Call i387_collect_fsave and
4105 i387_collect_fxsave instead of i387_fill_fsave and
4106 i387_fill_fxsave.
4107
41082004-03-15 Andrew Cagney <cagney@redhat.com>
4109
4110 * Makefile.in (frame-unwind.o): Update dependencies.
4111 * frame-unwind.c: Include "gdb_obstack.h".
4112 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4113 parameter.
4114 (append_predicate): Delete function.
4115 (struct frame_unwind_table_entry): New structure.
4116 (struct frame_unwind_table): Replace "sniffer" with "head" and
4117 "tail".
4118 (frame_unwind_append_sniffer): Update.
4119 (frame_unwind_find_by_frame): Update.
4120 (_initialize_frame_unwind): Registe frame_unwind_init using
4121 gdbarch_data_register_pre_init.
4122
41232004-03-15 Mark Kettenis <kettenis@gnu.org>
4124
4125 * i386bsd-nat.c: Update copyright year.
4126 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4127 define unconditionally.
4128
41292004-03-15 Mark Kettenis <kettenis@gnu.org>
4130
4131 * i387-tdep.h (i387_collect_fsave): New prototype.
4132 * i387-tdep.c (i387_collect_fsave): New function containing most
4133 of the code from i387_fill_fsave.
4134 (i387_fill_fsave): Call i387_collect_fsave.
4135
41362004-03-15 Mark Kettenis <kettenis@gnu.org>
4137
4138 * i386-linux-tdep.c: Update copyright year.
4139 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4140 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4141 svr4_ilp32_link_map_offsets instead of
4142 i386_linux_svr4_fetch_link_map_offsets.
4143
41442004-03-15 David Carlton <carlton@kealia.com>
4145
4146 Fix for PR c++/1553:
4147 * dwarf2read.c (read_structure_type): Determine type name by
4148 calling determine_class_name.
4149 (determine_class_name): New.
4150 (determine_prefix): Look at TYPE_TAG_NAME and call
4151 determine_class_name when appropriate.
4152 (determine_prefix_aux, class_name): Delete.
4153 (read_namespace): Set die->type.
4154
41552004-03-15 Kevin Buettner <kevinb@redhat.com>
4156
4157 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4158 unused macro definition. The definition in target.h (or perhaps
4159 elsewhere) takes precedence.
4160
41612004-03-15 Andrew Cagney <cagney@redhat.com>
4162
4163 * ppc-tdep.h: Update copyright.
4164 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4165 function signatures to match "regsets.h".
4166 * ppc-linux-tdep.c: Include "regset.h".
4167 (ELF_GREGSET_SIZE): Delete.
4168 (right_supply_register): New function.
4169 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4170 using right_supply_register.
4171 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4172 functions.
4173 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4174 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4175 (_initialize_ppc_linux_tdep): Do not register
4176 ppc_linux_regset_core_fns.
4177 (ppc_linux_regset_from_core_section): Replace
4178 fetch_core_registers.
4179 (ppc_linux_regset_core_fns): Delete.
4180 * ppc-linux-nat.c: (right_fill_reg): New function.
4181 (supply_gregset): Update call to ppc_linux_supply_gregset.
4182 (fill_gregset): Clear the register set, use right_fill_reg.
4183 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4184 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4185
4186 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4187 unsigned.
4188
41892004-03-15 Andrew Cagney <cagney@redhat.com>
4190
4191 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4192 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4193 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4194 and register_gdbarch_data.
4195 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4196 (struct gdbarch_data): Replace "init" by "pre_init" and
4197 "post_init".
4198 * gdbarch.h, gdbarch.c: Re-generate.
4199 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4200 with"obstack", use OBSTACK_ZALLOC.
4201 (dwarf2_frame_ops): Delete.
4202 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4203 (dwarf2_frame_init_reg): Use gdbarch_data.
4204 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
4205 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
4206 (_initialize_svr4_solib): Update.
4207 * user-regs.c (_initialize_user_regs): Update.
4208 * reggroups.c (_initialize_reggroup): Update.
4209 * regcache.c (_initialize_regcache): Update.
4210 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4211 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4212 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4213 * frame-unwind.c (_initialize_frame_unwind): Update.
4214 * frame-base.c (_initialize_frame_base): Update.
4215 * user-regs.c (user_reg_add): Update.
4216 * reggroups.c (reggroup_add): Update.
4217 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4218 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4219 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4220 * frame-base.c (frame_base_table): Update.
4221 * remote.c (_initialize_remote): Update.
4222 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
4223
42242004-03-15 Andrew Cagney <cagney@redhat.com>
4225
4226 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4227
42282004-03-15 Kevin Buettner <kevinb@redhat.com>
4229
4230 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4231 * frv-linux-tdep.c: New file.
4232 * frv-tdep.c (struct gdbarch_tdep): Add new field
4233 ``sigcontext_reg_addr''.
4234 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4235 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4236 (frv_sigramp_frame_sniffer): New functions.
4237 (frv_sigtramp_frame_unwind): New static global.
4238 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4239 sniffers.
4240 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4241 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4242
42432004-03-15 Kevin Buettner <kevinb@redhat.com>
4244
4245 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4246 but not via a call to error(), when unable to read memory.
4247
42482004-03-15 Kevin Buettner <kevinb@redhat.com>
4249
4250 * frv-tdep.c (frv_call_dummy_words): Delete.
4251 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4252
42532004-03-15 Andrew Cagney <cagney@redhat.com>
4254
4255 * infrun.c (handle_step_into_function, step_over_function): Only
4256 update and use STEP_FRAME_ID when the system is using legacy
4257 frames. Update comments.
4258
42592004-03-14 Mark Kettenis <kettenis@gnu.org>
4260
4261 * amd64-linux-tdep.h: Remove file.
4262 * amd64-linux-tdep.c: Don't include "inferior.h" and
4263 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4264 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4265 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4266 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4267 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4268 macros.
4269 (user_to_gdb_regmap): Remove variable.
4270 (amd64_linux_gregset_reg_offset): New variable.
4271 (amd64_core_fns): Remove variable.
4272 (fetch_core_registers): Remove function.
4273 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4274 functions.
4275 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4276 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4277 * Makefile.in (amd64_linux_tdep_h): Remove.
4278 (amd64-linux-nat.o): Update dependencies.
4279 (amd64-linux-tdep.o): Update dependencies.
4280
4281 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4282 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4283 functions.
4284 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4285
4286 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4287 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4288
42892004-03-14 Daniel Jacobowitz <drow@mvista.com>
4290
4291 * dwarf2read.c (read_structure_type): Rename from
4292 read_structure_scope. Don't create a symbol or call process_die.
4293 Return immediately if die->type is set. Call read_type_die before
4294 dwarf2_add_member_fn.
4295 (process_structure_scope): New function.
4296 (read_enumeration_type, process_enumeration_scope): New functions,
4297 broken out from read_enumeration. Don't create the enumeration
4298 type if it has already been created.
4299 (read_enumeration): Removed.
4300 (process_die): Call read_structure_type, process_structure_scope,
4301 read_enumeration_type, and process_enumeration_scope. Just call
4302 new_symbol for base and subrange types. Add a comment about other
4303 type dies.
4304 (read_type_die): Call read_enumeration_type.
4305 (add_partial_structure, new_symbol): Update comments.
4306
43072004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4308
4309 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4310
43112004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4312
4313 * tui/tui-win.h (tui_get_cmd_list): Declare.
4314 * tui/tui-win.c (tui_command): New function.
4315 (tui_get_cmd_list): New function.
4316 (_initialize_tui_win): Moved initialization of tui command in
4317 tui_get_cmd_list.
4318
4319 * tui/tui-data.c (init_content_element): Setup new data members.
4320 (init_win_info): Likewise.
4321 (free_content_elements): Free it.
4322 * tui/tui-data.h (struct tui_data_element): Store the register
4323 content to print.
4324 (struct tui_data_info): Keep the current register group.
4325
4326 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4327
4328 * tui/tui-regs.h (tui_show_registers): Update prototype.
4329 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4330 (tui_resize_all): No need to calculate anything for register window.
4331 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4332 (tui_set_register_element, tui_set_general_regs_content): Remove.
4333 (tui_set_special_regs_content): Remove.
4334 (tui_set_general_and_special_regs_content): Remove.
4335 (tui_set_float_regs_content): Remove.
4336 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4337 (tui_set_regs_content): Remove.
4338 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4339 (tui_v_show_registers_command_support): Remove.
4340 (tui_show_registers): Use a reggroup to specify the registers to show.
4341 (tui_show_register_group): New function.
4342 (tui_display_registers_from): Compute the layout of register window
4343 and refresh with new API; be sure to delete old register windows.
4344 (tui_check_register_values): Update to use tui_get_register and
4345 tui_display_data.
4346 (tui_display_register): Just refresh the register window part.
4347 (tui_register_format): Format registers and save in tui_data_element.
4348 (tui_get_register): New to combine tui_reg_value_has_changed and
4349 tui_get_register_raw_value; fix to use the new gdb API.
4350 (tui_show_float_command): Renamed tui_reg_float_command.
4351 (tui_show_general_command): Renamed tui_reg_general_command.
4352 (tui_show_special_command): Renamed tui_reg_system_command.
4353 (_initialize_tui_regs): Remove unused commands.
4354
43552004-03-13 Mark Kettenis <kettenis@gnu.org>
4356
4357 * NEWS (New native configurations): Mention OpenBSD/amd64.
4358
4359 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4360 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4361 Remove defines.
4362 * config/i386/nm-fbsd64.h: Likewise.
4363 * config/i386/nm-obsd.h: Likewise.
4364 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4365 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4366
43672004-03-12 Kevin Buettner <kevinb@redhat.com>
4368
4369 * frv-tdep.c (set_variant_scratch_registers): New function.
4370 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4371 New constants.
4372
4373 From Richard Sandiford <rsandifo@redhat.com>:
4374 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4375
43762004-03-12 Kevin Buettner <kevinb@redhat.com>
4377
4378 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4379 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4380 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4381 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4382 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4383 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4384 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4385 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4386 definitions from frv-tdep.c to frv-tdep.h.
4387
43882004-03-12 Kevin Buettner <kevinb@redhat.com>
4389
4390 Add shared library support for FR-V FDPIC ABI:
4391 * Makefile.in (solib-frv.o): Add dependencies.
4392 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4393 New functions.
4394 (frv_push_dummy_call): Add support for FDPIC ABI.
4395 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4396 for FDPIC ABI.
4397 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4398 (frv_fdpic_find_canonical_descriptor): Declare.
4399 * solib-frv.c: New file.
4400 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4401 * config/frv/tm-frv.h (solib.h): Include.
4402
44032004-03-12 Kevin Buettner <kevinb@redhat.com>
4404
4405 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4406 (frv-tdep.o): Update dependencies.
4407 * frv-tdep.h: New file.
4408 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4409 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4410 constants.
4411 (struct gdbarch_tdep): Add new member ``frv_abi''.
4412 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4413 functions.
4414 (new_variant): Set ``frv_abi'' field.
4415 (gdb_arch_init): Detect FDPIC executables.
4416
44172004-03-12 Mark Kettenis <kettenis@gnu.org>
4418
4419 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4420 wrapper.
4421
44222004-03-11 Andrew Cagney <cagney@redhat.com>
4423
4424 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4425
44262004-03-11 Kevin Buettner <kevinb@redhat.com>
4427
4428 * solist.h (master_so_list): New function.
4429 * solib.c (master_so_list): Likewise.
4430 * solib-svr4.c (enable_break): Iterate over so_list entries
4431 obtained from master list instead of entries obtained directly
4432 via svr4_current_sos().
4433
44342004-03-10 Ben Elliston <bje@gnu.org>
4435
4436 * MAINTAINERS: Update my mail address.
4437
44382004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4439
4440 * remote-m32r-sdi.c: Support hardware watchpoint.
4441
44422004-03-09 Daniel Jacobowitz <drow@mvista.com>
4443
4444 * user-regs.c: Update copyright years.
4445 (struct user_regs): Rename to gdb_user_regs.
4446 (append_user_reg, builtin_user_regs, user_regs_init)
4447 (user_reg_add, user_reg_map_name_to_regnum)
4448 (usernum_to_user_reg): Update.
4449
44502004-03-09 Daniel Jacobowitz <drow@mvista.com>
4451
4452 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4453 (skip_children): New functions.
4454 (locate_pdi_sibling): Call skip_children.
4455
44562004-03-09 Daniel Jacobowitz <drow@mvista.com>
4457
4458 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4459 * gdbtypes.c (check_typedef): Update comments.
4460
44612004-03-09 Daniel Jacobowitz <drow@mvista.com>
4462
4463 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4464 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4465 pointer. Update comment about comp_unit_head.
4466 (struct abbrev_info): Shorten two int flags.
4467 (dwarf_alloc_abbrev): Take a CU argument.
4468 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4469 each time through the loop. Update cleanup argument.
4470 (psymtab_to_symtab_1): Update cleanup call.
4471 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4472 abbrev_obstack.
4473 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4474 Just call obstack_free and clear the pointer.
4475
44762004-03-09 Daniel Jacobowitz <drow@mvista.com>
4477
4478 * infrun.c (handle_inferior_event): Remove short-circuit code for
4479 events in a different thread.
4480
44812004-03-09 Daniel Jacobowitz <drow@mvista.com>
4482
4483 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4484 print the whole transfer.
4485 (initialize_targets): Update description of "set debug target".
4486
44872004-03-09 Daniel Jacobowitz <drow@mvista.com>
4488
4489 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4490
44912004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4492
4493 * MAINTAINERS (write after approval): Add myself.
4494
44952004-03-08 Corinna Vinschen <vinschen@redhat.com>
4496
4497 * sh-tdep.c (sh_print_registers_info): Use for loop.
4498 Don't skip multiple registers when a float register is encountered.
4499
45002004-03-08 Corinna Vinschen <vinschen@redhat.com>
4501
4502 Fix PR tdep/1291.
4503 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4504 to official SH documentation.
4505
45062004-03-07 Andrew Cagney <cagney@redhat.com>
4507
4508 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4509 unused function.
4510
45112004-03-07 Daniel Jacobowitz <drow@mvista.com>
4512
4513 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4514 (arm_get_next_pc): Handle BX and BLX.
4515
45162004-03-07 Andrew Cagney <cagney@redhat.com>
4517
4518 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4519 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4520 HPPA_SP_REGNUM.
4521 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4522 (hppa_target_read_fp): Delete.
4523 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4524 register_virtual_size, max_register_raw_size,
4525 max_register_virtual_size, register_byte, register_size,
4526 target_read_fp, fp_regnum, and register_bytes. Set register_type
4527 instead of register_virtual_type.
4528 (hppa32_register_type, hppa64_register_type): Replace
4529 hppa32_register_virtual_type and hppa64_register_virtual_type.
4530 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4531 (HPPA_FP_REGNUM): Define.
4532
4533 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4534
4535 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4536 (pa_do_registers_info): Delete.
4537 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4538 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4539 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4540
4541 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4542 GDB_TARGET_IS_HPPA code.
4543 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4544 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4545 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4546 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4547 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4548 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4549 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4550 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
4551 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4552 (hppa_frameless_function_invocation, hppa64_store_return_value)
4553 (hppa_store_struct_return, hppa64_extract_return_value)
4554 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
4555 (hppa32_call_dummy_length, hppa64_call_dummy_length)
4556 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
4557 (find_proc_framesize, deposit_21, restore_pc_queue)
4558 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
4559 (rp_saved, pc_in_linker_stub): Delete.
4560
4561 Unconditionally enable 64-bit frame and ABI code.
4562 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4563 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4564 push_dummy_frame, fix_call_dummy, push_arguments,
4565 call_dummy_location, extract_return_value, use_struct_convention,
4566 store_return_value, store_struct_return, saved_pc_after_call,
4567 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4568 frame_chain, frame_chain_valid, frameless_function_invocation,
4569 frame_saved_pc, and pop_frame.
4570
4571 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4572 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4573 (hppa_gdbarch_init): Do not set PC_REGNUM.
4574
45752004-03-06 Mark Kettenis <kettenis@gnu.org>
4576
4577 * config/alpha/tm-fbsd.h: Remove file.
4578 * config/alpha/fbsd.mt: Tweak comment.
4579 (TM_FILE): Set to tm-alpha.h.
4580
45812004-03-05 Andrew Cagney <cagney@redhat.com>
4582
4583 * infrun.c (step_over_function): When non-legacy code, and no
4584 step_frame_id, use the unwinder to get the caller's frame ID.
4585
45862004-03-05 Mark Kettenis <kettenis@gnu.org>
4587
4588 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4589 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4590 bfd_arch_unknown. Adjust comment.
4591
4592 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4593 * i386obsd-tdep.c: Correct spelling in comment.
4594 * i386nbsd-tdep.c: Correct spelling in comment.
4595 * sparc-tdep.c: Correct spelling in comments.
4596
45972004-03-05 David Carlton <carlton@kealia.com>
4598
4599 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4600 bug.
4601
46022004-03-05 Mark Kettenis <kettenis@gnu.org>
4603
4604 * sparc-tdep.c: Fix typo in comment.
4605
46062004-03-04 J. Brobecker <brobecker@gnat.com>
4607
4608 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4609
46102004-03-04 Daniel Jacobowitz <drow@mvista.com>
4611
4612 * dwarf2read.c: Add comment describing memory lifetimes.
4613 (struct dwarf2_pinfo): Update comment.
4614 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4615 (read_enumeration, new_symbol): Don't use obsavestring.
4616
46172004-03-04 Mark Kettenis <kettenis@gnu.org>
4618
4619 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4620 instead of amd64_fill_fxsave.
4621 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4622 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4623
4624 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4625 Reorganize code a bit.
4626
46272004-03-04 Orjan Friberg <orjanf@axis.com>
4628
4629 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
4630 when the frame pointer is pushed. Don't set the frame pointer's
4631 address on the stack unless it's actually located there.
4632 Set the SRP's address on the stack correctly when the PC is still in
4633 the prologue.
4634 (cris_return_value): New function.
4635 (cris_gdbarch_init): Clear deprecated store_return_value,
4636 extract_return_value.
4637
46382004-03-02 Jim Blandy <jimb@redhat.com>
4639
4640 * stabsread.c (reg_value_complaint): The maximum register number
4641 is one less than the number of registers.
4642
46432004-03-02 Andrew Cagney <cagney@redhat.com>
4644
4645 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4646 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4647 trailing comma and redundant assignment of I386_ST0_REGNUM.
4648 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4649 32-bit segment registers.
4650
46512004-03-01 Andrew Cagney <cagney@redhat.com>
4652
4653 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4654 use frame_relative_level and get_next_frame.
4655
46562004-02-29 Andrew Cagney <cagney@redhat.com>
4657
4658 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4659 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4660 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4661 Delete macro.
4662
46632004-02-29 Daniel Jacobowitz <drow@mvista.com>
4664
4665 * inflow.c (terminal_inferior): Don't give up the terminal if we
4666 previously couldn't get the inferior's terminal state.
4667
46682004-02-29 Daniel Jacobowitz <drow@mvista.com>
4669
4670 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4671 PC_REGNUM.
4672
46732004-02-28 Andrew Cagney <cagney@redhat.com>
4674
4675 * NEWS: Refer to GDB 6.1.
4676 * README: Refer to GDB 6.1.
4677 * PROBLEMS: Refer to GDB 6.1.
4678
46792004-02-28 Daniel Jacobowitz <drow@mvista.com>
4680
4681 * thread-db.c (disable_thread_signals): Remove unused function.
4682
46832004-02-28 Mark Kettenis <kettenis@gnu.org>
4684
4685 * amd64-nat.c: Include "gdb_string.h".
4686 (amd64_collect_native_gregset): Zero-extend the 32-bit
4687 general-purpose registers and %eip.
4688
4689 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4690 * amd64-tdep.c (amd64_collect_fxsave): New function.
4691 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4692
4693 * i387-tdep.h: Update copyright year.
4694 (i387_collect_fxsave): New prototype.
4695 * i387-tdep.c: Update copyright year.
4696 (i387_collect_fxsave): New function containing most of the code
4697 from i387_fill_fxsave.
4698 (i387_fill_fxsave): Call i387_collect_fxsave.
4699
47002004-02-28 Andrew Cagney <cagney@redhat.com>
4701
4702 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4703 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4704
47052004-02-28 Mark Kettenis <kettenis@gnu.org>
4706
4707 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4708
47092004-02-28 Andrew Cagney <cagney@redhat.com>
4710
4711 * utils.c: Use "", instead of <>, to include readline.
4712 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4713 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4714 * source.c, solib.c, exec.c, event-top.c: Ditto.
4715 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4716 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4717 * Makefile.in: Update all dependencies.
4718 (readline_tilde_h, readline_history_h): Define.
4719 (readline_headers): Delete.
4720
47212004-02-28 Mark Kettenis <kettenis@gnu.org>
4722
4723 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4724 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4725 "config/i386/tm-lx64.h".
4726
4727 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4728 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4729 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4730
47312004-02-28 Andrew Cagney <cagney@redhat.com>
4732
4733 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4734
4735 * breakpoint.c (_initialize_breakpoint): Use
4736 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4737 Add help to show command.
4738
47392004-02-28 Mark Kettenis <kettenis@gnu.org>
4740
4741 * i386-nat.c: Reformat to be closer to coding standards.
4742 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4743 `retval'. Make variables `align' and `size' local to while-loop.
4744 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4745 (_initialize_i386_nat): New prototype.
4746
4747 * tui/tui.c: Include <readline/readline.h> instead of
4748 "readline/readline.h". Include it after <term.h> and
4749 "gdb_curses.h".
4750
47512004-02-27 Andrew Cagney <cagney@redhat.com>
4752
4753 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4754 the new frame unwind code.
4755 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4756 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4757 PCOQ_HEAD_REGNUM.
4758
4759 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4760 "return_value" and "push_dummy_call".
4761 (hppa32_use_struct_convention): Delete unused function.
4762 (hppa32_store_return_value): Delete unused function.
4763 (hppa32_extract_return_value): Delete unused function.
4764 (hppa32_stack_align): Delete function.
4765
47662004-02-27 Eli Zaretskii <eliz@elta.co.il>
4767
4768 * coffread.c (enter_linenos): Don't let rawptr reference memory
4769 outside linetab[]'s limits.
4770
47712004-02-27 Andrew Cagney <cagney@redhat.com>
4772
4773 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4774 inferior stack space - the stack needs to grow upwards.
4775 (hppa32_frame_align): New function.
4776 (hppa64_frame_align): Replace hppa_frame_align.
4777 (hppa_gdbarch_init): Update.
4778
47792004-02-26 Orjan Friberg <orjanf@axis.com>
4780
4781 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4782 (dwarf2-frame.h): Include.
4783 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4784 Remove static variables related to ABI setting.
4785 (struct gdbarch_tdep): Remove cris_abi member.
4786 (struct frame_extra_info): Remove.
4787 (cris_unwind_cache, stack_item): New structs.
4788 (cris_frame_unwind, cris_frame_base): New variables.
4789 (push_stack_item, pop_stack_item)
4790 (cris_frame_unwind_cache, cris_frame_this_id)
4791 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4792 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4793 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4794 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4795 (cris_reg_struct_has_addr): New functions.
4796 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
4797 (cris_frame_saved_pc, cris_saved_pc_after_call,
4798 (cris_store_struct_return, cris_frameless_function_invocation)
4799 (cris_pop_frame, cris_skip_prologue_main)
4800 (cris_abi_original_store_return_value)
4801 (cris_abi_v2_store_return_value)
4802 (cris_abi_original_extract_return_value)
4803 (cris_abi_v2_extract_return_value)
4804 (cris_abi_original_reg_struct_has_addr)
4805 (cris_abi_v2_reg_struct_has_addr)
4806 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4807 (cris_push_return_address, cris_abi_update): Remove.
4808 (_initialize_cris_tdep): Remove ABI command.
4809 (cris_dump_tdep): Ditto.
4810 (cris_gdbarch_init): Remove ABI command.
4811 Set store_return_value, extract_return_value, push_dummy_code,
4812 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4813 frame_unwind_append_sniffer, frame_base_set_default.
4814 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4815 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4816 sizeof_call_dummy_words, get_saved_register, push_return_address,
4817 pop_frame, store_struct_return, frame_init_saved_regs,
4818 init_extra_frame_info, frameless_function_invocation, frame_chain,
4819 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4820 dummy_write_sp.
4821
48222004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4823
4824 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4825 * valprint.c (print_hex_chars): Change from static to external.
4826 (print_char_chars): New function.
4827 * printcmd.c (print_scalar_formatted): For integer and enum types
4828 that are longer than LONGEST, perform processing via appropriate
4829 print_*_chars routines.
4830
48312004-02-26 Andrew Cagney <cagney@redhat.com>
4832
4833 * Makefile.in: Update dependencies.
4834 Changes from Ulrich Weigand,
4835 * s390-tdep.c: Include "dwarf2-frame.h".
4836 (s390_dwarf2_frame_init_reg): New function.
4837 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4838 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4839
48402004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4841
4842 * breakpoint.c (pending_break_support): New setting variable.
4843 (break_command_1): Account for pending_break_support setting
4844 when creating pending breakpoints.
4845 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4846 (_initialize_breakpoint): Add "set breakpoint pending" and
4847 "show breakpoint pending" commands.
4848
48492004-02-26 Andrew Cagney <cagney@redhat.com>
4850
4851 Fix PR i18n/1570.
4852 * charset.c (backslashable, backslashed, represented): Remove 'e'
4853 from list of escaped characters, not part of ISO-C.
4854
48552004-02-25 J. Brobecker <brobecker@gnat.com>
4856
4857 From Peter Schauer <schauer@pdf.de>:
4858 * tui/tui.c: Move system header includes after local includes.
4859 Fixes a build failure on solaris systems.
4860
48612004-02-25 J. Brobecker <brobecker@gnat.com>
4862
4863 * configure.in: Refine the previous change.
4864 * configure: Regenerate.
4865
48662004-02-25 Mark Kettenis <kettenis@gnu.org>
4867
4868 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4869 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4870 "amd64-tdep.h" instead of "x86-64-tdep.h".
4871 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4872 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4873 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4874 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4875 and "x86-64-tdep.c".
4876 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4877 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4878 and "x86-64-tdep.c".
4879 * amd64bsd-nat.c: Update copyright year.
4880 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4881 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4882 "x86-64-tdep.h".
4883 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4884 "x86-64-tdep.h".
4885 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4886 "x86-64-tdep.h".
4887 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4888 "x86-64-tdep.h".
4889 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4890 "x86-64-tdep.h".
4891 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4892 "x86-64-tdep.h".
4893 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
4894 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4895 * Makefile.in (amd64_linux_tdep_h): Renamed from
4896 x86_64_linux_tdep_h.
4897 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4898 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4899 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4900 (amd64obsd-tdep.o): Update dependencies.
4901 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4902 dependencies.
4903 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4904 dependencies.
4905 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4906 amd64-linux-nat.c amd64-linux-tdep.c.
4907 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4908 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4909 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4910 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4911 amd64-tdep.o and amd64-linux-tdep.o.
4912 (TM_FILE): Set to tm-linux64.h.
4913 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4914 (NAT_FILE): Set to nm-linux64.h.
4915 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4916 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4917 amd64-tdep.o.
4918 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4919 amd64-tdep.o.
4920 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4921 amd64-tdep.o.
4922
49232004-02-25 Roland McGrath <roland@redhat.com>
4924
4925 * remote.c (remote_protocol_qPart_auxv): New variable.
4926 (init_all_packet_configs): Initialize it.
4927 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4928 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4929 (show_remote_cmd): Call it.
4930 (_initialize_remote): Initialize commands.
4931 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4932 service TARGET_OBJECT_AUXV requests.
4933
49342004-02-25 J. Brobecker <brobecker@gnat.com>
4935
4936 * configure.in: Make sure that the wborder function is available.
4937 Otherwise, search for it in the cur_colr library.
4938 * configure: Regenerate.
4939
49402004-02-25 Andrew Cagney <cagney@redhat.com>
4941
4942 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4943
49442004-02-25 Mark Kettenis <kettenis@gnu.org>
4945
4946 * config/i386/tm-x86-64linux.h: Tweak comments.
4947
49482004-02-25 Richard Sandiford <rsandifo@redhat.com>
4949
4950 * MAINTAINERS: Add self to write-after-approval list.
4951
49522004-02-25 Andrew Cagney <cagney@redhat.com>
4953
4954 PR cli/1566. Problem found, and fix suggested by David Allan.
4955 * cli/cli-script.c (execute_control_command): Unconditionally
4956 install a cleanup. Default "ret" to "invalid_control". Use
4957 "break" instead of "return" to escape from the switch.
4958
49592004-02-24 J. Brobecker <brobecker@gnat.com>
4960
4961 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4962 with the lines macro defined in term.h on AiX.
4963 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4964 a collision with the label_width macro defined in term.h on AiX.
4965
49662004-02-23 David Mosberger <davidm@hpl.hp.com>
4967
4968 Committed by Kevin Buettner <kevinb@redhat.com>.
4969
4970 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4971 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4972 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4973 instead of ia64_write_pc().
4974 * ia64-linux-tdep.c (regcache.h): Include.
4975 (ia64_linux_write_pc): New function.
4976
49772004-02-23 Roland McGrath <roland@redhat.com>
4978
4979 * auxv.c (info_auxv_command): Fix typos in error messages.
4980
49812004-02-23 Mark Kettenis <kettenis@gnu.org>
4982
4983 * x86-64-tdep.h: Tweak comment.
4984 (enum amd64_regnum): New.
4985 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4986 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4987 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4988 (X86_64_XMM1_REGNUM): Removed.
4989 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4990 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4991 prototypes for renamed functions.
4992 * x86-64-tdep.c: Fix typo.
4993 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4994 register numbers.
4995 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4996 Use constants from `enum amd64_regnum' for register numbers.
4997 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4998 (amd64_analyze_prologue, amd64_frame_cache,
4999 amd64_sigtramp_frame_cache): Use constants from `enum
5000 amd64_regnum' for register numbers.
5001 (amd64_supply_fpregset): Adjust for renamed functions.
5002 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
5003 `enum amd64_regnum' for register numbers.
5004 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
5005 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
5006 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
5007 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
5008 (amd64_linux_fill_gregset): Adjust for renamed macros.
5009 (fetch_core_registers): Adjust for renamed functions.
5010 (amd64_linux_init_abi): Adjust for renamed functions.
5011 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
5012 renamed functions.
5013 * amd64-nat.c: Adjust for renamed macros.
5014 * amd64bsd-nat.c (fetch_inferior_registers)
5015 (store_inferior_registers): Use constants from `enum amd64_regnum'
5016 for register numbers. Adjust for renamed variables.
5017 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
5018 renamed variables.
5019 (_initialize_amd64fbsd_nat): Use constants from `enum
5020 amd64_regnum' for register numbers.
5021 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
5022 `enum amd64_regnum' for register numbers.
5023 (amd64fbsd_init_abi): Adjust for renamed functions.
5024 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
5025 `enum amd64_regnum' for register numbers.
5026 (amd64nbsd_init_abi): Adjust for renamed functions.
5027 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
5028 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
5029 `enum amd64_regnum' for register numbers.
5030 (amd64obsd_init_abi): Adjust for renamed functions.
5031 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
5032
50332004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5034
5035 * breakpoint.c (print_one_breakpoint): Do not output spaces
5036 after printing <PENDING> for a pending breakpoint.
5037
50382004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5039
5040 * printcmd.c (print_scalar_formatted): Initialize val_long
5041 to remove compiler warning message.
5042
50432004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5044
5045 * defs.h (nquery, yquery): New prototypes.
5046 * breakpoint.c (break_command_1): Use new nquery interface.
5047 * utils.c (defaulted_query, nquery, yquery): New functions.
5048
50492004-02-23 Andrew Cagney <cagney@redhat.com>
5050
5051 * hppa-tdep.c (hppa_frame_align): New function.
5052 (hppa32_push_dummy_call): New function.
5053 (hppa64_push_dummy_call): New function.
5054 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
5055 disabled.
5056
5057 * infcall.c (legacy_push_dummy_code): Don't call deprecated
5058 FIX_CALL_DUMMY when push_dummy_call is available.
5059 (call_function_by_hand, push_dummy_code): Ditto.
5060
50612004-02-22 Andrew Cagney <cagney@redhat.com>
5062
5063 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
5064 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
5065 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
5066 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
5067 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
5068 call_dummy_location to ON_STACK.
5069
50702004-02-22 Mark Kettenis <kettenis@gnu.org>
5071
5072 * x86-64-linux-tdep.c: Tweak comment.
5073 (amd64_linux_supply_gregset): Renamed from
5074 x86_64_linux_supply_gresget.
5075 (amd64_linux_fill_gregset): Renamed from
5076 x86_64_linux_fill_gregset.
5077 (fetch_core_registers): Adjust for renamed functions.
5078 (amd64_core_fns): Renamed from x86_64_core_fns.
5079 (amd64_linux_sigtramp_start): Renamed from
5080 x86_64_linux_sigtramp_start.
5081 (amd64_linux_pc_in_sigtramp): Renamed from
5082 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
5083 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
5084 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
5085 (amd64_linux_sigcontext_addr): Renamed from
5086 x86_64_linux_sigcontext_addr.
5087 (amd64_linux_sc_reg_offset): Renamed from
5088 x86_64_linux_sc_reg_offset.
5089 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5090 Adjust for renamed functions and variables.
5091 (_initialize_amd64_linux_tdep): Renamed from
5092 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5093 variables.
5094 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5095 Adjust for renamed functions.
5096
5097 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5098 from x86_64_linux_gregset64_reg_offset.
5099 (amd64_linux_gregset32_reg_offset): Rename from
5100 x86_64_linux_gregset64_reg_offset.
5101 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5102 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5103 (amd64_linux_dr_set_control): Renamed from
5104 x86_64_linux_dr_set_control. Adjust for renamed functions.
5105 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5106 Adjust for renamed functions.
5107 (amd64_linux_dr_reset_addr): Renamed from
5108 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5109 (amd64_linux_dr_get_status): Renamed from
5110 x86_64_linux_dr_get_status. Adjust for renamed functions.
5111 (_initialize_amd64_linux_nat): Renamed from
5112 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5113 functions.
5114 * config/i386/nm-x86-64linux.h: Update copyright year.
5115 Adjust for renamed functions.
5116
5117 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5118 amd64fbsd_sigtramp_start.
5119 (amd64fbsd_sigtramp_end_addr): Renamed from
5120 amd64fbsd_sigtramp_end.
5121 (amd64fbsd_init_abi): Adjust for renamed variables.
5122 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5123 variables.
5124 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5125 amd64fbsd_sigtramp_start.
5126 (amd64fbsd_sigtramp_end_addr): Renamed from
5127 amd64fbsd_sigtramp_end.
5128
51292004-02-22 Andrew Cagney <cagney@redhat.com>
5130
5131 * hppa-tdep.c (hppa32_return_value): New function.
5132 (hppa64_return_value): New function.
5133 (hppa_gdbarch_init): Set return_value; keep disabled.
5134
5135 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5136 struct-return and inferior function call methods.
5137
5138 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5139 "frame-base.h".
5140 (struct hppa_frame_cache): Define.
5141 (hppa_frame_cache, hppa_frame_this_id): New functions.
5142 (hppa_frame_prev_register): New function.
5143 (hppa_frame_unwind, hppa_frame_base): New variables.
5144 (hppa_frame_unwind_sniffer): New function.
5145 (hppa_frame_base_address, hppa_unwind_pc): New function.
5146 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5147 sniffer, and frame base sniffer; keep disabled.
5148 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5149 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5150
5151 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5152 to predicates for "seriously old code".
5153
5154 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5155 runtime if(0).
5156
5157 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5158 unsigned.
5159 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
5160
5161 * config/pa/tm-hppa.h: Update copyright.
5162 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5163 (deprecated_init_frame_pc_default): Delete declaration.
5164 (hppa_frame_init_saved_regs): Delete declaration.
5165 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5166 * hppa-tdep.c: Include "arch-utils.h".
5167 (hppa_gdbarch_init): Set deprecated init_frame_pc
5168 and deprecated frame_init_saved_regs.
5169 (hppa_frame_init_saved_regs): Make static.
5170
51712004-02-22 Mark Kettenis <kettenis@gnu.org>
5172
5173 Remove old 386BSD support.
5174 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
5175 * configure.host: Remove i[34567]86-*-bsd*.
5176 * configure.tgt: Remove i[34567]86-*-bsd*.
5177 * i386b-nat.c: Removed.
5178 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
5179 (i386b-nat.o): Remove dependencies.
5180
5181 * config/i386/i386bsd.mh: Removed.
5182 * config/i386/i386bsd.mt: Removed.
5183 * config/i386/nm-i386bsd.h: Removed.
5184 * config/i386/tm-i386bsd.h: Removed.
5185 * config/i386/xm-i386bsd.h: Removed.
5186
5187 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5188
5189 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5190 (amd64fbsd_init_abi): Set link map offsets.
5191 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5192 (amd64nbsd_init_abi): Set link map offsets.
5193 * amd64obsd-tdep.c: Include "solib-svr4.h".
5194 (amd64obsd_init_abi): Set link map offsets.
5195 * i386fbsd-tdep.c: Include "solib-svr4.h".
5196 (i386fbsd_init_abi): Set link map offsets.
5197 * i386nbsd-tdep.c: Include "solib-svr4.h".
5198 (i386nbsdelf_init_abi): Set link map offsets.
5199 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5200 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5201 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5202 solib-legacy.o and core-aout.o. Reformat.
5203 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5204 solib-svr4.o, solib-legacy.o. Reformat.
5205 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5206 * config/i386/nbsdelf.mh: Reformat.
5207 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5208 solib-svr4.o, solib-legacy.o and corelow.o.
5209 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5210 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5211 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5212 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5213 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5214 (TM_FILE): Set to tm-fbsd.h.
5215 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5216 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5217 solib-svr4.o.
5218 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5219 solib-svr4.o.
5220 (TM_FILE): Set to nm-nbsd.h.
5221 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5222 Simplify shared library support. Don't include "elf/common.h".
5223 (SVR4_SHARED_LIBS): Don't define.
5224 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5225 "solib.h".
5226 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5227 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5228 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5229 Don't include "i386/tm-i386.h". Include "solib.h".
5230 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5231 Don't include "i386/tm-i386.h".
5232 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5233 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5234 Include "i386/xm-i386.h".
5235 (HOST_LONG_DOUBLE_FORMAT): Remove.
5236
5237 Fix OpenBSD/i386 sigtramp recognition.
5238 * i386-tdep.h: Update copyright year.
5239 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5240 (i386bsd_sigtramp_end): New prototypes.
5241 (i386fbsd_sigtramp_start_addr): Renamed from
5242 i386fbsd_sigtramp_start.
5243 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5244 (i386obsd_sigtramp_start_addr): Renamed from
5245 i386obsd_sigtramp_start.
5246 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5247 * i386bsd-tdep.c: Update copyright year.
5248 (i386bsd_pc_in_sigtramp): Make public.
5249 * i386fbsd-nat.c: Update copyright year.
5250 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5251 * i386fbsd-tdep.c: Update copyright year.
5252 (i386fbsd_sigtramp_start_addr): Renamed from
5253 i386fbsd_sigtramp_start.
5254 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5255 (i386fbsdaout_init_abi): Adjust for renamed variables.
5256 * i386obsd-nat.c: Update copyright year.
5257 (_initialize_i386obsd_nat): Adjust for renamed variables.
5258 * i386obsd-tdep.c: Include "target.h".
5259 (i386obsd_page_size): New variable.
5260 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5261 (i386obsd_sigtramp_end): New functions.
5262 (i386obsd_sigtramp_start_addr): Renamed from
5263 i386obsd_sigtramp_start.
5264 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5265 (i386obsd_init_abi): Adjust for renamed variables. Set
5266 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5267 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5268
5269 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5270 trampoline change in OpenBSD kernel.
5271
5272 * amd64-nat.c: Update copyright year.
5273 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5274 architecture from REGCACHE.
5275
5276 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5277 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5278
52792004-02-21 Mark Kettenis <kettenis@gnu.org>
5280
5281 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5282 i[34567]86-*-openbsd3.[0-3].
5283 * config/i386/obsdaout.mh: New file.
5284
5285 * config/i386/obsd.mh (MH_FLAGS): Remove.
5286
5287 Fix PR build/1549.
5288 * i386obsd-tdep.c: Update copyright years. Include
5289 "solib-svr4.h".
5290 (i386obsd_init_abi): Don't set regset_from_core_section here.
5291 (i386obsd_aout_init_abi): New function. Set
5292 regset_from_core_section here.
5293 (i386obsd_elf_init_abi): New function.
5294 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5295 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5296 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5297 (TM_FILE): Set to tm-nbsd.h.
5298
5299 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5300 solib-sunos.o.
5301
5302 * solib-svr4.h: Update copyright year.
5303 (svr4_ilp32_fetch_link_map_offsets)
5304 (svr4_lp64_fetch_link_map_offsets): New prototype.
5305 * solib-svr4.c: Update copyright year.
5306 (svr4_ilp32_fetch_link_map_offsets)
5307 (svr4_lp64_fetch_link_map_offsets): New function.
5308
53092004-02-20 Daniel Jacobowitz <drow@mvista.com>
5310
5311 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5312 to the partial symbol table.
5313
53142004-02-20 J. brobecker <brobecker@gnat.com>
5315
5316 * PROBLEMS: Add description of problem documented under gdb/1560.
5317
53182004-02-20 Mark Kettenis <kettenis@gnu.org>
5319
5320 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5321 comments.
5322 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5323 functions.
5324 (amd64obsd_init_abi): Reorder initializations. Use
5325 amd64obsd_r_reg_offset to initialize the general-purpose register
5326 set details. Set regset_from_core_section.
5327 (_initialize_amd64obsd_tdep): Rename from
5328 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5329 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5330 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5331
5332 * NEWS (New native configurations): Mention OpenBSD/alpha.
5333 * configure.tgt: Add alpha*-*-openbsd*.
5334 * configure.host: Add alpha*-*-openbsd*.
5335 * alphanbsd-tdep.c: Update copyright year.
5336 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5337
53382004-02-20 Andrew Cagney <cagney@redhat.com>
5339
5340 Fix PR tdep/1372.
5341 * configure.tgt: Delete target "none-*-*".
5342 * configure.host: Delete host "none-*-*".
5343 * config/none/none.mh: Delete file.
5344 * config/none/none.mt: Delete file.
5345 * config/none/xm-none.h: Delete file.
5346 * config/none/tm-none.h: Delete file.
5347 * config/none/nm-none.h: Delete file.
5348
53492004-02-19 Fred Fish <fnf@redhat.com>
5350
5351 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5352 cache->uses_fp prior to setting it.
5353
53542004-02-19 Fred Fish <fnf@redhat.com>
5355
5356 Fix for PR breakpoint/1558.
5357 * sh-tdep.c (IS_JSR): New macro.
5358 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5359
53602004-02-19 Jim Blandy <jimb@redhat.com>
5361
5362 * findvar.c (value_from_register): Doc fix.
5363
53642004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5365
5366 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5367 type being greater than sizeof of host's LONGEST. Always use
5368 unpack_long() unless format 'f' chosen.
5369
53702004-02-19 Joel Brobecker <brobecker@gnat.com>
5371
5372 Committed by Elena Zannoni <ezannoni@redhat.com>
5373
5374 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5375 contains a symbol wich is the best, non-exact match for the given
5376 pc. Update comments.
5377
53782004-02-19 Elena Zannoni <ezannoni@redhat.com>
5379
5380 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5381 macro, which was part of the now removed Mach 3 port.
5382 * utils.c (request_quit): Ditto.
5383
53842004-02-18 Mark Kettenis <kettenis@gnu.org>
5385
5386 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5387 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5388
53892004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5390
5391 Committed by Mark Kettenis <kettenis@gnu.org>.
5392
5393 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5394 Define.
5395
53962004-02-18 Andrew Cagney <cagney@redhat.com>
5397
5398 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5399 CONFIG_INSTALL and CONFIG_UNINSTALL.
5400 * configure: Re-generate.
5401 * interps.h (INTERP_TUI): Define.
5402 * Makefile.in: Update dependencies.
5403 (TUI): New macro.
5404 (tui-main.o): Specify dependencies.
5405 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5406 * tui/tui-main.c: New file.
5407
54082004-02-18 Mark Kettenis <kettenis@gnu.org>
5409
5410 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5411 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5412 dependencies.
5413 * configure.host: Add x86_64-*-openbsd*.
5414 * configure.tgt: Add x86_64-*-openbsd*.
5415 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5416
5417 * tui/tui.c: Don't include <malloc.h>.
5418
5419 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5420 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5421 amd64nbsd-tdep.c.
5422
5423 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
5424 static. Remove extraneous whitespace.
5425 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5426 static.
5427
54282004-02-17 Jim Blandy <jimb@redhat.com>
5429
5430 * findvar.c (value_from_register): Doc fix.
5431
54322004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5433
5434 Committed by Jim Blandy <jimb@redhat.com>.
5435
5436 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
5437 CORE_ADDR as type for selectors. Correct types for GNU run time
5438 message lookup function to use double indirection.
5439 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5440 * objc-lang.h (lookup_child_selector): Adapt prototype.
5441
5442 * s390-nat.c (SUBOFF): New macro.
5443 (supply_gregset, fill_gregset): Use it to handle debugging
5444 of 32-bit exectuables running under a 64-bit kernel.
5445 * s390-tdep.c: Include "solib-svr4.h".
5446 (s390_svr4_fetch_link_map_offset): New function.
5447 (s390x_svr_fetch_link_map_offset): Likewise.
5448 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5449 * Makefile.in (s390-tdep.o): Update dependencies.
5450
5451 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5452 "frame-unwind.h".
5453 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5454 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5455 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5456 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5457 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5458 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
5459 S390_SIGNAL_FRAMESIZE,
5460 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5461 (struct frame_extra_info): Remove.
5462 (s390_memset_extra_info): Remove.
5463 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5464 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5465 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
5466 (is_rse): Renamed to ...
5467 (is_rsy): ... this. Support long displacements.
5468 (is_rxe): Renamed to ...
5469 (is_rxy): ... this. Support long displacements.
5470 (compute_x_addr): Support long displacements.
5471 (struct s390_prologue_data): New data type.
5472 (s390_on_stack): Change API to use struct s390_prologue_data.
5473 (s390_store): Reimplement.
5474 (s390_load): New function.
5475 (s390_get_signal_frame_info): Remove.
5476 (s390_get_frame_info): Remove, replace by ...
5477 (s390_analyze_prolog): ... this new function.
5478 (s390_check_function_end): Remove.
5479 (s390_function_start): Remove.
5480 (s390_frameless_function_invokation): Remove.
5481 (s390_is_sigreturn): Remove.
5482 (s390_init_frame_pc_first): Remove.
5483 (s390_init_frame_extra_info): Remove.
5484 (s390_frame_init_saved_regs): Remove.
5485 (s390_frame_saved_pc_nofix): Remove.
5486 (s390_frame_saved_pc): Remove.
5487 (s390_frame_chain): Remove.
5488 (s390_fp_regnum, s390_read_fp): Remove.
5489 (s390_pop_frame_regular, s390_pop_frame): Remove.
5490 (s390_saved_pc_after_call): Remove.
5491 (s390_skip_prologue): Reimplement.
5492 (s390_in_function_epilogue_p): Support long displacements.
5493 (struct s390_unwind_cache): New data structure.
5494 (s390_frame_unwind_cache): New function.
5495 (s390_prologue_frame_unwind_cache): Likewise.
5496 (s390_backchain_frame_unwind_cache): Likewise.
5497 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5498 (s390_frame_unwind): Define.
5499 (s390_frame_sniffer): New function.
5500 (struct s390_pltstub_unwind_cache): New data structure.
5501 (s390_pltstub_frame_unwind_cache): New function.
5502 (s390_pltstub_frame_this_id): Likewise.
5503 (s390_pltstub_frame_prev_register): Likewise.
5504 (s390_pltstub_frame_unwind): Define.
5505 (s390_pltstub_frame_sniffer): New function.
5506 (struct s390_sigtramp_unwind_cache): New data structure.
5507 (s390_sigtramp_frame_unwind_cache): New function.
5508 (s390_sigtramp_frame_this_id): Likewise.
5509 (s390_sigtramp_frame_prev_register): Likewise.
5510 (s390_sigtramp_frame_unwind): Define.
5511 (s390_sigtramp_frame_sniffer): New function.
5512 (s390_frame_base_address, s390_local_base_address): New functions.
5513 (s390_frame_base): Define.
5514 (s390_unwind_pc, s390_unwind_sp): New function.
5515 (s390_push_dummy_call): Use new frame base location.
5516 (s390_unwind_dummy_id): Likewise.
5517 (s390_gdbarch_init): Remove calls to:
5518 set_gdbarch_frameless_function_invocation,
5519 set_gdbarch_deprecated_init_frame_pc,
5520 set_gdbarch_deprecated_frame_chain,
5521 set_gdbarch_deprecated_frame_init_saved_regs,
5522 set_gdbarch_deprecated_pop_frame,
5523 set_gdbarch_deprecated_init_extra_frame_info,
5524 set_gdbarch_deprecated_init_frame_pc_first,
5525 set_gdbarch_deprecated_target_read_fp,
5526 set_gdbarch_deprecated_frame_saved_pc,
5527 set_gdbarch_deprecated_saved_pc_after_call,
5528 set_gdbarch_deprecated_fp_regnum.
5529 Add calls to:
5530 set_gdbarch_in_solib_call_trampoline,
5531 frame_unwind_append_sniffer,
5532 frame_base_set_default,
5533 set_gdbarch_unwind_pc,
5534 set_gdbarch_unwind_sp.
5535 * Makefile.in (s390-tdep.o): Update dependencies.
5536
5537 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5538 (S390_STACK_FRAME_OVERHEAD): Remove.
5539 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5540 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5541 (s390_promote_integer_argument): Remove.
5542 (s390_cannot_extract_struct_value_address): Remove.
5543 (s390_use_struct_convention, s390_store_struct_return): Remove.
5544 (s390_extract_return_value, s390_store_return_value): Remove.
5545 (s390_return_value_convention, s390_return_value): New functions.
5546 (is_float_singleton): Handle typedefs.
5547 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5548 Remove, replace by ...
5549 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5550 s390_function_arg_integer): ... these new functions.
5551 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5552 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5553 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5554 Fill in tdep->abi.
5555 Remove calls to:
5556 set_gdbarch_deprecated_store_struct_return,
5557 set_gdbarch_deprecated_extract_return_value,
5558 set_gdbarch_deprecated_store_return_value,
5559 set_gdbarch_use_struct_convention,
5560 set_gdbarch_extract_struct_value_address,
5561 set_gdbarch_deprecated_pc_in_call_dummy,
5562 set_gdbarch_deprecated_push_arguments,
5563 set_gdbarch_deprecated_save_dummy_frame_tos,
5564 set_gdbarch_deprecated_push_return_address,
5565 set_gdbarch_deprecated_sizeof_call_dummy_words,
5566 set_gdbarch_deprecated_call_dummy_words,
5567 set_gdbarch_deprecated_dummy_write_sp.
5568 Add calls to:
5569 set_gdbarch_push_dummy_call,
5570 set_gdbarch_unwind_dummy_id,
5571 set_gdbarch_return_value.
5572
5573 * config/s390/nm-linux.h: Update comments.
5574 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5575 (STOPPED_BY_WATCHPOINT): Redefine.
5576 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5577 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5578 (s390_stopped_by_watchpoint): Likewise.
5579 (watch_area_cnt): Remove.
5580 * s390-nat.c: Update comments.
5581 (watch_area): Remove typedef.
5582 Global replace watch_area by struct watch_area.
5583 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
5584 (s390_stopped_by_watchpoint): Remove pid argument,
5585 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5586 (s390_fix_watch_points): Remove pid argument,
5587 use s390_inferior_tid. Recompute area spanned by watchpoints.
5588 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5589 argument. Reimplement.
5590
5591 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5592 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5593 (FETCH_INFERIOR_REGISTERS): Define.
5594 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
5595 core-regset.o.
5596 * config/s390/s390x.mt: Remove.
5597 * config/s390/tm-s390.h: Remove.
5598 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5599 (TARGET_ELF64): Remove.
5600 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5601 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5602 s390*-*-* case; always set gdb_target to s390.
5603 * regformats/reg-s390.dat: Remove control registers.
5604 * regformats/reg-s390x.dat: Likewise.
5605 * s390-tdep.h: New file.
5606 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
5607 Include "inferior.h" and "s390-tdep.h".
5608 Remove private definition of offsetof.
5609 (s390_register_u_addr): Remove.
5610 (regmap_gregset, regmap_fpregset): Define.
5611 (supply_gregset, fill_gregset): Reimplement.
5612 (supply_fpregset, fill_fpregset): Likewise.
5613 (s390_inferior_tid): New function.
5614 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5615 (fetch_inferior_registers, store_inferior_registers): Likewise.
5616 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5617 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5618 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5619 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5620 (struct gdbarch_tdep): Define.
5621 (struct s390_register_info): Define.
5622 (s390_register_info): New variable.
5623 (s390_register_name): Reimplement.
5624 (s390_register_type): New function.
5625 (s390_register_raw_size, s390x_register_raw_size): Remove.
5626 (s390_cannot_fetch_register): Remove.
5627 (s390_register_byte): Remove.
5628 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5629 (s390_dwarf_regmap): New variable.
5630 (s390_dwarf_reg_to_regnum): New function.
5631 (s390_stab_reg_to_regnum): Remove.
5632 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5633 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5634 (s390_convert_register_p): Likewise.
5635 (s390_register_to_value, s390_value_to_register): Likewise.
5636 (s390_register_reggroup_p): Likewise.
5637 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5638 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5639 (s390_supply_regset, s390_regset_from_core_section): New functions.
5640 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5641 (S390_FPR_SIZE): Likewise.
5642 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5643 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5644 (S390_NUM_GPRS): Move here from tm-s390.h.
5645 (S390_NUM_FPRS): Likewise.
5646 (s390_in_function_epilogue_p): New function.
5647 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5648 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5649 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5650 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5651 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5652 Remove calls to:
5653 set_gdbarch_deprecated_max_register_raw_size,
5654 set_gdbarch_deprecated_max_register_virtual_size,
5655 set_gdbarch_deprecated_register_byte,
5656 set_gdbarch_cannot_fetch_register,
5657 set_gdbarch_cannot_store_register,
5658 set_gdbarch_deprecated_register_size,
5659 set_gdbarch_deprecated_register_raw_size,
5660 set_gdbarch_deprecated_register_virtual_size,
5661 set_gdbarch_deprecated_register_virtual_type,
5662 set_gdbarch_deprecated_register_bytes.
5663 Add calls to:
5664 set_gdbarch_num_pseudo_regs,
5665 set_gdbarch_register_type,
5666 set_gdbarch_convert_register_p,
5667 set_gdbarch_register_to_value,
5668 set_gdbarch_value_to_register,
5669 set_gdbarch_register_reggroup_p,
5670 set_gdbarch_regset_from_core_section,
5671 set_gdbarch_pseudo_register_read,
5672 set_gdbarch_pseudo_register_write,
5673 set_gdbarch_in_function_epilogue_p.
5674 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5675 (s390_tdep_h): New variable.
5676
56772004-02-17 Jim Blandy <jimb@redhat.com>
5678
5679 * findvar.c (value_from_register): If the type has no length, just
5680 return an acceptable value --- don't report an internal error.
5681
5682 * stabsread.c (read_type): If we find any type numbers that are
5683 forward references, complain if the references aren't resolved by
5684 the time we're finished reading.
5685 (cleanup_undefined_types): Make error message more appropriate for
5686 a complaint.
5687
56882004-02-17 Elena Zannoni <ezannoni@redhat.com>
5689
5690 * Makefile.in (defs_h): Remove dependency on progress_h.
5691 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5692 progress.h.
5693 * main.c (captured_main): Delete use of START_PROGRESS and
5694 END_PROGRESS.
5695
56962004-02-17 Elena Zannoni <ezannoni@redhat.com>
5697
5698 * objfiles.c (terminate_minimal_symbol_table): Add back
5699 initialization of MSYMBOL_TYPE.
5700
57012004-02-17 David Mosberger <davidm@hpl.hp.com>
5702
5703 Committed by Andrew Cagney.
5704 * Makefile.in (ia64_tdep_h): New macro.
5705 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5706 (ia64-tdep.o): Likewise.
5707 * ia64-tdep.h: New file.
5708 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5709 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5710 (ia64_aix_sigcontext_register_address): Likewise.
5711 (ia64_linux_getunwind_table): Delete declaration.
5712 * ia64-linux-tdep.c: Likewise.
5713
57142004-02-17 Corinna Vinschen <vinschen@redhat.com>
5715
5716 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5717 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5718 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5719
57202004-02-17 Andrew Cagney <cagney@redhat.com>
5721
5722 * symtab.c (skip_prologue_using_sal): New function.
5723 * symtab.h (skip_prologue_using_sal): Declare.
5724 * frv-tdep.c: Include "symtab.h".
5725 (skip_prologue_using_sal): Delete function.
5726 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5727 * rs6000-tdep.c (refine_prologue_limit): Mention
5728 skip_prologue_using_sal.
5729 * ia64-tdep.c (refine_prologue_limit): Ditto.
5730 * Makefile.in: Update dependencies.
5731
57322004-02-16 Andrew Cagney <cagney@redhat.com>
5733
5734 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5735 START_INFERIOR_TRAPS_EXPECTED.
5736 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5737 START_INFERIOR_TRAPS_EXPECTED.
5738 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5739 Delete macro.
5740 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5741 macro, moved to "nm-osf.h". Update copyright.
5742 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5743 update copyright.
5744
5745 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5746 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5747 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5748 frameless_look_for_prologue.
5749 * frame.h (legacy_frameless_look_for_prologue): Rename
5750 frameless_look_for_prologue.
5751 * gdbarch.h, gdbarch.c: Re-generate.
5752 * sh64-tdep.c (sh64_gdbarch_init): Update.
5753 * sh-tdep.c (sh_gdbarch_init): Update.
5754 * s390-tdep.c (s390_gdbarch_init): Update.
5755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5756 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5757 * m68k-tdep.c (m68k_gdbarch_init): Update.
5758 (delta68_frame_args_address): Update.
5759 * m32r-tdep.c (m32r_gdbarch_init): Update.
5760 * hppa-tdep.c (hppa_gdbarch_init): Update.
5761 * h8300-tdep.c (h8300_gdbarch_init): Update.
5762 * frv-tdep.c (frv_gdbarch_init): Update.
5763 (frv_frameless_function_invocation): Update.
5764 * cris-tdep.c (cris_gdbarch_init): Update.
5765 (cris_frameless_function_invocation): Update.
5766 * avr-tdep.c (avr_gdbarch_init): Update.
5767 * arm-tdep.c (arm_gdbarch_init): Update.
5768 * stack.c (frame_info): Update, call predicate.
5769 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5770 * frame.c (legacy_get_prev_frame): Update, call predicate..
5771 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5772 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5773 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5774 invocation.
5775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5776 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5777 * vax-tdep.c (vax_gdbarch_init): Ditto.
5778
5779 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5780 function.
5781
57822004-02-16 Daniel Jacobowitz <drow@mvista.com>
5783
5784 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5785 initializations.
5786
57872004-02-16 Andrew Cagney <cagney@redhat.com>
5788
5789 * tui/tui-windata.c: Include "gdb_string.h".
5790 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5791 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5792 * Makefile.in: Update dependencies.
5793
57942004-02-16 Daniel Jacobowitz <drow@mvista.com>
5795
5796 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5797 * infrun.c: Include "gdb_assert.h".
5798 (singlestep_ptid, saved_singlestep_ptid)
5799 (stepping_past_singlestep_breakpoint): New variables.
5800 (resume): Set singlestep_ptid. Check for singlestep thread
5801 hop.
5802 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5803 (handle_inferior_event): Handle singlestep thread hop.
5804
58052004-02-16 Andrew Cagney <cagney@redhat.com>
5806
5807 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5808 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5809 (dwarf2_frame_init_reg): Ditto.
5810
5811 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5812 suggested by Joshua Neuheisel
5813
5814 * configure.in: Always check for curses, including pdcurses.
5815 Warn, instead of error, when no curses are found. Enable TUI when
5816 curses is available.
5817 * configure: Re-generate.
5818
58192004-02-16 Corinna Vinschen <vinschen@redhat.com>
5820
5821 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5822 sh_sh4_register_convert_to_virtual.
5823 (sh_register_convert_to_raw): Rename from
5824 sh_sh4_register_convert_to_raw.
5825 (sh_pseudo_register_read): Accomodate above name change.
5826 (sh_pseudo_register_write): Ditto.
5827
58282004-02-16 Corinna Vinschen <vinschen@redhat.com>
5829
5830 * sh-tdep.c (sh_generic_register_name): Remove.
5831 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5832
58332004-02-15 Andrew Cagney <cagney@redhat.com>
5834
5835 * configure.in (build_warnings): Add -Wunused-function.
5836 * configure: Re-generate.
5837
5838 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5839 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5840
5841 * procfs.c (procfs_init_inferior): Assume that
5842 START_INFERIOR_TRAPS_EXPECTED is defined.
5843 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5844 * config/ns32k/tm-nbsd.h: Delete file,
5845 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5846
5847 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5848 * config/vax/tm-vax.h: Delete file.
5849
5850 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5851 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5852 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5853 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5854 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5855 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5856 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5857
58582004-02-15 Mark Kettenis <kettenis@gnu.org>
5859
5860 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5861 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5862 (struct dwarf2_frame_ops): New.
5863 (dwarf2_frame_default_init_reg): New function, based on
5864 dwarf2_frame_init_reg.
5865 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5866 (dwarf2_frame_init_reg): Call architecture-specific function.
5867 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5868 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5869 instead of dwarf2_frame_data.
5870 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5871 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5872
58732004-02-15 Andrew Cagney <cagney@redhat.com>
5874
5875 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5876 register_gdbarch_swap.
5877 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5878 * f-lang.c (_initialize_f_language): Update, use
5879 DEPRECATED_REGISTER_GDBARCH_SWAP.
5880 * remote.c (_initialize_remote): Ditto.
5881 * regcache.c (_initialize_regcache): Ditto.
5882 * parse.c (_initialize_parse): Ditto.
5883 * infrun.c (_initialize_infrun): Ditto.
5884 * mi/mi-main.c (_initialize_mi_main): Ditto.
5885 * gdbtypes.c (_initialize_gdbtypes): Ditto.
5886
5887 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5888 poking .cacheable directly.
5889 * symfile.c (symfile_bfd_open): Ditto.
5890
5891 * Makefile.in: Update all dependencies.
5892
5893 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5894 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5895 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5896 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5897 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
5898
58992004-02-14 Andrew Cagney <cagney@redhat.com>
5900
5901 * arch-utils.c (legacy_convert_register_p): Check
5902 DEPRECATED_REGISTER_CONVERTIBLE_P.
5903 * findvar.c (value_of_register): Ditto.
5904
5905 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5906 * gdbarch.h, gdbarch.c: Re-generate.
5907 * arch-utils.c (deprecated_register_convertible_not): Delete.
5908 * arch-utils.h (deprecated_register_convertible_not): Delete.
5909 * mi/mi-main.c (get_register): Update. Update copyright.
5910 * infcmd.c (default_print_registers_info): Update.
5911
5912 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5913 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5914 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
5915 * gdbarch.h, gdbarch.c: Re-generate.
5916 * frame.c (deprecated_get_next_frame_hack): Delete function.
5917 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5918 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5919 Update.
5920 * infcall.c (call_function_by_hand): Update.
5921
59222004-02-14 Elena Zannoni <ezannoni@redhat.com>
5923
5924 * symfile.c (init_entry_point_info, entry_point_address): Move
5925 from here...
5926 * objfiles.c (init_entry_point_info, entry_point_address):..to
5927 here.
5928 * symfile.h (init_entry_point_info, entry_point_address): Remove
5929 prototypes.
5930 * objfiles.h (init_entry_point_info, entry_point_address):Add
5931 prototypes.
5932 * cris-tdep.c: Remove include of symfile.h. Add include of
5933 objfiles.h.
5934 * infcall.c: Ditto.
5935 * mcore-tdep.c: Ditto.
5936 * mn10300-tdep.c: Ditto.
5937 * sh64-tdep.c: Ditto.
5938 * v850-tdep.c: Ditto.
5939 * arm-tdep.c: Remove include of symfile.h.
5940 * blockframe.c: Ditto.
5941 * coffread.c: Ditto.
5942 * dbxread.c: Ditto.
5943 * dwarf2read.c: Ditto.
5944 * dwarfread.c: Ditto.
5945 * frv-tdep.c: Ditto.
5946 * ia64-tdep.c: Ditto.
5947 * mdebugread.c: Ditto.
5948 * mipsread.c: Ditto.
5949 * rs6000-tdep.c: Ditto.
5950 * s390-tdep.c: Ditto.
5951 * sh-tdep.c: Ditto.
5952 * xstormy16-tdep.c: Ditto.
5953 * gdbarch.sh: Remove include of symfile.h.
5954 * gdbarch.c: Regenerate.
5955 * solib-irix.c (enable_break): Use entry_point_address().
5956 Add comment about include file.
5957 * xcoffread.c: Add comment about include file.
5958 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5959 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5960 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5961 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
5962 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5963
59642004-02-13 Andrew Cagney <cagney@redhat.com>
5965
5966 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5967 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5968 copyright.
5969 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5970
59712004-02-12 Fred Fish <fnf@redhat.com>
5972
5973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5974 set_gdbarch_store_return_value.
5975
59762004-02-12 Andrew Cagney <cagney@redhat.com>
5977
5978 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5979 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5980 (interrupt_query): Ditto.
5981 (ofunc): Delete unused variable.
5982 * cris-tdep.c (cris_abi): Delete unused function.
5983 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5984 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5985 (cris_get_asr_quick_shift_steps): Ditto.
5986 (cris_skip_prologue_frameless_p): Ditto.
5987 * arm-tdep.c (arm_push_return_address): Delete unused function.
5988 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5989 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5990 * s390-tdep.c (s390_function_start): Delete unused function.
5991
59922004-02-12 Andrew Cagney <cagney@redhat.com>
5993
5994 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5995 gdbarch.h, gdbarch.c: Re-generate.
5996 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5997 to generic_prologue_frameless_p.
5998 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5999 * arch-utils.c (generic_prologue_frameless_p): Delete function.
6000
60012004-02-11 Daniel Jacobowitz <drow@mvista.com>
6002
6003 * mips-linux-tdep.c: Include "frame.h".
6004 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
6005 (mips_linux_skip_resolver): New functions.
6006 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
6007 and set_gdbarch_in_solib_call_trampoline.
6008 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
6009 to after set_gdbarch_in_solib_return_trampoline. Only set the
6010 solib hooks to mips16 functions if the OS ABI is unknown.
6011 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
6012 including "config/tm-linux.h".
6013 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
6014 * Makefile.in (mips-linux-tdep.o): Update.
6015
60162004-02-11 David Carlton <carlton@kealia.com>
6017
6018 * linespec.c (decode_compound): Only look for a class symbol when
6019 considering all but the rightmost component.
6020
60212004-02-11 Andrew Cagney <cagney@redhat.com>
6022
6023 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
6024 abi code are are separatly grouped.
6025
60262004-02-11 Andrew Cagney <cagney@redhat.com>
6027
6028 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
6029 * gdbarch.h, gdbarch.c: Re-generate.
6030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6031 * v850-tdep.c (v850_gdbarch_init): Update.
6032 * sh64-tdep.c (sh64_gdbarch_init): Update.
6033 * sh-tdep.c (sh_gdbarch_init): Update.
6034 * s390-tdep.c (s390_gdbarch_init): Update.
6035 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6036 * mips-tdep.c (mips_gdbarch_init): Update.
6037 * mcore-tdep.c (mcore_gdbarch_init): Update.
6038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6039 * m32r-tdep.c (m32r_gdbarch_init): Update.
6040 * ia64-tdep.c (ia64_gdbarch_init): Update.
6041 * hppa-tdep.c (hppa_gdbarch_init): Update.
6042 * h8300-tdep.c (h8300_gdbarch_init): Update.
6043 * frv-tdep.c (frv_gdbarch_init): Update.
6044 * d10v-tdep.c (d10v_gdbarch_init): Update.
6045 * cris-tdep.c (cris_gdbarch_init): Update.
6046 * avr-tdep.c (avr_gdbarch_init): Update.
6047 * arm-tdep.c (arm_gdbarch_init): Update.
6048 * alpha-tdep.c (alpha_gdbarch_init): Update.
6049
60502004-02-11 Corinna Vinschen <vinschen@redhat.com>
6051
6052 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
6053 comma.
6054 (sh_sh4al_dsp_register_name): Ditto.
6055
60562004-02-10 Andrew Cagney <cagney@redhat.com>
6057
6058 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
6059 (mips_init_frame_pc_first): Delete function.
6060 (mips_frame_saved_pc): Delete function.
6061 (mips_frame_chain): Delete function.
6062 (mips_init_extra_frame_info): Delete function.
6063 (mips_xfer_register): Delete unused variable "reg".
6064 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
6065 (mips_n32n64_return_value): Delete unused variable "reg".
6066 (mips_n32n64_return_value): Delete unused variable "pos".
6067 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
6068 (mips_o32_return_value): Delete unused variable "pos".
6069 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
6070 (mips_print_fp_register): Delete unused variable "namelen"
6071 (mips_print_fp_register): Delete unused variable "flt2"
6072 (get_frame_pointer): Delete function.
6073 (cached_proc_desc): Delete static variable.
6074 (mips_pop_frame): Delete function.
6075 (mips_find_saved_regs): Delete function.
6076 (mips_get_saved_register): Delete function.
6077 (mips_saved_pc_after_call): Delete function.
6078 (SIGFRAME_BASE): Delete macro.
6079 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
6080 (SIGFRAME_PC_OFF): Delete macro.
6081 (SIGFRAME_REGSAVE_OFF): Delete macro.
6082 (mips_dump_tdep): Do not print deleted macro definitions.
6083
60842004-02-10 Andrew Cagney <cagney@redhat.com>
6085
6086 * Makefile.in (SFILES): Remove explictly listed tui files.
6087 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6088
60892004-02-10 Jeff Johnston <jjohnstn@redhat.com>
6090
6091 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6092 to use paddr functions to format ia64 addresses and long values.
6093 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6094 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6095 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6096 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6097 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6098
60992004-02-10 Andrew Cagney <cagney@redhat.com>
6100
6101 * defs.h: Do not include "tui.h".
6102 * gdb_curses.h: New file.
6103 * tui/tui-hooks.h: New file.
6104 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6105 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6106 (tui_initialize_io): Delete declaration.
6107 (tui_initialize_readline: Delete redundant declaration.
6108 (struct tui_point): Delete definition.
6109 * tui/tui-data.h (struct tui_point): Define.
6110 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6111 * utils.c: Include "tui/tui.h".
6112 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6113 * printcmd.c [TUI]: Include "tui/tui.h".
6114 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6115 * tui/tui-command.c: Include "gdb_curses.h".
6116 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6117 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6118 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6119 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6120 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6121 * Makefile.in: Update all dependencies.
6122 (tui_hooks_h, gdb_curses_h): Define.
6123 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6124
61252004-02-10 Elena Zannoni <ezannoni@redhat.com>
6126
6127 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6128 auxf2. Add comments about some other rarely used fields.
6129
61302004-02-10 Andrew Cagney <cagney@redhat.com>
6131
6132 * Makefile.in (init.c): Fix script removing duplicates. Problem
6133 reported by Peter Schauer.
6134
61352004-02-09 Elena Zannoni <ezannoni@redhat.com>
6136
6137 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6138 obstack_specify_allocation.
6139 * objfiles.c (allocate_objfile): Ditto.
6140 * solib-sunos.c (solib_add_common_symbols)
6141 (allocate_rt_common_objfile): Ditto.
6142 * symfile.c (reread_symbols): Ditto.
6143 * gdb_obstack.h: Add comment.
6144
61452004-02-09 Elena Zannoni <ezannoni@redhat.com>
6146
6147 * linespec.c (decode_line_1, locate_first_half)
6148 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6149 commented out code.
6150
61512004-02-09 Daniel Jacobowitz <drow@mvista.com>
6152
6153 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6154 obstack_free.
6155
61562004-02-09 Andrew Cagney <cagney@redhat.com>
6157
6158 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6159 fails, try find_pc_section. Fix PR c++/1267.
6160 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6161 instead of find_pc_mapped_section.
6162 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6163 not default to the section containing PC. Fix PR symtab/1519.
6164
61652004-02-09 Andrew Cagney <cagney@redhat.com>
6166
6167 * Makefile.in (mips-tdep.o): Update dependencies.
6168 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6169 "trad-frame.h".
6170 (mips_unwind_pc): Return the pseudo PC register.
6171 (mips_unwind_dummy_id): New function.
6172 (mips16_fetch_instruction): New function.
6173 (mips32_fetch_instruction): New function.
6174 (struct mips_frame_cache): Define.
6175 (mips_mdebug_frame_cache): New function.
6176 (mips_mdebug_frame_this_id): New function.
6177 (mips_mdebug_frame_prev_register): New function.
6178 (mips_mdebug_frame_unwind): Define.
6179 (mips_mdebug_frame_sniffer): New function.
6180 (mips_mdebug_frame_base_address): New function.
6181 (mips_mdebug_frame_base): Define.
6182 (mips_mdebug_frame_base_sniffer): New function.
6183 (mips_gdbarch_init): Append unwind and base sniffers. Set
6184 unwind_dummy_id.
6185
61862004-02-08 Andrew Cagney <cagney@redhat.com>
6187
6188 * frame.c: Print both the register number and name.
6189
6190 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6191 and a sed into a single sed. Make .c and .o patterns more robust.
6192 (OBS): Delete.
6193 (INIT_FILES): Replace OBS with COMMON_OBS.
6194 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6195
61962004-02-08 Mark Kettenis <kettenis@gnu.org>
6197
6198 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6199 the PT_WCOOKIE request.
6200
62012004-02-08 Andrew Cagney <cagney@redhat.com>
6202
6203 * mips-tdep.c (mips_unwind_pc): New function.
6204 (mips_gdbarch_init): Set mips_unwind_pc.
6205
6206 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6207 (get_frame_id): Allow the UNKNOWN_FRAME.
6208 (frame_register_unwind, get_frame_type): Ditto.
6209
6210 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6211 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6212 unwind_dummy_id indicates a legacy frame.
6213
6214 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6215 * configure: Re-generate.
6216
6217 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6218 methods.
6219
62202004-02-08 Andrew Cagney <cagney@redhat.com>
6221
6222 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6223 makefile macro.
6224 * configure: Re-generate.
6225 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6226 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6227 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6228 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6229 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6230 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6231 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6232 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6233 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6234 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6235
62362004-02-07 Andrew Cagney <cagney@redhat.com>
6237
6238 * Makefile.in: Update all dependencies.
6239
6240 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6241 * configure: Re-generate.
6242 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6243 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6244 (COMMON_OBS): Add "main.o" and "annotate.o".
6245 (ANNOTATE_OBS): Delete.
6246 (OBS): Remove ANNOTATE_OBS.
6247 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6248 CONFIG_INITS.
6249 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6250 against CONFIG_OBS and "main.o".
6251 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6252 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6253
6254 * tui/tui-command.c: Include "gdb_string.h", delete register
6255 attribute, use ISO-C function signatures.
6256 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6257 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6258 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6259 * tui/tui.c: Ditto.
6260
6261 * tui/tui-command.c: Change variable and function names to lower
6262 case.
6263 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6264 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6265 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6266 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6267 * tui/tui-winsource.c, tui/tui.c: Ditto.
6268
62692004-02-07 Elena Zannoni <ezannoni@redhat.com>
6270
6271 * buildsym.c (free_pending_blocks, finish_block)
6272 (record_pending_block, make_blockvector, end_symtab): Replace
6273 symbol_obstack with objfile_obstack.
6274 * coffread.c (process_coff_symbol, coff_read_struct_type)
6275 (coff_read_enum_type): Ditto.
6276 * cp-namespace.c (initialize_namespace_symtab)
6277 (check_one_possible_namespace_symbol): Ditto.
6278 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
6279 (dwarf2_symbol_mark_computed): Ditto.
6280 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6281 * elfread.c (elf_symtab_read): Ditto.
6282 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6283 (hpread_read_enum_type, hpread_read_function_type)
6284 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6285 Ditto.
6286 * jv-lang.c (get_java_class_symtab, add_class_symbol)
6287 (java_link_class_type): Ditto.
6288 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
6289 (new_symbol): Ditto.
6290 * minsyms.c (install_minimal_symbols): Ditto.
6291 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6292 (terminate_minimal_symbol_table): Replace symbol_obstack with
6293 objfile_obstack.
6294 (free_objfile): Remove freeing of symbol_obstack.
6295 * objfiles.h: Remove symbol_obstack field.
6296 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6297 objfile_obstack.
6298 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6299 symbol_obstack.
6300 (solib_add_common_symbols): Replace symbol_obstack with
6301 objfile_obstack.
6302 * somsolib.c (som_solib_add): Ditto.
6303 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6304 (common_block_start, common_block_end): Ditto.
6305 * symfile.c (reread_symbols): Remove freeing and init of
6306 symbol_obstack.
6307 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6308 * symfile.h: Update comment.
6309 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6310 stats printing.
6311 * symtab.c (symbol_set_names): Replace symbol_obstack with
6312 objfile_obstack.
6313 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6314 Update comments.
6315 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6316 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6317 objfile_obstack.
6318
63192004-02-07 Andrew Cagney <cagney@redhat.com>
6320
6321 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6322 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6323 fields and variables.
6324 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6325 (m_beInvisible): Delete macro.
6326 * tui/tui-data.h: Fix case case fields and variables.
6327 (m_genWinPtrIsNull): Delete macro.
6328 (tui_win_list): Rename winList.
6329 (TUI_SRC_WIN): Rename srcWin.
6330 (TUI_DISASM_WIN): Rename disassemWin.
6331 (TUI_DATA_WIN): Rename dataWin.
6332 (TUI_CMD_WIN): Rename cmdWin.
6333 (m_genWinPtrNotNull): Delete macro.
6334 (m_winPtrIsNull): Delete macro.
6335 (m_winPtrNotNull): Delete macro.
6336 (tui_win_is_source_type): Replace m_winIsSourceType
6337 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6338 (tui_win_has_locator): Replace m_hasLocator.
6339 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6340 m_setWinHighlightOff.
6341 * tui/tui-data.c: Update references.
6342 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6343 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6344 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6345 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6346 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6347 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6348 * tui/tui-winsource.c, tui/tui.c: Ditto.
6349
63502004-02-07 Mark Kettenis <kettenis@gnu.org>
6351
6352 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6353 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6354 StackGhost.
6355
6356 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6357 variable `i6' to `i7'.
6358 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6359
63602004-02-07 Andrew Cagney <cagney@redhat.com>
6361
6362 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6363 (TuiPoint, TuiPointPtr): Ditto.
6364 (TuiStatus, TuiStatusPtr): Ditto.
6365 (TuiWinType, TuiWinTypePtr): Ditto.
6366 (struct tui_point): Rename _TuiPoint.
6367 (tui_get_low_disassembly_address): Rename
6368 tuiGetLowDisassemblyAddress.
6369 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6370 (tuiFree): Delete declaration.
6371 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6372 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6373 * tui/tui.c (tuiFree): Delete function.
6374 * cli/cli-cmds.c (disassemble_command): Update references.
6375 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6376 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6377 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6378 * tui/tui-winsource.c: Ditto.
6379
63802004-02-07 Elena Zannoni <ezannoni@redhat.com>
6381
6382 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6383 coffstab_build_psymtabs, elfstab_build_psymtabs)
6384 (stabsect_build_psymtabs): Replace psymbol_obstack with
6385 objfile_obstack.
6386 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6387 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6388 Ditto.
6389 * dwarfread.c (scan_compilation_units): Ditto.
6390 * elfread.c (elfstab_offset_sections): Ditto.
6391 * hppa-tdep.c (read_unwind_info): Ditto.
6392 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6393 (hpread_end_psymtab): Ditto.
6394 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6395 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6396 Ditto.
6397 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6398 * objfiles.c (add_to_objfile_sections)
6399 (build_objfile_section_table): Ditto.
6400 (allocate_objfile): Remove init of psymbol_obstack.
6401 (free_objfile): Remove freeing of psymbol_obstack.
6402 * objfiles.h (struct objfile): Remove field
6403 psymbol_obstack. Update comments.
6404 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6405 psymbol_obstack with objfile_obstack.
6406 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6407 psymbol_obstack.
6408 * somread.c (som_symfile_offsets, init_import_symbols)
6409 (init_export_symbols): Replace psymbol_obstack with
6410 objfile_obstack.
6411 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6412 * symfile.c (default_symfile_offsets, syms_from_objfile)
6413 (reread_symbols): Remove freeing and init of psymbol_obstack.
6414 (cashier_psymtab): Update comment.
6415 * symmisc.c (print_objfile_statistics): Don't report stats for
6416 psymbol obstack.
6417 * symtab.h (struct general_symbol_info, struct partial_symtab):
6418 Update comments.
6419 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6420 (xcoff_symfile_offsets): Replace psymbol_obstack with
6421 objfile_obstack.
6422
64232004-02-07 Elena Zannoni <ezannoni@redhat.com>
6424
6425 * objfiles.h (struct objfile): Add objfile_obstack field.
6426 Remove type_obstack field.
6427
6428 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6429 read_structure_scope read_enumeration, new_symbol): Replace
6430 type_obstack with objfile_obstack.
6431 * dwarfread.c (struct_type, enum_type): Ditto.
6432 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
6433 (lookup_fundamental_type): Ditto.
6434 * gdbtypes.h (TYPE_ALLOC): Ditto.
6435 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6436 (hpread_read_doc_function_type, hpread_read_struct_type)
6437 (fix_static_member_physnames, hpread_read_array_type)
6438 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
6439 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
6440 (java_link_class_type): Ditto.
6441 * mdebugread.c (parse_type): Ditto.
6442 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6443 * solib-sunos.c (solib_add_common_symbols): Ditto.
6444 * stabsread.c (define_symbol, read_type, read_member_functions,
6445 read_cpp_abbrev, read_one_struct_field): Ditto.
6446 * symfile.c (reread_symbols): Ditto.
6447 * symmisc.c (print_objfile_statistics): Ditto.
6448
64492004-02-07 Andrew Cagney <cagney@redhat.com>
6450
6451 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6452 (tui_exec_info_content): Rename TuiExecInfoContent.
6453 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6454 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6455 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6456 (TuiList, TuiListPtr): Ditto.
6457 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6458 (TuiDataType, TuiDataTypePtr): Ditto.
6459 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6460 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6461 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6462 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6463 (TuiDataElement, TuiDataElementPtr): Ditto.
6464 (TuiWinElement, TuiWinElementPtr): Ditto.
6465 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6466 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6467 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6468 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6469 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6470 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6471 * tui/tui-command.c, tui/tui-data.c: Update references.
6472 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6473 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6474 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6475 * tui/tui-winsource.c, tui/tui.c: Ditto.
6476
64772004-02-07 Mark Kettenis <kettenis@gnu.org>
6478
6479 * dwarf2-frame.h: Update copyright.
6480 (enum dwarf2_frame_reg_rule): New.
6481 (struct dwarf2_frame_state_reg): New.
6482 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6483 * dwarf2-frame.c: Update copyright.
6484 (enum dwarf2_reg_rule): Remove.
6485 (struct dwarf2_frame_state): Remove defenition of `struct
6486 dwarf2_frame_state_reg'.
6487 (read_reg): Call get_frame_arch to get the architecture instead of
6488 using CURRENT_GDBARCH.
6489 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6490 DWARF2_FRAME_.
6491 (dwarf2_frame_init_reg): New function.
6492 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6493 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6494 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6495 tags with DWARF2_FRAME_.
6496 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6497 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6498 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6499
65002004-02-06 Andrew Cagney <cagney@redhat.com>
6501
6502 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6503 (enum tui_data_type): Rename _TuiDataType.
6504 (struct tui_layout_def): Rename _TuiLayoutDef.
6505 (struct tui_source_element): Rename _TuiSourceElement.
6506 (struct tui_data_element): Rename _TuiDataElement.
6507 (struct tui_command_element): Rename _TuiCommandElement.
6508 (struct tui_locator_element): Rename _TuiLocatorElement.
6509 (union tui_which_element): Define.
6510 (struct tui_win_element): Rename _TuiWinElement.
6511 (struct tui_data_info): Rename _TuiDataInfo.
6512 (struct tui_source_info): Rename _TuiSourceInfo.
6513 (struct tui_command_info): Rename _TuiCommandInfo.
6514 (tui_initialize_static_data): Rename initializeStaticData.
6515 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6516 (tui_alloc_win_info): Rename allocWinInfo.
6517 (tui_init_generic_part): Rename initGenericPart.
6518 (tui_init_win_info): Rename initWinInfo.
6519 (tui_alloc_content): Rename allocContent.
6520 (tui_add_content_elements): Rename addContentElements.
6521 (tui_init_content_element): Rename initContentElement.
6522 (tui_free_window): Rename freeWindow.
6523 (tui_free_win_content): Rename freeWinContent.
6524 (tui_free_data_content): Rename freeDataContent.
6525 (tui_free_all_source_wins_content): Rename
6526 freeAllSourceWinsContent.
6527 (tui_del_window): Rename tuiDelWindow.
6528 (tui_del_data_windows): Rename tuiDelDataWindows.
6529 (tui_partial_win_by_name): Rename partialWinByName.
6530 (tui_win_name): Rename winName.
6531 (tui_current_layout): Rename currentLayout.
6532 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6533 (tui_term_height): Rename termHeight.
6534 (tui_set_term_height_to): Rename setTermHeightTo.
6535 (tui_term_width): Rename termWidth.
6536 (tui_set_term_width_to): Rename setTermWidthTo.
6537 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6538 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6539 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6540 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6541 (tui_source_windows): Rename sourceWindows.
6542 (tui_clear_source_windows): Rename clearSourceWindows.
6543 (tui_clear_source_windows_detail): Rename
6544 clearSourceWindowsDetail.
6545 (tui_clear_win_detail): Rename clearWinDetail.
6546 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6547 (tui_default_tab_len): Rename tuiDefaultTabLen.
6548 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6549 (tui_win_with_focus): Rename tuiWinWithFocus.
6550 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6551 (tui_layout_def): Rename tuiLayoutDef.
6552 (tui_win_resized): Rename tuiWinResized.
6553 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6554 (tui_next_win): Rename tuiNextWin.
6555 (tui_prev_win): Rename tuiPrevWin.
6556 (tui_add_to_source_windows): Rename addToSourceWindows.
6557 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6558 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6559 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6560 * tui/tui.c, tui/tui-data.c: Ditto.
6561 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6562 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6563
6564 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6565 (struct symtab): Declare.
6566 (tui_set_source_content): Rename tuiSetSourceContent.
6567 (tui_show_symtab_source): Rename tuiShowSource.
6568 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6569 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6570 * tui/tui-source.c: Update copyright. Update references.
6571 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6572 * tui/tui-stack.c: Update references.
6573
6574 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6575 (struct tui_win_info): Declare.
6576 (tui_scroll_forward): Rename tuiScrollForward.
6577 (tui_scroll_backward): Rename tuiScrollBackward.
6578 (tui_scroll_left): Rename tuiScrollLeft.
6579 (tui_scroll_right): Rename tuiScrollRight.
6580 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6581 (tui_resize_all): Rename tuiResizeAll.
6582 (tui_refresh_all_win): Rename tuiRefreshAll.
6583 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6584 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6585 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6586 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6587
6588 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6589 (tui_erase_data_content): Rename tuiEraseDataContent.
6590 (tui_display_all_data): Rename tuiDisplayAllData.
6591 (tui_check_data_values): Rename tuiCheckDataValues.
6592 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6593 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6594 (tui_first_data_element_no_in_line): Rename
6595 tuiFirstDataElementNoInLine.
6596 (tui_delete_data_content_windows): Rename
6597 tuiDeleteDataContentWindows.
6598 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6599 (tui_display_data_from): Rename tuiDisplayDataFrom.
6600 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6601 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6602 * tui/tui-win.c, tui/tui-regs.c: Update references.
6603 * tui/tui-layout.c, tui/tui.c: Update references.
6604
6605 * tui/tui-wingeneral.h: Update copyright.
6606 (m_allBeVisible): Delete macro.
6607 (m_allBeInvisible): Delete macro.
6608 (struct tui_gen_win_info): Declare.
6609 (struct tui_win_info): Declare.
6610 (tui_unhighlight_win): Rename unhighlightWin.
6611 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6612 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6613 (tui_make_window): Rename makeWindow.
6614 (tui_copy_win): Rename copyWin.
6615 (tui_box_win): Rename boxWin.
6616 (tui_highlight_win): Rename highlightWin.
6617 (tui_check_and_display_highlight_if_needed): Rename
6618 checkAndDisplayHighlightIfNeeded.
6619 (tui_refresh_all): Rename refreshAll.
6620 (tui_delete_win): Rename tuiDelwin.
6621 (tui_refresh_win): Rename tuiRefreshWin.
6622 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6623 (tui_make_visible, tui_make_invisible): New functions.
6624 (tui_make_all_visible, tui_make_all_invisible): New functions.
6625 (make_all_visible): Rename makeAllVisible.
6626 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6627 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6628 * tui/tui-windata.c, tui/tui-win.c: Update references.
6629 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6630 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6631
66322004-02-06 Mark Kettenis <kettenis@gnu.org>
6633
6634 * proc-api.c (write_with_trace): Initialize local variable to
6635 silence compiler warning.
6636
66372004-02-06 Andrew Cagney <cagney@redhat.com>
6638
6639 * tui/tui-source.h: Do not include "defs.h".
6640 (struct tui_win_info): Declare.
6641 (tui_set_source_content_nil): Declare.
6642 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6643 (union tui_line_or_address): Rename _TuiLineOrAddress.
6644 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6645 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6646 (tui_update_source_window_as_is): Rename
6647 tuiUpdateSourceWindowAsIs.
6648 (tui_update_source_windows_with_addr): Rename
6649 tuiUpdateSourceWindowsWithAddr.
6650 (tui_update_source_windows_with_line): Rename
6651 tuiUpdateSourceWindowsWithLine.
6652 (tui_clear_source_content): Rename tuiClearSourceContent.
6653 (tui_erase_source_content): Rename tuiEraseSourceContent.
6654 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6655 (tui_show_source_content): Rename tuiShowSourceContent.
6656 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6657 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6658 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6659 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6660 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6661 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6662 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6663 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6664 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6665 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6666 (struct tui_win_info): Declare.
6667 * tui/tui-stack.c: Update references.
6668 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6669 * tui/tui-win.c, tui/tui-source.c: Ditto.
6670 * tui/tui.c, tui/tui-disasm.c: Ditto.
6671
66722004-02-06 Mark Kettenis <kettenis@gnu.org>
6673
6674 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6675 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6676
66772004-02-05 Mark Kettenis <kettenis@gnu.org>
6678
6679 * infrun.c (handle_inferior_event): Allow for breakpoint
6680 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6681 and SIGEMT. Update comments.
6682 * NEWS (Revised SPARC target): Mention support for non-executable
6683 stack.
6684
66852004-02-04 Mark Kettenis <kettenis@gnu.org>
6686
6687 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6688 * inftarg.c: Update copyright year.
6689 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6690 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6691 (sparc_xfer_wcookie): New function.
6692 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6693 * Makefile.in (sparc-nat.o): Update dependencies.
6694 * config/sparc/nm-nbsd.h: Include "target.h".
6695 (NATIVE_XFER_WCOOKIE): New define.
6696 (sparc_xfer_wcookie): New prototype.
6697
66982004-02-04 Andrew Cagney <cagney@redhat.com>
6699
6700 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6701 SYSCALL_TRAP function.
6702 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6703
67042004-02-04 Andrew Cagney <cagney@redhat.com>
6705 Daniel Jacobowitz <drow@mvista.com>
6706
6707 * objfiles.h: Delete comments refering to inside_entry_func and
6708 DEPRECATED_FRAME_CHAIN_VALID.
6709 * defs.h (inside_entry_func): Update prototype..
6710 * blockframe.c (inside_entry_func): Rename to
6711 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6712 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6713
67142004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6715
6716 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6717 outside of #ifdef SOLIB_ADD region.
6718 (do_restore_lang_radix_cleanup): Ditto.
6719 (resolve_pending_breakpoint): Ditto.
6720
67212004-02-03 Andrew Cagney <cagney@redhat.com>
6722
6723 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6724 (process_note_abi_tag_sections): Delete unused function.
6725 (ia64_read_fp): Delete unused function.
6726 (gdbarch_extract_struct_value_address): Delete declaration.
6727
67282004-02-02 Andrew Cagney <cagney@redhat.com>
6729
6730 * vax-tdep.c (vax_frame_chain): Delete call to
6731 deprecated_inside_entry_file.
6732 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6733
67342004-02-02 Mark Kettenis <kettenis@gnu.org>
6735
6736 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6737 column that's "empty" or "same value" when eliminating REG_RA
6738 rules.
6739
67402004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6741
6742 * NEWS: Add information about new pending breakpoint support.
6743
67442004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6745
6746 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6747 and pending fields for pending breakpoint support.
6748 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6749 (condition_command): Only parse condition if not a pending
6750 breakpoint.
6751 (print_one_breakpoint): Add support for pending breakpoints.
6752 (describe_other_breakpoints): Add checks to verify we are not
6753 dealing with pending breakpoints.
6754 (check_duplicates): Don't check pending breakpoints.
6755 (set_raw_breakpoint): Initialize pending flag.
6756 (do_restore_lang_radix_cleanup): New cleanup routine.
6757 (resolve_pending_breakpoint): New function.
6758 (re_enable_breakpoints_in_shlibs): Try and resolve any
6759 pending breakpoints via resolve_pending_breakpoint.
6760 (mention): Add pending breakpoint support.
6761 (parse_breakpoint_sals): Add new parameter to pass to
6762 decode_line_1 to indicate silent errors when files or functions
6763 are not found. Change all callers.
6764 (do_captured_parse_breakpoint): New function.
6765 (break_command_1): Change prototype to return an rc value and to
6766 take an optional pending breakpoint pointer. Support creating
6767 a pending breakpoint if a "not found" form of error occurs when
6768 parsing the breakpoint. Also support resolving an existing pending
6769 breakpoint and be silent if the resolution fails.
6770 (create_breakpoints): Change prototype to take pending breakpoint
6771 pointer. When resolving a pending breakpoint, use the new pointer
6772 to provide a conditional or commands added by the end-user.
6773 (delete_breakpoint): Add appropriate check for pending.
6774 (breakpoint_re_set_one): Ditto.
6775 (do_enable_breakpoint): Ditto.
6776
67772004-02-02 David Carlton <carlton@kealia.com>
6778
6779 * valops.c (enum oload_classification): New.
6780 (find_overload_match): Break implementation into separate
6781 functions; delete #if 0'd code; look for symbols within
6782 namespaces.
6783 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6784 (find_oload_champ,oload_method_static,classify_oload_match): New.
6785 * cp-support.h: Add declaration for cp_func_name; update
6786 declaration for make_symbol_overload_list.
6787 * cp-support.c (cp_func_name): New.
6788 (overload_list_add_symbol): Fix comment, use
6789 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6790 (make_symbol_overload_list): Take a function name and a namespace
6791 instead of a symbol; change implementation.
6792 (make_symbol_overload_list_using): New.
6793 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6794
67952004-02-02 Fred Fish <fnf@redhat.com>
6796
6797 * main.c (gdb_stdtarg): Move definition to group with other
6798 gdb_stdtarg definitions and update copyright years.
6799 * remote-sim.c (gdb_os_write_stderr): Write output to
6800 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6801 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
6802 gdb_stderr stream and update copyright years.
6803
68042004-02-01 Daniel Jacobowitz <drow@mvista.com>
6805
6806 * Makefile.in (mips-linux-nat.o): Update dependencies.
6807 * mips-linux-nat.c: Include mips-tdep.h.
6808
68092004-02-01 Roland McGrath <roland@redhat.com>
6810
6811 * sol-thread.c (sol_thread_xfer_partial): New function.
6812 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6813 (init_sol_core_ops): Likewise.
6814
6815 * procfs.c (procfs_xfer_partial): New function.
6816 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6817 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6818
6819 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6820 procfs_xfer_auxv function.
6821
6822 * procfs.c (procfs_make_note_section): If we can read
6823 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6824 * linux-proc.c (linux_make_note_section): Likewise.
6825
6826 * auxv.h: New file.
6827 * auxv.c: New file.
6828 * Makefile.in (auxv_h): New variable.
6829 (COMMON_OBS): Add auxv.o here.
6830 (auxv.o): New target.
6831
6832 * corelow.c (core_xfer_partial): New function.
6833 (init_core_ops): Use it for core_ops.to_xfer_partial.
6834
6835 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6836 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6837 macro if that is defined.
6838
68392004-02-01 Daniel Jacobowitz <drow@mvista.com>
6840
6841 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6842 and check the specified thread for each breakpoint.
6843 * breakpoint.h (bpstat_stop_status): Update prototype.
6844 * infrun.c (handle_inferior_event): Update calls to
6845 bpstat_stop_status.
6846
68472004-02-01 Daniel Jacobowitz <drow@mvista.com>
6848
6849 * Makefile.in (cli-cmds.o): Add $(readline_h).
6850
68512004-02-01 Daniel Jacobowitz <drow@mvista.com>
6852
6853 * cli/cli-cmds.c: Include readline.h.
6854 (complete_command): Pass the start of the last word to
6855 complete_line.
6856
68572004-01-31 Daniel Jacobowitz <drow@mvista.com>
6858
6859 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6860 argument, and change first argument to a CORE_ADDR.
6861 * breakpoint.h (bpstat_stop_status): Update prototype.
6862 * infrun.c (adjust_pc_after_break): Add a new comment.
6863 (handle_inferior_event): Update calls to bpstat_stop_status.
6864
68652004-01-31 Daniel Jacobowitz <drow@mvista.com>
6866
6867 * breakpoint.h: Update copyright years.
6868
68692004-01-31 Daniel Jacobowitz <drow@mvista.com>
6870
6871 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6872 (bpstat_stop_status): Don't decrement PC.
6873 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6874 prototype.
6875 * infrun.c (adjust_pc_after_break): New function.
6876 (handle_inferior_event): Call it, early. Remove later references
6877 to DECR_PC_AFTER_BREAK.
6878 (normal_stop): Add commentary.
6879
68802004-01-31 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6883 2004-01-27 double-free fix.
6884
68852004-01-31 Mark Kettenis <kettenis@gnu.org>
6886
6887 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6888 (sparc32_frame_prev_register): Handle StackGhost.
6889 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6890
68912004-01-29 Roland McGrath <roland@redhat.com>
6892
6893 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6894 * configure: Regenerated.
6895
6896 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6897 * Makefile.in (procfs.o): Add dep.
6898
68992004-01-28 Andrew Cagney <cagney@redhat.com>
6900
6901 * tui/tui-stack.h: Update copyright.
6902 (struct frame_info): Add opaque declaration.
6903 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6904 (tui_show_locator_content): Rename tuiShowLocatorContent.
6905 (tui_show_frame_info): Rename tuiShowFrameInfo.
6906 * tui/tui-stack.c: Update copyright. Update references.
6907 * tui/tui-winsource.c: Update references.
6908 * tui/tui-win.c: Update references.
6909 * tui/tui-layout.c: Update references.
6910 * tui/tui-hooks.c: Update copyright, update references.
6911 * tui/tui.c: Update copyright, update references.
6912 * tui/tui-disasm.c: Update references.
6913
69142004-01-28 David Carlton <carlton@kealia.com>
6915
6916 * dwarf2read.c (add_partial_structure): Use demangled name if
6917 namespace equals "".
6918
69192004-01-27 Jim Blandy <jimb@redhat.com>
6920
6921 Clean up misapplied patch:
6922 * dwarf2read.c (determine_prefix): Change one of the two forward
6923 declarations for 'determine_prefix_aux' to a declaration for this.
6924 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6925 argument to 'die_specification'.
6926
6927 * dwarf2read.c (read_func_scope): Re-indent comment.
6928
69292004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
6930
6931 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6932 b->exp to NULL after freeing so that error during re-parsing or
6933 evaluation of expressions associated with breakpoint don't
6934 eventually lead to re-freeing of storage.
6935 Committed by Andrew Cagney.
6936
69372004-01-27 Andrew Cagney <cagney@redhat.com>
6938
6939 * source.c (ambiguous_line_spec): Delete undefined declaration.
6940 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6941 (m32r_set_server_address, m32r_set_download_path): Ditto.
6942 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6943
69442004-01-27 Daniel Jacobowitz <drow@mvista.com>
6945
6946 * dwarf2read.c: Update calls to changed and renamed functions, and
6947 references to moved variables.
6948
6949 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6950 language, language_defn, list_in_scope, and ftypes members.
6951 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6952 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6953 (baseaddr): Remove globals.
6954
6955 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6956 (set_cu_language, die_is_declaration, die_specification)
6957 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6958 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6959 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6960 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6961
6962 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6963 cu.list_in_scope. Don't initialize cu_header_offset.
6964 (add_partial_symbol): Add local baseaddr.
6965 (psymtab_to_symtab_1): Add local baseaddr. Use
6966 objfile->section_offsets for consistency. Don't initialize
6967 cu_header_offset; do initialize cu.header.offset and
6968 cu.list_in_scope.
6969 (read_file_scope, read_func_scope, read_lexical_block_scope)
6970 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6971
69722004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6973
6974 * PROBLEMS: Add gdb/1516.
6975
69762003-12-29 Robert Millan <robertmh@gnu.org>
6977
6978 Patch committed by Andrw Cagney.
6979 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6980 * configure.tgt: Match knetbsd*-gnu.
6981
69822004-01-26 Andrew Cagney <cagney@redhat.com>
6983
6984 * breakpoint.c (catch_command_1): Delete #ifdef code.
6985 (catch_fork_command_1): Delete #ifdef wrapper.
6986 (catch_exec_command_1): Ditto.
6987 (catch_load_command_1): Ditto.
6988 (catch_unload_command_1): Ditto.
6989
6990 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6991 (catch_breakpoint): Delete #if0ed function.
6992 (disable_catch_breakpoint): Ditto.
6993 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6994 (disable_catch, enable_catch, delete_catch): Ditto.
6995
69962004-01-26 Andrew Cagney <cagney@redhat.com>
6997
6998 * remote.c (echo_check, quit_flag): Delete variables.
6999 (cisco_kernel_mode): Delete variable.
7000 (minitelnet_return, tty_input, escape_count): Delete variables.
7001 (remote_cisco_mode): Delete variable.
7002 (remote_cisco_open, remote_cisco_close): Delete function.
7003 (remote_cisco_mourn, remote_cisco_wait): Delete function.
7004 (init_remote_cisco_ops): Delete function.
7005 (_initialize_remote): Do not install "remote cisco" code.
7006 (read_frame): Delete cisco specific code.
7007 (remote_info_process): Delete function.
7008 (remote_wait): Delete cisco specific code.
7009 (remote_cisco_section_offsets): Delete function.
7010 (remote_cisco_objfile_relocate): Delete function.
7011 (remote_async_wait): Delete cisco specific code.
7012 (minitelnet, readtty, readsocket): Delete function.
7013
70142004-01-26 Andrew Cagney <cagney@redhat.com>
7015
7016 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
7017 comments mentioning extract_returned_value_address.
7018 * infcmd.c (print_return_value): Update. Add comments on
7019 extract_returned_value_address.
7020 * stack.c (return_command): Add comments on
7021 extract_returned_value_address.
7022 * values.c: Update comment.
7023 * m32r-tdep.c: Update comment.
7024 * sparc-tdep.c: Update comment.
7025 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
7026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7027 * sh64-tdep.c (sh64_gdbarch_init): Update.
7028 * sh-tdep.c (sh_gdbarch_init): Update.
7029 * s390-tdep.c (s390_gdbarch_init): Update.
7030 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7031 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7032 * m68k-tdep.c (m68k_gdbarch_init): Update.
7033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7034 * m32r-tdep.c (m32r_gdbarch_init): Update.
7035 * ia64-tdep.c (ia64_gdbarch_init): Update.
7036 * h8300-tdep.c (h8300_gdbarch_init): Update.
7037 * frv-tdep.c (frv_gdbarch_init): Update.
7038 * arm-tdep.c (arm_gdbarch_init): Update.
7039 * alpha-tdep.c (alpha_gdbarch_init): Update.
7040
70412004-01-26 Andrew Cagney <cagney@redhat.com>
7042
7043 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
7044 SYMBOL_LOCATION_FUNCS
7045 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
7046 "struct symbol_ops".
7047 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
7048 type to "struct symbol_ops".
7049 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
7050 (struct symbol): Replace ".aux_value.loc.funcs" and
7051 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
7052 (SYMBOL_OBJFILE): Delete macro.
7053 (SYMBOL_LOCATION_FUNCS): Delete macro.
7054 (SYMBOL_LOCATION_BATON): Update.
7055 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
7056 intead of SYMBOL_LOCATION_FUNCS.
7057 * ax-gdb.c (gen_var_ref): Ditto.
7058 * printcmd.c (address_info): Ditto.
7059 * findvar.c (read_var_value): Ditto.
7060 (symbol_read_needs_frame): Ditto.
7061
70622004-01-26 Andrew Cagney <cagney@redhat.com>
7063
7064 * dwarf2read.c (read_func_scope): Document frame-base hack.
7065
70662004-01-25 Mark Kettenis <kettenis@gnu.org>
7067
7068 * infcmd.c (print_return_value): Plug memory leak; delete
7069 ui_stream object. Rename argument `structure_return' to
7070 `struct_return'.
7071
70722004-01-25 Mark Kettenis <kettenis@gnu.org>
7073
7074 * infcmd.c (print_return_value): Wrap long lines.
7075 (finish_command_continuation, finish_command): Remove unused
7076 variable `funcaddr'. Fix some coding-standards problems.
7077
7078 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
7079 SECT_SIZE is large enough, not whether it's exactly the right size.
7080 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
7081 TDEP->fpregset to zero.
7082
7083 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
7084 floating-point registers for traditional NetBSD core files.
7085 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7086 TDEP->sizeof_fpregset here.
7087
70882004-01-25 Mark Kettenis <kettenis@gnu.org>
7089
7090 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7091 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7092 function with code split out from
7093 sparc32nbsd_sigcontext_frame_cache.
7094 (sparc32nbsd_sigcontext_frame_cache): Use
7095 sparc32nbsd_sigcontext_saved_regs.
7096 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7097 OpenBSD.
7098 * sparcobsd-tdep.c: New file.
7099 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7100 (sparcobsd-tdep.o): New dependency.
7101 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7102 * config/sparc/obsd.mt: New file.
7103
7104 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7105 TDEP->fpregset to be initialized to enable core file register
7106 sets.
7107
71082004-01-24 Mark Kettenis <kettenis@gnu.org>
7109
7110 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
7111 Add opaque declarations.
7112 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7113 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7114 function with code split out from
7115 sparc64nbsd_sigcontext_frame_cache.
7116 (sparc64nbsd_sigcontext_frame_cache): Use
7117 sparc64nbsd_sigcontext_saved_regs.
7118 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7119 OpenBSD.
7120 * sparc64obsd-tdep.c: New file.
7121 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7122 (sparc64obsd-tdep.o): New dependency.
7123 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7124 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7125 * config/sparc/obsd64.mt: New file.
7126
7127 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7128 read the instruction at PC.
7129
7130 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7131 value of GDB_OSABI_DEFAULT.
7132 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7133 instead of GDB_OSABI_NETBSD_AOUT.
7134
71352004-01-24 Nick Roberts <nick@nick.uklinux.net>
7136
7137 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7138 copyright.
7139
71402004-01-23 Andrew Cagney <cagney@redhat.com>
7141
7142 * printcmd.c (display_command): Replace tui_set_display call with
7143 tui_set_layout_for_display_command.
7144 * tui/tui.h (enum tui_win_type): Define.
7145 (tui_set_layout): Delete declaration.
7146 (tui_set_layout_for_display_command): Rename set_tui_layout.
7147 * tui/tui-data.h (enum tui_layout_type): Define.
7148 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7149 "tui.h".
7150 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7151 (tui_default_win_height): Rename tuiDefaultWinHeight.
7152 (tui_default_win_viewport_height): Rename
7153 tuiDefaultWinViewportHeight.
7154 (tui_set_layout): RenametuiSetLayout.
7155 * tui/tui-layout.c: Update references.
7156 * tui/tui.c: Update references.
7157 * tui/tui-disasm.c: Update references.
7158
71592004-01-23 David Carlton <carlton@kealia.com>
7160
7161 Partial workaround for PR c++/1511:
7162 * cp-namespace.c: Include frame.h.
7163 (cp_lookup_transparent_type): New
7164 (cp_lookup_transparent_type_loop): New.
7165 * cp-support.h: Declare cp_lookup_transparent_type.
7166 * symtab.c (basic_lookup_transparent_type): Renamed from
7167 lookup_transparent_type.
7168 (lookup_transparent_type): Replace old body by a call to
7169 current_language->la_lookup_transparent_type.
7170 * symtab.h: Update copyright. Declare
7171 basic_lookup_transparent_type.
7172 * language.h: Update copyright.
7173 (struct language_defn): Add la_lookup_transparent_type.
7174 * language.c: Update copyright.
7175 (unknown_language_defn): Add basic_lookup_transparent_type.
7176 (auto_language_defn): Add basic_lookup_transparent_type.
7177 (local_language_defn): Add basic_lookup_transparent_type.
7178 * ada-lang.c: Update copyright.
7179 (ada_language_defn): Add basic_lookup_transparent_type.
7180 * c-lang.c: Update copyright.
7181 (c_language_defn): Add basic_lookup_transparent_type.
7182 (cplus_language_defn): Add basic_lookup_transparent_type.
7183 (asm_language_defn): Add basic_lookup_transparent_type.
7184 (minimal_language_defn): Add basic_lookup_transparent_type.
7185 * f-lang.c: Update copyright.
7186 (f_language_defn): Add basic_lookup_transparent_type.
7187 * jv-lang.c: Update copyright.
7188 (java_language_defn): Add basic_lookup_transparent_type.
7189 * m2-lang.c: Update copyright.
7190 (m2_language_defn): Add basic_lookup_transparent_type.
7191 * objc-lang.c: Update copyright.
7192 (objc_language_defn): Add basic_lookup_transparent_type.
7193 * p-lang.c: Update copyright.
7194 (p_language_defn): Add basic_lookup_transparent_type.
7195 * scm-lang.c: Update copyright.
7196 (scm_language_defn): Add basic_lookup_transparent_type.
7197 * Makefile.in (cp-namespace.o): Depend on frame.h.
7198
71992004-01-23 David Carlton <carlton@kealia.com>
7200
7201 Patch for PR c++/1520:
7202 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7203 properly if we have a specification die.
7204 (determine_prefix_aux): Rename from determine_prefix.
7205 (determine_prefix): Like the old determine_prefix, but never
7206 returns NULL.
7207
72082004-01-23 Theodore A. Roth <troth@openavr.org>
7209
7210 * avr-tdep.c: Update copyright.
7211 (avr_iaddr_p): Delete unused function.
7212 (avr_saddr_p): Delete unused function.
7213
72142004-01-23 David Carlton <carlton@kealia.com>
7215
7216 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7217 Fix for PR symtab/1534.
7218
72192004-01-23 Mark Kettenis <kettenis@gnu.org>
7220
7221 * NEWS (New native configurations): Mention OpenBSD/sparc and
7222 OpenBSD/sparc64.
7223 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7224 * configure.host: Likewise.
7225 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7226 handler for OpenBSD.
7227 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7228
72292004-01-22 Mark Kettenis <kettenis@gnu.org>
7230
7231 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7232 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7233
7234 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7235 * cli/cli-cmds.c (shell_escape): Likewise.
7236
7237 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7238 OpenBSD .note.openbsd.ident sections.
7239
72402004-01-22 David Carlton <carlton@kealia.com>
7241
7242 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7243 get_scope_pc_bounds.
7244 (read_file_scope): Ditto.
7245 (get_scope_pc_bounds): New function, produced by extracting code
7246 from the above two functions, consolidating it, and adding support
7247 for DW_TAG_namespace.
7248
72492004-01-22 Mark Kettenis <kettenis@gnu.org>
7250
7251 * osabi.c (MAX_NOTESZ): New define.
7252 (check_note): New function.
7253 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7254 check_note.
7255
72562004-01-21 Roland McGrath <roland@redhat.com>
7257
7258 * MAINTAINERS (write after approval): Add myself.
7259
72602004-01-21 Eli Zaretskii <eliz@gnu.org>
7261
7262 * utils.c (init_page_info): Move declarations of `rows' and
7263 `cols' before the __GO32__-specific code. Move the closing brace
7264 outside the #ifdef __GO32__..#endif block.
7265 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7266
72672004-01-21 Paul Brook <paul@codesourcery.com>
7268
7269 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7270 BPSTAT_WHAT_CHECK_SHLIBS.
7271
72722004-01-21 Paul Brook <paul@codesourcery.com>
7273
7274 * MAINTAINERS: Add myself to write-after-approval.
7275
72762004-01-20 Andrew Cagney <cagney@redhat.com>
7277
7278 * ax-gdb.c (print_axs_value): Delete unused function.
7279 * jv-lang.c (java_lookup_type): Delete unused function.
7280 * cli/cli-dump.c (dump_filetype): Delete unused function.
7281 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7282 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7283 (mips_getstring): Delete unused function.
7284 (pmon_insert_breakpoint): Delete #if0ed function.
7285 (PMON_MAX_BP): Delete #if0ed MACRO.
7286 (mips_pmon_bp_info): Delete #if0ed variable.
7287 (pmon_remove_breakpoint): Delete #if0ed function.
7288 * monitor.c (monitor_write_even_block): Delete unused function.
7289 (monitor_write_memory_block): Delete #if0ed code.
7290 * dink32-rom.c (dink32_load): Delete unused function.
7291 (_initialize_dink32_rom): Delete #if0ed code.
7292 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7293
7294 * tui/tui-command.c: Update references.
7295 * tui/tui-io.c: Update references.
7296 * tui/tui-command.h: Update copyright.
7297 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7298
7299 * source.c (ambiguous_line_spec): Delete never-defined function.
7300 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7301 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7302 * cli/cli-cmds.c (validate_comname): Ditto.
7303
7304 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7305 "tui-data.h".
7306 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7307 (tui_show_disassem): Rename tuiShowDisassem.
7308 (tui_show_disassem_and_update_source): Rename
7309 tuiVerticalDisassemScroll.
7310 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7311 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7312 * tui/tui.h: Update copyright.
7313 (enum tui_status): Define.
7314 * tui/tui-data.h (enum tui_scroll_direction): Define.
7315 * tui/tui-disasm.c: Update copyright. Update references.
7316 * tui/tui-winsource.c: Update copyright. Update references.
7317 * tui/tui-win.c: Update references.
7318 * tui/tui-layout.c: Update references.
7319
73202004-01-20 Andrew Cagney <cagney@redhat.com>
7321
7322 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7323 sym2 to start of block.
7324
73252004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7326
7327 * MAINTAINERS: Delete mmalloc.
7328 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7329 * NEWS: Mention removal of --with-malloc.
7330 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7331 * config.in: Regenerate.
7332 * configure: Regenerate.
7333 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7334 USE_MMALLOC, MMCHECK_FORCE.
7335 * gdbinit.in: Remove mmalloc.
7336 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7337 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7338 * config/i386/go32.mh: Likewise.
7339 * config/i386/interix.mh: Likewise.
7340 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7341
73422004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7343
7344 * linespec.c (decode_variable, symtab_from_filename): Call
7345 error_silent with error message instead of throwing an exception
7346 directly.
7347 * defs.h (error_silent, error_output_message): Add prototypes.
7348 (catch_exceptions_with_msg): Ditto.
7349 * utils.c (error_silent, error_output_message): New functions.
7350 * top.c (catch_exceptions_with_msg): New function.
7351
73522004-01-20 Nick Roberts <nick@nick.uklinux.net>
7353
7354 * mi/mi-cmds.h (enum print_values): Add definition.
7355
7356 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7357 type and value for simple data types and just the name and type
7358 for complex ones, if required.
7359
7360 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7361 children, if required.
7362
73632004-01-19 Kevin Buettner <kevinb@redhat.com>
7364
7365 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7366 unused declarations.
7367
73682004-01-19 Andrew Cagney <cagney@redhat.com>
7369
7370 * top.h (mapped_symbol_files): Delete declaration.
7371 * main.c (captured_main): Delete option "m" and "mapped".
7372 * objfiles.c (mapped_symbol_files): Delete variable.
7373 * symfile.c (symbol_file_command): Delete mmap code.
7374 (symbol_file_add_with_addrs_or_offsets): Ditto.
7375 (add_symbol_file_command, reread_separate_symbols): Ditto.
7376 * objfiles.h (OBJF_MAPPED): Delete.
7377 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7378 (free_objfile) [USE_MMALLOC]: Ditto.
7379 (open_existing_mapped_file): Delete function.
7380 (open_mapped_file): Delete function.
7381 (map_to_file): Delete function.
7382
73832004-01-19 Kevin Buettner <kevinb@redhat.com>
7384
7385 * infrun.c (step_into_function): Account for possible breakpoint
7386 adjustment when computing ``stop_func_start''.
7387
73882004-01-19 Kevin Buettner <kevinb@redhat.com>
7389
7390 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7391 the region size against the size of a pointer, not the size of
7392 a register as given by DEPRECATED_REGISTER_SIZE.
7393
73942004-01-19 Andrew Cagney <cagney@redhat.com>
7395
7396 * tui/tui-regs.h: Include "tui-data.h".
7397 (tuiFirstRegElementNoInLine): Delete declaration.
7398 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7399 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7400 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7401 (tui_calculate_regs_column_count): Rename
7402 tuiCalculateRegsColumnCount.
7403 (tui_check_register_values): Rename tuiCheckRegisterValues.
7404 (tui_show_registers): Rename tuiShowRegisters.
7405 (tui_display_registers_from_line): Rename
7406 tuiDisplayRegistersFromLine.
7407 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7408 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7409 (tui_first_reg_element_no_inline): Rename
7410 tuiFirstRegElementNoInLine.
7411 * tui/tui-data.h: Update copyright.
7412 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7413 * tui/tui-windata.c: Update copyright, update references.
7414 * tui/tui-regs.c: Update copyright, update references.
7415 * tui/tui-win.c: Update copyright, update references.
7416 * tui/tui-layout.c: Update copyright, update references.
7417
74182004-01-18 Andrew Cagney <cagney@redhat.com>
7419
7420 * tui/tui-io.c: Update copyright.
7421 (key_is_end_sequence, key_is_backspace): New functions.
7422 (key_is_command_char, key_is_start_sequence): New function.
7423 (tui_getc): Update references.
7424 * tui/tui-io.h: Update copyright.
7425 (m_tuiStartNewLine): Delete macro.
7426 (m_isBackspace, m_isDeleteChar): Delete macros.
7427 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7428 (m_isNextPage, m_isPrevPage): Delete macros.
7429 (m_isLeftArrow, m_isRightArrow): Delete macros.
7430 (m_isXdbStyleCommandChar): Delete macro.
7431 (key_is_start_sequence): Declare, replace m_isStartSequence.
7432 (key_is_end_sequence): Declare, replace m_isEndSequence.
7433 (key_is_backspace): Declare ,replace m_isBackspace.
7434 (key_is_command_char): Declare, replace m_isCommandChar.
7435 * tui/tui-command.c: Update copyright.
7436 (tuiDispatchCtrlChar): Update references.
7437
7438 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7439 tuiSourceWin.h.
7440
7441 * tui/tui-command.c: Rename tui/tuiCommand.c.
7442 * tui/tui-command.h: Rename tui/tuiCommand.h.
7443 * tui/tui-data.c: Rename tui/tuiData.c.
7444 * tui/tui-data.h: Rename tui/tuiData.h.
7445 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7446 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7447 * tui/tui-io.c: Rename tui/tuiIO.c.
7448 * tui/tui-io.h: Rename tui/tuiIO.h.
7449 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7450 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7451 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7452 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7453 * tui/tui-source.c: Rename tui/tuiSource.c.
7454 * tui/tui-source.h: Rename tui/tuiSource.h.
7455 * tui/tui-stack.c: Rename tui/tuiStack.c.
7456 * tui/tui-stack.h: Rename tui/tuiStack.h.
7457 * tui/tui-win.c: Rename tui/tuiWin.c.
7458 * tui/tui-win.h: Rename tui/tuiWin.h.
7459 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7460 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7461 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7462 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7463 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7464 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7465 * tui/tui-file.c: Update includes.
7466 * tui/tui-hooks.c: Update includes.
7467 * tui/tui-interp.c: Update includes.
7468 * tui/tui.c: Update includes.
7469 * Makefile.in: Update all tui/ dependencies.
7470 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7471
7472 * Makefile.in: Update copyright. Update dependencies.
7473
7474 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7475 problem.
7476
74772004-01-18 Andrew Cagney <cagney@redhat.com>
7478
7479 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7480 instead of register_gdbarch_init.
7481
7482 * remote-sds.c (tohex): Delete unused function. Update copyright.
7483 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7484 * v850-tdep.c (v850_register_virtual_size): Ditto.
7485 * target.c (normal_target_post_startup_inferior): Ditto.
7486 * source.c (ambiguous_line_spec): Ditto.
7487 * remote.c (adapt_remote_get_threadinfo): Ditto.
7488 * mi/mi-out.c (out_field_fmt): Ditto.
7489 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7490 (output_control_change_notification): Ditto.
7491 * m68k-tdep.c (m68k_register_byte): Ditto.
7492 (m68k_remote_breakpoint_from_pc): Ditto.
7493 * ui-out.c (init_ui_out_state): Delete unused declaration.
7494 * stabsread.c (search_value): Ditto.
7495 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7496 * maint.c (print_section_table): Ditto.
7497 * infrun.c (set_follow_fork_mode_command): Ditto.
7498
74992004-01-18 Mark Kettenis <kettenis@gnu.org>
7500
7501 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7502 DW_CFA_def_cfa_exporession. Add support for
7503 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7504 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7505
75062004-01-18 Andrew Cagney <cagney@redhat.com>
7507
7508 * ocd.c: Update copyright.
7509 (bdm_read_register_command): Delete unused function.
7510 (_initialize_remote_ocd): Delete commented out reference.
7511 (get_quoted_char, reset_packet): Delete #if0ed function.
7512 (output_packet, put_quoted_char): Delete #if0ed function.
7513 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7514 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7515 (BDM_BREAKPOINT): Delete #if0ed macro.
7516 (remote_timeout): Delete #if0ed variable.
7517
75182004-01-18 Mark Kettenis <kettenis@gnu.org>
7519
7520 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7521 (core-sol2.o): Remove dependency.
7522 * core-sol2.c: Remove file.
7523
75242004-01-17 Andrew Cagney <cagney@redhat.com>
7525
7526 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7527 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7528 enums.
7529
75302004-01-17 Daniel Jacobowitz <drow@mvista.com>
7531
7532 * remote.c: Update copyright years.
7533
75342004-01-17 Daniel Jacobowitz <drow@mvista.com>
7535
7536 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7537
75382004-01-17 Andrew Cagney <cagney@redhat.com>
7539
7540 * mdebugread.c: Update copyright.
7541 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7542 (parse_type, parse_procedure): Ditto.
7543 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7544
7545 * cris-tdep.c (cris_store_struct_return): Put back accidently
7546 deleted function.
7547
7548 * gdbarch.sh: Update copyright year.
7549 * gdbarch.h, gdbarch.c: Re-generate.
7550
75512004-01-17 Daniel Jacobowitz <drow@mvista.com>
7552
7553 Suggested by George Anzinger.
7554 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7555 correct stack offset. Include unknown opcode numbers in the error
7556 message.
7557
75582004-01-17 Andrew Cagney <cagney@redhat.com>
7559
7560 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7561 extract_struct_value_address, i386 does not set it.
7562 * sparc64-tdep.c (sparc64_init_abi): Do not set
7563 extract_struct_value_address, never called.
7564 (sparc64_extract_struct_value_address): Delete function.
7565 * m68hc11-tdep.c: Update copyright.
7566 (m68hc11_gdbarch_init): Delete redundant assignment of
7567 extract_struct_value_address.
7568 * i386-tdep.c: Update copyright.
7569 (i386_gdbarch_init): Do not set extract_struct_value_address,
7570 never called.
7571 (i386_extract_struct_value_address): Delete function.
7572 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7573 extract_struct_value_address, never called.
7574 (sparc32_extract_struct_value_address): #if 0 function. Add
7575 comments explaining its future.
7576
75772004-01-17 Daniel Jacobowitz <drow@mvista.com>
7578
7579 * arm-tdep.c (arm_write_pc): New function.
7580 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7581
75822004-01-17 Daniel Jacobowitz <drow@mvista.com>
7583
7584 * breakpoint.c (must_shift_inst_regs): Delete.
7585 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7586 and SHIFT_INST_REGS.
7587 * infcmd.c (step_1, step_1_continuation): Delete references to
7588 SHIFT_INST_REGS.
7589 * infrun.c (keep_going): Likewise.
7590 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7591 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7592
75932004-01-17 Andrew Cagney <cagney@redhat.com>
7594
7595 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7596 * gdbarch.h, gdbarch.c: Re-generate.
7597 * infcmd.c (print_return_value): Delete reference to
7598 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7599
7600 * cris-tdep.c (cris_gdbarch_init): Do not set
7601 deprecated_extract_struct_value_address.
7602
7603 * xstormy16-tdep.c: Update copyright.
7604 (xstormy16_extract_struct_value_address): Update to current
7605 extract struct value address interface.
7606 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7607 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7608 current extract struct value address interface.
7609 (sh64_gdbarch_init): Set extract_struct_value_address.
7610
7611 * cris-tdep.c: Update copyright.
7612 (cris_extract_struct_value_address): Delete function.
7613 (struct_return_address): Delete variable.
7614 (cris_store_struct_return): Do not set struct_return_address.
7615
7616 * mcore-tdep.c: Update copyright.
7617 (mcore_extract_struct_value_address): Delete function. Update
7618 comments.
7619 (mcore_gdbarch_init): Update.
7620 * mn10300-tdep.c: Update copyright.
7621 (mn10300_extract_struct_value_address): Delete function.
7622 (mn10300_gdbarch_init): Update.
7623 * v850-tdep.c: Update copyright.
7624 (v850_extract_struct_value_address): Delete.
7625 (v850_gdbarch_init): Update.
7626 * ns32k-tdep.c: Update copyright.
7627 (ns32k_extract_struct_value_address): Delete.
7628 (ns32k_gdbarch_init): Update.
7629 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7630 (hppa_gdbarch_init): Update.
7631 * vax-tdep.c: Update copyright.
7632 (vax_extract_struct_value_address): Delete.
7633 (vax_gdbarch_init): Update.
7634
7635 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7636 * gdbarch.h, gdbarch.c: Re-generate.
7637 * procfs.c (procfs_fetch_registers): Delete reference to
7638 DEPRECATED_NPC_REGNUM.
7639 (procfs_store_registers): Ditto.
7640 * regcache.c (generic_target_write_pc): Simplify.
7641 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7642
7643 * core-sol2.c (fetch_core_registers): Replace
7644 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7645
7646 * hppa-tdep.c: Update copyright year.
7647 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7648 NPC_REGNUM.
7649 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7650
7651 * mips-tdep.c (mips_write_pc): New function.
7652 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7653 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7654 (mips_find_saved_regs, mips_software_single_step: Ditto.
7655 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7656 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7657
76582004-01-17 Andrew Cagney <cagney@redhat.com>
7659
7660 * mips-tdep.c: Re-indent. Group functions by ABI.
7661
76622004-01-17 Andrew Cagney <cagney@redhat.com>
7663
7664 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7665 * gdbarch.c: Re-generate.
7666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7667 DECR_PC_AFTER_BREAK to zero.
7668 * vax-tdep.c (vax_gdbarch_init): Ditto.
7669 * v850-tdep.c (v850_gdbarch_init): Ditto.
7670 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7671 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7672 * sh-tdep.c (sh_gdbarch_init): Ditto.
7673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7674 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7675 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7676 * mips-tdep.c (mips_gdbarch_init): Ditto.
7677 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7679 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7681 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7682 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7683 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7684 * frv-tdep.c (frv_gdbarch_init): Ditto.
7685 * cris-tdep.c (cris_gdbarch_init): Ditto.
7686 * avr-tdep.c (avr_gdbarch_init): Ditto.
7687 * arm-tdep.c (arm_gdbarch_init): Ditto.
7688 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7689
76902004-01-17 J. Brobecker <brobecker@gnat.com>
7691
7692 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7693 Delete, no longer used.
7694 (read_subrange_type): New function, mostly extracted from
7695 read_array_type().
7696 (read_array_type): Replace extracted code by call to
7697 read_subrange_type().
7698 (dwarf2_get_attr_constant_value): New function.
7699 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7700 (add_partial_symbol): Likewise.
7701 (process_die): Likewise.
7702 (new_symbol): Likewise.
7703 (read_type_die): Likewise.
7704
77052004-01-16 Andrew Cagney <cagney@redhat.com>
7706
7707 * symfile.c: Update copyright year.
7708 (compare_symbols): Delete unused function.
7709 * stabsread.c: Update copyright year.
7710 (lrs_general_complaint): Delete unused function.
7711 (ref_search_value): Ditto.
7712 (get_substring): Delete declaration.
7713 * sh64-tdep.c: Update copyright year.
7714 (sh64_get_gdb_regnum): Delete unused function.
7715 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7716 Delete unused function.
7717
77182004-01-17 Mark Kettenis <kettenis@gnu.org>
7719
7720 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7721 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7722
77232004-01-16 Andrew Cagney <cagney@redhat.com>
7724
7725 Changes from Peter Schauer.
7726 * rs6000-tdep.c: Update copyright year.
7727 (rs6000_push_dummy_call): Update the stack pointer before
7728 accessing the corresponding stack region.
7729 * rs6000-nat.c: Update copyright year.
7730 (set_host_arch): Set "info.abfd" to "exec_bfd".
7731
77322004-01-15 Mark Kettenis <kettenis@gnu.org>
7733
7734 * blockframe.c: Update copyright year.
7735 (inside_entry_func): Don't treat a zero PC specially.
7736
77372004-01-14 Elena Zannoni <ezannoni@redhat.com>
7738
7739 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7740 variable.
7741 (gcore_create_callback): Ditto. Skip any memory segment that has
7742 no permissions set.
7743
77442004-01-14 David Carlton <carlton@kealia.com>
7745
7746 Change symbols for C++ nested types to contain the fully qualified
7747 name, if possible. (At least in the DWARF-2 case.) Partial fix
7748 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7749 c++/895.
7750 * c-exp.y (qualified_type): Handle types nested within classes.
7751 * cp-namespace.c: Update comments.
7752 (cp_set_block_scope): Delete #if 0.
7753 (cp_lookup_nested_type): Handle types nested within classes.
7754 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7755 when appropriate.
7756 (add_partial_symbol): Add the name of the enclosing namespace to
7757 types.
7758 (pdi_needs_namespace): New.
7759 (add_partial_namespace): Tweak comment.
7760 (add_partial_structure): New.
7761 (psymtab_to_symtab_1): Initialize processing_current_prefix
7762 here...
7763 (process_die): instead of here.
7764 (read_structure_scope): Try to figure out the name of the class or
7765 namespace that the structure might be defined within.
7766 (read_enumeration): Generate fully-qualified names, if possible.
7767 (read_namespace): Don't set name to NULL.
7768 (die_specification): New.
7769 (new_symbol): Generate fully-qualified names for types.
7770 (read_type_die): Determine appropriate prefix.
7771 (determine_prefix): New.
7772 (typename_concat): New.
7773 (class_name): New.
7774 * valops.c (value_aggregate_elt): Pass NOSIDE to
7775 value_struct_elt_for_reference.
7776 (value_struct_elt_for_reference): Make static, add NOSIDE
7777 parameter, call value_maybe_namespace_elt as a last resort.
7778 (value_namespace_elt): Break out code into
7779 value_maybe_namespace_elt.
7780 (value_maybe_namespace_elt): New.
7781
77822004-01-12 Andrew Cagney <cagney@redhat.com>
7783
7784 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7785 cooked floating-point registers.
7786 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7787 and value_to_register.
7788
77892004-01-13 Andrew Cagney <cagney@redhat.com>
7790
7791 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7792 * gdbarch.c: Re-generate.
7793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7794 FUNCTION_START_OFFSET.
7795 * v850-tdep.c (v850_gdbarch_init): Ditto.
7796 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7797 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7798 * sh-tdep.c (sh_gdbarch_init): Ditto.
7799 * s390-tdep.c (s390_gdbarch_init): Ditto.
7800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7801 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7802 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7803 * mips-tdep.c (mips_gdbarch_init): Ditto.
7804 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7805 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7807 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7809 * i386-tdep.c (i386_gdbarch_init): Ditto.
7810 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7812 * frv-tdep.c (frv_gdbarch_init): Ditto.
7813 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7814 * cris-tdep.c (cris_gdbarch_init): Ditto.
7815 * avr-tdep.c (avr_gdbarch_init): Ditto.
7816 * arm-tdep.c (arm_gdbarch_init): Ditto.
7817 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7818
78192004-01-13 Daniel Jacobowitz <drow@mvista.com>
7820
7821 * infrun.c (follow_fork_mode_ask): Remove.
7822 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7823 (follow_fork): Simplify and remove internal error for
7824 follow_fork_mode_ask.
7825 (_initialize_infrun): Update "set follow-fork-mode" help text.
7826
78272004-01-13 Andrew Cagney <cagney@redhat.com>
7828
7829 * configure.in: Update copyright year.
7830 (build_warnings): Add -Wunused-label.
7831 * configure: Re-generate.
7832
78332004-01-12 Andrew Cagney <cagney@redhat.com>
7834
7835 * exec.h (exec_ops): Make "extern".
7836
7837 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7838 the function is void.
7839 (mips_pseudo_register_write): Ditto.
7840
78412004-01-12 Andrew Cagney <cagney@redhat.com>
7842
7843 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7844 call. Never defined.
7845 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7846 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7847 (struct sparc_gregset, struct regcache): Ditto.
7848 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7849
78502004-01-12 Andrew Cagney <cagney@redhat.com>
7851
7852 * mi/ChangeLog: Delete file. Renamed to ...
7853 * mi/ChangeLog-1999-2003: New file.
7854 * tui/ChangeLog: Delete file. Renamed to ...
7855 * tui/ChangeLog-1998-2003: New file.
7856
78572004-01-11 Mark Kettenis <kettenis@gnu.org>
7858
7859 * sparc64nbsd-tdep.c: Include "regset.h".
7860 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7861 Remove variables.
7862 (fetch_core_registers): Remove function.
7863 (sparc64nbsd_core_fns): Remove variable.
7864 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7865 functions.
7866 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7867 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7868 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7869
7870 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7871 sparc_extract_struct_value_address.
7872 (sparc32_gdbarch_init): Set extract_struct_value_address.
7873 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7874 function.
7875 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7876 return_value_on_stack.
7877
7878 * NEWS: Mention that %cs and %ss have been added to the AMD64
7879 configurations
7880
7881 * frame.c: Update copyright year.
7882 (get_prev_frame): Improve comment.
7883
7884 * sparc64fbsd-tdep.c: Include "regset.h".
7885 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7886 Remove variables.
7887 (fetch_core_registers): Remove function.
7888 (sparc64fbsd_core_fns): Remove variable.
7889 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7890 functions.
7891 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7892 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7893 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
7894
7895 * sparcnbsd-tdep.c: Include "regset.h".
7896 (fetch_core_registers): Remove function.
7897 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7898 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7899 functions.
7900 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7901 TDEP->fpregset.
7902 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
7903
7904 * sparc-tdep.h (struct regset): Provide opaque declaration.
7905 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7906 fpregset and sizeof_fpregset members.
7907 * sparc-tdep.c (struct regset): Provide opaque declaration.
7908 (sparc_regset_from_core_section): New function.
7909 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7910 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7911 Set regset_from_core_section when appropriate.
7912
79132004-01-10 Mark Kettenis <kettenis@gnu.org>
7914
7915 * x86-64-tdep.c (amd64_non_pod_p): New function.
7916 (amd64_classify_aggregate): Return class memory for non-POD
7917 C++ structure types.
7918
7919 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7920 argument. Use it to reserve a register if necessary.
7921 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7922 amd64_push_arguments.
7923
7924 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7925
7926 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7927 register numbers in comments.
7928 * x86-64-tdep.h: Update copyright year.
7929 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7930 Adjust for addition of %cs and %ss.
7931 * amd64fbsd-nat.c: Update copyright year.
7932 (reg_offset): Add register offsets for %cs and %ss.
7933 * amd64fbsd-tdep.c: Update copyright year.
7934 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7935 (amd64fbsd_sc_reg_offset): Likewise.
7936 * x86-64-linux-nat.c: Update copyright year.
7937 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7938 and %ss.
7939 * amd64nbsd-nat.c: Update copyright year.
7940 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7941 * amd64nbsd-tdep.c: Update copyright year.
7942 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7943 * x86-64-linux-tdep.c: Update copyright year.
7944 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7945 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7946 * regformats/reg-x86-64.dat: Add %cs and %ss.
7947
7948 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7949 variables to prevent long lines. Update comments to reflect
7950 reality.
7951
79522004-01-09 David Carlton <carlton@kealia.com>
7953
7954 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7955 * dwarf2read.c (read_namespace): Pull out name-generating code
7956 into namespace_name. Rename previous_namespace to previous_prefix
7957 and processing_current_namespace to processing_current_prefix..
7958 (namespace_name): New function.
7959 (add_partial_symbol): Substitute uses of pdi->name with
7960 actual_name.
7961 * cp-support.h: Rename processing_current_namespace to
7962 processing_current_prefix.
7963 Update copyright year.
7964 * cp-namespace.c: Rename processing_current_namespace to
7965 processing_current_prefix.
7966 Update copyright year.
7967
79682004-01-09 Andrew Cagney <cagney@redhat.com>
7969
7970 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7971
79722004-01-09 Mark Kettenis <kettenis@gnu.org>
7973
7974 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7975 complaining.
7976 (process_one_symbol): Deal with N_PATCH stabs.
7977
79782004-01-09 Elena Zannoni <ezannoni@redhat.com>
7979
7980 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7981 ifdeffed code.
7982 Update copyright year.
7983
79842004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7985
7986 * config/pa/tm-hppa.h: Update extern declarations for
7987 hppa32_hpux_frame_saved_pc_in_sigtramp,
7988 hppa32_hpux_frame_base_before_sigtramp, and
7989 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7990
79912004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7992
7993 * config/pa/tm-hppah.h: Update copyright years.
7994
79952004-01-08 Andrew Cagney <cagney@redhat.com>
7996
7997 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7998 (mips_o32_reg_struct_has_addr): Delete function.
7999 (mips_gdbarch_init): Update.
8000 (mips_extract_struct_value_address): Delete function.
8001
80022004-01-08 David Mosberger <davidm@hpl.hp.com>
8003
8004 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
8005 reality.
8006
80072004-01-07 Andrew Cagney <cagney@redhat.com>
8008
8009 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
8010 architecture's elf flags (when available).
8011
8012 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
8013 FPU to the start, check the MIPS FPU when looking for an old
8014 architecture.
8015 (set_mipsfpu_single_command): Update the architecture.
8016 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
8017
8018 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
8019 (mips_mask_address_p): Add "tdep" parameter.
8020 (show_mask_address, mips_addr_bits_remove): Update.
8021 (mips_dump_tdep): Update.
8022 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
8023 (MIPS_STACK_ARGSIZE): Delete macro.
8024 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
8025 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
8026 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
8027 (mips_dump_tdep): Update.
8028 (MIPS_SAVED_REGSIZE): Delete macro.
8029 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
8030 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
8031 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
8032 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
8033 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
8034 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
8035 (mips_pop_frame, return_value_location): Update.
8036 (mips_n32n64_return_value, mips_dump_tdep): Update.
8037
8038 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
8039 MIPS ABI.
8040
8041 * mips-tdep.c: Update copyright.
8042 (mips_gdbarch_init): Merge two code blocks handling the register
8043 name and number layout.
8044
80452004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
8046
8047 * tracepoint.c (validate_actionline): Fix segv at EOF
8048
80492004-01-07 Michael Chastain <mec.gnu@mindspring.com>
8050
8051 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
8052 properly for static fields.
8053
80542004-01-06 Jeff Johnston <jjohnstn@redhat.com>
8055 Jason Molenda <jmolenda@apple.com>
8056
8057 * disasm.c: Update copyright to include 2004.
8058 (do_mixed_source_and_assembly): For uiout asm list
8059 and tuple cleanups, initialize to null_cleanup instead of
8060 NULL and do so prior to loop. Only reset when we close off
8061 the tuple/list. Move check for whether to close off the
8062 asm tuple/list to after dump_insns call where it will be run
8063 on each loop iteration.
8064
80652004-01-05 Andrew Cagney <cagney@redhat.com>
8066
8067 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
8068 should be a switch case and not a label.
8069 * mips-tdep.c (mips32_next_pc): Delete unused labels
8070 "greater_equal_branch" and "less_zero_branch".
8071 * jv-valprint.c (java_print_value_fields): Delete unused label
8072 "flush_it".
8073
8074 * target.c (unpush_target): Only close a target that is in the
8075 target stack.
8076
80772004-01-05 Mark Kettenis <kettenis@gnu.org>
8078
8079 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
8080 address from [sp + 64] instead of %o2.
8081
8082 * frame.c (get_prev_frame): Don't try to unwind the PC. This
8083 fixes PR backtrace/1476.
8084
80852004-01-05 Andrew Cagney <cagney@redhat.com>
8086
8087 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8088 move to start of file.
8089 * i386-tdep.h (struct regcache): Add opaque declaration.
8090 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8091 declaration.
8092 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8093 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8094 * win32-nat.c (fake_create_process): Use ISO C style definition.
8095 * stabsread.c (define_symbol): Delete #ifndef
8096 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8097 stabs_argument_has_addr call, macro never defined.
8098
80992004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8100
8101 * op50-rom.c: Delete.
8102 * w89k-rom.c: Delete.
8103 * Makefile.in: Remove references.
8104
81052004-01-04 Mark Kettenis <kettenis@gnu.org>
8106
8107 * x86-64-tdep.c: Update copyright year.
8108 (struct amd64_register_info): Rename from x86_64_register_info.
8109 (amd64_register_info): Rename from x86_64_register_info.
8110 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8111 (amd64_register_name): Rename from x86_64_register_name.
8112 (amd64_register_type): Rename from x86_64_register_type.
8113 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8114 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8115 (amd64_dwarf_reg_to_regnum): Rename from
8116 x86_64_dwarf_reg_to_regnum.
8117 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8118 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8119 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8120 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8121 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8122 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8123 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8124 (amd64_frame_cache): Rename from x86_64_frame_cache.
8125 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8126 (amd64_frame_prev_register): Rename from
8127 x86_64_frame_prev_register.
8128 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8129 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8130 (amd64_sigtramp_frame_cache): Rename from
8131 x86_64_sigtramp_frame_cache.
8132 (amd64_sigtramp_frame_prev_register): Rename from
8133 x86_64_sigtramp_frame_prev_register.
8134 (amd64_sigtramp_frame_unwind): Rename from
8135 x86_64_sigtramp_frame_unwind.
8136 (amd64_sigtramp_frame_sniffer): Rename from
8137 x86_64_sigtramp_frame_sniffer.
8138 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8139 (amd64_frame_base): Rename from x86_64_frame_base.
8140 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8141 (amd64_frame_align): Rename from x86_64_frame_align.
8142 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8143 (amd64_regset_from_core_section): Rename from
8144 x86_64_regset_from_core_section.
8145 (x86_64_init_abi): Update comments.
8146
81472004-01-04 Nick Roberts <nick@nick.uklinux.net>
8148
8149 * MAINTAINERS (write after approval): Add myself.
8150
81512004-01-04 Mark Kettenis <kettenis@gnu.org>
8152
8153 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8154 `float' arguments.
8155
81562004-01-04 Mark Kettenis <kettenis@gnu.org>
8157
8158 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8159 such that it mentions a specific version of GCC that exhibits this
8160 bug.
8161
81622004-01-03 Mark Kettenis <kettenis@gnu.org>
8163
8164 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8165 structure that has a single `float' member, store it in %f1 in
8166 addition to %f0.
8167
8168 * sparc-sol2-nat.c: Add missing '\'.
8169
8170 * sparc-tdep.c (sparc32_return_value): New function.
8171 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8172 Remove functions.
8173 (sparc32_gdbarch_init): Set return_value, don't set
8174 extract_return_value, store_return_value, use_struct_convention
8175 and return_value_on_stack.
8176
8177 * sparc-sol2-nat.c: Add missing ')'.
8178
81792004-01-03 J. Brobecker <brobecker@gnat.com>
8180
8181 * infrun.c (handle_step_into_function): New function.
8182 (handle_inferior_event): Extract out some code into the new
8183 function above.
8184
81852004-01-03 J. Brobecker <brobecker@gnat.com>
8186
8187 * infrun.c (handle_inferior_event): Move the declaration of
8188 real_stop_pc inside the if blocks where it is used.
8189
81902004-01-03 Mark Kettenis <kettenis@gnu.org>
8191
8192 * sparc64-tdep.c (sparc64_16_byte_align_p)
8193 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8194 Use check_typedef to get subtypes of structures and unions.
8195 (sparc64_store_return_value): Fix calculation of the appropriate
8196 offset into VALBUF when storing a structure or union.
8197 (sparc64_return_value): New function.
8198 (sparc64_use_struct_convention): Remove function.
8199 (sparc64_init_abi): Set return_value, don't set
8200 extract_return_value, store_return_value and
8201 use_struct_convention.
8202
82032004-01-03 Eli Zaretskii <eliz@elta.co.il>
8204
8205 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8206 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8207 gdb/config/alpha/xm-alphaosf.h,
8208 gdb/config/powerpc/tm-ppcle-eabi.h,
8209 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8210 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8211 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8212 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8213 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8214 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8215 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8216 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8217 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8218 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8219 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8220 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8221 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8222 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8223 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8224 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8225 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8226 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8227 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8228 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8229 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8230 Remove lines for .cvsignore files.
8231
82322004-01-03 J. Brobecker <brobecker@gnat.com>
8233
8234 * infrun.c: Back out the previous change.
8235
82362004-01-03 Mark Kettenis <kettenis@gnu.org>
8237
8238 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8239 sparc-*-sunos4* to the list of REMOVED configurations.
8240
8241 * configure.tgt: Add back sparc-*-vxworks*.
8242 * remote-vxsparc.c: Remove all includes except for "defs.h",
8243 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8244 Include "sparc-tdep.h".
8245 (SPARC_R_G1): New define.
8246 (vxsparc_gregset): New variable.
8247 (ext_format_sparc): Remove extern declaration.
8248 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8249 sparc32_supply_fpregset.
8250 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8251 sparc_collect_rwindow and sparc32_collect_fpregset.
8252 * config/sparc/tm-vxworks.h: New file, based on recently removed
8253 tm-vxsparc.h.
8254 * config/sparc/vxworks.mt: New file, based on recently removed
8255 vxworks.mt.
8256
82572004-01-03 J. Brobecker <brobecker@gnat.com>
8258
8259 * infrun.c (handle_step_into_function): New function.
8260 (handle_inferior_event): Extract out some code into the new
8261 function above.
8262
82632004-01-02 Mark Kettenis <kettenis@gnu.org>
8264
8265 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8266 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8267 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8268 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8269 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8270 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8271 (sparc_nat_h): New variable.
8272 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8273 (tm-sun4os4.h): Remove dependency.
8274 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8275 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8276 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8277 sparc-tdep.o): Update dependencies.
8278 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8279 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8280 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8281 dependencies.
8282 * configure.host: Remove existing sparc-*-lynxos*,
8283 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8284 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8285 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8286 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8287 triplets.
8288 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8289 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8290 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8291 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8292 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8293 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8294 sparc64-*-solaris2* and sparc64-*-* triplets.
8295 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8296 "symtab.h" and "objfiles.h".
8297 (BIAS): Remove define.
8298 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8299 (X_DISP19): Remove macros.
8300 (sparc_fetch_instruction): Remove function.
8301 (struct gdbarch_tdep): Remove definition.
8302 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8303 (sparc_breakpoint_from_pc): Remove function.
8304 (struct sparc64_frame_cache): Remove definition.
8305 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8306 sparc64_unwind_pc): Remove functions.
8307 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8308 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8309 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8310 (sparc64_frame_cache): Change return type to `struct
8311 sparc_frame_cache *'. Simply call sparc_frame_cache.
8312 (sparc64_frame_this_id, sparc64_frame_prev_register,
8313 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8314 instead of `struct sparc64_frame_cache.
8315 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8316 sparc_analyze_control_transfer, sparc_software_single_step,
8317 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8318 _initialize_sparc64_tdep): Remove functions.
8319 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8320 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8321 macros.
8322 (sparc64_supply_gregset, sparc64_collect_gregset,
8323 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8324 (sparc64_init_abi): New function.
8325 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8326 inclusion guard. Include "sparc-tdep.h".
8327 (BIAS): Define.
8328 (r_tstate_offset, r_fprs_offset): New defines.
8329 (enum sparc_regnum): Remove defenition.
8330 (enum sparc64_regnum): Reformat.
8331 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8332 (sparc64_init_abi, sparc64_supply_gregset,
8333 sparc64_collect_gregset, sparc64_supply_fpregset,
8334 sparc64_collect_fpregset): New prototypes.
8335 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8336 Add extern declarations.
8337 (sparc64_sol2_init_abi): New prototype.
8338 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8339 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8340 prototypes.
8341 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8342 "sparnbsd-nat.h".
8343 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8344 functions.
8345 (_initialize_sparc64fbsd_nat): Remove initialization of
8346 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8347 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
8348 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
8349 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8350 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8351 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8352 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8353 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8354 (sparc64fbsd_r_y_offset): Remove variables.
8355 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8356 Make static and const.
8357 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8358 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8359 functions.
8360 (sparc64fbsd_gregset): New variable.
8361 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8362 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8363 and sparc64_supply_fpregset.
8364 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8365 (sparc64fbsd_sigtramp_frame_this_id)
8366 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8367 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8368 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8369 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8370 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8371 * sparcnbsd-tdep.c: Update copyright year. Include
8372 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8373 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8374 "value.h" and "sparcnbsd-tdep.h".
8375 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8376 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8377 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8378 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8379 defines.
8380 (sparcnbsd_gregset): New variable.
8381 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8382 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8383 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8384 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8385 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8386 variables.
8387 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8388 (sparc32nbsd_sigcontext_frame_this_id)
8389 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8390 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8391 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8392 (sparcnbsd_get_longjmp_target_32,
8393 sparcnbsd_get_longjmp_target_64): Remove functions.
8394 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8395 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8396 sparcnbsd_init_elf): Remove.
8397 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8398 (sparcnbsd_elf_init_abi): New functions.
8399 (_initialize_sparcnbsd_tdep): New prototype.
8400 (_initialize_sparnbsd_tdep): Update.
8401 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8402 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8403 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8404 * config/sparc/linux.mh: Update comment.
8405 (XM_FILE, HOST_IPC): Remove variables.
8406 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8407 sparc-linux-nat.o.
8408 * config/sparc/linux.mt: Update comment.
8409 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8410 * config/sparc/nbsd.mt: Reformat.
8411 * config/sparc/nbsd64.mh: Update comment.
8412 (NATDEPFILES): Add sparc-nat.o.
8413 * config/sparc/nbsd64.mt: Update comment.
8414 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8415 (TM_FILE): Set to tm-nbsd.h.
8416 * config/sparc/nbsdelf.mh: Update comment.
8417 (NATDEPFILES): Add sparc-nat.o.
8418 (XM_FILE): Delete.
8419 * config/sparc/nbsdaout.mh: Update comment.
8420 (NATDEPFILES): Add sparc-nat.o
8421 (XM_FILE): Delete.
8422 * config/sparc/nm-linux.h: Update copyright year. Don't include
8423 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8424 inclusion.
8425 (KERNEL_U_SIZE): Remove define.
8426 (kernel_u_size): Remove prototype.
8427 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8428 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8429 "regcache.h".
8430 (CHILD_PREPARE_TO_STORE): Remove define.
8431 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8432 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8433 sparcnbsd-nat.c: Rewrite files.
8434 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8435 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8436 sparcnbsd-tdep.h: Remove files.
8437 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8438 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8439 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8440 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8441 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8442 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8443 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8444 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8445 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8446 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8447 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8448 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8449 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8450 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8451 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8452 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8453 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8454 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8455 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8456
84572004-01-02 Andrew Cagney <cagney@redhat.com>
8458
8459 From 2003-12-18 Kazuhiro Inaoka:
8460 * configure.host: Add m32r-linux target.
8461
84622004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8463
8464 * top.c (print_gdb_version): Update year to 2004.
8465
84662004-01-02 Mark Mitchell <mark@codesourcery.com>
8467
8468 * MAINTAINERS: Add myself to the write-after-approval category.
8469
84702004-01-02 Daniel Jacobowitz <drow@mvista.com>
8471
8472 From Bernardo Innocenti <bernie@develer.com>:
8473 * configure.tgt: Add uClinux target.
8474
84752004-01-02 Andrew Cagney <cagney@redhat.com>
8476
8477 * utils.c (do_my_cleanups): Make static, add forward declaration.
8478 * defs.h (do_my_cleanups): Delete declaration.
8479
84802004-01-02 Eli Zaretskii <eliz@elta.co.il>
8481
8482 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8483 bfd/ChangeLog-0203.
8484
84852004-01-02 Mark Kettenis <kettenis@gnu.org>
8486
8487 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8488 in <machine/reg.h>.
8489 * configure, config.in: Regenerate.
8490
8491For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8492tui/ChangeLog-1998-2003.
8493\f
8494Local Variables:
8495mode: change-log
8496left-margin: 8
8497fill-column: 74
8498version-control: never
8499End:
This page took 0.05044 seconds and 4 git commands to generate.