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