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