5ff1377bd45e0a74fdaa2555fc456312ff762438
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-03-15 Mark Kettenis <kettenis@gnu.org>
2
3 * i386bsd-nat.c: Update copyright year.
4 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
5 define unconditionally.
6
7 2004-03-15 Mark Kettenis <m.kettenis@osp.nl>
8
9 * i387-tdep.h (i387_collect_fsave): New prototype.
10 * i387-tdep.c (i387_collect_fsave): New function containing most
11 of the code from i387_fill_fsave.
12 (i387_fill_fsave): Call i387_fill_fsave.
13
14 2004-03-15 Mark Kettenis <kettenis@gnu.org>
15
16 * i386-linux-tdep.c: Update copyright year.
17 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
18 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
19 svr4_ilp32_link_map_offsets instead of
20 i386_linux_svr4_fetch_link_map_offsets.
21
22 2004-03-15 David Carlton <carlton@kealia.com>
23
24 Fix for PR c++/1553:
25 * dwarf2read.c (read_structure_type): Determine type name by
26 calling determine_class_name.
27 (determine_class_name): New.
28 (determine_prefix): Look at TYPE_TAG_NAME and call
29 determine_class_name when appropriate.
30 (determine_prefix_aux, class_name): Delete.
31
32 2004-03-15 Kevin Buettner <kevinb@redhat.com>
33
34 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
35 unused macro definition. The definition in target.h (or perhaps
36 elsewhere) takes precedence.
37
38 2004-03-15 Andrew Cagney <cagney@redhat.com>
39
40 * ppc-tdep.h: Update copyright.
41 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
42 function signatures to match "regsets.h".
43 * ppc-linux-tdep.c: Include "regset.h".
44 (ELF_GREGSET_SIZE): Delete.
45 (right_supply_register): New function.
46 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
47 using right_supply_register.
48 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
49 functions.
50 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
51 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
52 (_initialize_ppc_linux_tdep): Do not register
53 ppc_linux_regset_core_fns.
54 (ppc_linux_regset_from_core_section): Replace
55 fetch_core_registers.
56 (ppc_linux_regset_core_fns): Delete.
57 * ppc-linux-nat.c: (right_fill_reg): New function.
58 (supply_gregset): Update call to ppc_linux_supply_gregset.
59 (fill_gregset): Clear the register set, use right_fill_reg.
60 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
61 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
62
63 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
64 unsigned.
65
66 2004-03-15 Andrew Cagney <cagney@redhat.com>
67
68 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
69 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
70 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
71 and register_gdbarch_data.
72 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
73 (struct gdbarch_data): Replace "init" by "pre_init" and
74 "post_init".
75 * gdbarch.h, gdbarch.c: Re-generate.
76 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
77 with"obstack", use OBSTACK_ZALLOC.
78 (dwarf2_frame_ops): Delete.
79 (dwarf2_frame_set_init_reg): Use gdbarch_data.
80 (dwarf2_frame_init_reg): Use gdbarch_data.
81 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
82 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
83 (_initialize_svr4_solib): Update.
84 * user-regs.c (_initialize_user_regs): Update.
85 * reggroups.c (_initialize_reggroup): Update.
86 * regcache.c (_initialize_regcache): Update.
87 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
88 * libunwind-frame.c (_initialize_libunwind_frame): Update.
89 * gnu-v3-abi.c (init_gnuv3_ops): Update.
90 * frame-unwind.c (_initialize_frame_unwind): Update.
91 * frame-base.c (_initialize_frame_base): Update.
92 * user-regs.c (user_reg_add): Update.
93 * reggroups.c (reggroup_add): Update.
94 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
95 * libunwind-frame.c (libunwind_frame_set_descr): Update.
96 * frame-unwind.c (frame_unwind_append_sniffer): Update.
97 * frame-base.c (frame_base_table): Update.
98 * remote.c (_initialize_remote): Update.
99 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
100
101 2004-03-15 Andrew Cagney <cagney@redhat.com>
102
103 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
104
105 2004-03-15 Kevin Buettner <kevinb@redhat.com>
106
107 * Makefile.in (frv-linux-tdep.o): Add dependencies.
108 * frv-linux-tdep.c: New file.
109 * frv-tdep.c (struct gdbarch_tdep): Add new field
110 ``sigcontext_reg_addr''.
111 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
112 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
113 (frv_sigramp_frame_sniffer): New functions.
114 (frv_sigtramp_frame_unwind): New static global.
115 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
116 sniffers.
117 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
118 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
119
120 2004-03-15 Kevin Buettner <kevinb@redhat.com>
121
122 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
123 but not via a call to error(), when unable to read memory.
124
125 2004-03-15 Kevin Buettner <kevinb@redhat.com>
126
127 * frv-tdep.c (frv_call_dummy_words): Delete.
128 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
129
130 2004-03-15 Andrew Cagney <cagney@redhat.com>
131
132 * infrun.c (handle_step_into_function, step_over_function): Only
133 update and use STEP_FRAME_ID when the system is using legacy
134 frames. Update comments.
135
136 2004-03-14 Mark Kettenis <kettenis@gnu.org>
137
138 * amd64-linux-tdep.h: Remove file.
139 * amd64-linux-tdep.c: Don't include "inferior.h" and
140 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
141 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
142 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
143 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
144 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
145 macros.
146 (user_to_gdb_regmap): Remove variable.
147 (amd64_linux_gregset_reg_offset): New variable.
148 (amd64_core_fns): Remove variable.
149 (fetch_core_registers): Remove function.
150 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
151 functions.
152 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
153 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
154 * Makefile.in (amd64_linux_tdep_h): Remove.
155 (amd64-linux-nat.o): Update dependencies.
156 (amd64-linux-tdep.o): Update dependencies.
157
158 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
159 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
160 functions.
161 (fetch_inferior_registers, store_inferior_registers): Rewrite.
162
163 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
164 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
165
166 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
167
168 * dwarf2read.c (read_structure_type): Rename from
169 read_structure_scope. Don't create a symbol or call process_die.
170 Return immediately if die->type is set. Call read_type_die before
171 dwarf2_add_member_fn.
172 (process_structure_scope): New function.
173 (read_enumeration_type, process_enumeration_scope): New functions,
174 broken out from read_enumeration. Don't create the enumeration
175 type if it has already been created.
176 (read_enumeration): Removed.
177 (process_die): Call read_structure_type, process_structure_scope,
178 read_enumeration_type, and process_enumeration_scope. Just call
179 new_symbol for base and subrange types. Add a comment about other
180 type dies.
181 (read_type_die): Call read_enumeration_type.
182 (add_partial_structure, new_symbol): Update comments.
183
184 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
185
186 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
187
188 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
189
190 * tui/tui-win.h (tui_get_cmd_list): Declare.
191 * tui/tui-win.c (tui_command): New function.
192 (tui_get_cmd_list): New function.
193 (_initialize_tui_win): Moved initialization of tui command in
194 tui_get_cmd_list.
195
196 * tui/tui-data.c (init_content_element): Setup new data members.
197 (init_win_info): Likewise.
198 (free_content_elements): Free it.
199 * tui/tui-data.h (struct tui_data_element): Store the register
200 content to print.
201 (struct tui_data_info): Keep the current register group.
202
203 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
204
205 * tui/tui-regs.h (tui_show_registers): Update prototype.
206 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
207 (tui_resize_all): No need to calculate anything for register window.
208 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
209 (tui_set_register_element, tui_set_general_regs_content): Remove.
210 (tui_set_special_regs_content): Remove.
211 (tui_set_general_and_special_regs_content): Remove.
212 (tui_set_float_regs_content): Remove.
213 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
214 (tui_set_regs_content): Remove.
215 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
216 (tui_v_show_registers_command_support): Remove.
217 (tui_show_registers): Use a reggroup to specify the registers to show.
218 (tui_show_register_group): New function.
219 (tui_display_registers_from): Compute the layout of register window
220 and refresh with new API; be sure to delete old register windows.
221 (tui_check_register_values): Update to use tui_get_register and
222 tui_display_data.
223 (tui_display_register): Just refresh the register window part.
224 (tui_register_format): Format registers and save in tui_data_element.
225 (tui_get_register): New to combine tui_reg_value_has_changed and
226 tui_get_register_raw_value; fix to use the new gdb API.
227 (tui_show_float_command): Renamed tui_reg_float_command.
228 (tui_show_general_command): Renamed tui_reg_general_command.
229 (tui_show_special_command): Renamed tui_reg_system_command.
230 (_initialize_tui_regs): Remove unused commands.
231
232 2004-03-13 Mark Kettenis <kettenis@gnu.org>
233
234 * NEWS (New native configurations): Mention OpenBSD/amd64.
235
236 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
237 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
238 Remove defines.
239 * config/i386/nm-fbsd64.h: Likewise.
240 * config/i386/nm-obsd.h: Likewise.
241 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
242 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
243
244 2004-03-12 Kevin Buettner <kevinb@redhat.com>
245
246 * frv-tdep.c (set_variant_scratch_registers): New function.
247 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
248 New constants.
249
250 From Richard Sandiford <rsandifo@redhat.com>:
251 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
252
253 2004-03-12 Kevin Buettner <kevinb@redhat.com>
254
255 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
256 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
257 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
258 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
259 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
260 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
261 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
262 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
263 definitions from frv-tdep.c to frv-tdep.h.
264
265 2004-03-12 Kevin Buettner <kevinb@redhat.com>
266
267 Add shared library support for FR-V FDPIC ABI:
268 * Makefile.in (solib-frv.o): Add dependencies.
269 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
270 New functions.
271 (frv_push_dummy_call): Add support for FDPIC ABI.
272 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
273 for FDPIC ABI.
274 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
275 (frv_fdpic_find_canonical_descriptor): Declare.
276 * solib-frv.c: New file.
277 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
278 * config/frv/tm-frv.h (solib.h): Include.
279
280 2004-03-12 Kevin Buettner <kevinb@redhat.com>
281
282 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
283 (frv-tdep.o): Update dependencies.
284 * frv-tdep.h: New file.
285 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
286 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
287 constants.
288 (struct gdbarch_tdep): Add new member ``frv_abi''.
289 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
290 functions.
291 (new_variant): Set ``frv_abi'' field.
292 (gdb_arch_init): Detect FDPIC executables.
293
294 2004-03-12 Mark Kettenis <kettenis@gnu.org>
295
296 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
297 wrapper.
298
299 2004-03-11 Andrew Cagney <cagney@redhat.com>
300
301 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
302
303 2004-03-11 Kevin Buettner <kevinb@redhat.com>
304
305 * solist.h (master_so_list): New function.
306 * solib.c (master_so_list): Likewise.
307 * solib-svr4.c (enable_break): Iterate over so_list entries
308 obtained from master list instead of entries obtained directly
309 via svr4_current_sos().
310
311 2004-03-10 Ben Elliston <bje@gnu.org>
312
313 * MAINTAINERS: Update my mail address.
314
315 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
316
317 * remote-m32r-sdi.c: Support hardware watchpoint.
318
319 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
320
321 * user-regs.c: Update copyright years.
322 (struct user_regs): Rename to gdb_user_regs.
323 (append_user_reg, builtin_user_regs, user_regs_init)
324 (user_reg_add, user_reg_map_name_to_regnum)
325 (usernum_to_user_reg): Update.
326
327 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
328
329 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
330 (skip_children): New functions.
331 (locate_pdi_sibling): Call skip_children.
332
333 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
334
335 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
336 * gdbtypes.c (check_typedef): Update comments.
337
338 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
339
340 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
341 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
342 pointer. Update comment about comp_unit_head.
343 (struct abbrev_info): Shorten two int flags.
344 (dwarf_alloc_abbrev): Take a CU argument.
345 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
346 each time through the loop. Update cleanup argument.
347 (psymtab_to_symtab_1): Update cleanup call.
348 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
349 abbrev_obstack.
350 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
351 Just call obstack_free and clear the pointer.
352
353 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
354
355 * infrun.c (handle_inferior_event): Remove short-circuit code for
356 events in a different thread.
357
358 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
359
360 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
361 print the whole transfer.
362 (initialize_targets): Update description of "set debug target".
363
364 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
365
366 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
367
368 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
369
370 * MAINTAINERS (write after approval): Add myself.
371
372 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
373
374 * sh-tdep.c (sh_print_registers_info): Use for loop.
375 Don't skip multiple registers when a float register is encountered.
376
377 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
378
379 Fix PR tdep/1291.
380 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
381 to official SH documentation.
382
383 2004-03-07 Andrew Cagney <cagney@redhat.com>
384
385 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
386 unused function.
387
388 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
389
390 * arm-tdep.c (thumb_get_next_pc): Handle BX.
391 (arm_get_next_pc): Handle BX and BLX.
392
393 2004-03-07 Andrew Cagney <cagney@redhat.com>
394
395 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
396 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
397 HPPA_SP_REGNUM.
398 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
399 (hppa_target_read_fp): Delete.
400 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
401 register_virtual_size, max_register_raw_size,
402 max_register_virtual_size, register_byte, register_size,
403 target_read_fp, fp_regnum, and register_bytes. Set register_type
404 instead of register_virtual_type.
405 (hppa32_register_type, hppa64_register_type): Replace
406 hppa32_register_virtual_type and hppa64_register_virtual_type.
407 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
408 (HPPA_FP_REGNUM): Define.
409
410 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
411
412 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
413 (pa_do_registers_info): Delete.
414 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
415 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
416 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
417
418 * infcall.c (legacy_push_dummy_code): Delete #ifdef
419 GDB_TARGET_IS_HPPA code.
420 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
421 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
422 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
423 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
424 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
425 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
426 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
427 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
428 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
429 (hppa_frameless_function_invocation, hppa64_store_return_value)
430 (hppa_store_struct_return, hppa64_extract_return_value)
431 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
432 (hppa32_call_dummy_length, hppa64_call_dummy_length)
433 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
434 (find_proc_framesize, deposit_21, restore_pc_queue)
435 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
436 (rp_saved, pc_in_linker_stub): Delete.
437
438 Unconditionally enable 64-bit frame and ABI code.
439 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
440 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
441 push_dummy_frame, fix_call_dummy, push_arguments,
442 call_dummy_location, extract_return_value, use_struct_convention,
443 store_return_value, store_struct_return, saved_pc_after_call,
444 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
445 frame_chain, frame_chain_valid, frameless_function_invocation,
446 frame_saved_pc, and pop_frame.
447
448 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
449 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
450 (hppa_gdbarch_init): Do not set PC_REGNUM.
451
452 2004-03-06 Mark Kettenis <kettenis@gnu.org>
453
454 * config/alpha/tm-fbsd.h: Remove file.
455 * config/alpha/fbsd.mt: Tweak comment.
456 (TM_FILE): Set to tm-alpha.h.
457
458 2004-03-05 Andrew Cagney <cagney@redhat.com>
459
460 * infrun.c (step_over_function): When non-legacy code, and no
461 step_frame_id, use the unwinder to get the caller's frame ID.
462
463 2004-03-05 Mark Kettenis <kettenis@gnu.org>
464
465 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
466 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
467 bfd_arch_unknown. Adjust comment.
468
469 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
470 * i386obsd-tdep.c: Correct spelling in comment.
471 * i386nbsd-tdep.c: Correct spelling in comment.
472 * sparc-tdep.c: Correct spelling in comments.
473
474 2004-03-05 David Carlton <carlton@kealia.com>
475
476 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
477 bug.
478
479 2004-03-05 Mark Kettenis <kettenis@gnu.org>
480
481 * sparc-tdep.c: Fix typo in comment.
482
483 2004-03-04 J. Brobecker <brobecker@gnat.com>
484
485 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
486
487 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
488
489 * dwarf2read.c: Add comment describing memory lifetimes.
490 (struct dwarf2_pinfo): Update comment.
491 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
492 (read_enumeration, new_symbol): Don't use obsavestring.
493
494 2004-03-04 Mark Kettenis <kettenis@gnu.org>
495
496 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
497 instead of amd64_fill_fxsave.
498 * amd64bsd-nat.c (store_inferior_registers): Likewise.
499 * amd64fbsd-nat.c (fill_fpregset): Likewise.
500
501 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
502 Reorganize code a bit.
503
504 2004-03-04 Orjan Friberg <orjanf@axis.com>
505
506 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
507 when the frame pointer is pushed. Don't set the frame pointer's
508 address on the stack unless it's actually located there.
509 Set the SRP's address on the stack correctly when the PC is still in
510 the prologue.
511 (cris_return_value): New function.
512 (cris_gdbarch_init): Clear deprecated store_return_value,
513 extract_return_value.
514
515 2004-03-02 Jim Blandy <jimb@redhat.com>
516
517 * stabsread.c (reg_value_complaint): The maximum register number
518 is one less than the number of registers.
519
520 2004-03-02 Andrew Cagney <cagney@redhat.com>
521
522 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
523 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
524 trailing comma and redundant assignment of I386_ST0_REGNUM.
525 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
526 32-bit segment registers.
527
528 2004-03-01 Andrew Cagney <cagney@redhat.com>
529
530 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
531 use frame_relative_level and get_next_frame.
532
533 2004-02-29 Andrew Cagney <cagney@redhat.com>
534
535 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
536 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
537 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
538 Delete macro.
539
540 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
541
542 * inflow.c (terminal_inferior): Don't give up the terminal if we
543 previously couldn't get the inferior's terminal state.
544
545 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
546
547 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
548 PC_REGNUM.
549
550 2004-02-28 Andrew Cagney <cagney@redhat.com>
551
552 * NEWS: Refer to GDB 6.1.
553 * README: Refer to GDB 6.1.
554 * PROBLEMS: Refer to GDB 6.1.
555
556 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
557
558 * thread-db.c (disable_thread_signals): Remove unused function.
559
560 2004-02-28 Mark Kettenis <kettenis@gnu.org>
561
562 * amd64-nat.c: Include "gdb_string.h".
563 (amd64_collect_native_gregset): Zero-extend the 32-bit
564 general-purpose registers and %eip.
565
566 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
567 * amd64-tdep.c (amd64_collect_fxsave): New function.
568 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
569
570 * i387-tdep.h: Update copyright year.
571 (i387_collect_fxsave): New prototype.
572 * i387-tdep.c: Update copyright year.
573 (i387_collect_fxsave): New function containing most of the code
574 from i387_fill_fxsave.
575 (i387_fill_fxsave): Call i387_collect_fxsave.
576
577 2004-02-28 Andrew Cagney <cagney@redhat.com>
578
579 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
580 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
581
582 2004-02-28 Mark Kettenis <kettenis@gnu.org>
583
584 * amd64-tdep.c (amd64_frame_cache): Fix comment.
585
586 2004-02-28 Andrew Cagney <cagney@redhat.com>
587
588 * utils.c: Use "", instead of <>, to include readline.
589 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
590 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
591 * source.c, solib.c, exec.c, event-top.c: Ditto.
592 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
593 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
594 * Makefile.in: Update all dependencies.
595 (readline_tilde_h, readline_history_h): Define.
596 (readline_headers): Delete.
597
598 2004-02-28 Mark Kettenis <kettenis@gnu.org>
599
600 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
601 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
602 "config/i386/tm-lx64.h".
603
604 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
605 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
606 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
607
608 2004-02-28 Andrew Cagney <cagney@redhat.com>
609
610 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
611
612 * breakpoint.c (_initialize_breakpoint): Use
613 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
614 Add help to show command.
615
616 2004-02-28 Mark Kettenis <kettenis@gnu.org>
617
618 * i386-nat.c: Reformat to be closer to coding standards.
619 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
620 `retval'. Make variables `align' and `size' local to while-loop.
621 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
622 (_initialize_i386_nat): New prototype.
623
624 * tui/tui.c: Include <readline/readline.h> instead of
625 "readline/readline.h". Include it after <term.h> and
626 "gdb_curses.h".
627
628 2004-02-27 Andrew Cagney <cagney@redhat.com>
629
630 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
631 the new frame unwind code.
632 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
633 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
634 PCOQ_HEAD_REGNUM.
635
636 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
637 "return_value" and "push_dummy_call".
638 (hppa32_use_struct_convention): Delete unused function.
639 (hppa32_store_return_value): Delete unused function.
640 (hppa32_extract_return_value): Delete unused function.
641 (hppa32_stack_align): Delete function.
642
643 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
644
645 * coffread.c (enter_linenos): Don't let rawptr reference memory
646 outside linetab[]'s limits.
647
648 2004-02-27 Andrew Cagney <cagney@redhat.com>
649
650 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
651 inferior stack space - the stack needs to grow upwards.
652 (hppa32_frame_align): New function.
653 (hppa64_frame_align): Replace hppa_frame_align.
654 (hppa_gdbarch_init): Update.
655
656 2004-02-26 Orjan Friberg <orjanf@axis.com>
657
658 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
659 (dwarf2-frame.h): Include.
660 (enum cris_regnums): New enum CRIS_FP_REGNUM.
661 Remove static variables related to ABI setting.
662 (struct gdbarch_tdep): Remove cris_abi member.
663 (struct frame_extra_info): Remove.
664 (cris_unwind_cache, stack_item): New structs.
665 (cris_frame_unwind, cris_frame_base): New variables.
666 (push_stack_item, pop_stack_item)
667 (cris_frame_unwind_cache, cris_frame_this_id)
668 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
669 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
670 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
671 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
672 (cris_reg_struct_has_addr): New functions.
673 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
674 (cris_frame_saved_pc, cris_saved_pc_after_call,
675 (cris_store_struct_return, cris_frameless_function_invocation)
676 (cris_pop_frame, cris_skip_prologue_main)
677 (cris_abi_original_store_return_value)
678 (cris_abi_v2_store_return_value)
679 (cris_abi_original_extract_return_value)
680 (cris_abi_v2_extract_return_value)
681 (cris_abi_original_reg_struct_has_addr)
682 (cris_abi_v2_reg_struct_has_addr)
683 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
684 (cris_push_return_address, cris_abi_update): Remove.
685 (_initialize_cris_tdep): Remove ABI command.
686 (cris_dump_tdep): Ditto.
687 (cris_gdbarch_init): Remove ABI command.
688 Set store_return_value, extract_return_value, push_dummy_code,
689 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
690 frame_unwind_append_sniffer, frame_base_set_default.
691 Clear deprecated init_frame_pc, push_arguments, store_return_value,
692 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
693 sizeof_call_dummy_words, get_saved_register, push_return_address,
694 pop_frame, store_struct_return, frame_init_saved_regs,
695 init_extra_frame_info, frameless_function_invocation, frame_chain,
696 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
697 dummy_write_sp.
698
699 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
700
701 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
702 * valprint.c (print_hex_chars): Change from static to external.
703 (print_char_chars): New function.
704 * printcmd.c (print_scalar_formatted): For integer and enum types
705 that are longer than LONGEST, perform processing via appropriate
706 print_*_chars routines.
707
708 2004-02-26 Andrew Cagney <cagney@redhat.com>
709
710 * Makefile.in: Update dependencies.
711 Changes from Ulrich Weigand,
712 * s390-tdep.c: Include "dwarf2-frame.h".
713 (s390_dwarf2_frame_init_reg): New function.
714 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
715 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
716
717 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
718
719 * breakpoint.c (pending_break_support): New setting variable.
720 (break_command_1): Account for pending_break_support setting
721 when creating pending breakpoints.
722 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
723 (_initialize_breakpoint): Add "set breakpoint pending" and
724 "show breakpoint pending" commands.
725
726 2004-02-26 Andrew Cagney <cagney@redhat.com>
727
728 Fix PR i18n/1570.
729 * charset.c (backslashable, backslashed, represented): Remove 'e'
730 from list of escaped characters, not part of ISO-C.
731
732 2004-02-25 J. Brobecker <brobecker@gnat.com>
733
734 From Peter Schauer <schauer@pdf.de>:
735 * tui/tui.c: Move system header includes after local includes.
736 Fixes a build failure on solaris systems.
737
738 2004-02-25 J. Brobecker <brobecker@gnat.com>
739
740 * configure.in: Refine the previous change.
741 * configure: Regenerate.
742
743 2004-02-25 Mark Kettenis <kettenis@gnu.org>
744
745 * amd64-tdep.h: Renamed from x86-64-tdep.h.
746 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
747 "amd64-tdep.h" instead of "x86-64-tdep.h".
748 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
749 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
750 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
751 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
752 and "x86-64-tdep.c".
753 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
754 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
755 and "x86-64-tdep.c".
756 * amd64bsd-nat.c: Update copyright year.
757 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
758 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
759 "x86-64-tdep.h".
760 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
761 "x86-64-tdep.h".
762 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
763 "x86-64-tdep.h".
764 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
765 "x86-64-tdep.h".
766 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
767 "x86-64-tdep.h".
768 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
769 "x86-64-tdep.h".
770 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
771 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
772 * Makefile.in (amd64_linux_tdep_h): Renamed from
773 x86_64_linux_tdep_h.
774 (amd64_tdep_h): Renamed from x86_64_tdep_h.
775 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
776 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
777 (amd64obsd-tdep.o): Update dependencies.
778 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
779 dependencies.
780 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
781 dependencies.
782 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
783 amd64-linux-nat.c amd64-linux-tdep.c.
784 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
785 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
786 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
787 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
788 amd64-tdep.o and amd64-linux-tdep.o.
789 (TM_FILE): Set to tm-linux64.h.
790 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
791 (NAT_FILE): Set to nm-linux64.h.
792 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
793 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
794 amd64-tdep.o.
795 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
796 amd64-tdep.o.
797 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
798 amd64-tdep.o.
799
800 2004-02-25 Roland McGrath <roland@redhat.com>
801
802 * remote.c (remote_protocol_qPart_auxv): New variable.
803 (init_all_packet_configs): Initialize it.
804 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
805 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
806 (show_remote_cmd): Call it.
807 (_initialize_remote): Initialize commands.
808 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
809 service TARGET_OBJECT_AUXV requests.
810
811 2004-02-25 J. Brobecker <brobecker@gnat.com>
812
813 * configure.in: Make sure that the wborder function is available.
814 Otherwise, search for it in the cur_colr library.
815 * configure: Regenerate.
816
817 2004-02-25 Andrew Cagney <cagney@redhat.com>
818
819 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
820
821 2004-02-25 Mark Kettenis <kettenis@gnu.org>
822
823 * config/i386/tm-x86-64linux.h: Tweak comments.
824
825 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
826
827 * MAINTAINERS: Add self to write-after-approval list.
828
829 2004-02-25 Andrew Cagney <cagney@redhat.com>
830
831 PR cli/1566. Problem found, and fix suggested by David Allan.
832 * cli/cli-script.c (execute_control_command): Unconditionally
833 install a cleanup. Default "ret" to "invalid_control". Use
834 "break" instead of "return" to escape from the switch.
835
836 2004-02-24 J. Brobecker <brobecker@gnat.com>
837
838 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
839 with the lines macro defined in term.h on AiX.
840 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
841 a collision with the label_width macro defined in term.h on AiX.
842
843 2004-02-23 David Mosberger <davidm@hpl.hp.com>
844
845 Committed by Kevin Buettner <kevinb@redhat.com>.
846
847 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
848 * ia64-tdep.c (ia64_write_pc): Make it a global function.
849 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
850 instead of ia64_write_pc().
851 * ia64-linux-tdep.c (regcache.h): Include.
852 (ia64_linux_write_pc): New function.
853
854 2004-02-23 Roland McGrath <roland@redhat.com>
855
856 * auxv.c (info_auxv_command): Fix typos in error messages.
857
858 2004-02-23 Mark Kettenis <kettenis@gnu.org>
859
860 * x86-64-tdep.h: Tweak comment.
861 (enum amd64_regnum): New.
862 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
863 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
864 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
865 (X86_64_XMM1_REGNUM): Removed.
866 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
867 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
868 prototypes for renamed functions.
869 * x86-64-tdep.c: Fix typo.
870 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
871 register numbers.
872 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
873 Use constants from `enum amd64_regnum' for register numbers.
874 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
875 (amd64_analyze_prologue, amd64_frame_cache,
876 amd64_sigtramp_frame_cache): Use constants from `enum
877 amd64_regnum' for register numbers.
878 (amd64_supply_fpregset): Adjust for renamed functions.
879 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
880 `enum amd64_regnum' for register numbers.
881 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
882 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
883 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
884 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
885 (amd64_linux_fill_gregset): Adjust for renamed macros.
886 (fetch_core_registers): Adjust for renamed functions.
887 (amd64_linux_init_abi): Adjust for renamed functions.
888 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
889 renamed functions.
890 * amd64-nat.c: Adjust for renamed macros.
891 * amd64bsd-nat.c (fetch_inferior_registers)
892 (store_inferior_registers): Use constants from `enum amd64_regnum'
893 for register numbers. Adjust for renamed variables.
894 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
895 renamed variables.
896 (_initialize_amd64fbsd_nat): Use constants from `enum
897 amd64_regnum' for register numbers.
898 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
899 `enum amd64_regnum' for register numbers.
900 (amd64fbsd_init_abi): Adjust for renamed functions.
901 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
902 `enum amd64_regnum' for register numbers.
903 (amd64nbsd_init_abi): Adjust for renamed functions.
904 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
905 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
906 `enum amd64_regnum' for register numbers.
907 (amd64obsd_init_abi): Adjust for renamed functions.
908 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
909
910 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
911
912 * breakpoint.c (print_one_breakpoint): Do not output spaces
913 after printing <PENDING> for a pending breakpoint.
914
915 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
916
917 * printcmd.c (print_scalar_formatted): Initialize val_long
918 to remove compiler warning message.
919
920 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
921
922 * defs.h (nquery, yquery): New prototypes.
923 * breakpoint.c (break_command_1): Use new nquery interface.
924 * utils.c (defaulted_query, nquery, yquery): New functions.
925
926 2004-02-23 Andrew Cagney <cagney@redhat.com>
927
928 * hppa-tdep.c (hppa_frame_align): New function.
929 (hppa32_push_dummy_call): New function.
930 (hppa64_push_dummy_call): New function.
931 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
932 disabled.
933
934 * infcall.c (legacy_push_dummy_code): Don't call deprecated
935 FIX_CALL_DUMMY when push_dummy_call is available.
936 (call_function_by_hand, push_dummy_code): Ditto.
937
938 2004-02-22 Andrew Cagney <cagney@redhat.com>
939
940 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
941 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
942 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
943 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
944 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
945 call_dummy_location to ON_STACK.
946
947 2004-02-22 Mark Kettenis <kettenis@gnu.org>
948
949 * x86-64-linux-tdep.c: Tweak comment.
950 (amd64_linux_supply_gregset): Renamed from
951 x86_64_linux_supply_gresget.
952 (amd64_linux_fill_gregset): Renamed from
953 x86_64_linux_fill_gregset.
954 (fetch_core_registers): Adjust for renamed functions.
955 (amd64_core_fns): Renamed from x86_64_core_fns.
956 (amd64_linux_sigtramp_start): Renamed from
957 x86_64_linux_sigtramp_start.
958 (amd64_linux_pc_in_sigtramp): Renamed from
959 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
960 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
961 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
962 (amd64_linux_sigcontext_addr): Renamed from
963 x86_64_linux_sigcontext_addr.
964 (amd64_linux_sc_reg_offset): Renamed from
965 x86_64_linux_sc_reg_offset.
966 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
967 Adjust for renamed functions and variables.
968 (_initialize_amd64_linux_tdep): Renamed from
969 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
970 variables.
971 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
972 Adjust for renamed functions.
973
974 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
975 from x86_64_linux_gregset64_reg_offset.
976 (amd64_linux_gregset32_reg_offset): Rename from
977 x86_64_linux_gregset64_reg_offset.
978 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
979 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
980 (amd64_linux_dr_set_control): Renamed from
981 x86_64_linux_dr_set_control. Adjust for renamed functions.
982 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
983 Adjust for renamed functions.
984 (amd64_linux_dr_reset_addr): Renamed from
985 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
986 (amd64_linux_dr_get_status): Renamed from
987 x86_64_linux_dr_get_status. Adjust for renamed functions.
988 (_initialize_amd64_linux_nat): Renamed from
989 _initialize_x86_64_linux_nat. Adjust for renamed variables and
990 functions.
991 * config/i386/nm-x86-64linux.h: Update copyright year.
992 Adjust for renamed functions.
993
994 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
995 amd64fbsd_sigtramp_start.
996 (amd64fbsd_sigtramp_end_addr): Renamed from
997 amd64fbsd_sigtramp_end.
998 (amd64fbsd_init_abi): Adjust for renamed variables.
999 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
1000 variables.
1001 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
1002 amd64fbsd_sigtramp_start.
1003 (amd64fbsd_sigtramp_end_addr): Renamed from
1004 amd64fbsd_sigtramp_end.
1005
1006 2004-02-22 Andrew Cagney <cagney@redhat.com>
1007
1008 * hppa-tdep.c (hppa32_return_value): New function.
1009 (hppa64_return_value): New function.
1010 (hppa_gdbarch_init): Set return_value; keep disabled.
1011
1012 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
1013 struct-return and inferior function call methods.
1014
1015 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
1016 "frame-base.h".
1017 (struct hppa_frame_cache): Define.
1018 (hppa_frame_cache, hppa_frame_this_id): New functions.
1019 (hppa_frame_prev_register): New function.
1020 (hppa_frame_unwind, hppa_frame_base): New variables.
1021 (hppa_frame_unwind_sniffer): New function.
1022 (hppa_frame_base_address, hppa_unwind_pc): New function.
1023 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
1024 sniffer, and frame base sniffer; keep disabled.
1025 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
1026 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
1027
1028 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
1029 to predicates for "seriously old code".
1030
1031 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
1032 runtime if(0).
1033
1034 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
1035 unsigned.
1036 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
1037
1038 * config/pa/tm-hppa.h: Update copyright.
1039 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1040 (deprecated_init_frame_pc_default): Delete declaration.
1041 (hppa_frame_init_saved_regs): Delete declaration.
1042 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1043 * hppa-tdep.c: Include "arch-utils.h".
1044 (hppa_gdbarch_init): Set deprecated init_frame_pc
1045 and deprecated frame_init_saved_regs.
1046 (hppa_frame_init_saved_regs): Make static.
1047
1048 2004-02-22 Mark Kettenis <kettenis@gnu.org>
1049
1050 Remove old 386BSD support.
1051 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
1052 * configure.host: Remove i[34567]86-*-bsd*.
1053 * configure.tgt: Remove i[34567]86-*-bsd*.
1054 * i386b-nat.c: Removed.
1055 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
1056 (i386b-nat.o): Remove dependencies.
1057
1058 * config/i386/i386bsd.mh: Removed.
1059 * config/i386/i386bsd.mt: Removed.
1060 * config/i386/nm-i386bsd.h: Removed.
1061 * config/i386/tm-i386bsd.h: Removed.
1062 * config/i386/xm-i386bsd.h: Removed.
1063
1064 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
1065
1066 * amd64fbsd-tdep.c: Include "solib-svr4.h".
1067 (amd64fbsd_init_abi): Set link map offsets.
1068 * amd64nbsd-tdep.c: Include "slib-svr4.h".
1069 (amd64nbsd_init_abi): Set link map offsets.
1070 * amd64obsd-tdep.c: Include "solib-svr4.h".
1071 (amd64obsd_init_abi): Set link map offsets.
1072 * i386fbsd-tdep.c: Include "solib-svr4.h".
1073 (i386fbsd_init_abi): Set link map offsets.
1074 * i386nbsd-tdep.c: Include "solib-svr4.h".
1075 (i386nbsdelf_init_abi): Set link map offsets.
1076 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
1077 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
1078 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
1079 solib-legacy.o and core-aout.o. Reformat.
1080 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
1081 solib-svr4.o, solib-legacy.o. Reformat.
1082 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
1083 * config/i386/nbsdelf.mh: Reformat.
1084 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
1085 solib-svr4.o, solib-legacy.o and corelow.o.
1086 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
1087 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
1088 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
1089 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
1090 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
1091 (TM_FILE): Set to tm-fbsd.h.
1092 * config/i386/nbsd.mt (TDEPFILES): Reformat.
1093 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
1094 solib-svr4.o.
1095 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
1096 solib-svr4.o.
1097 (TM_FILE): Set to nm-nbsd.h.
1098 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
1099 Simplify shared library support. Don't include "elf/common.h".
1100 (SVR4_SHARED_LIBS): Don't define.
1101 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
1102 "solib.h".
1103 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
1104 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
1105 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
1106 Don't include "i386/tm-i386.h". Include "solib.h".
1107 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
1108 Don't include "i386/tm-i386.h".
1109 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
1110 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
1111 Include "i386/xm-i386.h".
1112 (HOST_LONG_DOUBLE_FORMAT): Remove.
1113
1114 Fix OpenBSD/i386 sigtramp recognition.
1115 * i386-tdep.h: Update copyright year.
1116 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
1117 (i386bsd_sigtramp_end): New prototypes.
1118 (i386fbsd_sigtramp_start_addr): Renamed from
1119 i386fbsd_sigtramp_start.
1120 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
1121 (i386obsd_sigtramp_start_addr): Renamed from
1122 i386obsd_sigtramp_start.
1123 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
1124 * i386bsd-tdep.c: Update copyright year.
1125 (i386bsd_pc_in_sigtramp): Make public.
1126 * i386fbsd-nat.c: Update copyright year.
1127 (_initialize_i386fbsd_nat): Adjust for renamed variables.
1128 * i386fbsd-tdep.c: Update copyright year.
1129 (i386fbsd_sigtramp_start_addr): Renamed from
1130 i386fbsd_sigtramp_start.
1131 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
1132 (i386fbsdaout_init_abi): Adjust for renamed variables.
1133 * i386obsd-nat.c: Update copyright year.
1134 (_initialize_i386obsd_nat): Adjust for renamed variables.
1135 * i386obsd-tdep.c: Include "target.h".
1136 (i386obsd_page_size): New variable.
1137 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
1138 (i386obsd_sigtramp_end): New functions.
1139 (i386obsd_sigtramp_start_addr): Renamed from
1140 i386obsd_sigtramp_start.
1141 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
1142 (i386obsd_init_abi): Adjust for renamed variables. Set
1143 pc_in_sigtramp, sigtramp_start and sigtramp_end.
1144 * Makefile.in (i386obsd-tdep.o): Update dependencies.
1145
1146 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
1147 trampoline change in OpenBSD kernel.
1148
1149 * amd64-nat.c: Update copyright year.
1150 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
1151 architecture from REGCACHE.
1152
1153 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
1154 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
1155
1156 2004-02-21 Mark Kettenis <kettenis@gnu.org>
1157
1158 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
1159 i[34567]86-*-openbsd3.[0-3].
1160 * config/i386/obsdaout.mh: New file.
1161
1162 * config/i386/obsd.mh (MH_FLAGS): Remove.
1163
1164 Fix PR build/1549.
1165 * i386obsd-tdep.c: Update copyright years. Include
1166 "solib-svr4.h".
1167 (i386obsd_init_abi): Don't set regset_from_core_section here.
1168 (i386obsd_aout_init_abi): New function. Set
1169 regset_from_core_section here.
1170 (i386obsd_elf_init_abi): New function.
1171 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
1172 * Makefile.in (i386obsd-tdep.o): Update dependecies.
1173 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1174 (TM_FILE): Set to tm-nbsd.h.
1175
1176 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
1177 solib-sunos.o.
1178
1179 * solib-svr4.h: Update copyright year.
1180 (svr4_ilp32_fetch_link_map_offsets)
1181 (svr4_lp64_fetch_link_map_offsets): New prototype.
1182 * solib-svr4.c: Update copyright year.
1183 (svr4_ilp32_fetch_link_map_offsets)
1184 (svr4_lp64_fetch_link_map_offsets): New function.
1185
1186 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
1189 to the partial symbol table.
1190
1191 2004-02-20 J. brobecker <brobecker@gnat.com>
1192
1193 * PROBLEMS: Add description of problem documented under gdb/1560.
1194
1195 2004-02-20 Mark Kettenis <kettenis@gnu.org>
1196
1197 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
1198 comments.
1199 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
1200 functions.
1201 (amd64obsd_init_abi): Reorder initializations. Use
1202 amd64obsd_r_reg_offset to initialize the general-purpose register
1203 set details. Set regset_from_core_section.
1204 (_initialize_amd64obsd_tdep): Rename from
1205 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
1206 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
1207 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
1208
1209 * NEWS (New native configurations): Mention OpenBSD/alpha.
1210 * configure.tgt: Add alpha*-*-openbsd*.
1211 * configure.host: Add alpha*-*-openbsd*.
1212 * alphanbsd-tdep.c: Update copyright year.
1213 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
1214
1215 2004-02-20 Andrew Cagney <cagney@redhat.com>
1216
1217 Fix PR tdep/1372.
1218 * configure.tgt: Delete target "none-*-*".
1219 * configure.host: Delete host "none-*-*".
1220 * config/none/none.mh: Delete file.
1221 * config/none/none.mt: Delete file.
1222 * config/none/xm-none.h: Delete file.
1223 * config/none/tm-none.h: Delete file.
1224 * config/none/nm-none.h: Delete file.
1225
1226 2004-02-19 Fred Fish <fnf@redhat.com>
1227
1228 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
1229 cache->uses_fp prior to setting it.
1230
1231 2004-02-19 Fred Fish <fnf@redhat.com>
1232
1233 Fix for PR breakpoint/1558.
1234 * sh-tdep.c (IS_JSR): New macro.
1235 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
1236
1237 2004-02-19 Jim Blandy <jimb@redhat.com>
1238
1239 * findvar.c (value_from_register): Doc fix.
1240
1241 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
1242
1243 * printcmd.c (print_scalar_formatted): Do not check for sizeof
1244 type being greater than sizeof of host's LONGEST. Always use
1245 unpack_long() unless format 'f' chosen.
1246
1247 2004-02-19 Joel Brobecker <brobecker@gnat.com>
1248
1249 Committed by Elena Zannoni <ezannoni@redhat.com>
1250
1251 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
1252 contains a symbol wich is the best, non-exact match for the given
1253 pc. Update comments.
1254
1255 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
1256
1257 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
1258 macro, which was part of the now removed Mach 3 port.
1259 * utils.c (request_quit): Ditto.
1260
1261 2004-02-18 Mark Kettenis <kettenis@gnu.org>
1262
1263 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
1264 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
1265
1266 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1267
1268 Committed by Mark Kettenis <kettenis@gnu.org>.
1269
1270 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
1271 Define.
1272
1273 2004-02-18 Andrew Cagney <cagney@redhat.com>
1274
1275 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
1276 CONFIG_INSTALL and CONFIG_UNINSTALL.
1277 * configure: Re-generate.
1278 * interps.h (INTERP_TUI): Define.
1279 * Makefile.in: Update dependencies.
1280 (TUI): New macro.
1281 (tui-main.o): Specify dependencies.
1282 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
1283 * tui/tui-main.c: New file.
1284
1285 2004-02-18 Mark Kettenis <kettenis@gnu.org>
1286
1287 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
1288 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
1289 dependencies.
1290 * configure.host: Add x86_64-*-openbsd*.
1291 * configure.tgt: Add x86_64-*-openbsd*.
1292 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
1293
1294 * tui/tui.c: Don't include <malloc.h>.
1295
1296 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
1297 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
1298 amd64nbsd-tdep.c.
1299
1300 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
1301 static. Remove extraneous whitespace.
1302 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
1303 static.
1304
1305 2004-02-17 Jim Blandy <jimb@redhat.com>
1306
1307 * findvar.c (value_from_register): Doc fix.
1308
1309 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1310
1311 Committed by Jim Blandy <jimb@redhat.com>.
1312
1313 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
1314 CORE_ADDR as type for selectors. Correct types for GNU run time
1315 message lookup function to use double indirection.
1316 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
1317 * objc-lang.h (lookup_child_selector): Adapt prototype.
1318
1319 * s390-nat.c (SUBOFF): New macro.
1320 (supply_gregset, fill_gregset): Use it to handle debugging
1321 of 32-bit exectuables running under a 64-bit kernel.
1322 * s390-tdep.c: Include "solib-svr4.h".
1323 (s390_svr4_fetch_link_map_offset): New function.
1324 (s390x_svr_fetch_link_map_offset): Likewise.
1325 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
1326 * Makefile.in (s390-tdep.o): Update dependencies.
1327
1328 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
1329 "frame-unwind.h".
1330 (s390_readinstruction): Reformat. Use read_memory_nobpt.
1331 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
1332 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
1333 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
1334 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
1335 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
1336 S390_SIGNAL_FRAMESIZE,
1337 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
1338 (struct frame_extra_info): Remove.
1339 (s390_memset_extra_info): Remove.
1340 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
1341 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
1342 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
1343 (is_rse): Renamed to ...
1344 (is_rsy): ... this. Support long displacements.
1345 (is_rxe): Renamed to ...
1346 (is_rxy): ... this. Support long displacements.
1347 (compute_x_addr): Support long displacements.
1348 (struct s390_prologue_data): New data type.
1349 (s390_on_stack): Change API to use struct s390_prologue_data.
1350 (s390_store): Reimplement.
1351 (s390_load): New function.
1352 (s390_get_signal_frame_info): Remove.
1353 (s390_get_frame_info): Remove, replace by ...
1354 (s390_analyze_prolog): ... this new function.
1355 (s390_check_function_end): Remove.
1356 (s390_function_start): Remove.
1357 (s390_frameless_function_invokation): Remove.
1358 (s390_is_sigreturn): Remove.
1359 (s390_init_frame_pc_first): Remove.
1360 (s390_init_frame_extra_info): Remove.
1361 (s390_frame_init_saved_regs): Remove.
1362 (s390_frame_saved_pc_nofix): Remove.
1363 (s390_frame_saved_pc): Remove.
1364 (s390_frame_chain): Remove.
1365 (s390_fp_regnum, s390_read_fp): Remove.
1366 (s390_pop_frame_regular, s390_pop_frame): Remove.
1367 (s390_saved_pc_after_call): Remove.
1368 (s390_skip_prologue): Reimplement.
1369 (s390_in_function_epilogue_p): Support long displacements.
1370 (struct s390_unwind_cache): New data structure.
1371 (s390_frame_unwind_cache): New function.
1372 (s390_prologue_frame_unwind_cache): Likewise.
1373 (s390_backchain_frame_unwind_cache): Likewise.
1374 (s390_frame_this_id, s390_frame_prev_register): Likewise.
1375 (s390_frame_unwind): Define.
1376 (s390_frame_sniffer): New function.
1377 (struct s390_pltstub_unwind_cache): New data structure.
1378 (s390_pltstub_frame_unwind_cache): New function.
1379 (s390_pltstub_frame_this_id): Likewise.
1380 (s390_pltstub_frame_prev_register): Likewise.
1381 (s390_pltstub_frame_unwind): Define.
1382 (s390_pltstub_frame_sniffer): New function.
1383 (struct s390_sigtramp_unwind_cache): New data structure.
1384 (s390_sigtramp_frame_unwind_cache): New function.
1385 (s390_sigtramp_frame_this_id): Likewise.
1386 (s390_sigtramp_frame_prev_register): Likewise.
1387 (s390_sigtramp_frame_unwind): Define.
1388 (s390_sigtramp_frame_sniffer): New function.
1389 (s390_frame_base_address, s390_local_base_address): New functions.
1390 (s390_frame_base): Define.
1391 (s390_unwind_pc, s390_unwind_sp): New function.
1392 (s390_push_dummy_call): Use new frame base location.
1393 (s390_unwind_dummy_id): Likewise.
1394 (s390_gdbarch_init): Remove calls to:
1395 set_gdbarch_frameless_function_invocation,
1396 set_gdbarch_deprecated_init_frame_pc,
1397 set_gdbarch_deprecated_frame_chain,
1398 set_gdbarch_deprecated_frame_init_saved_regs,
1399 set_gdbarch_deprecated_pop_frame,
1400 set_gdbarch_deprecated_init_extra_frame_info,
1401 set_gdbarch_deprecated_init_frame_pc_first,
1402 set_gdbarch_deprecated_target_read_fp,
1403 set_gdbarch_deprecated_frame_saved_pc,
1404 set_gdbarch_deprecated_saved_pc_after_call,
1405 set_gdbarch_deprecated_fp_regnum.
1406 Add calls to:
1407 set_gdbarch_in_solib_call_trampoline,
1408 frame_unwind_append_sniffer,
1409 frame_base_set_default,
1410 set_gdbarch_unwind_pc,
1411 set_gdbarch_unwind_sp.
1412 * Makefile.in (s390-tdep.o): Update dependencies.
1413
1414 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
1415 (S390_STACK_FRAME_OVERHEAD): Remove.
1416 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
1417 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
1418 (s390_promote_integer_argument): Remove.
1419 (s390_cannot_extract_struct_value_address): Remove.
1420 (s390_use_struct_convention, s390_store_struct_return): Remove.
1421 (s390_extract_return_value, s390_store_return_value): Remove.
1422 (s390_return_value_convention, s390_return_value): New functions.
1423 (is_float_singleton): Handle typedefs.
1424 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
1425 Remove, replace by ...
1426 (s390_function_arg_pass_by_reference, s390_function_arg_float,
1427 s390_function_arg_integer): ... these new functions.
1428 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
1429 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
1430 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
1431 Fill in tdep->abi.
1432 Remove calls to:
1433 set_gdbarch_deprecated_store_struct_return,
1434 set_gdbarch_deprecated_extract_return_value,
1435 set_gdbarch_deprecated_store_return_value,
1436 set_gdbarch_use_struct_convention,
1437 set_gdbarch_extract_struct_value_address,
1438 set_gdbarch_deprecated_pc_in_call_dummy,
1439 set_gdbarch_deprecated_push_arguments,
1440 set_gdbarch_deprecated_save_dummy_frame_tos,
1441 set_gdbarch_deprecated_push_return_address,
1442 set_gdbarch_deprecated_sizeof_call_dummy_words,
1443 set_gdbarch_deprecated_call_dummy_words,
1444 set_gdbarch_deprecated_dummy_write_sp.
1445 Add calls to:
1446 set_gdbarch_push_dummy_call,
1447 set_gdbarch_unwind_dummy_id,
1448 set_gdbarch_return_value.
1449
1450 * config/s390/nm-linux.h: Update comments.
1451 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
1452 (STOPPED_BY_WATCHPOINT): Redefine.
1453 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
1454 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
1455 (s390_stopped_by_watchpoint): Likewise.
1456 (watch_area_cnt): Remove.
1457 * s390-nat.c: Update comments.
1458 (watch_area): Remove typedef.
1459 Global replace watch_area by struct watch_area.
1460 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
1461 (s390_stopped_by_watchpoint): Remove pid argument,
1462 use s390_inferior_tid. Add short-cut for the no watchpoint case.
1463 (s390_fix_watch_points): Remove pid argument,
1464 use s390_inferior_tid. Recompute area spanned by watchpoints.
1465 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
1466 argument. Reimplement.
1467
1468 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
1469 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
1470 (FETCH_INFERIOR_REGISTERS): Define.
1471 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
1472 core-regset.o.
1473 * config/s390/s390x.mt: Remove.
1474 * config/s390/tm-s390.h: Remove.
1475 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
1476 (TARGET_ELF64): Remove.
1477 (SKIP_TRAMPOLINE_CODE): Do not undefine.
1478 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
1479 s390*-*-* case; always set gdb_target to s390.
1480 * regformats/reg-s390.dat: Remove control registers.
1481 * regformats/reg-s390x.dat: Likewise.
1482 * s390-tdep.h: New file.
1483 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
1484 Include "inferior.h" and "s390-tdep.h".
1485 Remove private definition of offsetof.
1486 (s390_register_u_addr): Remove.
1487 (regmap_gregset, regmap_fpregset): Define.
1488 (supply_gregset, fill_gregset): Reimplement.
1489 (supply_fpregset, fill_fpregset): Likewise.
1490 (s390_inferior_tid): New function.
1491 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
1492 (fetch_inferior_registers, store_inferior_registers): Likewise.
1493 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
1494 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
1495 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
1496 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
1497 (struct gdbarch_tdep): Define.
1498 (struct s390_register_info): Define.
1499 (s390_register_info): New variable.
1500 (s390_register_name): Reimplement.
1501 (s390_register_type): New function.
1502 (s390_register_raw_size, s390x_register_raw_size): Remove.
1503 (s390_cannot_fetch_register): Remove.
1504 (s390_register_byte): Remove.
1505 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
1506 (s390_dwarf_regmap): New variable.
1507 (s390_dwarf_reg_to_regnum): New function.
1508 (s390_stab_reg_to_regnum): Remove.
1509 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
1510 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
1511 (s390_convert_register_p): Likewise.
1512 (s390_register_to_value, s390_value_to_register): Likewise.
1513 (s390_register_reggroup_p): Likewise.
1514 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
1515 s390_gregset, s390x_gregset, s390_fpregset): New variables.
1516 (s390_supply_regset, s390_regset_from_core_section): New functions.
1517 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
1518 (S390_FPR_SIZE): Likewise.
1519 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
1520 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
1521 (S390_NUM_GPRS): Move here from tm-s390.h.
1522 (S390_NUM_FPRS): Likewise.
1523 (s390_in_function_epilogue_p): New function.
1524 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
1525 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
1526 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
1527 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
1528 Replace S390_FP_REGNUM by S390_SP_REGNUM.
1529 Remove calls to:
1530 set_gdbarch_deprecated_max_register_raw_size,
1531 set_gdbarch_deprecated_max_register_virtual_size,
1532 set_gdbarch_deprecated_register_byte,
1533 set_gdbarch_cannot_fetch_register,
1534 set_gdbarch_cannot_store_register,
1535 set_gdbarch_deprecated_register_size,
1536 set_gdbarch_deprecated_register_raw_size,
1537 set_gdbarch_deprecated_register_virtual_size,
1538 set_gdbarch_deprecated_register_virtual_type,
1539 set_gdbarch_deprecated_register_bytes.
1540 Add calls to:
1541 set_gdbarch_num_pseudo_regs,
1542 set_gdbarch_register_type,
1543 set_gdbarch_convert_register_p,
1544 set_gdbarch_register_to_value,
1545 set_gdbarch_value_to_register,
1546 set_gdbarch_register_reggroup_p,
1547 set_gdbarch_regset_from_core_section,
1548 set_gdbarch_pseudo_register_read,
1549 set_gdbarch_pseudo_register_write,
1550 set_gdbarch_in_function_epilogue_p.
1551 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
1552 (s390_tdep_h): New variable.
1553
1554 2004-02-17 Jim Blandy <jimb@redhat.com>
1555
1556 * findvar.c (value_from_register): If the type has no length, just
1557 return an acceptable value --- don't report an internal error.
1558
1559 * stabsread.c (read_type): If we find any type numbers that are
1560 forward references, complain if the references aren't resolved by
1561 the time we're finished reading.
1562 (cleanup_undefined_types): Make error message more appropriate for
1563 a complaint.
1564
1565 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
1566
1567 * Makefile.in (defs_h): Remove dependency on progress_h.
1568 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
1569 progress.h.
1570 * main.c (captured_main): Delete use of START_PROGRESS and
1571 END_PROGRESS.
1572
1573 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
1574
1575 * objfiles.c (terminate_minimal_symbol_table): Add back
1576 initialization of MSYMBOL_TYPE.
1577
1578 2004-02-17 David Mosberger <davidm@hpl.hp.com>
1579
1580 Committed by Andrew Cagney.
1581 * Makefile.in (ia64_tdep_h): New macro.
1582 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
1583 (ia64-tdep.o): Likewise.
1584 * ia64-tdep.h: New file.
1585 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
1586 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
1587 (ia64_aix_sigcontext_register_address): Likewise.
1588 (ia64_linux_getunwind_table): Delete declaration.
1589 * ia64-linux-tdep.c: Likewise.
1590
1591 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
1592
1593 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
1594 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
1595 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
1596
1597 2004-02-17 Andrew Cagney <cagney@redhat.com>
1598
1599 * symtab.c (skip_prologue_using_sal): New function.
1600 * symtab.h (skip_prologue_using_sal): Declare.
1601 * frv-tdep.c: Include "symtab.h".
1602 (skip_prologue_using_sal): Delete function.
1603 * mips-tdep.c (skip_prologue_using_sal): Delete function.
1604 * rs6000-tdep.c (refine_prologue_limit): Mention
1605 skip_prologue_using_sal.
1606 * ia64-tdep.c (refine_prologue_limit): Ditto.
1607 * Makefile.in: Update dependencies.
1608
1609 2004-02-16 Andrew Cagney <cagney@redhat.com>
1610
1611 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
1612 START_INFERIOR_TRAPS_EXPECTED.
1613 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
1614 START_INFERIOR_TRAPS_EXPECTED.
1615 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
1616 Delete macro.
1617 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
1618 macro, moved to "nm-osf.h". Update copyright.
1619 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
1620 update copyright.
1621
1622 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
1623 and function replacing FRAMELESS_FUNCTION_INVOCATION.
1624 * blockframe.c (legacy_frameless_look_for_prologue): Rename
1625 frameless_look_for_prologue.
1626 * frame.h (legacy_frameless_look_for_prologue): Rename
1627 frameless_look_for_prologue.
1628 * gdbarch.h, gdbarch.c: Re-generate.
1629 * sh64-tdep.c (sh64_gdbarch_init): Update.
1630 * sh-tdep.c (sh_gdbarch_init): Update.
1631 * s390-tdep.c (s390_gdbarch_init): Update.
1632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1633 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1634 * m68k-tdep.c (m68k_gdbarch_init): Update.
1635 (delta68_frame_args_address): Update.
1636 * m32r-tdep.c (m32r_gdbarch_init): Update.
1637 * hppa-tdep.c (hppa_gdbarch_init): Update.
1638 * h8300-tdep.c (h8300_gdbarch_init): Update.
1639 * frv-tdep.c (frv_gdbarch_init): Update.
1640 (frv_frameless_function_invocation): Update.
1641 * cris-tdep.c (cris_gdbarch_init): Update.
1642 (cris_frameless_function_invocation): Update.
1643 * avr-tdep.c (avr_gdbarch_init): Update.
1644 * arm-tdep.c (arm_gdbarch_init): Update.
1645 * stack.c (frame_info): Update, call predicate.
1646 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
1647 * frame.c (legacy_get_prev_frame): Update, call predicate..
1648 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
1649 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
1650 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
1651 invocation.
1652 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1653 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1654 * vax-tdep.c (vax_gdbarch_init): Ditto.
1655
1656 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
1657 function.
1658
1659 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
1660
1661 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
1662 initializations.
1663
1664 2004-02-16 Andrew Cagney <cagney@redhat.com>
1665
1666 * tui/tui-windata.c: Include "gdb_string.h".
1667 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
1668 * tui/tui-layout.c, tui/tui-command.c: Ditto.
1669 * Makefile.in: Update dependencies.
1670
1671 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
1672
1673 * Makefile.in (infrun.o): Add $(gdb_assert_h).
1674 * infrun.c: Include "gdb_assert.h".
1675 (singlestep_ptid, saved_singlestep_ptid)
1676 (stepping_past_singlestep_breakpoint): New variables.
1677 (resume): Set singlestep_ptid. Check for singlestep thread
1678 hop.
1679 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
1680 (handle_inferior_event): Handle singlestep thread hop.
1681
1682 2004-02-16 Andrew Cagney <cagney@redhat.com>
1683
1684 * dwarf2-frame.c (dwarf2_frame_ops): New function.
1685 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
1686 (dwarf2_frame_init_reg): Ditto.
1687
1688 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
1689 suggested by Joshua Neuheisel
1690
1691 * configure.in: Always check for curses, including pdcurses.
1692 Warn, instead of error, when no curses are found. Enable TUI when
1693 curses is available.
1694 * configure: Re-generate.
1695
1696 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
1697
1698 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
1699 sh_sh4_register_convert_to_virtual.
1700 (sh_register_convert_to_raw): Rename from
1701 sh_sh4_register_convert_to_raw.
1702 (sh_pseudo_register_read): Accomodate above name change.
1703 (sh_pseudo_register_write): Ditto.
1704
1705 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
1706
1707 * sh-tdep.c (sh_generic_register_name): Remove.
1708 (sh_gdbarch_init): Use sh_sh_register_name in default case.
1709
1710 2004-02-15 Andrew Cagney <cagney@redhat.com>
1711
1712 * configure.in (build_warnings): Add -Wunused-function.
1713 * configure: Re-generate.
1714
1715 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
1716 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
1717
1718 * procfs.c (procfs_init_inferior): Assume that
1719 START_INFERIOR_TRAPS_EXPECTED is defined.
1720 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
1721 * config/ns32k/tm-nbsd.h: Delete file,
1722 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
1723
1724 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
1725 * config/vax/tm-vax.h: Delete file.
1726
1727 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1728 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1729 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1730 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1731 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
1732 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1733 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
1734
1735 2004-02-15 Mark Kettenis <kettenis@gnu.org>
1736
1737 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
1738 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1739 (struct dwarf2_frame_ops): New.
1740 (dwarf2_frame_default_init_reg): New function, based on
1741 dwarf2_frame_init_reg.
1742 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
1743 (dwarf2_frame_init_reg): Call architecture-specific function.
1744 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
1745 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
1746 instead of dwarf2_frame_data.
1747 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
1748 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
1749
1750 2004-02-15 Andrew Cagney <cagney@redhat.com>
1751
1752 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
1753 register_gdbarch_swap.
1754 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
1755 * f-lang.c (_initialize_f_language): Update, use
1756 DEPRECATED_REGISTER_GDBARCH_SWAP.
1757 * remote.c (_initialize_remote): Ditto.
1758 * regcache.c (_initialize_regcache): Ditto.
1759 * parse.c (_initialize_parse): Ditto.
1760 * infrun.c (_initialize_infrun): Ditto.
1761 * mi/mi-main.c (_initialize_mi_main): Ditto.
1762 * gdbtypes.c (_initialize_gdbtypes): Ditto.
1763
1764 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
1765 poking .cacheable directly.
1766 * symfile.c (symfile_bfd_open): Ditto.
1767
1768 * Makefile.in: Update all dependencies.
1769
1770 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
1771 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
1772 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
1773 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
1774 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
1775
1776 2004-02-14 Andrew Cagney <cagney@redhat.com>
1777
1778 * arch-utils.c (legacy_convert_register_p): Check
1779 DEPRECATED_REGISTER_CONVERTIBLE_P.
1780 * findvar.c (value_of_register): Ditto.
1781
1782 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
1783 * gdbarch.h, gdbarch.c: Re-generate.
1784 * arch-utils.c (deprecated_register_convertible_not): Delete.
1785 * arch-utils.h (deprecated_register_convertible_not): Delete.
1786 * mi/mi-main.c (get_register): Update. Update copyright.
1787 * infcmd.c (default_print_registers_info): Update.
1788
1789 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1790 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
1791 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
1792 * gdbarch.h, gdbarch.c: Re-generate.
1793 * frame.c (deprecated_get_next_frame_hack): Delete function.
1794 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
1795 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1796 Update.
1797 * infcall.c (call_function_by_hand): Update.
1798
1799 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
1800
1801 * symfile.c (init_entry_point_info, entry_point_address): Move
1802 from here...
1803 * objfiles.c (init_entry_point_info, entry_point_address):..to
1804 here.
1805 * symfile.h (init_entry_point_info, entry_point_address): Remove
1806 prototypes.
1807 * objfiles.h (init_entry_point_info, entry_point_address):Add
1808 prototypes.
1809 * cris-tdep.c: Remove include of symfile.h. Add include of
1810 objfiles.h.
1811 * infcall.c: Ditto.
1812 * mcore-tdep.c: Ditto.
1813 * mn10300-tdep.c: Ditto.
1814 * sh64-tdep.c: Ditto.
1815 * v850-tdep.c: Ditto.
1816 * arm-tdep.c: Remove include of symfile.h.
1817 * blockframe.c: Ditto.
1818 * coffread.c: Ditto.
1819 * dbxread.c: Ditto.
1820 * dwarf2read.c: Ditto.
1821 * dwarfread.c: Ditto.
1822 * frv-tdep.c: Ditto.
1823 * ia64-tdep.c: Ditto.
1824 * mdebugread.c: Ditto.
1825 * mipsread.c: Ditto.
1826 * rs6000-tdep.c: Ditto.
1827 * s390-tdep.c: Ditto.
1828 * sh-tdep.c: Ditto.
1829 * xstormy16-tdep.c: Ditto.
1830 * gdbarch.sh: Remove include of symfile.h.
1831 * gdbarch.c: Regenerate.
1832 * solib-irix.c (enable_break): Use entry_point_address().
1833 Add comment about include file.
1834 * xcoffread.c: Add comment about include file.
1835 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
1836 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
1837 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
1838 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
1839 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
1840
1841 2004-02-13 Andrew Cagney <cagney@redhat.com>
1842
1843 * corelow.c (core_xfer_partial): Use "struct bfd_section".
1844 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
1845 copyright.
1846 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
1847
1848 2004-02-12 Fred Fish <fnf@redhat.com>
1849
1850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
1851 set_gdbarch_store_return_value.
1852
1853 2004-02-12 Andrew Cagney <cagney@redhat.com>
1854
1855 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
1856 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
1857 (interrupt_query): Ditto.
1858 (ofunc): Delete unused variable.
1859 * cris-tdep.c (cris_abi): Delete unused function.
1860 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
1861 (cris_get_wide_opcode, cris_get_short_size): Ditto.
1862 (cris_get_asr_quick_shift_steps): Ditto.
1863 (cris_skip_prologue_frameless_p): Ditto.
1864 * arm-tdep.c (arm_push_return_address): Delete unused function.
1865 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
1866 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
1867 * s390-tdep.c (s390_function_start): Delete unused function.
1868
1869 2004-02-12 Andrew Cagney <cagney@redhat.com>
1870
1871 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
1872 gdbarch.h, gdbarch.c: Re-generate.
1873 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
1874 to generic_prologue_frameless_p.
1875 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
1876 * arch-utils.c (generic_prologue_frameless_p): Delete function.
1877
1878 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
1879
1880 * mips-linux-tdep.c: Include "frame.h".
1881 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
1882 (mips_linux_skip_resolver): New functions.
1883 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
1884 and set_gdbarch_in_solib_call_trampoline.
1885 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
1886 to after set_gdbarch_in_solib_return_trampoline. Only set the
1887 solib hooks to mips16 functions if the OS ABI is unknown.
1888 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
1889 including "config/tm-linux.h".
1890 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
1891 * Makefile.in (mips-linux-tdep.o): Update.
1892
1893 2004-02-11 David Carlton <carlton@kealia.com>
1894
1895 * linespec.c (decode_compound): Only look for a class symbol when
1896 considering all but the rightmost component.
1897
1898 2004-02-11 Andrew Cagney <cagney@redhat.com>
1899
1900 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
1901 abi code are are separatly grouped.
1902
1903 2004-02-11 Andrew Cagney <cagney@redhat.com>
1904
1905 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
1906 * gdbarch.h, gdbarch.c: Re-generate.
1907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1908 * v850-tdep.c (v850_gdbarch_init): Update.
1909 * sh64-tdep.c (sh64_gdbarch_init): Update.
1910 * sh-tdep.c (sh_gdbarch_init): Update.
1911 * s390-tdep.c (s390_gdbarch_init): Update.
1912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1913 * mips-tdep.c (mips_gdbarch_init): Update.
1914 * mcore-tdep.c (mcore_gdbarch_init): Update.
1915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1916 * m32r-tdep.c (m32r_gdbarch_init): Update.
1917 * ia64-tdep.c (ia64_gdbarch_init): Update.
1918 * hppa-tdep.c (hppa_gdbarch_init): Update.
1919 * h8300-tdep.c (h8300_gdbarch_init): Update.
1920 * frv-tdep.c (frv_gdbarch_init): Update.
1921 * d10v-tdep.c (d10v_gdbarch_init): Update.
1922 * cris-tdep.c (cris_gdbarch_init): Update.
1923 * avr-tdep.c (avr_gdbarch_init): Update.
1924 * arm-tdep.c (arm_gdbarch_init): Update.
1925 * alpha-tdep.c (alpha_gdbarch_init): Update.
1926
1927 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
1928
1929 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
1930 comma.
1931 (sh_sh4al_dsp_register_name): Ditto.
1932
1933 2004-02-10 Andrew Cagney <cagney@redhat.com>
1934
1935 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
1936 (mips_init_frame_pc_first): Delete function.
1937 (mips_frame_saved_pc): Delete function.
1938 (mips_frame_chain): Delete function.
1939 (mips_init_extra_frame_info): Delete function.
1940 (mips_xfer_register): Delete unused variable "reg".
1941 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
1942 (mips_n32n64_return_value): Delete unused variable "reg".
1943 (mips_n32n64_return_value): Delete unused variable "pos".
1944 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
1945 (mips_o32_return_value): Delete unused variable "pos".
1946 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
1947 (mips_print_fp_register): Delete unused variable "namelen"
1948 (mips_print_fp_register): Delete unused variable "flt2"
1949 (get_frame_pointer): Delete function.
1950 (cached_proc_desc): Delete static variable.
1951 (mips_pop_frame): Delete function.
1952 (mips_find_saved_regs): Delete function.
1953 (mips_get_saved_register): Delete function.
1954 (mips_saved_pc_after_call): Delete function.
1955 (SIGFRAME_BASE): Delete macro.
1956 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
1957 (SIGFRAME_PC_OFF): Delete macro.
1958 (SIGFRAME_REGSAVE_OFF): Delete macro.
1959 (mips_dump_tdep): Do not print deleted macro definitions.
1960
1961 2004-02-10 Andrew Cagney <cagney@redhat.com>
1962
1963 * Makefile.in (SFILES): Remove explictly listed tui files.
1964 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
1965
1966 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
1967
1968 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
1969 to use paddr functions to format ia64 addresses and long values.
1970 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
1971 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
1972 (get_kernel_table, ia64_find_proc_info_x): Ditto.
1973 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
1974 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
1975
1976 2004-02-10 Andrew Cagney <cagney@redhat.com>
1977
1978 * defs.h: Do not include "tui.h".
1979 * gdb_curses.h: New file.
1980 * tui/tui-hooks.h: New file.
1981 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
1982 (tui_install_hooks, tui_remove_hooks): Delete declarations.
1983 (tui_initialize_io): Delete declaration.
1984 (tui_initialize_readline: Delete redundant declaration.
1985 (struct tui_point): Delete definition.
1986 * tui/tui-data.h (struct tui_point): Define.
1987 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
1988 * utils.c: Include "tui/tui.h".
1989 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
1990 * printcmd.c [TUI]: Include "tui/tui.h".
1991 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
1992 * tui/tui-command.c: Include "gdb_curses.h".
1993 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
1994 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
1995 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
1996 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
1997 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
1998 * Makefile.in: Update all dependencies.
1999 (tui_hooks_h, gdb_curses_h): Define.
2000 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
2001
2002 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
2003
2004 * objfiles.h (struct objfile): Remove unused fields auxf1 and
2005 auxf2. Add comments about some other rarely used fields.
2006
2007 2004-02-10 Andrew Cagney <cagney@redhat.com>
2008
2009 * Makefile.in (init.c): Fix script removing duplicates. Problem
2010 reported by Peter Schauer.
2011
2012 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
2013
2014 * bcache.c (bcache_xmalloc): Use obstack_init instead of
2015 obstack_specify_allocation.
2016 * objfiles.c (allocate_objfile): Ditto.
2017 * solib-sunos.c (solib_add_common_symbols)
2018 (allocate_rt_common_objfile): Ditto.
2019 * symfile.c (reread_symbols): Ditto.
2020 * gdb_obstack.h: Add comment.
2021
2022 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
2023
2024 * linespec.c (decode_line_1, locate_first_half)
2025 (decode_compound, lookup_prefix_sym): Update comments. Delete old
2026 commented out code.
2027
2028 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2029
2030 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
2031 obstack_free.
2032
2033 2004-02-09 Andrew Cagney <cagney@redhat.com>
2034
2035 * blockframe.c (find_pc_partial_function): If find_pc_overlay
2036 fails, try find_pc_section. Fix PR c++/1267.
2037 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
2038 instead of find_pc_mapped_section.
2039 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
2040 not default to the section containing PC. Fix PR symtab/1519.
2041
2042 2004-02-09 Andrew Cagney <cagney@redhat.com>
2043
2044 * Makefile.in (mips-tdep.o): Update dependencies.
2045 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
2046 "trad-frame.h".
2047 (mips_unwind_pc): Return the pseudo PC register.
2048 (mips_unwind_dummy_id): New function.
2049 (mips16_fetch_instruction): New function.
2050 (mips32_fetch_instruction): New function.
2051 (struct mips_frame_cache): Define.
2052 (mips_mdebug_frame_cache): New function.
2053 (mips_mdebug_frame_this_id): New function.
2054 (mips_mdebug_frame_prev_register): New function.
2055 (mips_mdebug_frame_unwind): Define.
2056 (mips_mdebug_frame_sniffer): New function.
2057 (mips_mdebug_frame_base_address): New function.
2058 (mips_mdebug_frame_base): Define.
2059 (mips_mdebug_frame_base_sniffer): New function.
2060 (mips_gdbarch_init): Append unwind and base sniffers. Set
2061 unwind_dummy_id.
2062
2063 2004-02-08 Andrew Cagney <cagney@redhat.com>
2064
2065 * frame.c: Print both the register number and name.
2066
2067 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
2068 and a sed into a single sed. Make .c and .o patterns more robust.
2069 (OBS): Delete.
2070 (INIT_FILES): Replace OBS with COMMON_OBS.
2071 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
2072
2073 2004-02-08 Mark Kettenis <kettenis@gnu.org>
2074
2075 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
2076 the PT_WCOOKIE request.
2077
2078 2004-02-08 Andrew Cagney <cagney@redhat.com>
2079
2080 * mips-tdep.c (mips_unwind_pc): New function.
2081 (mips_gdbarch_init): Set mips_unwind_pc.
2082
2083 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
2084 (get_frame_id): Allow the UNKNOWN_FRAME.
2085 (frame_register_unwind, get_frame_type): Ditto.
2086
2087 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
2088 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
2089 unwind_dummy_id indicates a legacy frame.
2090
2091 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
2092 * configure: Re-generate.
2093
2094 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
2095 methods.
2096
2097 2004-02-08 Andrew Cagney <cagney@redhat.com>
2098
2099 * configure.in (CONFIG_ALL): Set to Makefile target, and not
2100 makefile macro.
2101 * configure: Re-generate.
2102 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
2103 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
2104 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
2105 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
2106 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
2107 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
2108 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
2109 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
2110 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
2111 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
2112
2113 2004-02-07 Andrew Cagney <cagney@redhat.com>
2114
2115 * Makefile.in: Update all dependencies.
2116
2117 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
2118 * configure: Re-generate.
2119 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
2120 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
2121 (COMMON_OBS): Add "main.o" and "annotate.o".
2122 (ANNOTATE_OBS): Delete.
2123 (OBS): Remove ANNOTATE_OBS.
2124 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
2125 CONFIG_INITS.
2126 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
2127 against CONFIG_OBS and "main.o".
2128 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
2129 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
2130
2131 * tui/tui-command.c: Include "gdb_string.h", delete register
2132 attribute, use ISO-C function signatures.
2133 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
2134 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
2135 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
2136 * tui/tui.c: Ditto.
2137
2138 * tui/tui-command.c: Change variable and function names to lower
2139 case.
2140 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
2141 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
2142 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
2143 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
2144 * tui/tui-winsource.c, tui/tui.c: Ditto.
2145
2146 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
2147
2148 * buildsym.c (free_pending_blocks, finish_block)
2149 (record_pending_block, make_blockvector, end_symtab): Replace
2150 symbol_obstack with objfile_obstack.
2151 * coffread.c (process_coff_symbol, coff_read_struct_type)
2152 (coff_read_enum_type): Ditto.
2153 * cp-namespace.c (initialize_namespace_symtab)
2154 (check_one_possible_namespace_symbol): Ditto.
2155 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
2156 (dwarf2_symbol_mark_computed): Ditto.
2157 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
2158 * elfread.c (elf_symtab_read): Ditto.
2159 * hpread.c (hpread_symfile_init, hpread_symfile_init)
2160 (hpread_read_enum_type, hpread_read_function_type)
2161 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
2162 Ditto.
2163 * jv-lang.c (get_java_class_symtab, add_class_symbol)
2164 (java_link_class_type): Ditto.
2165 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
2166 (new_symbol): Ditto.
2167 * minsyms.c (install_minimal_symbols): Ditto.
2168 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
2169 (terminate_minimal_symbol_table): Replace symbol_obstack with
2170 objfile_obstack.
2171 (free_objfile): Remove freeing of symbol_obstack.
2172 * objfiles.h: Remove symbol_obstack field.
2173 * pa64solib.c (add_to_solist): Replace symbol_obstack with
2174 objfile_obstack.
2175 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
2176 symbol_obstack.
2177 (solib_add_common_symbols): Replace symbol_obstack with
2178 objfile_obstack.
2179 * somsolib.c (som_solib_add): Ditto.
2180 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2181 (common_block_start, common_block_end): Ditto.
2182 * symfile.c (reread_symbols): Remove freeing and init of
2183 symbol_obstack.
2184 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
2185 * symfile.h: Update comment.
2186 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
2187 stats printing.
2188 * symtab.c (symbol_set_names): Replace symbol_obstack with
2189 objfile_obstack.
2190 * symtab.h (struct general_symbol_info, struct minimal_symbol):
2191 Update comments.
2192 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
2193 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
2194 objfile_obstack.
2195
2196 2004-02-07 Andrew Cagney <cagney@redhat.com>
2197
2198 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
2199 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
2200 fields and variables.
2201 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
2202 (m_beInvisible): Delete macro.
2203 * tui/tui-data.h: Fix case case fields and variables.
2204 (m_genWinPtrIsNull): Delete macro.
2205 (tui_win_list): Rename winList.
2206 (TUI_SRC_WIN): Rename srcWin.
2207 (TUI_DISASM_WIN): Rename disassemWin.
2208 (TUI_DATA_WIN): Rename dataWin.
2209 (TUI_CMD_WIN): Rename cmdWin.
2210 (m_genWinPtrNotNull): Delete macro.
2211 (m_winPtrIsNull): Delete macro.
2212 (m_winPtrNotNull): Delete macro.
2213 (tui_win_is_source_type): Replace m_winIsSourceType
2214 (tui_win_is_auxillary): Replace m_winIsAuzillary.
2215 (tui_win_has_locator): Replace m_hasLocator.
2216 (tui_set_win_highlight): Replace m_setWinHighlightOn and
2217 m_setWinHighlightOff.
2218 * tui/tui-data.c: Update references.
2219 (tui_win_is_source_type, tui_set_win_highlight): New functions.
2220 (tui_win_has_locator, tui_win_is_auxillary): New functions.
2221 * tui/tui-command.c, tui/tui-disasm.c: Update references.
2222 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
2223 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
2224 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
2225 * tui/tui-winsource.c, tui/tui.c: Ditto.
2226
2227 2004-02-07 Mark Kettenis <kettenis@gnu.org>
2228
2229 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
2230 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
2231 StackGhost.
2232
2233 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
2234 variable `i6' to `i7'.
2235 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2236
2237 2004-02-07 Andrew Cagney <cagney@redhat.com>
2238
2239 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
2240 (TuiPoint, TuiPointPtr): Ditto.
2241 (TuiStatus, TuiStatusPtr): Ditto.
2242 (TuiWinType, TuiWinTypePtr): Ditto.
2243 (struct tui_point): Rename _TuiPoint.
2244 (tui_get_low_disassembly_address): Rename
2245 tuiGetLowDisassemblyAddress.
2246 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
2247 (tuiFree): Delete declaration.
2248 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
2249 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
2250 * tui/tui.c (tuiFree): Delete function.
2251 * cli/cli-cmds.c (disassemble_command): Update references.
2252 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
2253 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
2254 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
2255 * tui/tui-winsource.c: Ditto.
2256
2257 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
2258
2259 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
2260 coffstab_build_psymtabs, elfstab_build_psymtabs)
2261 (stabsect_build_psymtabs): Replace psymbol_obstack with
2262 objfile_obstack.
2263 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
2264 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
2265 Ditto.
2266 * dwarfread.c (scan_compilation_units): Ditto.
2267 * elfread.c (elfstab_offset_sections): Ditto.
2268 * hppa-tdep.c (read_unwind_info): Ditto.
2269 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
2270 (hpread_end_psymtab): Ditto.
2271 * mdebugread.c (mdebug_build_psymtabs, add_pending)
2272 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
2273 Ditto.
2274 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2275 * objfiles.c (add_to_objfile_sections)
2276 (build_objfile_section_table): Ditto.
2277 (allocate_objfile): Remove init of psymbol_obstack.
2278 (free_objfile): Remove freeing of psymbol_obstack.
2279 * objfiles.h (struct objfile): Remove field
2280 psymbol_obstack. Update comments.
2281 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
2282 psymbol_obstack with objfile_obstack.
2283 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
2284 psymbol_obstack.
2285 * somread.c (som_symfile_offsets, init_import_symbols)
2286 (init_export_symbols): Replace psymbol_obstack with
2287 objfile_obstack.
2288 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2289 * symfile.c (default_symfile_offsets, syms_from_objfile)
2290 (reread_symbols): Remove freeing and init of psymbol_obstack.
2291 (cashier_psymtab): Update comment.
2292 * symmisc.c (print_objfile_statistics): Don't report stats for
2293 psymbol obstack.
2294 * symtab.h (struct general_symbol_info, struct partial_symtab):
2295 Update comments.
2296 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
2297 (xcoff_symfile_offsets): Replace psymbol_obstack with
2298 objfile_obstack.
2299
2300 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
2301
2302 * objfiles.h (struct objfile): Add objfile_obstack field.
2303 Remove type_obstack field.
2304
2305 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
2306 read_structure_scope read_enumeration, new_symbol): Replace
2307 type_obstack with objfile_obstack.
2308 * dwarfread.c (struct_type, enum_type): Ditto.
2309 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
2310 (lookup_fundamental_type): Ditto.
2311 * gdbtypes.h (TYPE_ALLOC): Ditto.
2312 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
2313 (hpread_read_doc_function_type, hpread_read_struct_type)
2314 (fix_static_member_physnames, hpread_read_array_type)
2315 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
2316 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
2317 (java_link_class_type): Ditto.
2318 * mdebugread.c (parse_type): Ditto.
2319 * objfiles.c (allocate_objfile, free_objfile): Ditto.
2320 * solib-sunos.c (solib_add_common_symbols): Ditto.
2321 * stabsread.c (define_symbol, read_type, read_member_functions,
2322 read_cpp_abbrev, read_one_struct_field): Ditto.
2323 * symfile.c (reread_symbols): Ditto.
2324 * symmisc.c (print_objfile_statistics): Ditto.
2325
2326 2004-02-07 Andrew Cagney <cagney@redhat.com>
2327
2328 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
2329 (tui_exec_info_content): Rename TuiExecInfoContent.
2330 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
2331 (TuiWinInfo, TuiWinInfoPtr): Ditto.
2332 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
2333 (TuiList, TuiListPtr): Ditto.
2334 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
2335 (TuiDataType, TuiDataTypePtr): Ditto.
2336 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
2337 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
2338 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
2339 (TuiSourceElement, TuiSourceElementPtr): Ditto.
2340 (TuiDataElement, TuiDataElementPtr): Ditto.
2341 (TuiWinElement, TuiWinElementPtr): Ditto.
2342 (TuiDataInfo, TuiDataInfoPtr): Ditto.
2343 (TuiCommandElement, TuiCommandElementPtr): Ditto.
2344 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
2345 (TuiWhichElement, TuiWhichElementPtr): Ditto.
2346 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
2347 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
2348 * tui/tui-command.c, tui/tui-data.c: Update references.
2349 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
2350 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
2351 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
2352 * tui/tui-winsource.c, tui/tui.c: Ditto.
2353
2354 2004-02-07 Mark Kettenis <kettenis@gnu.org>
2355
2356 * dwarf2-frame.h: Update copyright.
2357 (enum dwarf2_frame_reg_rule): New.
2358 (struct dwarf2_frame_state_reg): New.
2359 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
2360 * dwarf2-frame.c: Update copyright.
2361 (enum dwarf2_reg_rule): Remove.
2362 (struct dwarf2_frame_state): Remove defenition of `struct
2363 dwarf2_frame_state_reg'.
2364 (read_reg): Call get_frame_arch to get the architecture instead of
2365 using CURRENT_GDBARCH.
2366 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
2367 DWARF2_FRAME_.
2368 (dwarf2_frame_init_reg): New function.
2369 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
2370 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
2371 initialize the register state. Prefix old `enum dwarf2_reg_rule'
2372 tags with DWARF2_FRAME_.
2373 (dwarf2_frame_prev_register): Call get_frame_arch to get the
2374 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
2375 dwarf2_reg_rule' tags with DWARF2_FRAME_.
2376
2377 2004-02-06 Andrew Cagney <cagney@redhat.com>
2378
2379 * tui/tui-data.h (struct tui_list): Rename _TuiList.
2380 (enum tui_data_type): Rename _TuiDataType.
2381 (struct tui_layout_def): Rename _TuiLayoutDef.
2382 (struct tui_source_element): Rename _TuiSourceElement.
2383 (struct tui_data_element): Rename _TuiDataElement.
2384 (struct tui_command_element): Rename _TuiCommandElement.
2385 (struct tui_locator_element): Rename _TuiLocatorElement.
2386 (union tui_which_element): Define.
2387 (struct tui_win_element): Rename _TuiWinElement.
2388 (struct tui_data_info): Rename _TuiDataInfo.
2389 (struct tui_source_info): Rename _TuiSourceInfo.
2390 (struct tui_command_info): Rename _TuiCommandInfo.
2391 (tui_initialize_static_data): Rename initializeStaticData.
2392 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
2393 (tui_alloc_win_info): Rename allocWinInfo.
2394 (tui_init_generic_part): Rename initGenericPart.
2395 (tui_init_win_info): Rename initWinInfo.
2396 (tui_alloc_content): Rename allocContent.
2397 (tui_add_content_elements): Rename addContentElements.
2398 (tui_init_content_element): Rename initContentElement.
2399 (tui_free_window): Rename freeWindow.
2400 (tui_free_win_content): Rename freeWinContent.
2401 (tui_free_data_content): Rename freeDataContent.
2402 (tui_free_all_source_wins_content): Rename
2403 freeAllSourceWinsContent.
2404 (tui_del_window): Rename tuiDelWindow.
2405 (tui_del_data_windows): Rename tuiDelDataWindows.
2406 (tui_partial_win_by_name): Rename partialWinByName.
2407 (tui_win_name): Rename winName.
2408 (tui_current_layout): Rename currentLayout.
2409 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
2410 (tui_term_height): Rename termHeight.
2411 (tui_set_term_height_to): Rename setTermHeightTo.
2412 (tui_term_width): Rename termWidth.
2413 (tui_set_term_width_to): Rename setTermWidthTo.
2414 (tui_set_gen_win_origin): Rename setGenWinOrigin.
2415 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
2416 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
2417 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
2418 (tui_source_windows): Rename sourceWindows.
2419 (tui_clear_source_windows): Rename clearSourceWindows.
2420 (tui_clear_source_windows_detail): Rename
2421 clearSourceWindowsDetail.
2422 (tui_clear_win_detail): Rename clearWinDetail.
2423 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
2424 (tui_default_tab_len): Rename tuiDefaultTabLen.
2425 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
2426 (tui_win_with_focus): Rename tuiWinWithFocus.
2427 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
2428 (tui_layout_def): Rename tuiLayoutDef.
2429 (tui_win_resized): Rename tuiWinResized.
2430 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
2431 (tui_next_win): Rename tuiNextWin.
2432 (tui_prev_win): Rename tuiPrevWin.
2433 (tui_add_to_source_windows): Rename addToSourceWindows.
2434 * tui/tui-winsource.c, tui/tui-win.c: Update references.
2435 * tui/tui-layout.c, tui/tui-source.c: Ditto.
2436 * tui/tui-stack.c, tui/tui-io.c: Ditto.
2437 * tui/tui.c, tui/tui-data.c: Ditto.
2438 * tui/tui-interp.c, tui/tui-data.c: Ditto.
2439 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
2440
2441 * tui/tui-source.h: Update copyright. Include "tui-data.h".
2442 (struct symtab): Declare.
2443 (tui_set_source_content): Rename tuiSetSourceContent.
2444 (tui_show_symtab_source): Rename tuiShowSource.
2445 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
2446 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
2447 * tui/tui-source.c: Update copyright. Update references.
2448 * tui/tui-win.c, tui/tui-winsource.c: Update references.
2449 * tui/tui-stack.c: Update references.
2450
2451 * tui/tui-win.h: Update copyright. Include "tui-data.h".
2452 (struct tui_win_info): Declare.
2453 (tui_scroll_forward): Rename tuiScrollForward.
2454 (tui_scroll_backward): Rename tuiScrollBackward.
2455 (tui_scroll_left): Rename tuiScrollLeft.
2456 (tui_scroll_right): Rename tuiScrollRight.
2457 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
2458 (tui_resize_all): Rename tuiResizeAll.
2459 (tui_refresh_all_win): Rename tuiRefreshAll.
2460 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
2461 * tui/tui-layout.c, * tui/tui-io.c: Update references.
2462 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
2463 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
2464
2465 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
2466 (tui_erase_data_content): Rename tuiEraseDataContent.
2467 (tui_display_all_data): Rename tuiDisplayAllData.
2468 (tui_check_data_values): Rename tuiCheckDataValues.
2469 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
2470 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
2471 (tui_first_data_element_no_in_line): Rename
2472 tuiFirstDataElementNoInLine.
2473 (tui_delete_data_content_windows): Rename
2474 tuiDeleteDataContentWindows.
2475 (tui_refresh_data_win): Rename tuiRefreshDataWin.
2476 (tui_display_data_from): Rename tuiDisplayDataFrom.
2477 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
2478 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
2479 * tui/tui-win.c, tui/tui-regs.c: Update references.
2480 * tui/tui-layout.c, tui/tui.c: Update references.
2481
2482 * tui/tui-wingeneral.h: Update copyright.
2483 (m_allBeVisible): Delete macro.
2484 (m_allBeInvisible): Delete macro.
2485 (struct tui_gen_win_info): Declare.
2486 (struct tui_win_info): Declare.
2487 (tui_unhighlight_win): Rename unhighlightWin.
2488 (tui_make_visible, tui_make_invisible): Replace makeVisible.
2489 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
2490 (tui_make_window): Rename makeWindow.
2491 (tui_copy_win): Rename copyWin.
2492 (tui_box_win): Rename boxWin.
2493 (tui_highlight_win): Rename highlightWin.
2494 (tui_check_and_display_highlight_if_needed): Rename
2495 checkAndDisplayHighlightIfNeeded.
2496 (tui_refresh_all): Rename refreshAll.
2497 (tui_delete_win): Rename tuiDelwin.
2498 (tui_refresh_win): Rename tuiRefreshWin.
2499 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
2500 (tui_make_visible, tui_make_invisible): New functions.
2501 (tui_make_all_visible, tui_make_all_invisible): New functions.
2502 (make_all_visible): Rename makeAllVisible.
2503 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
2504 * tui/tui-data.c, tui/tui-winsource.c: Update references.
2505 * tui/tui-windata.c, tui/tui-win.c: Update references.
2506 * tui/tui-regs.c, tui/tui-layout.c: Update references.
2507 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
2508
2509 2004-02-06 Mark Kettenis <kettenis@gnu.org>
2510
2511 * proc-api.c (write_with_trace): Initialize local variable to
2512 silence compiler warning.
2513
2514 2004-02-06 Andrew Cagney <cagney@redhat.com>
2515
2516 * tui/tui-source.h: Do not include "defs.h".
2517 (struct tui_win_info): Declare.
2518 (tui_set_source_content_nil): Declare.
2519 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
2520 (union tui_line_or_address): Rename _TuiLineOrAddress.
2521 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
2522 (tui_update_source_window): Rename tuiUpdateSourceWindow.
2523 (tui_update_source_window_as_is): Rename
2524 tuiUpdateSourceWindowAsIs.
2525 (tui_update_source_windows_with_addr): Rename
2526 tuiUpdateSourceWindowsWithAddr.
2527 (tui_update_source_windows_with_line): Rename
2528 tuiUpdateSourceWindowsWithLine.
2529 (tui_clear_source_content): Rename tuiClearSourceContent.
2530 (tui_erase_source_content): Rename tuiEraseSourceContent.
2531 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
2532 (tui_show_source_content): Rename tuiShowSourceContent.
2533 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
2534 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
2535 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
2536 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
2537 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
2538 (tui_update_exec_info): Rename tuiUpdateExecInfo.
2539 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
2540 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
2541 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
2542 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
2543 (struct tui_win_info): Declare.
2544 * tui/tui-stack.c: Update references.
2545 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
2546 * tui/tui-win.c, tui/tui-source.c: Ditto.
2547 * tui/tui.c, tui/tui-disasm.c: Ditto.
2548
2549 2004-02-06 Mark Kettenis <kettenis@gnu.org>
2550
2551 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
2552 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
2553
2554 2004-02-05 Mark Kettenis <kettenis@gnu.org>
2555
2556 * infrun.c (handle_inferior_event): Allow for breakpoint
2557 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
2558 and SIGEMT. Update comments.
2559 * NEWS (Revised SPARC target): Mention support for non-executable
2560 stack.
2561
2562 2004-02-04 Mark Kettenis <kettenis@gnu.org>
2563
2564 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
2565 * inftarg.c: Update copyright year.
2566 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
2567 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
2568 (sparc_xfer_wcookie): New function.
2569 * sparc-tdep.c (sparc_fetch_wcookie): New function.
2570 * Makefile.in (sparc-nat.o): Update dependencies.
2571 * config/sparc/nm-nbsd.h: Include "target.h".
2572 (NATIVE_XFER_WCOOKIE): New define.
2573 (sparc_xfer_wcookie): New prototype.
2574
2575 2004-02-04 Andrew Cagney <cagney@redhat.com>
2576
2577 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
2578 SYSCALL_TRAP function.
2579 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
2580
2581 2004-02-04 Andrew Cagney <cagney@redhat.com>
2582 Daniel Jacobowitz <drow@mvista.com>
2583
2584 * objfiles.h: Delete comments refering to inside_entry_func and
2585 DEPRECATED_FRAME_CHAIN_VALID.
2586 * defs.h (inside_entry_func): Update prototype..
2587 * blockframe.c (inside_entry_func): Rename to
2588 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
2589 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
2590
2591 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
2592
2593 * breakpoint.c (struct captured_parse_breakpoint_args): Move
2594 outside of #ifdef SOLIB_ADD region.
2595 (do_restore_lang_radix_cleanup): Ditto.
2596 (resolve_pending_breakpoint): Ditto.
2597
2598 2004-02-03 Andrew Cagney <cagney@redhat.com>
2599
2600 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
2601 (process_note_abi_tag_sections): Delete unused function.
2602 (ia64_read_fp): Delete unused function.
2603 (gdbarch_extract_struct_value_address): Delete declaration.
2604
2605 2004-02-02 Andrew Cagney <cagney@redhat.com>
2606
2607 * vax-tdep.c (vax_frame_chain): Delete call to
2608 deprecated_inside_entry_file.
2609 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
2610
2611 2004-02-02 Mark Kettenis <kettenis@gnu.org>
2612
2613 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
2614 column that's "empty" or "same value" when eliminating REG_RA
2615 rules.
2616
2617 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
2618
2619 * NEWS: Add information about new pending breakpoint support.
2620
2621 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
2622
2623 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
2624 and pending fields for pending breakpoint support.
2625 * breakpoint.c (breakpoint_enabled): Add check for not pending.
2626 (condition_command): Only parse condition if not a pending
2627 breakpoint.
2628 (print_one_breakpoint): Add support for pending breakpoints.
2629 (describe_other_breakpoints): Add checks to verify we are not
2630 dealing with pending breakpoints.
2631 (check_duplicates): Don't check pending breakpoints.
2632 (set_raw_breakpoint): Initialize pending flag.
2633 (do_restore_lang_radix_cleanup): New cleanup routine.
2634 (resolve_pending_breakpoint): New function.
2635 (re_enable_breakpoints_in_shlibs): Try and resolve any
2636 pending breakpoints via resolve_pending_breakpoint.
2637 (mention): Add pending breakpoint support.
2638 (parse_breakpoint_sals): Add new parameter to pass to
2639 decode_line_1 to indicate silent errors when files or functions
2640 are not found. Change all callers.
2641 (do_captured_parse_breakpoint): New function.
2642 (break_command_1): Change prototype to return an rc value and to
2643 take an optional pending breakpoint pointer. Support creating
2644 a pending breakpoint if a "not found" form of error occurs when
2645 parsing the breakpoint. Also support resolving an existing pending
2646 breakpoint and be silent if the resolution fails.
2647 (create_breakpoints): Change prototype to take pending breakpoint
2648 pointer. When resolving a pending breakpoint, use the new pointer
2649 to provide a conditional or commands added by the end-user.
2650 (delete_breakpoint): Add appropriate check for pending.
2651 (breakpoint_re_set_one): Ditto.
2652 (do_enable_breakpoint): Ditto.
2653
2654 2004-02-02 David Carlton <carlton@kealia.com>
2655
2656 * valops.c (enum oload_classification): New.
2657 (find_overload_match): Break implementation into separate
2658 functions; delete #if 0'd code; look for symbols within
2659 namespaces.
2660 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
2661 (find_oload_champ,oload_method_static,classify_oload_match): New.
2662 * cp-support.h: Add declaration for cp_func_name; update
2663 declaration for make_symbol_overload_list.
2664 * cp-support.c (cp_func_name): New.
2665 (overload_list_add_symbol): Fix comment, use
2666 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
2667 (make_symbol_overload_list): Take a function name and a namespace
2668 instead of a symbol; change implementation.
2669 (make_symbol_overload_list_using): New.
2670 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
2671
2672 2004-02-02 Fred Fish <fnf@redhat.com>
2673
2674 * main.c (gdb_stdtarg): Move definition to group with other
2675 gdb_stdtarg definitions and update copyright years.
2676 * remote-sim.c (gdb_os_write_stderr): Write output to
2677 gdb_stdtargerr stream instead of gdb_stdtarg stream.
2678 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
2679 gdb_stderr stream and update copyright years.
2680
2681 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
2682
2683 * Makefile.in (mips-linux-nat.o): Update dependencies.
2684 * mips-linux-nat.c: Include mips-tdep.h.
2685
2686 2004-02-01 Roland McGrath <roland@redhat.com>
2687
2688 * sol-thread.c (sol_thread_xfer_partial): New function.
2689 (init_sol_thread_ops): Use that for to_xfer_partial hook.
2690 (init_sol_core_ops): Likewise.
2691
2692 * procfs.c (procfs_xfer_partial): New function.
2693 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
2694 * Makefile.in (procfs.o): Add $(auxv_h) dep.
2695
2696 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
2697 procfs_xfer_auxv function.
2698
2699 * procfs.c (procfs_make_note_section): If we can read
2700 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
2701 * linux-proc.c (linux_make_note_section): Likewise.
2702
2703 * auxv.h: New file.
2704 * auxv.c: New file.
2705 * Makefile.in (auxv_h): New variable.
2706 (COMMON_OBS): Add auxv.o here.
2707 (auxv.o): New target.
2708
2709 * corelow.c (core_xfer_partial): New function.
2710 (init_core_ops): Use it for core_ops.to_xfer_partial.
2711
2712 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
2713 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
2714 macro if that is defined.
2715
2716 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
2717
2718 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
2719 and check the specified thread for each breakpoint.
2720 * breakpoint.h (bpstat_stop_status): Update prototype.
2721 * infrun.c (handle_inferior_event): Update calls to
2722 bpstat_stop_status.
2723
2724 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
2725
2726 * Makefile.in (cli-cmds.o): Add $(readline_h).
2727
2728 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
2729
2730 * cli/cli-cmds.c: Include readline.h.
2731 (complete_command): Pass the start of the last word to
2732 complete_line.
2733
2734 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
2735
2736 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
2737 argument, and change first argument to a CORE_ADDR.
2738 * breakpoint.h (bpstat_stop_status): Update prototype.
2739 * infrun.c (adjust_pc_after_break): Add a new comment.
2740 (handle_inferior_event): Update calls to bpstat_stop_status.
2741
2742 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
2743
2744 * breakpoint.h: Update copyright years.
2745
2746 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
2747
2748 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
2749 (bpstat_stop_status): Don't decrement PC.
2750 * breakpoint.h (software_breakpoint_inserted_here_p): Add
2751 prototype.
2752 * infrun.c (adjust_pc_after_break): New function.
2753 (handle_inferior_event): Call it, early. Remove later references
2754 to DECR_PC_AFTER_BREAK.
2755 (normal_stop): Add commentary.
2756
2757 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
2758
2759 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
2760 2004-01-27 double-free fix.
2761
2762 2004-01-31 Mark Kettenis <kettenis@gnu.org>
2763
2764 * sparc-tdep.c (sparc_fetch_wcookie): New function.
2765 (sparc32_frame_prev_register): Handle StackGhost.
2766 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2767
2768 2004-01-29 Roland McGrath <roland@redhat.com>
2769
2770 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
2771 * configure: Regenerated.
2772
2773 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
2774 * Makefile.in (procfs.o): Add dep.
2775
2776 2004-01-28 Andrew Cagney <cagney@redhat.com>
2777
2778 * tui/tui-stack.h: Update copyright.
2779 (struct frame_info): Add opaque declaration.
2780 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
2781 (tui_show_locator_content): Rename tuiShowLocatorContent.
2782 (tui_show_frame_info): Rename tuiShowFrameInfo.
2783 * tui/tui-stack.c: Update copyright. Update references.
2784 * tui/tui-winsource.c: Update references.
2785 * tui/tui-win.c: Update references.
2786 * tui/tui-layout.c: Update references.
2787 * tui/tui-hooks.c: Update copyright, update references.
2788 * tui/tui.c: Update copyright, update references.
2789 * tui/tui-disasm.c: Update references.
2790
2791 2004-01-28 David Carlton <carlton@kealia.com>
2792
2793 * dwarf2read.c (add_partial_structure): Use demangled name if
2794 namespace equals "".
2795
2796 2004-01-27 Jim Blandy <jimb@redhat.com>
2797
2798 Clean up misapplied patch:
2799 * dwarf2read.c (determine_prefix): Change one of the two forward
2800 declarations for 'determine_prefix_aux' to a declaration for this.
2801 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
2802 argument to 'die_specification'.
2803
2804 * dwarf2read.c (read_func_scope): Re-indent comment.
2805
2806 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
2807
2808 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
2809 b->exp to NULL after freeing so that error during re-parsing or
2810 evaluation of expressions associated with breakpoint don't
2811 eventually lead to re-freeing of storage.
2812 Committed by Andrew Cagney.
2813
2814 2004-01-27 Andrew Cagney <cagney@redhat.com>
2815
2816 * source.c (ambiguous_line_spec): Delete undefined declaration.
2817 * m32r-rom.c (m32r_set_board_address): Delete unused function.
2818 (m32r_set_server_address, m32r_set_download_path): Ditto.
2819 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
2820
2821 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
2822
2823 * dwarf2read.c: Update calls to changed and renamed functions, and
2824 references to moved variables.
2825
2826 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
2827 language, language_defn, list_in_scope, and ftypes members.
2828 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
2829 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
2830 (baseaddr): Remove globals.
2831
2832 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
2833 (set_cu_language, die_is_declaration, die_specification)
2834 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
2835 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
2836 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
2837 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
2838
2839 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
2840 cu.list_in_scope. Don't initialize cu_header_offset.
2841 (add_partial_symbol): Add local baseaddr.
2842 (psymtab_to_symtab_1): Add local baseaddr. Use
2843 objfile->section_offsets for consistency. Don't initialize
2844 cu_header_offset; do initialize cu.header.offset and
2845 cu.list_in_scope.
2846 (read_file_scope, read_func_scope, read_lexical_block_scope)
2847 (dwarf_decode_lines, new_symbol): Add local baseaddr.
2848
2849 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
2850
2851 * PROBLEMS: Add gdb/1516.
2852
2853 2003-12-29 Robert Millan <robertmh@gnu.org>
2854
2855 Patch committed by Andrw Cagney.
2856 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
2857 * configure.tgt: Match knetbsd*-gnu.
2858
2859 2004-01-26 Andrew Cagney <cagney@redhat.com>
2860
2861 * breakpoint.c (catch_command_1): Delete #ifdef code.
2862 (catch_fork_command_1): Delete #ifdef wrapper.
2863 (catch_exec_command_1): Ditto.
2864 (catch_load_command_1): Ditto.
2865 (catch_unload_command_1): Ditto.
2866
2867 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
2868 (catch_breakpoint): Delete #if0ed function.
2869 (disable_catch_breakpoint): Ditto.
2870 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
2871 (disable_catch, enable_catch, delete_catch): Ditto.
2872
2873 2004-01-26 Andrew Cagney <cagney@redhat.com>
2874
2875 * remote.c (echo_check, quit_flag): Delete variables.
2876 (cisco_kernel_mode): Delete variable.
2877 (minitelnet_return, tty_input, escape_count): Delete variables.
2878 (remote_cisco_mode): Delete variable.
2879 (remote_cisco_open, remote_cisco_close): Delete function.
2880 (remote_cisco_mourn, remote_cisco_wait): Delete function.
2881 (init_remote_cisco_ops): Delete function.
2882 (_initialize_remote): Do not install "remote cisco" code.
2883 (read_frame): Delete cisco specific code.
2884 (remote_info_process): Delete function.
2885 (remote_wait): Delete cisco specific code.
2886 (remote_cisco_section_offsets): Delete function.
2887 (remote_cisco_objfile_relocate): Delete function.
2888 (remote_async_wait): Delete cisco specific code.
2889 (minitelnet, readtty, readsocket): Delete function.
2890
2891 2004-01-26 Andrew Cagney <cagney@redhat.com>
2892
2893 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
2894 comments mentioning extract_returned_value_address.
2895 * infcmd.c (print_return_value): Update. Add comments on
2896 extract_returned_value_address.
2897 * stack.c (return_command): Add comments on
2898 extract_returned_value_address.
2899 * values.c: Update comment.
2900 * m32r-tdep.c: Update comment.
2901 * sparc-tdep.c: Update comment.
2902 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
2903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2904 * sh64-tdep.c (sh64_gdbarch_init): Update.
2905 * sh-tdep.c (sh_gdbarch_init): Update.
2906 * s390-tdep.c (s390_gdbarch_init): Update.
2907 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2908 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
2909 * m68k-tdep.c (m68k_gdbarch_init): Update.
2910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2911 * m32r-tdep.c (m32r_gdbarch_init): Update.
2912 * ia64-tdep.c (ia64_gdbarch_init): Update.
2913 * h8300-tdep.c (h8300_gdbarch_init): Update.
2914 * frv-tdep.c (frv_gdbarch_init): Update.
2915 * arm-tdep.c (arm_gdbarch_init): Update.
2916 * alpha-tdep.c (alpha_gdbarch_init): Update.
2917
2918 2004-01-26 Andrew Cagney <cagney@redhat.com>
2919
2920 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
2921 SYMBOL_LOCATION_FUNCS
2922 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
2923 "struct symbol_ops".
2924 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
2925 type to "struct symbol_ops".
2926 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
2927 (struct symbol): Replace ".aux_value.loc.funcs" and
2928 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
2929 (SYMBOL_OBJFILE): Delete macro.
2930 (SYMBOL_LOCATION_FUNCS): Delete macro.
2931 (SYMBOL_LOCATION_BATON): Update.
2932 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
2933 intead of SYMBOL_LOCATION_FUNCS.
2934 * ax-gdb.c (gen_var_ref): Ditto.
2935 * printcmd.c (address_info): Ditto.
2936 * findvar.c (read_var_value): Ditto.
2937 (symbol_read_needs_frame): Ditto.
2938
2939 2004-01-26 Andrew Cagney <cagney@redhat.com>
2940
2941 * dwarf2read.c (read_func_scope): Document frame-base hack.
2942
2943 2004-01-25 Mark Kettenis <kettenis@gnu.org>
2944
2945 * infcmd.c (print_return_value): Plug memory leak; delete
2946 ui_stream object. Rename argument `structure_return' to
2947 `struct_return'.
2948
2949 2004-01-25 Mark Kettenis <kettenis@gnu.org>
2950
2951 * infcmd.c (print_return_value): Wrap long lines.
2952 (finish_command_continuation, finish_command): Remove unused
2953 variable `funcaddr'. Fix some coding-standards problems.
2954
2955 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
2956 SECT_SIZE is large enough, not wheter it's exactly the right size.
2957 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
2958 TDEP->fpregset to zero.
2959
2960 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
2961 floating-point registers for traditional NetBSD core files.
2962 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
2963 TDEP->sizeof_fpregset here.
2964
2965 2004-01-25 Mark Kettenis <kettenis@gnu.org>
2966
2967 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
2968 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
2969 function with code split out from
2970 sparc32nbsd_sigcontext_frame_cache.
2971 (sparc32nbsd_sigcontext_frame_cache): Use
2972 sparc32nbsd_sigcontext_saved_regs.
2973 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
2974 OpenBSD.
2975 * sparcobsd-tdep.c: New file.
2976 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
2977 (sparcobsd-tdep.o): New dependency.
2978 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
2979 * config/sparc/obsd.mt: New file.
2980
2981 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
2982 TDEP->fpregset to be initialized to enable core file register
2983 sets.
2984
2985 2004-01-24 Mark Kettenis <kettenis@gnu.org>
2986
2987 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
2988 Add opaque declarations.
2989 (sparc64nbsd_sigcontext_saved_regs): New prototype.
2990 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
2991 function with code split out from
2992 sparc64nbsd_sigcontext_frame_cache.
2993 (sparc64nbsd_sigcontext_frame_cache): Use
2994 sparc64nbsd_sigcontext_saved_regs.
2995 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
2996 OpenBSD.
2997 * sparc64obsd-tdep.c: New file.
2998 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
2999 (sparc64obsd-tdep.o): New dependency.
3000 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
3001 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
3002 * config/sparc/obsd64.mt: New file.
3003
3004 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
3005 read the instruction at PC.
3006
3007 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
3008 value of GDB_OSABI_DEFAULT.
3009 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
3010 instead of GDB_OSABI_NETBSD_AOUT.
3011
3012 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
3013
3014 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
3015 copyright.
3016
3017 2004-01-23 Andrew Cagney <cagney@redhat.com>
3018
3019 * printcmd.c (display_command): Replace tui_set_display call with
3020 tui_set_layout_for_display_command.
3021 * tui/tui.h (enum tui_win_type): Define.
3022 (tui_set_layout): Delete declaration.
3023 (tui_set_layout_for_display_command): Rename set_tui_layout.
3024 * tui/tui-data.h (enum tui_layout_type): Define.
3025 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
3026 "tui.h".
3027 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
3028 (tui_default_win_height): Rename tuiDefaultWinHeight.
3029 (tui_default_win_viewport_height): Rename
3030 tuiDefaultWinViewportHeight.
3031 (tui_set_layout): RenametuiSetLayout.
3032 * tui/tui-layout.c: Update references.
3033 * tui/tui.c: Update references.
3034 * tui/tui-disasm.c: Update references.
3035
3036 2004-01-23 David Carlton <carlton@kealia.com>
3037
3038 Partial workaround for PR c++/1511:
3039 * cp-namespace.c: Include frame.h.
3040 (cp_lookup_transparent_type): New
3041 (cp_lookup_transparent_type_loop): New.
3042 * cp-support.h: Declare cp_lookup_transparent_type.
3043 * symtab.c (basic_lookup_transparent_type): Renamed from
3044 lookup_transparent_type.
3045 (lookup_transparent_type): Replace old body by a call to
3046 current_language->la_lookup_transparent_type.
3047 * symtab.h: Update copyright. Declare
3048 basic_lookup_transparent_type.
3049 * language.h: Update copyright.
3050 (struct language_defn): Add la_lookup_transparent_type.
3051 * language.c: Update copyright.
3052 (unknown_language_defn): Add basic_lookup_transparent_type.
3053 (auto_language_defn): Add basic_lookup_transparent_type.
3054 (local_language_defn): Add basic_lookup_transparent_type.
3055 * ada-lang.c: Update copyright.
3056 (ada_language_defn): Add basic_lookup_transparent_type.
3057 * c-lang.c: Update copyright.
3058 (c_language_defn): Add basic_lookup_transparent_type.
3059 (cplus_language_defn): Add basic_lookup_transparent_type.
3060 (asm_language_defn): Add basic_lookup_transparent_type.
3061 (minimal_language_defn): Add basic_lookup_transparent_type.
3062 * f-lang.c: Update copyright.
3063 (f_language_defn): Add basic_lookup_transparent_type.
3064 * jv-lang.c: Update copyright.
3065 (java_language_defn): Add basic_lookup_transparent_type.
3066 * m2-lang.c: Update copyright.
3067 (m2_language_defn): Add basic_lookup_transparent_type.
3068 * objc-lang.c: Update copyright.
3069 (objc_language_defn): Add basic_lookup_transparent_type.
3070 * p-lang.c: Update copyright.
3071 (p_language_defn): Add basic_lookup_transparent_type.
3072 * scm-lang.c: Update copyright.
3073 (scm_language_defn): Add basic_lookup_transparent_type.
3074 * Makefile.in (cp-namespace.o): Depend on frame.h.
3075
3076 2004-01-23 David Carlton <carlton@kealia.com>
3077
3078 Patch for PR c++/1520:
3079 * dwarf2read.c (read_func_scope): Set processing_current_prefix
3080 properly if we have a specification die.
3081 (determine_prefix_aux): Rename from determine_prefix.
3082 (determine_prefix): Like the old determine_prefix, but never
3083 returns NULL.
3084
3085 2004-01-23 Theodore A. Roth <troth@openavr.org>
3086
3087 * avr-tdep.c: Update copyright.
3088 (avr_iaddr_p): Delete unused function.
3089 (avr_saddr_p): Delete unused function.
3090
3091 2004-01-23 David Carlton <carlton@kealia.com>
3092
3093 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
3094 Fix for PR symtab/1534.
3095
3096 2004-01-23 Mark Kettenis <kettenis@gnu.org>
3097
3098 * NEWS (New native configurations): Mention OpenBSD/sparc and
3099 OpenBSD/sparc64.
3100 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
3101 * configure.host: Likewise.
3102 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
3103 handler for OpenBSD.
3104 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
3105
3106 2004-01-22 Mark Kettenis <kettenis@gnu.org>
3107
3108 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
3109 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
3110
3111 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
3112 * cli/cli-cmds.c (shell_escape): Likewise.
3113
3114 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
3115 OpenBSD .note.openbsd.ident sections.
3116
3117 2004-01-22 David Carlton <carlton@kealia.com>
3118
3119 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
3120 get_scope_pc_bounds.
3121 (read_file_scope): Ditto.
3122 (get_scope_pc_bounds): New function, produced by extracting code
3123 from the above two functions, consolidating it, and adding support
3124 for DW_TAG_namespace.
3125
3126 2004-01-22 Mark Kettenis <kettenis@gnu.org>
3127
3128 * osabi.c (MAX_NOTESZ): New define.
3129 (check_note): New function.
3130 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
3131 check_note.
3132
3133 2004-01-21 Roland McGrath <roland@redhat.com>
3134
3135 * MAINTAINERS (write after approval): Add myself.
3136
3137 2004-01-21 Eli Zaretskii <eliz@gnu.org>
3138
3139 * utils.c (init_page_info): Move declarations of `rows' and
3140 `cols' before the __GO32__-specific code. Move the closing brace
3141 outside the #ifdef __GO32__..#endif block.
3142 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
3143
3144 2004-01-21 Paul Brook <paul@codesourcery.com>
3145
3146 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
3147 BPSTAT_WHAT_CHECK_SHLIBS.
3148
3149 2004-01-21 Paul Brook <paul@codesourcery.com>
3150
3151 * MAINTAINERS: Add myself to write-after-approval.
3152
3153 2004-01-20 Andrew Cagney <cagney@redhat.com>
3154
3155 * ax-gdb.c (print_axs_value): Delete unused function.
3156 * jv-lang.c (java_lookup_type): Delete unused function.
3157 * cli/cli-dump.c (dump_filetype): Delete unused function.
3158 * remote-mips.c (remote_mips_insert_hw_breakpoint)
3159 (remote_mips_remove_hw_breakpoint): Delete unused functions.
3160 (mips_getstring): Delete unused function.
3161 (pmon_insert_breakpoint): Delete #if0ed function.
3162 (PMON_MAX_BP): Delete #if0ed MACRO.
3163 (mips_pmon_bp_info): Delete #if0ed variable.
3164 (pmon_remove_breakpoint): Delete #if0ed function.
3165 * monitor.c (monitor_write_even_block): Delete unused function.
3166 (monitor_write_memory_block): Delete #if0ed code.
3167 * dink32-rom.c (dink32_load): Delete unused function.
3168 (_initialize_dink32_rom): Delete #if0ed code.
3169 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
3170
3171 * tui/tui-command.c: Update references.
3172 * tui/tui-io.c: Update references.
3173 * tui/tui-command.h: Update copyright.
3174 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
3175
3176 * source.c (ambiguous_line_spec): Delete never-defined function.
3177 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
3178 * gdbtypes.c (add_name, add_mangled_type): Ditto.
3179 * cli/cli-cmds.c (validate_comname): Ditto.
3180
3181 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
3182 "tui-data.h".
3183 (tui_set_disassem_content): Rename tuiSetDisassemContent.
3184 (tui_show_disassem): Rename tuiShowDisassem.
3185 (tui_show_disassem_and_update_source): Rename
3186 tuiVerticalDisassemScroll.
3187 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
3188 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
3189 * tui/tui.h: Update copyright.
3190 (enum tui_status): Define.
3191 * tui/tui-data.h (enum tui_scroll_direction): Define.
3192 * tui/tui-disasm.c: Update copyright. Update references.
3193 * tui/tui-winsource.c: Update copyright. Update references.
3194 * tui/tui-win.c: Update references.
3195 * tui/tui-layout.c: Update references.
3196
3197 2004-01-20 Andrew Cagney <cagney@redhat.com>
3198
3199 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
3200 sym2 to start of block.
3201
3202 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
3203
3204 * MAINTAINERS: Delete mmalloc.
3205 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
3206 * NEWS: Mention removal of --with-malloc.
3207 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
3208 * config.in: Regenerate.
3209 * configure: Regenerate.
3210 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
3211 USE_MMALLOC, MMCHECK_FORCE.
3212 * gdbinit.in: Remove mmalloc.
3213 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
3214 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
3215 * config/i386/go32.mh: Likewise.
3216 * config/i386/interix.mh: Likewise.
3217 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
3218
3219 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
3220
3221 * linespec.c (decode_variable, symtab_from_filename): Call
3222 error_silent with error message instead of throwing an exception
3223 directly.
3224 * defs.h (error_silent, error_output_message): Add prototypes.
3225 (catch_exceptions_with_msg): Ditto.
3226 * utils.c (error_silent, error_output_message): New functions.
3227 * top.c (catch_exceptions_with_msg): New function.
3228
3229 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
3230
3231 * mi/mi-cmds.h (enum print_values): Add definition.
3232
3233 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
3234 type and value for simple data types and just the name and type
3235 for complex ones, if required.
3236
3237 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
3238 children, if required.
3239
3240 2004-01-19 Kevin Buettner <kevinb@redhat.com>
3241
3242 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
3243 unused declarations.
3244
3245 2004-01-19 Andrew Cagney <cagney@redhat.com>
3246
3247 * top.h (mapped_symbol_files): Delete declaration.
3248 * main.c (captured_main): Delete option "m" and "mapped".
3249 * objfiles.c (mapped_symbol_files): Delete variable.
3250 * symfile.c (symbol_file_command): Delete mmap code.
3251 (symbol_file_add_with_addrs_or_offsets): Ditto.
3252 (add_symbol_file_command, reread_separate_symbols): Ditto.
3253 * objfiles.h (OBJF_MAPPED): Delete.
3254 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
3255 (free_objfile) [USE_MMALLOC]: Ditto.
3256 (open_existing_mapped_file): Delete function.
3257 (open_mapped_file): Delete function.
3258 (map_to_file): Delete function.
3259
3260 2004-01-19 Kevin Buettner <kevinb@redhat.com>
3261
3262 * infrun.c (step_into_function): Account for possible breakpoint
3263 adjustment when computing ``stop_func_start''.
3264
3265 2004-01-19 Kevin Buettner <kevinb@redhat.com>
3266
3267 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
3268 the region size against the size of a pointer, not the size of
3269 a register as given by DEPRECATED_REGISTER_SIZE.
3270
3271 2004-01-19 Andrew Cagney <cagney@redhat.com>
3272
3273 * tui/tui-regs.h: Include "tui-data.h".
3274 (tuiFirstRegElementNoInLine): Delete declaration.
3275 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
3276 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
3277 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
3278 (tui_calculate_regs_column_count): Rename
3279 tuiCalculateRegsColumnCount.
3280 (tui_check_register_values): Rename tuiCheckRegisterValues.
3281 (tui_show_registers): Rename tuiShowRegisters.
3282 (tui_display_registers_from_line): Rename
3283 tuiDisplayRegistersFromLine.
3284 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
3285 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
3286 (tui_first_reg_element_no_inline): Rename
3287 tuiFirstRegElementNoInLine.
3288 * tui/tui-data.h: Update copyright.
3289 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
3290 * tui/tui-windata.c: Update copyright, update references.
3291 * tui/tui-regs.c: Update copyright, update references.
3292 * tui/tui-win.c: Update copyright, update references.
3293 * tui/tui-layout.c: Update copyright, update references.
3294
3295 2004-01-18 Andrew Cagney <cagney@redhat.com>
3296
3297 * tui/tui-io.c: Update copyright.
3298 (key_is_end_sequence, key_is_backspace): New functions.
3299 (key_is_command_char, key_is_start_sequence): New function.
3300 (tui_getc): Update references.
3301 * tui/tui-io.h: Update copyright.
3302 (m_tuiStartNewLine): Delete macro.
3303 (m_isBackspace, m_isDeleteChar): Delete macros.
3304 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
3305 (m_isNextPage, m_isPrevPage): Delete macros.
3306 (m_isLeftArrow, m_isRightArrow): Delete macros.
3307 (m_isXdbStyleCommandChar): Delete macro.
3308 (key_is_start_sequence): Declare, replace m_isStartSequence.
3309 (key_is_end_sequence): Declare, replace m_isEndSequence.
3310 (key_is_backspace): Declare ,replace m_isBackspace.
3311 (key_is_command_char): Declare, replace m_isCommandChar.
3312 * tui/tui-command.c: Update copyright.
3313 (tuiDispatchCtrlChar): Update references.
3314
3315 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
3316 tuiSourceWin.h.
3317
3318 * tui/tui-command.c: Rename tui/tuiCommand.c.
3319 * tui/tui-command.h: Rename tui/tuiCommand.h.
3320 * tui/tui-data.c: Rename tui/tuiData.c.
3321 * tui/tui-data.h: Rename tui/tuiData.h.
3322 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
3323 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
3324 * tui/tui-io.c: Rename tui/tuiIO.c.
3325 * tui/tui-io.h: Rename tui/tuiIO.h.
3326 * tui/tui-layout.c: Rename tui/tuiLayout.c.
3327 * tui/tui-layout.h: Rename tui/tuiLayout.h.
3328 * tui/tui-regs.c: Rename tui/tuiRegs.c.
3329 * tui/tui-regs.h: Rename tui/tuiRegs.h.
3330 * tui/tui-source.c: Rename tui/tuiSource.c.
3331 * tui/tui-source.h: Rename tui/tuiSource.h.
3332 * tui/tui-stack.c: Rename tui/tuiStack.c.
3333 * tui/tui-stack.h: Rename tui/tuiStack.h.
3334 * tui/tui-win.c: Rename tui/tuiWin.c.
3335 * tui/tui-win.h: Rename tui/tuiWin.h.
3336 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
3337 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
3338 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
3339 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
3340 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
3341 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
3342 * tui/tui-file.c: Update includes.
3343 * tui/tui-hooks.c: Update includes.
3344 * tui/tui-interp.c: Update includes.
3345 * tui/tui.c: Update includes.
3346 * Makefile.in: Update all tui/ dependencies.
3347 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
3348
3349 * Makefile.in: Update copyright. Update dependencies.
3350
3351 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
3352 problem.
3353
3354 2004-01-18 Andrew Cagney <cagney@redhat.com>
3355
3356 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
3357 instead of register_gdbarch_init.
3358
3359 * remote-sds.c (tohex): Delete unused function. Update copyright.
3360 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
3361 * v850-tdep.c (v850_register_virtual_size): Ditto.
3362 * target.c (normal_target_post_startup_inferior): Ditto.
3363 * source.c (ambiguous_line_spec): Ditto.
3364 * remote.c (adapt_remote_get_threadinfo): Ditto.
3365 * mi/mi-out.c (out_field_fmt): Ditto.
3366 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
3367 (output_control_change_notification): Ditto.
3368 * m68k-tdep.c (m68k_register_byte): Ditto.
3369 (m68k_remote_breakpoint_from_pc): Ditto.
3370 * ui-out.c (init_ui_out_state): Delete unused declaration.
3371 * stabsread.c (search_value): Ditto.
3372 * mi/mi-cmd-env.c (env_cli_command): Ditto.
3373 * maint.c (print_section_table): Ditto.
3374 * infrun.c (set_follow_fork_mode_command): Ditto.
3375
3376 2004-01-18 Mark Kettenis <kettenis@gnu.org>
3377
3378 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
3379 DW_CFA_def_cfa_exporession. Add support for
3380 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
3381 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
3382
3383 2004-01-18 Andrew Cagney <cagney@redhat.com>
3384
3385 * ocd.c: Update copyright.
3386 (bdm_read_register_command): Delete unused function.
3387 (_initialize_remote_ocd): Delete commented out reference.
3388 (get_quoted_char, reset_packet): Delete #if0ed function.
3389 (output_packet, put_quoted_char): Delete #if0ed function.
3390 (stu_put_packet, stu_get_packet): Delete #if0ed function.
3391 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
3392 (BDM_BREAKPOINT): Delete #if0ed macro.
3393 (remote_timeout): Delete #if0ed variable.
3394
3395 2004-01-18 Mark Kettenis <kettenis@gnu.org>
3396
3397 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
3398 (core-sol2.o): Remove dependency.
3399 * core-sol2.c: Remove file.
3400
3401 2004-01-17 Andrew Cagney <cagney@redhat.com>
3402
3403 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
3404 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
3405 enums.
3406
3407 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
3408
3409 * remote.c: Update copyright years.
3410
3411 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
3412
3413 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
3414
3415 2004-01-17 Andrew Cagney <cagney@redhat.com>
3416
3417 * mdebugread.c: Update copyright.
3418 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
3419 (parse_type, parse_procedure): Ditto.
3420 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
3421
3422 * cris-tdep.c (cris_store_struct_return): Put back accidently
3423 deleted function.
3424
3425 * gdbarch.sh: Update copyright year.
3426 * gdbarch.h, gdbarch.c: Re-generate.
3427
3428 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
3429
3430 Suggested by George Anzinger.
3431 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
3432 correct stack offset. Include unknown opcode numbers in the error
3433 message.
3434
3435 2004-01-17 Andrew Cagney <cagney@redhat.com>
3436
3437 * x86-64-tdep.c (x86_64_init_abi): No need to clear
3438 extract_struct_value_address, i386 does not set it.
3439 * sparc64-tdep.c (sparc64_init_abi): Do not set
3440 extract_struct_value_address, never called.
3441 (sparc64_extract_struct_value_address): Delete function.
3442 * m68hc11-tdep.c: Update copyright.
3443 (m68hc11_gdbarch_init): Delete redundant assignment of
3444 extract_struct_value_address.
3445 * i386-tdep.c: Update copyright.
3446 (i386_gdbarch_init): Do not set extract_struct_value_address,
3447 never called.
3448 (i386_extract_struct_value_address): Delete function.
3449 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
3450 extract_struct_value_address, never called.
3451 (sparc32_extract_struct_value_address): #if 0 function. Add
3452 comments explaining its future.
3453
3454 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
3455
3456 * arm-tdep.c (arm_write_pc): New function.
3457 (arm_gdbarch_init): Call set_gdbarch_write_pc.
3458
3459 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
3460
3461 * breakpoint.c (must_shift_inst_regs): Delete.
3462 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
3463 and SHIFT_INST_REGS.
3464 * infcmd.c (step_1, step_1_continuation): Delete references to
3465 SHIFT_INST_REGS.
3466 * infrun.c (keep_going): Likewise.
3467 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
3468 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
3469
3470 2004-01-17 Andrew Cagney <cagney@redhat.com>
3471
3472 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3473 * gdbarch.h, gdbarch.c: Re-generate.
3474 * infcmd.c (print_return_value): Delete reference to
3475 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3476
3477 * cris-tdep.c (cris_gdbarch_init): Do not set
3478 deprecated_extract_struct_value_address.
3479
3480 * xstormy16-tdep.c: Update copyright.
3481 (xstormy16_extract_struct_value_address): Update to current
3482 extract struct value address interface.
3483 (xstormy16_gdbarch_init): Set extract_struct_value_address.
3484 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
3485 current extract struct value address interface.
3486 (sh64_gdbarch_init): Set extract_struct_value_address.
3487
3488 * cris-tdep.c: Update copyright.
3489 (cris_extract_struct_value_address): Delete function.
3490 (struct_return_address): Delete variable.
3491 (cris_store_struct_return): Do not set struct_return_address.
3492
3493 * mcore-tdep.c: Update copyright.
3494 (mcore_extract_struct_value_address): Delete function. Update
3495 comments.
3496 (mcore_gdbarch_init): Update.
3497 * mn10300-tdep.c: Update copyright.
3498 (mn10300_extract_struct_value_address): Delete function.
3499 (mn10300_gdbarch_init): Update.
3500 * v850-tdep.c: Update copyright.
3501 (v850_extract_struct_value_address): Delete.
3502 (v850_gdbarch_init): Update.
3503 * ns32k-tdep.c: Update copyright.
3504 (ns32k_extract_struct_value_address): Delete.
3505 (ns32k_gdbarch_init): Update.
3506 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
3507 (hppa_gdbarch_init): Update.
3508 * vax-tdep.c: Update copyright.
3509 (vax_extract_struct_value_address): Delete.
3510 (vax_gdbarch_init): Update.
3511
3512 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
3513 * gdbarch.h, gdbarch.c: Re-generate.
3514 * procfs.c (procfs_fetch_registers): Delete reference to
3515 DEPRECATED_NPC_REGNUM.
3516 (procfs_store_registers): Ditto.
3517 * regcache.c (generic_target_write_pc): Simplify.
3518 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
3519
3520 * core-sol2.c (fetch_core_registers): Replace
3521 DEPRECATED_NPC_REGNUM with equivalent tdep value.
3522
3523 * hppa-tdep.c: Update copyright year.
3524 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
3525 NPC_REGNUM.
3526 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
3527
3528 * mips-tdep.c (mips_write_pc): New function.
3529 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
3530 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
3531 (mips_find_saved_regs, mips_software_single_step: Ditto.
3532 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
3533 mips_init_extra_frame_info, mips_pop_frame): Ditto.
3534
3535 2004-01-17 Andrew Cagney <cagney@redhat.com>
3536
3537 * mips-tdep.c: Re-indent. Group functions by ABI.
3538
3539 2004-01-17 Andrew Cagney <cagney@redhat.com>
3540
3541 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
3542 * gdbarch.c: Re-generate.
3543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3544 DECR_PC_AFTER_BREAK to zero.
3545 * vax-tdep.c (vax_gdbarch_init): Ditto.
3546 * v850-tdep.c (v850_gdbarch_init): Ditto.
3547 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
3548 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3549 * sh-tdep.c (sh_gdbarch_init): Ditto.
3550 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3551 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3552 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3553 * mips-tdep.c (mips_gdbarch_init): Ditto.
3554 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3556 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3557 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3558 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3559 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3561 * frv-tdep.c (frv_gdbarch_init): Ditto.
3562 * cris-tdep.c (cris_gdbarch_init): Ditto.
3563 * avr-tdep.c (avr_gdbarch_init): Ditto.
3564 * arm-tdep.c (arm_gdbarch_init): Ditto.
3565 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
3566
3567 2004-01-17 J. Brobecker <brobecker@gnat.com>
3568
3569 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
3570 Delete, no longer used.
3571 (read_subrange_type): New function, mostly extracted from
3572 read_array_type().
3573 (read_array_type): Replace extracted code by call to
3574 read_subrange_type().
3575 (dwarf2_get_attr_constant_value): New function.
3576 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
3577 (add_partial_symbol): Likewise.
3578 (process_die): Likewise.
3579 (new_symbol): Likewise.
3580 (read_type_die): Likewise.
3581
3582 2004-01-16 Andrew Cagney <cagney@redhat.com>
3583
3584 * symfile.c: Update copyright year.
3585 (compare_symbols): Delete unused function.
3586 * stabsread.c: Update copyright year.
3587 (lrs_general_complaint): Delete unused function.
3588 (ref_search_value): Ditto.
3589 (get_substring): Delete declaration.
3590 * sh64-tdep.c: Update copyright year.
3591 (sh64_get_gdb_regnum): Delete unused function.
3592 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
3593 Delete unused function.
3594
3595 2004-01-17 Mark Kettenis <kettenis@gnu.org>
3596
3597 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
3598 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
3599
3600 2004-01-16 Andrew Cagney <cagney@redhat.com>
3601
3602 Changes from Peter Schauer.
3603 * rs6000-tdep.c: Update copyright year.
3604 (rs6000_push_dummy_call): Update the stack pointer before
3605 accessing the corresponding stack region.
3606 * rs6000-nat.c: Update copyright year.
3607 (set_host_arch): Set "info.abfd" to "exec_bfd".
3608
3609 2004-01-15 Mark Kettenis <kettenis@gnu.org>
3610
3611 * blockframe.c: Update copyright year.
3612 (inside_entry_func): Don't treat a zero PC specially.
3613
3614 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
3615
3616 * gcore.c (gcore_copy_callback): Use paddr_d to print size
3617 variable.
3618 (gcore_create_callback): Ditto. Skip any memory segment that has
3619 no permissions set.
3620
3621 2004-01-14 David Carlton <carlton@kealia.com>
3622
3623 Change symbols for C++ nested types to contain the fully qualified
3624 name, if possible. (At least in the DWARF-2 case.) Partial fix
3625 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
3626 c++/895.
3627 * c-exp.y (qualified_type): Handle types nested within classes.
3628 * cp-namespace.c: Update comments.
3629 (cp_set_block_scope): Delete #if 0.
3630 (cp_lookup_nested_type): Handle types nested within classes.
3631 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
3632 when appropriate.
3633 (add_partial_symbol): Add the name of the enclosing namespace to
3634 types.
3635 (pdi_needs_namespace): New.
3636 (add_partial_namespace): Tweak comment.
3637 (add_partial_structure): New.
3638 (psymtab_to_symtab_1): Initialize processing_current_prefix
3639 here...
3640 (process_die): instead of here.
3641 (read_structure_scope): Try to figure out the name of the class or
3642 namespace that the structure might be defined within.
3643 (read_enumeration): Generate fully-qualified names, if possible.
3644 (read_namespace): Don't set name to NULL.
3645 (die_specification): New.
3646 (new_symbol): Generate fully-qualified names for types.
3647 (read_type_die): Determine appropriate prefix.
3648 (determine_prefix): New.
3649 (typename_concat): New.
3650 (class_name): New.
3651 * valops.c (value_aggregate_elt): Pass NOSIDE to
3652 value_struct_elt_for_reference.
3653 (value_struct_elt_for_reference): Make static, add NOSIDE
3654 parameter, call value_maybe_namespace_elt as a last resort.
3655 (value_namespace_elt): Break out code into
3656 value_maybe_namespace_elt.
3657 (value_maybe_namespace_elt): New.
3658
3659 2004-01-12 Andrew Cagney <cagney@redhat.com>
3660
3661 * mips-tdep.c (mips_convert_register_p): Handle both raw and
3662 cooked floating-point registers.
3663 (mips_gdbarch_init): Set convert_register_p, register_to_value,
3664 and value_to_register.
3665
3666 2004-01-13 Andrew Cagney <cagney@redhat.com>
3667
3668 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
3669 * gdbarch.c: Re-generate.
3670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3671 FUNCTION_START_OFFSET.
3672 * v850-tdep.c (v850_gdbarch_init): Ditto.
3673 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
3674 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3675 * sh-tdep.c (sh_gdbarch_init): Ditto.
3676 * s390-tdep.c (s390_gdbarch_init): Ditto.
3677 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3678 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3679 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3680 * mips-tdep.c (mips_gdbarch_init): Ditto.
3681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3682 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3684 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3685 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3686 * i386-tdep.c (i386_gdbarch_init): Ditto.
3687 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3688 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3689 * frv-tdep.c (frv_gdbarch_init): Ditto.
3690 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3691 * cris-tdep.c (cris_gdbarch_init): Ditto.
3692 * avr-tdep.c (avr_gdbarch_init): Ditto.
3693 * arm-tdep.c (arm_gdbarch_init): Ditto.
3694 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3695
3696 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
3697
3698 * infrun.c (follow_fork_mode_ask): Remove.
3699 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
3700 (follow_fork): Simplify and remove internal error for
3701 follow_fork_mode_ask.
3702 (_initialize_infrun): Update "set follow-fork-mode" help text.
3703
3704 2004-01-13 Andrew Cagney <cagney@redhat.com>
3705
3706 * configure.in: Update copyright year.
3707 (build_warnings): Add -Wunused-label.
3708 * configure: Re-generate.
3709
3710 2004-01-12 Andrew Cagney <cagney@redhat.com>
3711
3712 * exec.h (exec_ops): Make "extern".
3713
3714 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
3715 the function is void.
3716 (mips_pseudo_register_write): Ditto.
3717
3718 2004-01-12 Andrew Cagney <cagney@redhat.com>
3719
3720 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
3721 call. Never defined.
3722 * sparc-tdep.h (struct frame_info): Add opaque declaration.
3723 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
3724 (struct sparc_gregset, struct regcache): Ditto.
3725 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
3726
3727 2004-01-12 Andrew Cagney <cagney@redhat.com>
3728
3729 * mi/ChangeLog: Delete file. Renamed to ...
3730 * mi/ChangeLog-1999-2003: New file.
3731 * tui/ChangeLog: Delete file. Renamed to ...
3732 * tui/ChangeLog-1998-2003: New file.
3733
3734 2004-01-11 Mark Kettenis <kettenis@gnu.org>
3735
3736 * sparc64nbsd-tdep.c: Include "regset.h".
3737 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
3738 Remove variables.
3739 (fetch_core_registers): Remove function.
3740 (sparc64nbsd_core_fns): Remove variable.
3741 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
3742 functions.
3743 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
3744 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
3745 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
3746
3747 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
3748 sparc_extract_struct_value_address.
3749 (sparc32_gdbarch_init): Set extract_struct_value_address.
3750 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
3751 function.
3752 (sparc64_init_abi): Set extract_struct_value_address. Don't set
3753 return_value_on_stack.
3754
3755 * NEWS: Mention that %cs and %ss have been added to the AMD64
3756 configurations
3757
3758 * frame.c: Update copyright year.
3759 (get_prev_frame): Improve comment.
3760
3761 * sparc64fbsd-tdep.c: Include "regset.h".
3762 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
3763 Remove variables.
3764 (fetch_core_registers): Remove function.
3765 (sparc64fbsd_core_fns): Remove variable.
3766 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
3767 functions.
3768 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
3769 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
3770 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
3771
3772 * sparcnbsd-tdep.c: Include "regset.h".
3773 (fetch_core_registers): Remove function.
3774 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
3775 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
3776 functions.
3777 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
3778 TDEP->fpregset.
3779 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
3780
3781 * sparc-tdep.h (struct regset): Provide opaque declaration.
3782 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
3783 fpregset and sizeof_fpregset members.
3784 * sparc-tdep.c (struct regset): Provide opaque declaration.
3785 (sparc_regset_from_core_section): New function.
3786 (sparc32_gdbarch_init): Initialize TDEP->gregset,
3787 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
3788 Set regset_from_core_section when appropriate.
3789
3790 2004-01-10 Mark Kettenis <kettenis@gnu.org>
3791
3792 * x86-64-tdep.c (amd64_non_pod_p): New function.
3793 (amd64_classify_aggregate): Return class memory for non-POD
3794 C++ structure types.
3795
3796 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
3797 argument. Use it to reserve a register if necessary.
3798 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
3799 amd64_push_arguments.
3800
3801 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
3802
3803 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
3804 register numbers in comments.
3805 * x86-64-tdep.h: Update copyright year.
3806 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
3807 Adjust for addition of %cs and %ss.
3808 * amd64fbsd-nat.c: Update copyright year.
3809 (reg_offset): Add register offsets for %cs and %ss.
3810 * amd64fbsd-tdep.c: Update copyright year.
3811 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
3812 (amd64fbsd_sc_reg_offset): Likewise.
3813 * x86-64-linux-nat.c: Update copyright year.
3814 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
3815 and %ss.
3816 * amd64nbsd-nat.c: Update copyright year.
3817 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
3818 * amd64nbsd-tdep.c: Update copyright year.
3819 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
3820 * x86-64-linux-tdep.c: Update copyright year.
3821 (user_to_gdb_regmap): Add mapping for %cs and %ss.
3822 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
3823 * regformats/reg-x86-64.dat: Add %cs and %ss.
3824
3825 * blockframe.c (inside_entry_func): Reformat. Introduce new local
3826 variables to prevent long lines. Update comments to reflect
3827 reality.
3828
3829 2004-01-09 David Carlton <carlton@kealia.com>
3830
3831 Checked in by Elena Zannoni <ezannoni@redhat.com>.
3832 * dwarf2read.c (read_namespace): Pull out name-generating code
3833 into namespace_name. Rename previous_namespace to previous_prefix
3834 and processing_current_namespace to processing_current_prefix..
3835 (namespace_name): New function.
3836 (add_partial_symbol): Substitute uses of pdi->name with
3837 actual_name.
3838 * cp-support.h: Rename processing_current_namespace to
3839 processing_current_prefix.
3840 Update copyright year.
3841 * cp-namespace.c: Rename processing_current_namespace to
3842 processing_current_prefix.
3843 Update copyright year.
3844
3845 2004-01-09 Andrew Cagney <cagney@redhat.com>
3846
3847 * jv-valprint.c, ser-unix.c: Add missing copyright years.
3848
3849 2004-01-09 Mark Kettenis <kettenis@gnu.org>
3850
3851 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
3852 complaining.
3853 (process_one_symbol): Deal with N_PATCH stabs.
3854
3855 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
3856
3857 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
3858 ifdeffed code.
3859 Update copyright year.
3860
3861 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
3862
3863 * config/pa/tm-hppa.h: Update extern declarations for
3864 hppa32_hpux_frame_saved_pc_in_sigtramp,
3865 hppa32_hpux_frame_base_before_sigtramp, and
3866 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
3867
3868 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
3869
3870 * config/pa/tm-hppah.h: Update copyright years.
3871
3872 2004-01-08 Andrew Cagney <cagney@redhat.com>
3873
3874 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
3875 (mips_o32_reg_struct_has_addr): Delete function.
3876 (mips_gdbarch_init): Update.
3877 (mips_extract_struct_value_address): Delete function.
3878
3879 2004-01-08 David Mosberger <davidm@hpl.hp.com>
3880
3881 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
3882 reality.
3883
3884 2004-01-07 Andrew Cagney <cagney@redhat.com>
3885
3886 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
3887 architecture's elf flags (when available).
3888
3889 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
3890 FPU to the start, check the MIPS FPU when looking for an old
3891 architecture.
3892 (set_mipsfpu_single_command): Update the architecture.
3893 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
3894
3895 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
3896 (mips_mask_address_p): Add "tdep" parameter.
3897 (show_mask_address, mips_addr_bits_remove): Update.
3898 (mips_dump_tdep): Update.
3899 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
3900 (MIPS_STACK_ARGSIZE): Delete macro.
3901 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
3902 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
3903 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
3904 (mips_dump_tdep): Update.
3905 (MIPS_SAVED_REGSIZE): Delete macro.
3906 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
3907 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
3908 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
3909 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
3910 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
3911 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
3912 (mips_pop_frame, return_value_location): Update.
3913 (mips_n32n64_return_value, mips_dump_tdep): Update.
3914
3915 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
3916 MIPS ABI.
3917
3918 * mips-tdep.c: Update copyright.
3919 (mips_gdbarch_init): Merge two code blocks handling the register
3920 name and number layout.
3921
3922 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
3923
3924 * tracepoint.c (validate_actionline): Fix segv at EOF
3925
3926 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
3927
3928 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
3929 properly for static fields.
3930
3931 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
3932 Jason Molenda <jmolenda@apple.com>
3933
3934 * disasm.c: Update copyright to include 2004.
3935 (do_mixed_source_and_assembly): For uiout asm list
3936 and tuple cleanups, initialize to null_cleanup instead of
3937 NULL and do so prior to loop. Only reset when we close off
3938 the tuple/list. Move check for whether to close off the
3939 asm tuple/list to after dump_insns call where it will be run
3940 on each loop iteration.
3941
3942 2004-01-05 Andrew Cagney <cagney@redhat.com>
3943
3944 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
3945 should be a switch case and not a label.
3946 * mips-tdep.c (mips32_next_pc): Delete unused labels
3947 "greater_equal_branch" and "less_zero_branch".
3948 * jv-valprint.c (java_print_value_fields): Delete unused label
3949 "flush_it".
3950
3951 * target.c (unpush_target): Only close a target that is in the
3952 target stack.
3953
3954 2004-01-05 Mark Kettenis <kettenis@gnu.org>
3955
3956 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
3957 address from [sp + 64] instead of %o2.
3958
3959 * frame.c (get_prev_frame): Don't try to unwind the PC. This
3960 fixes PR backtrace/1476.
3961
3962 2004-01-05 Andrew Cagney <cagney@redhat.com>
3963
3964 * libunwind-frame.h (struct frame_id): Add opaque declaration,
3965 move to start of file.
3966 * i386-tdep.h (struct regcache): Add opaque declaration.
3967 * config/ia64/nm-linux.h (struct target_ops): Add opaque
3968 declaration.
3969 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
3970 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
3971 * win32-nat.c (fake_create_process): Use ISO C style definition.
3972 * stabsread.c (define_symbol): Delete #ifndef
3973 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
3974 stabs_argument_has_addr call, macro never defined.
3975
3976 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
3977
3978 * op50-rom.c: Delete.
3979 * w89k-rom.c: Delete.
3980 * Makefile.in: Remove references.
3981
3982 2004-01-04 Mark Kettenis <kettenis@gnu.org>
3983
3984 * x86-64-tdep.c: Update copyright year.
3985 (struct amd64_register_info): Rename from x86_64_register_info.
3986 (amd64_register_info): Rename from x86_64_register_info.
3987 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
3988 (amd64_register_name): Rename from x86_64_register_name.
3989 (amd64_register_type): Rename from x86_64_register_type.
3990 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
3991 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
3992 (amd64_dwarf_reg_to_regnum): Rename from
3993 x86_64_dwarf_reg_to_regnum.
3994 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
3995 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
3996 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
3997 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
3998 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
3999 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
4000 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
4001 (amd64_frame_cache): Rename from x86_64_frame_cache.
4002 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
4003 (amd64_frame_prev_register): Rename from
4004 x86_64_frame_prev_register.
4005 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
4006 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
4007 (amd64_sigtramp_frame_cache): Rename from
4008 x86_64_sigtramp_frame_cache.
4009 (amd64_sigtramp_frame_prev_register): Rename from
4010 x86_64_sigtramp_frame_prev_register.
4011 (amd64_sigtramp_frame_unwind): Rename from
4012 x86_64_sigtramp_frame_unwind.
4013 (amd64_sigtramp_frame_sniffer): Rename from
4014 x86_64_sigtramp_frame_sniffer.
4015 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
4016 (amd64_frame_base): Rename from x86_64_frame_base.
4017 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
4018 (amd64_frame_align): Rename from x86_64_frame_align.
4019 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
4020 (amd64_regset_from_core_section): Rename from
4021 x86_64_regset_from_core_section.
4022 (x86_64_init_abi): Update comments.
4023
4024 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
4025
4026 * MAINTAINERS (write after approval): Add myself.
4027
4028 2004-01-04 Mark Kettenis <kettenis@gnu.org>
4029
4030 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
4031 `float' arguments.
4032
4033 2004-01-04 Mark Kettenis <kettenis@gnu.org>
4034
4035 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
4036 such that it mentions a specific version of GCC that exhibits this
4037 bug.
4038
4039 2004-01-03 Mark Kettenis <kettenis@gnu.org>
4040
4041 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
4042 structure that has a single `float' member, store it in %f1 in
4043 addition to %f0.
4044
4045 * sparc-sol2-nat.c: Add missing '\'.
4046
4047 * sparc-tdep.c (sparc32_return_value): New function.
4048 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
4049 Remove functions.
4050 (sparc32_gdbarch_init): Set return_value, don't set
4051 extract_return_value, store_return_value, use_struct_convention
4052 and return_value_on_stack.
4053
4054 * sparc-sol2-nat.c: Add missing ')'.
4055
4056 2004-01-03 J. Brobecker <brobecker@gnat.com>
4057
4058 * infrun.c (handle_step_into_function): New function.
4059 (handle_inferior_event): Extract out some code into the new
4060 function above.
4061
4062 2004-01-03 J. Brobecker <brobecker@gnat.com>
4063
4064 * infrun.c (handle_inferior_event): Move the declaration of
4065 real_stop_pc inside the if blocks where it is used.
4066
4067 2004-01-03 Mark Kettenis <kettenis@gnu.org>
4068
4069 * sparc64-tdep.c (sparc64_16_byte_align_p)
4070 (sparc64_store_floating_fields, sparc64_store_floating_fields):
4071 Use check_typedef to get subtypes of structures and unions.
4072 (sparc64_store_return_value): Fix calculation of the appropriate
4073 offset into VALBUF when storing a structure or union.
4074 (sparc64_return_value): New function.
4075 (sparc64_use_struct_convention): Remove function.
4076 (sparc64_init_abi): Set return_value, don't set
4077 extract_return_value, store_return_value and
4078 use_struct_convention.
4079
4080 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
4081
4082 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
4083 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
4084 gdb/config/alpha/xm-alphaosf.h,
4085 gdb/config/powerpc/tm-ppcle-eabi.h,
4086 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
4087 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
4088 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
4089 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
4090 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
4091 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
4092 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
4093 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
4094 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
4095 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
4096 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
4097 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
4098 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
4099 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
4100 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
4101 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
4102 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
4103 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
4104 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
4105 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
4106 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
4107 Remove lines for .cvsignore files.
4108
4109 2004-01-03 J. Brobecker <brobecker@gnat.com>
4110
4111 * infrun.c: Back out the previous change.
4112
4113 2004-01-03 Mark Kettenis <kettenis@gnu.org>
4114
4115 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
4116 sparc-*-sunos4* to the list of REMOVED configurations.
4117
4118 * configure.tgt: Add back sparc-*-vxworks*.
4119 * remote-vxsparc.c: Remove all includes except for "defs.h",
4120 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
4121 Include "sparc-tdep.h".
4122 (SPARC_R_G1): New define.
4123 (vxsparc_gregset): New variable.
4124 (ext_format_sparc): Remove extern declaration.
4125 (vx_read_register): Rewrite to use sparc32_supply_gregset and
4126 sparc32_supply_fpregset.
4127 (vx_write_register): Rewrite to use sparc32_collect_gregset,
4128 sparc_collect_rwindow and sparc32_collect_fpregset.
4129 * config/sparc/tm-vxworks.h: New file, based on recently removed
4130 tm-vxsparc.h.
4131 * config/sparc/vxworks.mt: New file, based on recently removed
4132 vxworks.mt.
4133
4134 2004-01-03 J. Brobecker <brobecker@gnat.com>
4135
4136 * infrun.c (handle_step_into_function): New function.
4137 (handle_inferior_event): Extract out some code into the new
4138 function above.
4139
4140 2004-01-02 Mark Kettenis <kettenis@gnu.org>
4141
4142 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
4143 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
4144 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
4145 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
4146 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
4147 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
4148 (sparc_nat_h): New variable.
4149 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
4150 (tm-sun4os4.h): Remove dependency.
4151 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
4152 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
4153 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
4154 sparc-tdep.o): Update dependencies.
4155 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
4156 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
4157 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
4158 dependencies.
4159 * configure.host: Remove existing sparc-*-lynxos*,
4160 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
4161 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
4162 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
4163 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
4164 triplets.
4165 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
4166 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
4167 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
4168 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
4169 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
4170 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
4171 sparc64-*-solaris2* and sparc64-*-* triplets.
4172 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
4173 "symtab.h" and "objfiles.h".
4174 (BIAS): Remove define.
4175 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
4176 (X_DISP19): Remove macros.
4177 (sparc_fetch_instruction): Remove function.
4178 (struct gdbarch_tdep): Remove definition.
4179 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
4180 (sparc_breakpoint_from_pc): Remove function.
4181 (struct sparc64_frame_cache): Remove definition.
4182 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
4183 sparc64_unwind_pc): Remove functions.
4184 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
4185 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
4186 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
4187 (sparc64_frame_cache): Change return type to `struct
4188 sparc_frame_cache *'. Simply call sparc_frame_cache.
4189 (sparc64_frame_this_id, sparc64_frame_prev_register,
4190 sparc64_frame_base_address): Use `struct sparc_frame_cache'
4191 instead of `struct sparc64_frame_cache.
4192 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
4193 sparc_analyze_control_transfer, sparc_software_single_step,
4194 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
4195 _initialize_sparc64_tdep): Remove functions.
4196 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
4197 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
4198 macros.
4199 (sparc64_supply_gregset, sparc64_collect_gregset,
4200 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
4201 (sparc64_init_abi): New function.
4202 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
4203 inclusion guard. Include "sparc-tdep.h".
4204 (BIAS): Define.
4205 (r_tstate_offset, r_fprs_offset): New defines.
4206 (enum sparc_regnum): Remove defenition.
4207 (enum sparc64_regnum): Reformat.
4208 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
4209 (sparc64_init_abi, sparc64_supply_gregset,
4210 sparc64_collect_gregset, sparc64_supply_fpregset,
4211 sparc64_collect_fpregset): New prototypes.
4212 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
4213 Add extern declarations.
4214 (sparc64_sol2_init_abi): New prototype.
4215 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
4216 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
4217 prototypes.
4218 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
4219 "sparnbsd-nat.h".
4220 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
4221 functions.
4222 (_initialize_sparc64fbsd_nat): Remove initialization of
4223 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
4224 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
4225 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
4226 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
4227 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
4228 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
4229 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
4230 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
4231 (sparc64fbsd_r_y_offset): Remove variables.
4232 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
4233 Make static and const.
4234 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
4235 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
4236 functions.
4237 (sparc64fbsd_gregset): New variable.
4238 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
4239 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
4240 and sparc64_supply_fpregset.
4241 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
4242 (sparc64fbsd_sigtramp_frame_this_id)
4243 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
4244 (sparc64fbsd_sigtramp_frame_unwind): New variable.
4245 (sparc64fbsd_sigtramp_frame_sniffer): New function.
4246 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
4247 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
4248 * sparcnbsd-tdep.c: Update copyright year. Include
4249 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
4250 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
4251 "value.h" and "sparcnbsd-tdep.h".
4252 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
4253 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
4254 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
4255 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
4256 defines.
4257 (sparcnbsd_gregset): New variable.
4258 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
4259 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
4260 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
4261 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
4262 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
4263 variables.
4264 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
4265 (sparc32nbsd_sigcontext_frame_this_id)
4266 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
4267 (sparc32nbsd_sigcontext_frame_unwind): New variable.
4268 (sparc32nbsd_sigtramp_frame_sniffer): New function.
4269 (sparcnbsd_get_longjmp_target_32,
4270 sparcnbsd_get_longjmp_target_64): Remove functions.
4271 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
4272 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
4273 sparcnbsd_init_elf): Remove.
4274 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
4275 (sparcnbsd_elf_init_abi): New functions.
4276 (_initialize_sparcnbsd_tdep): New prototype.
4277 (_initialize_sparnbsd_tdep): Update.
4278 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
4279 corelow.o. Add sparc64-nat.o and sparc-nat.o.
4280 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
4281 * config/sparc/linux.mh: Update comment.
4282 (XM_FILE, HOST_IPC): Remove variables.
4283 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
4284 sparc-linux-nat.o.
4285 * config/sparc/linux.mt: Update comment.
4286 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
4287 * config/sparc/nbsd.mt: Reformat.
4288 * config/sparc/nbsd64.mh: Update comment.
4289 (NATDEPFILES): Add sparc-nat.o.
4290 * config/sparc/nbsd64.mt: Update comment.
4291 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
4292 (TM_FILE): Set to tm-nbsd.h.
4293 * config/sparc/nbsdelf.mh: Update comment.
4294 (NATDEPFILES): Add sparc-nat.o.
4295 (XM_FILE): Delete.
4296 * config/sparc/nbsdaout.mh: Update comment.
4297 (NATDEPFILES): Add sparc-nat.o
4298 (XM_FILE): Delete.
4299 * config/sparc/nm-linux.h: Update copyright year. Don't include
4300 "config/nm-svr4.h" and "solib.h". Add protection against multiple
4301 inclusion.
4302 (KERNEL_U_SIZE): Remove define.
4303 (kernel_u_size): Remove prototype.
4304 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
4305 * config/sparc/nm-nbsd.h: Update copyright. Don't include
4306 "regcache.h".
4307 (CHILD_PREPARE_TO_STORE): Remove define.
4308 * config/sparc/nm-nbsdaout.h: Tweak some comments.
4309 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
4310 sparcnbsd-nat.c: Rewrite files.
4311 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
4312 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
4313 sparcnbsd-tdep.h: Remove files.
4314 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
4315 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
4316 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
4317 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
4318 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
4319 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
4320 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
4321 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
4322 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
4323 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
4324 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
4325 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
4326 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
4327 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
4328 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
4329 * config/sparc/linux64.mh, config/sparc/linux64.mt,
4330 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
4331 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
4332 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
4333
4334 2004-01-02 Andrew Cagney <cagney@redhat.com>
4335
4336 From 2003-12-18 Kazuhiro Inaoka:
4337 * configure.host: Add m32r-linux target.
4338
4339 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
4340
4341 * top.c (print_gdb_version): Update year to 2004.
4342
4343 2004-01-02 Mark Mitchell <mark@codesourcery.com>
4344
4345 * MAINTAINERS: Add myself to the write-after-approval category.
4346
4347 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
4348
4349 From Bernardo Innocenti <bernie@develer.com>:
4350 * configure.tgt: Add uClinux target.
4351
4352 2004-01-02 Andrew Cagney <cagney@redhat.com>
4353
4354 * utils.c (do_my_cleanups): Make static, add forward declaration.
4355 * defs.h (do_my_cleanups): Delete declaration.
4356
4357 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
4358
4359 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
4360 bfd/ChangeLog-0203.
4361
4362 2004-01-02 Mark Kettenis <kettenis@gnu.org>
4363
4364 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
4365 in <machine/reg.h>.
4366 * configure, config.in: Regenerate.
4367
4368 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
4369 tui/ChangeLog-1998-2003.
4370 \f
4371 Local Variables:
4372 mode: change-log
4373 left-margin: 8
4374 fill-column: 74
4375 version-control: never
4376 End:
This page took 0.132634 seconds and 3 git commands to generate.