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