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