2004-09-14 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95575b2e
AC
12004-09-14 Andrew Cagney <cagney@gnu.org>
2
3 * thread-db.c (thread_db_new_objfile): Assume that there is a
4 child process.
5
69657671
JB
62004-09-13 Jim Blandy <jimb@redhat.com>
7
8 * valops.c (value_assign): Move 'buffer' to the enclosing block,
9 so that its storage isn't referenced after its lifetime ends.
10
6c4182dd
JB
11 * valops.c (value_assign): 'use_buffer' is initialized to zero,
12 and never assigned to. Delete it, and the 'if (use_buffer)'
13 clauses. Delete 'raw_buffer', since it is now unused.
14
ee31a58d
AC
152004-09-13 Andrew Cagney <cagney@gnu.org>
16
2c0fc042
AC
17 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
18 * configure: Re-generate.
19 * nlm/Makefile.in (TAGS): Update.
20 * Makefile.in (TAGS): Update.
21 * config/vax/nbsd.mt (TM_FILE): Update.
22 * config/sparc/vxworks.mt (TM_FILE): Update.
23 * config/sparc/sol2.mt (TM_FILE): Update.
24 * config/sparc/sol2-64.mt (TM_FILE): Update.
25 * config/sparc/obsd64.mt (TM_FILE): Update.
26 * config/sparc/obsd.mt (TM_FILE): Update.
27 * config/sparc/nbsd64.mt (TM_FILE): Update.
28 * config/sparc/nbsd.mt (TM_FILE): Update.
29 * config/sparc/linux64.mt (TM_FILE): Update.
30 * config/sparc/linux.mt (TM_FILE): Update.
31 * config/sparc/fbsd.mt (TM_FILE): Update.
32 * config/sh/wince.mt (TM_FILE): Update.
33 * config/sh/nbsd.mt (TM_FILE): Update.
34 * config/sh/linux.mt (TM_FILE): Update.
35 * config/sh/embed.mt (TM_FILE): Update.
36 * config/s390/s390.mt (TM_FILE): Update.
37 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
38 * config/rs6000/rs6000.mt (TM_FILE): Update.
39 * config/rs6000/aix4.mt (TM_FILE): Update.
40 * config/powerpc/vxworks.mt (TM_FILE): Update.
41 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
42 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
43 * config/powerpc/obsd.mt (TM_FILE): Update.
44 * config/powerpc/nbsd.mt (TM_FILE): Update.
45 * config/powerpc/linux.mt (TM_FILE): Update.
46 * config/powerpc/aix.mt (TM_FILE): Update.
47 * config/pa/obsd.mt (TM_FILE): Update.
48 * config/pa/linux.mt (TM_FILE): Update.
49 * config/pa/hppahpux.mt (TM_FILE): Update.
50 * config/pa/hppa64.mt (TM_FILE): Update.
51 * config/pa/hppa.mt (TM_FILE): Update.
52 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
53 * config/mips/wince.mt (TM_FILE): Update.
54 * config/mips/vxmips.mt (TM_FILE): Update.
55 * config/mips/nbsd.mt (TM_FILE): Update.
56 * config/mips/linux.mt (TM_FILE): Update.
57 * config/mips/irix6.mt (TM_FILE): Update.
58 * config/mips/irix5.mt (TM_FILE): Update.
59 * config/mips/embed.mt (TM_FILE): Update.
60 * config/m68k/vxworks68.mt (TM_FILE): Update.
61 * config/m68k/st2000.mt (TM_FILE): Update.
62 * config/m68k/os68k.mt (TM_FILE): Update.
63 * config/m68k/obsd.mt (TM_FILE): Update.
64 * config/m68k/nbsd.mt (TM_FILE): Update.
65 * config/m68k/monitor.mt (TM_FILE): Update.
66 * config/m68k/linux.mt (TM_FILE): Update.
67 * config/m68k/cisco.mt (TM_FILE): Update.
68 * config/ia64/linux.mt (TM_FILE): Update.
69 * config/ia64/aix.mt (TM_FILE): Update.
70 * config/ia64/ia64.mt (TM_FILE): Update.
71 * config/i386/vxworks.mt (TM_FILE): Update.
72 * config/i386/obsd64.mt (TM_FILE): Update.
73 * config/i386/obsd.mt (TM_FILE): Update.
74 * config/i386/nto.mt (TM_FILE): Update.
75 * config/i386/nbsd64.mt (TM_FILE): Update.
76 * config/i386/nbsd.mt (TM_FILE): Update.
77 * config/i386/linux64.mt (TM_FILE): Update.
78 * config/i386/linux.mt (TM_FILE): Update.
79 * config/i386/i386sol2.mt (TM_FILE): Update.
80 * config/i386/i386lynx.mt (TM_FILE): Update.
81 * config/i386/fbsd64.mt (TM_FILE): Update.
82 * config/i386/fbsd.mt (TM_FILE): Update.
83 * config/i386/cygwin.mt (TM_FILE): Update.
84 * config/h8300/h8300.mt (TM_FILE): Update.
85 * config/frv/frv.mt (TM_FILE): Update.
86 * config/cris/cris.mt (TM_FILE): Update.
87 * config/arm/wince.mt (TM_FILE): Update.
88 * config/arm/nbsd.mt (TM_FILE): Update.
89 * config/arm/linux.mt (TM_FILE): Update.
90 * config/arm/embed.mt (TM_FILE): Update.
91 * config/alpha/nbsd.mt (TM_FILE): Update.
92 * config/alpha/fbsd.mt (TM_FILE): Update.
93 * config/alpha/alpha.mt (TM_FILE): Update.
94 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
95 * config/alpha/alpha-linux.mt (TM_FILE): Update.
96
362646f5
AC
97 Eliminate event_loop_p, always has the value 1.
98 * defs.h (event_loop_p): Delete macro.
99 * breakpoint.c (until_break_command): Simplify.
100 * utils.c (prompt_for_continue): Simplify.
101 * tracepoint.c (read_actions): Simplify.
102 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
103 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
104 (set_prompt, init_main): Simplify.
105 (init_signals, disconnect): Delete, unused.
106 * remote.c (remote_async_resume)
107 (extended_remote_async_create_inferior): Simplify.
108 * mi/mi-interp.c (mi_input): Delete, unused.
109 (mi_interpreter_resume, mi_command_loop): Simplify.
110 * interps.c (current_interp_command_loop): Simplify.
111 * infrun.c (proceed): Simplify.
112 * infcmd.c (run_command, continue_command, step_1, jump_command)
113 (until_command, advance_command, finish_command)
114 (interrupt_target_command): Simplify.
115 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
116
ee31a58d
AC
117 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
118 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
119 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
120 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
121 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
122 * mips-tdep.c (mips_dump_tdep): Do not print same.
123
b7ffc4a8
AC
1242004-09-12 Andrew Cagney <cagney@gnu.org>
125
2bfb72ee
AC
126 * valprint.c (print_longest): Use fputs_filtered. Make "val"
127 const.
128 * Makefile.in (valprint.o): Delete explict rule.
129
4f17c3c1
AC
130 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
131 reported by Dave Anderson.
132
f810308b
AC
133 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
134
b7ffc4a8
AC
135 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
136
28b41c52
AC
1372004-09-12 Salvador E. Tropea <set@users.sf.net>
138 Andrew Cagney <cagney@gnu.org>
139
140 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
141 (mi_cmd_data_list_register_values)
142 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
143 the register number computation.
144
5bf970f9
AC
1452004-09-12 Andrew Cagney <cagney@gnu.org>
146
147 * ppcnbsd-nat.c: Include "inf-ptrace.h".
148 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
149 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
150 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
151 target.
152 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
153 inf-ptrace.o and inf-child.o.
154 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
155 * Makefile.in: Update dependencies.
156
0759e0bf
AC
1572004-09-11 Andrew Cagney <cagney@gnu.org>
158
159 * language.c (hex_string, hex_string_custom): Move from here ...
160 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
161 (CELLSIZE): Increase to 50.
162 * language.h (hex_string, hex_string_custom): Move from here ...
163 * defs.h: ... to here.
164 * Makefile.in: Update all dependencies.
165
bb599908
PH
1662004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
167
168 * language.c (local_hex_format_custom): Remove.
169 (local_hex_string): Rename to hex_string, use C format, and move to
170 utils.c
171 (local_hex_string_custom): Rename to hex_string_custom and change
172 interface. Now uses C format. Move to utils.c
173 (local_octal_format_custom): Remove.
174 (local_decimal_format_custom): Remove.
175 (unknown_language_defn): Remove language-specific number
176 formatting entries.
177 (auto_language_defn): Ditto.
178 (local_language_defn): Ditto.
179 * language.h (struct language_format_info): Delete declaration.
180 (struct language_defn): Remove language_format_info fields
181 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
182 (local_binary_format): Remove macro.
183 (local_binary_format_prefix): Remove macro.
184 (local_binary_format_specifier): Remove macro.
185 (local_binary_format_suffix): Remove macro.
186 (local_octal_format): Remove macro.
187 (local_octal_format_prefix): Remove macro.
188 (local_octal_format_specifier): Remove macro.
189 (local_octal_format_suffix): Remove macro.
190 (local_decimal_format): Remove macro.
191 (local_decimal_format_prefix): Remove macro.
192 (local_decimal_format_specifier): Remove macro.
193 (local_decimal_format_suffix): Remove macro.
194 (local_hex_format): Remove macro.
195 (local_hex_format_prefix): Remove macro.
196 (local_hex_format_specifier): Remove macro.
197 (local_hex_format_suffix): Remove macro.
198 (local_decimal_format_custom): Remove.
199 (local_octal_format_custom): Remove.
200 (local_hex_format_custom): Remove.
201 (local_hex_string): Rename to hex_string and move to defs.h.
202 (local_hex_string_custom): Rename to hex_string_custom, change
203 interface, and move to defs.h.
204 * utils.c: (int_string): New function.
205 (hex_string): New function (from language.c).
206 (hex_string_custom): New function (from language.c).
207 (octal2str): New function.
208 (decimal2str): Add width parameter.
209 (paddr_u): Use new decimal2str interface.
210 (paddr_d): Ditto.
211 * defs.h (hex_string): Declare.
212 (hex_string_custom): Declare.
213 (int_string): Declare.
214 * printcmd.c (print_scalar_formatted): Remove localized binary
215 formatting.
216 * valprint.c (print_longest): Use int_string.
217 (print_floating): Use C hex format.
218 (print_hex_chars): Ditto.
219 (print_binary_chars): Remove language-specific formatting.
220 (print_octal_chars): Use C octal format.
221 (print_decimal_chars): Delocalize format.
222 (print_decimal): Remove.
223 * ada-lang.c (ada_language_defn): Remove language-specific number
224 formatting entries.
225 * p-lang.c (pascal_language_defn): Ditto.
226 * c-lang.c (c_language_defn): Ditto.
227 (cplus_language_defn): Ditto.
228 (asm_language_defn): Ditto.
229 (minimal_language_defn): Ditto.
230 * f-lang.c (f_language_defn): Ditto.
231 * jv-lang.c (java_language_defn): Ditto.
232 * m2-lang.c (m2_language_defn): Ditto.
233 * scm-lang.c (scm_language_defn): Ditto.
234 * objc-lang.c (objc_language_defn): Ditto.
235 * memattr.c (mem_info_command): Use renamed hex_string_custom with
236 new interface.
237 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
238 * ui-out.c (ui_out_field_core_addr): Ditto.
239 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
240 * exec.c (print_section_info): Ditto.
241 * i387-tdep.c (print_i387_status_word): Ditto.
242 (print_i387_control_word): Ditto.
243 (i387_print_float_info): Ditto.
244 * maint.c (maint_print_section_info): Ditto.
245 * solib.c (info_sharedlibrary_command): Ditto.
246 * somsolib.c (som_sharedlibrary_info_command): Ditto.
247 * symtab.c (print_msymbol_info): Ditto.
248 * tracepoint.c (tracepoints_info): Ditto.
249 * solib-frv.c (lm_base): Ditto.
250 (frv_current_sos): Ditto.
251 (enable_break2): Ditto.
252 (enable_break): Ditto.
253 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
254 (process_one_symbol): Ditto.
255 * infcmd.c (program_info): Ditto.
256 * mdebugread.c (parse_partial_symbols): Ditto.
257 * symfile.c (add_symbol_file_command): Ditto.
258 * cli/cli-cmds.c (edit_command): Ditto.
259 (list_command): Ditto.
260 * infcall.c (call_function_by_hand): Ditto.
261 * remote-vx.c (vx_run_files_info): Ditto.
262 (vx_wait): Ditto.
263 (vx_attach): Ditto.
264 (vx_detach): Ditto.
265 (vx_kill): Ditto.
266 * aix-thread.c (pdc_symbol_addrs): Ditto.
267 (pdc_read_regs): Ditto.
268 (pdc_write_regs): Ditto.
269 (pdc_read_data): Ditto.
270 (pdc_write_data): Ditto.
271 * d10v-tdep.c (display_trace): Ditto.
272 * rs6000-nat.c (find_toc_address): Ditto.
273 * aix-thread.c: Don't include language.h.
274 * buildsym.c: Ditto.
275 * dbxread.c: Ditto.
276 * mdebugread.c: Ditto.
277 * rs6000-nat.c: Ditto.
278 * buildsym.c (make_blockvector): Use renamed hex_string.
279
33f2d567
JM
2802004-09-10 Jason Molenda (jmolenda@apple.com)
281
282 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
283 chars after 'if' or 'while' commands in user-defined commands.
284
7b90c3f9
JB
2852004-09-08 Jim Blandy <jimb@redhat.com>
286
287 Fix bug reported and analyzed by Olivier Crete:
288 * symfile.c (copy_section_addr_info): New function.
289 (symbol_file_add_with_addrs_or_offsets): Use it to save the
290 original set of address arguments, instead of handwritten code
291 that uses one length to allocate and a different length to
292 initialize. Use make_cleanup_free_section_addr_info.
293 * symfile.h (copy_section_addr_info): New declaration.
294 * utils.c: #include "symfile.h".
295 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
296 New functions.
297 * defs.h (make_cleanup_free_section_addr_info): New declaration.
298 * Makefile.in (utils.o): Update dependencies.
299
b26a6851
AC
3002004-09-08 Andrew Cagney <cagney@gnu.org>
301
302 * thread-db.c (keep_thread_db): Delete.
303 (thread_db_new_objfile, thread_db_create_inferior)
304 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
305
be24b061
MK
3062004-09-08 Mark Kettenis <kettenis@gnu.org>
307
f6792ef4
MK
308 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
309 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
310 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
311 (i386_frameless_signal_p): Remove prototype.
312 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
313 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
314 I386_SSE_NUM_REGS.
315 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
316 instead of FP0_REGNUM.
317 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
318 of FP0_REGNUM and FPC_REGNUM.
319
eeefdaa7
MK
320 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
321 (sunos_solib_create_inferior_hook): Don't call
322 sunos_relocate_main_executable.
323
be24b061
MK
324 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
325 solib_svr4_fetch_link_map_offsets to
326 svr4_ilp32_fetch_link_map_offsets.
327 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
328 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
329 svr4_ilp32_fetch_link_map_offsets.
330 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
331
7c679d16
JB
3322004-09-07 Jim Blandy <jimb@redhat.com>
333
334 * frame.h (frame_register): Doc fix.
335
1f04aa62
AC
3362004-09-07 Andrew Cagney <cagney@gnu.org>
337
338 * vx-share/wait.h: Delete #ifdef USG.
339 * utils.c (request_quit): Ditto.
340 * tui/tui.c (tui_reset): Ditto.
341 * remote.c: Ditto.
342 * remote-sds.c: Ditto.
343 * remote-rdi.c: Ditto.
344 * mdebugread.c: Ditto.
345 * m68klinux-nat.c: Ditto.
346 * infttrace.c: Ditto.
347 * infptrace.c: Ditto.
348 * i386v-nat.c: Ditto.
349 * exec.c: Ditto.
350 * dbxread.c: Ditto.
351 * core-aout.c: Ditto.
352
90edbfbc
JB
3532004-09-05 Joel Brobecker <brobecker@gnat.com>
354
355 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
356 heuristic_proc_desc.
357 (mips_insn32_frame_cache): Likewise.
358
01f4bf2b
JB
3592004-09-04 Joel Brobecker <brobecker@gnat.com>
360
361 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
362 left behind by error.
363
8511a048
JB
3642004-09-04 Joel Brobecker <brobecker@gnat.com>
365
366 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
367 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
368
649dfe9f
JB
3692004-09-04 Joel Brobecker <brobecker@gnat.com>
370
371 * config/rs6000/xm-aix4.h: Remove this file.
372 * config/rs6000/aix4.mh (XM_FILE): Delete.
373
6e50f889
JB
3742004-09-04 Joel Brobecker <brobecker@gnat.com>
375
376 * config/rs6000/xm-rs6000.h: Remove this file.
377 * config/rs6000/rs6000.mh (XM_FILE): Remove.
378
b8c4aece
AC
3792004-09-03 Andrew Cagney <cagney@gnu.org>
380
fb603883
AC
381 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
382 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
383 only use.
384
c9343fd1
AC
385 * mips-tdep.c (temp_saved_regs): Delete.
386 (set_reg_offset): Replace saved_regs parameter with this_cache.
387 (heuristic_proc_desc, mips16_heuristic_proc_desc)
388 (mips32_heuristic_proc_desc): Add this_cache parameter.
389 (mips_insn32_frame_cache, mips_insn16_frame_cache)
390 (after_prologue): Pass a NULL this_cache.
391
9733cfe1
AC
392 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
393 non-kernel trap prologues.
394
0d5febcc
AC
395 * mips-tdep.c (find_proc_desc): Delete function.
396 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
397 simplify.
398 (mips_insn16_frame_cache): Replace find_proc_desc with code from
399 mips_insn32_frame_cache.
400
9733cfe1 401 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
402 Simplify as NEXT_FRAME is NULL.
403 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
404
177f84a3
AC
405 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
406 local variable.
407 (mips_skip_prologue): Update.
408
465f7520
AC
409 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
410 "cur_frame" parameter.
177f84a3
AC
411 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
412 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 413
e38b8658
AC
414 * config/vax/nm-obsd.h: Delete file.
415 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
416 * config/vax/nm-nbsd.h: Delete file.
417 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
418 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
419 * config/sh/nm-nbsd.h: Delete file.
420 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
421 * config/rs6000/nm-rs6000ly.h: Delete file.
422 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
423 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
424 * config/powerpc/nm-obsd.h: Delete file.
425 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
426 * config/powerpc/nm-nbsd.h: Delete file.
427 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
428 * config/pa/nm-obsd.h: Delete file.
429 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
430 * config/mips/nm-nbsd.h: Delete file.
431 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
432 * config/m88k/nm-obsd.h: Delete file.
433 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
434 * config/m68k/nm-nbsd.h: Delete file.
435 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
436 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
437 * config/i386/nm-nbsd.h: Delete file.
438 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
439 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
440 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
441 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
442 * config/i386/nm-i386lynx.h: Delete file.
443 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
444 * config/arm/nm-nbsd.h: Delete file.
445 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
446 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
447
be1ed680
AC
448 * config/i386/tm-fbsd.h: Delete file.
449 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
450 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
451
4b392b26
AC
452 * config/rs6000/tm-rs6000-aix4.h: Delete file.
453 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
454 * config/rs6000/aix4.mt (TM_FILE): Set to
455 config/rs6000/tm-rs6000.h.
456 * config/powerpc/tm-ppc-aix.h: Delete file.
457 * config/powerpc/aix.mt (TM_FILE): Set to
458 config/rs6000/tm-rs6000.h.
459 * config/m68k/tm-linux.h: Delete file.
460 * config/m68k/linux.mt (TM_FILE): Set to solib.h
461 * config/i386/tm-linux64.h: Delete file.
462 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
463 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
464
f3219c75
AC
465 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
466 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
467 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
468 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
469 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
470 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
471 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
472 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
473 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
474
b8c4aece
AC
475 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
476 gdb_host_cpu.
477
8ac2e020
JB
4782004-09-02 Joel Brobecker <brobecker@gnat.com>
479
480 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
481 Minor reformatting. Some code factoring.
482
c185a355
AC
4832004-09-02 Andrew Cagney <cagney@gnu.org>
484
63f22f0d
AC
485 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
486 * config/vax/tm-nbsd.h: Delete file.
487 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
488 * config/sparc/tm-vxworks.h: Delete file.
489 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
490 * config/sparc/tm-nbsd.h: Delete file.
491 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
492 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
493 * config/sparc/tm-linux.h: Delete file.
494 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
495 * config/s390/tm-linux.h: Delete file.
496 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
497 * config/pa/tm-bsd.h: Delete file.
498 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
499 * config/m68k/tm-obsd.h: Delete file.
500 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
501 * config/m68k/tm-nbsd.h: Delete file.
502 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
503 * config/i386/tm-vxworks.h: Delete file.
504 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
505 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
506 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
507 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
508 * config/i386/tm-nbsd.h: Delete file.
509 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
510 * config/i386/tm-i386lynx.h: Delete file.
511 * config/cris/cris.mt (TM_FILE): Set to solib.h.
512 * config/cris/tm-cris.h: Delete file.
513
0f475e27
AC
514 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
515 * configure: Re-generate.
516 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
517 * config/arm/tm-nbsd.h: Delete file.
518
458ed000
AC
519 * config/powerpc/tm-ppcle-sim.h: Delete.
520 * config/powerpc/tm-ppcle-eabi.h: Delete.
521 * config/powerpc/tm-nbsd.h: Delete.
522 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
523 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
524 tm-ppcle-eabi.h.
525
f14375f3
AC
526 * config/i386/nto.mh (NAT_FILE): Delete.
527 * config/i386/nm-nto.h: Delete.
528
c34d127c
AC
529 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
530 * config/m68k/tm-os68k.h: Ditto.
531 * config/m68k/tm-monitor.h: Ditto.
532 * config/m68k/tm-cisco.h: Ditto.
533 * config/m68k/st2000.mt (TM_FILE): Delete.
534 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
535 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
536 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
537 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
538
f7f0fe03
AC
539 * config/m68k/tm-st2000.h: Delete.
540 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
541 * config/sparc/fbsd.mt (TM_FILE): Delete.
542 * config/sparc/tm-fbsd.h: Delete.
543
a2558533
AC
544 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
545 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
546 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
547
b78960be
AC
548 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
549 GDB_TM_FILE and GDB_XM_FILE.
550 * gdbarch.c: Re-generate.
551 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
552 quotes in macro definition.
553 * configure.in: Re-generate.
554
4d60522e
AC
555 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
556 validating architecture methods.
557 * gdbarch.c: Re-generate.
558
5010d38b
AC
559 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
560 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
561 GDB_MULTI_ARCH_PARTIAL.
562 * gdbarch.h: Re-generate.
563
c185a355
AC
564 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
565 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
566 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
567 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
568 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
569 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
570 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
571 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
572 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
573 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
574 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
575 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
576
14aaa6ab
AC
5772004-09-01 Andrew Cagney <cagney@gnu.org>
578
579 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
580 and main_func_highpc.
581 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
582 * objfiles.c (init_entry_point_info, objfile_relocate): Update
583 * nlmread.c (nlm_symfile_read): Update.
584
a343eb3c
JB
5852004-09-01 Joel Brobecker <brobecker@gnat.com>
586
587 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
588 (mips_insn32_frame_cache): Inline call to find_proc_desc.
589 (find_proc_desc): Remove dead code.
590
4fbbbd07
JB
5912004-09-01 Joel Brobecker <brobecker@gnat.com>
592
593 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
594
84acb35a
JJ
5952004-09-01 Jeff Johnston <jjohnstn@redhat.com>
596
597 * observer.sh: Add struct so_list declaration.
598 * Makefile.in: Add dependencies on observer.h for solib.c and
599 breakpoint.c.
600 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
601 function.
602 (_initialize_breakpoint): Register
603 disable_breakpoints_in_unloaded_shlib as an observer of the
604 "solib unloaded" observation event.
605 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
606 call decode_line_1 so unfound breakpoint errors are silent.
607 * solib.c (update_solib_list): When a solib is discovered to have
608 been unloaded by the program, notify all observers of the
609 "solib unloaded" observation event.
610
c8cd9f6c
AC
6112004-09-01 Andrew Cagney <cagney@gnu.org>
612
613 * frame.c: Include "objfiles.h".
614 (inside_main_func): New function.
615 (get_prev_frame): Use new inside_main_func.
616 * Makefile.in (frame.o): Update dependencies.
617 * defs.h (inside_main_func): Delete declaration.
618 * blockframe.c (inside_main_func): Delete function.
619
1168df01
JB
6202004-08-31 Jim Blandy <jimb@redhat.com>
621
622 * dwarf2read.c (is_vtable_name): New function, based on logic from
623 read_structure_type, but passing the correct length to strncmp,
624 and using 'sizeof' instead of 'strlen'.
625 (read_structure_type): Call it.
626
f14f9744
JB
6272004-08-31 Joel Brobecker <brobecker@gnat.com>
628
629 * config/powerpc/aix.mh: Add comment.
630
386d4518
PG
6312004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
632
633 * MAINTAINERS: Add self to Write-After-Approval.
634
7d97d5e2
MI
6352004-08-30 Manoj Iyer <manjo@austin.ibm.com>
636
637 * MAINTAINERS: Add self to Write-After-Approval.
638
68f53502
AC
6392004-08-30 Andrew Cagney <cagney@gnu.org>
640
641 Fix PR breakpoints/1757.
642 * infrun.c (struct execution_control_state): Replace
643 remove_breakpoints_on_following_step with
644 step_after_step_resume_breakpoint.
645 (init_execution_control_state): Update.
646 (handle_inferior_event): For signals, when stepping off a
647 breakpoint, set step_after_step_resume_breakpoint. When
648 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
649 (keep_going): Delete code handling
650 remove_breakpoints_on_following_step.
651
7ca2d3a3
DL
6522004-08-29 David Lecomber <david@streamline-computing.com>
653
654 Fix PR gdb/648
655 * language.h (enum array_ordering): New enum.
656 * language.h (struct language_defn): New la_array_ordering
657 attribute.
658 * language.c (unknown_language_defn, auto_language_defn)
659 (local_language_defn): Ditto.
660 * ada-lang.c (ada_language_defn): Ditto.
661 * c-lang.c (c_language_defn, cplus_language_defn)
662 (asm_language_defn, minimal_language_defn): Ditto.
663 * f-lang.c (f_language_defn): Ditto.
664 * jv-lang.c (java_language_defn): Ditto.
665 * m2-lang.c (f_language_defn): Ditto.
666 * objc-lang.c (objc_language_defn): Ditto.
667 * p-lang.c (pascal_language_defn): Ditto.
668 * scm-lang.c (scm_language_defn): Ditto.
669 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
670 oriented large to small in type structure.
671 * dwarf2read.c (read_array_order): New function.
672 (read_array_type): Use read_array_order to check row/column
673 major ordering.
674
e354df01
NW
6752004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
676
677 * target.c (target_resize_to_sections): Check
678 current_target.to_sections for an old value when updating.
679
9185ddce
JB
6802004-08-27 Joel Brobecker <brobecker@gnat.com>
681
682 * procfs.c (dbx_link_bpt_addr): New static global variable.
683 (dbx_link_shadow_contents): New static global variable.
684 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
685 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
686 if we just hit it.
687 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
688 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
689 from run to run.
690 (procfs_create_inferior): Remove syssgi syscall-exit notifications
691 after the inferior has been forked.
692 (remove_dbx_link_breakpoint): New function.
693 (dbx_link_addr): New function.
694 (insert_dbx_link_bpt_in_file): New function.
695 (insert_dbx_link_bpt_in_region): New function.
696 (insert_dbx_link_breakpoint): New function.
697 (proc_trace_syscalls_1): New function, extracted from
698 proc_trace_syscalls.
699 (proc_trace_syscalls): Replace extract code by call to
700 proc_trace_syscalls_1.
701 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
702 is no longer valid.
703
e6742ace
JB
7042004-08-25 Jim Blandy <jimb@redhat.com>
705
706 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
707
8fb3e588
AC
7082004-08-25 Andrew Cagney <cagney@gnu.org>
709
629a41ee
AC
710 * infrun.c (struct execution_control_state): Delete field
711 "stepping_through_sigtramp".
712 (init_execution_control_state): Do not set same.
713 (context_switch): Do not pass same to save_infrun_state and
714 load_infrun_state.
715 * gdbthread.h (struct thread_info): Delete field
716 stepping_through_sigtramp.
717 (save_infrun_state, load_infrun_state): Delete parameter
718 stepping_through_sigtramp.
719 * thread.c (load_infrun_state, save_infrun_state): Update.
720
8fb3e588
AC
721 * infrun.c: Re-indent. Move expression operators to the beginning
722 of the line. Remove long disabled #if 0 code.
723
49c54768
AC
7242004-08-24 Andrew Cagney <cagney@gnu.org>
725
726 * doublest.h (floatformat_ieee_quad): Rename
727 floatformat_ia64_quad.
728 * doublest.c (floatformat_ieee_quad): Rename
729 floatformat_ia64_quad.
730 (_initialize_doublest): Update.
731
5ca2e327
JB
7322004-08-24 Jim Blandy <jimb@redhat.com>
733
87808bd6
JB
734 * dwarf2expr.h (struct dwarf_expr_context): New members
735 'num_pieces' and 'pieces', for returning the result of an
736 expression that uses DW_OP_piece.
737 (struct dwarf_expr_piece): New struct type.
738 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
739 pieces.
740 (free_dwarf_expr_context): Free pieces, if any.
741 (add_piece): New function.
742 (execute_stack_op): Implement DW_OP_piece.
743 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
744 expression is a list of pieces, print an error message.
745 (dwarf2_loc_desc_needs_frame): If the expression yields
746 pieces, and any piece is in a register, then we need a frame.
747
5ca2e327
JB
748 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
749 the stack until we've decided what sort of result the evaluation
750 has produced. Use separate variables, with more specific names.
751
2afeb6b8
RE
7522004-08-23 Richard Earnshaw <rearnsha@arm.com>
753
754 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
755 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
756 (arm_netbsd_init_abi_common): Register them.
757
5885ab49
MK
7582004-08-22 Mark Kettenis <kettenis@gnu.org>
759
fda820a6
MK
760 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
761
1c5bf419
MK
762 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
763 safe_frame_unwind_memory instead of target_read_memory.
764
8cbba7c8
MK
765 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
766 Reorder includes.
767 (fetch_register, store_register): Remove prototypes.
768 (child_resume): Reorganize code and comments such that it is
769 grouped a bit more logically.
770 (attach): Explicitly compare errno against 0.
771 (detach): Likewise. Use perror_with_name instead of
772 print_sys_errmsg.
773 * Makefile.in (infptrace.o): Update dependencies.
774
c5fa4245
MK
775 * ia64-linux-nat.c: Update copyright year.
776 (fetch_debug_register, store_debug_register)
777 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
778 PTRACE_TYPE_ARG3.
779 * config/ia64/nm-linux.h: Update copyright year.
780 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
781
387c058c
MK
782 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
783 from CORE_ADDR to struct frame_info *. Use
784 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
785 (amd64_linux_sigtramp_p): Adjust for changed signature of
786 and64_linux_sigtramp_start
787
277215a6
MK
788 * gdb_ptrace.h: GNU/Linux.
789
25f6178e
MK
790 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
791 Remove defines.
792
652fc137
MK
793 * infptrace.c: Include "gdb_assert.h".
794 (PTRACE_XFER_TYPE): Remove define.
795 (offsetof): Only define if U_REGS_OFFSET isn't defined.
796 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
797 Tweak comment.
798 (fetch_inferior_registers, store_inferior_registers): Remove
799 redundant culry braces. Tweak comment. s/regno/regnum.
800 * Makefile.in (infptrace.o): Update dependencies.
801
5885ab49
MK
802 * configure.in: Change test for return type of ptrace to default
803 to `long' instead of `int'.
804 * configure: Regenerate.
805
11003ae3
MK
8062004-08-21 Mark Kettenis <kettenis@gnu.org>
807
6b95110c
MK
808 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
809
bcb3dc3d
MK
810 * configure.in: Check for ttrace function.
811 * configure, config.in: Regenerate.
812
11003ae3
MK
813 * gdb_ptrace.h: New file.
814 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
815 <sys/ptrace.h>.
816 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
817 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
818 (attach): Don't define PT_ATTACH.
819 (detach): Don't define PT_DETACH.
820 * Makefile.in (gdb_ptrace_h): New variable.
821 (infptrace.o): Update dependencies.
822
f8707cac
MK
8232004-08-16 Mark Kettenis <kettenis@gnu.org>
824
825 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
826 instead of `int' if not already defined.
827 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
828 PTRACE_TYPE_ARG3.
829 * infptrace.c (call_ptrace): Revert change that replaced
830 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
831
655c5466
MK
8322004-08-15 Mark Kettenis <kettenis@gnu.org>
833
156e5ba7
MK
834 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
835 Remove defines.
836
de9a9e51
MK
837 * linux-nat.c (kill_inferior): Add missing third and fourth
838 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
839
88800403
MK
840 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
841 PTRACE_TYPE_RET.
842
849a1d7c
MK
843 * proc-why.c (proc_prettyfprint_why): Fix format string.
844
61ad16d1
MK
845 * solib-osf.c (osf_current_sos): Remove unsused label.
846
a6ed5501
MK
847 * configure.in: Add <ncurses/ncurses.h> to the list of possible
848 curses headers.
849 * configure, config.in: Regenerate.
850 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
851 <ncurses/ncurses.h>.
852
016ddeca
MK
853 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
854 * config/nm-nbsd.h: Update copyright year.
855 (PTRACE_ARG3_TYPE): Remove define.
856
49ec097f
MK
857 * sparc-nat.c (fetch_inferior_registers)
858 (store_inferior_registers, sparc_xfer_wcookie):
859 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
860
9f8e0089
MK
861 * alphabsd-nat.c (fetch_inferior_registers):
862 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
863 PTRACE_TYPE_ARG3.
864 * amd64bsd-nat.c (fetch_inferior_registers)
865 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
866 PTRACE_TYPE_ARG3.
867 * armnbsd-nat.c: Update copyright year.
868 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
869 (store_register, store_regs, store_fp_register, store_fp_regs):
870 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
871 * hppabsd-nat.c (fetch_inferior_registers)
872 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
873 PTRACE_TYPE_ARG3.
874 * i386bsd-nat.c (fetch_inferior_registers)
875 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
876 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
877 * m68kbsd-nat.c (fetch_inferior_registers)
878 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
879 PTRACE_TYPE_ARG3.
880 * m88kbsd-nat.c (fetch_inferior_registers)
881 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
882 PTRACE_TYPE_ARG3.
883 * mipsnbsd-nat.c: Update copyright year.
884 (fetch_inferior_registers, store_inferior_registers):
885 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
886 * ns32knbsd-nat.c: Update copyright year.
887 (fetch_inferior_registers, store_inferior_registers):
888 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
889 * ppcnbsd-nat.c (fetch_inferior_registers):
890 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
891 PTRACE_TYPE_ARG3.
892 * ppcobsd-nat.c (fetch_inferior_registers):
893 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
894 PTRACE_TYPE_ARG3.
895 * shnbsd-nat.c: Update copyright year.
896 (fetch_inferior_registers, store_inferior_registers):
897 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
898 * vaxbsd-nat.c (fetch_inferior_registers)
899 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
900 PTRACE_TYPE_ARG3.
901
655c5466
MK
902 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
903 PTRACE_TYPE_ARG3.
904 * infptrace.c (call_ptrace, child_resume, attach, detach)
905 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
906 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
907 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
908 PTRACE_TYPE_ARG3.
909
c40d0d10
MK
9102004-08-14 Mark Kettenis <kettenis@gnu.org>
911
5cb0ff31
MK
912 * defs.h: Remove out-of-date comment.
913 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
914 [!GETENV_PROVIDED] (getenv): Remove prototype.
915
5f0f34cb
MK
916 * standalone.c: Remove file.
917 * Makefile.in (standalone.o): Remove dependency.
918
7532965f
MK
919 * i386-linux-nat.c (dummy_sse_values): Remove function and
920 prototype.
921 (i386_linux_dr_get): Fix typo in comment.
922 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
923
1bdc6c53
MK
924 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
925
c40d0d10
MK
926 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
927 from declaration.
928 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
929 from definition.
930
64218d3e
MK
9312004-08-13 Mark Kettenis <kettenis@gnu.org>
932
933 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
934 parenthesis in definition.
935 * configure: Regenerated.
936
926c94e7
MC
9372004-08-12 Michael Chastain <mec.gnu@mindspring.com>
938
939 * PROBLEMS: Mention build/1411.
940
69489883
NN
9412004-08-09 Robert Millan <robertmh@gnu.org>
942
943 Committed by Nathanael Nerode.
944 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
945 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
946
ebb7c577
AC
9472004-08-12 Andrew Cagney <cagney@gnu.org>
948
949 * NEWS: Mention fixes in GDB 6.2.1.
950 * PROBLEMS: Remove mention of mips-irix.
951
232d697c
JB
9522004-08-11 Joel Brobecker <brobecker@gnat.com>
953
954 * config/powerpc/xm-aix.h: Delete.
955 * config/powerpc/aix.mh (MH_FILE): Remove.
956 * config/powerpc/aix432.mh (MH_FILE): Remove.
957
72f4e82b
JB
9582004-08-11 Joel Brobecker <brobecker@gnat.com>
959
960 * config/powerpc/aix.mh: Remove obsolete comment.
961 * config/powerpc/aix432.mh: Likewise.
962
0687ccb2
JB
9632004-08-11 Joel Brobecker <brobecker@gnat.com>
964
965 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
966
dbf3ada7
JB
9672004-08-11 Joel Brobecker <brobecker@gnat.com>
968
e08e1886
JB
969 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
970 this file is now empty.
971 * config/xm-aix4.h: Remove, this file is no longer included
972 anywhere.
973
9742004-08-11 Joel Brobecker <brobecker@gnat.com>
975
976 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
977 that file is now empty.
dbf3ada7
JB
978 (termdef): Remove prototype, function no longer used.
979
4c525ef6
JB
9802004-08-11 Joel Brobecker <brobecker@gnat.com>
981
982 * doc/gdbint.texinfo (Host Definition): Remove documentation
983 for USE_O_NOCTTY, no longer used.
984 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
985 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
986
82e0b968
JB
9872004-08-11 Joel Brobecker <brobecker@gnat.com>
988
989 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
990 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
991 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
992
f2acbe1c
MK
9932004-08-11 Mark Kettenis <kettenis@gnu.org>
994
daa98270
MK
995 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
996 instead of FIVE_ARG_PTRACE.
997
f2acbe1c
MK
998 * inflow.c (O_NOCTTY): Define to zero if not already defined.
999 (new_tty): Use O_NOCTTY unconditionally.
1000
cc377e6b
MK
10012004-08-10 Mark Kettenis <kettenis@gnu.org>
1002
1003 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1004 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1005 fflush on stdout.
1006
3bcc18fa
JB
10072004-08-10 Joel Brobecker <brobecker@gnat.com>
1008
1009 * xcoff_symfile_finish: Replace last call to xmfree by call
1010 to xfree.
1011
7936743b
AC
10122004-08-10 Andrew Cagney <cagney@gnu.org>
1013
cc503c8a
AC
1014 * main.c (captured_main): Delete call to init_malloc.
1015 * defs.h (init_malloc): Delete declaration.
1016 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1017 (init_malloc): Delete functions.
1018
2dc74dc1
AC
1019 * defs.h (xmfree): Delete.
1020 * utils.c (xmfree): Delete function.
1021 (xfree): Inline calls to xmfree and mfree.
1022 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1023 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1024 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1025 * somread.c (som_symfile_finish): Ditto.
1026 * objfiles.c (allocate_objfile, free_objfile):
1027 * nlmread.c (nlm_symfile_finish): Ditto.
1028 * hpread.c (hpread_symfile_finish): Ditto.
1029 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1030 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1031 * coffread.c (coff_symfile_finish): Ditto.
1032
aa2ee5f6
AC
1033 * defs.h (xmcalloc): Delete declaration.
1034 * utils.c (xmcalloc): Delete.
1035 (xcalloc): Inline calls to xmcalloc and mcalloc.
1036 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1037 xcalloc and xfree.
1038 * symtab.c (create_demangled_names_hash): Ditto.
1039
0efffb96
AC
1040 * defs.h (xmrealloc): Delete.
1041 * utils.c (xmrealloc): Delete.
1042 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1043 * symmisc.c (extend_psymbol_list): Use xrealloc.
1044 * source.c (find_source_lines): Ditto.
1045 * hpread.c (hpread_lookup_type): Ditto.
1046 * dbxread.c (add_bincl_to_list): Ditto.
1047
7936743b
AC
1048 * utils.c (xmmalloc): Delete.
1049 (xmalloc): Inline xmmalloc and mmalloc calls.
1050 (msavestring): Use xmalloc.
1051 * defs.h (xmmalloc): Delete declaration.
1052 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1053 xmmalloc.
1054 * symmisc.c (extend_psymbol_list): Ditto.
1055 * symfile.c (init_psymbol_list): Ditto.
1056 * source.c (find_source_lines): Ditto.
1057 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1058 * elfread.c (elf_symtab_read): Ditto.
1059 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1060 * coffread.c (coff_symfile_init): Ditto.
1061
252ab814
DC
10622004-08-10 David Carlton <carlton@bactrian.org>
1063
1064 * MAINTAINERS: Remove David Carlton from c++ testsuite
1065 maintainers.
1066
8f5ba92b
JG
10672004-08-10 Jerome Guitton <guitton@gnat.com>
1068
1069 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1070 print a line feed before the prompt.
1071
21749010
MK
10722004-08-10 Mark Kettenis <kettenis@gnu.org>
1073
1074 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1075
1f011ce2
JB
10762004-08-09 Joel Brobecker <brobecker@gnat.com>
1077
1078 General cleanup of the AIX xm include file:
1079 * config/xm-aix4.h (fd_set): Remove undefine.
1080 Remove include of <sys/select.h>.
1081 (HAVE_TERMIO): Remove define.
1082 (USG): Likewise.
1083 (NULL): Remove redefine.
1084 (alloca): Remove #pragma.
1085 (vfork): Remove define.
1086 (termdef): Remove.
1087 (SIGWINCH_HANDLER): Remove.
1088 (SIGWINCH_HANDLER_BODY): Remove.
1089
cf4e7692
MK
10902004-08-09 Mark Kettenis <kettenis@gnu.org>
1091
1092 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1093 GDB_OSABI_OPENBSD_ELF.
1094
ac5754fa
MK
10952004-08-07 Robert Millan <robertmh@gnu.org>
1096
1097 * bsd-kvm.c: Check for nlist.h before including it.
1098
086ec9eb
MK
10992004-08-09 Mark Kettenis <kettenis@gnu.org>
1100
bbe06c74
MK
1101 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1102 sigcontext' offset consistency checks for ancient BSD.
1103
3aa7b3b3
MK
1104 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1105
086ec9eb
MK
1106 * configure.in: Check for <sys/types.h>. Check return and
1107 argument types of ptrace.
1108 * configure, config.in: Regenerate.
1109
09991fa0
JB
11102004-08-09 Jim Blandy <jimb@redhat.com>
1111
1112 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1113 rs6000_register_sim_regno): Doc fixes.
1114
fed7ba43
JB
11152004-08-08 Joel Brobecker <brobecker@gnat.com>
1116
1117 * mips-tdep.c: Include "floatformat.h".
1118 (n32n64_floatformat_always_valid): New function.
1119 (floatformat_n32n64_long_double_big): New constant.
1120 (mips_gdbarch_init): Set size and format of long double
1121 for N32 and N64 ABIs.
1122 * Makefile.in (mips-tdep.o): Update dependencies.
1123
456fcf94
AC
11242004-08-08 Andrew Cagney <cagney@gnu.org>
1125
2f9b146e
AC
1126 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1127 print. Improve script's error messages.
1128 * gdbarch.h: Re-generate.
1129
456fcf94
AC
1130 * gdbarch.sh (pformat): New function.
1131 (float_format, double_format, long_double_format): List with bit
1132 members. Use pformat when printing.
1133 * gdbarch.c, gdbarch.h: Re-generate.
1134
69e9e646
NW
11352004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1136
1137 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1138 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1139 (ppcnbsd_supply_pcb): New function.
1140 (_initialize_ppcnbsd_nat): New prototype and function.
1141 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1142 (LOADLIBES): New variable.
1143 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1144
5ef2d0aa
AC
11452004-08-08 Andrew Cagney <cagney@gnu.org>
1146
1147 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1148 (builtin_type_ieee_double, builtin_type_ia64_quad)
1149 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1150 BE/LE floating-point types.
1151 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1152 (builtin_type_ieee_double, builtin_type_ia64_quad)
1153 (builtin_type_ia64_spill): Declare.
1154 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1155 (floatformat_ieee_double, floatformat_arm_ext)
1156 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1157 of LE/BE floatformats.
1158 * doublest.h: (struct floatformat, floatformat_ieee_single)
1159 (floatformat_ieee_double, floatformat_arm_ext)
1160 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1161
5c7f2947
MK
11622004-08-08 Mark Kettenis <kettenis@gnu.org>
1163
ecac404d
MK
1164 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1165
9b8607ce
MK
1166 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1167 instead of regcache_raw_supply when storing the registers.
1168
f6052080
MK
1169 * i386gnu-nat.c: Update copyright year.
1170 (gnu_store_registers): Don't use deprecated_registers and
1171 deprecated_registers_valid. Use regcache_valid_p and
1172 regcache_raw_supply instead.
1173
17777823
MK
1174 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1175 frame_pc_unwind.
1176
5240ceac
MK
1177 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1178 variables. Incapitalized "process".
1179
5c7f2947
MK
1180 * configure.in: Add cursesX to the list of possible curses libs.
1181 Add cursesX.h to the list of possible curses headers.
1182 * configure, config.in: Regenerate.
1183
da7d81e3
NW
11842004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1185
1186 * configure.in: Test for struct lwp in <sys/lwp.h>.
1187 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1188 the offset of l_addr in struct lwp.
1189
7f245d65
NW
11902004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1191
1192 * bsd-kvm.c: Include "gdbcore.h"
1193 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1194
47b3f456
AC
11952004-08-07 Andrew Cagney <cagney@gnu.org>
1196
70bd8e24
AC
1197 * gdbtypes.c (build_flt, build_complex): New functions.
1198 (gdbtypes_post_init): Use.
1199
9b0dea39
AC
1200 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1201
5cf7abac
AC
1202 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1203 through to builtin_type_uint128.
1204
64d2b26d
AC
1205 * c-exp.y: Use builtin_type function to obtain builtin types.
1206
7ad6570d
AC
1207 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1208 builtin_uint128.
1209 * gdbtypes.c (gdbtypes_post_init): Update.
1210 (build_gdbtypes): Move initialization of builtin_type_int0
1211 through to builtin_type_uint128 from here ...
1212 (_initialize_gdbtypes): ... to here.
1213 * d10v-tdep.c (d10v_register_type): Update.
1214
47b3f456
AC
1215 * doublest.c: Update copyright.
1216 (floatformat_from_length): Call error when floatformat is NULL.
1217 (extract_floating_by_length): Remove NULL fmt check.
1218 (store_floating_by_length): Ditto.
1219
0a8146bf
AC
12202004-08-07 Andrew Cagney <cagney@gnu.org>
1221
1222 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1223 that the register is valid.
1224
c0ccb908
MK
12252004-08-05 Mark Kettenis <kettenis@chello.nl>
1226
8e6bed05
MK
1227 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1228 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1229 struct frame_info *. Use safe_frame_unwind_memory instead of
1230 deprecated_read_memory_nobpt.
1231 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1232 changed signature of i386_linux_sigtramp_start and
1233 i386_linux_rt_sigtramp_start.
1234
24f9f5e3
MK
1235 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1236 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1237 instead of deprecated_read_memory_nobpt.
1238 (i386nbsd_sigtramp_p): Adjust for changed signature of
1239 i386nbsd_sigtramp_offset.
1240
c822af0c
MK
1241 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1242 safe_frame_unwind_memory instead of target_read_memory.
1243
c0ccb908
MK
1244 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1245 !NO_SYS_FILE.
1246 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1247 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1248 (_initialize_kernel_u_addr): Remove prototype and function.
1249 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1250 !NO_SYS_FILE.
1251 * xcoffread.c: Likewise.
1252
b9e1c0d6
MK
12532004-08-06 Mark Kettenis <kettenis@gnu.org>
1254
1255 * vax-nat.c: New file.
1256 * vaxbsd-nat.c: Tweak comment.
1257 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1258 vaxnbsd-tdep.c.
1259 (vax-nat.o): New dependency.
1260 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1261 (vax-*-ultrix2*): Remove.
1262 * config/vax/vax.mh: New file.
1263 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1264 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1265 (vax_register_u_addr): New prototype.
1266 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1267 * config/vax/vaxult2.mh: Remove file.
1268 * config/vax/vaxult.mh: Remove file.
1269 * config/vax/vaxbsd.mh: Remove file.
1270 * config/vax/vax.mt (TM_FILE): Remove.
1271 * config/vax/tm-vaxbsd.h: Remove file.
1272
9ad7bec7
JB
12732004-08-06 Joel Brobecker <brobecker@gnat.com>
1274
1275 * aix-thread.c (get_signaled_thread): New function.
1276 (iter_trap): Delete, no longer used.
1277 (iter_tid): New function.
1278 (pd_update): Find the thread that received the SIGTRAP signal
1279 by first locating the kernel thread, and then finding its
1280 associated thread.
1281
bf0d233d
UW
12822004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1283
1284 * lin-lwp.c (child_wait): Continue inferior after processing
1285 PTRACE_EVENT_CLONE event.
1286
d0f853e1
NN
12872004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1288
1289 * MAINTAINERS: Add self to Write-After-Approval.
1290
ab14aeb0
JJ
12912004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1292
1293 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1294 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1295
9c8dbfa9
AC
12962004-08-05 Andrew Cagney <cagney@gnu.org>
1297
c8f3ca46
AC
1298 * config/xm-sysv4.h: Delete file.
1299 * config/mips/xm-irix5.h: Delete file.
1300 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1301 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1302 * config/ia64/xm-aix.h: Delete file.
1303 * config/ia64/aix.mh (XM_FILE): Delete.
1304 * config/pa/xm-hppah.h: Delete file.
1305 * config/pa/hpux11w.mh (XM_FILE): Delete.
1306 * config/pa/hpux11.mh (XM_FILE): Delete.
1307 * config/pa/hpux1020.mh (XM_FILE): Delete.
1308 * config/pa/hppahpux.mh (XM_FILE): Delete.
1309
5f7daaff
AC
1310 * config/alpha/xm-alphalinux.h: Delete file.
1311 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1312 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1313 * config/alpha/xm-alphaosf.h: Delete file.
1314 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1315 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1316 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1317 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1318
69babf95
AC
1319 * config/i386/xm-i386v.h: Delete file.
1320 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1321 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1322 * config/i386/xm-i386sco.h: Delete file.
1323 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1324 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1325 * config/i386/xm-i386v4.h: Delete file.
1326 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1327 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1328 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1329 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1330
6f009c8a
AC
1331 * config/vax/xm-vax.h: Delete file.
1332 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1333 * config/vax/xm-vaxult2.h: Delete file.
1334 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1335 * config/vax/vaxult2.mh (XM_FILE): Delete.
1336 * config/vax/xm-vaxult.h: Delete file.
1337 * config/vax/vaxult.mh (XM_FILE): Delete.
1338 * config/vax/xm-vaxbsd.h: Delete file.
1339 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1340
9c8dbfa9
AC
1341 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1342 * gdbarch.h, gdbarch.c: Re-generate.
1343 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1344 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1345 * frame.h: Delete deprecated_read_fp from comments.
1346 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1347 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1348
84367a3e
MK
13492004-08-04 Mark Kettenis <kettenis@gnu.org>
1350
9c8e3411
MK
1351 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1352 trampoline in OpenBSD 3.5-current.
1353
b87bc0d8
MK
1354 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1355 SSE registers.
1356
84367a3e
MK
1357 * Makefile.in: Remove embedded page breaks.
1358
a44bddec
JB
13592004-08-04 Jim Blandy <jimb@redhat.com>
1360
7ab3286f
JB
1361 * regcache.c (regcache_raw_read): Assert that, after calling
1362 target_fetch_registers, the register we're reading is cached.
1363
a44bddec
JB
1364 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1365 a call to 'internal_error', with a more helpful error message.
1366 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1367 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1368
35124113
AC
13692004-08-04 Andrew Cagney <cagney@gnu.org>
1370
1371 * Makefile.in: Update dependencies.
1372
9f643768
JB
13732004-08-04 Jim Blandy <jimb@redhat.com>
1374
6ced10dd
JB
1375 Change the layout of the PowerPC E500 raw register cache to allow
1376 the lower 32-bit halves of the GPRS to be their own raw registers,
1377 not pseudoregisters.
1378 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1379 add ppc_ev0_upper_regnum flag.
1380 * rs6000-tdep.c: #include "reggroups.h".
1381 (spe_register_p): Recognize the ev upper half registers as SPE
1382 registers.
1383 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1384 registers.
1385 (e500_move_ev_register): New function.
1386 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1387 vector registers are the pseudo-registers now, formed by splicing
1388 together the gprs and the upper-half registers.
1389 (e500_register_reggroup_p): New function.
1390 (P): Macro deleted.
1391 (P8, A4): New macro.
1392 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1393 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1394 macros.
1395 (registers_e500): Rearrange register set so that the raw register
1396 set contains 32-bit GPRs and upper-half registers, and the SPE
1397 vector registers become pseudo-registers.
1398 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1399 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1400 register numbers are now the same for the E500 as they are for
1401 other PowerPC variants. Register e500_register_reggroup_p as the
1402 register group function for the E500.
1403 * Makefile.in (rs6000-tdep.o): Update dependencies.
1404
1405 Adapt PPC E500 native support to the new raw regcache layout.
1406 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1407 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1408 (fetch_spe_register, store_spe_register): Handle fetching/storing
1409 all the SPE registers at once, if regno == -1. These now take
1410 over the job of fetch_spe_registers and store_spe_registers.
1411 (fetch_spe_registers, store_spe_registers): Deleted.
1412 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1413 unconditionally; they're always raw. Fetch/store SPE upper half
1414 registers, if present, instead of ev registers.
1415 (fetch_register, store_register): Remove sanity checks: gprs are
1416 never pseudo-registers now, so we never need to even mention any
1417 registers that are ever pseudoregisters.
1418
9f643768
JB
1419 Use a fixed register numbering when communicating with the PowerPC
1420 simulator.
1421 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1422 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1423 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1424 New functions.
1425 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1426 init_sim_regno_table.
1427 * Makefile.in (gdb_sim_ppc_h): New variable.
1428 (rs6000-tdep.o): Update dependencies.
1429
1e2279c8
AC
14302004-08-02 Andrew Cagney <cagney@gnu.org>
1431
1d94326f
AC
1432 * cris-tdep.c (cris_register_size): Restore function, still used
1433 locally.
1434
331ae7ed
AC
1435 * gdbarch.sh (deprecated_target_read_fp)
1436 (deprecated_frame_locals_address, deprecated_frame_args_address)
1437 (deprecated_frame_chain_valid, deprecated_frame_chain)
1438 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1439 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1440 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1441 * gdbarch.h, gdbarch.c: Re-generate.
1442 * regcache.c (deprecated_read_fp): Do not call
1443 DEPRECATED_TARGET_READ_FP_P.
1444 * infcmd.c (default_print_registers_info): Do not call
1445 DEPRECATED_DO_REGISTERS_INFO.
1446 * frame-base.c (default_frame_locals_address): Do not call
1447 DEPRECATED_FRAME_LOCALS_ADDRESS.
1448 (default_frame_args_address): Do not call
1449 DEPRECATED_FRAME_ARGS_ADDRESS.
1450
1e2279c8
AC
1451 * gdbarch.sh (deprecated_register_raw_size)
1452 (deprecated_register_virtual_size:int): Delete.
1453 * gdbarch.h, gdbarch.c: Re-generate.
1454 * cris-tdep.c (cris_register_size): Delete.
1455 (cris_gdbarch_init): Update.
1456 * alpha-tdep.c (alpha_register_raw_size)
1457 (alpha_register_virtual_size): Delete.
1458 (alpha_gdbarch_init): Update.
1459
a90c06b4
AC
1460 * gdbarch.sh (deprecated_register_virtual_type)
1461 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1462 (deprecated_dummy_write_sp): Delete.
1463 * gdbarch.h, gdbarch.c: Re-generate.
1464
f42accbe
AC
1465 * gdbarch.sh (deprecated_register_bytes): Delete.
1466 * gdbarch.h, gdbarch.c: Re-generate.
1467 * regcache.c (deprecated_register_bytes): New function.
1468 * regcache.h (deprecated_register_bytes): Declare.
1469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1470 * v850-tdep.c (v850_gdbarch_init): Update.
1471 * sh64-tdep.c (sh64_gdbarch_init): Update.
1472 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1473 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1474 * mcore-tdep.c (mcore_gdbarch_init): Update.
1475 * cris-tdep.c (cris_gdbarch_init): Update.
1476 * arm-tdep.c (arm_gdbarch_init): Update.
1477 * remote.c (init_remote_state): Update.
1478 * remote-vx.c (vx_prepare_to_store): Update.
1479 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1480 * irix5-nat.c (fetch_core_registers): Update.
1481 * cris-tdep.c (cris_register_bytes_ok): Update.
1482 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1483
45c9dd44
AC
1484 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1485 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1486 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1487 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1488 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1489 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1490 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1491 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1492 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1493 with mips_insn16 and mips_insn32.
1494
3acba339
AC
1495 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1496 * rs6000-tdep.c (rs6000_push_dummy_call)
1497 (rs6000_extract_return_value): Use register_size.
1498 * xstormy16-tdep.c (xstormy16_get_saved_register)
1499 (xstormy16_extract_return_value): Ditto.
1500 * valops.c (value_assign): Ditto.
1501 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1502 * v850-tdep.c (v850_extract_return_value): Ditto.
1503 * tracepoint.c (collect_symbol): Ditto.
1504 * target.c (debug_print_register): Ditto.
1505 * stack.c (frame_info): Ditto.
1506 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1507 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1508 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1509 (store_register_using_P): Ditto.
1510 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1511 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1512 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1513 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1514 * regcache.c (deprecated_read_register_bytes)
1515 (deprecated_write_register_bytes, read_register)
1516 (write_register): Ditto.
1517 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1518 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1519 * monitor.c (monitor_supply_register, monitor_fetch_register)
1520 (monitor_store_register): Ditto.
1521 * mn10300-tdep.c (mn10300_pop_frame_regular)
1522 (mn10300_print_register): Ditto.
1523 * mipsv4-nat.c (fill_fpregset): Ditto.
1524 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1525 (mips64_fill_fpregset): Ditto.
1526 * mi/mi-main.c (register_changed_p, get_register)
1527 (mi_cmd_data_write_register_values): Ditto.
1528 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1529 * irix5-nat.c (fill_gregset, fetch_core_registers):
1530 * infrun.c (write_inferior_status_register): Ditto.
1531 * infptrace.c (fetch_register, store_register): Ditto.
1532 * infcmd.c (default_print_registers_info): Ditto.
1533 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1534 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1535 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1536 * hpux-thread.c (hpux_thread_fetch_registers)
1537 (hpux_thread_store_registers): Ditto.
1538 * hppah-nat.c (store_inferior_registers, fetch_register):
1539 * findvar.c (value_from_register): Ditto.
1540 * dve3900-rom.c (fetch_bitmapped_register):
1541 * cris-tdep.c (cris_gdbarch_init): Ditto.
1542 * alpha-tdep.h: Ditto.
1543 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1544
01e1877c
AC
1545 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1546 DEPRECATED_REGISTER_RAW_SIZE from comments.
1547 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1548 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1549 DEPRECATED_REGISTER_RAW_SIZE.
1550 * findvar.c (value_of_register): Simplify by assuming that the
1551 registers raw and virtual sizes are identical.
1552 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1553 comment.
1554 * arch-utils.c (generic_register_size): Simplify by assuming
1555 register_type.
1556
73f458fb
AC
1557 * regcache.c (legacy_read_register_gen, real_register)
1558 (legacy_write_register_gen): Delete, not used.
1559
336a3131
AC
1560 * regcache.c (struct regcache_descr): Delete legacy_p.
1561 (init_legacy_regcache_descr): Delete function.
1562 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1563 Do not use deprecated register functions.
1564 (regcache_raw_read, deprecated_write_register_gen):
1565 (deprecated_read_register_gen, regcache_raw_write): Delete code
1566 predicated on legacy_p.
1567 (register_size): Delete check against register raw size.
1568
c1d546cd
AC
1569 * cris-tdep.c (cris_register_type): Replace
1570 cris_register_virtual_type.
1571 (cris_gdbarch_init): Update, set register_type.
1572
48c2c0a6
AC
1573 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1574 * gdbarch.h, gdbarch.c: Re-generate.
1575 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1576 (arm_gdbarch_init) Do not set frameless function invocation.
1577 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1578 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1579 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1580 (frv_gdbarch_init): Do not set frameless function invocation.
1581 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1582 * sh-tdep.c (sh_gdbarch_init): Ditto.
1583 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1584 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1585 * avr-tdep.c (avr_gdbarch_init): Ditto.
1586
474093a6
AC
1587 * blockframe.c (legacy_frame_chain_valid): Delete function.
1588
3c109c8b
AC
1589 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1590 and pc. Update comments.
1591 (pc_in_dummy_frame): Delete function.
1592 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1593 use the "id".
1594 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1595 call_hi, top and pc, use the id.
1596 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1597
96860204
AC
1598 * dummy-frame.c: Include "gdb_string.h".
1599 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1600 (generic_save_dummy_frame_tos): Delete.
1601 (dummy_frame_push): New function, replaces above.
1602 * dummy-frame.h: Update copyright.
1603 (dummy_frame_push): Declare.
1604 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1605 (generic_save_call_dummy_addr): Delete declarations.
1606 * infcall.c: Include "dummy-frame.h".
1607 (call_function_by_hand): Add locals caller_regcache,
1608 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1609 with call to frame_save_as_regcache plus cleanup. Delete calls to
1610 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1611 Move clear_proceed_status to just before the resume, add call to
1612 dummy_frame_push (discard cleanup).
1613 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1614 (dummy-frame.o): Add $(gdb_string_h).
1615
d67ec5db
AC
16162004-08-01 Andrew Cagney <cagney@gnu.org>
1617
1618 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1619 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1620 * dummy-frame.c (find_dummy_frame): Delete.
1621 (struct dummy_frame_cache, dummy_frame_sniffer)
1622 (dummy_frame_prev_register, dummy_frame_this_id)
1623 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1624 frame unwinder using a dummy_frame_cache.
1625
a81dcb05
AC
16262004-08-01 Andrew Cagney <cagney@gnu.org>
1627
1628 * frame.h (frame_save_as_regcache): Declare.
1629 * frame.c (frame_save_as_regcache): New function.
1630 (do_frame_read_register): Replace do_frame_unwind_register.
1631 (frame_pop): Use frame_save_as_regcache.
1632 * dummy-frame.c (generic_push_dummy_frame): Use
1633 frame_save_as_regcache.
1634
aa495d11
JB
16352004-08-01 Joel Brobecker <brobecker@gnat.com>
1636
1637 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1638 file as included until we record the first line in the linetable.
1639
ff65ac78
AC
16402004-08-01 Andrew Cagney <cagney@gnu.org>
1641
1642 * frame.h (deprecated_pop_dummy_frame)
1643 (deprecated_read_register_dummy)
1644 (deprecated_generic_find_dummy_frame): Delete.
1645 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1646 (deprecated_read_register_dummy)
1647 (deprecated_find_dummy_frame_regcache)
1648 (discard_innermost_dummy)
1649 (deprecated_pop_dummy_frame): Delete.
1650 (dummy_frame_this_id): Simplify.
1651 (struct dummy_frame): Delete "fp" and "sp".
1652 (find_dummy_frame): Simplify.
1653 (generic_push_dummy_frame): Do not set "fp" or "sp".
1654 (fprint_dummy_frames): Do not print "fp" and "sp"
1655
37bdc87e
MK
16562004-08-01 Mark Kettenis <kettenis@gnu.org>
1657
1658 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1659 (struct i386_insn): New structure.
1660 (i386_match_insn): New function.
1661 (i386_frame_setup_skip_insns): New variable.
1662 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1663 array i386_frame_setup_insns of instructions that should be
1664 skipped inside the frame setup sequence.
1665
8241eaa6
AC
16662004-08-01 Andrew Cagney <cagney@gnu.org>
1667
5bc602c7
AC
1668 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1669 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1670 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1671 * stack.c (frame_info): Delete references to
1672 DEPRECATED_FRAME_INIT_SAVED_REGS and
1673 deprecated_get_frame_saved_regs.
1674 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1675 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1676 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1677 (frame_unwind_register_signed)
1678 (frame_unwind_register_unsigned)
1679 (frame_unwind_unsigned_register): Use register_size.
1680 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1681 (deprecated_frame_xmalloc_with_cleanup)
1682 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1683 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1684
03d363a1
AC
1685 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1686 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1687 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1688 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1689
8241eaa6
AC
1690 * infcall.c (call_function_by_hand): Do not use
1691 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1692 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1693 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1694 DEPRECATED_STACK_ALIGN.
1695
f00df8b7
AC
16962004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1697
1698 Committed by Andrew Cagney.
1699 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1700
eec63939
AC
17012004-08-01 Andrew Cagney <cagney@gnu.org>
1702
1703 * mips-tdep.c (mips16_frame_cache)
1704 (mips16_frame_this_id, mips16_frame_prev_register)
1705 (mips16_frame_unwind, mips16_frame_sniffer)
1706 (mips16_frame_base_address, mips16_frame_base)
1707 (mips16_frame_base_sniffer, mips32_frame_cache)
1708 (mips32_frame_this_id, mips32_frame_prev_register)
1709 (mips32_frame_unwind, mips32_frame_sniffer)
1710 (mips32_frame_base_address, mips32_frame_base)
1711 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1712 separate heuristic mips16 and mips32 unwinders.
1713 (mips_stub_frame_cache, mips_stub_frame_this_id)
1714 (mips_stub_frame_prev_register)
1715 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1716 (mips_stub_frame_base_address, mips_stub_frame_base)
1717 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1718 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1719 match true mdebug frames.
1720 (non_heuristic_proc_desc): Add forward declaration.
1721
e66299b3
AC
17222004-08-01 Andrew Cagney <cagney@gnu.org>
1723
83cbbf3e
AC
1724 * config/mips/tm-irix6.h: Delete file.
1725 * config/mips/tm-irix5.h: Delete file.
1726 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1727 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1728
22d41b37
AC
1729 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1730 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1731 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1732 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1733 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1734 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1735 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1736 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1737 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1738 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1739 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1740 (TARGET_SIGNAL_RAW_VALUES): Delete.
1741 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1742 Delete.
1743 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1744 (TARGET_HW_WATCH_LIMIT): Delete.
1745 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1746 * minimon.h: Delete file.
1747
e66299b3
AC
1748 * trad-frame.c (trad_frame_get_this_base)
1749 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1750 functions.
1751 * trad-frame.h (trad_frame_set_this_base)
1752 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1753
1f67027d
AC
17542004-07-31 Andrew Cagney <cagney@gnu.org>
1755
1756 * trad-frame.c (trad_frame_get_prev_register): Rename
1757 trad_frame_get_prev_register.
1758 * vax-tdep.c (vax_frame_prev_register): Update.
1759 * trad-frame.h: Update.
1760 * trad-frame.c (trad_frame_get_register): Update.
1761 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1762 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1763 Update.
1764 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1765 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1766 Update.
1767 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1768 Update.
1769 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1770 Update.
1771 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1772 Update.
1773 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1774 Update.
1775 * s390-tdep.c (s390_frame_prev_register)
1776 (s390_stub_frame_prev_register)
1777 (s390_sigtramp_frame_prev_register): Update.
1778 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1779 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1780 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1781 * m88k-tdep.c (m88k_frame_prev_register)
1782 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1783 * m32r-tdep.c (m32r_frame_prev_register): Update.
1784 * hppa-tdep.c (hppa_frame_prev_register_helper)
1785 * frv-tdep.c (frv_frame_prev_register): Update.
1786 * d10v-tdep.c (d10v_frame_prev_register): Update.
1787 * cris-tdep.c (cris_frame_prev_register): Update.
1788 * avr-tdep.c (avr_frame_prev_register): Update.
1789 * arm-tdep.c (arm_prologue_prev_register)
1790 (arm_sigtramp_prev_register): Update.
1791
c1bf6f65
AC
17922004-07-31 Andrew Cagney <cagney@gnu.org>
1793
1794 * frame.h (legacy_saved_regs_unwind)
1795 (legacy_frame_chain_valid, legacy_frame_p)
1796 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1797 * dummy-frame.c (dummy_frame_this_id): Simplify.
1798 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1799 * frame.c (struct frame_info): Delete the field "type".
1800 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1801 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1802 (legacy_saved_regs_unwind, legacy_frame_p)
1803 (frame_type_from_pc): Delete.
1804 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1805 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1806
dc856692
MK
18072004-07-31 Mark Kettenis <kettenis@gnu.org>
1808
5a5effe1
MK
1809 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1810 indentation.
1811
d4fd50a6
MK
1812 * mips-nat.c: Remove file.
1813 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1814 (mips-nat.o): Remove dependency.
1815
2689df5a
MK
1816 * infptrace.c: Update copyright year.
1817 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1818 explicitly setting the buffer to all zeroes.
1819
dc856692
MK
1820 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1821 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1822
763910e0
AC
18232004-07-30 Andrew Cagney <cagney@gnu.org>
1824
1825 * GDB 6.2 released from gdb_6_2-branch.
1826
0b66e38c
EZ
18272004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1828
1829 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1830
1831 * exec.c (exec_file_attach):
1832 * nto-tdep.c (nto_find_and_open_solib):
1833 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1834 * solib.c (solib_open):
1835 * somsolib.c (som_solib_sizeof_symbol_table):
1836 * source.c (is_regular_file, openp, open_source_file):
1837 * symfile.c (symfile_bfd_open):
1838 * wince.c (upload_to_device): Differentiate between the search for
1839 binary and source files.
1840
be7d7357
AC
18412004-07-30 Andrew Cagney <cagney@gnu.org>
1842
1843 * complaints.c (_initialize_complaints): Pass NULL to
1844 add_setshow_zinteger_cmd for help_doc.
1845 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1846
ddc9cd0f
AC
18472004-07-30 Andrew Cagney <cagney@gnu.org>
1848
1849 Fix PR i18n/761.
1850 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1851 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1852 $(PACKAGE).pot and update-po.
1853 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1854 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1855 (update-po): New rules.
1856 (localedir): Define using autoconf.
1857 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1858 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1859 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1860 * configure.in: Generate CATALOGS and LINGUAS from contents of
1861 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1862 * configure: Re-generate.
1863 * po/gdbtext: New file
1864
e92f3704
JG
18652004-07-30 Jerome Guitton <guitton@gnat.com>
1866
1867 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1868 order.
1869
b0f35d58
DL
18702004-07-30 David Lecomber <dsl@sources.redhat.com>
1871
1872 * dwarf2read.c (read_file_scope): Set producer if attribute
1873 present.
1874 (struct dwarf2_cu): Added new member producer.
1875
ce7d4522
JG
18762004-07-30 Jerome Guitton <guitton@gnat.com>
1877
1878 * inflow.c (kill_command): release file handles in BFD.
1879 * exec.c (exec_file_attach): Ditto.
1880 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1881
05ee07c7
AC
18822004-07-29 Andrew Cagney <cagney@gnu.org>
1883
1884 * PROBLEMS (mips-irix): Note that it is broken.
1885
62eceb47
AC
18862004-07-29 Andrew Cagney <cagney@gnu.org>
1887
e57b8d41
AC
1888 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1889 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1890
d334389b
AC
1891 * config/xm-nbsd.h: Delete file.
1892 * config/arm/xm-nbsd.h: Delete file.
1893 * config/i386/xm-nbsd.h: Delete file.
1894 * config/ns32k/xm-nbsd.h: Delete file.
1895 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1896 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1897 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1898 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1899 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1900
e910f676
AC
1901 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1902 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1903 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1904 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1905 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1906 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1907
6fa856b9
AC
1908 * config/powerpc/xm-linux.h: Delete empty file.
1909 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1910 * config/powerpc/linux.mh (XM_FILE): Delete.
1911 * config/m68k/xm-linux.h: Delete empty file.
1912 * config/m68k/linux.mh (XM_FILE): Delete.
1913 * config/ia64/xm-linux.h: Delete empty file.
1914 * config/ia64/linux.mh (XM_FILE): Delete.
1915 * config/arm/xm-linux.h: Delete empty file.
1916 * config/arm/linux.mh (XM_FILE): Delete.
1917
471ae5ae
AC
1918 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1919 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1920 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1921 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1922 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1923 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1924 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1925 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1926
62eceb47
AC
1927 * config/m68k/xm-m68k.h: Delete file.
1928 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1929 copyright.
1930 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1931 * config/pa/xm-linux.h: Delete empty file.
1932 * config/pa/linux.mh (XM_FILE): Delete.
1933 * config/i386/xm-i386.h: Delete empty file.
1934 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1935 "i386/xm-i386.h".
1936 * config/i386/obsdaout.mh (XM_FILE): Delete.
1937 * config/i386/obsd64.mh (XM_FILE): Delete.
1938 * config/i386/fbsd64.mh (XM_FILE): Delete.
1939 * config/i386/nto.mh (XM_FILE): Delete.
1940 * config/i386/obsd.mh (XM_FILE): Delete.
1941 * config/i386/linux64.mh (XM_FILE): Delete.
1942 * config/i386/linux.mh (XM_FILE): Delete.
1943 * config/i386/i386sol2.mh (XM_FILE): Delete.
1944 * config/i386/i386gnu.mh (XM_FILE): Delete.
1945 * config/i386/fbsd.mh (XM_FILE): Delete.
1946 * config/i386/nbsd64.mh (XM_FILE): Delete.
1947
c35f4ffc
AC
19482004-07-29 Andrew Cagney <cagney@gnu.org>
1949
1950 * config/pa/xm-linux.h: Do not include "floatformat.h".
1951 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1952 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1953 * config/i386/xm-i386.h: Do not include "floatformat.h".
1954 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1955 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1956 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1957 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1958 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1959 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1960 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1961 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1962 * configure, config.in: Regenerate.
1963 * configure.host (gdb_host_float_format, gdb_host_double_format)
1964 (gdb_host_long_double_format): Set according to the host.
1965
624a44a3
AC
19662004-07-29 Andrew Cagney <cagney@gnu.org>
1967
1968 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1969
0dea2468
AC
19702004-07-28 Andrew Cagney <cagney@gnu.org>
1971
1972 * PROBLEMS: Mention threads/1650.
1973 * NEWS: Mention the NPTL fix.
1974
b3f42336
AC
19752004-07-28 Andrew Cagney <cagney@gnu.org>
1976
1977 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1978 (add_setshow_cmd_full): Make static.
1979 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1980 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1981 * cli/cli-decode.c (add_setshow_filename_cmd)
1982 (add_setshow_string_cmd): New functions.
1983 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1984 * mips-tdep.c (_initialize_mips_tdep): Update.
1985 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1986 * cli/cli-logging.c (_initialize_cli_logging): Update.
1987 * complaints.c (_initialize_complaints): Update.
1988 * remote.c (_initialize_remote): Update.
1989
3b64bf98
AC
19902004-07-28 Andrew Cagney <cagney@gnu.org>
1991
1992 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1993 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1994 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1995 print parameters. Make string parameters constant.
1996 * command.h: Update. Update copyright.
1997 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1998 * observer.c (_initialize_observer): Ditto.
1999 * frame.c (_initialize_frame): Ditto.
2000 * complaints.c (_initialize_complaints): Ditto.
2001 * maint.c (_initialize_maint_cmds): Ditto.
2002 * target.c (initialize_targets): Ditto.
2003 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2004 * infcall.c (_initialize_infcall): Ditto.
2005 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2006 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2007 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2008 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2009 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2010
e9667a65
AC
20112004-07-28 Andrew Cagney <cagney@gnu.org>
2012
54a5b07d
AC
2013 * gdbtypes.c (lookup_primitive_typename): Delete function.
2014 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2015 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2016 * gdbtypes.c (lookup_typename): Ditto.
2017 * f-exp.y (yylex): Ditto.
2018 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2019
e9667a65
AC
2020 * scm-lang.c (c_builtin_types): Delete extern declaration.
2021 (scm_language_defn): Replace
2022 string_char_type and primitive_type_vector with
2023 la_language_arch_info.
2024 * jv-lang.c (java_language_defn): Replace
2025 string_char_type and primitive_type_vector with
2026 la_language_arch_info.
2027 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2028 c_builtin_types in comment.
2029 * c-lang.h (struct language_arch_info): Declare opaque.
2030 (c_language_arch_info): Declare.
2031 (c_builtin_types): Delete declaration.
2032 * c-lang.c (c_language_arch_info): Set string_char_type to
2033 builtin_char, not builtin_true_char. Make global.
2034 (c_builtin_types): Delete array.
2035 (asm_language_defn, minimal_language_defn): Replace
2036 string_char_type and primitive_type_vector with
2037 la_language_arch_info.
2038
685419e2
AC
20392004-07-28 Andrew Cagney <cagney@gnu.org>
2040
2041 * gdbtypes.h (struct builtin_type): Rename true_char to
2042 builtin_true_char.
2043 * gdbtypes.c (gdbtypes_post_init): Update.
2044 * c-lang.c (arch_info): New function.
2045 (enum c_primitive_types): New enum.
2046 (c_language_defn): Instead of string_char_type and
2047 primitive_type_vector set la_language_arch_info.
2048
5a44ea29
AC
20492004-07-28 Andrew Cagney <cagney@gnu.org>
2050
2051 * language.h (struct language_arch_info): Fix typo
2052 s/primative/primitive/.
2053 * gdbtypes.c (lookup_primitive_typename): Ditto.
2054 * language.c (language_lookup_primitive_type_by_name)
2055 (unknown_language_arch_info): Ditto.
2056
f290d38e
AC
20572004-07-27 Andrew Cagney <cagney@gnu.org>
2058
2059 * defs.h (enum language): Add nr_languages.
2060 * language.h (struct language_arch_info): Define.
2061 (struct language_defn): Add la_language_arch_info.
2062 (language_lookup_primative_type_by_name): Declare.
2063 (language_string_char_type): Declare.
2064 * language.c (_initialize_language, language_gdbarch_post_init)
2065 (struct language_gdbarch, language_gdbarch_data): Implement
2066 per-architecture language information.
2067 (unknown_language_arch_info, language_string_char_type)
2068 (language_lookup_primative_type_by_name): New functions.
2069 (unknown_language_defn, auto_language_defn)
2070 (local_language_defn): Set la_language_arch_info to
2071 unknown_language_arch_info.
2072 (unknown_builtin_types): Delete.
2073 * gdbtypes.c (lookup_primitive_typename): Use
2074 language_lookup_primative_type_by_name.
2075 (create_string_type): Use language_string_char_type.
2076 * values.c (value_from_string): Use language_string_char_type.
2077 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2078 * p-lang.c (pascal_language_defn): Ditto.
2079 * m2-lang.c (m2_language_defn): Ditto.
2080 * jv-lang.c (java_language_defn): Ditto.
2081 * objc-lang.c (objc_language_defn): Ditto.
2082 * f-lang.c (f_language_defn): Ditto.
2083 * c-lang.c (c_language_defn, cplus_language_defn)
2084 (asm_language_defn, minimal_language_defn): Ditto.
2085
000177f0
AC
20862004-07-27 Andrew Cagney <cagney@gnu.org>
2087
2088 * gdbtypes.h (struct builtin_type): Declare.
2089 (builtin_type): Declare.
2090 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2091 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2092 (gdbtypes_post_init): New function.
2093 (builtin_type): New function.
2094
e22f895c
KI
20952004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2096
2097 * remote-m32r-sdi.c: Fix breakpoint bug.
2098 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2099 recv_char_data, recv_long_data): New functions to replace communication
2100 sequences.
2101
536517dd
MC
21022004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2103
2104 Document PR threads/1650.
2105 * PROBLEMS (Threads): Document problem with many threads
2106
a0a44d18
AC
21072004-07-26 Andrew Cagney <cagney@gnu.org>
2108
2109 * gdb-mi.el: Move from here ...
2110 * mi/gdb-mi.el: ... to here.
2111
7ac4ac06
AC
21122004-07-26 Andrew Cagney <cagney@gnu.org>
2113
2114 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2115 * main.c (captured_main): When in batch mode always detach.
2116
a1b461bf
AC
21172004-07-26 Andrew Cagney <cagney@gnu.org>
2118
2119 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2120 and h8300 as broken.
2121 * NEWS: END-OF-LIFE frame compatibility module.
2122 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2123 specific comments.
2124
cb1a6d5f
AC
21252004-07-26 Andrew Cagney <cagney@gnu.org>
2126
2127 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2128 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2129 * wince.c (_initialize_wince): Update.
2130 * win32-nat.c (_initialize_win32_nat): Update.
2131 * varobj.c (_initialize_varobj): Update.
2132 * valops.c (_initialize_valops): Update.
2133 * utils.c (initialize_utils, initialize_utils): Update.
2134 * tui/tui-win.c (_initialize_tui_win): Update.
2135 * top.c (init_main): Update.
2136 * symfile.c (_initialize_symfile): Update.
2137 * source.c (_initialize_source): Update.
2138 * somsolib.c (_initialize_som_solib): Update.
2139 * solib.c (_initialize_solib): Update.
2140 * solib-frv.c (_initialize_frv_solib): Update.
2141 * serial.c (_initialize_serial): Update.
2142 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2143 * remote.c (_initialize_remote, _initialize_remote): Update.
2144 * remote-vx.c (_initialize_vx): Update.
2145 * remote-utils.c (_initialize_sr_support): Update.
2146 * remote-sds.c (_initialize_remote_sds): Update.
2147 * remote-mips.c (_initialize_remote_mips): Update.
2148 * remote-e7000.c (_initialize_remote_e7000): Update.
2149 * proc-api.c (_initialize_proc_api): Update.
2150 * printcmd.c: Update.
2151 * parse.c (_initialize_parse): Update.
2152 * pa64solib.c (_initialize_pa64_solib): Update.
2153 * p-valprint.c (_initialize_pascal_valprint): Update.
2154 * monitor.c (_initialize_remote_monitors): Update.
2155 * mips-tdep.c (_initialize_mips_tdep): Update.
2156 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2157 * maint.c (_initialize_maint_cmds): Update.
2158 * lin-lwp.c (_initialize_lin_lwp): Update.
2159 * language.c (_initialize_language): Update.
2160 * kod.c (_initialize_kod): Update.
2161 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2162 * i386-tdep.c (_initialize_i386_tdep): Update.
2163 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2164 * gdbarch.sh: Update.
2165 * gdbarch.c: Re-generate.
2166 * gdb-events.sh: Update.
2167 * gdb-events.c: Re-generate.
2168 * frame.c (_initialize_frame): Update.
2169 * exec.c: Update.
2170 * demangle.c (_initialize_demangler): Update.
2171 * dcache.c (_initialize_dcache): Update.
2172 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2173 * cp-valprint.c (_initialize_cp_valprint): Update.
2174 * corefile.c (_initialize_core): Update.
2175 * command.h: Update.
2176 * cli/cli-decode.h: Update.
2177 * cli/cli-cmds.c (init_cli_cmds): Update.
2178 * charset.c (_initialize_charset): Update.
2179 * breakpoint.c (_initialize_breakpoint): Update.
2180 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2181 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2182 * aix-thread.c (_initialize_aix_thread): Update.
2183
b4632131
MK
21842004-07-24 Mark Kettenis <kettenis@gnu.org>
2185
2186 Partial fix for PR backtrace/1718.
2187 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2188 that GCC migrates into the prolugue. Don't handle any
2189 instructions that clobber %ebx.
2190
822c9732
AC
21912004-07-23 Andrew Cagney <cagney@gnu.org>
2192
2193 Use regcache_raw_collect instead of regcache_collect.
2194 * regcache.h (regcache_collect): Delete declaration.
2195 * regcache.c (regcache_colect): Delete function.
2196 * win32-nat.c (do_child_store_inferior_registers): Update.
2197 * sol-thread.c (sol_thread_store_registers): Update.
2198 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2199 * rs6000-nat.c (store_register): Update.
2200 * remote.c (store_register_using_P, remote_store_registers): Update.
2201 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2202 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2203 (fill_vrregset, store_spe_registers, fill_gregset)
2204 (fill_gregset): Update.
2205 * nto-procfs.c (procfs_store_registers): Update.
2206 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2207 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2208 * m68klinux-nat.c (store_register, fill_gregset): Update.
2209 * m68k-tdep.c (fill_gregset): Update.
2210 * infptrace.c (store_register): Update.
2211 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2212 * i386-linux-nat.c (store_register, fill_gregset): Update.
2213 * hppa-linux-nat.c (fill_gregset): Update.
2214 * go32-nat.c (store_register): Update.
2215 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2216 (store_fp_regs): Update.
2217 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2218 (store_nwfpe_extended, store_fpregister, store_fpregs)
2219 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2220 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2221 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2222 (store_regs_user_thread, store_regs_kernel_thread): Update.
2223
32b05c07
MK
22242004-07-24 Mark Kettenis <kettenis@gnu.org>
2225
2226 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2227 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2228 encoding.
2229 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2230 member of `struct comp_unit'.
2231
8567c30f
AC
22322004-07-23 Andrew Cagney <cagney@gnu.org>
2233
2234 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2235 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2236
f6da8dd8
MH
22372004-07-23 Martin Hunt <hunt@redhat.com>
2238 Kevin Buettner <kevinb@redhat.com>
2239
2240 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2241 alignment was being added to the offset instead of multiplied.
2242
bd921882
MK
22432004-07-23 Mark Kettenis <kettenis@gnu.org>
2244
24f033e8
MK
2245 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2246 changed signal trampoline in OpenBSD 3.5-current.
2247
90f3cecd
MK
2248 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2249 <machine/pcb.h> and "bsd-kvm.h".
2250 (sparc64nbsd_supply_pcb): New function.
2251 (_initialize_sparc64nbsd_nat): Renamed from
2252 _initialize_sparcnbsd_nat. Enable libkvm interface.
2253 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2254 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2255 (LOADLIBES): New variable.
2256
a4954a62
MK
2257 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2258
bd921882
MK
2259 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2260
23a6d369
AC
22612004-07-21 Andrew Cagney <cagney@gnu.org>
2262
2263 Use regcache_raw_supply instead of supply_register.
2264 * regcache.h (supply_register): Delete declaration.
2265 * regcache.c (supply_register): Delete function.
2266 * wince.c (do_child_fetch_inferior_registers): Update.
2267 * win32-nat.c (do_child_fetch_inferior_registers)
2268 (fetch_elf_core_registers): Update.
2269 * v850ice.c (v850ice_fetch_registers): Update.
2270 * thread-db.c (thread_db_store_registers): Update.
2271 * sol-thread.c (sol_thread_store_registers): Update.
2272 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2273 * rs6000-nat.c (fetch_register): Update.
2274 * rom68k-rom.c (rom68k_supply_one_register): Update.
2275 * remote.c (remote_wait, remote_async_wait): Update.
2276 * remote-st.c (get_hex_regs): Update.
2277 * remote-sim.c (gdbsim_fetch_register): Update.
2278 * remote-sds.c (sds_fetch_registers): Update.
2279 * remote-rdp.c (remote_rdp_fetch_register): Update.
2280 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2281 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2282 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2283 * remote-hms.c (init_hms_cmds): Update.
2284 * remote-est.c (init_est_cmds): Update.
2285 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2286 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2287 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2288 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2289 (fetch_register, supply_vrregset, supply_vrregset)
2290 (fetch_spe_registers): Update.
2291 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2292 * monitor.c (monitor_supply_register): Update.
2293 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2294 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2295 (mipsnbsd_supply_fpreg): Update.
2296 * mips-nat.c (fetch_inferior_registers)
2297 (fetch_core_registers): Update.
2298 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2299 (supply_fpregset, mips64_supply_gregset)
2300 (mips64_supply_fpregset): Update.
2301 * m68klinux-nat.c (fetch_register, supply_gregset)
2302 (supply_fpregset): Update.
2303 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2304 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2305 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2306 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2307 * infptrace.c (fetch_register): Update.
2308 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2309 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2310 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2311 (gnu_fetch_registers, gnu_store_registers): Update.
2312 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2313 * i386-linux-nat.c (fetch_register, supply_gregset)
2314 (dummy_sse_values): Update.
2315 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2316 * hppah-nat.c (fetch_register): Update.
2317 * hppa-linux-nat.c (fetch_register, supply_gregset)
2318 (supply_fpregset): Update.
2319 * go32-nat.c (fetch_register): Update.
2320 * dve3900-rom.c (fetch_bitmapped_register)
2321 (_initialize_r3900_rom): Update.
2322 * cris-tdep.c (supply_gregset): Update.
2323 * abug-rom.c (init_abug_cmds): Update.
2324 * core-aout.c (fetch_core_registers): Update.
2325 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2326 (fetch_register, fetch_fp_register): Update.
2327 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2328 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2329 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2330 * alphanbsd-tdep.c (fetch_core_registers): Update.
2331 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2332 * alpha-nat.c (fetch_osf_core_registers)
2333 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2334 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2335 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2336
73cc75f3
AC
23372004-07-21 Andrew Cagney <cagney@gnu.org>
2338
2339 * PROBLEMS: Mention breakpoints/1702.
2340 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2341 that is known to work.
2342
a53c66de
AC
23432004-07-21 Andrew Cagney <cagney@gnu.org>
2344
2345 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2346 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2347 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2348 (handle_inferior_event): Wrap call to deprecated
2349 IGNORE_HELPER_CALL in #ifdef.
2350 * config/mips/tm-nbsd.h: Update.
2351
708ff411
JB
23522004-07-20 Jim Blandy <jimb@redhat.com>
2353
412b3060
JB
2354 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2355 bfd_mach_ppc has no segment registers.
2356
13ac140c
JB
2357 Include PowerPC SPR numbers for special-purpose registers.
2358 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2359 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2360 new member in initializer.
2361 (S, S4, SN4, S64): New macros for defining special-purpose
2362 registers.
2363 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2364 registers_403, registers_403GC, registers_505, registers_860,
2365 registers_601, registers_602, registers_603, registers_604,
2366 registers_750, registers_e500): Use them.
2367
708ff411
JB
2368 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2369 replace references with expression used to initialize variable.
2370
1f602b35
AC
23712004-07-20 Andrew Cagney <cagney@gnu.org>
2372
2373 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2374 read_memory_nobpt.
2375 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2376 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2377 (s390_sigtramp_frame_sniffer): Update.
2378 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2379 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2380 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2381 (mips32_fetch_instruction): Update.
2382 * mcore-tdep.c (get_insn): Update.
2383 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2384 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2385 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2386 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2387 (i386_linux_rt_sigtramp_start): Update.
2388 * i386-linux-nat.c (child_resume): Update.
2389 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2390 * hppa-linux-tdep.c (insns_match_pattern): Update.
2391 * gdbcore.h: Update.
2392 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2393 * frame.c (safe_frame_unwind_memory): Update.
2394 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2395 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2396 * alpha-tdep.c (alpha_read_insn): Update.
2397
2cd8546d
AC
23982004-07-20 Andrew Cagney <cagney@gnu.org>
2399
2400 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2401 containing both bytes and mask. Add "frame_type".
2402 * tramp-frame.c (tramp_frame_start): Update.
2403 (tramp_frame_prepend_unwinder): Update.
2404 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2405 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2406 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2407 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2408
f928dd62
EZ
24092004-07-19 Eli Zaretskii <eliz@gnu.org>
2410
2411 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2412 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2413 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2414 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2415
d5c560f7
AC
24162004-07-17 Andrew Cagney <cagney@gnu.org>
2417
860660cb
AC
2418 * NEWS, PROBLEMS: Update for 6.2.
2419
8c266f54
AC
2420 * README: Update to 6.2.
2421
a552edd9
AC
2422 * utils.c (xvasprintf): Call xstrvprintf.
2423
c4a172b5
AC
2424 * parse.c: Update copyright.
2425 (null_post_parser): Eliminate ARGSUSED.
2426
da745b36
AC
2427 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2428 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2429 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2430
9cbc6ef0
AC
2431 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2432 * ppc-linux-nat.c: Use "Linux kernel".
2433 * hppa-linux-tdep.c: Use GNU/Linux.
2434 * hppa-linux-nat.c: Use GNU/Linux.
2435 * dwarfread.c: Add [sic] to use of Linux.
2436
1b89295f
AC
2437 * hppa-linux-nat.c: Do not include <string.h>.
2438 (supply_fpregset): Remove "register" attribute.
2439
d5c560f7
AC
2440 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2441
7ddd7709
MK
24422004-07-17 Mark Kettenis <kettenis@gnu.org>
2443
b1d19a62
MK
2444 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2445 * configure, config.in: Regenerated.
2446
7ddd7709
MK
2447 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2448 "bsd-kvm.h".
2449 (vaxbsd_supply_pcb): New function.
2450 (_initialize_vaxbsd_nat): New prototype and function.
2451 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2452 solib-sunos.o.
2453 (LOADLIBES): New variable.
2454 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2455 (LOADLIBES): New variable.
2456 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2457 (LOADLIBES): New variable.
2458 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2459
2c07db7a
AC
24602004-07-16 Andrew Cagney <cagney@gnu.org>
2461
2462 * defs.h (event_loop_p): Replace variable declaration with macro,
2463 always 1.
2464 * main.c (captured_main): Delete options "-async" and "-noasync".
2465 (event_loop_p): Delete variable.
2466 * NEWS: Mention that "-async" and "-noasync" were removed.
2467
717eb1cf
AC
24682004-07-16 Andrew Cagney <cagney@gnu.org>
2469
2470 * remote-m32r-sdi.c: Re-indent.
2471
c101bc14
JB
24722004-07-16 Jim Blandy <jimb@redhat.com>
2473
5109a438
JB
2474 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2475 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2476 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2477 missing MPC823 SPRs.
2478 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2479 incorrect. (This was corrected in GDB's register name tables on
2480 2004-07-14.)
2481
c101bc14
JB
2482 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2483 should be "esasrr" ("ESA Save and Restore Register").
2484
7ce450bd
AC
24852004-07-16 Andrew Cagney <cagney@gnu.org>
2486
2487 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2488 calls, no longer applicable. Update comments and rename parameter
2489 "step_frame" to "return_frame".
2490
ca73dd9d
AC
24912004-07-16 Andrew Cagney <cagney@gnu.org>
2492
2493 * frame.c (fprint_field): New function.
2494 (fprint_frame_id): Use fprint_field.
2495
31941f6d
JB
24962004-07-15 Joel Brobecker <brobecker@gnat.com>
2497
2498 * ada-lang.c (ada_language_defn): Remove commented out code.
2499
f86a7158
JB
25002004-07-15 Jim Blandy <jimb@redhat.com>
2501
2502 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2503 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2504
c24791ec
JB
25052004-07-14 Jim Blandy <jimb@redhat.com>
2506
29bb1356
JB
2507 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2508
cc98b5cc
JB
2509 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2510
8f088af7
JB
2511 * ppc-tdep.h (ppc_num_srs): New enum constant.
2512
0ea0ec5f
JB
2513 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2514 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2515 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2516 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2517 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2518 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2519 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2520 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2521 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2522 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2523 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2524 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2525 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2526 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2527 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2528 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2529 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2530 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2531 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2532 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2533 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2534 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2535 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2536 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2537 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2538 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2539 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2540 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2541 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2542 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2543 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2544 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2545 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2546 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2547 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2548 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2549 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2550 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2551 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2552 special-purpose register numbers.
2553
c24791ec
JB
2554 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2555 manual mentions 'md_twb', but many mention 'm_twb', and at that
2556 point in the register list.)
2557
d833db3b
AC
25582004-07-14 Andrew Cagney <cagney@gnu.org>
2559
2560 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2561 instead of "internal-error".
2562
080228b2
JB
25632004-07-10 Joel Brobecker <brobecker@gnat.com>
2564
2565 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2566 that was inserted inside a comment.
2567
c268433a
RC
25682004-07-10 Randolph Chung <tausq@debian.org>
2569
2570 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2571 function.
2572 (hppa_hpux_push_dummy_code): New function.
2573 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2574 Set find_global_pointer method.
2575
71009278
MK
25762004-07-10 Mark Kettenis <kettenis@gnu.org>
2577
2578 * NEWS: Mention BSD libkvm interface.
2579
b2fa5097
MS
25802004-07-10 Michael Snyder <msnyder@redhat.com>
2581
2582 * symfile.c (generic_load): Comment typo.
2583 * stack.c (get_selected_block): Ditto.
2584 * regcache.c (regcache_cooked_read): Ditto.
2585 * monitor.c (monitor_debug): Ditto.
2586 * mips-tdep.c (mips_read_pc): Ditto.
2587 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2588 * gdb_mbuild.sh: Ditto.
2589 * gdbarch.sh: Ditto.
2590 * gdbarch.h: Ditto.
2591
c3e5cd34
PH
25922004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2593
8a2225b2
PH
2594 * ada-tasks.c: Remove file.
2595
c3e5cd34
PH
2596 Remove ARI problems:
2597
2598 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2599 beginning of line.
2600
2601 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2602 Add comment.
2603 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2604 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2605 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2606 (UMIN_OF_SIZE): Remove.
2607 (max_of_type): New function to replace orphan macro in gdbtypes.h
2608 (min_of_type): Ditto.
2609 (discrete_type_high_bound): Use max_of_type.
2610 (discrete_type_low_bound): Use min_of_type.
2611 (possible_user_operator_p): Move operator to beginning of line.
2612 (ada_is_variant_part): Ditto.
2613 (ensure_lval): Rewrite to avoid deprecated operations.
2614 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2615 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2616 (ada_enum_name): Remove assignments in 'if' statements.
2617 (build_ada_types): Add gdbarch parameter.
2618 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2619 with gdbarch_data_register_post_init.
2620 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2621 add_show_from_set.
2622
2623 * ada-valprint.c (inspect_it): Remove declaration.
2624 (repeat_count_threshold): Remove declaration.
2625 (ada_print_floating): Remove assignments in 'if' statements.
2626 (print_str): Move operator to beginning of line.
2627
61ce229a
JB
26282004-07-08 Jim Blandy <jimb@redhat.com>
2629
2630 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2631
09bcec80
BR
26322004-07-08 Bob Rossi <bob@brasko.net>
2633
2634 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2635
31c27f77
JJ
26362004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2637
2638 * language.h (struct_language_defn): Add new function pointer:
2639 la_class_name_from_physname. Also add new prototype for
2640 language_class_name_from_physname.
2641 * language.c (language_class_name_from_physname): New function.
2642 (unk_lang_class_name): Ditto.
2643 (unknown_language_defn, auto_language_defn): Change
2644 to add unk_lang_class_name function pointer for
2645 la_class_name_from_physname.
2646 (local_language_defn): Ditto.
2647 * dwarf2read.c (guess_structure_name): Change to call
2648 language_class_name_from_physname.
2649 (determine_class_name): Ditto.
2650 * cp-support.c (class_name_from_physname): Renamed.
2651 (cp_class_name_from_physname): New name of function.
2652 * cp-support.h: Ditto.
2653 * c-lang.c (c_language_defn): Change to add NULL
2654 for class_name_from_physname function pointer.
2655 (cplus_language_defn): Change to add cp_class_name_from_physname.
2656 * jv-lang.c (java_class_name_physname): New function.
2657 (java_find_last_component): New static routine.
2658 (java_language_defn): Add java_class_name_from_physname pointer.
2659 * ada-lang.c (ada_language_defn): Change to add NULL
2660 for class_name_from_physname function pointer.
2661 * f-lang.c (f_language_defn): Ditto.
2662 * m2-lang.c (m2_language_defn): Ditto.
2663 * objc-lang.c (objc_language_defn): Ditto.
2664 * p-lang.c (pascal_language_defn): Ditto.
2665 * scm-lang.c (scm_language_defn): Ditto.
2666
ee28ca0f
AC
26672004-07-06 Andrew Cagney <cagney@gnu.org>
2668
2669 Patch from Bart Robinson.
2670 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2671 (O_LARGEFILE): Define to 0, if not defined.
2672
fdb1bf9d
MK
26732004-07-03 Mark Kettenis <kettenis@gnu.org>
2674
cb162ff6
MK
2675 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2676 <machine/pcb.h> and "bsd-kvm.h".
2677 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2678 (m68kbsd_supply_pcb): New function.
2679 (_initialize_m68kbsd_nat): New prototype and function.
2680 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2681 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2682 (LOADLIBES): New variable.
2683 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2684 (LOADLIBES): New variable.
2685
fdb1bf9d
MK
2686 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2687
963c4174
MK
26882004-07-03 Mark Kettenis <kettenis@gnu.org>
2689
2690 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2691 <sys/proc.h>.
2692 (bsd_kvm_cmdlist): New variable.
2693 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2694 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2695 command and "kvm proc" command.
2696 * Makefile.in (bsd-kvm.o): Update dependencies.
2697
533f1d8f
MK
26982004-07-02 Mark Kettenis <kettenis@gnu.org>
2699
2700 * osabi.c: Update copyright year.
2701 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2702 notes if EI_OSABI is set to ELFOSABI_HPUX.
2703
6780dcde
MS
27042004-07-01 Michael Snyder <msnyder@redhat.com>
2705
2706 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2707 that seems to have gotten whacked out of line.
2708
67bebe79
MK
27092004-07-01 Mark Kettenis <kettenis@gnu.org>
2710
2711 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2712 code.
2713
0b5d8877
PH
27142004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2715
2716 * ada-lang.c (decode_packed_array): Minor change to comment.
2717 (ada_value_slice_ptr): New function.
2718 (ada_value_slice): New function.
2719 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2720 test. Don't know why it is there.
2721 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2722 to avoid dereferencing huge arrays from which one is slicing.
2723 (empty_array): Correct to return an array rather than
2724 a subrange value.
2725 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2726 on empty arrays (let'em use 'FIRST instead).
2727
19c1ef65
PH
27282004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2729
2730 Address complaints from gdb_ari.sh:
2731
2732 * ada-exp.y: Include gdb_string.h rather than string.h.
2733 (convert_char_literal): Reformat declaration.
2734 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2735 * ada-lex.l: Change use of free to xfree (the macro would do so
2736 anyway, but this is harmless).
2737 Include gdb_string.h rather than string.h.
2738 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2739
2740 * ada-lang.c (parse): Remove K&Rism in parameter list.
2741 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2742
d81cbc94
MK
27432004-06-30 Mark Kettenis <kettenis@gnu.org>
2744
2745 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2746 dead code.
2747
07681759
MK
27482004-06-30 Mark Kettenis <kettenis@gnu.org>
2749
2750 * alphabsd-nat.c: Update copyright year.
2751 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2752
f7948b5f
JB
27532004-06-29 Joel Brobecker <brobecker@gnat.com>
2754
6e0cdd28 2755 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2756 (i386_cygwin_in_solib_call_trampoline): New function.
2757 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2758 and skip_trampoline_code gdbarch methods.
2759
8f113c9a
JB
27602004-06-29 Jim Blandy <jimb@redhat.com>
2761
2762 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2763 name actually used in the dependency lists.
2764
97dc871c
RC
27652004-06-29 Randolph Chung <tausq@debian.org>
2766
2767 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2768
47216e51
CV
27692004-06-29 Corinna Vinschen <vinschen@redhat.com>
2770
2771 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2772 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2773 functionality.
2774
e623b504
AC
27752004-06-28 Andrew Cagney <cagney@gnu.org>
2776
2777 * defs.h (xstrvprintf): Declare.
2778 * utils.c (xstrvprintf): New function.
2779 (internal_vproblem, xstrprintf, xasprintf)
2780 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2781 * serial.c (serial_printf): Ditto.
2782 * complaints.c (vcomplaint): Ditto.
2783
79acc9b3
CV
27842004-06-29 Corinna Vinschen <vinschen@redhat.com>
2785
2786 * infcmd.c (attach_command): Move call to target_terminal_inferior
2787 behind loading symbol table.
2788
1daf35d9
AC
27892004-06-28 Andrew Cagney <cagney@gnu.org>
2790
2791 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2792 change - add back extern deprecated_ui_loop_hook declaration.
2793
b435e160
AC
27942004-06-28 Andrew Cagney <cagney@gnu.org>
2795
2796 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2797 xstrprintf.
2798 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2799 (c_value_of_variable): Ditto.
2800 * utils.c (internal_vproblem): Ditto.
2801 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2802 * remote.c (add_packet_config_cmd): Ditto.
2803 * remote-rdp.c (rdp_set_command_line): Ditto.
2804 * regcache.c (regcache_dump): Ditto.
2805 * frv-tdep.c (new_variant, new_variant): Ditto.
2806 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2807 (fbsd_find_memory_regions): Ditto.
2808 * breakpoint.c (create_thread_event_breakpoint)
2809 (create_breakpoints): Ditto.
2810 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2811 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2812
06d5cf63
JB
28132004-06-28 Joel Brobecker <brobecker@gnat.com>
2814
2815 * ada-lang.c: Re-indent file, with some massaging to help indent
2816 a bit when the result is otherwise really too ugly.
2817
35809fad
UW
28182004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2819
2820 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2821 code_addr_p and special_addr_p to 'unsigned int'.
2822
40e20472
MK
28232004-06-27 Mark Kettenis <kettenis@gnu.org>
2824
2825 * i386v4-nat.c: Update copyright year and tweak comment.
2826 (regmap): Remove trailing comma.
2827 (supply_gregset): Rename local variable i to regnum. Call
2828 regcache_raw_supply instead of supply_register.
2829 (fill_gregset): Rename argument regno to regnum. Call
2830 regcache_raw_collect instead of regcache_collect.
2831
12b0b6de
UW
28322004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2833
2834 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2835 and special_addr_p.
2836 (frame_id_build, frame_id_build_special): Update comments.
2837 (frame_id_build_wild): New prototype.
2838 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2839 struct frame_id fields.
2840 (frame_id_build_wild): New function.
2841 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2842
47b42a3e
MK
28432004-06-27 Mark Kettenis <kettenis@gnu.org>
2844
2845 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2846 hppabsd-tdep.c.
2847
1265e4aa
JB
28482004-06-27 Joel Brobecker <brobecker@gnat.com>
2849
2850 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2851
76a01679
JB
28522004-06-27 Joel Brobecker <brobecker@gnat.com>
2853
2854 * ada-lang.c: Re-indent file.
2855
7aca490a
JB
28562004-06-27 Joel Brobecker <brobecker@gnat.com>
2857
2858 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2859 (no_symtab_msg): Likewise.
2860
5e987968
AS
28612004-06-27 Andreas Schwab <schwab@suse.de>
2862
2863 * source.c: Fix whitespace.
2864
315c4276
MK
28652004-06-27 Mark Kettenis <kettenis@gnu.org>
2866
d15be926
MK
2867 * configure.in: Include <sys/param.h> for td_pcb test.
2868 * configure: Regenerated.
2869
9062529b
MK
2870 * i386nbsd-nat.c: New file.
2871 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2872 i386obsd-nat.c and i386obsd-tdep.c.
2873 (i386nbsd-nat.o): New dependency.
2874 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2875 bsd-kvm.o.
2876 (LOADLIBES): New variable.
2877 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2878 bsd-kvm.o.
2879 (LOADLIBES): New variable.
2880
8010310e
MK
2881 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2882 (LOADLIBES): New variable.
2883
efe1d7b9
MK
2884 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2885 fetching from BSD_KVM_PADDR. Correctly lookup address for
2886 "_thread0".
2887
315c4276
MK
2888 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2889 "bsd-kvm.h".
2890 (amd64fbsd_supply_pcb): New funcion.
2891 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2892
399cfac6
DL
28932004-06-27 <david@streamline-computing.com>
2894
2895 Partial fix for PR cli/1056.
2896 * valarith.c: Check for zero in division and remainder
2897 evaluation.
2898
6235f9c8
MK
28992004-06-27 Mark Kettenis <kettenis@gnu.org>
2900
2901 * i387-tdep.c: Remove excessive whitespace.
2902
2726dafc
AC
29032004-06-26 Andrew Cagney <cagney@gnu.org>
2904
2905 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2906 * gdb-events.h, gdb-events.c: Re-generate.
2907 * tui/tui-hooks.c (tui_install_hooks): Update.
2908 (tui_remove_hooks): Update.
2909 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2910
0e56aeaf
MK
29112004-06-26 Mark Kettenis <kettenis@gnu.org>
2912
cb461069
MK
2913 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2914 (gregset_t, fpregset_t): Remove typedefs.
2915 (REG_OFFSET): Rename argument.
2916 (amd64bsd_r_reg_offset): Rename from reg_offset.
2917 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2918 Remove functions.
2919 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2920 of reg_offset.
2921 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2922
ecba89de
MK
2923 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2924
4cd80476
MK
2925 * vax-tdep.c: Tweak comment.
2926
0e56aeaf
MK
2927 Add OpenBSD/hppa support.
2928 * NEWS (New native configurations): Mention OpenBSD/hppa.
2929 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2930 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2931 files.
2932 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2933 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2934 * configure.host: Add hppa*-*-openbsd*.
2935 * configure.tgt: Add hppa*-*-openbsd*.
2936
98bbd631
AC
29372004-06-25 Andrew Cagney <cagney@gnu.org>
2938
2939 * defs.h (deprecated_ui_loop_hook): Deprecated.
2940 * wince.c (child_wait): Update.
2941 * win32-nat.c (child_wait): Update.
2942 * v850ice.c (v850ice_wait): Update.
2943 * top.c (deprecated_ui_loop_hook): Update.
2944 * serial.h: Update.
2945 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2946 (do_unix_readchar): Update.
2947 * ser-tcp.c (net_open): Update.
2948 * remote-sim.c (gdb_os_poll_quit): Update.
2949 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2950
769d7dc4
AC
29512004-06-24 Andrew Cagney <cagney@gnu.org>
2952
2953 * defs.h (deprecated_pre_add_symbol_hook)
2954 (deprecated_post_add_symbol_hook): Deprecated.
2955 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2956 (symbol_file_add_with_addrs_or_offsets): Update references.
2957
11c949aa
AC
29582004-06-24 Andrew Cagney <cagney@gnu.org>
2959
2960 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2961 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2962 * wince.c (ui_loop_hook): Delete extern declaration.
2963 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2964 * v850ice.c (ui_loop_hook): Delete extern declaration..
2965 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2966 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2967 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2968 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2969 ui_loop_hook declaration.
2970
eedc19af
AC
29712004-06-24 Andrew Cagney <cagney@gnu.org>
2972
2973 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2974 entry_func_highpc fields.
2975 * objfiles.c (init_entry_point_info): Do not clear
2976 entry_func_lowpc and entry_func_highpc.
2977 (objfile_relocate): Do not relocate entry_func_lowpc and
2978 entry_func_highpc.
2979 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2980 entry_func_highpc.
2981 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2982 entry_func_highpc.
2983 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2984 entry_func_lowpc and entry_func_highpc with call to
2985 inside_entry_func.
2986
d47079be
MK
29872004-06-24 Mark Kettenis <kettenis@gnu.org>
2988
2989 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2990 quad-precision floating point arguments in registers.
2991
2107e348
MK
29922004-06-24 Mark Kettenis <kettenis@gnu.org>
2993
2994 From Michael Mueller <m.mueller99@kay-mueller.de>:
2995 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2996 account.
2997
46587c42
JJ
29982004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2999
3000 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3001 to -1.
3002 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3003 untriggered watchpoints to a separate if clause. Update function
3004 comment regarding STOPPED_BY_WATCHPOINT argument.
3005
226f5cf4
JB
30062004-06-22 Jim Blandy <jimb@redhat.com>
3007
3008 * gdbarch.sh: Doc fix.
3009
f10683bb
MH
30102004-06-21 Martin Hunt <hunt@redhat.com>
3011 Kevin Buettner <kevinb@redhat.com>
3012
3013 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3014 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3015 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3016 to set_gdbarch_sp_regnum(). Use cooked register number.
3017 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3018
412d5987
AC
30192004-06-21 Andrew Cagney <cagney@gnu.org>
3020
3021 * gdbarch.sh: When the macro field is empty, do not generate a
3022 macro definition. When the macro field is "=", generate the macro
3023 name from the upper-case function name.
3024 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3025 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3026 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3027 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3028 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3029 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3030 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3031 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3032 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3033 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3034 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3035 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3036 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3037 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3038 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3039 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3040 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3041 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3042 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3043 (DEPRECATED_USE_STRUCT_CONVENTION)
3044 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3045 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3046 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3047 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3048 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3049 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3050 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3051 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3052 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3053 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3054 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3055 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3056 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3057 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3058 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3059 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3060 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3061 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3062
68908a3e
AC
30632004-06-21 Andrew Cagney <cagney@gnu.org>
3064
48f7351b
AC
3065 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3066 macro name, and the function rather than macro value. Only wrap
3067 macro print statements in #ifdef. Move format logic to where it
3068 is needed.
3069 * gdbarch.c: Re-generate.
3070
283354d8
AC
3071 * gdbarch.sh (read): Delete "print_p" and "description", add
3072 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3073 Delete references to print_p.
3074 (TARGET_ARCHITECTURE): Delete print predicate.
3075 * gdbarch.c: Re-generate.
3076
68908a3e
AC
3077 * gdbarch.sh: Check that multi-arch methods do not provide a
3078 macro.
3079 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3080 (print_registers_info, print_float_info, print_vector_info)
3081 (adjust_breakpoint_address, remote_translate_xfer_address)
3082 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3083 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3084 name from the multi-arch definition.
3085
a2428dbe
AC
30862004-06-20 Andrew Cagney <cagney@gnu.org>
3087
3088 * gdbarch.sh: Sort by the function, instead of macro name.
3089 * gdbarch.c: Re-generate.
3090
750eb019
AC
30912004-06-20 Andrew Cagney <cagney@gnu.org>
3092
66d659b1
AC
3093 * gdbarch.sh: Use the function, instead of macro name in
3094 errors and the log file.
3095 (return_value): Remove stray ":" in spec.
3096
750eb019
AC
3097 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3098 * gdbarch.h, gdbarch.c: Re-generate.
3099 * Makefile.in (arch-utils.o): Update dependencies.
3100 * values.c (using_struct_return): Move code calling
3101 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3102 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3103 to legacy_return_value, simplify.
3104 * infcmd.c (print_return_value): Move code calling
3105 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3106 to legacy_return_value, simplify.
3107 * infcall.c (call_function_by_hand): Move code calling
3108 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3109 * arch-utils.c: Update copyright. Include "gdbcore.h".
3110 (legacy_return_value): New function.
3111 * arch-utils.h: Update copyright.
3112 (legacy_return_value): Declare.
3113
b5622e8d
AC
31142004-06-20 Andrew Cagney <cagney@gnu.org>
3115
3116 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3117 * gdbarch.h, gdbarch.c: Re-generate.
3118 * values.c (using_struct_return): Update call.
3119 * mcore-tdep.c: Update comment.
3120 * infcall.c (call_function_by_hand): Update comment.
3121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3122 * arch-utils.h (always_use_struct_convention): Update.
3123 * v850-tdep.c (v850_gdbarch_init): Update.
3124 * sh64-tdep.c (sh64_gdbarch_init): Update.
3125 * sh-tdep.c (sh_gdbarch_init): Update.
3126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3127 * mips-tdep.c (mips_gdbarch_init): Update.
3128 * mcore-tdep.c (mcore_gdbarch_init): Update.
3129 * m32r-tdep.c (m32r_gdbarch_init): Update.
3130 * ia64-tdep.c (ia64_gdbarch_init): Update.
3131 * h8300-tdep.c (h8300_gdbarch_init): Update.
3132 * frv-tdep.c (frv_gdbarch_init): Update.
3133 * cris-tdep.c (cris_gdbarch_init): Update.
3134 * arm-tdep.c (arm_gdbarch_init): Update.
3135 * alpha-tdep.c (alpha_gdbarch_init): Update.
3136
5191de37
MC
31372004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3138
3139 * PROBLEMS: Add more specific information, and a work-around,
3140 for PR gdb/1458.
3141
782263ab
AC
31422004-06-18 Andrew Cagney <cagney@gnu.org>
3143
3144 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3145 * gdbarch.h, gdbarch.c: Re-generate.
3146 * ada-lang.c (ada_finish_decode_line_1): Update.
3147 * infrun.c (handle_inferior_event): Update.
3148 * infcall.c (find_function_addr): Update.
3149 * linespec.c (minsym_found): Update.
3150 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3151 Update.
3152 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3153 * cli/cli-cmds.c (disassemble_command): Update.
3154 * vax-tdep.c (vax_gdbarch_init): Update.
3155
2f305df1
MK
31562004-06-18 Mark Kettenis <kettenis@gnu.org>
3157
3158 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3159
e5fe55f7
AC
31602004-06-17 Andrew Cagney <cagney@gnu.org>
3161
3162 GDB 6.1.1 released from the GDB 6.1 branch.
3163 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3164 * PROBLEMS: Ditto.
3165
473b7be6
DJ
31662004-06-16 Daniel Jacobowitz <dan@debian.org>
3167
3168 PR gdb/1658
3169 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3170 operation as a uleb128. Found by Michael Coulter.
3171
96d887e8
PH
31722004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3173
3174 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3175 make it non-static.
3176 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3177 to ada-lang.h; this is needed to be able to implement the kill command
3178 in multi-task mode.
3179 (task_ptid): Ditto.
3180 (task_entry): Ditto.
3181 (task_list): Ditto.
3182 (ada_build_task_list): Ditto.
3183
3184 * ada-lang.c: Conditionalize routines and data structures related
3185 to breakpoints, exceptions, completion, and symbol caching on
3186 GNAT_GDB, since these are not yet used in the submitted public sources.
3187 (ada_main_name): Editorial: Move definition out of exception-related
3188 code.
3189
31eef181
AC
31902004-06-15 Andrew Cagney <cagney@gnu.org>
3191
3192 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3193 deprecated_pc_in_call_dummy.
3194
2c500098
AM
31952004-06-15 Alan Modra <amodra@bigpond.net.au>
3196
3197 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3198 bfd_get_section_size_before_reloc or _raw_size.
3199 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3200 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3201 (dwarf2_read_section): Likewise.
3202 * elfread.c (elf_locate_sections): Likewise.
3203 * gcore.c (derive_heap_segment): Likewise.
3204 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3205 * remote-e7000.c (e7000_load): Likewise.
3206 * remote-m32r-sdi.c (m32r_load): Likewise.
3207 * remote-mips.c (mips_load_srec): Likewise.
3208 (pmon_load_fast): Likewise.
3209 * remote.c (compare_sections_command): Likewise.
3210 * symfile.c (add_section_size_callback): Likewise.
3211 (load_section_callback): Likewise.
3212 (pc_in_unmapped_range): Likewise.
3213 (pc_in_mapped_range): Likewise.
3214 (sections_overlap): Likewise.
3215 (list_overlays_command): Likewise.
3216 (simple_overlay_update_1): Likewise.
3217 (simple_overlay_update): Likewise.
3218 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3219 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3220
90f943f1
RC
32212004-06-14 Randolph Chung <tausq@debian.org>
3222
3223 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3224 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3225 static.
3226 (hppa_hpux_inferior_created): New function.
3227 (hppa_hpux_init_abi): Register observer.
3228 * symfile.c (hp_cxx_exception_support_initialized)
3229 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3230 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3231
700c15aa
RC
32322004-06-14 Randolph Chung <tausq@debian.org>
3233
3973a7d3
AC
3234 * MAINTAINERS (Write After Approval): Alphabetize my entry
3235 correctly.
700c15aa 3236
cea4838c
AC
32372004-06-14 Andrew Cagney <cagney@gnu.org>
3238
3239 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3240 testsuite maintainer.
3241
97092415
AC
32422004-06-13 Andrew Cagney <cagney@gnu.org>
3243
e8c3165b
AC
3244 * infcmd.c (print_return_value): Fix logic, allow
3245 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3246
bceabdd8
AC
3247 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3248 defining any macros.
3249 * gdbarch.h: Re-generate.
3250
57010b1c
AC
3251 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3252 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3253 * gdbarch.h: Re-generate.
3254
bc87dfa0
AC
3255 * values.c (generic_use_struct_convention): Don't check gcc_p.
3256
15ac804d
AC
3257 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3258 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3259 * gdbarch.h, gdbarch.c: Regenerate.
3260 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3261 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3263 deprecated_max_register_raw_size and
3264 deprecated_max_register_virtual_size.
3265 * v850-tdep.c (v850_gdbarch_init): Ditto.
3266 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3267 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3268 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3269 * cris-tdep.c (cris_gdbarch_init): Ditto.
3270
97092415
AC
3271 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3272 * gdbarch.h, gdbarch.c: Re-generate.
3273 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3274 (m68hc11_use_struct_convention): Delete function.
3275 (m68hc11_extract_struct_value_address): Delete function.
3276 (m68hc11_return_value): New function.
3277 (m68hc11_gdbarch_init): Instead of store_return_value,
3278 extract_return_value, return_value_on_stack,
3279 deprecated_extract_struct_value_address and use_struct_convention,
3280 set return_value.
3281 * values.c (using_struct_return): Do not call
3282 RETURN_VALUE_ON_STACK.
3283 * arch-utils.h (generic_return_value_on_stack_not): Delete
3284 declaration.
3285 * arch-utils.c (generic_return_value_on_stack_not): Delete
3286 function.
3287
44e5158b
AC
32882004-06-12 Andrew Cagney <cagney@gnu.org>
3289
3290 * values.c (register_value_being_returned): Delete function.
3291 * infcmd.c (legacy_return_value): Delete function.
3292 * infcall.c (call_function_by_hand): Inline
3293 "register_value_being_returned", simplify.
3294 * values.c (using_struct_return): Update comment, refer to
3295 print_return_value instead of register_value_being_returned.
3296 * infcmd.c (print_return_value): Inline calls to
3297 register_value_being_returned and legacy_return_value. Simplify.
3298
b887c273
RC
32992004-06-11 Randolph Chung <tausq@debian.org>
3300
3301 * somread.c (som_symtab_read): Exclude gcc local symbols.
3302
1b2bfbb9
RC
33032004-06-11 Randolph Chung <tausq@debian.org>
3304
3973a7d3
AC
3305 * infrun.c (handle_inferior_event): Handle the case when a
3306 trampoline ends up in the runtime resolver, and if the trampoline
3307 has no name. Rearrange the code so that all the trampoline
3308 processing happens before other step-out-of-range handling.
1b2bfbb9 3309
a9d61c86
MH
33102004-06-11 Martin Hunt <hunt@redhat.com>
3311
3312 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3313 has no fpu.
3314
2c87cf5a
AC
33152004-06-10 Andrew Cagney <cagney@gnu.org>
3316
3317 * blockframe.c (legacy_inside_entry_func): Delete.
3318 (legacy_frame_chain_valid): Inline call to
3319 legacy_inside_entry_func, simplify.
3320
0b67b468 33212004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3322
3323 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3324 * dwarf2read.c (partial_die_info): Add dirname field.
3325 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3326 (read_partial_die): Save away DW_AT_comp_dir.
3327 * defs.h (symtab_to_filename): Removed.
3328 * source.c (find_and_open_source): Added.
57c22c6c 3329 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3330 (symtab_to_filename): Removed.
3331 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3332 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3333 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3334 symtab_to_filename.
3335 * symtab.h (partial_symtab): Add dirname field.
3336 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3337 (mi_cmd_file_list_exec_source_file): Call new function
3338 symtab_to_fullname to find fullname.
57c22c6c 3339 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3340 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3341 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3342
9a1dd1ad
AC
33432004-06-10 Andrew Cagney <cagney@gnu.org>
3344
239ae8c7
AC
3345 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3346 to generic_use_struct_convention, the default value.
3347
fc720350
AC
3348 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3349 of abort.
3350
9a1dd1ad
AC
3351 * ns32k-tdep.c (ns32k_push_arguments): New function.
3352 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3353 * infcall.c (call_function_by_hand): Call error instead of
3354 legacy_push_arguments.
3355 * value.h (legacy_push_arguments): Delete declaration.
3356 * valops.c (legacy_push_arguments): Delete function.
3357 (value_push): Delete function.
3358
fea25152
BF
33592004-06-10 Brian Ford <ford@vss.fsi.com>
3360
3361 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3362 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3363 info.
3364 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3365
30a4a8e0
AC
33662004-06-10 Andrew Cagney <cagney@gnu.org>
3367
3368 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3369 * gdbarch.h, gdbarch.c: Re-generate.
3370 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3371 parameters.
3372 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3373 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3374 deprecated_pc_in_call_dummy instead of
3375 DEPRECATED_PC_IN_CALL_DUMMY.
3376 (arm_skip_prologue): Ditto.
3377 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3378 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3379 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3380 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3381 Ditto.
3382 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3383 (sh64_init_extra_frame_info, sh64_get_saved_register)
3384 (sh64_pop_frame): Ditto.
3385 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3386 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3387 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3388 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3389 (h8300_pop_frame): Ditto.
3390 * blockframe.c (legacy_inside_entry_func)
3391 (legacy_frame_chain_valid): Ditto.
3392 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3393 to deprecated_pc_in_call_dummy.
3394
81cfbe54
AC
33952004-06-09 Andrew Cagney <cagney@gnu.org>
3396
a1f4a1b6
AC
3397 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3398 provide a default value.
3399 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3400 * gdbarch.h, gdbarch.c: Re-generate.
3401 * arch-utils.c (generic_convert_register_p): Rename
3402 legacy_convert_register_p
3403 (legacy_register_to_value, legacy_value_to_register): Delete
3404 functions.
3405 * arch-utils.h (generic_convert_register_p): Rename
3406 legacy_convert_register_p.
3407 (legacy_register_to_value, legacy_value_to_register): Delete
3408 declarations.
3409
9730f241
AC
3410 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3411 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3412 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3413 * gdbarch.h, gdbarch.c: Re-generate.
3414 * infcmd.c (default_print_registers_info): Simplify.
3415 * findvar.c (value_of_register): Simplify.
3416 * mi/mi-main.c (get_register): Simplify.
3417 * arch-utils.c (legacy_convert_register_p): Always return 0.
3418 (legacy_register_to_value, legacy_value_to_register): Always call
3419 internal_error.
3420
8a1bf479
AC
3421 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3422 #ifdef CLEAR_INSN_CACHE code.
3423 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3424 Delete #ifdef CLEAR_DEFERRED_STORES code.
3425
4b38d6f1
AC
3426 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3427
2d62ecc7
AC
3428 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3429 copyright.
3430 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3431
be4f7469
AC
3432 * config/mips/mipsv4.mh: Delete file.
3433
81cfbe54
AC
3434 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3435 unreferenced macro.
3436 (hpread_adjust_stack_address): Delete declaration.
3437
d966f0cb
AC
34382004-06-08 Andrew Cagney <cagney@gnu.org>
3439
3440 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3441 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3442 PTRACE_ATTACH / PTRACE_DETACH available call error.
3443 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3444 * infttrace.c (update_thread_state_after_attach, attach, detach):
3445 Remove #ifdef wrappers.
3446 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3447 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3448 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3449 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3450 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3451 * config/nm-linux.h (ATTACH_DETACH): Delete.
3452 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3453 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3454 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3455 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3456 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3457
d91670b9
CV
34582004-06-08 Corinna Vinschen <vinschen@redhat.com>
3459
3460 * configure.in: Set $configdir to the right OS specific value.
3461 Use value when setting $tcldir and $tkdir.
3462 * configure: Regenerate.
3463
28ba0b33
PB
34642004-06-06 Paul Brook <paul@codesourcery.com>
3465
3466 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3467 records.
3468
f26caa11
PH
34692004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3470
3471 * ada-lang.c (lookup_symbol_in_language): New function to allow
3472 re-use of another language's symbol lookup code. (Placed here
3473 temporarily while Ada support is being integrated into the public
3474 tree).
3475 (restore_language): New auxiliary function for
3476 lookup_symbol_in_language.
3477 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3478 temporarily while Ada support is being integrated into the public
3479 tree).
3480
d560a54b
AO
34812004-06-08 Alexandre Oliva <aoliva@redhat.com>
3482
e75d110c
AO
3483 * Makefile.in (check//%): New.
3484
d560a54b
AO
3485 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3486 (mn10300_store_return_value): Rewrite.
3487 (mn10300_type_align): New.
3488 (mn10300_use_struct_convention): Rewrite.
3489 (mn10300_return_value): New, using all of the above.
3490 (mn10300_pop_frame_regular): Add saved_regs_size.
3491 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3492
a72fbdb7
AO
3493 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3494 regs if PC is on movm.
3495
01904826
JB
34962004-06-07 Jim Blandy <jimb@redhat.com>
3497
3498 Add native Linux support for the PowerPC E500.
3499 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3500 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3501 all architectures except the E500.
3502 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3503 #definitions.
3504 (struct gdb_evrregset_t): New type.
3505 (have_ptrace_getsetevrregs): New variable.
3506 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3507 fetch_spe_registers): New functions.
3508 (fetch_register): Call fetch_spe_register as appropriate.
3509 Assert that we're only passed raw register numbers.
3510 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3511 Don't fetch gprs if they're pseudoregisters.
3512 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3513 store_spe_registers): New functions.
3514 (store_register): Call store_spe_register as appropriate.
3515 Assert that we're only passed raw register numbers.
3516 (store_ppc_registers): Call store_spe_registers as appropriate.
3517 Don't store gprs if they're pseudoregisters.
3518
f90ef764
JJ
35192004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3520
3521 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3522 struct if one exists, even if we are dealing with a zombie thread.
3523
45b75230
AC
35242004-06-07 Andrew Cagney <cagney@gnu.org>
3525
3526 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3527 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3528 Rename PC_REQUIRES_RUN_BEFORE_USE.
3529 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3530 #ifdef.
3531
1658da49
RC
35322004-06-07 Randolph Chung <tausq@debian.org>
3533
3534 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3535 unwinding after sp has been saved to the stack but before the end
3536 of the prologue, and after the fp has been modified but before it has
3537 been saved to the stack.
3538 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3539 Remove superfluous definitions.
3540 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3541
9a727a3c
RC
35422004-06-07 Guy Martin <gmsoft@gentoo.org>
3543
3544 Committed by Randolph Chung.
3545 * hppa-linux-nat.c: Include the correct version of the header file
3546 depending on the kernel version.
3547
9e500012
RC
35482004-06-06 Randolph Chung <tausq@debian.org>
3549
3550 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3551 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3552
3388d7ff
RC
35532004-06-06 Randolph Chung <tausq@debian.org>
3554
3555 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3556 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3557 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3558 * hppa-tdep.c (hppa_symbol_address): New function definition.
3559 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3560
d49771ef
RC
35612004-06-06 Randolph Chung <tausq@debian.org>
3562
3563 * hppa-tdep.h (struct value): Forward declaration.
3564 (gdbarch_tdep): Define tdep find_global_pointer method.
3565 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3566 associated with the function we are trying to call, and write it
3567 to the gp register.
3568 (hppa32_convert_from_funct_ptr_addr): New function.
3569 (hppa_find_global_pointer): New function.
3570 (hppa_gdbarch_init): Set default find_global_pointer method; set
3571 convert_from_func_ptr_addr method.
3572 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3573 (hppa_linux_init_abi): Set find_global_pointer method.
3574 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3575
7d9b040b
RC
35762004-06-06 Randolph Chung <tausq@debian.org>
3577
3578 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3579 to struct value *function.
3580 * gdbarch.c: Regenerate.
3581 * gdbarch.h: Likewise.
3582 * infcall.c (call_function_by_hand): Pass entire function value
3583 to push_dummy_call.
3584
3585 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3586 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3587 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3588 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3589 * arm-tdep.c (arm_push_dummy_call): Likewise.
3590 * avr-tdep.c (avr_push_dummy_call): Likewise.
3591 * cris-tdep.c (cris_push_dummy_call): Likewise.
3592 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3593 * frv-tdep.c (frv_push_dummy_call): Likewise.
3594 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3595 * hppa-tdep.c (hppa32_push_dummy_call)
3596 (hppa64_push_dummy_call): Likewise.
3597 * i386-tdep.c (i386_push_dummy_call): Likewise.
3598 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3599 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3600 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3601 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3602 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3603 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3604 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3605 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3606 (ppc64_sysv_abi_push_dummy_call): Likewise.
3607 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3608 (ppc64_sysv_abi_push_dummy_call): Likewise.
3609 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3610 * s390-tdep.c (s390_push_dummy_call): Likewise.
3611 * sh-tdep.c (sh_push_dummy_call_fpu)
3612 (sh_push_dummy_call_nofpu): Likewise.
3613 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3614 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3615 * vax-tdep.c (vax_push_dummy_call): Likewise.
3616
4a19ea35
JB
36172004-06-04 Jim Blandy <jimb@redhat.com>
3618
8327ccee
JB
3619 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3620 gdbarch argument to register_size.
3621
a3c001ce
JB
3622 * rs6000-tdep.c (rs6000_store_return_value): Use
3623 regcache_cooked_write_part instead of
3624 deprecated_write_register_bytes.
3625 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3626 not gdbarch_deprecated_store_return_value.
3627
4a19ea35
JB
3628 * ppc-linux-nat.c (store_register, fetch_register): Remove
3629 incorrect assertions. Simplify and generalize handling of
3630 transfers whose sizes are not multiples of, or less than, sizeof
3631 (PTRACE_XFER_TYPE).
3632
b9b5d7ea
JJ
36332004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3634
3635 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3636 as a new thread event.
720c7d64 3637 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3638 zombie, return TD_THR_ZOMBIE.
720c7d64 3639 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3640 TD_THR_ZOMBIE, check if the thread is still on the thread list
3641 and return a -1 ptid if not found.
3642 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3643 change the status to TARGET_WAITKIND_SPURIOUS.
3644
c8a3b559
CV
36452004-06-03 Corinna Vinschen <vinschen@redhat.com>
3646
3647 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3648 double values in little endian mode.
3649
20605361
AC
36502004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3651
3652 Committed by Andrew Cagney.
3653 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3654 after last enum constant to avoid error from IBM C
3655 compiler.
3656
bc97b3ba
JB
36572004-06-02 Jim Blandy <jimb@redhat.com>
3658
3659 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3660 to 'message', and make it local to the lone block that uses it.
3661
1da28ab0
JB
3662 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3663
4c4b4cd2
PH
36642004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3665
8a2225b2
PH
3666 * ada-exp.y: Update copyright notice.
3667 Include block.h.
3668
3669 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3670 SPECIAL_VARIABLE and unify the treatment of these cases.
3671
3672 (write_attribute_call0): Remove.
3673 (write_attribute_call1): Remove.
3674 (write_attribute_calln): Remove.
3675 (save_qualifier): Add missing semicolon.
3676
3677 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3678 temporarily disabled to allow compilation with FSF head version.
3679
3680 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3681 use individual operators (OP_*) for all attributes.
3682 (exp syntax): Use write_int.
3683 Handle STRING literals with OP_STRING.
3684 (variable syntax): Add limit parameter to calls to
3685 write_object_renaming.
3686
3687 (temp_parse_space): New definition to hold entities that need
3688 only live until the next call to ada_parse.
3689 (string_to_operator): Rename fields of ada_opname_table entries.
3690
3691 (write_var_from_sym): Record block.
3692 (write_var_from_name): Minor reformatting.
3693 Make sure saved name is properly encoded in the case of multiple
3694 matches, and set its language to Ada.
3695 Update comment.
3696 Modify to indicate unresolved name as symbol in the UNRESOLVED
3697 namespace, allocated in temp_parse_space.
3698 (write_int): New function.
3699
3700 (write_object_renaming): Add max_depth parameter to limit
3701 chains of object renamings.
3702 Handle case where root of renaming expression is itself a renaming.
3703 Use temp_parse_space for temporary name buffer.
3704 Handle renamings to dereferenced pointers (___XEXA suffices).
3705
3706 (ada_parse, yyerror, string_to_operator,
3707 write_var_from_sym, write_var_from_name, write_attribute_call0,
3708 write_attribute_call1, write_attribute_calln,
3709 write_object_renaming): Protoize.
3710
3711 (_initialize_ada_exp): New function.
3712
3713 * ada-lang.c: Update copyright notice.
3714 General terminology change to conform to GNAT compiler usage:
3715 mangle => encode, demangle => decode
3716 Include gdb_obstack.h.
3717 Include gdb_regex.h
3718 Include frame.h
3719 Include hashtab.h
3720 Include completer.h
3721 Include gdb_stat.h
3722 Include block.h
3723 Include infcall.h
3724
3725 (ADA_RETAIN_DOTS): Make sure this is defined.
3726 (TRUNCATION_TOWARDS_ZERO): Define.
3727 (struct string_vector): Define.
3728 (unresolved_names): Remove definition.
3729 (xnew_string_vector): New function.
3730 (string_vector_append): New function.
3731 (extract_string): Make static.
3732 (ada_unqualified_name): New function.
3733 (add_angle_brackets): New function.
3734 (function_name_from_pc): New function.
3735 (place_on_stack): Rename to ensure_lval.
3736
3737 (ensure_lval): Renamed from place_on_stack.
3738 Make identity on lvals.
3739 Update comment.
3740 (is_nonfunction): New interface.
3741 Only symbols in LOC_CONST class can be enumerals.
3742 (fill_in_ada_prototype): Remove; now independent of language.
3743 (add_defn_to_vec): Add obstack and symtab arguments.
3744 Use obstack to hold collected definitions.
3745 (num_defns_collected): New function.
3746 (defns_collected): New function.
3747 (ada_resolve_subexp): Rename to resolve_subexp.
3748 (resolve_subexp): Renamed from ada_resolve_subexp.
3749 (ada_op_name): Return non-const result.
3750 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3751 other purposes.
3752
3753 (to_fixed_array_type): Add declaration.
3754 (coerce_unspec_val_to_type): Remove offset parameter.
3755 (find_sal_from_funcs_and_line): New interface.
3756 (find_line_in_linetable): Ditto.
3757
3758 (all_sals_for_line): Rename to ada_sals_for_line and make
3759 global.
3760 Add new parameter. When set, do not ask the user to choose the
3761 instance, but use the first one found instead.
3762 Use given line number in returned sals.
3763 Fix comment.
3764 Skip the prologue if funfirstline is set.
3765 Correct for memory leak when 0 lines found.
3766
3767 (value_pos_atr): Use pos_atr.
3768 (pos_atr): New function.
3769 (standard_lookup): Add block parameter.
3770
3771 (makeTimeStart): Remove declaration and uses.
3772 (makeTimeStop): Remove declaration and uses.
3773
3774 (ada_completer_word_break_characters): Allow for VMS.
3775 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3776 (raise_sym_name): New constant.
3777 (raise_unhandled_sym_name): New constant.
3778 (raise_assert_sym_name): New constant.
3779 (process_raise_exception_name): New constant.
3780 (longest_exception_template): New constant.
3781 (warning_limit): New variable to limit warnings during expression
3782 evaluation.
3783 (warnings_issued): New variable to keep track of warnings issued.
3784 (known_runtime_file_name_patterns): New constant.
3785 (known_auxiliary_function_name_patterns): New constant.
3786 (symbol_list_obstack): New variable.
3787
3788 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3789 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3790 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3791 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3792 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3793 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3794 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3795 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3796 and strcmp.
3797
3798 (ada_get_field_index): New function.
3799 (lim_warning): New function.
3800 (ada_translate_error_message): New function.
3801 (MAX_OF_SIZE): New function.
3802 (MIN_OF_SIZE): New function.
3803 (UMAX_OF_SIZE): New function.
3804 (UMIN_OF_SIZE): New function.
3805 (discrete_type_high_bound): New function.
3806 (discrete_type_low_bound): New function.
3807 (base_type): New function.
3808 (do_command): Remove.
3809
3810 (ada_update_initial_language): Use language_ada, not language_unknown.
3811 (ada_encode): Renamed from ada_mangle.
3812 Obey ADA_RETAIN_DOTS.
3813 (ada_decode): Renamed from ada_demangle.
3814 Update coding conventions.
3815 (decoded_names_store): New hash table.
3816 (ada_decode_symbol): New function.
3817 (ada_la_decode): New function.
3818
3819 (modify_general_field): Correct computations of offset and bit
3820 position.
3821 (desc_base_type): Handle ref types, too.
3822 (ada_is_direct_array_type): New function.
3823
3824 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3825 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3826 (ada_is_bogus_array_descriptor,ada_type_of_array,
3827 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3828 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3829 ada_is_array_descriptor_type.
3830
3831 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3832 (ada_is_packed_array_type): Handle pointers or
3833 references to packed arrays as well.
3834 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3835 (decode_packed_array_type): Search for the packed array type
3836 symbol in the currently selected block and associated
3837 superblocks too.
3838 Use lookup_symbol again.
3839
3840 (decode_packed_array): Handle pointers and references.
3841 Update call to coerce_unspec_val_to_type.
3842 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3843 (ada_value_primitive_packed_val): Improve comment.
3844
3845 (ada_index_type): Substitute int type for "undefined".
3846 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3847 ada_array_langth, ada_is_string_type): Use renamed
3848 ada_is_simple_array_type.
3849 (empty_array): New function.
3850
3851 (ada_resolve): Rename to resolve.
3852 (resolve): Make static.
3853 Call renamed resolve_subexp.
3854 Update comment.
3855 (ada_resolve_subexp): Rename to resolve_subexp.
3856 (resolve_subexp): Update comment.
3857 Decomment disabled code.
3858 Add LOC_COMPUTED* cases.
3859 Modify to use temporary struct symbols (marked as being in
3860 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3861 OP_UNRESOLVED_VALUE.
3862 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3863 Add OP_STRING case.
3864 Remove OP_ARRAY.
3865 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3866 Use new ada_lookup_symbol_list interface.
3867 Use new ada_resolve_function interface.
3868 Remove OP_TYPE case.
3869
3870 (ada_args_match): Idiot proof against null actuals.
3871 Use intermediate variables to clarify.
3872 (ada_resolve_function): Update comment and interface.
3873 (mangled_ordered_before): Rename to encoded_ordered_before and
3874 update comment.
3875 (sort_choices): Update comment and interface.
3876 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3877 (user_select_syms): New interface.
3878 Use new sort_choices interface.
3879 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3880 (possible_user_operator_p): Idiot-proof against null values.
3881 (ada_simple_renamed_entity): Don't make cleanup; rely on
3882 caller to free result string.
3883 Remove const from return type.
3884 (make_array_descriptor): Rename uses of place_on_stack to
3885 ensure_lval.
3886 Make sure that arrays are on stack.
3887
3888 (HASH_SIZE): Define.
3889 (struct cache_entry): Define.
3890 (cache_space): Define.
3891 (cache): Define.
3892 (clear_ada_sym_cache): New function.
3893 (find_entry): New function.
3894 (lookup_cached_symbol): New function.
3895 (defn_vector_size): Define.
3896 (cache_symbol): New function.
3897 (defn_symbols): Remove.
3898
3899 (standard_lookup): Use lookup_symbol_in_language to get effect of
3900 C lookup.
3901 Cache results.
3902
3903 (symbol_completion_match): New function.
3904 (symbol_completion_add): New function.
3905 (ada_make_symbol_completion_list): New function.
3906
3907 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3908 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3909 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3910 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3911
3912 (ada_lookup_simple_minsym): New function.
3913 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3914
3915 (add_symbols_from_enclosing_procs): New interface.
3916 Conditionalize more helpfully.
3917 Don't bother if program isn't running.
3918 Use new interface to get_frame_block.
3919 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3920
3921 (remove_extra_symbols): New interface.
3922 (xget_renaming_scope): New function.
3923 (is_package_name): New function.
3924 (renaming_is_visible): New function.
3925 (remove_out_of_scope_renamings): New function.
3926
3927 (ada_lookup_symbol_list): New interface.
3928 Properly reinitialize the symbol list obstack.
3929 Don't call add_symbols_from_enclosing_procs if we start from a
3930 static or global block.
3931 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3932 add_symbols_from_enclosing_procs.
3933 Add symtab data to cached entries.
3934 Handle symbols prefixed with
3935 "standard__" specially; strip prefix and don't look in local symbols.
3936 Do not include out of scope renaming symbols in list of
3937 symbols returned.
3938 Add const to block parameter.
3939 Move check for non-local, non-global symbols earlier.
3940 Remove timing stuff.
3941 (ada_lookup_symbol): New interface.
3942 Find symtab as well.
3943 (ada_lookup_symbol_nonlocal): New function.
3944
3945 (is_name_suffix): Enhance suffix detection to recognize
3946 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3947 (is_dot_digits_suffix): New function.
3948 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3949
3950 (ada_add_block_symbols): New interface. Use obstack to return results
3951 in a vector of struct ada_symbol_infos. Add symtab argument.
3952 Use new interface to add_defn_to_vec.
3953 Remove calls to fill_in_ada_prototype.
3954 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3955
3956 (ada_finish_decode_line_1): Add const qualification to local to fix
3957 warning.
3958 Start looking in static block for functions to avoid attempts
3959 to search frame chain for up-level variables.
3960 Adapt to new ada_sals_for_line interface.
3961 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3962 Handle quoting of the function name inside the spec string.
3963 Skip prologue when funfirstline is set and update the
3964 function documentation to that effect.
3965
3966 (debug_print_lines, debug_print_block, debug_print_blocks,
3967 debug_print_symtab): Remove.
3968
3969 (ada_main_name): New function.
3970 (ada_exception_breakpoint_type): New function.
3971 (is_known_support_routine): New function.
3972 (ada_find_printable_frame): Renamed from find_printable_frame and made
3973 global.
3974 Remove level parameter.
3975 Use new interface to select_frame.
3976
3977 (begin_command): Remove.
3978 (ada_adjust_exception_stop): New function.
3979 (ada_print_exception_stop): New function.
3980 (exception_name_from_cond): New function.
3981 (ada_report_exception_break): Replace disabled code with
3982 conditionalization on GNAT_GDB.
3983 Get the exception name from the condition string.
3984 Remove and move functionality into new functions
3985 ada_print_exception_breakpoint_task and
3986 ada_print_exception_breakpoint_nontask.
3987 (error_breakpoint_runtime_sym_not_found): New function.
3988 (is_runtime_sym_defined): New function.
3989 (ada_breakpoint_rewrite): Uncomment suppressed code.
3990 Use symbolic error-message and runtime-symbol names.
3991 Surround runtime symbol names in quotes.
3992 Allow non-specific breakpoints on exceptions and assertions before
3993 program starts.
3994
3995 (ada_is_tagged_type): Add parameter.
3996 (ada_is_tag_type): New function.
3997 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3998 (ada_variant_discrim_type): Ditto.
3999 (value_tag_from_contents_and_address): New function.
4000 (type_from_tag): New function.
4001 (struct tag_args): New structure used to communicate with
4002 ada_tag_name_1.
4003 (ada_tag_name_1): New function.
4004 (ada_tag_name): New function.
4005
4006 (ada_scan_number): Update comment.
4007 (find_struct_field): New function.
4008 (ada_search_struct_field): Make static.
4009 (ada_value_struct_elt): New version that returns references when
4010 given pointers or references to structs.
4011 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4012 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4013 interface.
4014 (ada_value_ind): Use new ada_to_fixed_value interface.
4015 (ada_coerce_ref): Ditto.
4016 (field_offset): Remove.
4017
4018 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4019 (ada_find_renaming_symbol): New function.
4020 (ada_prefer_type): Prefer named types over unnamed ones.
4021 (variant_field_index): New function.
4022 (contains_variant_part): Removed: subsumed by variant_field_index.
4023 (ada_template_to_fixed_record_type): New function, mostly from
4024 template_to_fixed_record_type.
4025 (template_to_fixed_record_type):
4026 Do not scan the type fields beyond the last one; prevents a
4027 potential SEGV.
4028 Handle case where variant field is listed BEFORE discriminant it
4029 depends on.
4030 Fix calculation of record length when bit length is
4031 not evenly divisible by char length.
4032 Move code to ada_template_to_fixed_record_type and call it.
4033
4034 (template_to_static_fixed_type): Revise comment.
4035 Modify to work on ordinary record types as well as templates,
4036 so as to handle fields that use ___XVE or ___XVU encodings.
4037 (to_record_with_fixed_variant_part): Fill out comment.
4038 Initialize C++ stuff in right type.
4039 Allow case where DVAL is null.
4040 Handle case where variant field is not last.
4041 Fix typo concerning record length.
4042 (to_fixed_record_type): Decomment disabled code.
4043 (to_fixed_record_type): Use variant_field_index instead of
4044 contains_variant_part.
4045 (to_fixed_variant_branch_type): Ditto.
4046 (to_fixed_array_type): Decomment disabled code.
4047 (ada_to_fixed_type): Convert tagged types to the specific type.
4048 Deactivate the size-check for array types in order to avoid
4049 some false size alarms.
4050 (to_static_fixed_type): Decomment disabled code.
4051 Modify to call template_to_static_fixed_type
4052 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4053 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4054 Remove valaddr argument, as it is never really used.
4055 (ada_to_fixed_value): Change interface to act on single struct value*
4056 operand.
4057 (adjust_pc_past_prologue): New function.
4058 (ada_attribute_name): Modify to take enum exp_opcode argument.
4059
4060 (ada_enum_name): Recognize new homonym-distinguishing convention.
4061 Adjust local variable's type to remove compiler warning.
4062 Fix a small problem in the part that unqualifies the enumeration name.
4063 (ada_value_binop): New function.
4064 (ada_value_equal): New function.
4065
4066 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4067 Don't give error message when not doing normal evaluation
4068 and a tagged type doesn't seem to contain a structure member.
4069 Give error message for packed arrays.
4070 For indexing arrays, handle pointers to packed arrays correctly.
4071 Handle case of 'first and 'last attributes of bare integral type
4072 without encoded subtype info.
4073 Remove some unnecessary casts.
4074 Fix uninitialized value of type in computing 'first, 'last, or 'length
4075 of array object.
4076 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4077 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4078 calls.
4079 Attributes are now exp_opcode values.
4080 Correct treatment of 'modulus.
4081 Better error message for taking 'length of wrong kind of type;
4082 improve comment.
4083 Change EVAL_NORMAL to noside for consistency.
4084 Use ada_value_binop for DIV, MOD, REM.
4085 Make special case out of array of length 0, since an argument
4086 of 0 upsets some platforms' malloc.
4087 Use OP_STRING instead of OP_ARRAY.
4088 For slice, add check that we have an array type before extracting
4089 a slice out of it. Avoids a SEGV.
4090 When evaluating an array slice, if the array type is a reference to
4091 an aligner type, then replace the aligner type by the actual type.
4092 Decomment disabled code.
4093 Remove some dead code.
4094 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4095 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4096 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4097 and UNOP_MBR to UNOP_IN_RANGE.
4098 If an array type has a parallel ___XVE type, then use it.
4099 Turn arrays into pointers for lvalue arrays.
4100 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4101 bounds error and handle 0-length slices.
4102 Use lim_warning.
4103 When selecting fields, apply ada_to_fixed_value (because the fields
4104 might have ___XVU or ___XVE encodings even if not dynamic.)
4105 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4106 (ada_is_system_address_type): New function.
4107
4108 (get_var_value): Use new interface to ada_lookup_symbol_list.
4109 (get_int_var_value): New interface.
4110 (to_fixed_range_type): Allow unknown bound, with warning.
4111 (ada_is_modular_type): Decomment disabled code.
4112 (ADA_OPERATORS): New definition.
4113 (ada_operator_length): New function.
4114 (ada_expr_op_name): New function.
4115 (ada_forward_operator_length): New function.
4116 (ada_dump_subexp_body): New function.
4117 (ada_print_subexp): New function.
4118 (ada_exp_descriptor): New constant.
4119 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4120 (ada_language_defn): Add ada_exp_descriptor entry.
4121 Change ada_parse => parse.
4122 Add post-parser entry.
4123 Use ada-specific non-local symbol lookup.
4124 Don't use C-style arrays.
4125 String lower-bound is 1.
4126 Decomment disabled code.
4127 (parse): New function.
4128 New fields ada_translate_error_message, ada_lookup_symbol,
4129 ada_lookup_minimal_symbol.
4130
4131 * ada-lang.h: Update copyright dates.
4132 Replace the mangle/demangle terminology throughout by the
4133 more appropriate encode/decode one.
4134 Include breakpoint.h.
4135 Forward declare struct partial_symbol, struct block.
4136 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4137 (EXTRACT_ADDRESS): Remove.
4138 (EXTRACT_INT): Remove.
4139 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4140 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4141 (MAX_RENAMING_CHAIN_LENGTH): Define.
4142 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4143
4144 (enum task_states): Remove.
4145 ada_task_states: Remove.
4146 (fat_string): Remove.
4147 (struct entry_call): Remove.
4148 (struct task_fields): Remove.
4149 (struct task_entry): Remove.
4150
4151 (struct ada_symbol_info): Define.
4152 (enum ada_attribute): Remove.
4153 (enum ada_operator): Define.
4154
4155 (ada_get_field_index): Declare.
4156 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4157 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4158 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4159 (ada_lookup_symbol_list): New interface.
4160 (ada_decode_symbol): Declare.
4161 (ada_decode): Declare.
4162 (ada_lookup_symbol): New interface.
4163 (ada_update_initial_language): Declare.
4164 (ada_lookup_simple_minsym): Declare.
4165 (user_select_syms): New interface.
4166 (ada_sals_for_line): Declare.
4167 (ada_is_tagged_type): New interface.
4168 (ada_tag_name): Declare.
4169 (ada_lookup_struct_elt_type): Remove declaration.
4170 (ada_search_struct_field): Remove declaration.
4171 (ada_attribute_name): New interface.
4172 (ada_is_system_address_type): Declare.
4173 (ada_to_fixed_value): Remove declaration.
4174 (ada_template_to_fixed_record_type_1): Declare.
4175 (get_int_var_value): New interface.
4176 (ada_find_any_symbol): Declare.
4177 (ada_find_renaming_symbol): Declare.
4178 (ada_mangle): Rename to ada_encode.
4179 (ada_simple_renamed_entity): Remove const.
4180 (ada_main_name): Declare.
4181 (get_current_task): Rename to ada_get_current_task.
4182 (get_entry_number): Remove declaration.
4183 (ada_report_exception_break): Remove declaration.
4184 (ada_print_exception_breakpoint_nontask): Declare.
4185 (ada_print_exception_breakpoint_task): Declare.
4186 (ada_find_printable_frame): Declare.
4187
4188 * ada-lex.l: Update copyright notices.
4189 Use xmalloc and xfree instead of malloc and free.
4190 Use new interface to name_lookup.
4191 Use new interface to
4192 ada_mangle=>ada_encode.
4193 Redo handling of '$...' variable to parallel current treatment
4194 in c-exp.y.
4195 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4196 digit_to_int, strtoulst, processInt, processReal, processId,
4197 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4198 yywrap): Protoize.
4199
4200 (processInt): Use cast to remove harmless warning.
4201 (processReal): Modify to get rid of compiler warning on scan formats.
4202
4203 (processId): Replace xmalloc with obstack_alloc for name and remove
4204 call to ada_name_string_cleanup.
4205 Remove obsolete disabled code.
4206 (name_lookup): Ditto.
4207 New interface.
4208 Use obsavestring on temp_parse_space instead of savestring
4209 on name, and remove call to ada_name_string_cleanup.
4210 Free string returned from ada_simple_renamed_entity.
4211 Use new interface to ada_lookup_symbol_list.
4212 Decomment disabled code.
4213 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4214 not types.
4215 When a type name lookup succeeds as a result of
4216 lookup_primitive_typename, check for regular type entry that has not
4217 yet been read in.
4218 Limit length of chain of renamed symbols we are willing to follow.
4219 Do not break names beginning with "standard__" into segments.
4220 (block_lookup): Use new interface to ada_lookup_symbol_list.
4221
4222 * ada-typeprint.c: Update copyright notice.
4223 (demangled_type_name): Rename to decoded_type_name.
4224 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4225 (print_range_bound): Correct handling of negative
4226 bounds that make the index type looked unsigned under STABS.
4227 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4228 (print_range_type_named): Use the builtin int type if no type
4229 corresponding to the given type name could be found.
4230 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4231 Add some bullet-proofing.
4232 (print_variant_clauses): Allow for variant branches with ___XVU
4233 encodings that are not dynamic fields.
4234 Use new interface to ada_is_tagged_type.
4235 (print_record_type): Allow for fields with ___XVE encodings that
4236 are not dynamic fields.
4237 Use new interface to ada_is_tagged_type.
4238 (ada_print_type): ada_is_array_descriptor =>
4239 ada_is_array_descriptor_type.
4240
4241 * ada-valprint.c: Update copyright notice.
4242 Include gdb_string.h
4243 Include infcall.h
4244 (ui_memcpy): New function.
4245 (ada_print_floating): New function.
4246 (ada_print_str): Order arguments correctly.
4247 Correct handling of empty arrays and arrays of 0-length items.
4248 ada_is_array_descriptor => ada_is_array_descriptor_type
4249 Print values of type System.Address in hexadecimal format.
4250 Use ada_print_floating to print floating-point numbers in Ada format.
4251 Print class tag values with type names.
4252 No longer print the address of reference values. Avoids
4253 a potential confusion.
4254 (ada_value_print): Stop printing the object type for reference
4255 values, but preserve that behavior for access types. Avoids
4256 a potential confusion.
4257 Simplify one conditional expression, as the first part is now
4258 necessarily true.
4259 ada_is_array_descriptor => ada_is_array_descriptor_type
4260 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4261
f65f91b5
JB
42622004-06-01 Jim Blandy <jimb@redhat.com>
4263
4264 * ppc-tdep.h: Delete unused 'regoff' member.
4265 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4266
d4687fa0
MC
42672004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4268
4269 Fix PR symtab/1661.
4270 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4271 (hpread_read_struct_type): Likewise.
4272
de169ec9
AC
42732004-06-01 Andrew Cagney <cagney@gnu.org>
4274
c6902d46
AC
4275 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4276 instead of xasprintf.
4277 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4278 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4279 (mi_cmd_data_list_register_names)
4280 (mi_cmd_data_list_changed_registers)
4281 (mi_cmd_data_list_register_values)
4282 (get_register, mi_cmd_data_write_register_values)
4283 (mi_cmd_data_write_register_values)
4284 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4285 (mi_cmd_target_download, mi_cmd_target_select)
4286 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4287 (mi_execute_cli_command, mi_execute_async_cli_command)
4288 (mi_execute_async_cli_command): Ditto.
4289 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4290 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4291
6085fc2d
AC
4292 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4293 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4294 error_last_message instead of mi_error_last_message.
4295 * mi/mi-main.c (mi_error_last_message): Delete function.
4296
de169ec9
AC
4297 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4298 "invalid number of columns" error. Delete redundant "out of
4299 memory" check.
4300
1fc7d519
MK
43012004-05-31 Mark Kettenis <kettenis@gnu.org>
4302
6cfb2041
MK
4303 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4304 (gregset_t, fpregset_t): Remove typedefs.
4305 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4306 (REG_OFFSET): Rename argument.
4307 (i386bsd_r_reg_offset): Rename from reg_offset.
4308 (REG_ADDR): Remove macro.
4309 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4310 functions.
4311 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4312 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4313 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4314 instead of supply_gregset.
4315 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4316 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4317 instead of fill_gregset.
4318 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4319
1fc7d519
MK
4320 * i386bsd-nat.c: Don't include "gregset.h".
4321 (supply_gregset, fill_gregset): Make static.
4322 (supply_fpregset, fill_fpregset): Remove.
4323 * Makefile.in (i386bsd-nat.o): Update dependencies.
4324
2c34abbe
MK
43252004-05-30 Mark Kettenis <kettenis@gnu.org>
4326
448724fb
MK
4327 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4328 "gdb_assert.h". Con't include "gregset.h".
4329 (fbsd_make_corefile_notes): Use regset-based core file support
4330 instead off fill_gregset and fill_fpregset.
4331 * Makefile.in (fbsd-proc.o): Update dependencies.
4332
5ca8ca7c
MK
4333 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4334 instructions.
4335 (m88k_frame_prev_register): Simplify code a bit.
4336
593adc23
MK
4337 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4338 (amd64_collect_fpregset): New function.
4339 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4340
8d1b517b
MK
4341 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4342
7fdafb5a
MK
4343 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4344 (i386_collect_gregset): New function.
4345 (i386_supply_fpregset): Adjust comment.
4346 (i386_collect_fpregset): New function.
4347 (i386_regset_from_core_section): Use i386_collect_gregset and
4348 i386_collect_fpregset.
4349
8693c419
MK
4350 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4351 handle VALUEP being null.
4352
2c34abbe
MK
4353 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4354
45d134d8
MK
43552004-05-29 Mark Kettenis <kettenis@gnu.org>
4356
1698f4e7
MK
4357 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4358
45d134d8
MK
4359 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4360 assembler in OpenBSD 3.5-current.
4361 (amd64obsd_sigcontext_addr): Likewise.
4362
691d145a
JB
43632004-05-28 Jim Blandy <jimb@redhat.com>
4364
4365 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4366 register set, so our regcache isn't declared "legacy" and our E500
4367 pseudoregister read and write functions aren't ignored.
4368 (rs6000_register_byte, rs6000_register_raw_size,
4369 rs6000_register_virtual_type, rs6000_register_convertible,
4370 rs6000_register_convert_to_virtual,
4371 rs6000_register_convert_to_raw): Deleted.
4372 (rs6000_register_type, rs6000_convert_register_p,
4373 rs6000_register_to_value, rs6000_value_to_register): New
4374 functions.
4375 (rs6000_gdbarch_init): Don't register
4376 gdbarch_deprecated_register_size,
4377 gdbarch_deprecated_register_bytes,
4378 gdbarch_deprecated_register_byte,
4379 gdbarch_deprecated_register_raw_size,
4380 gdbarch_deprecated_register_virtual_type,
4381 gdbarch_deprecated_register_convertible,
4382 gdbarch_deprecated_register_convert_to_virtual, or
4383 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4384 register gdbarch_register_type, gdbarch_convert_register_p,
4385 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4386
18ed0c4e
JB
43872004-05-26 Jim Blandy <jimb@redhat.com>
4388
4389 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4390 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4391 functions, updated to match the register numberings used in GCC.
4392 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4393 rs6000_dwarf2_reg_to_regnum as register number conversions
4394 functions for STABS and Dwarf2.
4395
779af9e3
RC
43962004-05-26 Randolph Chung <tausq@debian.org>
4397
4398 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4399 in header file.
4400
c23968a2
JB
44012004-05-25 Joel Brobecker <brobecker@gnat.com>
4402
4403 * NEWS: Document new "start" command.
4404
3a7d1c27
RC
44052004-05-25 Randolph Chung <tausq@debian.org>
4406
4407 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4408 hppa-linux.
4409
43613416
RC
44102004-05-25 Randolph Chung <tausq@debian.org>
4411
4412 * hppa-hpux-tdep.c (offsetof): Define.
4413 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4414 (hppa32_hpux_frame_base_before_sigtramp)
4415 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4416 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4417 (hppa64_hpux_frame_base_before_sigtramp)
4418 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4419 functions.
4420 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4421 (hppa_hpux_sigtramp_frame_unwind_cache)
4422 (hppa_hpux_sigtramp_frame_this_id)
4423 (hppa_hpux_sigtramp_frame_prev_register)
4424 (hppa_hpux_sigtramp_frame_unwind)
4425 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4426 (hppa_hpux_init_abi): Register sigtramp unwinder.
4427 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4428
6d1be3f1
RC
44292004-05-25 Randolph Chung <tausq@debian.org>
4430
4431 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4432 and multiple stack unwinds.
4433 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4434
97c34f65
AC
44352004-05-25 Andrew Cagney <cagney@gnu.org>
4436
4437 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4438 * symfile-mem.h: Delete file.
4439 * symfile-mem.c: Do not include "symfile-mem.h".
4440 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4441 "struct bfd_section". When an error do not bother returning NULL.
4442 (add_symbol_file_from_memory_command): Use "struct bfd" and
4443 "struct bfd_section".
4444 * Makefile.in (symfile_mem_h): Delete.
4445 (symfile-mem.o): Update dependencies.
4446
e23cbd82
NR
44472004-05-25 Nick Roberts <nickrob@gnu.org>
4448
4449 * gdb-mi.el: New file.
4450
20d2ca3e
AC
44512004-05-25 Andrew Cagney <cagney@gnu.org>
4452
4453 * inftarg.c: Include "observer.h".
4454 (child_attach, child_create_inferior): Notify inferior_created.
4455 * corelow.c: Include "observer.h".
4456 (core_open): Notify inferior_created.
4457 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4458
c27cda74
AC
44592004-05-25 Andrew Cagney <cagney@gnu.org>
4460
4461 * target.h (struct target_ops): Add from_tty to
4462 to_create_inferior.
4463 (target_create_inferior, find_default_create_inferior): Update.
4464 * infcmd.c (run_command): Update.
4465 * wince.c (child_create_inferior): Update.
4466 * win32-nat.c (child_create_inferior): Update.
4467 * uw-thread.c (uw_thread_create_inferior): Update.
4468 * thread-db.c (thread_db_create_inferior): Update.
4469 * target.c (debug_to_create_inferior)
4470 (find_default_create_inferior): Update.
4471 (maybe_kill_then_create_inferior): Update.
4472 * sol-thread.c (sol_thread_create_inferior): Update.
4473 * remote.c (extended_remote_async_create_inferior)
4474 (extended_remote_create_inferior): Update.
4475 * remote-vx.c (vx_create_inferior): Update.
4476 * remote-st.c (st2000_create_inferior): Update.
4477 * remote-sim.c (gdbsim_create_inferior): Update.
4478 * remote-sds.c (sds_create_inferior): Update.
4479 * remote-rdp.c (remote_rdp_create_inferior): Update.
4480 * remote-rdi.c (arm_rdi_create_inferior): Update.
4481 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4482 * remote-e7000.c (e7000_create_inferior): Update.
4483 * procfs.c (procfs_create_inferior): Update.
4484 * ocd.c (ocd_create_inferior): Update.
4485 * ocd.h (ocd_create_inferior): Update.
4486 * nto-procfs.c (procfs_create_inferior): Update.
4487 * monitor.c (monitor_create_inferior): Update.
4488 * lin-lwp.c (lin_lwp_create_inferior): Update.
4489 * inftarg.c (child_create_inferior): Update.
4490 * hpux-thread.c (hpux_thread_create_inferior): Update.
4491 * gnu-nat.c (gnu_create_inferior): Update.
4492
1db2a798
AC
44932004-05-25 Andrew Cagney <cagney@gnu.com>
4494
4495 * MAINTAINERS: Update e-mail address.
4496
007d08bb
RC
44972004-05-24 Randolph Chung <tausq@debian.org>
4498
4499 * thread.c (info_threads_command, thread_apply_all_command)
4500 (thread_apply_command, thread_command, do_captured_thread_select):
4501 Remove HPUXHPPA-specific code.
4502
69e7b95e
RC
45032004-05-24 Randolph Chung <tausq@debian.org>
4504
4505 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4506 unused symbols.
4507 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4508 references.
4509
a4d5f2e0
JB
45102004-05-24 Joel Brobecker <brobecker@gnat.com>
4511
4512 * infcmd.c (kill_if_already_running): New function, extracted
4513 from run_command().
4514 (run_command): Replace extracted code by call to
4515 kill_if_already_running().
4516 (start_command): New function.
4517 (_initialize_infcmd): Add "start" command.
4518
bf2ca189
MK
45192004-05-24 Mark Kettenis <kettenis@gnu.org>
4520
4521 Add OpenBSD/m88k support.
4522 * NEWS (New native configurations): Mention OpenBSD/m88k.
4523 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4524 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4525 * Makefile.in (m88k_tdep_h): New variable.
4526 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4527 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4528 * configure.host: Add m88*-*-openbsd*.
4529 * configure.tgt: Add m88*-*-openbsd*.
4530
80fadb11
JB
45312004-05-24 Jim Blandy <jimb@redhat.com>
4532
4533 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4534 to approve changes.
4535
19e2d14b
KB
45362004-05-24 Kevin Buettner <kevinb@redhat.com>
4537
4538 * symtab.c (fixup_section): Search section table when lookup by
4539 name fails.
4540
1b07b470
RC
45412004-05-24 Randolph Chung <tausq@debian.org>
4542
4543 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4544 be "small_struct".
4545
368702b1
MK
45462004-05-24 Mark Kettenis <kettenis@gnu.org>
4547
5df97fde
MK
4548 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4549 register number in regcache_raw_collect call.
4550 (m68kbsd_collect_fpregset): Likewise.
4551 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4552
368702b1
MK
4553 * regset.h (struct regset): Add back `regset' member.
4554
a770d4ec
MK
45552004-05-23 Mark Kettenis <kettenis@gnu.org>
4556
70f9f479
MK
4557 * configure.in: Check for td_pcb in `struct thread'.
4558 * configure, config.in: Regenerated.
4559
2e16d79e
MK
4560 * dpx2-nat.c: Remove file.
4561 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4562 (dpx2-nat.o): Remove dependencies.
4563
492cf391
MK
4564 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4565 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4566 (amd64obsd_supply_pcb): New function.
4567 (_initialize_amd64obsd_nat): Enable libkvm interface.
4568 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4569 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4570 (LOADLIBES): New variable.
4571
a770d4ec
MK
4572 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4573 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4574 (sparc32nbsd_supply_pcb): New function.
4575 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4576 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4577 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4578 (LOADLIBES): New variable.
4579
9ea75c57
MK
45802004-05-22 Mark Kettenis <kettenis@gnu.org>
4581
2e0c3539
MK
4582 * bsd-kvm.c, bsd-kvm.h: New files.
4583 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4584 "bsd-kvm.h".
4585 (i386fbsd_supply_pcb): New function.
4586 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4587 (i386fbsd-nat.o): Update dependencies.
4588 (bsd_kvm_h): New variable.
4589 (bsd-kvm.o): New dependency.
4590 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4591 (LOADLIBES): New variable.
4592
9ea75c57
MK
4593 * regset.c: Tweak comment.
4594 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4595 macro.
4596 * regset.h: Update copyright year.
4597 (struct regset): Remove `descr' member, add `gdbarch' member.
4598 (regset_alloc): Adjust prototype and comment.
4599 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4600 (i386_supply_fpregset): Likewise.
4601 (i386_regset_from_core_section): Update call to regset_alloc.
4602 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4603 REGSET->arch.
4604 (i386obsd_aout_regset_from_core_section): Update call to
4605 regset_alloc.
4606 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4607 REGSET->arch.
4608 (i386nbsd_aout_regset_from_core_section): Update call to
4609 regset_alloc.
4610 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4611 REGSET->arch.
4612 (amd64_regset_from_core_section): Update call to regset_alloc.
4613 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4614 REGSET->arch.
4615 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4616 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4617 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4618 (sparc32nbsd_init_abi): Update call to regset_alloc.
4619 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4620 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4621 (sparc64obsd_init_abi): Update call to regset_alloc.
4622 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4623 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4624 (sparc64nbsd_init_abi): Update call to regset_alloc.
4625 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4626 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4627 (sparc64fbsd_init_abi): Update call to regset_alloc.
4628
867e2dc5
JB
46292004-05-22 Jim Blandy <jimb@redhat.com>
4630
4631 * ppc-tdep.h (spe_register_p): New declaration.
4632 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4633 ppc_spefscr_regnum.
4634 * rs6000-tdep.c (spe_register_p): New function.
4635 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4636 spefscr.
4637 (rs6000_gdbarch_init): Initialize the new members of the tdep
4638 structure.
4639
617a4cba
JB
46402004-05-21 Jim Blandy <jimb@redhat.com>
4641
0397dee1
JB
4642 * ppc-linux-nat.c (fetch_register): Move code back to be next
4643 to the comment that describes it. (Moved code, instead of
4644 comment, for symmetry with store_register.)
4645
617a4cba
JB
4646 Allocate regset structures in the gdbarch's obstack, not using
4647 xmalloc.
4648 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4649 Add 'arch' argument. Allocate the regset on arch's obstack, not
4650 using xmalloc.
4651 * regset.h (regset_alloc): Update declaration.
4652 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4653 gdbarch argument.
4654 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4655 * i386-tdep.c (i386_regset_from_core_section): Same.
4656 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4657 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4658 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4659 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4660 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4661 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4662
9aa3914d
JB
46632004-05-21 Joel Brobecker <brobecker@gnat.com>
4664
4665 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4666
99c87dab
JB
46672004-05-21 Jim Blandy <jimb@redhat.com>
4668
4669 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4670 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4671
c2b6b4aa
JB
46722004-05-20 Jim Blandy <jimb@redhat.com>
4673
4674 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4675
144529d0
MK
46762004-05-20 Mark Kettenis <kettenis@gnu.org>
4677
4678 * regset.h: Make prototype const-correct.
4679 * regset.c (regset_xmalloc): Make const-correct.
4680
4725b721
PH
46812004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4682
4683 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4684 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4685 (symbol_search_name): Declare.
4686
4687 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4688 (iter_name_next_hashed): Ditto.
4689 (iter_name_next_linear): Ditto.
4690 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4691
4692 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4693 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4694 (symbol_search_name): New function.
4695
4696 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4697
4698 * minsyms.c (build_minimal_symbol_hash_tables): Change
4699 test for adding to demangled hash table to check for difference
4700 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4701
be07a590
JB
47022004-05-19 Jim Blandy <jimb@redhat.com>
4703
4704 Use a constructor function to create regset structures.
4705 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4706 (struct regset): Use supply_regset_ftype. Add new
4707 'collect_regset' member.
4708 (regset_xmalloc): New declaration.
4709 * regset.c: New file.
4710 * am64-tdep.c (amd64_regset_from_core_section): Use
4711 regset_xmalloc to construct regset structures.
4712 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4713 * i386-tdep.c (i386_regset_from_core_section): Same.
4714 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4715 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4716 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4717 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4718 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4719 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4720 * Makefile.in (COMMON_OBS): Add regset.o.
4721 (regset.o): New rule.
4722
604368f5
JB
47232004-05-19 Joel Brobecker <brobecker@gnat.com>
4724
4725 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4726 and pthread_cond_wait.c.
4727
82d69f8b
JB
47282004-05-18 Jim Blandy <jimb@redhat.com>
4729
4730 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4731 before the mach-specific switch, and then let the individual cases
4732 override the defaults, rather than leaving them uninitialized
4733 until the switch and then setting them in each case.
4734
5859efe5
RC
47352004-05-18 Randolph Chung <tausq@debian.org>
4736
4737 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4738 millicode functions.
4739
9ca80cf8
RC
47402004-05-18 Randolph Chung <tausq@debian.org>
4741
4742 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4743 references to dld_flags_buffer consistent.
4744
ed70ba00
RC
47452004-05-18 Randolph Chung <tausq@debian.org>
4746
4747 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4748 it for unwinding the stack.
4749
63100632
RC
47502004-05-18 Randolph Chung <tausq@debian.org>
4751
4752 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4753 Undefine these so we can overide them using gdbarch.
4754
090ccbb7
RC
47552004-05-18 Randolph Chung <tausq@debian.org>
4756
4757 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4758 handling for 64-bit HPUX (elf).
4759
594706e6
DJ
47602004-05-18 Daniel Jacobowitz <dan@debian.org>
4761
4762 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4763 constants.
4764 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4765 * ia64-tdep.c (examine_prologue): Likewise.
4766 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4767 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4768
e5483145
MK
47692004-05-18 Mark Kettenis <kettenis@gnu.org>
4770
4771 * vax-tdep.c (vax_return_value): Implement
4772 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4773
caed1a45
MK
47742004-05-17 Mark Kettenis <kettenis@gnu.org>
4775
4776 * vax-tdep.c (vax_return_value): Fix typo.
4777
3c0b7db2
AC
47782004-05-17 Andrew Cagney <cagney@redhat.com>
4779
5aae53e5
AC
4780 * MAINTAINERS: Mark Salter was also responsible for
4781 testsuite/config/
4782
3c0b7db2
AC
4783 * NEWS: Mention signal fixes.
4784
22b0923d
RC
47852004-05-17 Randolph Chung <tausq@debian.org>
4786
4787 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4788 check to see if we are unwinding an export stub. Export stubs clobber
4789 the %rp in the call path and stores the original rp in a stack slot.
4790
22f2b2f3
JB
47912004-05-17 Jim Blandy <jimb@redhat.com>
4792
4793 * MAINTAINERS: Update address for J.T. Conklin.
4794
cea96d64
RC
47952004-05-17 Randolph Chung <tausq@debian.org>
4796
4797 * hppa-tdep.c: Remove superfluous #include's.
4798 * Makefile.in (hppa-tdep.o): Update dependencies.
4799
f08f6a4a
RC
48002004-05-17 Randolph Chung <tausq@debian.org>
4801
4802 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4803 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4804 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4805 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4806 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4807 Remove static function declarations.
4808
51da707a
MK
48092004-05-17 Mark Kettenis <kettenis@gnu.org>
4810
caed1a45
MK
4811 * alphabsd-nat.c: Update copyright year.
4812 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4813
c0c2b0db
MK
4814 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4815 and M68K_A2_REGNUM.
4816
51da707a
MK
4817 * m68k-tdep.c (m68k_svr4_return_value): Implement
4818 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4819
8d027a04
MK
48202004-05-16 Mark Kettenis <kettenis@gnu.org>
4821
4822 * sol-thread.c Update copyright year. Fix various coding
4823 standards violations. Tweak a few comments.
4824 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4825 Delete prototypes.
4826
0d99fdb9
RC
48272004-05-15 Randolph Chung <tausq@debian.org>
4828
4829 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4830 as pointer instead of array reference since HPUX compiler does
4831 not accept unsized array arguments.
4832 * somsolib.c (dld_flags_buffer): Use constant array size.
4833
f7e3843a
MK
48342004-05-15 Mark Kettenis <kettenis@gnu.org>
4835
0fe85704
MK
4836 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4837 offset with decimal offset.
4838 (amd64obsd_sigcontext_addr): Return correct address for entire
4839 signal trampoline.
4840
a54f9a00
MK
4841 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4842 instead of get_frame_base.
4843
feae6502
MK
4844 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4845 (fill_gregset): Use regcache_raw_collect.
4846
0382d099
MK
4847 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4848 ppcobsd-tdep.c.
4849
f7e3843a
MK
4850 * config/sparc/tm-nbsd64.h: Remove file.
4851 * config/tm-sunos.h: Remove file.
4852
773df3e5
JB
48532004-05-15 Joel Brobecker <brobecker@gnat.com>
4854
4855 * rs6000-tdep.c (store_param_on_stack_p): New function,
4856 an improved version of some code extracted from skip_prologue().
4857 (skip_prologue): Use store_param_on_stack_p() to detect
4858 instructions saving a parameter on the stack. Detect when r0
4859 is used to save a parameter.
4860 Do not mark "li rx, SIMM" instructions as part of the prologue,
4861 unless the following instruction is also part of the prologue.
4862
95918acb
AC
48632004-05-14 Andrew Cagney <cagney@redhat.com>
4864
06f32659
AC
4865 * infrun.c (handle_inferior_event): Simplify
4866 STEP_OVER_UNDEBUGGABLE.
4867
95918acb
AC
4868 * infrun.c (handle_step_into_function): Delete function.
4869 (handle_inferior_event): Inline calls to
4870 handle_step_into_function.
4871
40711ff1 48722004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4873
4874 * rs6000-nat.c: Fix a comment.
4875
02f60eae
JB
48762004-05-12 David Anderson <davea@sgi.com>
4877
4878 Committed by Jim Blandy <jimb@redhat.com>:
4879 * regcache.c (struct regcache_descr): fix comment spelling.
4880
552e377b
JB
48812004-05-13 J. Brobecker <brobecker@gnat.com>
4882
4883 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4884 Fixes a link link failure.
4885
349766b2
JB
48862004-05-13 J. Brobecker <brobecker@gnat.com>
4887
4888 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4889 error that was causing the build to fail.
4890
0d4d5484
JB
48912004-05-13 J. Brobecker <brobecker@gnat.com>
4892
4893 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4894 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4895
0b30808c
AC
48962004-05-13 Andrew Cagney <cagney@redhat.com>
4897
4898 * infrun.c (handle_inferior_event): Check for
4899 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4900 calls. Update comments.
4901
cdf2c5f5
JB
49022004-05-13 Jim Blandy <jimb@redhat.com>
4903
063715bf
JB
4904 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4905 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4906 (store_regs_user_thread, store_regs_kernel_thread): Use
4907 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4908 * ppc-linux-nat.c (fill_gregset): Same.
4909 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4910 (ppc_linux_sigtramp_cache): Same.
4911 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4912 (ppcnbsd_sigtramp_cache_init): Same.
4913 * rs6000-nat.c (fetch_core_registers): Same.
4914 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4915 (rs6000_frame_cache): Same.
4916
cdf2c5f5
JB
4917 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4918 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4919 of assuming that the gprs are numbered starting with zero.
4920 * ppc-linux-nat.c (fill_gregset): Same.
4921 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4922 * ppcnbsd-nat.c (getregs_supplies): Same.
4923 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4924 * rs6000-nat.c (fetch_core_registers): Same.
4925 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4926
450bd37b
MS
49272004-05-07 Michael Snyder <msnyder@redhat.com>
4928
4929 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4930 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4931
4a72a2a6
AC
49322004-05-13 Andrew Cagney <cagney@redhat.com>
4933
4934 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4935
8edfa926
BM
49362004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4937
4938 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4939 base_address for shared libraries.
4940
723e0e3d
BM
49412004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4942
4943 * MAINTAINERS (write after approval): Add myself.
4944
00d4360e
UW
49452004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4946
4947 * breakpoint.c (bpstat_stop_status): Add new argument
4948 STOPPED_BY_WATCHPOINT. Use it instead of testing
4949 target_stopped_data_address agaist 0 to check whether
4950 or not we stopped due to a hardware watchpoint.
4951 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4952 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4953 with new argument.
4954
ec76baa5
JB
49552004-05-12 Jim Blandy <jimb@redhat.com>
4956
4957 * configure.in: When checking whether we should use the -bbigtoc
4958 option, don't forget to restore the original value of LDFLAGS.
4959 * configure: Regenerated.
4960
f2c9ca08
AC
49612004-05-12 Andrew Cagney <cagney@redhat.com>
4962
4963 * thread.c (load_infrun_state): Delete step_sp.
4964 * infrun.c (context_switch): Ditto.
4965 * inferior.h (step_sp): Ditto.
4966 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4967 * gdbthread.h (struct thread_info, save_infrun_state)
4968 (restore_infrun_state): Ditto.
4969
090ddb2a
UW
49702004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4971
4972 * MAINTAINERS (write after approval): Add myself.
4973
8aad930b
AC
49742004-05-12 Andrew Cagney <cagney@redhat.com>
4975
4976 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4977 eliminate reference to step_sp.
4978 (struct execution_control_state, init_execution_control_state)
4979 (handle_inferior_event, keep_going): Delete update_step_sp and
4980 step_sp.
4981 * infcmd.c (step_sp): Note that variable is unused.
4982
922d5ae0
AC
49832004-05-11 Andrew Cagney <cagney@redhat.com>
4984
4985 * infrun.c (step_over_function): Delete function.
4986 (handle_step_into_function): Use insert_step_resume_breakpoint.
4987 (insert_step_resume_breakpoint): Fix assertion.
4988
017c5ca5
NR
49892004-05-11 Nick Roberts <nickrob@gnu.org>
4990
4991 * utils.c (defaulted_query): Just use the normal query input type
4992 when printing the annotations.
4993
42edda50
AC
49942004-05-11 Andrew Cagney <cagney@redhat.com>
4995
4996 * infrun.c (handle_inferior_event): Simplify code handling
4997 step-into or return-from a signal trampoline.
4998
d28b44a7
AC
49992004-05-11 Andrew Cagney <cagney@redhat.com>
5000
5001 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5002 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5003
383f0f5b
JB
50042004-05-10 Jim Blandy <jimb@redhat.com>
5005
d0b57c3a
JB
5006 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5007 with a call to internal_error.
5008
383f0f5b
JB
5009 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5010 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5011 processor variant lacks those registers.
5012 (ppc_floating_point_unit_p): Change description to make it clear
5013 that this returns info about the ISA, not the ABI.
5014 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5015 return true or false by checking tdep->ppc_fp0_regnum and
5016 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5017 arch/mach switching done in rs6000_gdbarch_init; it's better to
5018 keep that logic there, and just check the results here.
5019 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5020 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5021 floating-point registers.
5022 (ppc_supply_fpregset, ppc_collect_fpregset)
5023 (rs6000_push_dummy_call, rs6000_extract_return_value)
5024 (rs6000_store_return_value): Assert that we have floating-point
5025 registers.
5026 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5027 (rs6000_frame_cache): Don't note the locations at which
5028 floating-point registers were saved if we have no fprs.
5029 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5030 registers.
5031 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5032 (store_regs_user_thread, store_regs_kernel_thread): Only call
5033 supply_fprs / fill_fprs if we actually have floating-point
5034 registers.
5035 (special_register_p): Check ppc_fpscr_regnum before matching
5036 against it.
5037 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5038 supply / collect fpscr if we don't have it.
5039 * ppc-bdm.c: #include "gdb_assert.h".
5040 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5041 have floating-point registers, since I can't test this code on
5042 FP-free systems to adapt it.
5043 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5044 fpscr and floating point register numbers if they don't exist.
5045 (fetch_register): Assert that we have floating-point registers
5046 before we reach the code that handles them.
5047 (store_register): Same. And use tdep instead of calling
5048 gdbarch_tdep again.
5049 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5050 don't have them.
5051 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5052 fprs and fpscr if we don't have them.
5053 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5054 don't have them.
5055 * ppcnbsd-nat.c: #include "gdb_assert.h".
5056 (getfpregs_supplies): Assert that we have floating-point registers.
5057 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5058 * ppcobsd-tdep.c: #include "gdb_assert.h".
5059 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5060 have floating-point registers.
5061 * rs6000-nat.c (regmap): Don't match against the fpscr and
5062 floating point register numbers if they don't exist.
5063 (fetch_inferior_registers, store_inferior_registers,
5064 fetch_core_registers): Only fetch / store / supply the
5065 floating-point registers and the fpscr if we have them.
5066 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5067 (ppcobsd-tdep.o): Update dependencies.
5068
15960608
AC
50692004-05-10 Andrew Cagney <cagney@redhat.com>
5070
5071 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5072 (context_switch): Do not switch through_sigtramp_breakpoint.
5073 * gdbthread.h (save_infrun_state, load_infrun_state)
5074 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5075 and structure member.
5076 * thread.c (load_infrun_state, save_infrun_state): Update.
5077
5ab5aa0f
MK
50782004-05-10 Mark Kettenis <kettenis@gnu.org>
5079
5080 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5081
da78b0e7
DJ
50822004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5083
5084 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5085 throughout.
5086 * aclocal.m4: Regenerate.
5087
cca0d3b0
NW
50882004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5089
5090 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5091
d303a6c7
AC
50922004-05-10 Andrew Cagney <cagney@redhat.com>
5093
5094 * infrun.c (check_sigtramp2): Delete function.
5095 (handle_inferior_event): When single stepping, and taking a
5096 signal, set a breakpoint at the signal return address. Delete
5097 redundant calls to check_sigtramp2.
5098 (insert_step_resume_breakpoint): New function.
5099 (through_sigtramp_breakpoint, handle_inferior_event)
5100 (follow_exec, wait_for_inferior, fetch_inferior_event)
5101 (currently_stepping, keep_going): Delete most uses of
5102 through_sigtramp_breakpoint, not that it should be deleted.
5103 (delete_breakpoint_current_contents): Delete function.
5104
03f4cc20
RC
51052004-05-10 Randolph Chung <tausq@debian.org>
5106
5107 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5108 target.
5109 * config/pa/tm-linux.h: New file.
5110
37fc812e
DJ
51112004-05-10 Daniel Jacobowitz <drow@mvista.com>
5112
5113 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5114 of prefixes. Don't print the prefix twice in the CLI.
5115
26c0b942
JB
51162004-05-10 Jim Blandy <jimb@redhat.com>
5117
2e56e9c1
JB
5118 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5119 collect all the gprs.
5120
26c0b942
JB
5121 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5122 loop collecting gprs.
5123
dc497459
AC
51242004-05-09 Andrew Cagney <cagney@redhat.com>
5125
5126 * remote-vx.c (net_step): Delete step-range code.
5127 * remote.c (remote_resume, init_all_packet_configs)
5128 (set_remote_protocol_E_packet_cmd)
5129 (show_remote_protocol_E_packet_cmd)
5130 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5131 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5132 (show_remote_protocol_e_packet_cmd): Ditto.
5133
0543f387
MK
51342004-05-09 Mark Kettenis <kettenis@gnu.org>
5135
c481d1ca
MK
5136 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5137
f626a069
MK
5138 * hppa-tdep.h: Update copyright year.
5139 (struct trad_frame_saved_reg): Add opaque declaration.
5140
6fa57a7d
MK
5141 * amd64-tdep.c (amd64_return_value): Implement
5142 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5143
e47577ab
MK
5144 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5145 (m68k_value_to_register): New functions.
5146 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5147 value_to_register.
5148
31db7b6c
MK
5149 * defs.h (enum return_value_convention): Add
5150 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5151 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5152 * infcmd.c (legacy_return_value): New function.
5153 (print_return_value): Rwerite to implement
5154 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5155 * values.c (using_struct_return): Check for inequality to
5156 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5157 RETURN_VALUE_STRUCT_CONVENTION.
5158 * i386-tdep.c (i386_return_value): Implement
5159 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5160
0543f387
MK
5161 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5162 include "symtab.h", "opcode/vax.h" and "inferior.h".
5163 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5164 to read_memory_unsigned_integer.
5165 (vax_gdbarch_init): Reorder.
5166 (_initialize_vax_tdep): Spell out prototype.
5167 * Makefile.in (vax-tdep.o): Update dependencies.
5168
0c93b7b6
AC
51692004-05-08 Andrew Cagney <cagney@redhat.com>
5170
e6b55ae2
AC
5171 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5172 * target.c (target_detach, target_disconnect): Ditto.
5173
1ac839b8
AC
5174 * infcall.c (call_function_by_hand): When no
5175 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5176 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5177 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5178 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5179 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5180
28954179
AC
5181 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5182 * gdbarch.h, gdbarch.c: Re-generate.
5183 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5184 deprecated_fix_call_dummy.
5185 * v850-tdep.c (v850_gdbarch_init): Ditto.
5186 * infcall.c (call_function_by_hand): Do not call
5187 DEPRECATED_FIX_CALL_DUMMY.
5188
434b87dd
AC
5189 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5190 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5191 * gdbarch.h, gdbarch.c: Re-generate.
5192 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5193 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5194 deprecated_sizeof_call_dummy_words.
5195 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5197 * v850-tdep.c (v850_gdbarch_init): Ditto.
5198 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5199 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5200 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5201 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5202 * arch-utils.h (legacy_call_dummy_words)
5203 (legacy_sizeof_call_dummy_words): Delete declarations.
5204 * arch-utils.c (legacy_call_dummy_words)
5205 (legacy_sizeof_call_dummy_words): Delete variables.
5206
58d28df8
AC
5207 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5208 * gdbarch.h, gdbarch.c: Re-generate.
5209 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5210 * infcall.c (call_function_by_hand): Eliminate call to
5211 DEPRECATED_PUSH_DUMMY_FRAME.
5212 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5213 push_dummy_frame.
5214 (ns32k_push_dummy_frame): Delete function.
5215
e4a2df64
AC
5216 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5217 deprecated_call_dummy_breakpoint_offset or
5218 deprecated_call_dummy_start_offset.
5219 * dummy-frame.c, arm-tdep.c: Update comments.
5220 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5221 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5222 * gdbarch.h, gdbarch.c: Re-generate.
5223
d3712828
AC
5224 * infcall.c (legacy_push_dummy_code): Delete function.
5225 (push_dummy_code): Delete call.
5226
7a882905
AC
5227 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5228 * gdbarch.h, gdbarch.c: Re-generate.
5229 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5230 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5231 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5232 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5233
0ec5872b
AC
5234 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5235 (struct frame_info): Delete opaque declaration.
5236 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5237 * frame.c (get_frame_type): Delete call.
5238
0c93b7b6
AC
5239 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5240 pc_in_call_dummy.
5241 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5242 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5243
75536971
MK
52442004-05-08 Mark Kettenis <kettenis@gnu.org>
5245
527ca6bb
MK
5246 * alphanbsd-tdep.c: Include "gdb_string.h".
5247 * armnbsd-tdep.c: Update copyright year.
5248 Include "gdb_string.h".
5249 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5250 dependencies.
5251
d39fdc61
MK
5252 * delta68-nat.c: Remove file.
5253 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5254 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5255 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5256 (delta68-nat.o): Remove dependency.
5257
75536971
MK
5258 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5259 function.
5260 (m68k_gdbarch_init): Don't set
5261 deprecated_frameless_function_invocation.
5262
f4ca1d1f
RC
52632004-05-07 Randolph Chung <tausq@debian.org>
5264
5265 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5266 read_memory_nobpt for code reading when doing frame unwinding.
5267 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5268
2f0e8c7a
RC
52692004-05-07 Randolph Chung <tausq@debian.org>
5270
5271 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5272 instead of sp, handle sigaltstack case.
5273 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5274 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5275 signal handler and not that of the caller.
5276 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5277 hppa_linux_sigtramp_find_sigcontext.
5278
959464ff
RC
52792004-05-07 Randolph Chung <tausq@debian.org>
5280
5281 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5282 hppa-linux-nat.c.
5283 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5284 * hppa-linux-nat.c (fetch_register, store_register): Define.
5285 (fetch_inferior_registers, store_inferior_registers): Define.
5286 (supply_gregset): Add comment and clean up some unneeded code.
5287 (fill_gregset): Add comment and fix so that it saves registers in
5288 the right place in the gregset.
5289 (fill_fpregset): Fix buffer overrun problem.
5290 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5291
0da28f8a
RC
52922004-05-07 Randolph Chung <tausq@debian.org>
5293
5294 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5295 do common handling of the pcoqt register.
5296 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5297 to use helper function.
5298 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5299 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5300 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5301 generic fallback unwinder when all else fails.
5302 (hppa_gdbarch_init): Add fallback sniffer.
5303 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5304 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5305 to use helper function.
5306
b9ec757a
JB
53072004-05-08 Joel Brobecker <brobecker@gnat.com>
5308
5309 * config/djgpp/fnchange.lst: Add translation rules for
5310 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5311
756e95f1
MK
53122004-05-08 Mark Kettenis <kettenis@gnu.org>
5313
5314 * frame.c (get_prev_frame_1): Work around GCC bug.
5315 * frame.h: Add comment about GCC bug.
5316
2b4855ab
AC
53172004-05-07 Andrew Cagney <cagney@redhat.com>
5318
5319 * observer.c: Include "commands.h" and "gdbcmd.h".
5320 (observer_debug, _initialize_observer): Add the
5321 command "set/show debug observer".
5322 * observer.sh: When observer debugging, log notify calls.
5323 * Makefile.in (observer.o): Update dependencies.
5324
ba3e8e46
JM
53252004-05-07 Jason Molenda (jmolenda@apple.com)
5326
5327 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5328
16796152
JB
53292004-05-07 Jim Blandy <jimb@redhat.com>
5330
daf6dc85
JB
5331 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5332 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5333 to recognize gpr regnums, instead of assuming that
5334 tdep->ppc_fp0_regnum marks the end of the general-purpose
5335 registers.
5336
16796152
JB
5337 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5338 the given architecture has floating-point registers.
5339
c69b8bfc
AC
53402004-05-07 Andrew Cagney <cagney@redhat.com>
5341
5342 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5343 macro defined to 1.
5344 * gdbarch.h, gdbarch.c: Re-generate.
5345 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5346 deprecated_use_generic_dummy_frames.
5347
7243600a
BF
53482004-05-07 Brian Ford <ford@vss.fsi.com>
5349
5350 * NEWS: Mention Cygwin DWARF 2 support.
5351
73c1e0a1
AC
53522004-05-07 Andrew Cagney <cagney@redhat.com>
5353
5354 * objfiles.h (struct entry_info): Delete unused fields
5355 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5356 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5357 * mipsread.c (mipscoff_symfile_read): Update.
5358 * mdebugread.c (parse_partial_symbols): Update.
5359 * dwarfread.c (read_file_scope): Update.
5360 * dwarf2read.c (read_file_scope): Update.
5361 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5362 * coffread.c (complete_symtab): Update.
5363
1d3056ac
MK
53642004-05-07 Mark Kettenis <kettenis@gnu.org>
5365
5366 * infcall.c (_initialize_infcall): Fix typo.
5367
15170568
AC
53682004-05-07 Andrew Cagney <cagney@redhat.com>
5369
5370 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5371 * command.h (add_setshow_zinteger_cmd): Declare.
5372
34f75cc1
RC
53732004-05-06 Randolph Chung <tausq@debian.org>
5374
5375 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5376 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5377 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5378 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5379 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5380 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5381 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5382 definitions ...
5383 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5384 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5385 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5386 (hppa64_hpux_frame_find_saved_regs_in_sig)
5387 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5388 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5389 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5390 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5391 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5392 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5393 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5394 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5395 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5396 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5397 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5398 (hppa32_register_type, hppa_cannot_store_register)
5399 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5400 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5401 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5402 * pa64solib.c (pa64_solib_have_load_event)
5403 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5404 (pa64_solib_unloaded_library_pathname): Likewise.
5405 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5406 (som_solib_library_pathname): Likewise.
5407
0a5e7efe
JI
54082004-05-05 Jim Ingham <jingham@apple.com>
5409
5410 * breakpoint.c (create_breakpoints): Copy the ignore count and
5411 thread id over from the pended breakpoint to the actual
5412 breakpoint.
5413
10a4b113
AC
54142004-05-05 Andrew Cagney <cagney@redhat.com>
5415
5416 * gdbarch.sh (PARM_BOUNDARY): Delete.
5417 gdbarch.h, gdbarch.c: Re-generate.
5418 * valops.c (PARM_BOUNDARY): Delete macro.
5419 (value_push): Delete PARM_BOUNDARY code.
5420 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5421
366f009f
JB
54222004-05-04 Jim Blandy <jimb@redhat.com>
5423
32b99774
JB
5424 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5425 Don't assume that the gprs, fprs, and UISA sprs are
5426 contiguous, start at register number zero, and end with fpscr.
5427 Instead, use the numbers from the tdep structure.
5428
366f009f
JB
5429 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5430 should no longer be used in code specific to the RS6000 and its
5431 derivatives.
5432 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5433 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5434 tdep->ppc_fp0_regnum.
5435 (ppc_supply_fpregset, ppc_collect_fpregset)
5436 (rs6000_push_dummy_call, rs6000_extract_return_value)
5437 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5438 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5439 FP0_REGNUM.
5440 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5441 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5442 Same.
5443 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5444 bdm_ppc_store_registers): Same.
5445 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5446 (store_register, fill_fpregset): Same.
5447 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5448 (ppc_linux_supply_fpregset): Same.
5449 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5450 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5451 Same.
5452 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5453 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5454 ppc64_sysv_abi_return_value): Same.
5455 * rs6000-nat.c (regmap, fetch_inferior_registers)
5456 (store_inferior_registers, fetch_core_registers): Same.
5457
827f338d
MK
54582004-05-01 Mark Kettenis <kettenis@gnu.org>
5459
5460 * m68knbsd-nat.c: Remove file.
5461 * m68knbsd-tdep.c: Remove file.
5462 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5463 dependencies.
5464 * configure.host: Add m68k-*-netbsdelf*.
5465 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5466 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5467 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5468 (XM_FILE): Remove.
5469 * config/m68k/nbsdelf.mh: New file.
5470 * config/m68k/nbsd.mt: New file.
5471 * config/m68k/nbsdaout.mt: Remove file.
5472 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5473 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5474 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5475 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5476 (use_struct_convention): Remove prototype.
5477 (USE_STRUCT_CONVENTION): Remove define.
5478 * config/m68k/xm-nbsd.h: Remove file.
5479
66894781
MS
54802004-05-04 Michael Snyder <msnyder@redhat.com>
5481
5482 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5483 reg_struct_return method (as gcc usually does for cross targets).
5484
f0f63663
AC
54852004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5486
5487 Committed by Andrew Cagney.
5488 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5489 alignment padding when accessing ucontext struct members.
5490
edf61169
JB
54912004-05-04 Jim Blandy <jimb@redhat.com>
5492
8bf659e8
JB
5493 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5494 'ppc_gplast_regnum' member.
5495 (ppc_num_gprs): New enum constant.
5496 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5497 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5498 * rs6000-nat.c (regmap, fetch_inferior_registers,
5499 store_inferior_registers): Same.
5500 * rs6000-tdep.c (e500_pseudo_register_read)
5501 (e500_pseudo_register_write): Same.
5502 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5503
b967e06f
JB
5504 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5505 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5506 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5507 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5508 FPLAST_REGNUM.
5509 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5510 Same.
5511 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5512 * rs6000-nat.c (regmap, fetch_inferior_registers)
5513 (store_inferior_registers): Same.
5514
edf61169
JB
5515 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5516 with FPLAST_REGNUM.
5517
58a9656e
JB
55182004-05-03 Joel Brobecker <brobecker@gnat.com>
5519
5520 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5521 failure detected by recent versions of GCC.
5522 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5523 to be consistent with the usage in dwarf2_create_include_psymtab.
5524
dc305454
MS
55252004-05-03 Michael Snyder <msnyder@redhat.com>
5526
5527 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5528 (heuristic_proc_start): Whitespace cleanup.
5529
29972665
MK
55302004-05-04 Mark Kettenis <kettenis@gnu.org>
5531
6b57680d
MK
5532 * sun3-nat.c: Remove file.
5533 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5534 dependencies.
5535 (ALLDEPFILES): Remove sun3-nat.c.
5536 (sun3-nat.o): Remove dependencies.
5537
29972665
MK
5538 * i386-interix-nat.c, i386-interix-tdep.c,
5539 config/i386/nm-interix.h, config/i386/interix.mh,
5540 config/i386/interix.mt: Remove files.
5541 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5542 dependencies.
5543
f595cb19
MK
55442004-05-03 Mark Kettenis <kettenis@gnu.org>
5545
5546 * m68k-tdep.h (struct gdbarch_tdep): Add member
5547 struct_value_regnum.
5548 (m68k_svr4_init_abi): New prototype.
5549 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5550 different calling conventions.
5551 (m68k_extract_return_value): Remove code dealing with single-field
5552 structs.
5553 (m68k_store_return_value): Remove code dealing with single-field
5554 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5555 (m68k_extract_struct_value_address): Remove function.
5556 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5557 (m68k_reg_struct_return_p, m68k_return_value)
5558 (m68k_svr4_return_value): New functions.
5559 (m68k_use_struct_convention): Remove function.
5560 (m68k_push_dummy_call): Use new struct_value_regnum member of
5561 `struct gdbarch_tdep' instead of hardcoded register number to
5562 store STRUCT_ADDR.
5563 (m68k_svr4_init_abi): New function.
5564 (m68k_gdbarch_init): Don't set extract_return_value,
5565 store_return_values, deprecated_extract_struct_value_address and
5566 use_struct_convention. Set return_value instead. Initialize new
5567 struct_value_regnum member of `struct gdbarch_tdep'.
5568 * m68klinux-tdep.c: Update copyright year.
5569 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5570 (m68k_linux_extract_struct_value_address): Remove function.
5571 (m68k_linux_init_abi): Don't set extract_return_value,
5572 store_return_values, deprecated_extract_struct_value_address and
5573 use_struct_convention. Call m68k_svr4_init_abi but override the
5574 new struct_value_regnum member of `struct gdbarch_tdep'.
5575 * Makefile.in (m68k-tdep.o): Update dependencies.
5576
aaa75496
JB
55772004-05-03 J. Brobecker <brobecker@gnat.com>
5578
5579 * dwarf2read.c (line_header): Add new included_p field in
5580 field file_names.
5581 (partial_die_info): New field has_stmt_list. New field line_offset.
5582 (dwarf2_create_include_psymtab): New function.
5583 (dwarf2_build_include_psymtabs): New function.
5584 (add_file_name): Add forward declaration. Initialize new field.
5585 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5586 to be able to determine the list of files included by the
5587 given unit, and build their associated psymtabs.
5588 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5589 files as well.
5590 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5591 (read_file_scope): Update call to dwarf_decode_lines.
5592 (read_partial_die): Handle DW_AT_stmt_list attributes.
5593
c848556f
MC
55942004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5595
5596 Unfix PR gdb/1626.
5597 * configure.in: Revert special case for osf5.*.
5598 * configure: Regenerate.
5599
eb4556d7
JB
56002004-05-02 Jim Blandy <jimb@redhat.com>
5601
5602 Move the symbol-file-from-memory functions into their own file.
5603 * symfile-mem.c, symfile-mem.h: New files.
5604 * symfile.c (symbol_file_add_from_bfd): New function.
5605 (symbol_file_add): Call symbol_file_add_from_bfd.
5606 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5607 Moved to symfile-mem.c.
5608 (_initialize_symfile): Move definition of
5609 add-symbol-file-from-memory command to symfile-mem.c.
5610 * symfile.h (symbol_file_add_from_bfd): New declaration.
5611 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5612 * config/powerpc/linux.mt (TDEPFILES): Same.
5613 * Makefile.in (SFILES): Add symfile-mem.c.
5614 (symfile_mem_h): New variable.
5615 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5616 (symfile-mem.o): New rule.
5617
80bb239e
AC
56182004-05-01 Andrew Cagney <cagney@redhat.com>
5619
7789d0fa
AC
5620 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5621 frame_find_by_id instead of frame_relative_level.
5622 (do_enable_breakpoint): Ditto.
5623 * thread.c: Update copyright.
5624 (info_threads_command): Ditto, simplify.
5625
80bb239e
AC
5626 * frame.c (deprecated_generic_get_saved_register): Delete
5627 function, moved to "xstormy16-tdep.c".
5628 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5629 deprecated_generic_get_saved_register from "frame.c".
5630 (xstormy16_frame_saved_register): Call
5631 xstormy16_get_saved_register.
5632 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5633 static.
5634 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5635 * frame.h (deprecated_generic_get_saved_register): Delete.
5636
b2a871dd
MC
56372004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5638
5639 * dwarfread.c: Update documentation on the state of dwarf-1.
5640
0e100dab
AC
56412004-05-01 Andrew Cagney <cagney@redhat.com>
5642
acd8056e
AC
5643 * stack.c (select_frame_command): Delete call to
5644 frame_relative_level.
5645 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5646 Delete #if0 code.
5647 (frame_info): Do not print FRAMELESS.
5648 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5649 (catch_info): Delete #if0 code.
5650
0e100dab
AC
5651 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5652 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5653 of frame_relative_level.
5654 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5655 to SENTINEL_FRAME.
5656 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5657 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5658 frame_relative_level.
5659
55699d59
AC
5660 * frame.h (deprecated_set_frame_type): Delete declaration.
5661 * frame.c (deprecated_set_frame_type): Delete function, update
5662 comments.
5663
fcf70625
AC
5664 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5667 (shnbsd_pc_in_sigtramp): Delete.
5668 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5669 pc_in_sigtramp.
5670 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5671 pc_in_sigtramp.
5672 * frame.h: Update comments.
5673 * ppc-linux-tdep.c: Update comments.
5674 * breakpoint.c (bpstat_what): Update comments.
5675
ac5eccb7
AC
5676 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5677 m68klinux-tdep.o's dependencies, were previously added to
5678 m68klinux-nat.o.
5679
f2524b93
AC
5680 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5681 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5682 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5683 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5684 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5685
17e20bce
AC
5686 * Makefile.in (m68klinux-nat.o): Update dependencies.
5687 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5688 (m68k_linux_sigtramp_frame_cache)
5689 (m68k_linux_sigtramp_frame_this_id)
5690 (m68k_linux_sigtramp_frame_prev_register)
5691 (m68k_linux_sigtramp_frame_unwind)
5692 (m68k_linux_sigtramp_frame_sniffer)
5693 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5694 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5695 names, use trad-frame.h.
5696 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5697 (struct m68k_sigtramp_info): Delete.
5698 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5699 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5700 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5701 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5702 "m68klinux-tdep.c".
5703
c8864fa2
AC
5704 * infrun.c (check_sigtramp2): Delete check for
5705 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5706
511dd2cd
MK
57072004-05-01 Mark Kettenis <kettenis@gnu.org>
5708
5709 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5710
8c6b0e06
AC
57112004-05-01 Andrew Cagney <cagney@redhat.com>
5712
9df0bb3f
AC
5713 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5714 (frv_linux_sigtramp_frame_cache)
5715 (frv_linux_sigtramp_frame_this_id)
5716 (frv_linux_sigtramp_frame_prev_register)
5717 (frv_linux_sigtramp_frame_unwind)
5718 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5719 include "linux" in function and variable names, directly call
5720 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5721 the latest trad-frame code.
5722 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5723 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5724 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5725 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5726 * frv-tdep.c (frv_sigtramp_frame_cache)
5727 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5728 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5729 frv-linux-tdep.c.
5730 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5731 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5732 (frv_set_sigcontext_reg_addr): Delete function.
5733
8c6b0e06
AC
5734 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5735 (DEPRECATED_SIGTRAMP_END): Delete.
5736 * gdbarch.h, gdbarch.c: Re-generate.
5737 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5738 * config/vax/tm-vaxbsd.h: Update copyright.
5739 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5740 (DEPRECATED_IN_SIGTRAMP): Define.
5741 * config/m68k/tm-nbsd.h: Update copyright.
5742 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5743 (DEPRECATED_IN_SIGTRAMP): Define.
5744
50ea7769
MK
57452004-05-01 Mark Kettenis <kettenis@gnu.org>
5746
03ac2a74
MK
5747 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5748 encondings. Fixes PR gdb/1628.
5749
50ea7769
MK
5750 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5751 DW_CFA_restore state without a matching DW_CFA_remember_state
5752 instead of aborting. Fixes PR backtrace/1589.
5753
9a5d7be1
JB
57542004-04-30 Joel Brobecker <brobecker@gnat.com>
5755
5756 * MAINTAINERS: Add self as AIX maintainer.
5757 Update my e-mail address in write-after-approval section.
5758
2593d1cd
AC
57592004-04-30 Andrew Cagney <cagney@redhat.com>
5760
ce12bbf9
AC
5761 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5762 (legacy_get_prev_frame): Ditto.
5763
36710c63
AC
5764 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5765 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5766 * mipsread.c (sigtramp_address): Delete extern variable.
5767 (mipscoff_new_init): Delete reference.
5768 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5769 (fixup_sigtramp): Delete function.
5770 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5771 (fixup_sigtramp): Delete declarations.
5772
2593d1cd
AC
5773 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5774 deprecated_pc_in_sigtramp.
5775 (ppcnbsd_pc_in_sigtramp): Delete function.
5776
2a25f91c
MK
57772004-05-01 Mark Kettenis <kettenis@gnu.org>
5778
5779 * config/m68k/nm-nbsd.h: Tweak comments.
5780 * config/m68k/nm-nbsdaout.h: Likewise.
5781
0b281939
AC
57822004-04-30 Andrew Cagney <cagney@redhat.com>
5783
5784 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5785 legacy_pc_in_sigtramp.
5786 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5787
8f2d3ea0
MK
57882004-05-01 Mark Kettenis <kettenis@gnu.org>
5789
5790 Add OpenBSD/m68k support.
5791 * NEWS (New native configurations): Mention OpenBSD/m68k.
5792 * m68kbsd-tdep.c: New file.
5793 * m68kbsd-nat.c: New file.
5794 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5795 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5796 * configure.host: Add m68k-*-openbsd.
5797 * configure.tgt: Add m68k-*-openbsd.
5798 * config/m68k/tm-obsd.h: New file.
5799 * config/m68k/obsd.mt: New file.
5800 * config/m68k/obsd.mh: New file.
5801 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5802 m68kbsd-tdep.c.
5803
c40f49a4
AC
58042004-04-30 Andrew Cagney <cagney@redhat.com>
5805
5806 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5807 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5808
e81554cd
MK
58092004-04-30 Mark Kettenis <kettenis@gnu.org>
5810
5811 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5812 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5813
d4dc1a91
BF
58142004-04-30 Brian Ford <ford@vss.fsi.com>
5815
5816 Revert 2004-04-16 change.
5817 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5818 (i386_coff_init_abi): Remove.
5819 * i386-tdep.h (i386_coff_init_abi): Remove.
5820 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5821
2f72f850
AC
58222004-04-30 Andrew Cagney <cagney@redhat.com>
5823
e492f9d6
AC
5824 * blockframe.c (find_pc_partial_function): Delete use of
5825 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5826 DEPRECATED_SIGTRAMP_END.
5827
7b7adad0
AC
5828 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5829 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5830 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5831 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5832 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5833
2f72f850
AC
5834 * defs.h (deprecated_inside_entry_file): Delete declaration.
5835 * blockframe.c (deprecated_inside_entry_file): Delete function.
5836 (legacy_frame_chain_valid): Delete call.
5837 * sh64-tdep.c (sh64_frame_chain): Delete call.
5838 * objfiles.h: Update comments.
5839 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5840 call.
5841 * frame.c (get_prev_frame): Delete call, update comments.
5842
283f90a7
BF
58432004-04-30 Brian Ford <ford@vss.fsi.com>
5844
5845 * MAINTAINERS (Write After Approval): Add myself.
5846
8ee56bcf
AC
58472004-04-30 Andrew Cagney <cagney@redhat.com>
5848
5849 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5850 * gdbarch.h, gdbarch.c: Re-generate.
5851 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5852 code.
5853
ee27e1b6
AC
58542004-04-30 Andrew Cagney <cagney@redhat.com>
5855
5856 * gdb-events.sh (selected_thread_changed)
5857 (selected_frame_level_changed, target_changed): Delete.
5858 * gdb-events.h, gdb-events.c: Re-generate.
5859 * valops.c (value_assign): Update.
5860 * stack.c (select_frame_command, up_silently_base)
5861 (down_silently_base): Update.
5862
d5ac5a39
AC
58632004-04-29 Andrew Cagney <cagney@redhat.com>
5864
5865 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5866 registers correctly.
5867 (print_gp_register_row, mips32_heuristic_proc_desc)
5868 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5869 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5870 references to mips_isa_regsize.
5871
ceae6e75
AC
58722004-04-29 Andrew Cagney <cagney@redhat.com>
5873
5874 * mips-tdep.c (struct gdbarch_tdep): Delete
5875 mips_fp_register_double.
5876 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5877 mips_abi_regsize.
5878 (mips_gdbarch_init): Do not set mips_fp_register_double.
5879 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5880
a587af0b
AC
58812004-04-29 Joel Brobecker <brobecker@gnat.com>
5882
5883 Committed by Andrew Cagney.
5884 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5885 function calls.
5886
13326b4e
AC
58872004-04-29 Andrew Cagney <cagney@redhat.com>
5888
5889 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5890 gdbarch, use mips_abi, update callers.
5891 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5892 mips_abi_regsize, update callers.
5893 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5894 mips_default_abi_regsize.
5895 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5896 mips_default_abi_regsize.
5897
711cc5cd
AC
58982004-04-29 Andrew Cagney <cagney@redhat.com>
5899
1b13c4f6
AC
5900 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5901 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5902 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5903 mips_default_abi_regsize.
5904 (mips_isa_regsize): Rename mips_regisze.
5905 * mipsnbsd-tdep.c: Update.
5906 * mips-linux-tdep.c: Update.
5907 * irix5-nat.c: Update.
5908 * mips-tdep.h (mips_isa_regsize): Update.
5909
711cc5cd
AC
5910 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5911 Delete all disabled code.
5912 * gdb-events.h, gdb-events.c: Re-generate.
5913
e63bbc88
MK
59142004-04-19 Jerome Guitton <guitton@gnat.com>
5915 Mark Kettenis <kettenis@gnu.org>
5916
5917 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5918 the function begins with a branch instruction.
5919
fd35795f
MK
59202004-04-29 Mark Kettenis <kettenis@gnu.org>
5921
5922 * i386-tdep.c: Fix spelling mistakes.
5923
c960c18f
AC
59242004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5925 Andrew Cagney <cagney@redhat.com>
5926
5927 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5928 <sys/proc.h>.
5929 * acconfig.h: Provide default _KMEMUSER value.
5930 * config.in, configure: Re-generate.
5931 * NEWS: Mention fix.
5932
50306a9d
RC
59332004-04-24 Randolph Chung <tausq@debian.org>
5934
5935 * configure.host (hppa*-*-linux*): New target.
5936 * configure.tgt (hppa*-*-linux*): Likewise.
5937 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5938 gdbarch_init_osabi() call earlier so that osabi-specific frame
5939 unwinders can be registered first.
5940 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5941 hppa-linux-nat.c.
5942 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5943 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5944 * config/pa/linux.mh: New file.
5945 * config/pa/linux.mt: New file.
5946 * config/pa/nm-linux.h: New file.
5947 * config/pa/xm-linux.h: New file.
5948 * hppa-linux-nat.c: New file.
5949 * hppa-linux-tdep.c: New file.
5950
2a6228ef
RC
59512004-04-28 Randolph Chung <tausq@debian.org>
5952
5953 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5954 return values.
5955 (hppa32_push_dummy_call): Fix small struct and floating point argument
5956 passing, and make sure the stack frame is properly aligned.
5957
82c10df6
AC
59582004-04-28 Andrew Cagney <cagney@redhat.com>
5959
d762c46a
AC
5960 * stack.c (print_stack_frame): Fix description.
5961
82c10df6
AC
5962 * NEWS: Mention gdb/gdbserver/configure execute permission
5963 changed. PR server/519.
5964
0faf0076
AC
59652004-04-28 Andrew Cagney <cagney@redhat.com>
5966
5967 * stack.c (print_stack_frame_stub): Delete declaration.
5968 (struct print_stack_frame_args, print_stack_frame)
5969 (print_frame_info, print_frame): Replace "source" with print what.
5970 Replace "print" with "print_level". Replace "args" with
5971 "print_args".
5972 * frame.h (show_and_print_stack_frame, print_stack_frame)
5973 (print_frame_info): Update declarations.
5974 * stack.c (select_and_print_frame, frame_command)
5975 (current_frame_command, up_command, down_command): Update calls -
5976 use get_selected_frame, pass "enum print_what" for source, do not
5977 call frame_relative_level.
5978 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5979 * remote-rdp.c (remote_rdp_open): Ditto.
5980 * remote-mips.c (common_open): Ditto.
5981 * remote-e7000.c (e7000_start_remote): Ditto.
5982 * ocd.c (ocd_start_remote): Ditto.
5983 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5984 * infrun.c (normal_stop): Ditto.
5985 * inflow.c (kill_command): Ditto.
5986 * infcmd.c (finish_command): Ditto.
5987 * corelow.c (core_open): Ditto.
5988 * tracepoint.c (finish_tfind_command): Ditto.
5989 * thread.c (info_threads_command, info_threads_command)
5990 (restore_current_thread, do_captured_thread_select): Ditto.
5991 * ada-tasks.c (task_command): Ditto.
5992
f4c5303c
OF
59932004-04-26 Orjan Friberg <orjanf@axis.com>
5994
5995 * frame.c: Include "observer.h".
5996 (frame_observer_target_changed): New function.
5997 (_initialize_frame): Attach target_changed observer.
5998 * regcache.c: Include "observer.h".
5999 (regcache_observer_target_changed): New function.
6000 (_initialize_regcache): Attach target_changed observer.
6001 * valops.c: Include "observer.h".
6002 (value_assign): Notify target_changed event when modifying register.
6003 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6004
7270d8f2
OF
60052004-04-26 Orjan Friberg <orjanf@axis.com>
6006
6007 From Paul Koning <pkoning@equallogic.com>:
6008 * breakpoint.c (free_valchain): New function.
6009 (insert_bp_location, delete_breakpoint): Use free_valchain.
6010 (remove_breakpoint): Do not remove the valchain.
6011 (bpstat_stop_status): If not stopped by watchpoint, skip
6012 watchpoints when generating stop status list.
6013 * infrun.c (handle_inferior_event): Make
6014 stepped_after_stopped_by_watchpoint a global variable.
6015 * remote.c (remote_stopped_data_address): Return watch data
6016 address rather than zero if stepped_after_stopped_by_watchpoint is
6017 set.
6018
02d62932
MC
60192004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6020
6021 Fix PR gdb/1626.
6022 * configure.in: Check for curses after termcap.
6023 On osf5.*, do not check for ncurses.
6024 * configure: Regenerate.
6025
3e9a183c
MK
60262004-04-25 Mark Kettenis <kettenis@gnu.org>
6027
c79ac407
MK
6028 * ppcobsd-nat.c: Include "ppc-tdep.h".
6029 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6030
3e9a183c
MK
6031 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6032 Fixes PR tdep/1623 and PR tdep/1624.
6033
38cc9c28
MC
60342004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6035
6036 * xmodem.h, xmodem.c: Remove files.
6037 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6038
7f07c5b6
RC
60392004-04-23 Randolph Chung <tausq@debian.org>
6040
6041 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6042 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6043 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6044 for handling stackless frames.
6045 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6046
9f7194c3
RC
60472004-04-23 Randolph Chung <tausq@debian.org>
6048
6049 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6050 starts at a pc before the frame is created.
6051
dcff6009
JB
60522004-04-23 Joel Brobecker <brobecker@gnat.com>
6053
6054 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6055
40711ff1 60562004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6057
6058 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6059 use convert_typed_floating to get the appropriate format.
6060
abc485a1
RC
60612004-04-22 Randolph Chung <tausq@debian.org>
6062
6063 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6064 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6065 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6066 (hppa_sign_extend): Add prototype.
6067 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6068 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6069 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6070 hppa targets will also use these functions.
6071 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6072 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6073 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6074 (hppa_gdbarch_init): Remove gdbarch setting of
6075 skip_trampoline_code, in_solib_call_trampoline and
6076 in_solib_return_trampoline.
6077 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6078 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6079 hppa_in_solib_call_trampoline.
6080 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6081 Moved from hppa-tdep.c.
6082 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6083 in_solib_call_trampoline and in_solib_return_trampoline.
6084
369aa520
RC
60852004-04-22 Randolph Chung <tausq@debian.org>
6086
6087 * hppa-tdep.c (hppa_debug): New variable.
6088 (find_unwind_entry, hppa_frame_cache): Add debug output.
6089 (_initialize_hppa_tdep): Add command to set debug flag.
6090
476be15e
AC
60912004-04-22 Andrew Cagney <cagney@redhat.com>
6092
6093 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6094 "trad-frame.h".
6095 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6096 signal trampoline unwinder.
6097 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6098
d195bc9f
MK
60992004-04-22 Mark Kettenis <kettenis@gnu.org>
6100
6101 Add OpenBSD/powerpc support.
6102 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6103 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6104 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6105 (ppc_collect_fpregset): New prototypes.
6106 * ppcobsd-nat.c: New file.
6107 * ppcobsd-tdep.c: New file.
6108 * ppcobsd-tdep.h: New file.
6109 * rs6000-tdep.c: Include "regset.h".
6110 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6111 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6112 New functions.
6113 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6114 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6115 (rs6000-tdep.o): Update dependencies.
6116 * configure.host: Add powerpc-*-openbsd.
6117 * configure.tgt: Add powerpc-*-openbsd.
6118 * config/powerpc/obsd.mh: New file.
6119 * config/powerpc/nm-obsd.h: New file.
6120 * config/powerpc/obsd.mt: New file.
6121
6f14cc33
AC
61222004-04-22 Andrew Cagney <cagney@redhat.com>
6123
fcf29e5f
AC
6124 * frame.h (show_frame_info): Delete declaration.
6125
6f14cc33
AC
6126 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6127 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6128 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6129 * frv-tdep.c (frv_frame_this_id): Ditto.
6130 * avr-tdep.c (avr_frame_this_id): Ditto.
6131
e5786a5c
EZ
61322004-04-22 Elena Zannoni <ezannoni@redhat.com>
6133
6134 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6135
26e75e5c
JB
61362004-04-22 Jim Blandy <jimb@redhat.com>
6137
6138 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6139 register number zero.
6140
d8d65dd3
MS
61412004-04-21 Michael Snyder <msnyder@redhat.com>
6142
6143 * mips-tdep.c (heuristic_proc_start):
6144 Warning() already prefixes "Warning: ".
6145
9a4105ab
AC
61462004-04-21 Andrew Cagney <cagney@redhat.com>
6147
6148 * annotate.h (deprecated_annotate_starting_hook)
6149 (deprecated_annotate_stopped_hook)
6150 (deprecated_annotate_exited_hook)
6151 (deprecated_annotate_signal_hook)
6152 (deprecated_annotate_signalled_hook): Deprecate.
6153 * tracepoint.h (deprecated_create_tracepoint_hook)
6154 (deprecated_delete_tracepoint_hook)
6155 (deprecated_modify_tracepoint_hook)
6156 (deprecated_trace_find_hook)
6157 (deprecated_trace_start_stop_hook): Deprecate.
6158 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6159 * remote.h (deprecated_target_resume_hook)
6160 (deprecated_target_wait_loop_hook): Deprecate.
6161 * gdbcore.h (deprecated_exec_file_display_hook)
6162 (deprecated_file_changed_hook): Deprecate.
6163 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6164 * defs.h (deprecated_modify_breakpoint_hook)
6165 (deprecated_command_loop_hook, deprecated_show_load_progress)
6166 (deprecated_print_frame_info_listing_hook)
6167 (deprecated_query_hook, deprecated_warning_hook)
6168 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6169 (deprecated_delete_breakpoint_hook)
6170 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6171 (deprecated_readline_begin_hook, deprecated_readline_hook)
6172 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6173 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6174 (deprecated_context_hook, deprecated_target_wait_hook)
6175 (deprecated_attach_hook, deprecated_detach_hook)
6176 (deprecated_call_command_hook, deprecated_set_hook)
6177 (deprecated_error_hook, deprecated_error_begin_hook)
6178 (deprecated_ui_load_progress_hook): Deprecate.
6179 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6180 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6181 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6182 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6183 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6184 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6185 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6186 * annotate.c, aix-thread.c: Update.
6187
62cf13cc
AC
61882004-04-21 Andrew Cagney <cagney@redhat.com>
6189
b2e31a62
AC
6190 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6191 * vaxnbsd-tdep.c: Include "gdb_string.h".
6192
62cf13cc
AC
6193 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6194 (add_symbol_file_from_memory_command): #if 0 function body, call
6195 error instead.
6196
00e32a35
AC
61972004-04-21 Andrew Cagney <cagney@redhat.com>
6198
6199 * gdbcore.h: Update copyright.
6200 (deprecated_add_core_fns): Rename add_core_fns.
6201 * win32-nat.c (_initialize_core_win32): Update.
6202 * sun3-nat.c (_initialize_core_sun3): Update.
6203 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6204 * rs6000-nat.c (_initialize_core_rs6000): Update.
6205 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6206 * nto-tdep.c (_initialize_nto_tdep): Update.
6207 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6208 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6209 * mips-nat.c (_initialize_core_mips): Update.
6210 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6211 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6212 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6213 * lynx-nat.c (_initialize_core_lynx): Update.
6214 * irix5-nat.c (_initialize_core_irix5): Update.
6215 * i386-interix-nat.c (_initialize_core_interix): Update.
6216 * cris-tdep.c (_initialize_cris_tdep): Update.
6217 * corelow.c (deprecated_add_core_fns): Update.
6218 * core-regset.c (_initialize_core_regset): Update.
6219 * core-aout.c (_initialize_core_aout): Update.
6220 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6221 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6222 * alpha-nat.c (_initialize_core_alpha): Update.
6223
13c7b1ca
JB
62242004-04-21 Jim Blandy <jimb@redhat.com>
6225
6226 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6227
7b5a2f43
DJ
62282004-04-19 Daniel Jacobowitz <drow@mvista.com>
6229
6230 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6231 Delete.
6232 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6233 (read_attribute_value): Update calls to dwarf_alloc_block.
6234 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6235 dwarf2_tmp_obstack.
6236 (psymtab_to_symtab_1): Likewise. Clean up using
6237 free_stack_comp_unit.
6238 (add_to_cu_func_list): Use the comp_unit_obstack.
6239
05cf31d1
JB
62402004-04-19 Joel Brobecker <brobecker@gnat.com>
6241
6242 * dwarf2read.c (dwarf2_flag_true_p): New function.
6243 (die_is_declaration): Use the function above. Add some comments.
6244
adf93a2f
MK
62452004-04-19 Mark Kettenis <kettenis@gnu.org>
6246
6247 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6248 architecture when registering sparcnbsd_core_osabi_sniffer.
6249 Adjust comment.
6250
748894bf
MK
62512004-04-18 Mark Kettenis <kettenis@gnu.org>
6252
f622ad42
MK
6253 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6254 return value.
6255
c4fc7f1b
MK
6256 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6257 * i386-tdep.c: Correct register numbering scheme comments
6258 throughout.
6259 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6260 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6261 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6262 (i386_gdb_arch_init): Likewise.
6263
b4ead1bd
MK
6264 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6265 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6266 ppcnbsd-tdep.o.
6267
748894bf
MK
6268 * m68k-tdep.h: Tweak comments.
6269 * m68k-tdep.c: Tweak comment.
6270
fdd72f95
RC
62712004-04-17 Randolph Chung <tausq@debian.org>
6272
6273 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6274 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6275 (hppa_hpux_som_init_abi): Set is_elf to 0.
6276 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6277 * hppa-tdep.c (low_text_segment_address): Remove global.
6278 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6279 section offset to calculate segment address.
6280 (internalize_unwinds): Define low_text_segment_address as local and
6281 pass to record_text_segment_lowaddr for ELF targets.
6282 (hppa_gdbarch_init): Zero fill tdep structure.
6283 (hppa_dump_tdep): Print tdep structure.
6284 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6285
0f8d9d59
RC
62862004-04-17 Randolph Chung <tausq@debian.org>
6287
6288 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6289 (hppa_gdbarch_init): Set pseudo_register_read.
6290 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6291 * regcache.c (supply_register): Remove check for
6292 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6293
7c46b9fb
RC
62942004-04-17 Randolph Chung <tausq@debian.org>
6295
6296 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6297 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6298 (hpread_adjust_stack_address): Move to hpread.c.
6299 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6300 obj_private_struct): Move from tm-hppa.h.
6301 * hpread.c (hppa-tdep.h): Include.
6302 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6303 (hpread_read_function_type, hpread_read_doc_function_type)
6304 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6305 directly.
6306 * pa64solib.c (hppa-tdep.h): Include.
6307 * somsolib.c (hppa-tdep.h): Include.
6308 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6309 inferior_status): Remove unused forward declarations.
6310 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6311 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6312 obj_private_struct): Move to hppa-tdep.h.
6313 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6314
8d153463
RC
63152004-04-17 Randolph Chung <tausq@debian.org>
6316
6317 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6318 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6319 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6320 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6321 Remove forward declaration and make static.
6322 (hppa_reg_struct_has_addr): Remove.
6323
350c2e5b
JB
63242004-04-16 Joel Brobecker <brobecker@gnat.com>
6325
6326 * observer.sh: Move comments in sed command to first column.
6327
bbde78fa
JM
63282004-04-16 Jason Molenda (jmolenda@apple.com)
6329
6330 * frame.c: Minor typeo corrections in comments.
6331
e0270fd9
JB
63322004-04-16 Joel Brobecker <brobecker@gnat.com>
6333
6334 * observer.c (observer_test_first_notification_function): Update
6335 function profile.
6336 (observer_test_second_notification_function): Likewise.
6337 (observer_test_third_notification_function): Likewise.
6338
3d049254
MK
63392004-04-16 Mark Kettenis <kettenis@gnu.org>
6340
6341 From Brian Ford <ford@vss.fsi.com>:
6342 * i386-tdep.c (i386_coff_init_abi): New function.
6343 * i386-tdep.h (i386_coff_init_abi): New prototype.
6344 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6345 register number translation functions for DWARF and DWARF 2.
6346
7867684d
JB
63472004-04-16 Joel Brobecker <brobecker@gnat.com>
6348
6349 * dwarf2read.c: Back out my previous change, it was incorrect.
6350
72bf9492
DJ
63512004-04-16 Daniel Jacobowitz <drow@mvista.com>
6352
6353 * dwarf2read.c: Include "hashtab.h".
6354 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6355 has_namespace_info.
6356 (struct partial_die_info): Add comments. Use bitfields to reduce
6357 memory footprint. Add scope, scope_set, has_specification,
6358 spec_offset, die_parent, die_child, and die_sibling.
6359 (peek_die_abbrev): Add prototype.
6360 (partial_read_comp_unit_head): New function, broken out from
6361 dwarf2_build_psymtabs_hard.
6362 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6363 Use partial_read_comp_unit_head. Initialize the CU and
6364 comp_unit_obstack. Update calls to read_partial_die and
6365 scan_partial_symbols. Use free_stack_comp_unit and
6366 load_partial_dies.
6367 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6368 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6369 Update calls to helper functions. Remove NAMESPACE argument.
6370 Update comments.
6371 (partial_die_parent_scope, partial_die_full_name): New functions.
6372 (add_partial_symbol): Remove namespace argument. Update call to
6373 pdi_needs_namespace. Use partial_die_full_name. Handle
6374 DW_TAG_namespace. Check has_namespace_info flag.
6375 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6376 tag. Handle namespaces.
6377 (add_partial_namespace, add_partial_enumeration): Simplify.
6378 (guess_structure_name): New function, derived from
6379 add_partial_structure.
6380 (add_partial_structure): Remove.
6381 (determine_class_name): Update comment.
6382 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6383 (is_type_tag_for_partial, load_partial_dies): New functions.
6384 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6385 Record specifications instead of following them immediately.
6386 (find_partial_die_in_comp_unit, find_partial_die)
6387 (fixup_partial_die, free_stack_comp_unit)
6388 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6389 (partial_die_hash, partial_die_eq): New functions.
6390 * Makefile.in (hashtab_h): Define.
6391 (dwarf2read.o): Update dependencies.
6392 (observer_inc, observer_h): Move to the correct section.
6393
fdc860a3
JB
63942004-04-15 Joel Brobecker <brobecker@gnat.com>
6395
6396 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6397 (die_is_declaration): Use the function above. Add comment.
6398
dc718098
JB
63992004-04-15 Joel Brobecker <brobecker@gnat.com>
6400
6401 * dwarf2read.c (read_structure_scope): Identify stub types
6402 using die_is_declaration() only.
6403
8718a420
RM
64042004-04-15 Roland McGrath <roland@redhat.com>
6405
6406 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6407 argument instead of NAME.
6408 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6409 in call to symbol_file_add_with_addrs_or_offsets.
6410 (build_addr_info): New function, helper for ...
6411 (symbol_file_add_from_memory): New function.
6412 (add_symbol_file_from_memory_command): New function using that.
6413 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6414 (pre_add_symbol_hook): Add const to argument type.
6415 * symfile.h (symbol_file_add_from_memory): Declare it.
6416
8b910bab
MK
64172004-04-15 Mark Kettenis <kettenis@gnu.org>
6418
9f076e7a
MK
6419 * NEWS (New native configurations): Mention OpenBSD/vax.
6420 * configure.host: Add vax-*-openbsd*.
6421 * config/vax/obsd.mh: New file.
6422 * config/vax/nm-obsd.h: New file.
6423
8b910bab
MK
6424 * vax-tdep.c: Include "regset.h".
6425 (vax_supply_gregset): New function.
6426 (vax_gregset): New variable.
6427 (vax_regset_from_core_section): New function.
6428 (vax_gdbarch_init): Set regset_from_core_section.
6429 * Makefile.in (vax-tdep.o): Update dependencies.
6430
7a464420
AC
64312004-04-15 Andrew Cagney <cagney@redhat.com>
6432
6433 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6434 (observer_normal_stop_notification_stub)
6435 (observer_attach_normal_stop, observer_detach_normal_stop):
6436 Delete, replaced by #include "observer.inc".
6437 * infrun.c (normal_stop): Pass "stop_bpstat" to
6438 observer_notify_normal_stop.
6439 * Makefile.in (observer_inc): Define.
6440 (observer.o): Update dependencies.
6441 (observer.h, observer.inc): New rules.
6442 * observer.h: Delete file.
6443 * observer.sh: New file.
6444
e36ad527
MK
64452004-04-15 Mark Kettenis <kettenis@gnu.org>
6446
6447 * vax-tdep.c (vax_frame_cache): Fix typo.
6448
67b441e1
MK
64492004-04-14 Mark Kettenis <kettenis@gnu.org>
6450
6f606e1c
MK
6451 * NEWS (New native configurations): Mention NetBSD/vax.
6452 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6453 * config/vax/nbsdelf.mh: New file.
6454 * config/vax/nbsdaout.mh: New file.
6455 * config/vax/nm-nbsd.h: New file.
6456 * config/vax/nm-nbsdaout.h: New file.
6457
9c5519a5
MK
6458 * vaxnbsd-tdep.c: New file.
6459 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6460 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6461 * config/vax/nbsd.mt: New file.
6462 * config/vax/tm-nbsd.h: New file.
6463
4844a614
MK
6464 * Makefile.in (vaxbsd-nat.o): New dependency.
6465
67b441e1
MK
6466 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6467 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6468 struct_addr arguments. Don't push return value address.
6469 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6470 arguments to vax_store_arguments. Store return value address in
6471 R1.
6472 (vax_store_struct_return, vax_extract_return_value)
6473 (vax_store_return_value): Remove functions.
6474 (vax_return_value): New function.
6475 (vax_gdbarch_init): Set return value. Don't set
6476 deprecated_store_struct_return, deprecated_extract_struct_return
6477 and deprecated_store_return_value.
6478
6672f2ae
AS
64792004-04-14 Andreas Schwab <schwab@suse.de>
6480
6481 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6482 value buffer.
6483 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6484
7346c184
MK
64852004-04-14 Mark Kettenis <kettenis@gnu.org>
6486
6487 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6488 (vax_unwind_dummy_id): New functions.
6489 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6490 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6491 variables.
6492 (vax_fix_call_dummy): Remove function.
6493 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6494 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6495 call_dummy_location, deprecated_call_dummy_words,
6496 deprecated_sizeof_call_dummy_words,
6497 deprecated_call_dummy_breakpoint_offset,
6498 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6499 and deprecated_dummy_write_sp.
6500
58e23df4
DC
65012004-04-13 David Carlton <carlton@kealia.com>
6502
6503 * MAINTAINERS: Move myself to "paper trail" section.
6504
5e6b39ff
MK
65052004-04-12 Mark Kettenis <kettenis@gnu.org>
6506
7def7fef
MK
6507 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6508 "trad-frame.h".
6509 (vax_frame_init_saved_regs): Remove function.
6510 (vax_sigtramp_saved_pc): Remove function.
6511 (vax_frame_saved_pc): Remove function.
6512 (vax_frame_args_address): Remove function.
6513 (vax_frame_num_args): Rewrite.
6514 (vax_frame_chain): Remove function.
6515 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6516 VAX_FP_REGNUM.
6517 (vax_pop_frame): Likewise.
6518 (vax_saved_pc_after_call): Remove function.
6519 (struct vax_frame_cache): New structure.
6520 (vax_frame_cache): New function.
6521 (vax_frame_this_id): New function.
6522 (vax_frame_prev_register): New function.
6523 (vax_frame_unwind): New variable.
6524 (vax_frame_sniffer): New function.
6525 (vax_frame_base_address): New function.
6526 (vax_frame_args_address): New function.
6527 (vax_frame_base): New variable.
6528 (vax_unwind_pc): New function.
6529 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6530 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6531 deprecated_frame_chain, deprecated_frame_saved_pc,
6532 deprecated_frame_args_address and
6533 deprecated_frame_init_saved_regs.
6534 * Makefile.in (vax-tdep.o): Update dependencies.
6535
53284fc1
MK
6536 * vaxbsd-nat.c: New file.
6537
5e6b39ff
MK
6538 * vax-tdep.h: Update copyright year. Adjust comments.
6539 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6540 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6541 (vax_regnum): New enum. Replacing...
6542 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6543 (VAX_PS_REGNUM): ... these removed macros.
6544 * vax-tdep.c (vax_register_name): Remove prototype.
6545 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6546 (vax_register_byte, vax_register_raw_size,
6547 vax_register_virtual_size, vax_register_virtual_type): Remove
6548 functions.
6549 (vax_register_type): New function.
6550 (vax_breakpoint_from_pc): Reorganize.
6551 (vax_gdbarch_init): Set register_type. Don't set
6552 deprecated_register_size, deprecated_register_bytes,
6553 deprecated_register_byte, deprecated_register_raw_size,
6554 deprecated_max_register_raw_size,
6555 deprecated_register_virtual_size,
6556 deprecated_max_register_virtual_size and
6557 deprecated_register_virtual_type. Add comment on stack direction.
6558
e9c71e9f
MK
65592004-04-11 Mark Kettenis <kettenis@gnu.org>
6560
6561 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6562 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6563 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6564
d46f1176 65652004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6566
d46f1176
RC
6567 * MAINTAINERS (write after approval): Add myself.
6568
a2a84a72
RC
65692004-04-07 Randolph Chung <tausq@debian.org>
6570
6571 * hppa-tdep.c (hppa_inner_than): Remove.
6572 (is_pa_2): Remove unused static variable.
8718a420 6573 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6574
e85c3284
PH
65752004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6576
6577 * language.h (language_defn): Add new la_post_parser field.
6578 * parser-defs.h (null_post_parser): New declaration (default for
6579 la_post_parser).
8718a420 6580
e85c3284
PH
6581 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6582 insert call to that function.
6583 (parse_exp_in_context): New function, including code formerly in
8718a420 6584 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6585 prefixification.
6586 (parse_expression_in_context): New exported function.
6587 (null_post_parser): New definition.
6588 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6589
e85c3284
PH
6590 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6591 * c-lang.c (c_language_defn): Ditto.
6592 (cplus_language_defn): Ditto.
6593 (asm_language_defn): Ditto.
6594 (minimal_language_defn): Ditto.
6595 * f-lang.c (f_language_defn): Ditto.
6596 * jv-lang.c (java_language_defn): Ditto.
6597 * language.c (unknown_language_defn): Ditto.
6598 (auto_language_defn): Ditto.
6599 (local_language_defn): Ditto.
6600 * m2-lang.c (m2_language_defn): Ditto.
6601 * scm-lang.c (scm_language_defn): Ditto.
6602 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6603
d9f8c85b
MK
66042004-04-10 Mark Kettenis <kettenis@gnu.org>
6605
fa34704a
MK
6606 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6607 (amd64nbsd_mcontext_addr): New function.
6608 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6609 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6610 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6611
403e1656
MK
6612 * corelow.c (core_xfer_partial): Fix coding standards violation.
6613 Add support for TARGET_OBJECT_WCOOKIE.
6614
a57e5a95
MK
6615 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6616 deprecated_pc_in_sigtramp.
6617 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6618 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6619 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6620 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6621 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6622 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6623 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6624
377d9ebd
MK
6625 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6626 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6627 Fix typo.
6628
f0ef85a5
MK
6629 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6630 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6631 (amd64_collect_fxsave): Likewise.
6632
d9f8c85b
MK
6633 * i386-sol2-tdep.c: Include "gdb_string.h".
6634 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6635 name.
6636 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6637
75f501b5
MK
66382004-04-10 Mark Kettenis <kettenis@gnu.org>
6639
6640 * i386-sol2-tdep.c: Include "solib-svr4.h".
6641 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6642 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6643 * config/i386/tm-i386sol2.h: Include :solib.h".
6644 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6645 solib-svr4.o and solib-legacy.o.
6646 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6647 solib-svr4.o.
6648
b31bc724
MK
66492004-04-09 Mark Kettenis <kettenis@gnu.org>
6650
18bbbd9e
MK
6651 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6652 whether a register is supplied by PTRACE_GETFPREGS.
6653 (store_inferior_registers): Likewise.
6654 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6655 whether a register is supplied by PT_GETFPREGS.
6656 (store_inferior_registers): Likewise.
6657
3c30bf1b
MK
6658 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6659 * config/i386/linux64.mt (TDEPFILES): Likewise.
6660
a4194092
MK
6661 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6662
911bc6ee
MK
6663 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6664 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6665 the program counter is in the range specified by `struct
6666 gdbarch_tdep'.
6667 * amd64-linux-tdep.c: Include "symtab.h".
6668 (amd64_linux_pc_in_sigtramp): Remove function.
6669 (amd64_linux_sigtramp_p): New function.
6670 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6671 deprecated_pc_in_sigtramp.
6672 * amd64nbsd-tdep.c: Include "symtab.h".
6673 (amd64nbsd_sigtramp_p): New function.
6674 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6675 deprecated_pc_in_sigtramp.
6676 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6677 few comments.
6678 (amd64obsd_pc_in_sigtramp): Remove function.
6679 (amd64obsd_sigtramp_p): New function.
6680 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6681 deprecated_pc_in_sigtramp.
6682 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6683 (i386bsd_pc_ins_sigtramp): Remove prototype.
6684 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6685 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6686 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6687 the program counter is in the range specified by `struct
6688 gdbarch_tdep'.
6689 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6690 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6691 (i386_go32_pc_in_sigtramp): Remove function.
6692 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6693 Initialize TDEP->sigtramp_p.
6694 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6695 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6696 deprecated_pc_in_sigtramp.
6697 * i386-linux-tdep.c: Adjust comments.
6698 (i386_linux_pc_in_sigtramp): Remove function.
6699 (i386_linux_sigtramp_p): New function.
6700 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6701 deprecated_pc_in_sigtramp.
6702 * i386-nto-tdep.c: Update copyright year.
6703 (i386nto_pc_in_sigtramp): Remove function.
6704 (i386nto_sigtramp_p): New function.
6705 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6706 SP_REGNUM.
6707 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6708 deprecated_pc_in_sigtramp.
6709 * i386-sol2-tdep.c: Update copyright year.
6710 (i386_sol2_pc_in_sigtramp): Remove function.
6711 (i386_sol2_sigtramp_p): New function.
6712 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6713 deprecated_pc_in_sigtramp.
6714 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6715 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6716 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6717 deprecated_sigtramp_start and deprecated_sigtramp_end.
6718 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6719 (i386nbsd_pc_in_sigtramp): Remove function.
6720 (i386nbsd_sigtramp_p): New function.
6721 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6722 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6723 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6724 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6725 (i386obsd_pc_in_sigtramp): Remove function.
6726 (i386obsd_sigtramp_p): New function.
6727 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6728 functions.
6729 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6730 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6731 TDEP->sigtramp_p.
6732 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6733 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6734 dependencies.
6735
e083e6ec
MK
6736 * config/i386/i386aout.mt: Remove file.
6737
bd153b94
MK
6738 * configure.tgt: Remove i[34567]86-*-go32*,
6739 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6740 and i[34567]86-*-isc*. Set gdb_target to i386 for
6741 i[34567]86-*-netware* and i[34567]86-*-*.
6742 * config/i386/i386.mt: New file.
6743 * config/i386/embed.mt: Remove file.
6744 * config/i386/go32.mt: Remove file.
6745 * config/i386/i386nw.mt: Remove file.
6746 * config/i386/i386v.mt: Remove file.
6747 * config/i386/tm-go32.h: Remove file.
6748
4a1bcc8c
MK
6749 * tui/tui-hooks.c: Include "readline/readline.h" after
6750 "gdb_curses.h" instead of before.
6751 * tui/tui-io.c: Likewise.
6752
f9a79064
MK
6753 * tui/tui.c: Fix typo in comment.
6754
b31bc724
MK
6755 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6756
f83f82bc
AC
67572004-04-08 Andrew Cagney <cagney@redhat.com>
6758
6759 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6760 (deprecated_exception_support_initialized): Declare.
8718a420 6761 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6762 (initialize_hp_cxx_exception_support)
6763 (child_enable_exception_callback): Update.
6764 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6765 (deprecated_exception_support_initialized): Rename
6766 deprecated_exception_catchpoints_are_fragile and
6767 deprecated_exception_support_initialized.
6768 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6769
6770 * symtab.c (deprecated_hp_som_som_object_present): Rename
6771 hp_som_som_object_present.
6772 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6773 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6774 Update. Delete extern declaration.
6775 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6776 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6777 (parse_nested_classes_for_hpacc): Ditto.
6778 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6779 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6780 (initialize_hp_cxx_exception_support): Ditto.
6781 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6782 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6783 (cp_print_class_method): Ditto.
8718a420 6784 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6785 (c_type_print_base): Ditto.
6786 * c-exp.y (hp_som_som_object_present): Ditto.
6787
fb2be677
AC
67882004-04-08 Andrew Cagney <cagney@redhat.com>
6789
6790 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6791 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6792 (frame_unwind_find_by_frame): Re-implement the unwind code so
6793 that it can both prepend and append sniffers. Replace
6794 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6795 * tramp-frame.c (tramp_frame_append): Use
6796 frame_unwind_prepend_unwinder.
6797 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6798 frame_unwind_register_unwinder.
6799 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6800 tramp_frame_append.
6801 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6802 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6803 (mips_linux_init_abi): Update.
6804
67faf007
KB
68052004-04-08 Kevin Buettner <kevinb@redhat.com>
6806
6807 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6808 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6809 file support.
6810
8973ff21
KB
68112004-04-07 Kevin Buettner <kevinb@redhat.com>
6812
6813 * ia64-tdep.c (elf.h): Don't include.
6814 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6815
4a0e2f88
JM
68162004-04-07 Jason Molenda (jmolenda@apple.com)
6817
6818 * frame.h: Typeo corrections in comments.
6819
9872ad24
JB
68202004-04-07 Jim Blandy <jimb@redhat.com>
6821
6822 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6823 %esp and %ebp
6824
70b216c8
MK
68252004-04-07 Mark Kettenis <kettenis@gnu.org>
6826
11d5789c
MK
6827 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6828 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6829 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6830 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6831 and solib-legacy.o.
6832 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6833 solib-svr4.o.
6834 * config/sparc/tm-sol2.h: Update copyright year. Include
6835 "solib.h".
6836
70b216c8
MK
6837 * sparc-sol2-tdep.c: Update copyright year. Include
6838 "solib-svr4.h".
6839 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6840 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6841 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6842 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6843 dependencies.
6844
6339dc9e
AC
68452004-04-06 Andrew Cagney <cagney@redhat.com>
6846
6847 * infttrace.c: Include "infttrace.h".
6848 * infttrace.h: Include "target.h".
6849 * Makefile.in (infttrace_h): Update.
6850 (infttrace.o): Update.
8718a420 6851
93449403
AC
68522004-04-06 Andrew Cagney <cagney@redhat.com>
6853
6d518969
AC
6854 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6855 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6856 move extern declarations from here ...
6857 * infttrace.h: ... to here.
6858 * Makefile.in (hppah-nat.o): Update dependencies.
6859
85f4f2d8
AC
6860 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6861 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6862 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6863 (hppa_breakpoint_from_pc): Delete.
6864
93449403
AC
6865 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6866
71456ec6
AC
68672004-04-05 Andrew Cagney <cagney@redhat.com>
6868
6869 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6870 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6871 <sys/file.h>.
8718a420 6872
4c02c60c
AC
68732004-04-06 Randolph Chung <tausq@debian.org>
6874
6875 Committed by Andrew Cagney (mechanical change).
6876 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6877 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6878 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6879 child_enable_exception_callback, current_ex_event,
6880 null_symtab_and_line, child_get_current_exception_event,
6881 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6882 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6883 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6884 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6885 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6886 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6887 Move hpux-specific definitions ...
6888 * hppa-hpux-tdep.c: ... to here.
6889
3a515653
AC
68902004-04-05 Andrew Cagney <cagney@redhat.com>
6891
6892 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6893 skip_prologue_using_sal.
6894
c1730d02
AC
68952004-04-05 Andrew Cagney <cagney@redhat.com>
6896
6897 * config/i386/tm-i386.h: Delete file.
6898 * config/i386/tm-vxworks.h: Update copyright, do not include
6899 "tm-i386.h".
6900 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6901 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6902 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6903 * config/i386/ncr3000.mt (TM_FILE): Delete.
6904 * config/i386/interix.mt (TM_FILE): Delete.
6905 * config/i386/i386v.mt (TM_FILE): Delete.
6906 * config/i386/i386nw.mt (TM_FILE): Delete.
6907 * config/i386/i386gnu.mt (TM_FILE): Delete.
6908 * config/i386/i386aout.mt (TM_FILE): Delete.
6909 * config/i386/embed.mt (TM_FILE): Delete.
6910
8b67aa36
KB
69112004-04-05 Kevin Buettner <kevinb@redhat.com>
6912
6913 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6914 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6915 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6916 (accg7_regnum): New constants.
6917 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6918 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6919 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6920 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6921 for accg registers.
6922 (frv_register_sim_regno): Update spr_map[].
6923
3c7012f5
AC
69242004-04-04 Andrew Cagney <cagney@redhat.com>
6925
6926 * config/mips/xm-riscos.h: Delete.
6927 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6928 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6929 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6930 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6931 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6932 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6933 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6934 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6935 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6936 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6937 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6938 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6939 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6940 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6941 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6942 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6943 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6944 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6945 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6946 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6947 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6948 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6949 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6950 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6951 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6952 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6953
3c7012f5
AC
6954 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6955 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6956 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6957 * configure.host: Remove m680[01]0-sun-sunos3*,
6958 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6959 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6960 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6961 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6962 mips-*-riscos*.
6963 * NEWS: Mention removed systems.
6964
99d16a21
AC
69652004-04-04 Andrew Cagney <cagney@redhat.com>
6966
6967 GDB 6.1 release created from 6.1 branch.
6968
6cdf9d98
AC
69692004-04-04 Andrew Cagney <cagney@redhat.com>
6970
98d346c3
AC
6971 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6972 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6973 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6974
6cdf9d98
AC
6975 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6976 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6977 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6978
859a326d
JB
69792004-04-03 Jim Blandy <jimb@redhat.com>
6980
6981 * MAINTAINERS: Chris Faylor has changed employers; add him to
6982 "paper trail" section, and update his E-mail address.
6983
b87178c3
AC
69842004-04-03 Andrew Cagney <cagney@redhat.com>
6985
4ea2acf0
AC
6986 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6987 generic dummy frames.
6988 * dummy-frame.c: Update copyright.
6989 (dummy_frame_sniffer): Delete check for generic dummy frames.
6990
d0bd2d18 6991 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6992 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6993 (REG_PARM_STACK_SPACE): Delete.
6994 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6995 Inline reference to REG_PARM_STACK_SPACE.
6996
b87178c3
AC
6997 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6998 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6999 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7000 (FRAME_BASE_BEFORE_SIGTRAMP)
7001 (hppa32_hpux_frame_base_before_sigtramp)
7002 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7003 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7004 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7005 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7006 (FRAME_BASE_BEFORE_SIGTRAMP)
7007 (hppa64_hpux_frame_base_before_sigtramp)
7008 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7009
43e2e1a0
AC
70102004-04-03 Andrew Cagney <cagney@redhat.com>
7011
7012 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7013
ddc135a4
AC
70142004-04-02 Andrew Cagney <cagney@redhat.com>
7015
7016 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7017 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7018 * dummy-frame.h: Delete out-of-date comments.
7019 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7020 * gdbarch.h, gdbarch.c: Re-generate.
7021
d15bfd3a 70222004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7023
d15bfd3a
AC
7024 Committed by Andrew Cagney <cagney@redhat.com>.
7025 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7026 into account an instruction saving a register if we have already
7027 seen an earlier instruction saving that same register.
7028
f04ceafa
AC
70292004-04-02 Andrew Cagney <cagney@redhat.com>
7030
08be3abd
AC
7031 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7032 * gdbarch.h, gdbarch.c: Re-generate.
7033 * frame.c (legacy_get_prev_frame): Delete references to
7034 DEPRECATED_INIT_FRAME_PC_FIRST.
7035
f04ceafa
AC
7036 * infrun.c (pc_in_sigtramp): Delete function.
7037 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7038 get_frame_type.
7039
08e69816
AC
70402004-04-02 Andrew Cagney <cagney@redhat.com>
7041
7042 * infrun.c (handle_step_into_function): Delete code conditional on
7043 legacy_frame_p.
7044 (handle_inferior_event, step_over_function): Ditto.
7045
adb54772
AC
70462004-04-02 Andrew Cagney <cagney@redhat.com>
7047
7048 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7049 "previous frame inner to this frame" test.
7050
304396fb
AC
70512004-04-02 Andrew Cagney <cagney@redhat.com>
7052
7053 * frame.c (safe_frame_unwind_memory): New function.
7054 * frame.h (safe_frame_unwind_memory): Declare. Update description
7055 of /safe_/ methods.
7056 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7057 "next_frame". Use safe_frame_unwind_memory.
7058 (tramp_frame_sniffer): Update call to tramp_frame_start.
7059
6502dd73
DJ
70602004-04-01 Daniel Jacobowitz <drow@mvista.com>
7061
7062 * dwarf2read.c (dwarf2_objfile_data_key): New.
7063 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7064 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7065 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7066 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7067 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7068 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7069 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7070 Remove variables.
7071 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7072 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7073 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7074 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7075 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7076 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7077 Remove macros.
7078 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7079 data.
7080 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7081 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7082 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7083 (read_partial_die, read_full_die, read_indirect_string)
7084 (dwarf_decode_line_header, dwarf_decode_macros)
7085 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7086 Update uses of removed variables.
7087 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7088 of removed macros.
7089 (_initialize_dwarf2_read): New function.
7090 * symfile.h (dwarf2_has_info): Update prototype.
7091 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7092 * elfread.c (elf_symfile_read): Likewise.
7093
408752b0
JB
70942004-04-01 Jim Blandy <jimb@redhat.com>
7095
9f744501
JB
7096 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7097 function for register numbers on all the rs6000-derived targets.
7098 (rs6000_gdbarch_init): Don't register a separate
7099 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7100 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7101 variants.
7102
408752b0
JB
7103 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7104 numbering.
7105
2de41bce
PH
71062004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7107
7108 * valarith.c: Update copyright notice.
7109 (value_add): Handle range types.
7110 (value_sub): Ditto.
7111 (value_equal): Ditto.
7112 (value_less): Ditto.
7113 (value_neg): Ditto.
7114 (value_complement): Ditto.
8718a420 7115 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7116 eliminiating unnecessary COERCE_ENUMs.
8718a420 7117
5613d8d3
AC
71182004-03-31 Andrew Cagney <cagney@redhat.com>
7119
7120 * frame.h (frame_unwind_id): Declare.
7121 * frame.c (frame_unwind_id): New function.
7122 (get_prev_frame_1): New function.
7123 (frame_debug_got_null_frame): New function.
7124 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7125 code proper to prev_frame, update description.
7126 * infrun.c (step_over_function): Use frame_unwind_id.
7127
c4557624
JB
71282004-04-31 J. Brobecker <brobecker@gnat.com>
7129
7130 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7131 (hppa64_push_dummy_call): Likewise.
7132
3e6bb910
JB
71332004-03-30 Jim Blandy <jimb@redhat.com>
7134
7135 From Ulrich Weigand:
7136 * utils.c (query): Do not use a va_list variable multiple times.
7137
a2f23071
DJ
71382004-03-29 Daniel Jacobowitz <drow@mvista.com>
7139
7140 * Makefile.in (linux_nat_h): Update dependencies.
7141 * configure.in: Check for <gnu/libc-version.h>.
7142 * configure: Regenerate.
7143 * config.in: Regenerate.
7144 * linux-nat.h: Include "target.h". Add waitstatus field to
7145 struct lwp_info.
7146 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7147 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7148 to.
7149 (lin_lwp_handle_extended): New function. Handle clone events.
7150 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7151 thread exit events.
7152 (child_wait): Handle clone events.
7153 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7154 * linux-nat.c (linux_enable_event_reporting): Turn on
7155 PTRACE_O_TRACECLONE.
7156 (linux_handle_extended_wait): Handle clone events.
7157 * thread-db.c: Include <gnu/libc-version.h>.
7158 (struct private_thread_info): Add dying flag.
7159 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7160 higher.
7161 (attach_thread): Update comments. Handle dying threads.
7162 (detach_thread): Set the dying flag.
7163 (check_event): Always call attach_thread.
7164
8d5f9dcb
DJ
71652004-03-29 Daniel Jacobowitz <drow@mvista.com>
7166
7167 * mips-tdep.c (mips_pdr_data): New.
7168 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7169 (_initialize_mips_tdep): Initialize mips_pdr_data.
7170
66337bb1
CV
71712004-03-29 Corinna Vinschen <vinschen@redhat.com>
7172
7173 * minsyms.c (install_minimal_symbols): Move dropping leading
7174 char from linkage name from here...
7175 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7176 test for "__gnu_compiled*" symbols.
7177
e802b915
JB
71782004-03-28 Jim Blandy <jimb@redhat.com>
7179
7180 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7181 registers to temp register r0 and byte stores as prologue
7182 instructions.
7183
72b56458
AC
71842004-03-28 Andrew Cagney <cagney@redhat.com>
7185
7186 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7187 arm*-*-*.
7188
0bfbda3b
SC
71892004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7190
7191 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7192 and switch the layout to force a display of register window.
7193
5a7225ed
JB
71942004-02-26 J. Brobecker <brobecker@gnat.com>
7195
7196 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7197 of the INTEGER class.
7198
81a07a45
JB
71992004-03-26 Jim Blandy <jimb@redhat.com>
7200
7201 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7202 bytes long on PPC GNU/Linux.
7203
8c691c7a
DC
72042004-03-26 David Carlton <carlton@kealia.com>
7205
7206 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7207
103a0089
AC
72082004-03-25 Andrew Cagney <cagney@redhat.com>
7209
7210 * PROBLEMS: Add general section titles, remove references to
7211 specific releases.
7212
7a5ea0d4
DJ
72132004-03-25 Daniel Jacobowitz <drow@mvista.com>
7214
7215 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7216 INT_REGISTER_SIZE.
7217 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7218 FP_REGISTER_VIRTUAL_SIZE.
7219 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7220 of DEPRECATED_REGISTER_RAW_SIZE.
7221 (arm_register_type): Add gdbarch argument.
7222 (arm_register_raw_size, arm_register_virtual_size): Delete.
7223 (arm_register_byte, arm_extract_return_value)
7224 (arm_store_return_value, arm_get_longjmp_target): Update references
7225 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7226 (arm_gdbarch_init): Likewise. Don't set
7227 deprecated_register_raw_size, deprecated_register_virtual_size,
7228 deprecated_max_register_raw_size,
7229 deprecated_max_register_virtual_size, or
7230 deprecated_max_register_virtual_type. Do set register_type.
7231 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7232 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7233 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7234 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7235 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7236 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7237 INT_REGISTER_SIZE.
7238 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7239 (remote_rdp_store_register): Likewise.
7240
5792a79b
DJ
72412004-03-24 Daniel Jacobowitz <drow@mvista.com>
7242
7243 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7244 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7245 to after osabi initialization.
7246 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7247 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7248 functions.
7249 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7250 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7251 variables.
7252 (mips_linux_init_abi): Append signal trampoline unwinders.
7253
1196bfda
AC
72542004-03-24 Andrew Cagney <cagney@redhat.com>
7255
7256 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7257 * tramp-frame.c: Include "gdb_assert.h".
7258 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7259 correct sizeof.
7260 (tramp_frame_append): Validate the tramp frame's instructions.
7261 * Makefile.in (tramp-frame.o): Update dependencies.
7262
4be282b4
AC
72632004-03-23 Andrew Cagney <cagney@redhat.com>
7264
7265 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7266
69aec09b
AC
72672004-03-23 Andrew Cagney <cagney@redhat.com>
7268
7269 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7270 Nasser as past testsuite/lib/ (and other) maintainers.
7271
63ed89b4
DJ
72722004-03-23 Daniel Jacobowitz <drow@mvista.com>
7273
7274 * infcmd.c (attach_command): Reread symbols if we already have
7275 an exec file.
7276
f3b36427
AC
72772004-03-23 Andrew Cagney <cagney@redhat.com>
7278
7279 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7280
aa2a3f87
AC
72812004-03-23 Andrew Cagney <cagney@redhat.com>
7282
7283 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7284 * gdbarch.h, gdbarch.c: Re-generate.
7285 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7286 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7287 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7288 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7289 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7290 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7291 (DEPRECATED_SIGTRAMP_START): Update.
7292 * blockframe.c (find_pc_sect_partial_function): Update.
7293 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7294
00cac895
DJ
72952004-03-23 Daniel Jacobowitz <drow@mvista.com>
7296
7297 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7298 if necessary.
7299
f561f026
AC
73002004-03-23 Andrew Cagney <cagney@redhat.com>
7301
7302 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7303 predicate, deprecate.
7304 * gdbarch.h, gdbarch.c: Re-generate.
7305 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7306 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7307 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7308 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7309 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7310 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7311 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7312 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7313 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7314 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7315 * blockframe.c (find_pc_partial_function): Update.
7316 * breakpoint.c (bpstat_what): Update.
7317 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7318 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7319 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7320 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7321 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7322 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7323 * i386-nto-tdep.c (i386nto_init_abi): Update.
7324 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7325 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7326 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7327 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7328 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7329 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7330 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7331 * infrun.c (pc_in_sigtramp): Update.
7332 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7333 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7334 * mips-tdep.c (mips_gdbarch_init): Update.
7335 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7336 * ppc-linux-tdep.c: Update comment.
7337 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7338 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7339 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7340 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7341 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7342 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7343 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7344 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7345 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7346 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7347
8050c72f
AC
73482004-03-23 Andrew Cagney <cagney@redhat.com>
7349
d2259dd3
AC
7350 * tramp-frame.h, tramp-frame.h: New files.
7351 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7352 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7353
8050c72f
AC
7354 * Makefile.in: Update all dependencies.
7355
0db9b4b7
AC
73562004-03-23 Andrew Cagney <cagney@redhat.com>
7357
7358 * Makefile.in (trad_frame_h): Add $(frame_h).
7359 * trad-frame.h: Update copyright. Include "frame.h".
7360 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7361 (trad_frame_set_id, trad_frame_get_id): Declare.
7362 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7363 * trad-frame.c: Update copyright.
7364 (struct trad_frame_cache): Define.
7365 (trad_frame_cache_zalloc): New function.
7366 (trad_frame_set_id, trad_frame_get_id): New functions.
7367 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7368
8e645ae7
AC
73692004-03-22 Andrew Cagney <cagney@redhat.com>
7370
7371 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7372 s390_pltstub_unwind_cache.
7373 (s390_stub_frame_unwind_cache): Rename
7374 s390_pltstub_frame_unwind_cache.
7375 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7376 (s390_stub_frame_prev_register): Rename
7377 s390_pltstub_frame_prev_register.
7378 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7379 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7380
7381 From Ulrich Weigand:
7382 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7383 pointer calls like PLT calls.
7384
34fcf120
DJ
73852004-03-22 Daniel Jacobowitz <drow@mvista.com>
7386
7387 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7388 PC rather than the partial function start address. Use the start
7389 address to sanity check the found PDR.
7390
5b917078
DJ
73912004-03-22 Daniel Jacobowitz <drow@mvista.com>
7392
7393 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7394 linux_handle_extended_wait.
7395
8adf9e78
AC
73962004-03-22 Andrew Cagney <cagney@redhat.com>
7397
c3122434
AC
7398 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7399 function.
7400
8adf9e78
AC
7401 * frame.h (generic_pop_current_frame): Delete declaration.
7402 (deprecate_pop_dummy_frame): Deprecate
7403 generic_pop_dummy_frame.
7404 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7405 (generic_pop_current_frame): Delete function.
7406 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7407 generic_pop_current_frame.
7408 * v850-tdep.c (v850_pop_frame): Update.
7409 * mcore-tdep.c (mcore_pop_frame): Update.
7410 * sh64-tdep.c (sh64_pop_frame): Update.
7411 * h8300-tdep.c (h8300_pop_frame): Update.
7412
90ba813f
AC
74132004-03-22 Andrew Cagney <cagney@redhat.com>
7414
7415 * frame.h (deprecated_pc_in_call_dummy): Rename
7416 generic_pc_in_call_dummy.
7417 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7418 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7419 generic_pc_in_call_dummy.
7420 (pc_in_dummy_frame): Make static.
7421 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7422 * gdbarch.h, gdbarch.c: Re-generate.
7423 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7424 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7425 (legacy_get_prev_frame): Ditto.
7426 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7427 comment.
8718a420 7428
ca4bb888
AC
74292004-03-21 Andrew Cagney <cagney@redhat.com>
7430
244675f9
AC
7431 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7432 declaration and out-of-date comment.
7433 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7434 Delete function.
7435 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7436 deprecated_pc_in_call_dummy.
7437
ca4bb888
AC
7438 * infrun.c (handle_inferior_event): For non legacy frames, use the
7439 frame ID and frame type to identify a signal trampoline. Update
7440 comments.
7441
1777c7b4
NW
74422004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7443
7444 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7445 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7446
82417da5
AC
74472004-03-21 Andrew Cagney <cagney@redhat.com>
7448
7449 * frame-unwind.h: Update copyright.
7450 (struct frame_data): Add opaque declaration.
7451 (frame_sniffer_ftype): Declare.
7452 (struct frame_unwind): Add "unwind_data" and "sniffer".
7453 (frame_unwind_register_unwinder): Declare.
7454 (frame_unwind_find_by_frame): Add parameter "this_cache".
7455 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7456 (legacy_get_prev_frame, legacy_get_prev_frame)
7457 (get_frame_type): Pass the prologue_cache to
7458 frame_unwind_find_by_frame.
7459 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7460 "unwinder".
7461 (frame_unwind_register_unwinder): New function.
7462 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7463
b2ba182e
PH
74642004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7465
7466 * bcache.c (print_percentage): Use floating point to avoid
7467 incorrect results when portion*100 overflows.
7468
81332287
KB
74692004-03-19 Kevin Buettner <kevinb@redhat.com>
7470
7471 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7472 (ppc_linux_init_extra_frame_info)
7473 (ppc_linux_frameless_function_invocation)
7474 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7475 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7476 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7477 (rs6000_frame_chain): Delete declarations.
7478 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7479 (ppc_linux_init_extra_frame_info)
7480 (ppc_linux_frameless_function_invocation)
7481 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7482 (ppc_linux_init_abi): Remove registration of above deleted functions.
7483 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7484 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7485 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7486 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7487 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7488 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7489 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7490 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7491 frame management for all OSABIs.
7492
61a65099
KB
74932004-03-19 Andrew Cagney <cagney@redhat.com>
7494
7495 Committed by Kevin Buettner <kevinb@redhat.com>.
7496
7497 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7498 Update copyright.
7499 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7500 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7501 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7502 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7503 unwinders. #ifdef legacy frame code.
7504 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7505 "frame-base.h".
7506 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7507 (struct rs6000_frame_cache, rs6000_frame_cache)
7508 (rs6000_frame_this_id, rs6000_frame_prev_register)
7509 (rs6000_frame_sniffer, rs6000_frame_unwind)
7510 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7511 (rs6000_frame_base): Implement a traditional frame unwinder.
7512 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7513 frame unwinder.
7514
88f7da05
KB
75152004-03-19 Kevin Buettner <kevinb@redhat.com>
7516
7517 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7518 breakpoint address for watchpoints or the catch eventpoints.
7519 Add new paramter ``bptype''. Adjust all callers.
7520
f826dce1
AC
75212004-03-19 Andrew Cagney <cagney@redhat.com>
7522
33cb8b0f
AC
7523 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7524
f826dce1
AC
7525 * PROBLEMS: Delete note that ARM does not use frame code, problem
7526 fixed.
7527
43b1ab88
AC
75282004-03-18 Andrew Cagney <cagney@redhat.com>
7529
292ab034
AC
7530 * stack.c (return_command): Delete code wrapped in #ifdef
7531 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7532
43b1ab88
AC
7533 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7534
dbfe4626
AC
75352004-03-18 Andrew Cagney <cagney@redhat.com>
7536
7537 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7538 DEPRECATED_IN_SIGTRAMP.
7539 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7540 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7541 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7542 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7543 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7544 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7545 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7546 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7547 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7548 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7549
0cad6aec
AC
75502004-03-18 Andrew Cagney <cagney@redhat.com>
7551
7552 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7553 (struct frame_base_table_entry): Define.
7554 (struct frame_base_table): Re-implement as a linked list.
7555 (frame_base_init): Re-implement.
7556 (frame_base_table): Delete function.
7557 (append_predicate): Delete function.
7558 (frame_base_append_sniffer): Update.
7559 (frame_base_set_default): Update.
7560 (frame_base_find_by_frame): Update.
7561 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7562 * Makefile.in (frame-base.o): Update dependencies.
7563
9982c2e7
AC
75642004-03-17 Andrew Cagney <cagney@redhat.com>
7565
7566 * frame.c (legacy_get_prev_frame): Pass correct frame to
7567 frame_unwind_find_by_frame.
7568
8dfe8985
DC
75692004-03-17 David Carlton <carlton@kealia.com>
7570
7571 * NEWS: Mention C++ nested types and namespaces
7572
ed47347a
MC
75732004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7574
7575 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7576 and "Regressions since gdb 5.3.". Add known regressions since
7577 gdb 6.0.
7578
90aeadfc
DC
75792004-03-16 David Carlton <carlton@kealia.com>
7580
7581 * dwarf2read.c (process_structure_scope): Process children even
7582 when we're a declaration.
7583
73912b9b
AC
75842004-03-16 Andrew Cagney <cagney@redhat.com>
7585
7586 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7587 * blockframe.c (find_pc_partial_function)
7588 (find_pc_sect_partial_function): Merge into a single
7589 find_pc_partial_function.
7590
283accbc
MK
75912004-03-16 Mark Kettenis <kettenis@gnu.org>
7592
7593 * i386bsd-nat.c: s/regno/regnum/g.
7594 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7595 FP0_REGNUM.
7596 (store_inferior_registers): Likewise.
7597
f5b1afdf
MK
75982004-03-16 Mark Kettenis <kettenis@gnu.org>
7599
7600 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7601 of i387_fill_fsave.
7602 (store_inferior_registers): Call i387_collect_fsave and
7603 i387_collect_fxsave instead of i387_fill_fsave and
7604 i387_fill_fxsave.
7605
41fe5eb3
AC
76062004-03-15 Andrew Cagney <cagney@redhat.com>
7607
7608 * Makefile.in (frame-unwind.o): Update dependencies.
7609 * frame-unwind.c: Include "gdb_obstack.h".
7610 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7611 parameter.
7612 (append_predicate): Delete function.
7613 (struct frame_unwind_table_entry): New structure.
7614 (struct frame_unwind_table): Replace "sniffer" with "head" and
7615 "tail".
7616 (frame_unwind_append_sniffer): Update.
7617 (frame_unwind_find_by_frame): Update.
7618 (_initialize_frame_unwind): Registe frame_unwind_init using
7619 gdbarch_data_register_pre_init.
7620
3f63813d
MK
76212004-03-15 Mark Kettenis <kettenis@gnu.org>
7622
7623 * i386bsd-nat.c: Update copyright year.
7624 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7625 define unconditionally.
7626
3248c325 76272004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7628
7629 * i387-tdep.h (i387_collect_fsave): New prototype.
7630 * i387-tdep.c (i387_collect_fsave): New function containing most
7631 of the code from i387_fill_fsave.
3248c325 7632 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7633
871fbe6a
MK
76342004-03-15 Mark Kettenis <kettenis@gnu.org>
7635
7636 * i386-linux-tdep.c: Update copyright year.
7637 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7638 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7639 svr4_ilp32_link_map_offsets instead of
7640 i386_linux_svr4_fetch_link_map_offsets.
7641
8176b9b8
DC
76422004-03-15 David Carlton <carlton@kealia.com>
7643
7644 Fix for PR c++/1553:
7645 * dwarf2read.c (read_structure_type): Determine type name by
7646 calling determine_class_name.
7647 (determine_class_name): New.
7648 (determine_prefix): Look at TYPE_TAG_NAME and call
7649 determine_class_name when appropriate.
7650 (determine_prefix_aux, class_name): Delete.
9d58e29d 7651 (read_namespace): Set die->type.
8176b9b8 7652
fe8bf7d7
KB
76532004-03-15 Kevin Buettner <kevinb@redhat.com>
7654
7655 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7656 unused macro definition. The definition in target.h (or perhaps
7657 elsewhere) takes precedence.
7658
ed6edd9b
AC
76592004-03-15 Andrew Cagney <cagney@redhat.com>
7660
f9be684a
AC
7661 * ppc-tdep.h: Update copyright.
7662 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7663 function signatures to match "regsets.h".
7664 * ppc-linux-tdep.c: Include "regset.h".
7665 (ELF_GREGSET_SIZE): Delete.
7666 (right_supply_register): New function.
7667 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7668 using right_supply_register.
7669 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7670 functions.
7671 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7672 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7673 (_initialize_ppc_linux_tdep): Do not register
7674 ppc_linux_regset_core_fns.
7675 (ppc_linux_regset_from_core_section): Replace
7676 fetch_core_registers.
7677 (ppc_linux_regset_core_fns): Delete.
7678 * ppc-linux-nat.c: (right_fill_reg): New function.
7679 (supply_gregset): Update call to ppc_linux_supply_gregset.
7680 (fill_gregset): Clear the register set, use right_fill_reg.
7681 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7682 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7683
ed6edd9b
AC
7684 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7685 unsigned.
7686
030f20e1
AC
76872004-03-15 Andrew Cagney <cagney@redhat.com>
7688
7689 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7690 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7691 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7692 and register_gdbarch_data.
7693 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7694 (struct gdbarch_data): Replace "init" by "pre_init" and
7695 "post_init".
7696 * gdbarch.h, gdbarch.c: Re-generate.
7697 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7698 with"obstack", use OBSTACK_ZALLOC.
7699 (dwarf2_frame_ops): Delete.
7700 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7701 (dwarf2_frame_init_reg): Use gdbarch_data.
7702 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7703 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7704 (_initialize_svr4_solib): Update.
7705 * user-regs.c (_initialize_user_regs): Update.
7706 * reggroups.c (_initialize_reggroup): Update.
7707 * regcache.c (_initialize_regcache): Update.
7708 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7709 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7710 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7711 * frame-unwind.c (_initialize_frame_unwind): Update.
7712 * frame-base.c (_initialize_frame_base): Update.
7713 * user-regs.c (user_reg_add): Update.
7714 * reggroups.c (reggroup_add): Update.
7715 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7716 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7717 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7718 * frame-base.c (frame_base_table): Update.
7719 * remote.c (_initialize_remote): Update.
7720 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7721
3111a3fc
AC
77222004-03-15 Andrew Cagney <cagney@redhat.com>
7723
7724 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7725
5ecb7103
KB
77262004-03-15 Kevin Buettner <kevinb@redhat.com>
7727
7728 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7729 * frv-linux-tdep.c: New file.
7730 * frv-tdep.c (struct gdbarch_tdep): Add new field
7731 ``sigcontext_reg_addr''.
7732 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7733 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7734 (frv_sigramp_frame_sniffer): New functions.
7735 (frv_sigtramp_frame_unwind): New static global.
7736 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7737 sniffers.
7738 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7739 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7740
1ccda5e9
KB
77412004-03-15 Kevin Buettner <kevinb@redhat.com>
7742
7743 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7744 but not via a call to error(), when unable to read memory.
7745
b375a0a5
KB
77462004-03-15 Kevin Buettner <kevinb@redhat.com>
7747
7748 * frv-tdep.c (frv_call_dummy_words): Delete.
7749 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7750
4fdf6121
AC
77512004-03-15 Andrew Cagney <cagney@redhat.com>
7752
7753 * infrun.c (handle_step_into_function, step_over_function): Only
7754 update and use STEP_FRAME_ID when the system is using legacy
7755 frames. Update comments.
7756
34021503
MK
77572004-03-14 Mark Kettenis <kettenis@gnu.org>
7758
187e21d1
MK
7759 * amd64-linux-tdep.h: Remove file.
7760 * amd64-linux-tdep.c: Don't include "inferior.h" and
7761 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7762 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7763 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7764 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7765 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7766 macros.
7767 (user_to_gdb_regmap): Remove variable.
7768 (amd64_linux_gregset_reg_offset): New variable.
7769 (amd64_core_fns): Remove variable.
7770 (fetch_core_registers): Remove function.
7771 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7772 functions.
7773 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7774 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7775 * Makefile.in (amd64_linux_tdep_h): Remove.
7776 (amd64-linux-nat.o): Update dependencies.
7777 (amd64-linux-tdep.o): Update dependencies.
7778
99679982
MK
7779 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7780 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7781 functions.
7782 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7783
34021503
MK
7784 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7785 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7786
134d01f1
DJ
77872004-03-14 Daniel Jacobowitz <drow@mvista.com>
7788
7789 * dwarf2read.c (read_structure_type): Rename from
8718a420 7790 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7791 Return immediately if die->type is set. Call read_type_die before
7792 dwarf2_add_member_fn.
7793 (process_structure_scope): New function.
7794 (read_enumeration_type, process_enumeration_scope): New functions,
7795 broken out from read_enumeration. Don't create the enumeration
7796 type if it has already been created.
7797 (read_enumeration): Removed.
7798 (process_die): Call read_structure_type, process_structure_scope,
7799 read_enumeration_type, and process_enumeration_scope. Just call
7800 new_symbol for base and subrange types. Add a comment about other
7801 type dies.
7802 (read_type_die): Call read_enumeration_type.
7803 (add_partial_structure, new_symbol): Update comments.
7804
65760afb
SC
78052004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7806
7807 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7808
10f59415
SC
78092004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7810
7811 * tui/tui-win.h (tui_get_cmd_list): Declare.
7812 * tui/tui-win.c (tui_command): New function.
7813 (tui_get_cmd_list): New function.
7814 (_initialize_tui_win): Moved initialization of tui command in
7815 tui_get_cmd_list.
7816
7817 * tui/tui-data.c (init_content_element): Setup new data members.
7818 (init_win_info): Likewise.
7819 (free_content_elements): Free it.
7820 * tui/tui-data.h (struct tui_data_element): Store the register
7821 content to print.
7822 (struct tui_data_info): Keep the current register group.
7823
7824 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7825
7826 * tui/tui-regs.h (tui_show_registers): Update prototype.
7827 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7828 (tui_resize_all): No need to calculate anything for register window.
7829 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7830 (tui_set_register_element, tui_set_general_regs_content): Remove.
7831 (tui_set_special_regs_content): Remove.
7832 (tui_set_general_and_special_regs_content): Remove.
7833 (tui_set_float_regs_content): Remove.
7834 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7835 (tui_set_regs_content): Remove.
7836 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7837 (tui_v_show_registers_command_support): Remove.
7838 (tui_show_registers): Use a reggroup to specify the registers to show.
7839 (tui_show_register_group): New function.
7840 (tui_display_registers_from): Compute the layout of register window
7841 and refresh with new API; be sure to delete old register windows.
7842 (tui_check_register_values): Update to use tui_get_register and
7843 tui_display_data.
7844 (tui_display_register): Just refresh the register window part.
7845 (tui_register_format): Format registers and save in tui_data_element.
7846 (tui_get_register): New to combine tui_reg_value_has_changed and
7847 tui_get_register_raw_value; fix to use the new gdb API.
7848 (tui_show_float_command): Renamed tui_reg_float_command.
7849 (tui_show_general_command): Renamed tui_reg_general_command.
7850 (tui_show_special_command): Renamed tui_reg_system_command.
7851 (_initialize_tui_regs): Remove unused commands.
7852
c3364ea4
MK
78532004-03-13 Mark Kettenis <kettenis@gnu.org>
7854
27d1e716
MK
7855 * NEWS (New native configurations): Mention OpenBSD/amd64.
7856
c3364ea4
MK
7857 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7858 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7859 Remove defines.
7860 * config/i386/nm-fbsd64.h: Likewise.
7861 * config/i386/nm-obsd.h: Likewise.
7862 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7863 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7864
b2d6d697
KB
78652004-03-12 Kevin Buettner <kevinb@redhat.com>
7866
7867 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7868 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7869 New constants.
7870
76e43199
KB
7871 From Richard Sandiford <rsandifo@redhat.com>:
7872 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7873
34ce532e
KB
78742004-03-12 Kevin Buettner <kevinb@redhat.com>
7875
7876 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7877 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7878 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7879 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7880 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7881 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7882 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7883 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7884 definitions from frv-tdep.c to frv-tdep.h.
7885
c4d10515
KB
78862004-03-12 Kevin Buettner <kevinb@redhat.com>
7887
7888 Add shared library support for FR-V FDPIC ABI:
7889 * Makefile.in (solib-frv.o): Add dependencies.
7890 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7891 New functions.
7892 (frv_push_dummy_call): Add support for FDPIC ABI.
7893 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7894 for FDPIC ABI.
7895 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7896 (frv_fdpic_find_canonical_descriptor): Declare.
7897 * solib-frv.c: New file.
7898 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7899 * config/frv/tm-frv.h (solib.h): Include.
7900
ed1bd989
KB
79012004-03-12 Kevin Buettner <kevinb@redhat.com>
7902
7903 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7904 (frv-tdep.o): Update dependencies.
7905 * frv-tdep.h: New file.
7906 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7907 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7908 constants.
7909 (struct gdbarch_tdep): Add new member ``frv_abi''.
7910 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7911 functions.
7912 (new_variant): Set ``frv_abi'' field.
7913 (gdb_arch_init): Detect FDPIC executables.
7914
82b38f72
MK
79152004-03-12 Mark Kettenis <kettenis@gnu.org>
7916
7917 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7918 wrapper.
7919
db1ea9ba
AC
79202004-03-11 Andrew Cagney <cagney@redhat.com>
7921
7922 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7923
f8766ec1
KB
79242004-03-11 Kevin Buettner <kevinb@redhat.com>
7925
7926 * solist.h (master_so_list): New function.
7927 * solib.c (master_so_list): Likewise.
7928 * solib-svr4.c (enable_break): Iterate over so_list entries
7929 obtained from master list instead of entries obtained directly
7930 via svr4_current_sos().
7931
523f6a27
BE
79322004-03-10 Ben Elliston <bje@gnu.org>
7933
7934 * MAINTAINERS: Update my mail address.
7935
37814c18
KI
79362004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7937
7938 * remote-m32r-sdi.c: Support hardware watchpoint.
7939
8b9740d8
DJ
79402004-03-09 Daniel Jacobowitz <drow@mvista.com>
7941
7942 * user-regs.c: Update copyright years.
7943 (struct user_regs): Rename to gdb_user_regs.
7944 (append_user_reg, builtin_user_regs, user_regs_init)
7945 (user_reg_add, user_reg_map_name_to_regnum)
7946 (usernum_to_user_reg): Update.
7947
4bb7a0a7
DJ
79482004-03-09 Daniel Jacobowitz <drow@mvista.com>
7949
7950 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7951 (skip_children): New functions.
7952 (locate_pdi_sibling): Call skip_children.
7953
44e1a9eb
DJ
79542004-03-09 Daniel Jacobowitz <drow@mvista.com>
7955
7956 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7957 * gdbtypes.c (check_typedef): Update comments.
7958
f3dd6933
DJ
79592004-03-09 Daniel Jacobowitz <drow@mvista.com>
7960
7961 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7962 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7963 pointer. Update comment about comp_unit_head.
7964 (struct abbrev_info): Shorten two int flags.
7965 (dwarf_alloc_abbrev): Take a CU argument.
7966 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7967 each time through the loop. Update cleanup argument.
7968 (psymtab_to_symtab_1): Update cleanup call.
7969 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7970 abbrev_obstack.
7971 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7972 Just call obstack_free and clear the pointer.
7973
b40c7d58
DJ
79742004-03-09 Daniel Jacobowitz <drow@mvista.com>
7975
7976 * infrun.c (handle_inferior_event): Remove short-circuit code for
7977 events in a different thread.
7978
333dabeb
DJ
79792004-03-09 Daniel Jacobowitz <drow@mvista.com>
7980
7981 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7982 print the whole transfer.
7983 (initialize_targets): Update description of "set debug target".
7984
aa17d93e
DJ
79852004-03-09 Daniel Jacobowitz <drow@mvista.com>
7986
7987 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7988
0b71f08f
NW
79892004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7990
7991 * MAINTAINERS (write after approval): Add myself.
7992
3930f270
CV
79932004-03-08 Corinna Vinschen <vinschen@redhat.com>
7994
7995 * sh-tdep.c (sh_print_registers_info): Use for loop.
7996 Don't skip multiple registers when a float register is encountered.
7997
a2b4a96c
CV
79982004-03-08 Corinna Vinschen <vinschen@redhat.com>
7999
8000 Fix PR tdep/1291.
8001 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8002 to official SH documentation.
8003
f15a4bc0
AC
80042004-03-07 Andrew Cagney <cagney@redhat.com>
8005
8006 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8007 unused function.
8008
9498281f
DJ
80092004-03-07 Daniel Jacobowitz <drow@mvista.com>
8010
8011 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8012 (arm_get_next_pc): Handle BX and BLX.
8013
449e1137
AC
80142004-03-07 Andrew Cagney <cagney@redhat.com>
8015
eded0a31
AC
8016 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8017 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8018 HPPA_SP_REGNUM.
8019 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8020 (hppa_target_read_fp): Delete.
8021 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8022 register_virtual_size, max_register_raw_size,
8023 max_register_virtual_size, register_byte, register_size,
8024 target_read_fp, fp_regnum, and register_bytes. Set register_type
8025 instead of register_virtual_type.
8026 (hppa32_register_type, hppa64_register_type): Replace
8027 hppa32_register_virtual_type and hppa64_register_virtual_type.
8028 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8029 (HPPA_FP_REGNUM): Define.
8030
f5f907e2
AC
8031 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8032
69b4bbe4
AC
8033 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8034 (pa_do_registers_info): Delete.
8035 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8036 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8037 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8038
78161e48
AC
8039 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8040 GDB_TARGET_IS_HPPA code.
8041 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8042 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8043 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8044 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8045 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8046 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8047 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8048 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8049 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8050 (hppa_frameless_function_invocation, hppa64_store_return_value)
8051 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8052 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8053 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8054 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8055 (find_proc_framesize, deposit_21, restore_pc_queue)
8056 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8057 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8058
782eae8b
AC
8059 Unconditionally enable 64-bit frame and ABI code.
8060 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8061 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8062 push_dummy_frame, fix_call_dummy, push_arguments,
8063 call_dummy_location, extract_return_value, use_struct_convention,
8064 store_return_value, store_struct_return, saved_pc_after_call,
8065 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8066 frame_chain, frame_chain_valid, frameless_function_invocation,
8067 frame_saved_pc, and pop_frame.
78161e48 8068
449e1137
AC
8069 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8070 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8071 (hppa_gdbarch_init): Do not set PC_REGNUM.
8072
12507572
MK
80732004-03-06 Mark Kettenis <kettenis@gnu.org>
8074
8075 * config/alpha/tm-fbsd.h: Remove file.
8076 * config/alpha/fbsd.mt: Tweak comment.
8077 (TM_FILE): Set to tm-alpha.h.
8078
c107cc1b
AC
80792004-03-05 Andrew Cagney <cagney@redhat.com>
8080
8081 * infrun.c (step_over_function): When non-legacy code, and no
8082 step_frame_id, use the unwinder to get the caller's frame ID.
8083
f2e7c15d
MK
80842004-03-05 Mark Kettenis <kettenis@gnu.org>
8085
8b0c3633
MK
8086 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8087 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8088 bfd_arch_unknown. Adjust comment.
8089
f2e7c15d
MK
8090 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8091 * i386obsd-tdep.c: Correct spelling in comment.
8092 * i386nbsd-tdep.c: Correct spelling in comment.
8093 * sparc-tdep.c: Correct spelling in comments.
8094
1198ecbe
DC
80952004-03-05 David Carlton <carlton@kealia.com>
8096
8097 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8098 bug.
8099
9eb42ed1
MK
81002004-03-05 Mark Kettenis <kettenis@gnu.org>
8101
8102 * sparc-tdep.c: Fix typo in comment.
8103
52b5e991
JB
81042004-03-04 J. Brobecker <brobecker@gnat.com>
8105
8106 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8107
d8151005
DJ
81082004-03-04 Daniel Jacobowitz <drow@mvista.com>
8109
8110 * dwarf2read.c: Add comment describing memory lifetimes.
8111 (struct dwarf2_pinfo): Update comment.
8112 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8113 (read_enumeration, new_symbol): Don't use obsavestring.
8114
cbeae229
MK
81152004-03-04 Mark Kettenis <kettenis@gnu.org>
8116
722d18c2
MK
8117 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8118 instead of amd64_fill_fxsave.
8119 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8120 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8121
cbeae229
MK
8122 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8123 Reorganize code a bit.
8124
b4206d25
OF
81252004-03-04 Orjan Friberg <orjanf@axis.com>
8126
8127 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8128 when the frame pointer is pushed. Don't set the frame pointer's
8129 address on the stack unless it's actually located there.
b4206d25
OF
8130 Set the SRP's address on the stack correctly when the PC is still in
8131 the prologue.
8132 (cris_return_value): New function.
8133 (cris_gdbarch_init): Clear deprecated store_return_value,
8134 extract_return_value.
8135
49b0b195
JB
81362004-03-02 Jim Blandy <jimb@redhat.com>
8137
8138 * stabsread.c (reg_value_complaint): The maximum register number
8139 is one less than the number of registers.
8140
e9ff708b
AC
81412004-03-02 Andrew Cagney <cagney@redhat.com>
8142
8143 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8144 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8145 trailing comma and redundant assignment of I386_ST0_REGNUM.
8146 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8147 32-bit segment registers.
8148
d4715e41
AC
81492004-03-01 Andrew Cagney <cagney@redhat.com>
8150
8151 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8152 use frame_relative_level and get_next_frame.
8153
3ce2bf18
AC
81542004-02-29 Andrew Cagney <cagney@redhat.com>
8155
8156 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8157 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8158 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8159 Delete macro.
8160
2da6aac3
DJ
81612004-02-29 Daniel Jacobowitz <drow@mvista.com>
8162
8163 * inflow.c (terminal_inferior): Don't give up the terminal if we
8164 previously couldn't get the inferior's terminal state.
8165
6ba34a8d
DJ
81662004-02-29 Daniel Jacobowitz <drow@mvista.com>
8167
8168 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8169 PC_REGNUM.
8170
faae5abe
AC
81712004-02-28 Andrew Cagney <cagney@redhat.com>
8172
8173 * NEWS: Refer to GDB 6.1.
8174 * README: Refer to GDB 6.1.
8175 * PROBLEMS: Refer to GDB 6.1.
8176
2227a3c5
DJ
81772004-02-28 Daniel Jacobowitz <drow@mvista.com>
8178
8179 * thread-db.c (disable_thread_signals): Remove unused function.
8180
80571bff
MK
81812004-02-28 Mark Kettenis <kettenis@gnu.org>
8182
041bd74b
MK
8183 * amd64-nat.c: Include "gdb_string.h".
8184 (amd64_collect_native_gregset): Zero-extend the 32-bit
8185 general-purpose registers and %eip.
8186
3c017e40
MK
8187 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8188 * amd64-tdep.c (amd64_collect_fxsave): New function.
8189 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8190
80571bff
MK
8191 * i387-tdep.h: Update copyright year.
8192 (i387_collect_fxsave): New prototype.
8193 * i387-tdep.c: Update copyright year.
8194 (i387_collect_fxsave): New function containing most of the code
8195 from i387_fill_fxsave.
8196 (i387_fill_fxsave): Call i387_collect_fxsave.
8197
50d71875
AC
81982004-02-28 Andrew Cagney <cagney@redhat.com>
8199
8200 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8201 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8202
4a28816e
MK
82032004-02-28 Mark Kettenis <kettenis@gnu.org>
8204
8205 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8206
dbda9972
AC
82072004-02-28 Andrew Cagney <cagney@redhat.com>
8208
8209 * utils.c: Use "", instead of <>, to include readline.
8210 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8211 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8212 * source.c, solib.c, exec.c, event-top.c: Ditto.
8213 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8214 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8215 * Makefile.in: Update all dependencies.
8216 (readline_tilde_h, readline_history_h): Define.
8217 (readline_headers): Delete.
8218
83277a99
MK
82192004-02-28 Mark Kettenis <kettenis@gnu.org>
8220
91ae4303
MK
8221 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8222 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8223 "config/i386/tm-lx64.h".
8224
83277a99
MK
8225 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8226 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8227 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8228
6e1d7d6c
AC
82292004-02-28 Andrew Cagney <cagney@redhat.com>
8230
ecc9ac84
AC
8231 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8232
6e1d7d6c
AC
8233 * breakpoint.c (_initialize_breakpoint): Use
8234 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8235 Add help to show command.
8236
9671aeef
MK
82372004-02-28 Mark Kettenis <kettenis@gnu.org>
8238
7fa2737c
MK
8239 * i386-nat.c: Reformat to be closer to coding standards.
8240 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8241 `retval'. Make variables `align' and `size' local to while-loop.
8242 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8243 (_initialize_i386_nat): New prototype.
8244
9671aeef
MK
8245 * tui/tui.c: Include <readline/readline.h> instead of
8246 "readline/readline.h". Include it after <term.h> and
8247 "gdb_curses.h".
8248
fca7aa43
AC
82492004-02-27 Andrew Cagney <cagney@redhat.com>
8250
412275d5
AC
8251 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8252 the new frame unwind code.
8253 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8254 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8255 PCOQ_HEAD_REGNUM.
8256
fca7aa43
AC
8257 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8258 "return_value" and "push_dummy_call".
8259 (hppa32_use_struct_convention): Delete unused function.
8260 (hppa32_store_return_value): Delete unused function.
8261 (hppa32_extract_return_value): Delete unused function.
8262 (hppa32_stack_align): Delete function.
8263
e6a8a7d2
EZ
82642004-02-27 Eli Zaretskii <eliz@elta.co.il>
8265
8266 * coffread.c (enter_linenos): Don't let rawptr reference memory
8267 outside linetab[]'s limits.
8268
1797a8f6
AC
82692004-02-27 Andrew Cagney <cagney@redhat.com>
8270
8271 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8272 inferior stack space - the stack needs to grow upwards.
8273 (hppa32_frame_align): New function.
8274 (hppa64_frame_align): Replace hppa_frame_align.
8275 (hppa_gdbarch_init): Update.
8276
2e4b5889
OF
82772004-02-26 Orjan Friberg <orjanf@axis.com>
8278
8279 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8280 (dwarf2-frame.h): Include.
8281 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8282 Remove static variables related to ABI setting.
8283 (struct gdbarch_tdep): Remove cris_abi member.
8284 (struct frame_extra_info): Remove.
8285 (cris_unwind_cache, stack_item): New structs.
8286 (cris_frame_unwind, cris_frame_base): New variables.
8287 (push_stack_item, pop_stack_item)
8288 (cris_frame_unwind_cache, cris_frame_this_id)
8289 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8290 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8291 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8292 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8293 (cris_reg_struct_has_addr): New functions.
8294 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8295 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8296 (cris_store_struct_return, cris_frameless_function_invocation)
8297 (cris_pop_frame, cris_skip_prologue_main)
8298 (cris_abi_original_store_return_value)
8299 (cris_abi_v2_store_return_value)
8300 (cris_abi_original_extract_return_value)
8301 (cris_abi_v2_extract_return_value)
8302 (cris_abi_original_reg_struct_has_addr)
8303 (cris_abi_v2_reg_struct_has_addr)
8304 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8305 (cris_push_return_address, cris_abi_update): Remove.
8306 (_initialize_cris_tdep): Remove ABI command.
8307 (cris_dump_tdep): Ditto.
8718a420 8308 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8309 Set store_return_value, extract_return_value, push_dummy_code,
8310 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8311 frame_unwind_append_sniffer, frame_base_set_default.
8312 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8313 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8314 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8315 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8316 init_extra_frame_info, frameless_function_invocation, frame_chain,
8317 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8318 dummy_write_sp.
8718a420 8319
6b9acc27
JJ
83202004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8321
8322 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8323 * valprint.c (print_hex_chars): Change from static to external.
8324 (print_char_chars): New function.
8325 * printcmd.c (print_scalar_formatted): For integer and enum types
8326 that are longer than LONGEST, perform processing via appropriate
8327 print_*_chars routines.
8328
a431654a
AC
83292004-02-26 Andrew Cagney <cagney@redhat.com>
8330
8331 * Makefile.in: Update dependencies.
8332 Changes from Ulrich Weigand,
8333 * s390-tdep.c: Include "dwarf2-frame.h".
8334 (s390_dwarf2_frame_init_reg): New function.
8335 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8336 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8337
fa8d40ab
JJ
83382004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8339
8340 * breakpoint.c (pending_break_support): New setting variable.
8341 (break_command_1): Account for pending_break_support setting
8342 when creating pending breakpoints.
8343 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8344 (_initialize_breakpoint): Add "set breakpoint pending" and
8345 "show breakpoint pending" commands.
8346
0dcd613f
AC
83472004-02-26 Andrew Cagney <cagney@redhat.com>
8348
8349 Fix PR i18n/1570.
8350 * charset.c (backslashable, backslashed, represented): Remove 'e'
8351 from list of escaped characters, not part of ISO-C.
8352
479272a3
JB
83532004-02-25 J. Brobecker <brobecker@gnat.com>
8354
8355 From Peter Schauer <schauer@pdf.de>:
8356 * tui/tui.c: Move system header includes after local includes.
8357 Fixes a build failure on solaris systems.
8358
7613d933
JB
83592004-02-25 J. Brobecker <brobecker@gnat.com>
8360
8361 * configure.in: Refine the previous change.
8362 * configure: Regenerate.
8363
9c1488cb
MK
83642004-02-25 Mark Kettenis <kettenis@gnu.org>
8365
8366 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8367 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8368 "amd64-tdep.h" instead of "x86-64-tdep.h".
8369 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8370 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8371 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8372 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8373 and "x86-64-tdep.c".
8374 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8375 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8376 and "x86-64-tdep.c".
8377 * amd64bsd-nat.c: Update copyright year.
8378 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8379 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8380 "x86-64-tdep.h".
8381 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8382 "x86-64-tdep.h".
8383 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8384 "x86-64-tdep.h".
8385 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8386 "x86-64-tdep.h".
8387 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8388 "x86-64-tdep.h".
8389 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8390 "x86-64-tdep.h".
8718a420 8391 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8392 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8393 * Makefile.in (amd64_linux_tdep_h): Renamed from
8394 x86_64_linux_tdep_h.
8395 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8396 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8397 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8398 (amd64obsd-tdep.o): Update dependencies.
8399 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8400 dependencies.
8401 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8402 dependencies.
8403 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8404 amd64-linux-nat.c amd64-linux-tdep.c.
8405 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8406 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8407 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8408 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8409 amd64-tdep.o and amd64-linux-tdep.o.
8410 (TM_FILE): Set to tm-linux64.h.
8411 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8412 (NAT_FILE): Set to nm-linux64.h.
8413 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8414 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8415 amd64-tdep.o.
8416 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8417 amd64-tdep.o.
8418 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8419 amd64-tdep.o.
8420
4b8dad4a
RM
84212004-02-25 Roland McGrath <roland@redhat.com>
8422
8423 * remote.c (remote_protocol_qPart_auxv): New variable.
8424 (init_all_packet_configs): Initialize it.
8425 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8426 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8427 (show_remote_cmd): Call it.
8428 (_initialize_remote): Initialize commands.
8429 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8430 service TARGET_OBJECT_AUXV requests.
8431
66745969
JB
84322004-02-25 J. Brobecker <brobecker@gnat.com>
8433
8434 * configure.in: Make sure that the wborder function is available.
8435 Otherwise, search for it in the cur_colr library.
8436 * configure: Regenerate.
8437
79508e1e
AC
84382004-02-25 Andrew Cagney <cagney@redhat.com>
8439
8440 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8441
571ee600
MK
84422004-02-25 Mark Kettenis <kettenis@gnu.org>
8443
8444 * config/i386/tm-x86-64linux.h: Tweak comments.
8445
2b1b322f 84462004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8447
8448 * MAINTAINERS: Add self to write-after-approval list.
8449
4d2acc65
AC
84502004-02-25 Andrew Cagney <cagney@redhat.com>
8451
4b8dad4a 8452 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8453 * cli/cli-script.c (execute_control_command): Unconditionally
8454 install a cleanup. Default "ret" to "invalid_control". Use
8455 "break" instead of "return" to escape from the switch.
8456
4cfcaf21
JB
84572004-02-24 J. Brobecker <brobecker@gnat.com>
8458
8459 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8460 with the lines macro defined in term.h on AiX.
8461 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8462 a collision with the label_width macro defined in term.h on AiX.
8463
54a5c8d8
KB
84642004-02-23 David Mosberger <davidm@hpl.hp.com>
8465
8466 Committed by Kevin Buettner <kevinb@redhat.com>.
8467
8468 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8469 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8470 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8471 instead of ia64_write_pc().
8472 * ia64-linux-tdep.c (regcache.h): Include.
8473 (ia64_linux_write_pc): New function.
4b8dad4a 8474
8a1dac83
RM
84752004-02-23 Roland McGrath <roland@redhat.com>
8476
8477 * auxv.c (info_auxv_command): Fix typos in error messages.
8478
90f90721
MK
84792004-02-23 Mark Kettenis <kettenis@gnu.org>
8480
8a1dac83 8481 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8482 (enum amd64_regnum): New.
8483 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8484 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8485 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8486 (X86_64_XMM1_REGNUM): Removed.
8487 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8488 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8489 prototypes for renamed functions.
8490 * x86-64-tdep.c: Fix typo.
8491 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8492 register numbers.
8493 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8494 Use constants from `enum amd64_regnum' for register numbers.
8495 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8496 (amd64_analyze_prologue, amd64_frame_cache,
8497 amd64_sigtramp_frame_cache): Use constants from `enum
8498 amd64_regnum' for register numbers.
8499 (amd64_supply_fpregset): Adjust for renamed functions.
8500 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8501 `enum amd64_regnum' for register numbers.
8502 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8503 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8504 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8505 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8506 (amd64_linux_fill_gregset): Adjust for renamed macros.
8507 (fetch_core_registers): Adjust for renamed functions.
8508 (amd64_linux_init_abi): Adjust for renamed functions.
8509 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8510 renamed functions.
8511 * amd64-nat.c: Adjust for renamed macros.
8512 * amd64bsd-nat.c (fetch_inferior_registers)
8513 (store_inferior_registers): Use constants from `enum amd64_regnum'
8514 for register numbers. Adjust for renamed variables.
8515 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8516 renamed variables.
8517 (_initialize_amd64fbsd_nat): Use constants from `enum
8518 amd64_regnum' for register numbers.
8519 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8520 `enum amd64_regnum' for register numbers.
8521 (amd64fbsd_init_abi): Adjust for renamed functions.
8522 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8523 `enum amd64_regnum' for register numbers.
8524 (amd64nbsd_init_abi): Adjust for renamed functions.
8525 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8526 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8527 `enum amd64_regnum' for register numbers.
8528 (amd64obsd_init_abi): Adjust for renamed functions.
8529 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8530
d5479188
JJ
85312004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8532
8533 * breakpoint.c (print_one_breakpoint): Do not output spaces
8534 after printing <PENDING> for a pending breakpoint.
8535
81cb7cc9
JJ
85362004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8537
8538 * printcmd.c (print_scalar_formatted): Initialize val_long
8539 to remove compiler warning message.
8540
cbdeadca
JJ
85412004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8542
8543 * defs.h (nquery, yquery): New prototypes.
8544 * breakpoint.c (break_command_1): Use new nquery interface.
8545 * utils.c (defaulted_query, nquery, yquery): New functions.
8546
da6bab63
AC
85472004-02-23 Andrew Cagney <cagney@redhat.com>
8548
2f690297
AC
8549 * hppa-tdep.c (hppa_frame_align): New function.
8550 (hppa32_push_dummy_call): New function.
8551 (hppa64_push_dummy_call): New function.
8552 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8553 disabled.
8a1dac83 8554
da6bab63
AC
8555 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8556 FIX_CALL_DUMMY when push_dummy_call is available.
8557 (call_function_by_hand, push_dummy_code): Ditto.
8558
abf9b42d
AC
85592004-02-22 Andrew Cagney <cagney@redhat.com>
8560
8561 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8562 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8563 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8564 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8565 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8566 call_dummy_location to ON_STACK.
8567
10fc94a4
MK
85682004-02-22 Mark Kettenis <kettenis@gnu.org>
8569
51433e4b
MK
8570 * x86-64-linux-tdep.c: Tweak comment.
8571 (amd64_linux_supply_gregset): Renamed from
8572 x86_64_linux_supply_gresget.
8573 (amd64_linux_fill_gregset): Renamed from
8574 x86_64_linux_fill_gregset.
8575 (fetch_core_registers): Adjust for renamed functions.
8576 (amd64_core_fns): Renamed from x86_64_core_fns.
8577 (amd64_linux_sigtramp_start): Renamed from
8578 x86_64_linux_sigtramp_start.
8579 (amd64_linux_pc_in_sigtramp): Renamed from
8580 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8581 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8582 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8583 (amd64_linux_sigcontext_addr): Renamed from
8584 x86_64_linux_sigcontext_addr.
8585 (amd64_linux_sc_reg_offset): Renamed from
8586 x86_64_linux_sc_reg_offset.
8587 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8588 Adjust for renamed functions and variables.
8589 (_initialize_amd64_linux_tdep): Renamed from
8590 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8591 variables.
8592 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8593 Adjust for renamed functions.
8594
430eaf2e
MK
8595 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8596 from x86_64_linux_gregset64_reg_offset.
8597 (amd64_linux_gregset32_reg_offset): Rename from
8598 x86_64_linux_gregset64_reg_offset.
8599 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8600 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8601 (amd64_linux_dr_set_control): Renamed from
8602 x86_64_linux_dr_set_control. Adjust for renamed functions.
8603 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8604 Adjust for renamed functions.
8605 (amd64_linux_dr_reset_addr): Renamed from
8606 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8607 (amd64_linux_dr_get_status): Renamed from
8608 x86_64_linux_dr_get_status. Adjust for renamed functions.
8609 (_initialize_amd64_linux_nat): Renamed from
8610 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8611 functions.
8612 * config/i386/nm-x86-64linux.h: Update copyright year.
8613 Adjust for renamed functions.
8614
10fc94a4
MK
8615 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8616 amd64fbsd_sigtramp_start.
8617 (amd64fbsd_sigtramp_end_addr): Renamed from
8618 amd64fbsd_sigtramp_end.
8619 (amd64fbsd_init_abi): Adjust for renamed variables.
8620 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8621 variables.
8622 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8623 amd64fbsd_sigtramp_start.
8624 (amd64fbsd_sigtramp_end_addr): Renamed from
8625 amd64fbsd_sigtramp_end.
8626
343af405
AC
86272004-02-22 Andrew Cagney <cagney@redhat.com>
8628
537987fc
AC
8629 * hppa-tdep.c (hppa32_return_value): New function.
8630 (hppa64_return_value): New function.
8631 (hppa_gdbarch_init): Set return_value; keep disabled.
8632
fad850b2
AC
8633 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8634 struct-return and inferior function call methods.
8635
26d08f08
AC
8636 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8637 "frame-base.h".
8638 (struct hppa_frame_cache): Define.
8639 (hppa_frame_cache, hppa_frame_this_id): New functions.
8640 (hppa_frame_prev_register): New function.
8641 (hppa_frame_unwind, hppa_frame_base): New variables.
8642 (hppa_frame_unwind_sniffer): New function.
8643 (hppa_frame_base_address, hppa_unwind_pc): New function.
8644 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8645 sniffer, and frame base sniffer; keep disabled.
8646 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8647 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8648
e7d7bd65
AC
8649 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8650 to predicates for "seriously old code".
8651
e963316f
AC
8652 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8653 runtime if(0).
8654
56132691
AC
8655 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8656 unsigned.
8657 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8658
343af405
AC
8659 * config/pa/tm-hppa.h: Update copyright.
8660 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8661 (deprecated_init_frame_pc_default): Delete declaration.
8662 (hppa_frame_init_saved_regs): Delete declaration.
8663 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8664 * hppa-tdep.c: Include "arch-utils.h".
8665 (hppa_gdbarch_init): Set deprecated init_frame_pc
8666 and deprecated frame_init_saved_regs.
8667 (hppa_frame_init_saved_regs): Make static.
8668
f5859b4d
MK
86692004-02-22 Mark Kettenis <kettenis@gnu.org>
8670
86f6f8e7 8671 Remove old 386BSD support.
cf7c5c23 8672 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8673 * configure.host: Remove i[34567]86-*-bsd*.
8674 * configure.tgt: Remove i[34567]86-*-bsd*.
8675 * i386b-nat.c: Removed.
8676 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8677 (i386b-nat.o): Remove dependencies.
8678
86f6f8e7
MK
8679 * config/i386/i386bsd.mh: Removed.
8680 * config/i386/i386bsd.mt: Removed.
8681 * config/i386/nm-i386bsd.h: Removed.
8682 * config/i386/tm-i386bsd.h: Removed.
8683 * config/i386/xm-i386bsd.h: Removed.
8684
971218cd
MK
8685 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8686
7e654c37
MK
8687 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8688 (amd64fbsd_init_abi): Set link map offsets.
8689 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8690 (amd64nbsd_init_abi): Set link map offsets.
8691 * amd64obsd-tdep.c: Include "solib-svr4.h".
8692 (amd64obsd_init_abi): Set link map offsets.
8693 * i386fbsd-tdep.c: Include "solib-svr4.h".
8694 (i386fbsd_init_abi): Set link map offsets.
8695 * i386nbsd-tdep.c: Include "solib-svr4.h".
8696 (i386nbsdelf_init_abi): Set link map offsets.
8697 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8698 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8699 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8700 solib-legacy.o and core-aout.o. Reformat.
8701 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8702 solib-svr4.o, solib-legacy.o. Reformat.
8703 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8704 * config/i386/nbsdelf.mh: Reformat.
8705 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8706 solib-svr4.o, solib-legacy.o and corelow.o.
8707 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8708 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8709 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8710 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8711 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8712 (TM_FILE): Set to tm-fbsd.h.
8713 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8714 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8715 solib-svr4.o.
8716 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8717 solib-svr4.o.
8718 (TM_FILE): Set to nm-nbsd.h.
8719 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8720 Simplify shared library support. Don't include "elf/common.h".
8721 (SVR4_SHARED_LIBS): Don't define.
8722 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8723 "solib.h".
8724 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8725 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8726 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8727 Don't include "i386/tm-i386.h". Include "solib.h".
8728 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8729 Don't include "i386/tm-i386.h".
8730 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8731 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8732 Include "i386/xm-i386.h".
8733 (HOST_LONG_DOUBLE_FORMAT): Remove.
8734
5d93ae8c
MK
8735 Fix OpenBSD/i386 sigtramp recognition.
8736 * i386-tdep.h: Update copyright year.
8737 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8738 (i386bsd_sigtramp_end): New prototypes.
8739 (i386fbsd_sigtramp_start_addr): Renamed from
8740 i386fbsd_sigtramp_start.
8741 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8742 (i386obsd_sigtramp_start_addr): Renamed from
8743 i386obsd_sigtramp_start.
8744 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8745 * i386bsd-tdep.c: Update copyright year.
8746 (i386bsd_pc_in_sigtramp): Make public.
8747 * i386fbsd-nat.c: Update copyright year.
8748 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8749 * i386fbsd-tdep.c: Update copyright year.
8750 (i386fbsd_sigtramp_start_addr): Renamed from
8751 i386fbsd_sigtramp_start.
8752 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8753 (i386fbsdaout_init_abi): Adjust for renamed variables.
8754 * i386obsd-nat.c: Update copyright year.
8755 (_initialize_i386obsd_nat): Adjust for renamed variables.
8756 * i386obsd-tdep.c: Include "target.h".
8757 (i386obsd_page_size): New variable.
8758 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8759 (i386obsd_sigtramp_end): New functions.
8760 (i386obsd_sigtramp_start_addr): Renamed from
8761 i386obsd_sigtramp_start.
8762 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8763 (i386obsd_init_abi): Adjust for renamed variables. Set
8764 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8765 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8766
84d04465
MK
8767 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8768 trampoline change in OpenBSD kernel.
8769
b053aceb
MK
8770 * amd64-nat.c: Update copyright year.
8771 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8772 architecture from REGCACHE.
8773
f5859b4d
MK
8774 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8775 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8776
e4bbbda8
MK
87772004-02-21 Mark Kettenis <kettenis@gnu.org>
8778
ba361932
MK
8779 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8780 i[34567]86-*-openbsd3.[0-3].
8781 * config/i386/obsdaout.mh: New file.
8782
d3e48264
MK
8783 * config/i386/obsd.mh (MH_FLAGS): Remove.
8784
60a6eeb6
MK
8785 Fix PR build/1549.
8786 * i386obsd-tdep.c: Update copyright years. Include
8787 "solib-svr4.h".
8788 (i386obsd_init_abi): Don't set regset_from_core_section here.
8789 (i386obsd_aout_init_abi): New function. Set
8790 regset_from_core_section here.
8791 (i386obsd_elf_init_abi): New function.
8792 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8793 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8794 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8795 (TM_FILE): Set to tm-nbsd.h.
8796
8797 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8798 solib-sunos.o.
8799
e4bbbda8
MK
8800 * solib-svr4.h: Update copyright year.
8801 (svr4_ilp32_fetch_link_map_offsets)
8802 (svr4_lp64_fetch_link_map_offsets): New prototype.
8803 * solib-svr4.c: Update copyright year.
8804 (svr4_ilp32_fetch_link_map_offsets)
8805 (svr4_lp64_fetch_link_map_offsets): New function.
8806
f6fe98ef
DJ
88072004-02-20 Daniel Jacobowitz <drow@mvista.com>
8808
8809 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8810 to the partial symbol table.
8811
589ca796
JB
88122004-02-20 J. brobecker <brobecker@gnat.com>
8813
8814 * PROBLEMS: Add description of problem documented under gdb/1560.
8815
2031c21a
MK
88162004-02-20 Mark Kettenis <kettenis@gnu.org>
8817
30b344b1
MK
8818 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8819 comments.
8820 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8821 functions.
8822 (amd64obsd_init_abi): Reorder initializations. Use
8823 amd64obsd_r_reg_offset to initialize the general-purpose register
8824 set details. Set regset_from_core_section.
8825 (_initialize_amd64obsd_tdep): Rename from
8826 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8827 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8828 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8829
2031c21a
MK
8830 * NEWS (New native configurations): Mention OpenBSD/alpha.
8831 * configure.tgt: Add alpha*-*-openbsd*.
8832 * configure.host: Add alpha*-*-openbsd*.
8833 * alphanbsd-tdep.c: Update copyright year.
8834 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8835
42471775
AC
88362004-02-20 Andrew Cagney <cagney@redhat.com>
8837
8838 Fix PR tdep/1372.
8839 * configure.tgt: Delete target "none-*-*".
8840 * configure.host: Delete host "none-*-*".
8841 * config/none/none.mh: Delete file.
8842 * config/none/none.mt: Delete file.
8843 * config/none/xm-none.h: Delete file.
8844 * config/none/tm-none.h: Delete file.
8845 * config/none/nm-none.h: Delete file.
8846
960ccd7d
FF
88472004-02-19 Fred Fish <fnf@redhat.com>
8848
8849 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8850 cache->uses_fp prior to setting it.
8851
5f883edd
FF
88522004-02-19 Fred Fish <fnf@redhat.com>
8853
8854 Fix for PR breakpoint/1558.
8855 * sh-tdep.c (IS_JSR): New macro.
8856 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8857
f98c22d5
JB
88582004-02-19 Jim Blandy <jimb@redhat.com>
8859
8860 * findvar.c (value_from_register): Doc fix.
8861
95051d27
JJ
88622004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8863
8864 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8865 type being greater than sizeof of host's LONGEST. Always use
8866 unpack_long() unless format 'f' chosen.
8867
ccefbec3
EZ
88682004-02-19 Joel Brobecker <brobecker@gnat.com>
8869
8870 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8871
ccefbec3
EZ
8872 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8873 contains a symbol wich is the best, non-exact match for the given
8874 pc. Update comments.
8875
88762004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8877
2ede629f
EZ
8878 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8879 macro, which was part of the now removed Mach 3 port.
8880 * utils.c (request_quit): Ditto.
8881
567ee972
MK
88822004-02-18 Mark Kettenis <kettenis@gnu.org>
8883
8884 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8885 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8886
50cca7bb
MK
88872004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8888
8889 Committed by Mark Kettenis <kettenis@gnu.org>.
8890
8891 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8892 Define.
8893
226361c4
AC
88942004-02-18 Andrew Cagney <cagney@redhat.com>
8895
8896 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8897 CONFIG_INSTALL and CONFIG_UNINSTALL.
8898 * configure: Re-generate.
8899 * interps.h (INTERP_TUI): Define.
8900 * Makefile.in: Update dependencies.
8901 (TUI): New macro.
8902 (tui-main.o): Specify dependencies.
8903 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8904 * tui/tui-main.c: New file.
8905
49cfa46f
MK
89062004-02-18 Mark Kettenis <kettenis@gnu.org>
8907
e2879ccb
MK
8908 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8909 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8910 dependencies.
8911 * configure.host: Add x86_64-*-openbsd*.
8912 * configure.tgt: Add x86_64-*-openbsd*.
8913 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8914
c43f4bec
MK
8915 * tui/tui.c: Don't include <malloc.h>.
8916
09ae75b6
MK
8917 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8918 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8919 amd64nbsd-tdep.c.
8920
49cfa46f 8921 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8922 static. Remove extraneous whitespace.
49cfa46f
MK
8923 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8924 static.
8925
05957fdb
JB
89262004-02-17 Jim Blandy <jimb@redhat.com>
8927
8928 * findvar.c (value_from_register): Doc fix.
8929
d0f54f9d
JB
89302004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8931
8932 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8933
8a1dac83 8934 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8935 CORE_ADDR as type for selectors. Correct types for GNU run time
8936 message lookup function to use double indirection.
8937 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8938 * objc-lang.h (lookup_child_selector): Adapt prototype.
8939
9cbd5950
JB
8940 * s390-nat.c (SUBOFF): New macro.
8941 (supply_gregset, fill_gregset): Use it to handle debugging
8942 of 32-bit exectuables running under a 64-bit kernel.
8943 * s390-tdep.c: Include "solib-svr4.h".
8944 (s390_svr4_fetch_link_map_offset): New function.
8945 (s390x_svr_fetch_link_map_offset): Likewise.
8946 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8947 * Makefile.in (s390-tdep.o): Update dependencies.
8948
a8c99f38
JB
8949 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8950 "frame-unwind.h".
8951 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8952 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8953 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8954 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8955 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8956 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8957 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8958 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8959 (struct frame_extra_info): Remove.
8960 (s390_memset_extra_info): Remove.
f73b1eff
JB
8961 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8962 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8963 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8964 (is_rse): Renamed to ...
8965 (is_rsy): ... this. Support long displacements.
8966 (is_rxe): Renamed to ...
8967 (is_rxy): ... this. Support long displacements.
8968 (compute_x_addr): Support long displacements.
8969 (struct s390_prologue_data): New data type.
8970 (s390_on_stack): Change API to use struct s390_prologue_data.
8971 (s390_store): Reimplement.
8972 (s390_load): New function.
8973 (s390_get_signal_frame_info): Remove.
8974 (s390_get_frame_info): Remove, replace by ...
8975 (s390_analyze_prolog): ... this new function.
8976 (s390_check_function_end): Remove.
8977 (s390_function_start): Remove.
8978 (s390_frameless_function_invokation): Remove.
8979 (s390_is_sigreturn): Remove.
8980 (s390_init_frame_pc_first): Remove.
8981 (s390_init_frame_extra_info): Remove.
8982 (s390_frame_init_saved_regs): Remove.
8983 (s390_frame_saved_pc_nofix): Remove.
8984 (s390_frame_saved_pc): Remove.
8985 (s390_frame_chain): Remove.
8986 (s390_fp_regnum, s390_read_fp): Remove.
8987 (s390_pop_frame_regular, s390_pop_frame): Remove.
8988 (s390_saved_pc_after_call): Remove.
8989 (s390_skip_prologue): Reimplement.
8990 (s390_in_function_epilogue_p): Support long displacements.
8991 (struct s390_unwind_cache): New data structure.
8992 (s390_frame_unwind_cache): New function.
8993 (s390_prologue_frame_unwind_cache): Likewise.
8994 (s390_backchain_frame_unwind_cache): Likewise.
8995 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8996 (s390_frame_unwind): Define.
8997 (s390_frame_sniffer): New function.
8998 (struct s390_pltstub_unwind_cache): New data structure.
8999 (s390_pltstub_frame_unwind_cache): New function.
9000 (s390_pltstub_frame_this_id): Likewise.
9001 (s390_pltstub_frame_prev_register): Likewise.
9002 (s390_pltstub_frame_unwind): Define.
9003 (s390_pltstub_frame_sniffer): New function.
9004 (struct s390_sigtramp_unwind_cache): New data structure.
9005 (s390_sigtramp_frame_unwind_cache): New function.
9006 (s390_sigtramp_frame_this_id): Likewise.
9007 (s390_sigtramp_frame_prev_register): Likewise.
9008 (s390_sigtramp_frame_unwind): Define.
9009 (s390_sigtramp_frame_sniffer): New function.
9010 (s390_frame_base_address, s390_local_base_address): New functions.
9011 (s390_frame_base): Define.
9012 (s390_unwind_pc, s390_unwind_sp): New function.
9013 (s390_push_dummy_call): Use new frame base location.
9014 (s390_unwind_dummy_id): Likewise.
9015 (s390_gdbarch_init): Remove calls to:
9016 set_gdbarch_frameless_function_invocation,
9017 set_gdbarch_deprecated_init_frame_pc,
9018 set_gdbarch_deprecated_frame_chain,
9019 set_gdbarch_deprecated_frame_init_saved_regs,
9020 set_gdbarch_deprecated_pop_frame,
9021 set_gdbarch_deprecated_init_extra_frame_info,
9022 set_gdbarch_deprecated_init_frame_pc_first,
9023 set_gdbarch_deprecated_target_read_fp,
9024 set_gdbarch_deprecated_frame_saved_pc,
9025 set_gdbarch_deprecated_saved_pc_after_call,
9026 set_gdbarch_deprecated_fp_regnum.
9027 Add calls to:
9028 set_gdbarch_in_solib_call_trampoline,
9029 frame_unwind_append_sniffer,
9030 frame_base_set_default,
9031 set_gdbarch_unwind_pc,
9032 set_gdbarch_unwind_sp.
9033 * Makefile.in (s390-tdep.o): Update dependencies.
9034
b0cf273e
JB
9035 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9036 (S390_STACK_FRAME_OVERHEAD): Remove.
9037 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9038 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9039 (s390_promote_integer_argument): Remove.
9040 (s390_cannot_extract_struct_value_address): Remove.
9041 (s390_use_struct_convention, s390_store_struct_return): Remove.
9042 (s390_extract_return_value, s390_store_return_value): Remove.
9043 (s390_return_value_convention, s390_return_value): New functions.
9044 (is_float_singleton): Handle typedefs.
8a1dac83 9045 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9046 Remove, replace by ...
9047 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9048 s390_function_arg_integer): ... these new functions.
9049 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9050 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9051 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9052 Fill in tdep->abi.
9053 Remove calls to:
9054 set_gdbarch_deprecated_store_struct_return,
9055 set_gdbarch_deprecated_extract_return_value,
9056 set_gdbarch_deprecated_store_return_value,
9057 set_gdbarch_use_struct_convention,
9058 set_gdbarch_extract_struct_value_address,
9059 set_gdbarch_deprecated_pc_in_call_dummy,
9060 set_gdbarch_deprecated_push_arguments,
9061 set_gdbarch_deprecated_save_dummy_frame_tos,
9062 set_gdbarch_deprecated_push_return_address,
9063 set_gdbarch_deprecated_sizeof_call_dummy_words,
9064 set_gdbarch_deprecated_call_dummy_words,
9065 set_gdbarch_deprecated_dummy_write_sp.
9066 Add calls to:
9067 set_gdbarch_push_dummy_call,
9068 set_gdbarch_unwind_dummy_id,
9069 set_gdbarch_return_value.
8a1dac83 9070
e1457d83
JB
9071 * config/s390/nm-linux.h: Update comments.
9072 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9073 (STOPPED_BY_WATCHPOINT): Redefine.
9074 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9075 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9076 (s390_stopped_by_watchpoint): Likewise.
9077 (watch_area_cnt): Remove.
9078 * s390-nat.c: Update comments.
9079 (watch_area): Remove typedef.
9080 Global replace watch_area by struct watch_area.
9081 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9082 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9083 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9084 (s390_fix_watch_points): Remove pid argument,
9085 use s390_inferior_tid. Recompute area spanned by watchpoints.
9086 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9087 argument. Reimplement.
9088
d0f54f9d
JB
9089 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9090 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9091 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9092 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9093 core-regset.o.
9094 * config/s390/s390x.mt: Remove.
9095 * config/s390/tm-s390.h: Remove.
9096 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9097 (TARGET_ELF64): Remove.
9098 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9099 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9100 s390*-*-* case; always set gdb_target to s390.
9101 * regformats/reg-s390.dat: Remove control registers.
9102 * regformats/reg-s390x.dat: Likewise.
9103 * s390-tdep.h: New file.
8a1dac83 9104 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9105 Include "inferior.h" and "s390-tdep.h".
9106 Remove private definition of offsetof.
9107 (s390_register_u_addr): Remove.
9108 (regmap_gregset, regmap_fpregset): Define.
9109 (supply_gregset, fill_gregset): Reimplement.
9110 (supply_fpregset, fill_fpregset): Likewise.
9111 (s390_inferior_tid): New function.
9112 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9113 (fetch_inferior_registers, store_inferior_registers): Likewise.
9114 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9115 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9116 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9117 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9118 (struct gdbarch_tdep): Define.
9119 (struct s390_register_info): Define.
9120 (s390_register_info): New variable.
9121 (s390_register_name): Reimplement.
9122 (s390_register_type): New function.
9123 (s390_register_raw_size, s390x_register_raw_size): Remove.
9124 (s390_cannot_fetch_register): Remove.
9125 (s390_register_byte): Remove.
9126 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9127 (s390_dwarf_regmap): New variable.
9128 (s390_dwarf_reg_to_regnum): New function.
9129 (s390_stab_reg_to_regnum): Remove.
9130 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9131 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9132 (s390_convert_register_p): Likewise.
9133 (s390_register_to_value, s390_value_to_register): Likewise.
9134 (s390_register_reggroup_p): Likewise.
9135 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9136 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9137 (s390_supply_regset, s390_regset_from_core_section): New functions.
9138 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9139 (S390_FPR_SIZE): Likewise.
9140 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9141 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9142 (S390_NUM_GPRS): Move here from tm-s390.h.
9143 (S390_NUM_FPRS): Likewise.
9144 (s390_in_function_epilogue_p): New function.
9145 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9146 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9147 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9148 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9149 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9150 Remove calls to:
9151 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9152 set_gdbarch_deprecated_max_register_virtual_size,
9153 set_gdbarch_deprecated_register_byte,
d0f54f9d 9154 set_gdbarch_cannot_fetch_register,
8a1dac83 9155 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9156 set_gdbarch_deprecated_register_size,
9157 set_gdbarch_deprecated_register_raw_size,
9158 set_gdbarch_deprecated_register_virtual_size,
9159 set_gdbarch_deprecated_register_virtual_type,
9160 set_gdbarch_deprecated_register_bytes.
9161 Add calls to:
9162 set_gdbarch_num_pseudo_regs,
9163 set_gdbarch_register_type,
9164 set_gdbarch_convert_register_p,
9165 set_gdbarch_register_to_value,
9166 set_gdbarch_value_to_register,
9167 set_gdbarch_register_reggroup_p,
9168 set_gdbarch_regset_from_core_section,
9169 set_gdbarch_pseudo_register_read,
9170 set_gdbarch_pseudo_register_write,
9171 set_gdbarch_in_function_epilogue_p.
9172 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9173 (s390_tdep_h): New variable.
9174
8cfe231d
JB
91752004-02-17 Jim Blandy <jimb@redhat.com>
9176
4589a601
JB
9177 * findvar.c (value_from_register): If the type has no length, just
9178 return an acceptable value --- don't report an internal error.
9179
8cfe231d
JB
9180 * stabsread.c (read_type): If we find any type numbers that are
9181 forward references, complain if the references aren't resolved by
9182 the time we're finished reading.
9183 (cleanup_undefined_types): Make error message more appropriate for
9184 a complaint.
9185
5bf0017e
EZ
91862004-02-17 Elena Zannoni <ezannoni@redhat.com>
9187
9d62932d
EZ
9188 * Makefile.in (defs_h): Remove dependency on progress_h.
9189 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9190 progress.h.
9191 * main.c (captured_main): Delete use of START_PROGRESS and
9192 END_PROGRESS.
9193
91942004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9195
5bf0017e
EZ
9196 * objfiles.c (terminate_minimal_symbol_table): Add back
9197 initialization of MSYMBOL_TYPE.
9198
9fc9f5e2
AC
91992004-02-17 David Mosberger <davidm@hpl.hp.com>
9200
9201 Committed by Andrew Cagney.
9202 * Makefile.in (ia64_tdep_h): New macro.
9203 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9204 (ia64-tdep.o): Likewise.
9205 * ia64-tdep.h: New file.
9206 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9207 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9208 (ia64_aix_sigcontext_register_address): Likewise.
9209 (ia64_linux_getunwind_table): Delete declaration.
9210 * ia64-linux-tdep.c: Likewise.
9211
76cd2bd9
CV
92122004-02-17 Corinna Vinschen <vinschen@redhat.com>
9213
9214 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9215 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9216 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9217
634aa483
AC
92182004-02-17 Andrew Cagney <cagney@redhat.com>
9219
9220 * symtab.c (skip_prologue_using_sal): New function.
9221 * symtab.h (skip_prologue_using_sal): Declare.
9222 * frv-tdep.c: Include "symtab.h".
9223 (skip_prologue_using_sal): Delete function.
9224 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9225 * rs6000-tdep.c (refine_prologue_limit): Mention
9226 skip_prologue_using_sal.
9227 * ia64-tdep.c (refine_prologue_limit): Ditto.
9228 * Makefile.in: Update dependencies.
9229
92302004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9231
39ce7b3f
AC
9232 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9233 START_INFERIOR_TRAPS_EXPECTED.
9234 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9235 START_INFERIOR_TRAPS_EXPECTED.
9236 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9237 Delete macro.
9238 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9239 macro, moved to "nm-osf.h". Update copyright.
9240 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9241 update copyright.
9242
19772a2c
AC
9243 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9244 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9245 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9246 frameless_look_for_prologue.
9247 * frame.h (legacy_frameless_look_for_prologue): Rename
9248 frameless_look_for_prologue.
9249 * gdbarch.h, gdbarch.c: Re-generate.
9250 * sh64-tdep.c (sh64_gdbarch_init): Update.
9251 * sh-tdep.c (sh_gdbarch_init): Update.
9252 * s390-tdep.c (s390_gdbarch_init): Update.
9253 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9254 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9255 * m68k-tdep.c (m68k_gdbarch_init): Update.
9256 (delta68_frame_args_address): Update.
9257 * m32r-tdep.c (m32r_gdbarch_init): Update.
9258 * hppa-tdep.c (hppa_gdbarch_init): Update.
9259 * h8300-tdep.c (h8300_gdbarch_init): Update.
9260 * frv-tdep.c (frv_gdbarch_init): Update.
9261 (frv_frameless_function_invocation): Update.
9262 * cris-tdep.c (cris_gdbarch_init): Update.
9263 (cris_frameless_function_invocation): Update.
9264 * avr-tdep.c (avr_gdbarch_init): Update.
9265 * arm-tdep.c (arm_gdbarch_init): Update.
9266 * stack.c (frame_info): Update, call predicate.
9267 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9268 * frame.c (legacy_get_prev_frame): Update, call predicate..
9269 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9270 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9271 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9272 invocation.
9273 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9274 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9275 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9276
9277 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9278 function.
9279
7dcaac91
DJ
92802004-02-16 Daniel Jacobowitz <drow@mvista.com>
9281
9282 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9283 initializations.
9284
88289b6e
AC
92852004-02-16 Andrew Cagney <cagney@redhat.com>
9286
9287 * tui/tui-windata.c: Include "gdb_string.h".
9288 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9289 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9290 * Makefile.in: Update dependencies.
9291
9f976b41
DJ
92922004-02-16 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9295 * infrun.c: Include "gdb_assert.h".
9296 (singlestep_ptid, saved_singlestep_ptid)
9297 (stepping_past_singlestep_breakpoint): New variables.
9298 (resume): Set singlestep_ptid. Check for singlestep thread
9299 hop.
9300 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9301 (handle_inferior_event): Handle singlestep thread hop.
9302
c324d747
AC
93032004-02-16 Andrew Cagney <cagney@redhat.com>
9304
f090b9b1
AC
9305 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9306 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9307 (dwarf2_frame_init_reg): Ditto.
9308
fd33e6cb
AC
9309 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9310 suggested by Joshua Neuheisel
9311
c324d747
AC
9312 * configure.in: Always check for curses, including pdcurses.
9313 Warn, instead of error, when no curses are found. Enable TUI when
9314 curses is available.
9315 * configure: Re-generate.
9316
b66ba949
CV
93172004-02-16 Corinna Vinschen <vinschen@redhat.com>
9318
9319 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9320 sh_sh4_register_convert_to_virtual.
9321 (sh_register_convert_to_raw): Rename from
9322 sh_sh4_register_convert_to_raw.
9323 (sh_pseudo_register_read): Accomodate above name change.
9324 (sh_pseudo_register_write): Ditto.
9325
b58cbbf2
CV
93262004-02-16 Corinna Vinschen <vinschen@redhat.com>
9327
9328 * sh-tdep.c (sh_generic_register_name): Remove.
9329 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9330
5929a910
AC
93312004-02-15 Andrew Cagney <cagney@redhat.com>
9332
4566dfcf
AC
9333 * configure.in (build_warnings): Add -Wunused-function.
9334 * configure: Re-generate.
9335
db11ed55
AC
9336 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9337 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9338
46ac7a5d
AC
9339 * procfs.c (procfs_init_inferior): Assume that
9340 START_INFERIOR_TRAPS_EXPECTED is defined.
9341 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9342 * config/ns32k/tm-nbsd.h: Delete file,
9343 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9344
ba801595
AC
9345 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9346 * config/vax/tm-vax.h: Delete file.
9347
5929a910
AC
9348 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9349 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9350 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9351 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9352 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9353 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9354 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9355
8f22cb90
MK
93562004-02-15 Mark Kettenis <kettenis@gnu.org>
9357
9358 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9359 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9360 (struct dwarf2_frame_ops): New.
9361 (dwarf2_frame_default_init_reg): New function, based on
9362 dwarf2_frame_init_reg.
9363 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9364 (dwarf2_frame_init_reg): Call architecture-specific function.
9365 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9366 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9367 instead of dwarf2_frame_data.
9368 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9369 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9370
8132723e
AC
93712004-02-15 Andrew Cagney <cagney@redhat.com>
9372
046a4708
AC
9373 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9374 register_gdbarch_swap.
9375 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9376 * f-lang.c (_initialize_f_language): Update, use
9377 DEPRECATED_REGISTER_GDBARCH_SWAP.
9378 * remote.c (_initialize_remote): Ditto.
9379 * regcache.c (_initialize_regcache): Ditto.
9380 * parse.c (_initialize_parse): Ditto.
9381 * infrun.c (_initialize_infrun): Ditto.
9382 * mi/mi-main.c (_initialize_mi_main): Ditto.
9383 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9384
549c1eea
AC
9385 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9386 poking .cacheable directly.
9387 * symfile.c (symfile_bfd_open): Ditto.
9388
0c0b39de
AC
9389 * Makefile.in: Update all dependencies.
9390
8132723e
AC
9391 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9392 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9393 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9394 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9395 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9396
b9d26eb9
AC
93972004-02-14 Andrew Cagney <cagney@redhat.com>
9398
8e1f669a
AC
9399 * arch-utils.c (legacy_convert_register_p): Check
9400 DEPRECATED_REGISTER_CONVERTIBLE_P.
9401 * findvar.c (value_of_register): Ditto.
9402
cd0bfa36
AC
9403 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9404 * gdbarch.h, gdbarch.c: Re-generate.
9405 * arch-utils.c (deprecated_register_convertible_not): Delete.
9406 * arch-utils.h (deprecated_register_convertible_not): Delete.
9407 * mi/mi-main.c (get_register): Update. Update copyright.
9408 * infcmd.c (default_print_registers_info): Update.
9409
b9d26eb9
AC
9410 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9411 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9412 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9413 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9414 * frame.c (deprecated_get_next_frame_hack): Delete function.
9415 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9416 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9417 Update.
9418 * infcall.c (call_function_by_hand): Update.
9419
9ab9195f
EZ
94202004-02-14 Elena Zannoni <ezannoni@redhat.com>
9421
9422 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9423 from here...
9ab9195f
EZ
9424 * objfiles.c (init_entry_point_info, entry_point_address):..to
9425 here.
9426 * symfile.h (init_entry_point_info, entry_point_address): Remove
9427 prototypes.
9428 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9429 prototypes.
9ab9195f
EZ
9430 * cris-tdep.c: Remove include of symfile.h. Add include of
9431 objfiles.h.
9432 * infcall.c: Ditto.
9433 * mcore-tdep.c: Ditto.
9434 * mn10300-tdep.c: Ditto.
9435 * sh64-tdep.c: Ditto.
9436 * v850-tdep.c: Ditto.
9437 * arm-tdep.c: Remove include of symfile.h.
9438 * blockframe.c: Ditto.
9439 * coffread.c: Ditto.
9440 * dbxread.c: Ditto.
9441 * dwarf2read.c: Ditto.
9442 * dwarfread.c: Ditto.
8a1dac83 9443 * frv-tdep.c: Ditto.
9ab9195f
EZ
9444 * ia64-tdep.c: Ditto.
9445 * mdebugread.c: Ditto.
9446 * mipsread.c: Ditto.
8a1dac83 9447 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9448 * s390-tdep.c: Ditto.
9449 * sh-tdep.c: Ditto.
8a1dac83 9450 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9451 * gdbarch.sh: Remove include of symfile.h.
9452 * gdbarch.c: Regenerate.
9453 * solib-irix.c (enable_break): Use entry_point_address().
9454 Add comment about include file.
9455 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9456 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9457 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9458 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9459 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9460 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9461
c4c5b7ba
AC
94622004-02-13 Andrew Cagney <cagney@redhat.com>
9463
9464 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9465 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9466 copyright.
9467 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9468
3e7879de
FF
94692004-02-12 Fred Fish <fnf@redhat.com>
9470
9471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9472 set_gdbarch_store_return_value.
9473
6a7760b6
AC
94742004-02-12 Andrew Cagney <cagney@redhat.com>
9475
9476 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9477 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9478 (interrupt_query): Ditto.
9479 (ofunc): Delete unused variable.
9480 * cris-tdep.c (cris_abi): Delete unused function.
9481 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9482 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9483 (cris_get_asr_quick_shift_steps): Ditto.
9484 (cris_skip_prologue_frameless_p): Ditto.
9485 * arm-tdep.c (arm_push_return_address): Delete unused function.
9486 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9487 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9488 * s390-tdep.c (s390_function_start): Delete unused function.
9489
31687c3c
AC
94902004-02-12 Andrew Cagney <cagney@redhat.com>
9491
9492 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9493 gdbarch.h, gdbarch.c: Re-generate.
9494 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9495 to generic_prologue_frameless_p.
9496 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9497 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9498
6de918a6
DJ
94992004-02-11 Daniel Jacobowitz <drow@mvista.com>
9500
9501 * mips-linux-tdep.c: Include "frame.h".
9502 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9503 (mips_linux_skip_resolver): New functions.
9504 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9505 and set_gdbarch_in_solib_call_trampoline.
9506 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9507 to after set_gdbarch_in_solib_return_trampoline. Only set the
9508 solib hooks to mips16 functions if the OS ABI is unknown.
9509 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9510 including "config/tm-linux.h".
9511 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9512 * Makefile.in (mips-linux-tdep.o): Update.
9513
87b3ede8
DC
95142004-02-11 David Carlton <carlton@kealia.com>
9515
9516 * linespec.c (decode_compound): Only look for a class symbol when
9517 considering all but the rightmost component.
9518
5979bc46
AC
95192004-02-11 Andrew Cagney <cagney@redhat.com>
9520
9521 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9522 abi code are are separatly grouped.
9523
5867a2fb
AC
95242004-02-11 Andrew Cagney <cagney@redhat.com>
9525
9526 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9527 * gdbarch.h, gdbarch.c: Re-generate.
9528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9529 * v850-tdep.c (v850_gdbarch_init): Update.
9530 * sh64-tdep.c (sh64_gdbarch_init): Update.
9531 * sh-tdep.c (sh_gdbarch_init): Update.
9532 * s390-tdep.c (s390_gdbarch_init): Update.
9533 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9534 * mips-tdep.c (mips_gdbarch_init): Update.
9535 * mcore-tdep.c (mcore_gdbarch_init): Update.
9536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9537 * m32r-tdep.c (m32r_gdbarch_init): Update.
9538 * ia64-tdep.c (ia64_gdbarch_init): Update.
9539 * hppa-tdep.c (hppa_gdbarch_init): Update.
9540 * h8300-tdep.c (h8300_gdbarch_init): Update.
9541 * frv-tdep.c (frv_gdbarch_init): Update.
9542 * d10v-tdep.c (d10v_gdbarch_init): Update.
9543 * cris-tdep.c (cris_gdbarch_init): Update.
9544 * avr-tdep.c (avr_gdbarch_init): Update.
9545 * arm-tdep.c (arm_gdbarch_init): Update.
9546 * alpha-tdep.c (alpha_gdbarch_init): Update.
9547
026a72f8
CV
95482004-02-11 Corinna Vinschen <vinschen@redhat.com>
9549
9550 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9551 comma.
9552 (sh_sh4al_dsp_register_name): Ditto.
9553
3903d437
AC
95542004-02-10 Andrew Cagney <cagney@redhat.com>
9555
9556 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9557 (mips_init_frame_pc_first): Delete function.
9558 (mips_frame_saved_pc): Delete function.
9559 (mips_frame_chain): Delete function.
9560 (mips_init_extra_frame_info): Delete function.
9561 (mips_xfer_register): Delete unused variable "reg".
9562 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9563 (mips_n32n64_return_value): Delete unused variable "reg".
9564 (mips_n32n64_return_value): Delete unused variable "pos".
9565 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9566 (mips_o32_return_value): Delete unused variable "pos".
9567 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9568 (mips_print_fp_register): Delete unused variable "namelen"
9569 (mips_print_fp_register): Delete unused variable "flt2"
9570 (get_frame_pointer): Delete function.
9571 (cached_proc_desc): Delete static variable.
9572 (mips_pop_frame): Delete function.
9573 (mips_find_saved_regs): Delete function.
9574 (mips_get_saved_register): Delete function.
9575 (mips_saved_pc_after_call): Delete function.
9576 (SIGFRAME_BASE): Delete macro.
9577 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9578 (SIGFRAME_PC_OFF): Delete macro.
9579 (SIGFRAME_REGSAVE_OFF): Delete macro.
9580 (mips_dump_tdep): Do not print deleted macro definitions.
9581
b9fb98bd
AC
95822004-02-10 Andrew Cagney <cagney@redhat.com>
9583
9584 * Makefile.in (SFILES): Remove explictly listed tui files.
9585 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9586
78ced177 95872004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9588
78ced177
JJ
9589 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9590 to use paddr functions to format ia64 addresses and long values.
9591 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9592 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9593 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9594 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9595 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9596
6a83354a
AC
95972004-02-10 Andrew Cagney <cagney@redhat.com>
9598
9599 * defs.h: Do not include "tui.h".
9600 * gdb_curses.h: New file.
9601 * tui/tui-hooks.h: New file.
9602 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9603 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9604 (tui_initialize_io): Delete declaration.
9605 (tui_initialize_readline: Delete redundant declaration.
9606 (struct tui_point): Delete definition.
9607 * tui/tui-data.h (struct tui_point): Define.
9608 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9609 * utils.c: Include "tui/tui.h".
9610 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9611 * printcmd.c [TUI]: Include "tui/tui.h".
9612 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9613 * tui/tui-command.c: Include "gdb_curses.h".
9614 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9615 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9616 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9617 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9618 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9619 * Makefile.in: Update all dependencies.
9620 (tui_hooks_h, gdb_curses_h): Define.
9621 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9622
997470ef
EZ
96232004-02-10 Elena Zannoni <ezannoni@redhat.com>
9624
9625 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9626 auxf2. Add comments about some other rarely used fields.
9627
4ff2cc4d
AC
96282004-02-10 Andrew Cagney <cagney@redhat.com>
9629
9630 * Makefile.in (init.c): Fix script removing duplicates. Problem
9631 reported by Peter Schauer.
9632
1ab21617
EZ
96332004-02-09 Elena Zannoni <ezannoni@redhat.com>
9634
9635 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9636 obstack_specify_allocation.
9637 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9638 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9639 (allocate_rt_common_objfile): Ditto.
9640 * symfile.c (reread_symbols): Ditto.
9641 * gdb_obstack.h: Add comment.
9642
17763fd9
EZ
96432004-02-09 Elena Zannoni <ezannoni@redhat.com>
9644
9645 * linespec.c (decode_line_1, locate_first_half)
9646 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9647 commented out code.
9648
ec5cdd75
DJ
96492004-02-09 Daniel Jacobowitz <drow@mvista.com>
9650
9651 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9652 obstack_free.
9653
43b54b88
AC
96542004-02-09 Andrew Cagney <cagney@redhat.com>
9655
9656 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9657 fails, try find_pc_section. Fix PR c++/1267.
9658 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9659 instead of find_pc_mapped_section.
9660 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9661 not default to the section containing PC. Fix PR symtab/1519.
9662
edfae063
AC
96632004-02-09 Andrew Cagney <cagney@redhat.com>
9664
9665 * Makefile.in (mips-tdep.o): Update dependencies.
9666 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9667 "trad-frame.h".
9668 (mips_unwind_pc): Return the pseudo PC register.
9669 (mips_unwind_dummy_id): New function.
9670 (mips16_fetch_instruction): New function.
9671 (mips32_fetch_instruction): New function.
9672 (struct mips_frame_cache): Define.
9673 (mips_mdebug_frame_cache): New function.
9674 (mips_mdebug_frame_this_id): New function.
9675 (mips_mdebug_frame_prev_register): New function.
9676 (mips_mdebug_frame_unwind): Define.
9677 (mips_mdebug_frame_sniffer): New function.
9678 (mips_mdebug_frame_base_address): New function.
9679 (mips_mdebug_frame_base): Define.
9680 (mips_mdebug_frame_base_sniffer): New function.
9681 (mips_gdbarch_init): Append unwind and base sniffers. Set
9682 unwind_dummy_id.
9683
defc864c
AC
96842004-02-08 Andrew Cagney <cagney@redhat.com>
9685
6764ddad
AC
9686 * frame.c: Print both the register number and name.
9687
defc864c
AC
9688 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9689 and a sed into a single sed. Make .c and .o patterns more robust.
9690 (OBS): Delete.
9691 (INIT_FILES): Replace OBS with COMMON_OBS.
9692 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9693
645d6d10
MK
96942004-02-08 Mark Kettenis <kettenis@gnu.org>
9695
9696 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9697 the PT_WCOOKIE request.
9698
23e3c3fc
AC
96992004-02-08 Andrew Cagney <cagney@redhat.com>
9700
58dfe9ff
AC
9701 * mips-tdep.c (mips_unwind_pc): New function.
9702 (mips_gdbarch_init): Set mips_unwind_pc.
9703
1152e35e
AC
9704 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9705 (get_frame_id): Allow the UNKNOWN_FRAME.
9706 (frame_register_unwind, get_frame_type): Ditto.
9707
31b75dbf
AC
9708 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9709 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9710 unwind_dummy_id indicates a legacy frame.
9711
3483b318
AC
9712 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9713 * configure: Re-generate.
9714
23e3c3fc
AC
9715 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9716 methods.
9717
33f8ca73
AC
97182004-02-08 Andrew Cagney <cagney@redhat.com>
9719
9720 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9721 makefile macro.
9722 * configure: Re-generate.
9723 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9724 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9725 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9726 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9727 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9728 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9729 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9730 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9731 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9732 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9733
6ba8e26f 97342004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9735
20d286a5
AC
9736 * Makefile.in: Update all dependencies.
9737
d836ee13
AC
9738 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9739 * configure: Re-generate.
9740 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9741 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9742 (COMMON_OBS): Add "main.o" and "annotate.o".
9743 (ANNOTATE_OBS): Delete.
9744 (OBS): Remove ANNOTATE_OBS.
9745 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9746 CONFIG_INITS.
9747 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9748 against CONFIG_OBS and "main.o".
9749 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9750 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9751
d02c80cd
AC
9752 * tui/tui-command.c: Include "gdb_string.h", delete register
9753 attribute, use ISO-C function signatures.
9754 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9755 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9756 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9757 * tui/tui.c: Ditto.
6ba8e26f
AC
9758
9759 * tui/tui-command.c: Change variable and function names to lower
9760 case.
9761 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9762 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9763 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9764 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9765 * tui/tui-winsource.c, tui/tui.c: Ditto.
9766
4a146b47
EZ
97672004-02-07 Elena Zannoni <ezannoni@redhat.com>
9768
9769 * buildsym.c (free_pending_blocks, finish_block)
9770 (record_pending_block, make_blockvector, end_symtab): Replace
9771 symbol_obstack with objfile_obstack.
8a1dac83 9772 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9773 (coff_read_enum_type): Ditto.
8a1dac83 9774 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9775 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9776 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9777 (dwarf2_symbol_mark_computed): Ditto.
9778 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9779 * elfread.c (elf_symtab_read): Ditto.
9780 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9781 (hpread_read_enum_type, hpread_read_function_type)
9782 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9783 Ditto.
8a1dac83 9784 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9785 (java_link_class_type): Ditto.
8a1dac83 9786 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9787 (new_symbol): Ditto.
9788 * minsyms.c (install_minimal_symbols): Ditto.
9789 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9790 (terminate_minimal_symbol_table): Replace symbol_obstack with
9791 objfile_obstack.
9792 (free_objfile): Remove freeing of symbol_obstack.
9793 * objfiles.h: Remove symbol_obstack field.
9794 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9795 objfile_obstack.
9796 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9797 symbol_obstack.
9798 (solib_add_common_symbols): Replace symbol_obstack with
9799 objfile_obstack.
9800 * somsolib.c (som_solib_add): Ditto.
9801 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9802 (common_block_start, common_block_end): Ditto.
9803 * symfile.c (reread_symbols): Remove freeing and init of
9804 symbol_obstack.
9805 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9806 * symfile.h: Update comment.
9807 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9808 stats printing.
9809 * symtab.c (symbol_set_names): Replace symbol_obstack with
9810 objfile_obstack.
9811 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9812 Update comments.
9813 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9814 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9815 objfile_obstack.
9816
6d012f14
AC
98172004-02-07 Andrew Cagney <cagney@redhat.com>
9818
9819 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9820 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9821 fields and variables.
9822 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9823 (m_beInvisible): Delete macro.
9824 * tui/tui-data.h: Fix case case fields and variables.
9825 (m_genWinPtrIsNull): Delete macro.
9826 (tui_win_list): Rename winList.
9827 (TUI_SRC_WIN): Rename srcWin.
9828 (TUI_DISASM_WIN): Rename disassemWin.
9829 (TUI_DATA_WIN): Rename dataWin.
9830 (TUI_CMD_WIN): Rename cmdWin.
9831 (m_genWinPtrNotNull): Delete macro.
9832 (m_winPtrIsNull): Delete macro.
9833 (m_winPtrNotNull): Delete macro.
9834 (tui_win_is_source_type): Replace m_winIsSourceType
9835 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9836 (tui_win_has_locator): Replace m_hasLocator.
9837 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9838 m_setWinHighlightOff.
9839 * tui/tui-data.c: Update references.
9840 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9841 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9842 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9843 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9844 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9845 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9846 * tui/tui-winsource.c, tui/tui.c: Ditto.
9847
7d34766b
MK
98482004-02-07 Mark Kettenis <kettenis@gnu.org>
9849
1c800673
MK
9850 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9851 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9852 StackGhost.
9853
7d34766b
MK
9854 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9855 variable `i6' to `i7'.
9856 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9857
22940a24
AC
98582004-02-07 Andrew Cagney <cagney@redhat.com>
9859
9860 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9861 (TuiPoint, TuiPointPtr): Ditto.
9862 (TuiStatus, TuiStatusPtr): Ditto.
9863 (TuiWinType, TuiWinTypePtr): Ditto.
9864 (struct tui_point): Rename _TuiPoint.
9865 (tui_get_low_disassembly_address): Rename
9866 tuiGetLowDisassemblyAddress.
9867 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9868 (tuiFree): Delete declaration.
9869 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9870 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9871 * tui/tui.c (tuiFree): Delete function.
9872 * cli/cli-cmds.c (disassemble_command): Update references.
9873 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9874 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9875 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9876 * tui/tui-winsource.c: Ditto.
9877
8b92e4d5
EZ
98782004-02-07 Elena Zannoni <ezannoni@redhat.com>
9879
9880 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9881 coffstab_build_psymtabs, elfstab_build_psymtabs)
9882 (stabsect_build_psymtabs): Replace psymbol_obstack with
9883 objfile_obstack.
9884 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9885 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9886 Ditto.
9887 * dwarfread.c (scan_compilation_units): Ditto.
9888 * elfread.c (elfstab_offset_sections): Ditto.
9889 * hppa-tdep.c (read_unwind_info): Ditto.
9890 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9891 (hpread_end_psymtab): Ditto.
9892 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9893 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9894 Ditto.
9895 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9896 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9897 (build_objfile_section_table): Ditto.
9898 (allocate_objfile): Remove init of psymbol_obstack.
9899 (free_objfile): Remove freeing of psymbol_obstack.
9900 * objfiles.h (struct objfile): Remove field
9901 psymbol_obstack. Update comments.
9902 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9903 psymbol_obstack with objfile_obstack.
9904 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9905 psymbol_obstack.
9906 * somread.c (som_symfile_offsets, init_import_symbols)
9907 (init_export_symbols): Replace psymbol_obstack with
9908 objfile_obstack.
9909 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9910 * symfile.c (default_symfile_offsets, syms_from_objfile)
9911 (reread_symbols): Remove freeing and init of psymbol_obstack.
9912 (cashier_psymtab): Update comment.
9913 * symmisc.c (print_objfile_statistics): Don't report stats for
9914 psymbol obstack.
9915 * symtab.h (struct general_symbol_info, struct partial_symtab):
9916 Update comments.
9917 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9918 (xcoff_symfile_offsets): Replace psymbol_obstack with
9919 objfile_obstack.
9920
b99607ea
EZ
99212004-02-07 Elena Zannoni <ezannoni@redhat.com>
9922
9923 * objfiles.h (struct objfile): Add objfile_obstack field.
9924 Remove type_obstack field.
9925
9926 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9927 read_structure_scope read_enumeration, new_symbol): Replace
9928 type_obstack with objfile_obstack.
9929 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9930 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9931 (lookup_fundamental_type): Ditto.
9932 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9933 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9934 (hpread_read_doc_function_type, hpread_read_struct_type)
9935 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9936 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9937 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9938 (java_link_class_type): Ditto.
9939 * mdebugread.c (parse_type): Ditto.
9940 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9941 * solib-sunos.c (solib_add_common_symbols): Ditto.
9942 * stabsread.c (define_symbol, read_type, read_member_functions,
9943 read_cpp_abbrev, read_one_struct_field): Ditto.
9944 * symfile.c (reread_symbols): Ditto.
9945 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9946
2a8854a7
AC
99472004-02-07 Andrew Cagney <cagney@redhat.com>
9948
9949 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9950 (tui_exec_info_content): Rename TuiExecInfoContent.
9951 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9952 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9953 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9954 (TuiList, TuiListPtr): Ditto.
9955 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9956 (TuiDataType, TuiDataTypePtr): Ditto.
9957 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9958 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9959 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9960 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9961 (TuiDataElement, TuiDataElementPtr): Ditto.
9962 (TuiWinElement, TuiWinElementPtr): Ditto.
9963 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9964 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9965 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9966 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9967 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9968 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9969 * tui/tui-command.c, tui/tui-data.c: Update references.
9970 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9971 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9972 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9973 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9974
05cbe71a
MK
99752004-02-07 Mark Kettenis <kettenis@gnu.org>
9976
9977 * dwarf2-frame.h: Update copyright.
9978 (enum dwarf2_frame_reg_rule): New.
9979 (struct dwarf2_frame_state_reg): New.
9980 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9981 * dwarf2-frame.c: Update copyright.
9982 (enum dwarf2_reg_rule): Remove.
9983 (struct dwarf2_frame_state): Remove defenition of `struct
9984 dwarf2_frame_state_reg'.
9985 (read_reg): Call get_frame_arch to get the architecture instead of
9986 using CURRENT_GDBARCH.
9987 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9988 DWARF2_FRAME_.
9989 (dwarf2_frame_init_reg): New function.
9990 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9991 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9992 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9993 tags with DWARF2_FRAME_.
9994 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9995 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9996 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9997
ec7d9e56
AC
99982004-02-06 Andrew Cagney <cagney@redhat.com>
9999
dd1abb8c
AC
10000 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10001 (enum tui_data_type): Rename _TuiDataType.
10002 (struct tui_layout_def): Rename _TuiLayoutDef.
10003 (struct tui_source_element): Rename _TuiSourceElement.
10004 (struct tui_data_element): Rename _TuiDataElement.
10005 (struct tui_command_element): Rename _TuiCommandElement.
10006 (struct tui_locator_element): Rename _TuiLocatorElement.
10007 (union tui_which_element): Define.
10008 (struct tui_win_element): Rename _TuiWinElement.
10009 (struct tui_data_info): Rename _TuiDataInfo.
10010 (struct tui_source_info): Rename _TuiSourceInfo.
10011 (struct tui_command_info): Rename _TuiCommandInfo.
10012 (tui_initialize_static_data): Rename initializeStaticData.
10013 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10014 (tui_alloc_win_info): Rename allocWinInfo.
10015 (tui_init_generic_part): Rename initGenericPart.
10016 (tui_init_win_info): Rename initWinInfo.
10017 (tui_alloc_content): Rename allocContent.
10018 (tui_add_content_elements): Rename addContentElements.
10019 (tui_init_content_element): Rename initContentElement.
10020 (tui_free_window): Rename freeWindow.
10021 (tui_free_win_content): Rename freeWinContent.
10022 (tui_free_data_content): Rename freeDataContent.
10023 (tui_free_all_source_wins_content): Rename
10024 freeAllSourceWinsContent.
10025 (tui_del_window): Rename tuiDelWindow.
10026 (tui_del_data_windows): Rename tuiDelDataWindows.
10027 (tui_partial_win_by_name): Rename partialWinByName.
10028 (tui_win_name): Rename winName.
10029 (tui_current_layout): Rename currentLayout.
10030 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10031 (tui_term_height): Rename termHeight.
10032 (tui_set_term_height_to): Rename setTermHeightTo.
10033 (tui_term_width): Rename termWidth.
10034 (tui_set_term_width_to): Rename setTermWidthTo.
10035 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10036 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10037 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10038 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10039 (tui_source_windows): Rename sourceWindows.
10040 (tui_clear_source_windows): Rename clearSourceWindows.
10041 (tui_clear_source_windows_detail): Rename
10042 clearSourceWindowsDetail.
10043 (tui_clear_win_detail): Rename clearWinDetail.
10044 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10045 (tui_default_tab_len): Rename tuiDefaultTabLen.
10046 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10047 (tui_win_with_focus): Rename tuiWinWithFocus.
10048 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10049 (tui_layout_def): Rename tuiLayoutDef.
10050 (tui_win_resized): Rename tuiWinResized.
10051 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10052 (tui_next_win): Rename tuiNextWin.
10053 (tui_prev_win): Rename tuiPrevWin.
10054 (tui_add_to_source_windows): Rename addToSourceWindows.
10055 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10056 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10057 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10058 * tui/tui.c, tui/tui-data.c: Ditto.
10059 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10060 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10061
a358af15
AC
10062 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10063 (struct symtab): Declare.
10064 (tui_set_source_content): Rename tuiSetSourceContent.
10065 (tui_show_symtab_source): Rename tuiShowSource.
10066 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10067 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10068 * tui/tui-source.c: Update copyright. Update references.
10069 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10070 * tui/tui-stack.c: Update references.
10071
a21fcd8f
AC
10072 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10073 (struct tui_win_info): Declare.
10074 (tui_scroll_forward): Rename tuiScrollForward.
10075 (tui_scroll_backward): Rename tuiScrollBackward.
10076 (tui_scroll_left): Rename tuiScrollLeft.
10077 (tui_scroll_right): Rename tuiScrollRight.
10078 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10079 (tui_resize_all): Rename tuiResizeAll.
10080 (tui_refresh_all_win): Rename tuiRefreshAll.
10081 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10082 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10083 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10084 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10085
edae1ccf
AC
10086 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10087 (tui_erase_data_content): Rename tuiEraseDataContent.
10088 (tui_display_all_data): Rename tuiDisplayAllData.
10089 (tui_check_data_values): Rename tuiCheckDataValues.
10090 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10091 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10092 (tui_first_data_element_no_in_line): Rename
10093 tuiFirstDataElementNoInLine.
10094 (tui_delete_data_content_windows): Rename
10095 tuiDeleteDataContentWindows.
10096 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10097 (tui_display_data_from): Rename tuiDisplayDataFrom.
10098 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10099 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10100 * tui/tui-win.c, tui/tui-regs.c: Update references.
10101 * tui/tui-layout.c, tui/tui.c: Update references.
10102
ec7d9e56
AC
10103 * tui/tui-wingeneral.h: Update copyright.
10104 (m_allBeVisible): Delete macro.
8a1dac83 10105 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10106 (struct tui_gen_win_info): Declare.
10107 (struct tui_win_info): Declare.
10108 (tui_unhighlight_win): Rename unhighlightWin.
10109 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10110 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10111 (tui_make_window): Rename makeWindow.
10112 (tui_copy_win): Rename copyWin.
10113 (tui_box_win): Rename boxWin.
10114 (tui_highlight_win): Rename highlightWin.
10115 (tui_check_and_display_highlight_if_needed): Rename
10116 checkAndDisplayHighlightIfNeeded.
10117 (tui_refresh_all): Rename refreshAll.
10118 (tui_delete_win): Rename tuiDelwin.
10119 (tui_refresh_win): Rename tuiRefreshWin.
10120 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10121 (tui_make_visible, tui_make_invisible): New functions.
10122 (tui_make_all_visible, tui_make_all_invisible): New functions.
10123 (make_all_visible): Rename makeAllVisible.
10124 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10125 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10126 * tui/tui-windata.c, tui/tui-win.c: Update references.
10127 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10128 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10129
1e52e2eb
MK
101302004-02-06 Mark Kettenis <kettenis@gnu.org>
10131
10132 * proc-api.c (write_with_trace): Initialize local variable to
10133 silence compiler warning.
10134
f80bda8e
AC
101352004-02-06 Andrew Cagney <cagney@redhat.com>
10136
10137 * tui/tui-source.h: Do not include "defs.h".
10138 (struct tui_win_info): Declare.
10139 (tui_set_source_content_nil): Declare.
10140 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10141 (union tui_line_or_address): Rename _TuiLineOrAddress.
10142 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10143 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10144 (tui_update_source_window_as_is): Rename
10145 tuiUpdateSourceWindowAsIs.
10146 (tui_update_source_windows_with_addr): Rename
10147 tuiUpdateSourceWindowsWithAddr.
10148 (tui_update_source_windows_with_line): Rename
10149 tuiUpdateSourceWindowsWithLine.
10150 (tui_clear_source_content): Rename tuiClearSourceContent.
10151 (tui_erase_source_content): Rename tuiEraseSourceContent.
10152 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10153 (tui_show_source_content): Rename tuiShowSourceContent.
10154 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10155 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10156 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10157 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10158 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10159 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10160 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10161 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10162 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10163 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10164 (struct tui_win_info): Declare.
10165 * tui/tui-stack.c: Update references.
10166 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10167 * tui/tui-win.c, tui/tui-source.c: Ditto.
10168 * tui/tui.c, tui/tui-disasm.c: Ditto.
10169
9fbfb822
MK
101702004-02-06 Mark Kettenis <kettenis@gnu.org>
10171
10172 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10173 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10174
03cebad2
MK
101752004-02-05 Mark Kettenis <kettenis@gnu.org>
10176
10177 * infrun.c (handle_inferior_event): Allow for breakpoint
10178 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10179 and SIGEMT. Update comments.
10180 * NEWS (Revised SPARC target): Mention support for non-executable
10181 stack.
10182
290281b1
MK
101832004-02-04 Mark Kettenis <kettenis@gnu.org>
10184
10185 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10186 * inftarg.c: Update copyright year.
10187 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10188 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10189 (sparc_xfer_wcookie): New function.
10190 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10191 * Makefile.in (sparc-nat.o): Update dependencies.
10192 * config/sparc/nm-nbsd.h: Include "target.h".
10193 (NATIVE_XFER_WCOOKIE): New define.
10194 (sparc_xfer_wcookie): New prototype.
10195
212161df
AC
101962004-02-04 Andrew Cagney <cagney@redhat.com>
10197
10198 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10199 SYSCALL_TRAP function.
10200 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10201
6e4c6c91
DJ
102022004-02-04 Andrew Cagney <cagney@redhat.com>
10203 Daniel Jacobowitz <drow@mvista.com>
10204
10205 * objfiles.h: Delete comments refering to inside_entry_func and
10206 DEPRECATED_FRAME_CHAIN_VALID.
10207 * defs.h (inside_entry_func): Update prototype..
10208 * blockframe.c (inside_entry_func): Rename to
10209 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10210 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10211
cae688ec
JJ
102122004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10213
10214 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10215 outside of #ifdef SOLIB_ADD region.
10216 (do_restore_lang_radix_cleanup): Ditto.
10217 (resolve_pending_breakpoint): Ditto.
10218
19217676
AC
102192004-02-03 Andrew Cagney <cagney@redhat.com>
10220
10221 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10222 (process_note_abi_tag_sections): Delete unused function.
10223 (ia64_read_fp): Delete unused function.
10224 (gdbarch_extract_struct_value_address): Delete declaration.
10225
876753be
AC
102262004-02-02 Andrew Cagney <cagney@redhat.com>
10227
10228 * vax-tdep.c (vax_frame_chain): Delete call to
10229 deprecated_inside_entry_file.
10230 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10231
d4f10bf2
MK
102322004-02-02 Mark Kettenis <kettenis@gnu.org>
10233
10234 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10235 column that's "empty" or "same value" when eliminating REG_RA
10236 rules.
10237
cae688ec
JJ
102382004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10239
10240 * NEWS: Add information about new pending breakpoint support.
10241
0101ce28
JJ
102422004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10243
10244 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10245 and pending fields for pending breakpoint support.
10246 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10247 (condition_command): Only parse condition if not a pending
10248 breakpoint.
10249 (print_one_breakpoint): Add support for pending breakpoints.
10250 (describe_other_breakpoints): Add checks to verify we are not
10251 dealing with pending breakpoints.
10252 (check_duplicates): Don't check pending breakpoints.
10253 (set_raw_breakpoint): Initialize pending flag.
10254 (do_restore_lang_radix_cleanup): New cleanup routine.
10255 (resolve_pending_breakpoint): New function.
10256 (re_enable_breakpoints_in_shlibs): Try and resolve any
10257 pending breakpoints via resolve_pending_breakpoint.
10258 (mention): Add pending breakpoint support.
10259 (parse_breakpoint_sals): Add new parameter to pass to
10260 decode_line_1 to indicate silent errors when files or functions
10261 are not found. Change all callers.
10262 (do_captured_parse_breakpoint): New function.
10263 (break_command_1): Change prototype to return an rc value and to
10264 take an optional pending breakpoint pointer. Support creating
10265 a pending breakpoint if a "not found" form of error occurs when
10266 parsing the breakpoint. Also support resolving an existing pending
10267 breakpoint and be silent if the resolution fails.
10268 (create_breakpoints): Change prototype to take pending breakpoint
10269 pointer. When resolving a pending breakpoint, use the new pointer
10270 to provide a conditional or commands added by the end-user.
10271 (delete_breakpoint): Add appropriate check for pending.
10272 (breakpoint_re_set_one): Ditto.
10273 (do_enable_breakpoint): Ditto.
10274
8d577d32
DC
102752004-02-02 David Carlton <carlton@kealia.com>
10276
10277 * valops.c (enum oload_classification): New.
10278 (find_overload_match): Break implementation into separate
10279 functions; delete #if 0'd code; look for symbols within
10280 namespaces.
10281 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10282 (find_oload_champ,oload_method_static,classify_oload_match): New.
10283 * cp-support.h: Add declaration for cp_func_name; update
10284 declaration for make_symbol_overload_list.
10285 * cp-support.c (cp_func_name): New.
10286 (overload_list_add_symbol): Fix comment, use
10287 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10288 (make_symbol_overload_list): Take a function name and a namespace
10289 instead of a symbol; change implementation.
10290 (make_symbol_overload_list_using): New.
10291 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10292
22e8e3c7
FF
102932004-02-02 Fred Fish <fnf@redhat.com>
10294
10295 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10296 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10297 * remote-sim.c (gdb_os_write_stderr): Write output to
10298 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10299 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10300 gdb_stderr stream and update copyright years.
22e8e3c7 10301
6b753f60
DJ
103022004-02-01 Daniel Jacobowitz <drow@mvista.com>
10303
10304 * Makefile.in (mips-linux-nat.o): Update dependencies.
10305 * mips-linux-nat.c: Include mips-tdep.h.
10306
103072004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10308
10309 * sol-thread.c (sol_thread_xfer_partial): New function.
10310 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10311 (init_sol_core_ops): Likewise.
10312
10313 * procfs.c (procfs_xfer_partial): New function.
10314 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10315 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10316
10317 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10318 procfs_xfer_auxv function.
10319
10320 * procfs.c (procfs_make_note_section): If we can read
10321 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10322 * linux-proc.c (linux_make_note_section): Likewise.
10323
10324 * auxv.h: New file.
10325 * auxv.c: New file.
10326 * Makefile.in (auxv_h): New variable.
10327 (COMMON_OBS): Add auxv.o here.
10328 (auxv.o): New target.
10329
10330 * corelow.c (core_xfer_partial): New function.
10331 (init_core_ops): Use it for core_ops.to_xfer_partial.
10332
10333 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10334 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10335 macro if that is defined.
10336
fa5281d0
DJ
103372004-02-01 Daniel Jacobowitz <drow@mvista.com>
10338
10339 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10340 and check the specified thread for each breakpoint.
10341 * breakpoint.h (bpstat_stop_status): Update prototype.
10342 * infrun.c (handle_inferior_event): Update calls to
10343 bpstat_stop_status.
10344
26ee262d
DJ
103452004-02-01 Daniel Jacobowitz <drow@mvista.com>
10346
10347 * Makefile.in (cli-cmds.o): Add $(readline_h).
10348
d9b52655
DJ
103492004-02-01 Daniel Jacobowitz <drow@mvista.com>
10350
10351 * cli/cli-cmds.c: Include readline.h.
10352 (complete_command): Pass the start of the last word to
10353 complete_line.
10354
9709f61c
DJ
103552004-01-31 Daniel Jacobowitz <drow@mvista.com>
10356
10357 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10358 argument, and change first argument to a CORE_ADDR.
10359 * breakpoint.h (bpstat_stop_status): Update prototype.
10360 * infrun.c (adjust_pc_after_break): Add a new comment.
10361 (handle_inferior_event): Update calls to bpstat_stop_status.
10362
4f1280bb
DJ
103632004-01-31 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * breakpoint.h: Update copyright years.
10366
4fa8626c
DJ
103672004-01-31 Daniel Jacobowitz <drow@mvista.com>
10368
10369 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10370 (bpstat_stop_status): Don't decrement PC.
10371 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10372 prototype.
10373 * infrun.c (adjust_pc_after_break): New function.
10374 (handle_inferior_event): Call it, early. Remove later references
10375 to DECR_PC_AFTER_BREAK.
10376 (normal_stop): Add commentary.
10377
fad0733a
DJ
103782004-01-31 Daniel Jacobowitz <drow@mvista.com>
10379
10380 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10381 2004-01-27 double-free fix.
10382
42cdca6c
MK
103832004-01-31 Mark Kettenis <kettenis@gnu.org>
10384
10385 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10386 (sparc32_frame_prev_register): Handle StackGhost.
10387 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10388
932d5416
RM
103892004-01-29 Roland McGrath <roland@redhat.com>
10390
10391 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10392 * configure: Regenerated.
10393
10394 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10395 * Makefile.in (procfs.o): Add dep.
10396
47d3492a
AC
103972004-01-28 Andrew Cagney <cagney@redhat.com>
10398
10399 * tui/tui-stack.h: Update copyright.
10400 (struct frame_info): Add opaque declaration.
10401 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10402 (tui_show_locator_content): Rename tuiShowLocatorContent.
10403 (tui_show_frame_info): Rename tuiShowFrameInfo.
10404 * tui/tui-stack.c: Update copyright. Update references.
10405 * tui/tui-winsource.c: Update references.
10406 * tui/tui-win.c: Update references.
10407 * tui/tui-layout.c: Update references.
10408 * tui/tui-hooks.c: Update copyright, update references.
10409 * tui/tui.c: Update copyright, update references.
10410 * tui/tui-disasm.c: Update references.
10411
5d51ca54
DC
104122004-01-28 David Carlton <carlton@kealia.com>
10413
10414 * dwarf2read.c (add_partial_structure): Use demangled name if
10415 namespace equals "".
10416
086ed43d
JB
104172004-01-27 Jim Blandy <jimb@redhat.com>
10418
10419 Clean up misapplied patch:
10420 * dwarf2read.c (determine_prefix): Change one of the two forward
10421 declarations for 'determine_prefix_aux' to a declaration for this.
10422 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10423 argument to 'die_specification'.
10424
2a35147e
JB
10425 * dwarf2read.c (read_func_scope): Re-indent comment.
10426
a355c7de 104272004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10428
a355c7de
AC
10429 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10430 b->exp to NULL after freeing so that error during re-parsing or
10431 evaluation of expressions associated with breakpoint don't
10432 eventually lead to re-freeing of storage.
10433 Committed by Andrew Cagney.
10434
63ff5125
AC
104352004-01-27 Andrew Cagney <cagney@redhat.com>
10436
10437 * source.c (ambiguous_line_spec): Delete undefined declaration.
10438 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10439 (m32r_set_server_address, m32r_set_download_path): Ditto.
10440 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10441
e142c38c
DJ
104422004-01-27 Daniel Jacobowitz <drow@mvista.com>
10443
10444 * dwarf2read.c: Update calls to changed and renamed functions, and
10445 references to moved variables.
10446
10447 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10448 language, language_defn, list_in_scope, and ftypes members.
10449 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10450 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10451 (baseaddr): Remove globals.
10452
10453 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10454 (set_cu_language, die_is_declaration, die_specification)
10455 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10456 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10457 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10458 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10459
10460 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10461 cu.list_in_scope. Don't initialize cu_header_offset.
10462 (add_partial_symbol): Add local baseaddr.
10463 (psymtab_to_symtab_1): Add local baseaddr. Use
10464 objfile->section_offsets for consistency. Don't initialize
10465 cu_header_offset; do initialize cu.header.offset and
10466 cu.list_in_scope.
10467 (read_file_scope, read_func_scope, read_lexical_block_scope)
10468 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10469
c6e06ede
MC
104702004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10471
fb328ecc 10472 * PROBLEMS: Add gdb/1516.
c6e06ede 10473
48184fd4
AC
104742003-12-29 Robert Millan <robertmh@gnu.org>
10475
10476 Patch committed by Andrw Cagney.
10477 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10478 * configure.tgt: Match knetbsd*-gnu.
10479
c1321b30
AC
104802004-01-26 Andrew Cagney <cagney@redhat.com>
10481
f3699be3
AC
10482 * breakpoint.c (catch_command_1): Delete #ifdef code.
10483 (catch_fork_command_1): Delete #ifdef wrapper.
10484 (catch_exec_command_1): Ditto.
10485 (catch_load_command_1): Ditto.
10486 (catch_unload_command_1): Ditto.
10487
c1321b30
AC
10488 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10489 (catch_breakpoint): Delete #if0ed function.
10490 (disable_catch_breakpoint): Ditto.
10491 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10492 (disable_catch, enable_catch, delete_catch): Ditto.
10493
b4501125
AC
104942004-01-26 Andrew Cagney <cagney@redhat.com>
10495
10496 * remote.c (echo_check, quit_flag): Delete variables.
10497 (cisco_kernel_mode): Delete variable.
10498 (minitelnet_return, tty_input, escape_count): Delete variables.
10499 (remote_cisco_mode): Delete variable.
10500 (remote_cisco_open, remote_cisco_close): Delete function.
10501 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10502 (init_remote_cisco_ops): Delete function.
10503 (_initialize_remote): Do not install "remote cisco" code.
10504 (read_frame): Delete cisco specific code.
10505 (remote_info_process): Delete function.
10506 (remote_wait): Delete cisco specific code.
10507 (remote_cisco_section_offsets): Delete function.
10508 (remote_cisco_objfile_relocate): Delete function.
10509 (remote_async_wait): Delete cisco specific code.
10510 (minitelnet, readtty, readsocket): Delete function.
10511
74055713
AC
105122004-01-26 Andrew Cagney <cagney@redhat.com>
10513
10514 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10515 comments mentioning extract_returned_value_address.
10516 * infcmd.c (print_return_value): Update. Add comments on
10517 extract_returned_value_address.
10518 * stack.c (return_command): Add comments on
10519 extract_returned_value_address.
10520 * values.c: Update comment.
10521 * m32r-tdep.c: Update comment.
10522 * sparc-tdep.c: Update comment.
10523 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10525 * sh64-tdep.c (sh64_gdbarch_init): Update.
10526 * sh-tdep.c (sh_gdbarch_init): Update.
10527 * s390-tdep.c (s390_gdbarch_init): Update.
10528 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10529 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10530 * m68k-tdep.c (m68k_gdbarch_init): Update.
10531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10532 * m32r-tdep.c (m32r_gdbarch_init): Update.
10533 * ia64-tdep.c (ia64_gdbarch_init): Update.
10534 * h8300-tdep.c (h8300_gdbarch_init): Update.
10535 * frv-tdep.c (frv_gdbarch_init): Update.
10536 * arm-tdep.c (arm_gdbarch_init): Update.
10537 * alpha-tdep.c (alpha_gdbarch_init): Update.
10538
a67af2b9
AC
105392004-01-26 Andrew Cagney <cagney@redhat.com>
10540
10541 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10542 SYMBOL_LOCATION_FUNCS
10543 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10544 "struct symbol_ops".
10545 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10546 type to "struct symbol_ops".
10547 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10548 (struct symbol): Replace ".aux_value.loc.funcs" and
10549 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10550 (SYMBOL_OBJFILE): Delete macro.
10551 (SYMBOL_LOCATION_FUNCS): Delete macro.
10552 (SYMBOL_LOCATION_BATON): Update.
10553 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10554 intead of SYMBOL_LOCATION_FUNCS.
10555 * ax-gdb.c (gen_var_ref): Ditto.
10556 * printcmd.c (address_info): Ditto.
10557 * findvar.c (read_var_value): Ditto.
10558 (symbol_read_needs_frame): Ditto.
10559
c034e007
AC
105602004-01-26 Andrew Cagney <cagney@redhat.com>
10561
10562 * dwarf2read.c (read_func_scope): Document frame-base hack.
10563
bb472c1e
MK
105642004-01-25 Mark Kettenis <kettenis@gnu.org>
10565
10566 * infcmd.c (print_return_value): Plug memory leak; delete
10567 ui_stream object. Rename argument `structure_return' to
10568 `struct_return'.
10569
c8e737d5
MK
105702004-01-25 Mark Kettenis <kettenis@gnu.org>
10571
f941662f
MK
10572 * infcmd.c (print_return_value): Wrap long lines.
10573 (finish_command_continuation, finish_command): Remove unused
10574 variable `funcaddr'. Fix some coding-standards problems.
10575
c558d81a 10576 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10577 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10578 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10579 TDEP->fpregset to zero.
10580
bf1e5861 10581 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10582 floating-point registers for traditional NetBSD core files.
10583 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10584 TDEP->sizeof_fpregset here.
10585
4c72d57a
MK
105862004-01-25 Mark Kettenis <kettenis@gnu.org>
10587
566626fa
MK
10588 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10589 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10590 function with code split out from
10591 sparc32nbsd_sigcontext_frame_cache.
10592 (sparc32nbsd_sigcontext_frame_cache): Use
10593 sparc32nbsd_sigcontext_saved_regs.
10594 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10595 OpenBSD.
10596 * sparcobsd-tdep.c: New file.
10597 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10598 (sparcobsd-tdep.o): New dependency.
10599 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10600 * config/sparc/obsd.mt: New file.
10601
4c72d57a
MK
10602 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10603 TDEP->fpregset to be initialized to enable core file register
10604 sets.
10605
7e5e9f88
MK
106062004-01-24 Mark Kettenis <kettenis@gnu.org>
10607
f0f207fd 10608 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10609 Add opaque declarations.
10610 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10611 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10612 function with code split out from
10613 sparc64nbsd_sigcontext_frame_cache.
10614 (sparc64nbsd_sigcontext_frame_cache): Use
10615 sparc64nbsd_sigcontext_saved_regs.
10616 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10617 OpenBSD.
10618 * sparc64obsd-tdep.c: New file.
10619 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10620 (sparc64obsd-tdep.o): New dependency.
10621 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10622 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10623 * config/sparc/obsd64.mt: New file.
10624
690668cc
MK
10625 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10626 read the instruction at PC.
10627
7e5e9f88
MK
10628 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10629 value of GDB_OSABI_DEFAULT.
10630 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10631 instead of GDB_OSABI_NETBSD_AOUT.
10632
68b6dce9
NR
106332004-01-24 Nick Roberts <nick@nick.uklinux.net>
10634
10635 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10636 copyright.
10637
080ce8c0
AC
106382004-01-23 Andrew Cagney <cagney@redhat.com>
10639
10640 * printcmd.c (display_command): Replace tui_set_display call with
10641 tui_set_layout_for_display_command.
10642 * tui/tui.h (enum tui_win_type): Define.
10643 (tui_set_layout): Delete declaration.
10644 (tui_set_layout_for_display_command): Rename set_tui_layout.
10645 * tui/tui-data.h (enum tui_layout_type): Define.
10646 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10647 "tui.h".
10648 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10649 (tui_default_win_height): Rename tuiDefaultWinHeight.
10650 (tui_default_win_viewport_height): Rename
10651 tuiDefaultWinViewportHeight.
10652 (tui_set_layout): RenametuiSetLayout.
10653 * tui/tui-layout.c: Update references.
10654 * tui/tui.c: Update references.
10655 * tui/tui-disasm.c: Update references.
10656
b368761e
DC
106572004-01-23 David Carlton <carlton@kealia.com>
10658
10659 Partial workaround for PR c++/1511:
10660 * cp-namespace.c: Include frame.h.
10661 (cp_lookup_transparent_type): New
10662 (cp_lookup_transparent_type_loop): New.
10663 * cp-support.h: Declare cp_lookup_transparent_type.
10664 * symtab.c (basic_lookup_transparent_type): Renamed from
10665 lookup_transparent_type.
10666 (lookup_transparent_type): Replace old body by a call to
10667 current_language->la_lookup_transparent_type.
10668 * symtab.h: Update copyright. Declare
10669 basic_lookup_transparent_type.
10670 * language.h: Update copyright.
10671 (struct language_defn): Add la_lookup_transparent_type.
10672 * language.c: Update copyright.
10673 (unknown_language_defn): Add basic_lookup_transparent_type.
10674 (auto_language_defn): Add basic_lookup_transparent_type.
10675 (local_language_defn): Add basic_lookup_transparent_type.
10676 * ada-lang.c: Update copyright.
10677 (ada_language_defn): Add basic_lookup_transparent_type.
10678 * c-lang.c: Update copyright.
10679 (c_language_defn): Add basic_lookup_transparent_type.
10680 (cplus_language_defn): Add basic_lookup_transparent_type.
10681 (asm_language_defn): Add basic_lookup_transparent_type.
10682 (minimal_language_defn): Add basic_lookup_transparent_type.
10683 * f-lang.c: Update copyright.
10684 (f_language_defn): Add basic_lookup_transparent_type.
10685 * jv-lang.c: Update copyright.
10686 (java_language_defn): Add basic_lookup_transparent_type.
10687 * m2-lang.c: Update copyright.
10688 (m2_language_defn): Add basic_lookup_transparent_type.
10689 * objc-lang.c: Update copyright.
10690 (objc_language_defn): Add basic_lookup_transparent_type.
10691 * p-lang.c: Update copyright.
10692 (p_language_defn): Add basic_lookup_transparent_type.
10693 * scm-lang.c: Update copyright.
10694 (scm_language_defn): Add basic_lookup_transparent_type.
10695 * Makefile.in (cp-namespace.o): Depend on frame.h.
10696
fdde2d81
DC
106972004-01-23 David Carlton <carlton@kealia.com>
10698
10699 Patch for PR c++/1520:
10700 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10701 properly if we have a specification die.
10702 (determine_prefix_aux): Rename from determine_prefix.
10703 (determine_prefix): Like the old determine_prefix, but never
10704 returns NULL.
10705
5b828b6b
TR
107062004-01-23 Theodore A. Roth <troth@openavr.org>
10707
10708 * avr-tdep.c: Update copyright.
10709 (avr_iaddr_p): Delete unused function.
10710 (avr_saddr_p): Delete unused function.
10711
a1b8c067
DC
107122004-01-23 David Carlton <carlton@kealia.com>
10713
10714 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10715 Fix for PR symtab/1534.
10716
f2cab569
MK
107172004-01-23 Mark Kettenis <kettenis@gnu.org>
10718
10719 * NEWS (New native configurations): Mention OpenBSD/sparc and
10720 OpenBSD/sparc64.
10721 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10722 * configure.host: Likewise.
10723 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10724 handler for OpenBSD.
10725 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10726
642d8300
MK
107272004-01-22 Mark Kettenis <kettenis@gnu.org>
10728
89aac506
MK
10729 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10730 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10731
36662fde
MK
10732 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10733 * cli/cli-cmds.c (shell_escape): Likewise.
10734
642d8300
MK
10735 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10736 OpenBSD .note.openbsd.ident sections.
10737
fae299cd
DC
107382004-01-22 David Carlton <carlton@kealia.com>
10739
10740 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10741 get_scope_pc_bounds.
10742 (read_file_scope): Ditto.
10743 (get_scope_pc_bounds): New function, produced by extracting code
10744 from the above two functions, consolidating it, and adding support
10745 for DW_TAG_namespace.
10746
a49d618c
MK
107472004-01-22 Mark Kettenis <kettenis@gnu.org>
10748
10749 * osabi.c (MAX_NOTESZ): New define.
10750 (check_note): New function.
10751 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10752 check_note.
10753
fe61caab
RM
107542004-01-21 Roland McGrath <roland@redhat.com>
10755
10756 * MAINTAINERS (write after approval): Add myself.
10757
ec145965
EZ
107582004-01-21 Eli Zaretskii <eliz@gnu.org>
10759
10760 * utils.c (init_page_info): Move declarations of `rows' and
10761 `cols' before the __GO32__-specific code. Move the closing brace
10762 outside the #ifdef __GO32__..#endif block.
10763 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10764
877522db
PB
107652004-01-21 Paul Brook <paul@codesourcery.com>
10766
10767 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10768 BPSTAT_WHAT_CHECK_SHLIBS.
10769
dbf5be1c
PB
107702004-01-21 Paul Brook <paul@codesourcery.com>
10771
10772 * MAINTAINERS: Add myself to write-after-approval.
10773
81f08b92
AC
107742004-01-20 Andrew Cagney <cagney@redhat.com>
10775
5a1efed7
AC
10776 * ax-gdb.c (print_axs_value): Delete unused function.
10777 * jv-lang.c (java_lookup_type): Delete unused function.
10778 * cli/cli-dump.c (dump_filetype): Delete unused function.
10779 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10780 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10781 (mips_getstring): Delete unused function.
10782 (pmon_insert_breakpoint): Delete #if0ed function.
10783 (PMON_MAX_BP): Delete #if0ed MACRO.
10784 (mips_pmon_bp_info): Delete #if0ed variable.
10785 (pmon_remove_breakpoint): Delete #if0ed function.
10786 * monitor.c (monitor_write_even_block): Delete unused function.
10787 (monitor_write_memory_block): Delete #if0ed code.
10788 * dink32-rom.c (dink32_load): Delete unused function.
10789 (_initialize_dink32_rom): Delete #if0ed code.
10790 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10791
b0a30fce
AC
10792 * tui/tui-command.c: Update references.
10793 * tui/tui-io.c: Update references.
10794 * tui/tui-command.h: Update copyright.
10795 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10796
81f08b92
AC
10797 * source.c (ambiguous_line_spec): Delete never-defined function.
10798 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10799 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10800 * cli/cli-cmds.c (validate_comname): Ditto.
10801
65f05602
AC
10802 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10803 "tui-data.h".
10804 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10805 (tui_show_disassem): Rename tuiShowDisassem.
10806 (tui_show_disassem_and_update_source): Rename
10807 tuiVerticalDisassemScroll.
10808 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10809 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10810 * tui/tui.h: Update copyright.
10811 (enum tui_status): Define.
10812 * tui/tui-data.h (enum tui_scroll_direction): Define.
10813 * tui/tui-disasm.c: Update copyright. Update references.
10814 * tui/tui-winsource.c: Update copyright. Update references.
10815 * tui/tui-win.c: Update references.
10816 * tui/tui-layout.c: Update references.
10817
6bb0384f
AC
108182004-01-20 Andrew Cagney <cagney@redhat.com>
10819
10820 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10821 sym2 to start of block.
10822
9175c9a3
MC
108232004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10824
10825 * MAINTAINERS: Delete mmalloc.
10826 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10827 * NEWS: Mention removal of --with-malloc.
10828 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10829 * config.in: Regenerate.
10830 * configure: Regenerate.
6bb0384f
AC
10831 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10832 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10833 * gdbinit.in: Remove mmalloc.
10834 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10835 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10836 * config/i386/go32.mh: Likewise.
10837 * config/i386/interix.mh: Likewise.
10838 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10839
4fcef00a
JJ
108402004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10841
10842 * linespec.c (decode_variable, symtab_from_filename): Call
10843 error_silent with error message instead of throwing an exception
10844 directly.
10845 * defs.h (error_silent, error_output_message): Add prototypes.
10846 (catch_exceptions_with_msg): Ditto.
10847 * utils.c (error_silent, error_output_message): New functions.
10848 * top.c (catch_exceptions_with_msg): New function.
10849
8e94b928
NR
108502004-01-20 Nick Roberts <nick@nick.uklinux.net>
10851
10852 * mi/mi-cmds.h (enum print_values): Add definition.
10853
10854 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10855 type and value for simple data types and just the name and type
10856 for complex ones, if required.
10857
10858 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10859 children, if required.
10860
a02d6af8
KB
108612004-01-19 Kevin Buettner <kevinb@redhat.com>
10862
10863 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10864 unused declarations.
10865
78a4a9b9
AC
108662004-01-19 Andrew Cagney <cagney@redhat.com>
10867
10868 * top.h (mapped_symbol_files): Delete declaration.
10869 * main.c (captured_main): Delete option "m" and "mapped".
10870 * objfiles.c (mapped_symbol_files): Delete variable.
10871 * symfile.c (symbol_file_command): Delete mmap code.
10872 (symbol_file_add_with_addrs_or_offsets): Ditto.
10873 (add_symbol_file_command, reread_separate_symbols): Ditto.
10874 * objfiles.h (OBJF_MAPPED): Delete.
10875 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10876 (free_objfile) [USE_MMALLOC]: Ditto.
10877 (open_existing_mapped_file): Delete function.
10878 (open_mapped_file): Delete function.
10879 (map_to_file): Delete function.
10880
2dbd5e30
KB
108812004-01-19 Kevin Buettner <kevinb@redhat.com>
10882
10883 * infrun.c (step_into_function): Account for possible breakpoint
10884 adjustment when computing ``stop_func_start''.
10885
437b434f
KB
108862004-01-19 Kevin Buettner <kevinb@redhat.com>
10887
10888 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10889 the region size against the size of a pointer, not the size of
10890 a register as given by DEPRECATED_REGISTER_SIZE.
10891
55fb0713
AC
108922004-01-19 Andrew Cagney <cagney@redhat.com>
10893
10894 * tui/tui-regs.h: Include "tui-data.h".
10895 (tuiFirstRegElementNoInLine): Delete declaration.
10896 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10897 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10898 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10899 (tui_calculate_regs_column_count): Rename
10900 tuiCalculateRegsColumnCount.
10901 (tui_check_register_values): Rename tuiCheckRegisterValues.
10902 (tui_show_registers): Rename tuiShowRegisters.
10903 (tui_display_registers_from_line): Rename
10904 tuiDisplayRegistersFromLine.
10905 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10906 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10907 (tui_first_reg_element_no_inline): Rename
10908 tuiFirstRegElementNoInLine.
10909 * tui/tui-data.h: Update copyright.
10910 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10911 * tui/tui-windata.c: Update copyright, update references.
10912 * tui/tui-regs.c: Update copyright, update references.
10913 * tui/tui-win.c: Update copyright, update references.
10914 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10915
cebe9500
AC
109162004-01-18 Andrew Cagney <cagney@redhat.com>
10917
bcdf1568
AC
10918 * tui/tui-io.c: Update copyright.
10919 (key_is_end_sequence, key_is_backspace): New functions.
10920 (key_is_command_char, key_is_start_sequence): New function.
10921 (tui_getc): Update references.
10922 * tui/tui-io.h: Update copyright.
10923 (m_tuiStartNewLine): Delete macro.
10924 (m_isBackspace, m_isDeleteChar): Delete macros.
10925 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10926 (m_isNextPage, m_isPrevPage): Delete macros.
10927 (m_isLeftArrow, m_isRightArrow): Delete macros.
10928 (m_isXdbStyleCommandChar): Delete macro.
10929 (key_is_start_sequence): Declare, replace m_isStartSequence.
10930 (key_is_end_sequence): Declare, replace m_isEndSequence.
10931 (key_is_backspace): Declare ,replace m_isBackspace.
10932 (key_is_command_char): Declare, replace m_isCommandChar.
10933 * tui/tui-command.c: Update copyright.
10934 (tuiDispatchCtrlChar): Update references.
10935
130d87e6
AC
10936 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10937 tuiSourceWin.h.
10938
d7b2e967
AC
10939 * tui/tui-command.c: Rename tui/tuiCommand.c.
10940 * tui/tui-command.h: Rename tui/tuiCommand.h.
10941 * tui/tui-data.c: Rename tui/tuiData.c.
10942 * tui/tui-data.h: Rename tui/tuiData.h.
10943 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10944 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10945 * tui/tui-io.c: Rename tui/tuiIO.c.
10946 * tui/tui-io.h: Rename tui/tuiIO.h.
10947 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10948 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10949 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10950 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10951 * tui/tui-source.c: Rename tui/tuiSource.c.
10952 * tui/tui-source.h: Rename tui/tuiSource.h.
10953 * tui/tui-stack.c: Rename tui/tuiStack.c.
10954 * tui/tui-stack.h: Rename tui/tuiStack.h.
10955 * tui/tui-win.c: Rename tui/tuiWin.c.
10956 * tui/tui-win.h: Rename tui/tuiWin.h.
10957 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10958 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10959 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10960 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10961 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10962 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10963 * tui/tui-file.c: Update includes.
10964 * tui/tui-hooks.c: Update includes.
10965 * tui/tui-interp.c: Update includes.
10966 * tui/tui.c: Update includes.
10967 * Makefile.in: Update all tui/ dependencies.
10968 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10969
b2100910
AC
10970 * Makefile.in: Update copyright. Update dependencies.
10971
cebe9500
AC
10972 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10973 problem.
10974
c6f0559b
AC
109752004-01-18 Andrew Cagney <cagney@redhat.com>
10976
43e9390b
AC
10977 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10978 instead of register_gdbarch_init.
10979
c6f0559b
AC
10980 * remote-sds.c (tohex): Delete unused function. Update copyright.
10981 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10982 * v850-tdep.c (v850_register_virtual_size): Ditto.
10983 * target.c (normal_target_post_startup_inferior): Ditto.
10984 * source.c (ambiguous_line_spec): Ditto.
10985 * remote.c (adapt_remote_get_threadinfo): Ditto.
10986 * mi/mi-out.c (out_field_fmt): Ditto.
10987 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10988 (output_control_change_notification): Ditto.
10989 * m68k-tdep.c (m68k_register_byte): Ditto.
10990 (m68k_remote_breakpoint_from_pc): Ditto.
10991 * ui-out.c (init_ui_out_state): Delete unused declaration.
10992 * stabsread.c (search_value): Ditto.
10993 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10994 * maint.c (print_section_table): Ditto.
10995 * infrun.c (set_follow_fork_mode_command): Ditto.
10996
a8504492
MK
109972004-01-18 Mark Kettenis <kettenis@gnu.org>
10998
10999 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11000 DW_CFA_def_cfa_exporession. Add support for
11001 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11002 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11003
0bd8997e
AC
110042004-01-18 Andrew Cagney <cagney@redhat.com>
11005
11006 * ocd.c: Update copyright.
11007 (bdm_read_register_command): Delete unused function.
11008 (_initialize_remote_ocd): Delete commented out reference.
11009 (get_quoted_char, reset_packet): Delete #if0ed function.
11010 (output_packet, put_quoted_char): Delete #if0ed function.
11011 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11012 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11013 (BDM_BREAKPOINT): Delete #if0ed macro.
11014 (remote_timeout): Delete #if0ed variable.
11015
31bb40e4
MK
110162004-01-18 Mark Kettenis <kettenis@gnu.org>
11017
11018 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11019 (core-sol2.o): Remove dependency.
11020 * core-sol2.c: Remove file.
11021
887432a5
AC
110222004-01-17 Andrew Cagney <cagney@redhat.com>
11023
11024 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11025 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11026 enums.
11027
29182b13
DJ
110282004-01-17 Daniel Jacobowitz <drow@mvista.com>
11029
11030 * remote.c: Update copyright years.
11031
2963ee1d
DJ
110322004-01-17 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11035
79d45cd4
AC
110362004-01-17 Andrew Cagney <cagney@redhat.com>
11037
ee300cd4
AC
11038 * mdebugread.c: Update copyright.
11039 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11040 (parse_type, parse_procedure): Ditto.
11041 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11042
fcacc9c2
AC
11043 * cris-tdep.c (cris_store_struct_return): Put back accidently
11044 deleted function.
11045
79d45cd4
AC
11046 * gdbarch.sh: Update copyright year.
11047 * gdbarch.h, gdbarch.c: Re-generate.
11048
b263358a
DJ
110492004-01-17 Daniel Jacobowitz <drow@mvista.com>
11050
11051 Suggested by George Anzinger.
11052 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11053 correct stack offset. Include unknown opcode numbers in the error
11054 message.
11055
931aecf5
AC
110562004-01-17 Andrew Cagney <cagney@redhat.com>
11057
11058 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11059 extract_struct_value_address, i386 does not set it.
11060 * sparc64-tdep.c (sparc64_init_abi): Do not set
11061 extract_struct_value_address, never called.
11062 (sparc64_extract_struct_value_address): Delete function.
11063 * m68hc11-tdep.c: Update copyright.
11064 (m68hc11_gdbarch_init): Delete redundant assignment of
11065 extract_struct_value_address.
11066 * i386-tdep.c: Update copyright.
11067 (i386_gdbarch_init): Do not set extract_struct_value_address,
11068 never called.
11069 (i386_extract_struct_value_address): Delete function.
11070 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11071 extract_struct_value_address, never called.
11072 (sparc32_extract_struct_value_address): #if 0 function. Add
11073 comments explaining its future.
11074
756fe439
DJ
110752004-01-17 Daniel Jacobowitz <drow@mvista.com>
11076
11077 * arm-tdep.c (arm_write_pc): New function.
11078 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11079
e74f0f02
DJ
110802004-01-17 Daniel Jacobowitz <drow@mvista.com>
11081
11082 * breakpoint.c (must_shift_inst_regs): Delete.
11083 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11084 and SHIFT_INST_REGS.
11085 * infcmd.c (step_1, step_1_continuation): Delete references to
11086 SHIFT_INST_REGS.
11087 * infrun.c (keep_going): Likewise.
11088 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11089 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11090
b6cb9035
AC
110912004-01-17 Andrew Cagney <cagney@redhat.com>
11092
444a1e2e
AC
11093 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11094 * gdbarch.h, gdbarch.c: Re-generate.
11095 * infcmd.c (print_return_value): Delete reference to
11096 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11097
def7e6ed
AC
11098 * cris-tdep.c (cris_gdbarch_init): Do not set
11099 deprecated_extract_struct_value_address.
11100
07be497a
AC
11101 * xstormy16-tdep.c: Update copyright.
11102 (xstormy16_extract_struct_value_address): Update to current
11103 extract struct value address interface.
11104 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11105 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11106 current extract struct value address interface.
11107 (sh64_gdbarch_init): Set extract_struct_value_address.
11108
6b4d5c91
AC
11109 * cris-tdep.c: Update copyright.
11110 (cris_extract_struct_value_address): Delete function.
11111 (struct_return_address): Delete variable.
11112 (cris_store_struct_return): Do not set struct_return_address.
11113
464e0365
AC
11114 * mcore-tdep.c: Update copyright.
11115 (mcore_extract_struct_value_address): Delete function. Update
11116 comments.
11117 (mcore_gdbarch_init): Update.
11118 * mn10300-tdep.c: Update copyright.
11119 (mn10300_extract_struct_value_address): Delete function.
11120 (mn10300_gdbarch_init): Update.
11121 * v850-tdep.c: Update copyright.
11122 (v850_extract_struct_value_address): Delete.
11123 (v850_gdbarch_init): Update.
11124 * ns32k-tdep.c: Update copyright.
11125 (ns32k_extract_struct_value_address): Delete.
11126 (ns32k_gdbarch_init): Update.
11127 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11128 (hppa_gdbarch_init): Update.
11129 * vax-tdep.c: Update copyright.
11130 (vax_extract_struct_value_address): Delete.
11131 (vax_gdbarch_init): Update.
11132
afb18d0f
AC
11133 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11134 * gdbarch.h, gdbarch.c: Re-generate.
11135 * procfs.c (procfs_fetch_registers): Delete reference to
11136 DEPRECATED_NPC_REGNUM.
11137 (procfs_store_registers): Ditto.
11138 * regcache.c (generic_target_write_pc): Simplify.
11139 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11140
a698f53e
AC
11141 * core-sol2.c (fetch_core_registers): Replace
11142 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11143
adc11376
AC
11144 * hppa-tdep.c: Update copyright year.
11145 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11146 NPC_REGNUM.
11147 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11148
b6cb9035
AC
11149 * mips-tdep.c (mips_write_pc): New function.
11150 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11151 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11152 (mips_find_saved_regs, mips_software_single_step: Ditto.
11153 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11154 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11155
6d82d43b
AC
111562004-01-17 Andrew Cagney <cagney@redhat.com>
11157
11158 * mips-tdep.c: Re-indent. Group functions by ABI.
11159
71bd6bd4
AC
111602004-01-17 Andrew Cagney <cagney@redhat.com>
11161
11162 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11163 * gdbarch.c: Re-generate.
11164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11165 DECR_PC_AFTER_BREAK to zero.
11166 * vax-tdep.c (vax_gdbarch_init): Ditto.
11167 * v850-tdep.c (v850_gdbarch_init): Ditto.
11168 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11169 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11170 * sh-tdep.c (sh_gdbarch_init): Ditto.
11171 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11172 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11173 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11174 * mips-tdep.c (mips_gdbarch_init): Ditto.
11175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11177 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11179 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11180 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11182 * frv-tdep.c (frv_gdbarch_init): Ditto.
11183 * cris-tdep.c (cris_gdbarch_init): Ditto.
11184 * avr-tdep.c (avr_gdbarch_init): Ditto.
11185 * arm-tdep.c (arm_gdbarch_init): Ditto.
11186 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11187
a02abb62
JB
111882004-01-17 J. Brobecker <brobecker@gnat.com>
11189
11190 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11191 Delete, no longer used.
11192 (read_subrange_type): New function, mostly extracted from
11193 read_array_type().
11194 (read_array_type): Replace extracted code by call to
11195 read_subrange_type().
11196 (dwarf2_get_attr_constant_value): New function.
11197 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11198 (add_partial_symbol): Likewise.
11199 (process_die): Likewise.
11200 (new_symbol): Likewise.
11201 (read_type_die): Likewise.
11202
cf5b2f1b
AC
112032004-01-16 Andrew Cagney <cagney@redhat.com>
11204
11205 * symfile.c: Update copyright year.
11206 (compare_symbols): Delete unused function.
11207 * stabsread.c: Update copyright year.
11208 (lrs_general_complaint): Delete unused function.
11209 (ref_search_value): Ditto.
11210 (get_substring): Delete declaration.
11211 * sh64-tdep.c: Update copyright year.
11212 (sh64_get_gdb_regnum): Delete unused function.
11213 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11214 Delete unused function.
11215
d33b9831
MK
112162004-01-17 Mark Kettenis <kettenis@gnu.org>
11217
11218 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11219 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11220
7aea86e6
AC
112212004-01-16 Andrew Cagney <cagney@redhat.com>
11222
11223 Changes from Peter Schauer.
11224 * rs6000-tdep.c: Update copyright year.
11225 (rs6000_push_dummy_call): Update the stack pointer before
11226 accessing the corresponding stack region.
11227 * rs6000-nat.c: Update copyright year.
11228 (set_host_arch): Set "info.abfd" to "exec_bfd".
11229
26b0da32
MK
112302004-01-15 Mark Kettenis <kettenis@gnu.org>
11231
11232 * blockframe.c: Update copyright year.
11233 (inside_entry_func): Don't treat a zero PC specially.
11234
86fbe6cc
EZ
112352004-01-14 Elena Zannoni <ezannoni@redhat.com>
11236
11237 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11238 variable.
11239 (gcore_create_callback): Ditto. Skip any memory segment that has
11240 no permissions set.
11241
63d06c5c
DC
112422004-01-14 David Carlton <carlton@kealia.com>
11243
11244 Change symbols for C++ nested types to contain the fully qualified
11245 name, if possible. (At least in the DWARF-2 case.) Partial fix
11246 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11247 c++/895.
11248 * c-exp.y (qualified_type): Handle types nested within classes.
11249 * cp-namespace.c: Update comments.
11250 (cp_set_block_scope): Delete #if 0.
11251 (cp_lookup_nested_type): Handle types nested within classes.
11252 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11253 when appropriate.
11254 (add_partial_symbol): Add the name of the enclosing namespace to
11255 types.
11256 (pdi_needs_namespace): New.
11257 (add_partial_namespace): Tweak comment.
11258 (add_partial_structure): New.
11259 (psymtab_to_symtab_1): Initialize processing_current_prefix
11260 here...
11261 (process_die): instead of here.
11262 (read_structure_scope): Try to figure out the name of the class or
11263 namespace that the structure might be defined within.
11264 (read_enumeration): Generate fully-qualified names, if possible.
11265 (read_namespace): Don't set name to NULL.
11266 (die_specification): New.
11267 (new_symbol): Generate fully-qualified names for types.
11268 (read_type_die): Determine appropriate prefix.
11269 (determine_prefix): New.
11270 (typename_concat): New.
11271 (class_name): New.
11272 * valops.c (value_aggregate_elt): Pass NOSIDE to
11273 value_struct_elt_for_reference.
11274 (value_struct_elt_for_reference): Make static, add NOSIDE
11275 parameter, call value_maybe_namespace_elt as a last resort.
11276 (value_namespace_elt): Break out code into
11277 value_maybe_namespace_elt.
11278 (value_maybe_namespace_elt): New.
11279
87783b8b
AC
112802004-01-12 Andrew Cagney <cagney@redhat.com>
11281
11282 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11283 cooked floating-point registers.
11284 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11285 and value_to_register.
11286
6503b91e
AC
112872004-01-13 Andrew Cagney <cagney@redhat.com>
11288
11289 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11290 * gdbarch.c: Re-generate.
11291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11292 FUNCTION_START_OFFSET.
11293 * v850-tdep.c (v850_gdbarch_init): Ditto.
11294 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11295 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11296 * sh-tdep.c (sh_gdbarch_init): Ditto.
11297 * s390-tdep.c (s390_gdbarch_init): Ditto.
11298 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11299 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11300 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11301 * mips-tdep.c (mips_gdbarch_init): Ditto.
11302 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11303 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11305 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11306 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11307 * i386-tdep.c (i386_gdbarch_init): Ditto.
11308 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11309 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11310 * frv-tdep.c (frv_gdbarch_init): Ditto.
11311 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11312 * cris-tdep.c (cris_gdbarch_init): Ditto.
11313 * avr-tdep.c (avr_gdbarch_init): Ditto.
11314 * arm-tdep.c (arm_gdbarch_init): Ditto.
11315 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11316
ea1dd7bc
DJ
113172004-01-13 Daniel Jacobowitz <drow@mvista.com>
11318
11319 * infrun.c (follow_fork_mode_ask): Remove.
11320 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11321 (follow_fork): Simplify and remove internal error for
11322 follow_fork_mode_ask.
11323 (_initialize_infrun): Update "set follow-fork-mode" help text.
11324
0f0cffd2
AC
113252004-01-13 Andrew Cagney <cagney@redhat.com>
11326
11327 * configure.in: Update copyright year.
11328 (build_warnings): Add -Wunused-label.
11329 * configure: Re-generate.
11330
de38af99
AC
113312004-01-12 Andrew Cagney <cagney@redhat.com>
11332
954a7fba
AC
11333 * exec.h (exec_ops): Make "extern".
11334
de38af99
AC
11335 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11336 the function is void.
11337 (mips_pseudo_register_write): Ditto.
11338
1a111ce3
AC
113392004-01-12 Andrew Cagney <cagney@redhat.com>
11340
11341 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11342 call. Never defined.
11343 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11344 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11345 (struct sparc_gregset, struct regcache): Ditto.
11346 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11347
48efe704
AC
113482004-01-12 Andrew Cagney <cagney@redhat.com>
11349
11350 * mi/ChangeLog: Delete file. Renamed to ...
11351 * mi/ChangeLog-1999-2003: New file.
11352 * tui/ChangeLog: Delete file. Renamed to ...
11353 * tui/ChangeLog-1998-2003: New file.
fe61caab 11354
a54124c5
MK
113552004-01-11 Mark Kettenis <kettenis@gnu.org>
11356
2ca62865
MK
11357 * sparc64nbsd-tdep.c: Include "regset.h".
11358 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11359 Remove variables.
11360 (fetch_core_registers): Remove function.
11361 (sparc64nbsd_core_fns): Remove variable.
11362 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11363 functions.
11364 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11365 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11366 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11367
ca9d58e9
MK
11368 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11369 sparc_extract_struct_value_address.
11370 (sparc32_gdbarch_init): Set extract_struct_value_address.
11371 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11372 function.
11373 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11374 return_value_on_stack.
11375
3cc87ec0
MK
11376 * NEWS: Mention that %cs and %ss have been added to the AMD64
11377 configurations
11378
5bf00f29
MK
11379 * frame.c: Update copyright year.
11380 (get_prev_frame): Improve comment.
11381
4f7ec84e
MK
11382 * sparc64fbsd-tdep.c: Include "regset.h".
11383 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11384 Remove variables.
11385 (fetch_core_registers): Remove function.
11386 (sparc64fbsd_core_fns): Remove variable.
11387 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11388 functions.
11389 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11390 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11391 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11392
4e7b0cd3
MK
11393 * sparcnbsd-tdep.c: Include "regset.h".
11394 (fetch_core_registers): Remove function.
11395 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11396 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11397 functions.
11398 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11399 TDEP->fpregset.
46b58ce9 11400 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11401
a54124c5
MK
11402 * sparc-tdep.h (struct regset): Provide opaque declaration.
11403 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11404 fpregset and sizeof_fpregset members.
11405 * sparc-tdep.c (struct regset): Provide opaque declaration.
11406 (sparc_regset_from_core_section): New function.
11407 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11408 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11409 Set regset_from_core_section when appropriate.
11410
29ff87c5
MK
114112004-01-10 Mark Kettenis <kettenis@gnu.org>
11412
79b1ab3d
MK
11413 * x86-64-tdep.c (amd64_non_pod_p): New function.
11414 (amd64_classify_aggregate): Return class memory for non-POD
11415 C++ structure types.
11416
6470d250
MK
11417 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11418 argument. Use it to reserve a register if necessary.
11419 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11420 amd64_push_arguments.
11421
562c50c2
MK
11422 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11423
af233647
MK
11424 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11425 register numbers in comments.
11426 * x86-64-tdep.h: Update copyright year.
11427 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11428 Adjust for addition of %cs and %ss.
11429 * amd64fbsd-nat.c: Update copyright year.
11430 (reg_offset): Add register offsets for %cs and %ss.
11431 * amd64fbsd-tdep.c: Update copyright year.
11432 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11433 (amd64fbsd_sc_reg_offset): Likewise.
11434 * x86-64-linux-nat.c: Update copyright year.
11435 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11436 and %ss.
11437 * amd64nbsd-nat.c: Update copyright year.
11438 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11439 * amd64nbsd-tdep.c: Update copyright year.
11440 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11441 * x86-64-linux-tdep.c: Update copyright year.
11442 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11443 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11444 * regformats/reg-x86-64.dat: Add %cs and %ss.
11445
29ff87c5
MK
11446 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11447 variables to prevent long lines. Update comments to reflect
11448 reality.
11449
38d518c9
EZ
114502004-01-09 David Carlton <carlton@kealia.com>
11451
11452 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11453 * dwarf2read.c (read_namespace): Pull out name-generating code
11454 into namespace_name. Rename previous_namespace to previous_prefix
11455 and processing_current_namespace to processing_current_prefix..
11456 (namespace_name): New function.
11457 (add_partial_symbol): Substitute uses of pdi->name with
11458 actual_name.
11459 * cp-support.h: Rename processing_current_namespace to
11460 processing_current_prefix.
11461 Update copyright year.
11462 * cp-namespace.c: Rename processing_current_namespace to
11463 processing_current_prefix.
11464 Update copyright year.
fe61caab 11465
1e4728e7
AC
114662004-01-09 Andrew Cagney <cagney@redhat.com>
11467
11468 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11469
c77c642a
MK
114702004-01-09 Mark Kettenis <kettenis@gnu.org>
11471
11472 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11473 complaining.
11474 (process_one_symbol): Deal with N_PATCH stabs.
11475
b44e9041
EZ
114762004-01-09 Elena Zannoni <ezannoni@redhat.com>
11477
11478 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11479 ifdeffed code.
11480 Update copyright year.
38d518c9 11481
eccfb640
MC
114822004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11483
11484 * config/pa/tm-hppa.h: Update extern declarations for
11485 hppa32_hpux_frame_saved_pc_in_sigtramp,
11486 hppa32_hpux_frame_base_before_sigtramp, and
11487 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11488
848c5feb
MC
114892004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11490
11491 * config/pa/tm-hppah.h: Update copyright years.
11492
3cc5d663
AC
114932004-01-08 Andrew Cagney <cagney@redhat.com>
11494
11495 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11496 (mips_o32_reg_struct_has_addr): Delete function.
11497 (mips_gdbarch_init): Update.
11498 (mips_extract_struct_value_address): Delete function.
11499
bfec0b41
JJ
115002004-01-08 David Mosberger <davidm@hpl.hp.com>
11501
11502 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11503 reality.
11504
16e109ca
AC
115052004-01-07 Andrew Cagney <cagney@redhat.com>
11506
6214a8a1
AC
11507 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11508 architecture's elf flags (when available).
11509
8d5838b5
AC
11510 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11511 FPU to the start, check the MIPS FPU when looking for an old
11512 architecture.
11513 (set_mipsfpu_single_command): Update the architecture.
11514 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11515
480d3dd2
AC
11516 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11517 (mips_mask_address_p): Add "tdep" parameter.
11518 (show_mask_address, mips_addr_bits_remove): Update.
11519 (mips_dump_tdep): Update.
11520 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11521 (MIPS_STACK_ARGSIZE): Delete macro.
11522 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11523 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11524 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11525 (mips_dump_tdep): Update.
11526 (MIPS_SAVED_REGSIZE): Delete macro.
11527 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11528 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11529 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11530 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11531 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11532 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11533 (mips_pop_frame, return_value_location): Update.
11534 (mips_n32n64_return_value, mips_dump_tdep): Update.
11535
ec03c1ac
AC
11536 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11537 MIPS ABI.
11538
16e109ca
AC
11539 * mips-tdep.c: Update copyright.
11540 (mips_gdbarch_init): Merge two code blocks handling the register
11541 name and number layout.
11542
15255275
MS
115432004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11544
11545 * tracepoint.c (validate_actionline): Fix segv at EOF
11546
9f9057da
MC
115472004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11548
11549 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11550 properly for static fields.
11551
0127c0d3 115522004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11553 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11554
11555 * disasm.c: Update copyright to include 2004.
11556 (do_mixed_source_and_assembly): For uiout asm list
11557 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11558 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11559 the tuple/list. Move check for whether to close off the
fe61caab 11560 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11561 on each loop iteration.
11562
5269965e
AC
115632004-01-05 Andrew Cagney <cagney@redhat.com>
11564
54f1137d
AC
11565 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11566 should be a switch case and not a label.
11567 * mips-tdep.c (mips32_next_pc): Delete unused labels
11568 "greater_equal_branch" and "less_zero_branch".
11569 * jv-valprint.c (java_print_value_fields): Delete unused label
11570 "flush_it".
11571
5269965e
AC
11572 * target.c (unpush_target): Only close a target that is in the
11573 target stack.
11574
dbc22fa1
MK
115752004-01-05 Mark Kettenis <kettenis@gnu.org>
11576
9515395e
MK
11577 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11578 address from [sp + 64] instead of %o2.
11579
dbc22fa1
MK
11580 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11581 fixes PR backtrace/1476.
11582
5439edaa
AC
115832004-01-05 Andrew Cagney <cagney@redhat.com>
11584
11585 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11586 move to start of file.
11587 * i386-tdep.h (struct regcache): Add opaque declaration.
11588 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11589 declaration.
11590 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11591 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11592 * win32-nat.c (fake_create_process): Use ISO C style definition.
11593 * stabsread.c (define_symbol): Delete #ifndef
11594 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11595 stabs_argument_has_addr call, macro never defined.
11596
19061abe
MC
115972004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11598
11599 * op50-rom.c: Delete.
11600 * w89k-rom.c: Delete.
11601 * Makefile.in: Remove references.
11602
e53bef9f
MK
116032004-01-04 Mark Kettenis <kettenis@gnu.org>
11604
11605 * x86-64-tdep.c: Update copyright year.
11606 (struct amd64_register_info): Rename from x86_64_register_info.
11607 (amd64_register_info): Rename from x86_64_register_info.
11608 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11609 (amd64_register_name): Rename from x86_64_register_name.
11610 (amd64_register_type): Rename from x86_64_register_type.
11611 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11612 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11613 (amd64_dwarf_reg_to_regnum): Rename from
11614 x86_64_dwarf_reg_to_regnum.
11615 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11616 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11617 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11618 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11619 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11620 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11621 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11622 (amd64_frame_cache): Rename from x86_64_frame_cache.
11623 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11624 (amd64_frame_prev_register): Rename from
11625 x86_64_frame_prev_register.
11626 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11627 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11628 (amd64_sigtramp_frame_cache): Rename from
11629 x86_64_sigtramp_frame_cache.
11630 (amd64_sigtramp_frame_prev_register): Rename from
11631 x86_64_sigtramp_frame_prev_register.
11632 (amd64_sigtramp_frame_unwind): Rename from
11633 x86_64_sigtramp_frame_unwind.
11634 (amd64_sigtramp_frame_sniffer): Rename from
11635 x86_64_sigtramp_frame_sniffer.
11636 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11637 (amd64_frame_base): Rename from x86_64_frame_base.
11638 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11639 (amd64_frame_align): Rename from x86_64_frame_align.
11640 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11641 (amd64_regset_from_core_section): Rename from
11642 x86_64_regset_from_core_section.
11643 (x86_64_init_abi): Update comments.
11644
fca6aa58
NR
116452004-01-04 Nick Roberts <nick@nick.uklinux.net>
11646
11647 * MAINTAINERS (write after approval): Add myself.
11648
8ada74e3
MK
116492004-01-04 Mark Kettenis <kettenis@gnu.org>
11650
11651 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11652 `float' arguments.
11653
5154b0cd
MK
116542004-01-04 Mark Kettenis <kettenis@gnu.org>
11655
11656 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11657 such that it mentions a specific version of GCC that exhibits this
11658 bug.
11659
fb316966
MK
116602004-01-03 Mark Kettenis <kettenis@gnu.org>
11661
200cc553
MK
11662 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11663 structure that has a single `float' member, store it in %f1 in
11664 addition to %f0.
11665
e226a4a0
MK
11666 * sparc-sol2-nat.c: Add missing '\'.
11667
b9d4c5ed
MK
11668 * sparc-tdep.c (sparc32_return_value): New function.
11669 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11670 Remove functions.
11671 (sparc32_gdbarch_init): Set return_value, don't set
11672 extract_return_value, store_return_value, use_struct_convention
11673 and return_value_on_stack.
11674
fb316966
MK
11675 * sparc-sol2-nat.c: Add missing ')'.
11676
1af510a8
JB
116772004-01-03 J. Brobecker <brobecker@gnat.com>
11678
11679 * infrun.c (handle_step_into_function): New function.
11680 (handle_inferior_event): Extract out some code into the new
11681 function above.
11682
5cf4d23a
JB
116832004-01-03 J. Brobecker <brobecker@gnat.com>
11684
11685 * infrun.c (handle_inferior_event): Move the declaration of
11686 real_stop_pc inside the if blocks where it is used.
11687
60af1db2
MK
116882004-01-03 Mark Kettenis <kettenis@gnu.org>
11689
11690 * sparc64-tdep.c (sparc64_16_byte_align_p)
11691 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11692 Use check_typedef to get subtypes of structures and unions.
11693 (sparc64_store_return_value): Fix calculation of the appropriate
11694 offset into VALBUF when storing a structure or union.
11695 (sparc64_return_value): New function.
11696 (sparc64_use_struct_convention): Remove function.
11697 (sparc64_init_abi): Set return_value, don't set
11698 extract_return_value, store_return_value and
11699 use_struct_convention.
11700
1a901d3f
EZ
117012004-01-03 Eli Zaretskii <eliz@elta.co.il>
11702
11703 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11704 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11705 gdb/config/alpha/xm-alphaosf.h,
11706 gdb/config/powerpc/tm-ppcle-eabi.h,
11707 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11708 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11709 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11710 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11711 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11712 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11713 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11714 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11715 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11716 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11717 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11718 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11719 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11720 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11721 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11722 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11723 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11724 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11725 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11726 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11727 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11728 Remove lines for .cvsignore files.
11729
ef52e463
JB
117302004-01-03 J. Brobecker <brobecker@gnat.com>
11731
11732 * infrun.c: Back out the previous change.
11733
cb1bf9dc
MK
117342004-01-03 Mark Kettenis <kettenis@gnu.org>
11735
f0424ef6
MK
11736 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11737 sparc-*-sunos4* to the list of REMOVED configurations.
11738
cb1bf9dc
MK
11739 * configure.tgt: Add back sparc-*-vxworks*.
11740 * remote-vxsparc.c: Remove all includes except for "defs.h",
11741 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11742 Include "sparc-tdep.h".
11743 (SPARC_R_G1): New define.
11744 (vxsparc_gregset): New variable.
11745 (ext_format_sparc): Remove extern declaration.
11746 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11747 sparc32_supply_fpregset.
11748 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11749 sparc_collect_rwindow and sparc32_collect_fpregset.
11750 * config/sparc/tm-vxworks.h: New file, based on recently removed
11751 tm-vxsparc.h.
11752 * config/sparc/vxworks.mt: New file, based on recently removed
11753 vxworks.mt.
fe61caab 11754
5e938f9f
JB
117552004-01-03 J. Brobecker <brobecker@gnat.com>
11756
11757 * infrun.c (handle_step_into_function): New function.
11758 (handle_inferior_event): Extract out some code into the new
11759 function above.
11760
386c036b
MK
117612004-01-02 Mark Kettenis <kettenis@gnu.org>
11762
11763 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11764 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11765 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11766 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11767 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11768 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11769 (sparc_nat_h): New variable.
11770 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11771 (tm-sun4os4.h): Remove dependency.
11772 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11773 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11774 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11775 sparc-tdep.o): Update dependencies.
11776 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11777 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11778 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11779 dependencies.
11780 * configure.host: Remove existing sparc-*-lynxos*,
11781 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11782 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11783 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11784 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11785 triplets.
11786 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11787 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11788 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11789 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11790 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11791 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11792 sparc64-*-solaris2* and sparc64-*-* triplets.
11793 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11794 "symtab.h" and "objfiles.h".
11795 (BIAS): Remove define.
11796 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11797 (X_DISP19): Remove macros.
11798 (sparc_fetch_instruction): Remove function.
11799 (struct gdbarch_tdep): Remove definition.
11800 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11801 (sparc_breakpoint_from_pc): Remove function.
11802 (struct sparc64_frame_cache): Remove definition.
11803 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11804 sparc64_unwind_pc): Remove functions.
11805 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11806 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11807 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11808 (sparc64_frame_cache): Change return type to `struct
11809 sparc_frame_cache *'. Simply call sparc_frame_cache.
11810 (sparc64_frame_this_id, sparc64_frame_prev_register,
11811 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11812 instead of `struct sparc64_frame_cache.
11813 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11814 sparc_analyze_control_transfer, sparc_software_single_step,
11815 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11816 _initialize_sparc64_tdep): Remove functions.
11817 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11818 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11819 macros.
11820 (sparc64_supply_gregset, sparc64_collect_gregset,
11821 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11822 (sparc64_init_abi): New function.
11823 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11824 inclusion guard. Include "sparc-tdep.h".
11825 (BIAS): Define.
11826 (r_tstate_offset, r_fprs_offset): New defines.
11827 (enum sparc_regnum): Remove defenition.
11828 (enum sparc64_regnum): Reformat.
11829 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11830 (sparc64_init_abi, sparc64_supply_gregset,
11831 sparc64_collect_gregset, sparc64_supply_fpregset,
11832 sparc64_collect_fpregset): New prototypes.
11833 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11834 Add extern declarations.
11835 (sparc64_sol2_init_abi): New prototype.
11836 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11837 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11838 prototypes.
11839 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11840 "sparnbsd-nat.h".
11841 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11842 functions.
11843 (_initialize_sparc64fbsd_nat): Remove initialization of
11844 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11845 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11846 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11847 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11848 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11849 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11850 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11851 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11852 (sparc64fbsd_r_y_offset): Remove variables.
11853 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11854 Make static and const.
11855 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11856 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11857 functions.
11858 (sparc64fbsd_gregset): New variable.
11859 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11860 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11861 and sparc64_supply_fpregset.
11862 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11863 (sparc64fbsd_sigtramp_frame_this_id)
11864 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11865 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11866 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11867 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11868 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11869 * sparcnbsd-tdep.c: Update copyright year. Include
11870 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11871 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11872 "value.h" and "sparcnbsd-tdep.h".
11873 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11874 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11875 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11876 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11877 defines.
11878 (sparcnbsd_gregset): New variable.
11879 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11880 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11881 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11882 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11883 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11884 variables.
11885 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11886 (sparc32nbsd_sigcontext_frame_this_id)
11887 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11888 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11889 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11890 (sparcnbsd_get_longjmp_target_32,
11891 sparcnbsd_get_longjmp_target_64): Remove functions.
11892 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11893 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11894 sparcnbsd_init_elf): Remove.
11895 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11896 (sparcnbsd_elf_init_abi): New functions.
11897 (_initialize_sparcnbsd_tdep): New prototype.
11898 (_initialize_sparnbsd_tdep): Update.
11899 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11900 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11901 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11902 * config/sparc/linux.mh: Update comment.
11903 (XM_FILE, HOST_IPC): Remove variables.
11904 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11905 sparc-linux-nat.o.
11906 * config/sparc/linux.mt: Update comment.
11907 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11908 * config/sparc/nbsd.mt: Reformat.
11909 * config/sparc/nbsd64.mh: Update comment.
11910 (NATDEPFILES): Add sparc-nat.o.
11911 * config/sparc/nbsd64.mt: Update comment.
11912 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11913 (TM_FILE): Set to tm-nbsd.h.
11914 * config/sparc/nbsdelf.mh: Update comment.
11915 (NATDEPFILES): Add sparc-nat.o.
11916 (XM_FILE): Delete.
11917 * config/sparc/nbsdaout.mh: Update comment.
11918 (NATDEPFILES): Add sparc-nat.o
11919 (XM_FILE): Delete.
11920 * config/sparc/nm-linux.h: Update copyright year. Don't include
11921 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11922 inclusion.
11923 (KERNEL_U_SIZE): Remove define.
11924 (kernel_u_size): Remove prototype.
11925 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11926 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11927 "regcache.h".
11928 (CHILD_PREPARE_TO_STORE): Remove define.
11929 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11930 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11931 sparcnbsd-nat.c: Rewrite files.
11932 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11933 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11934 sparcnbsd-tdep.h: Remove files.
11935 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11936 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11937 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11938 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11939 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11940 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11941 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11942 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11943 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11944 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11945 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11946 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11947 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11948 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11949 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11950 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11951 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11952 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11953 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11954
ee84457a
AC
119552004-01-02 Andrew Cagney <cagney@redhat.com>
11956
11957 From 2003-12-18 Kazuhiro Inaoka:
11958 * configure.host: Add m32r-linux target.
11959
0bc2134e
MC
119602004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11961
11962 * top.c (print_gdb_version): Update year to 2004.
11963
89a72f9c
MM
119642004-01-02 Mark Mitchell <mark@codesourcery.com>
11965
11966 * MAINTAINERS: Add myself to the write-after-approval category.
11967
86b013ed
DJ
119682004-01-02 Daniel Jacobowitz <drow@mvista.com>
11969
11970 From Bernardo Innocenti <bernie@develer.com>:
11971 * configure.tgt: Add uClinux target.
11972
e42c9534
AC
119732004-01-02 Andrew Cagney <cagney@redhat.com>
11974
11975 * utils.c (do_my_cleanups): Make static, add forward declaration.
11976 * defs.h (do_my_cleanups): Delete declaration.
11977
162467d3
EZ
119782004-01-02 Eli Zaretskii <eliz@elta.co.il>
11979
11980 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11981 bfd/ChangeLog-0203.
11982
78434e59
MK
119832004-01-02 Mark Kettenis <kettenis@gnu.org>
11984
11985 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11986 in <machine/reg.h>.
11987 * configure, config.in: Regenerate.
11988
48efe704
AC
11989For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11990tui/ChangeLog-1998-2003.
c906108c
SS
11991\f
11992Local Variables:
11993mode: change-log
11994left-margin: 8
11995fill-column: 74
11996version-control: never
11997End:
This page took 1.120641 seconds and 4 git commands to generate.