* fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9a6c8ef4
MK
12004-09-19 Mark Kettenis <kettenis@gnu.org>
2
578c1c03
MK
3 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
4 * fbsd-nat.h: New file.
5 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
6 (fbsd_nat_h): New variable.
7 (fbsd-nat.o): New dependency.
8
7a7b73b7
MK
9 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
10 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
11
9a6c8ef4
MK
12 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
13 comment.
14
72d5681a
PH
152004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
16
17 * ada-exp.y (type_int): New function to add layer of abstraction
18 around references to expression types.
19 (type_long): Ditto.
20 (type_long_long): Ditto.
21 (type_float): Ditto.
22 (type_double): Ditto.
23 (type_long_double): Ditto.
24 (type_char): Ditto.
25 (type_system_address): Ditto.
26 (simple_exp): Use type_* functions in place of builtin_*
27 variables.
28 (exp): Ditto.
29 (write_var_from_name): Ditto.
30 (write_object_renaming): Ditto.
31 * ada-lang.c (ada_create_fundamental_type): Remove redundant
32 declaration.
33 (build_ada_types): Remove, replacing with...
34 (ada_language_arch_info): New function to initialize primitive
35 type vector in language_arch_info.
36 (ada_array_length): Remove use of builtin_type_ada_int.
37 (value_pos_atr): Ditto.
38 (ada_evaluate_subexp): Ditto.
39 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
40 builtin_type_ada_long_long, builtin_type_ada_char,
41 builtin_type_ada_float, builtin_type_ada_double,
42 builtin_type_ada_long_double, builtin_type_ada_natural,
43 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
44 (ada_builtin_types): Remove.
45 (ada_language_defn): Remove entries for la_builtin_type_vector and
46 string_char_type and use ada_language_arch_info.
47 (_initialize_ada_language): Do type-vector initialization along
48 the lines of c-lang.c.
49 (ada_create_fundamental_type): Break up line.
50 (ada_dump_symtab): Remove unused function.
51 (enum ada_primitive_types): Define.
52 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
53 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
54 builtin_type_ada_float, builtin_type_ada_double,
55 builtin_type_ada_long_double, builtin_type_ada_natural,
56 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
57 * ada-lex.l: Use type_* functions in place of builtin_* variables.
58 (processInt): Ditto.
59 (processReal): Ditto.
60 (name_lookup): Ditto.
61 * ada-typeprint.c (print_range): Use builtin_type_int, not
62 builtin_type_ada_int.
63
4f0be353
MK
642004-09-18 Mark Kettenis <kettenis@gnu.org>
65
30b0e2d8
MK
66 * i386-tdep.c (i386_register_name): Rename regno to regnum.
67
4f0be353
MK
68 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
69 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
70 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
71 * configure.in: Improve checks for curses library by checking for
72 mvwaddstr instead of initscr. Drop HP curses in favour of
73 standard curses on HP-UX.
74 * configure: Regenerated.
75
72d5681a 762004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
77
78 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
79 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
80 Minor formatting changes.
81 (empty_array): Slight rewrite for formatting.
82 (emit_char,parse,ada_language_defn,build_ada_types,
83 ada_is_exception_sym, _initialize_ada_language): Move
84 definitions around.
85 (ada_dump_symtab): Remove unused definition.
86 (ada_maybe_exception_partial_symbol): Remove unused definition.
87
1c8c7407
AC
882004-09-16 Andrew Cagney <cagney@gnu.org>
89
7681f339
AC
90 * inf-child.c: Include "gdb_string.h".
91 (inf_child_core_file_to_sym_file): Delete.
92 (inf_child_target): Set to_fetch_registers and to_store_registers.
93 * inf-ptrace.c: Include "gdb_string.h".
94 * Makefile.in: Update all dependencies.
95
1c8c7407
AC
96 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
97 problem.
98
65596487
JB
992004-09-14 Joel Brobecker <brobecker@gnat.com>
100
101 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
102 call to heuristic_proc_desc. Remove code that became redundant
103 as a consequence.
104 (read_next_frame_reg): Remove special case for SP_REGNUM.
105 (set_reg_offset): Fix small typo.
106 (reset_saved_regs): New procedure.
107 (mips32_heuristic_proc_desc): No longer compute a fake
108 procedure descriptor. Compute the full frame cache instead.
109 Some minor comment reformatting.
110
95575b2e
AC
1112004-09-14 Andrew Cagney <cagney@gnu.org>
112
f200c492
AC
113 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
114 maintainer.
115
95575b2e
AC
116 * thread-db.c (thread_db_new_objfile): Assume that there is a
117 child process.
118
69657671
JB
1192004-09-13 Jim Blandy <jimb@redhat.com>
120
121 * valops.c (value_assign): Move 'buffer' to the enclosing block,
122 so that its storage isn't referenced after its lifetime ends.
123
6c4182dd
JB
124 * valops.c (value_assign): 'use_buffer' is initialized to zero,
125 and never assigned to. Delete it, and the 'if (use_buffer)'
126 clauses. Delete 'raw_buffer', since it is now unused.
127
ee31a58d
AC
1282004-09-13 Andrew Cagney <cagney@gnu.org>
129
2c0fc042
AC
130 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
131 * configure: Re-generate.
132 * nlm/Makefile.in (TAGS): Update.
133 * Makefile.in (TAGS): Update.
134 * config/vax/nbsd.mt (TM_FILE): Update.
135 * config/sparc/vxworks.mt (TM_FILE): Update.
136 * config/sparc/sol2.mt (TM_FILE): Update.
137 * config/sparc/sol2-64.mt (TM_FILE): Update.
138 * config/sparc/obsd64.mt (TM_FILE): Update.
139 * config/sparc/obsd.mt (TM_FILE): Update.
140 * config/sparc/nbsd64.mt (TM_FILE): Update.
141 * config/sparc/nbsd.mt (TM_FILE): Update.
142 * config/sparc/linux64.mt (TM_FILE): Update.
143 * config/sparc/linux.mt (TM_FILE): Update.
144 * config/sparc/fbsd.mt (TM_FILE): Update.
145 * config/sh/wince.mt (TM_FILE): Update.
146 * config/sh/nbsd.mt (TM_FILE): Update.
147 * config/sh/linux.mt (TM_FILE): Update.
148 * config/sh/embed.mt (TM_FILE): Update.
149 * config/s390/s390.mt (TM_FILE): Update.
150 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
151 * config/rs6000/rs6000.mt (TM_FILE): Update.
152 * config/rs6000/aix4.mt (TM_FILE): Update.
153 * config/powerpc/vxworks.mt (TM_FILE): Update.
154 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
155 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
156 * config/powerpc/obsd.mt (TM_FILE): Update.
157 * config/powerpc/nbsd.mt (TM_FILE): Update.
158 * config/powerpc/linux.mt (TM_FILE): Update.
159 * config/powerpc/aix.mt (TM_FILE): Update.
160 * config/pa/obsd.mt (TM_FILE): Update.
161 * config/pa/linux.mt (TM_FILE): Update.
162 * config/pa/hppahpux.mt (TM_FILE): Update.
163 * config/pa/hppa64.mt (TM_FILE): Update.
164 * config/pa/hppa.mt (TM_FILE): Update.
165 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
166 * config/mips/wince.mt (TM_FILE): Update.
167 * config/mips/vxmips.mt (TM_FILE): Update.
168 * config/mips/nbsd.mt (TM_FILE): Update.
169 * config/mips/linux.mt (TM_FILE): Update.
170 * config/mips/irix6.mt (TM_FILE): Update.
171 * config/mips/irix5.mt (TM_FILE): Update.
172 * config/mips/embed.mt (TM_FILE): Update.
173 * config/m68k/vxworks68.mt (TM_FILE): Update.
174 * config/m68k/st2000.mt (TM_FILE): Update.
175 * config/m68k/os68k.mt (TM_FILE): Update.
176 * config/m68k/obsd.mt (TM_FILE): Update.
177 * config/m68k/nbsd.mt (TM_FILE): Update.
178 * config/m68k/monitor.mt (TM_FILE): Update.
179 * config/m68k/linux.mt (TM_FILE): Update.
180 * config/m68k/cisco.mt (TM_FILE): Update.
181 * config/ia64/linux.mt (TM_FILE): Update.
182 * config/ia64/aix.mt (TM_FILE): Update.
183 * config/ia64/ia64.mt (TM_FILE): Update.
184 * config/i386/vxworks.mt (TM_FILE): Update.
185 * config/i386/obsd64.mt (TM_FILE): Update.
186 * config/i386/obsd.mt (TM_FILE): Update.
187 * config/i386/nto.mt (TM_FILE): Update.
188 * config/i386/nbsd64.mt (TM_FILE): Update.
189 * config/i386/nbsd.mt (TM_FILE): Update.
190 * config/i386/linux64.mt (TM_FILE): Update.
191 * config/i386/linux.mt (TM_FILE): Update.
192 * config/i386/i386sol2.mt (TM_FILE): Update.
193 * config/i386/i386lynx.mt (TM_FILE): Update.
194 * config/i386/fbsd64.mt (TM_FILE): Update.
195 * config/i386/fbsd.mt (TM_FILE): Update.
196 * config/i386/cygwin.mt (TM_FILE): Update.
197 * config/h8300/h8300.mt (TM_FILE): Update.
198 * config/frv/frv.mt (TM_FILE): Update.
199 * config/cris/cris.mt (TM_FILE): Update.
200 * config/arm/wince.mt (TM_FILE): Update.
201 * config/arm/nbsd.mt (TM_FILE): Update.
202 * config/arm/linux.mt (TM_FILE): Update.
203 * config/arm/embed.mt (TM_FILE): Update.
204 * config/alpha/nbsd.mt (TM_FILE): Update.
205 * config/alpha/fbsd.mt (TM_FILE): Update.
206 * config/alpha/alpha.mt (TM_FILE): Update.
207 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
208 * config/alpha/alpha-linux.mt (TM_FILE): Update.
209
362646f5
AC
210 Eliminate event_loop_p, always has the value 1.
211 * defs.h (event_loop_p): Delete macro.
212 * breakpoint.c (until_break_command): Simplify.
213 * utils.c (prompt_for_continue): Simplify.
214 * tracepoint.c (read_actions): Simplify.
215 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
216 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
217 (set_prompt, init_main): Simplify.
218 (init_signals, disconnect): Delete, unused.
219 * remote.c (remote_async_resume)
220 (extended_remote_async_create_inferior): Simplify.
221 * mi/mi-interp.c (mi_input): Delete, unused.
222 (mi_interpreter_resume, mi_command_loop): Simplify.
223 * interps.c (current_interp_command_loop): Simplify.
224 * infrun.c (proceed): Simplify.
225 * infcmd.c (run_command, continue_command, step_1, jump_command)
226 (until_command, advance_command, finish_command)
227 (interrupt_target_command): Simplify.
228 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
229
ee31a58d
AC
230 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
231 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
232 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
233 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
234 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
235 * mips-tdep.c (mips_dump_tdep): Do not print same.
236
b7ffc4a8
AC
2372004-09-12 Andrew Cagney <cagney@gnu.org>
238
2bfb72ee
AC
239 * valprint.c (print_longest): Use fputs_filtered. Make "val"
240 const.
241 * Makefile.in (valprint.o): Delete explict rule.
242
4f17c3c1
AC
243 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
244 reported by Dave Anderson.
245
f810308b
AC
246 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
247
b7ffc4a8
AC
248 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
249
28b41c52
AC
2502004-09-12 Salvador E. Tropea <set@users.sf.net>
251 Andrew Cagney <cagney@gnu.org>
252
253 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
254 (mi_cmd_data_list_register_values)
255 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
256 the register number computation.
257
5bf970f9
AC
2582004-09-12 Andrew Cagney <cagney@gnu.org>
259
260 * ppcnbsd-nat.c: Include "inf-ptrace.h".
261 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
262 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
263 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
264 target.
265 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
266 inf-ptrace.o and inf-child.o.
267 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
268 * Makefile.in: Update dependencies.
269
0759e0bf
AC
2702004-09-11 Andrew Cagney <cagney@gnu.org>
271
272 * language.c (hex_string, hex_string_custom): Move from here ...
273 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
274 (CELLSIZE): Increase to 50.
275 * language.h (hex_string, hex_string_custom): Move from here ...
276 * defs.h: ... to here.
277 * Makefile.in: Update all dependencies.
278
bb599908
PH
2792004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
280
281 * language.c (local_hex_format_custom): Remove.
282 (local_hex_string): Rename to hex_string, use C format, and move to
283 utils.c
284 (local_hex_string_custom): Rename to hex_string_custom and change
285 interface. Now uses C format. Move to utils.c
286 (local_octal_format_custom): Remove.
287 (local_decimal_format_custom): Remove.
288 (unknown_language_defn): Remove language-specific number
289 formatting entries.
290 (auto_language_defn): Ditto.
291 (local_language_defn): Ditto.
292 * language.h (struct language_format_info): Delete declaration.
293 (struct language_defn): Remove language_format_info fields
294 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
295 (local_binary_format): Remove macro.
296 (local_binary_format_prefix): Remove macro.
297 (local_binary_format_specifier): Remove macro.
298 (local_binary_format_suffix): Remove macro.
299 (local_octal_format): Remove macro.
300 (local_octal_format_prefix): Remove macro.
301 (local_octal_format_specifier): Remove macro.
302 (local_octal_format_suffix): Remove macro.
303 (local_decimal_format): Remove macro.
304 (local_decimal_format_prefix): Remove macro.
305 (local_decimal_format_specifier): Remove macro.
306 (local_decimal_format_suffix): Remove macro.
307 (local_hex_format): Remove macro.
308 (local_hex_format_prefix): Remove macro.
309 (local_hex_format_specifier): Remove macro.
310 (local_hex_format_suffix): Remove macro.
311 (local_decimal_format_custom): Remove.
312 (local_octal_format_custom): Remove.
313 (local_hex_format_custom): Remove.
314 (local_hex_string): Rename to hex_string and move to defs.h.
315 (local_hex_string_custom): Rename to hex_string_custom, change
316 interface, and move to defs.h.
317 * utils.c: (int_string): New function.
318 (hex_string): New function (from language.c).
319 (hex_string_custom): New function (from language.c).
320 (octal2str): New function.
321 (decimal2str): Add width parameter.
322 (paddr_u): Use new decimal2str interface.
323 (paddr_d): Ditto.
324 * defs.h (hex_string): Declare.
325 (hex_string_custom): Declare.
326 (int_string): Declare.
327 * printcmd.c (print_scalar_formatted): Remove localized binary
328 formatting.
329 * valprint.c (print_longest): Use int_string.
330 (print_floating): Use C hex format.
331 (print_hex_chars): Ditto.
332 (print_binary_chars): Remove language-specific formatting.
333 (print_octal_chars): Use C octal format.
334 (print_decimal_chars): Delocalize format.
335 (print_decimal): Remove.
336 * ada-lang.c (ada_language_defn): Remove language-specific number
337 formatting entries.
338 * p-lang.c (pascal_language_defn): Ditto.
339 * c-lang.c (c_language_defn): Ditto.
340 (cplus_language_defn): Ditto.
341 (asm_language_defn): Ditto.
342 (minimal_language_defn): Ditto.
343 * f-lang.c (f_language_defn): Ditto.
344 * jv-lang.c (java_language_defn): Ditto.
345 * m2-lang.c (m2_language_defn): Ditto.
346 * scm-lang.c (scm_language_defn): Ditto.
347 * objc-lang.c (objc_language_defn): Ditto.
348 * memattr.c (mem_info_command): Use renamed hex_string_custom with
349 new interface.
350 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
351 * ui-out.c (ui_out_field_core_addr): Ditto.
352 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
353 * exec.c (print_section_info): Ditto.
354 * i387-tdep.c (print_i387_status_word): Ditto.
355 (print_i387_control_word): Ditto.
356 (i387_print_float_info): Ditto.
357 * maint.c (maint_print_section_info): Ditto.
358 * solib.c (info_sharedlibrary_command): Ditto.
359 * somsolib.c (som_sharedlibrary_info_command): Ditto.
360 * symtab.c (print_msymbol_info): Ditto.
361 * tracepoint.c (tracepoints_info): Ditto.
362 * solib-frv.c (lm_base): Ditto.
363 (frv_current_sos): Ditto.
364 (enable_break2): Ditto.
365 (enable_break): Ditto.
366 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
367 (process_one_symbol): Ditto.
368 * infcmd.c (program_info): Ditto.
369 * mdebugread.c (parse_partial_symbols): Ditto.
370 * symfile.c (add_symbol_file_command): Ditto.
371 * cli/cli-cmds.c (edit_command): Ditto.
372 (list_command): Ditto.
373 * infcall.c (call_function_by_hand): Ditto.
374 * remote-vx.c (vx_run_files_info): Ditto.
375 (vx_wait): Ditto.
376 (vx_attach): Ditto.
377 (vx_detach): Ditto.
378 (vx_kill): Ditto.
379 * aix-thread.c (pdc_symbol_addrs): Ditto.
380 (pdc_read_regs): Ditto.
381 (pdc_write_regs): Ditto.
382 (pdc_read_data): Ditto.
383 (pdc_write_data): Ditto.
384 * d10v-tdep.c (display_trace): Ditto.
385 * rs6000-nat.c (find_toc_address): Ditto.
386 * aix-thread.c: Don't include language.h.
387 * buildsym.c: Ditto.
388 * dbxread.c: Ditto.
389 * mdebugread.c: Ditto.
390 * rs6000-nat.c: Ditto.
391 * buildsym.c (make_blockvector): Use renamed hex_string.
392
33f2d567
JM
3932004-09-10 Jason Molenda (jmolenda@apple.com)
394
395 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
396 chars after 'if' or 'while' commands in user-defined commands.
397
7b90c3f9
JB
3982004-09-08 Jim Blandy <jimb@redhat.com>
399
400 Fix bug reported and analyzed by Olivier Crete:
401 * symfile.c (copy_section_addr_info): New function.
402 (symbol_file_add_with_addrs_or_offsets): Use it to save the
403 original set of address arguments, instead of handwritten code
404 that uses one length to allocate and a different length to
405 initialize. Use make_cleanup_free_section_addr_info.
406 * symfile.h (copy_section_addr_info): New declaration.
407 * utils.c: #include "symfile.h".
408 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
409 New functions.
410 * defs.h (make_cleanup_free_section_addr_info): New declaration.
411 * Makefile.in (utils.o): Update dependencies.
412
b26a6851
AC
4132004-09-08 Andrew Cagney <cagney@gnu.org>
414
415 * thread-db.c (keep_thread_db): Delete.
416 (thread_db_new_objfile, thread_db_create_inferior)
417 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
418
be24b061
MK
4192004-09-08 Mark Kettenis <kettenis@gnu.org>
420
f6792ef4
MK
421 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
422 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
423 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
424 (i386_frameless_signal_p): Remove prototype.
425 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
426 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
427 I386_SSE_NUM_REGS.
428 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
429 instead of FP0_REGNUM.
430 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
431 of FP0_REGNUM and FPC_REGNUM.
432
eeefdaa7
MK
433 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
434 (sunos_solib_create_inferior_hook): Don't call
435 sunos_relocate_main_executable.
436
be24b061
MK
437 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
438 solib_svr4_fetch_link_map_offsets to
439 svr4_ilp32_fetch_link_map_offsets.
440 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
441 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
442 svr4_ilp32_fetch_link_map_offsets.
443 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
444
7c679d16
JB
4452004-09-07 Jim Blandy <jimb@redhat.com>
446
447 * frame.h (frame_register): Doc fix.
448
1f04aa62
AC
4492004-09-07 Andrew Cagney <cagney@gnu.org>
450
451 * vx-share/wait.h: Delete #ifdef USG.
452 * utils.c (request_quit): Ditto.
453 * tui/tui.c (tui_reset): Ditto.
454 * remote.c: Ditto.
455 * remote-sds.c: Ditto.
456 * remote-rdi.c: Ditto.
457 * mdebugread.c: Ditto.
458 * m68klinux-nat.c: Ditto.
459 * infttrace.c: Ditto.
460 * infptrace.c: Ditto.
461 * i386v-nat.c: Ditto.
462 * exec.c: Ditto.
463 * dbxread.c: Ditto.
464 * core-aout.c: Ditto.
465
90edbfbc
JB
4662004-09-05 Joel Brobecker <brobecker@gnat.com>
467
468 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
469 heuristic_proc_desc.
470 (mips_insn32_frame_cache): Likewise.
471
01f4bf2b
JB
4722004-09-04 Joel Brobecker <brobecker@gnat.com>
473
474 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
475 left behind by error.
476
8511a048
JB
4772004-09-04 Joel Brobecker <brobecker@gnat.com>
478
479 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
480 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
481
649dfe9f
JB
4822004-09-04 Joel Brobecker <brobecker@gnat.com>
483
484 * config/rs6000/xm-aix4.h: Remove this file.
485 * config/rs6000/aix4.mh (XM_FILE): Delete.
486
6e50f889
JB
4872004-09-04 Joel Brobecker <brobecker@gnat.com>
488
489 * config/rs6000/xm-rs6000.h: Remove this file.
490 * config/rs6000/rs6000.mh (XM_FILE): Remove.
491
b8c4aece
AC
4922004-09-03 Andrew Cagney <cagney@gnu.org>
493
fb603883
AC
494 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
495 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
496 only use.
497
c9343fd1
AC
498 * mips-tdep.c (temp_saved_regs): Delete.
499 (set_reg_offset): Replace saved_regs parameter with this_cache.
500 (heuristic_proc_desc, mips16_heuristic_proc_desc)
501 (mips32_heuristic_proc_desc): Add this_cache parameter.
502 (mips_insn32_frame_cache, mips_insn16_frame_cache)
503 (after_prologue): Pass a NULL this_cache.
504
9733cfe1
AC
505 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
506 non-kernel trap prologues.
507
0d5febcc
AC
508 * mips-tdep.c (find_proc_desc): Delete function.
509 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
510 simplify.
511 (mips_insn16_frame_cache): Replace find_proc_desc with code from
512 mips_insn32_frame_cache.
513
9733cfe1 514 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
515 Simplify as NEXT_FRAME is NULL.
516 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
517
177f84a3
AC
518 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
519 local variable.
520 (mips_skip_prologue): Update.
521
465f7520
AC
522 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
523 "cur_frame" parameter.
177f84a3
AC
524 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
525 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 526
e38b8658
AC
527 * config/vax/nm-obsd.h: Delete file.
528 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
529 * config/vax/nm-nbsd.h: Delete file.
530 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
531 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
532 * config/sh/nm-nbsd.h: Delete file.
533 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
534 * config/rs6000/nm-rs6000ly.h: Delete file.
535 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
536 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
537 * config/powerpc/nm-obsd.h: Delete file.
538 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
539 * config/powerpc/nm-nbsd.h: Delete file.
540 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
541 * config/pa/nm-obsd.h: Delete file.
542 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
543 * config/mips/nm-nbsd.h: Delete file.
544 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
545 * config/m88k/nm-obsd.h: Delete file.
546 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
547 * config/m68k/nm-nbsd.h: Delete file.
548 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
549 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
550 * config/i386/nm-nbsd.h: Delete file.
551 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
552 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
553 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
554 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
555 * config/i386/nm-i386lynx.h: Delete file.
556 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
557 * config/arm/nm-nbsd.h: Delete file.
558 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
559 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
560
be1ed680
AC
561 * config/i386/tm-fbsd.h: Delete file.
562 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
563 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
564
4b392b26
AC
565 * config/rs6000/tm-rs6000-aix4.h: Delete file.
566 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
567 * config/rs6000/aix4.mt (TM_FILE): Set to
568 config/rs6000/tm-rs6000.h.
569 * config/powerpc/tm-ppc-aix.h: Delete file.
570 * config/powerpc/aix.mt (TM_FILE): Set to
571 config/rs6000/tm-rs6000.h.
572 * config/m68k/tm-linux.h: Delete file.
573 * config/m68k/linux.mt (TM_FILE): Set to solib.h
574 * config/i386/tm-linux64.h: Delete file.
575 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
576 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
577
f3219c75
AC
578 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
579 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
580 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
581 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
582 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
583 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
584 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
585 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
586 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
587
b8c4aece
AC
588 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
589 gdb_host_cpu.
590
8ac2e020
JB
5912004-09-02 Joel Brobecker <brobecker@gnat.com>
592
593 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
594 Minor reformatting. Some code factoring.
595
c185a355
AC
5962004-09-02 Andrew Cagney <cagney@gnu.org>
597
63f22f0d
AC
598 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
599 * config/vax/tm-nbsd.h: Delete file.
600 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
601 * config/sparc/tm-vxworks.h: Delete file.
602 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
603 * config/sparc/tm-nbsd.h: Delete file.
604 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
605 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
606 * config/sparc/tm-linux.h: Delete file.
607 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
608 * config/s390/tm-linux.h: Delete file.
609 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
610 * config/pa/tm-bsd.h: Delete file.
611 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
612 * config/m68k/tm-obsd.h: Delete file.
613 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
614 * config/m68k/tm-nbsd.h: Delete file.
615 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
616 * config/i386/tm-vxworks.h: Delete file.
617 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
618 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
619 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
620 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
621 * config/i386/tm-nbsd.h: Delete file.
622 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
623 * config/i386/tm-i386lynx.h: Delete file.
624 * config/cris/cris.mt (TM_FILE): Set to solib.h.
625 * config/cris/tm-cris.h: Delete file.
626
0f475e27
AC
627 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
628 * configure: Re-generate.
629 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
630 * config/arm/tm-nbsd.h: Delete file.
631
458ed000
AC
632 * config/powerpc/tm-ppcle-sim.h: Delete.
633 * config/powerpc/tm-ppcle-eabi.h: Delete.
634 * config/powerpc/tm-nbsd.h: Delete.
635 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
636 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
637 tm-ppcle-eabi.h.
638
f14375f3
AC
639 * config/i386/nto.mh (NAT_FILE): Delete.
640 * config/i386/nm-nto.h: Delete.
641
c34d127c
AC
642 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
643 * config/m68k/tm-os68k.h: Ditto.
644 * config/m68k/tm-monitor.h: Ditto.
645 * config/m68k/tm-cisco.h: Ditto.
646 * config/m68k/st2000.mt (TM_FILE): Delete.
647 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
648 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
649 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
650 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
651
f7f0fe03
AC
652 * config/m68k/tm-st2000.h: Delete.
653 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
654 * config/sparc/fbsd.mt (TM_FILE): Delete.
655 * config/sparc/tm-fbsd.h: Delete.
656
a2558533
AC
657 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
658 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
659 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
660
b78960be
AC
661 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
662 GDB_TM_FILE and GDB_XM_FILE.
663 * gdbarch.c: Re-generate.
664 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
665 quotes in macro definition.
666 * configure.in: Re-generate.
667
4d60522e
AC
668 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
669 validating architecture methods.
670 * gdbarch.c: Re-generate.
671
5010d38b
AC
672 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
673 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
674 GDB_MULTI_ARCH_PARTIAL.
675 * gdbarch.h: Re-generate.
676
c185a355
AC
677 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
678 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
679 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
680 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
681 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
682 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
683 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
684 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
685 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
686 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
687 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
688 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
689
14aaa6ab
AC
6902004-09-01 Andrew Cagney <cagney@gnu.org>
691
692 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
693 and main_func_highpc.
694 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
695 * objfiles.c (init_entry_point_info, objfile_relocate): Update
696 * nlmread.c (nlm_symfile_read): Update.
697
a343eb3c
JB
6982004-09-01 Joel Brobecker <brobecker@gnat.com>
699
700 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
701 (mips_insn32_frame_cache): Inline call to find_proc_desc.
702 (find_proc_desc): Remove dead code.
703
4fbbbd07
JB
7042004-09-01 Joel Brobecker <brobecker@gnat.com>
705
706 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
707
84acb35a
JJ
7082004-09-01 Jeff Johnston <jjohnstn@redhat.com>
709
710 * observer.sh: Add struct so_list declaration.
711 * Makefile.in: Add dependencies on observer.h for solib.c and
712 breakpoint.c.
713 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
714 function.
715 (_initialize_breakpoint): Register
716 disable_breakpoints_in_unloaded_shlib as an observer of the
717 "solib unloaded" observation event.
718 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
719 call decode_line_1 so unfound breakpoint errors are silent.
720 * solib.c (update_solib_list): When a solib is discovered to have
721 been unloaded by the program, notify all observers of the
722 "solib unloaded" observation event.
723
c8cd9f6c
AC
7242004-09-01 Andrew Cagney <cagney@gnu.org>
725
726 * frame.c: Include "objfiles.h".
727 (inside_main_func): New function.
728 (get_prev_frame): Use new inside_main_func.
729 * Makefile.in (frame.o): Update dependencies.
730 * defs.h (inside_main_func): Delete declaration.
731 * blockframe.c (inside_main_func): Delete function.
732
1168df01
JB
7332004-08-31 Jim Blandy <jimb@redhat.com>
734
735 * dwarf2read.c (is_vtable_name): New function, based on logic from
736 read_structure_type, but passing the correct length to strncmp,
737 and using 'sizeof' instead of 'strlen'.
738 (read_structure_type): Call it.
739
f14f9744
JB
7402004-08-31 Joel Brobecker <brobecker@gnat.com>
741
742 * config/powerpc/aix.mh: Add comment.
743
386d4518
PG
7442004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
745
746 * MAINTAINERS: Add self to Write-After-Approval.
747
7d97d5e2
MI
7482004-08-30 Manoj Iyer <manjo@austin.ibm.com>
749
750 * MAINTAINERS: Add self to Write-After-Approval.
751
68f53502
AC
7522004-08-30 Andrew Cagney <cagney@gnu.org>
753
754 Fix PR breakpoints/1757.
755 * infrun.c (struct execution_control_state): Replace
756 remove_breakpoints_on_following_step with
757 step_after_step_resume_breakpoint.
758 (init_execution_control_state): Update.
759 (handle_inferior_event): For signals, when stepping off a
760 breakpoint, set step_after_step_resume_breakpoint. When
761 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
762 (keep_going): Delete code handling
763 remove_breakpoints_on_following_step.
764
7ca2d3a3
DL
7652004-08-29 David Lecomber <david@streamline-computing.com>
766
767 Fix PR gdb/648
768 * language.h (enum array_ordering): New enum.
769 * language.h (struct language_defn): New la_array_ordering
770 attribute.
771 * language.c (unknown_language_defn, auto_language_defn)
772 (local_language_defn): Ditto.
773 * ada-lang.c (ada_language_defn): Ditto.
774 * c-lang.c (c_language_defn, cplus_language_defn)
775 (asm_language_defn, minimal_language_defn): Ditto.
776 * f-lang.c (f_language_defn): Ditto.
777 * jv-lang.c (java_language_defn): Ditto.
778 * m2-lang.c (f_language_defn): Ditto.
779 * objc-lang.c (objc_language_defn): Ditto.
780 * p-lang.c (pascal_language_defn): Ditto.
781 * scm-lang.c (scm_language_defn): Ditto.
782 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
783 oriented large to small in type structure.
784 * dwarf2read.c (read_array_order): New function.
785 (read_array_type): Use read_array_order to check row/column
786 major ordering.
787
e354df01
NW
7882004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
789
790 * target.c (target_resize_to_sections): Check
791 current_target.to_sections for an old value when updating.
792
9185ddce
JB
7932004-08-27 Joel Brobecker <brobecker@gnat.com>
794
795 * procfs.c (dbx_link_bpt_addr): New static global variable.
796 (dbx_link_shadow_contents): New static global variable.
797 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
798 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
799 if we just hit it.
800 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
801 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
802 from run to run.
803 (procfs_create_inferior): Remove syssgi syscall-exit notifications
804 after the inferior has been forked.
805 (remove_dbx_link_breakpoint): New function.
806 (dbx_link_addr): New function.
807 (insert_dbx_link_bpt_in_file): New function.
808 (insert_dbx_link_bpt_in_region): New function.
809 (insert_dbx_link_breakpoint): New function.
810 (proc_trace_syscalls_1): New function, extracted from
811 proc_trace_syscalls.
812 (proc_trace_syscalls): Replace extract code by call to
813 proc_trace_syscalls_1.
814 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
815 is no longer valid.
816
e6742ace
JB
8172004-08-25 Jim Blandy <jimb@redhat.com>
818
819 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
820
8fb3e588
AC
8212004-08-25 Andrew Cagney <cagney@gnu.org>
822
629a41ee
AC
823 * infrun.c (struct execution_control_state): Delete field
824 "stepping_through_sigtramp".
825 (init_execution_control_state): Do not set same.
826 (context_switch): Do not pass same to save_infrun_state and
827 load_infrun_state.
828 * gdbthread.h (struct thread_info): Delete field
829 stepping_through_sigtramp.
830 (save_infrun_state, load_infrun_state): Delete parameter
831 stepping_through_sigtramp.
832 * thread.c (load_infrun_state, save_infrun_state): Update.
833
8fb3e588
AC
834 * infrun.c: Re-indent. Move expression operators to the beginning
835 of the line. Remove long disabled #if 0 code.
836
49c54768
AC
8372004-08-24 Andrew Cagney <cagney@gnu.org>
838
839 * doublest.h (floatformat_ieee_quad): Rename
840 floatformat_ia64_quad.
841 * doublest.c (floatformat_ieee_quad): Rename
842 floatformat_ia64_quad.
843 (_initialize_doublest): Update.
844
5ca2e327
JB
8452004-08-24 Jim Blandy <jimb@redhat.com>
846
87808bd6
JB
847 * dwarf2expr.h (struct dwarf_expr_context): New members
848 'num_pieces' and 'pieces', for returning the result of an
849 expression that uses DW_OP_piece.
850 (struct dwarf_expr_piece): New struct type.
851 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
852 pieces.
853 (free_dwarf_expr_context): Free pieces, if any.
854 (add_piece): New function.
855 (execute_stack_op): Implement DW_OP_piece.
856 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
857 expression is a list of pieces, print an error message.
858 (dwarf2_loc_desc_needs_frame): If the expression yields
859 pieces, and any piece is in a register, then we need a frame.
860
5ca2e327
JB
861 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
862 the stack until we've decided what sort of result the evaluation
863 has produced. Use separate variables, with more specific names.
864
2afeb6b8
RE
8652004-08-23 Richard Earnshaw <rearnsha@arm.com>
866
867 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
868 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
869 (arm_netbsd_init_abi_common): Register them.
870
5885ab49
MK
8712004-08-22 Mark Kettenis <kettenis@gnu.org>
872
fda820a6
MK
873 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
874
1c5bf419
MK
875 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
876 safe_frame_unwind_memory instead of target_read_memory.
877
8cbba7c8
MK
878 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
879 Reorder includes.
880 (fetch_register, store_register): Remove prototypes.
881 (child_resume): Reorganize code and comments such that it is
882 grouped a bit more logically.
883 (attach): Explicitly compare errno against 0.
884 (detach): Likewise. Use perror_with_name instead of
885 print_sys_errmsg.
886 * Makefile.in (infptrace.o): Update dependencies.
887
c5fa4245
MK
888 * ia64-linux-nat.c: Update copyright year.
889 (fetch_debug_register, store_debug_register)
890 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
891 PTRACE_TYPE_ARG3.
892 * config/ia64/nm-linux.h: Update copyright year.
893 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
894
387c058c
MK
895 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
896 from CORE_ADDR to struct frame_info *. Use
897 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
898 (amd64_linux_sigtramp_p): Adjust for changed signature of
899 and64_linux_sigtramp_start
900
277215a6
MK
901 * gdb_ptrace.h: GNU/Linux.
902
25f6178e
MK
903 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
904 Remove defines.
905
652fc137
MK
906 * infptrace.c: Include "gdb_assert.h".
907 (PTRACE_XFER_TYPE): Remove define.
908 (offsetof): Only define if U_REGS_OFFSET isn't defined.
909 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
910 Tweak comment.
911 (fetch_inferior_registers, store_inferior_registers): Remove
912 redundant culry braces. Tweak comment. s/regno/regnum.
913 * Makefile.in (infptrace.o): Update dependencies.
914
5885ab49
MK
915 * configure.in: Change test for return type of ptrace to default
916 to `long' instead of `int'.
917 * configure: Regenerate.
918
11003ae3
MK
9192004-08-21 Mark Kettenis <kettenis@gnu.org>
920
6b95110c
MK
921 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
922
bcb3dc3d
MK
923 * configure.in: Check for ttrace function.
924 * configure, config.in: Regenerate.
925
11003ae3
MK
926 * gdb_ptrace.h: New file.
927 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
928 <sys/ptrace.h>.
929 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
930 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
931 (attach): Don't define PT_ATTACH.
932 (detach): Don't define PT_DETACH.
933 * Makefile.in (gdb_ptrace_h): New variable.
934 (infptrace.o): Update dependencies.
935
f8707cac
MK
9362004-08-16 Mark Kettenis <kettenis@gnu.org>
937
938 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
939 instead of `int' if not already defined.
940 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
941 PTRACE_TYPE_ARG3.
942 * infptrace.c (call_ptrace): Revert change that replaced
943 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
944
655c5466
MK
9452004-08-15 Mark Kettenis <kettenis@gnu.org>
946
156e5ba7
MK
947 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
948 Remove defines.
949
de9a9e51
MK
950 * linux-nat.c (kill_inferior): Add missing third and fourth
951 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
952
88800403
MK
953 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
954 PTRACE_TYPE_RET.
955
849a1d7c
MK
956 * proc-why.c (proc_prettyfprint_why): Fix format string.
957
61ad16d1
MK
958 * solib-osf.c (osf_current_sos): Remove unsused label.
959
a6ed5501
MK
960 * configure.in: Add <ncurses/ncurses.h> to the list of possible
961 curses headers.
962 * configure, config.in: Regenerate.
963 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
964 <ncurses/ncurses.h>.
965
016ddeca
MK
966 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
967 * config/nm-nbsd.h: Update copyright year.
968 (PTRACE_ARG3_TYPE): Remove define.
969
49ec097f
MK
970 * sparc-nat.c (fetch_inferior_registers)
971 (store_inferior_registers, sparc_xfer_wcookie):
972 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
973
9f8e0089
MK
974 * alphabsd-nat.c (fetch_inferior_registers):
975 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
976 PTRACE_TYPE_ARG3.
977 * amd64bsd-nat.c (fetch_inferior_registers)
978 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
979 PTRACE_TYPE_ARG3.
980 * armnbsd-nat.c: Update copyright year.
981 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
982 (store_register, store_regs, store_fp_register, store_fp_regs):
983 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
984 * hppabsd-nat.c (fetch_inferior_registers)
985 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
986 PTRACE_TYPE_ARG3.
987 * i386bsd-nat.c (fetch_inferior_registers)
988 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
989 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
990 * m68kbsd-nat.c (fetch_inferior_registers)
991 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
992 PTRACE_TYPE_ARG3.
993 * m88kbsd-nat.c (fetch_inferior_registers)
994 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
995 PTRACE_TYPE_ARG3.
996 * mipsnbsd-nat.c: Update copyright year.
997 (fetch_inferior_registers, store_inferior_registers):
998 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
999 * ns32knbsd-nat.c: Update copyright year.
1000 (fetch_inferior_registers, store_inferior_registers):
1001 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1002 * ppcnbsd-nat.c (fetch_inferior_registers):
1003 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1004 PTRACE_TYPE_ARG3.
1005 * ppcobsd-nat.c (fetch_inferior_registers):
1006 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1007 PTRACE_TYPE_ARG3.
1008 * shnbsd-nat.c: Update copyright year.
1009 (fetch_inferior_registers, store_inferior_registers):
1010 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1011 * vaxbsd-nat.c (fetch_inferior_registers)
1012 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1013 PTRACE_TYPE_ARG3.
1014
655c5466
MK
1015 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1016 PTRACE_TYPE_ARG3.
1017 * infptrace.c (call_ptrace, child_resume, attach, detach)
1018 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1019 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1020 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1021 PTRACE_TYPE_ARG3.
1022
c40d0d10
MK
10232004-08-14 Mark Kettenis <kettenis@gnu.org>
1024
5cb0ff31
MK
1025 * defs.h: Remove out-of-date comment.
1026 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1027 [!GETENV_PROVIDED] (getenv): Remove prototype.
1028
5f0f34cb
MK
1029 * standalone.c: Remove file.
1030 * Makefile.in (standalone.o): Remove dependency.
1031
7532965f
MK
1032 * i386-linux-nat.c (dummy_sse_values): Remove function and
1033 prototype.
1034 (i386_linux_dr_get): Fix typo in comment.
1035 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1036
1bdc6c53
MK
1037 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1038
c40d0d10
MK
1039 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1040 from declaration.
1041 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1042 from definition.
1043
64218d3e
MK
10442004-08-13 Mark Kettenis <kettenis@gnu.org>
1045
1046 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1047 parenthesis in definition.
1048 * configure: Regenerated.
1049
926c94e7
MC
10502004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1051
1052 * PROBLEMS: Mention build/1411.
1053
69489883
NN
10542004-08-09 Robert Millan <robertmh@gnu.org>
1055
1056 Committed by Nathanael Nerode.
1057 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1058 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1059
ebb7c577
AC
10602004-08-12 Andrew Cagney <cagney@gnu.org>
1061
1062 * NEWS: Mention fixes in GDB 6.2.1.
1063 * PROBLEMS: Remove mention of mips-irix.
1064
232d697c
JB
10652004-08-11 Joel Brobecker <brobecker@gnat.com>
1066
1067 * config/powerpc/xm-aix.h: Delete.
1068 * config/powerpc/aix.mh (MH_FILE): Remove.
1069 * config/powerpc/aix432.mh (MH_FILE): Remove.
1070
72f4e82b
JB
10712004-08-11 Joel Brobecker <brobecker@gnat.com>
1072
1073 * config/powerpc/aix.mh: Remove obsolete comment.
1074 * config/powerpc/aix432.mh: Likewise.
1075
0687ccb2
JB
10762004-08-11 Joel Brobecker <brobecker@gnat.com>
1077
1078 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1079
dbf3ada7
JB
10802004-08-11 Joel Brobecker <brobecker@gnat.com>
1081
e08e1886
JB
1082 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1083 this file is now empty.
1084 * config/xm-aix4.h: Remove, this file is no longer included
1085 anywhere.
1086
10872004-08-11 Joel Brobecker <brobecker@gnat.com>
1088
1089 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1090 that file is now empty.
dbf3ada7
JB
1091 (termdef): Remove prototype, function no longer used.
1092
4c525ef6
JB
10932004-08-11 Joel Brobecker <brobecker@gnat.com>
1094
1095 * doc/gdbint.texinfo (Host Definition): Remove documentation
1096 for USE_O_NOCTTY, no longer used.
1097 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1098 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1099
82e0b968
JB
11002004-08-11 Joel Brobecker <brobecker@gnat.com>
1101
1102 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1103 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1104 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1105
f2acbe1c
MK
11062004-08-11 Mark Kettenis <kettenis@gnu.org>
1107
daa98270
MK
1108 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1109 instead of FIVE_ARG_PTRACE.
1110
f2acbe1c
MK
1111 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1112 (new_tty): Use O_NOCTTY unconditionally.
1113
cc377e6b
MK
11142004-08-10 Mark Kettenis <kettenis@gnu.org>
1115
1116 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1117 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1118 fflush on stdout.
1119
3bcc18fa
JB
11202004-08-10 Joel Brobecker <brobecker@gnat.com>
1121
1122 * xcoff_symfile_finish: Replace last call to xmfree by call
1123 to xfree.
1124
7936743b
AC
11252004-08-10 Andrew Cagney <cagney@gnu.org>
1126
cc503c8a
AC
1127 * main.c (captured_main): Delete call to init_malloc.
1128 * defs.h (init_malloc): Delete declaration.
1129 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1130 (init_malloc): Delete functions.
1131
2dc74dc1
AC
1132 * defs.h (xmfree): Delete.
1133 * utils.c (xmfree): Delete function.
1134 (xfree): Inline calls to xmfree and mfree.
1135 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1136 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1137 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1138 * somread.c (som_symfile_finish): Ditto.
1139 * objfiles.c (allocate_objfile, free_objfile):
1140 * nlmread.c (nlm_symfile_finish): Ditto.
1141 * hpread.c (hpread_symfile_finish): Ditto.
1142 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1143 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1144 * coffread.c (coff_symfile_finish): Ditto.
1145
aa2ee5f6
AC
1146 * defs.h (xmcalloc): Delete declaration.
1147 * utils.c (xmcalloc): Delete.
1148 (xcalloc): Inline calls to xmcalloc and mcalloc.
1149 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1150 xcalloc and xfree.
1151 * symtab.c (create_demangled_names_hash): Ditto.
1152
0efffb96
AC
1153 * defs.h (xmrealloc): Delete.
1154 * utils.c (xmrealloc): Delete.
1155 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1156 * symmisc.c (extend_psymbol_list): Use xrealloc.
1157 * source.c (find_source_lines): Ditto.
1158 * hpread.c (hpread_lookup_type): Ditto.
1159 * dbxread.c (add_bincl_to_list): Ditto.
1160
7936743b
AC
1161 * utils.c (xmmalloc): Delete.
1162 (xmalloc): Inline xmmalloc and mmalloc calls.
1163 (msavestring): Use xmalloc.
1164 * defs.h (xmmalloc): Delete declaration.
1165 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1166 xmmalloc.
1167 * symmisc.c (extend_psymbol_list): Ditto.
1168 * symfile.c (init_psymbol_list): Ditto.
1169 * source.c (find_source_lines): Ditto.
1170 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1171 * elfread.c (elf_symtab_read): Ditto.
1172 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1173 * coffread.c (coff_symfile_init): Ditto.
1174
252ab814
DC
11752004-08-10 David Carlton <carlton@bactrian.org>
1176
1177 * MAINTAINERS: Remove David Carlton from c++ testsuite
1178 maintainers.
1179
8f5ba92b
JG
11802004-08-10 Jerome Guitton <guitton@gnat.com>
1181
1182 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1183 print a line feed before the prompt.
1184
21749010
MK
11852004-08-10 Mark Kettenis <kettenis@gnu.org>
1186
1187 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1188
1f011ce2
JB
11892004-08-09 Joel Brobecker <brobecker@gnat.com>
1190
1191 General cleanup of the AIX xm include file:
1192 * config/xm-aix4.h (fd_set): Remove undefine.
1193 Remove include of <sys/select.h>.
1194 (HAVE_TERMIO): Remove define.
1195 (USG): Likewise.
1196 (NULL): Remove redefine.
1197 (alloca): Remove #pragma.
1198 (vfork): Remove define.
1199 (termdef): Remove.
1200 (SIGWINCH_HANDLER): Remove.
1201 (SIGWINCH_HANDLER_BODY): Remove.
1202
cf4e7692
MK
12032004-08-09 Mark Kettenis <kettenis@gnu.org>
1204
1205 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1206 GDB_OSABI_OPENBSD_ELF.
1207
ac5754fa
MK
12082004-08-07 Robert Millan <robertmh@gnu.org>
1209
1210 * bsd-kvm.c: Check for nlist.h before including it.
1211
086ec9eb
MK
12122004-08-09 Mark Kettenis <kettenis@gnu.org>
1213
bbe06c74
MK
1214 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1215 sigcontext' offset consistency checks for ancient BSD.
1216
3aa7b3b3
MK
1217 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1218
086ec9eb
MK
1219 * configure.in: Check for <sys/types.h>. Check return and
1220 argument types of ptrace.
1221 * configure, config.in: Regenerate.
1222
09991fa0
JB
12232004-08-09 Jim Blandy <jimb@redhat.com>
1224
1225 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1226 rs6000_register_sim_regno): Doc fixes.
1227
fed7ba43
JB
12282004-08-08 Joel Brobecker <brobecker@gnat.com>
1229
1230 * mips-tdep.c: Include "floatformat.h".
1231 (n32n64_floatformat_always_valid): New function.
1232 (floatformat_n32n64_long_double_big): New constant.
1233 (mips_gdbarch_init): Set size and format of long double
1234 for N32 and N64 ABIs.
1235 * Makefile.in (mips-tdep.o): Update dependencies.
1236
456fcf94
AC
12372004-08-08 Andrew Cagney <cagney@gnu.org>
1238
2f9b146e
AC
1239 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1240 print. Improve script's error messages.
1241 * gdbarch.h: Re-generate.
1242
456fcf94
AC
1243 * gdbarch.sh (pformat): New function.
1244 (float_format, double_format, long_double_format): List with bit
1245 members. Use pformat when printing.
1246 * gdbarch.c, gdbarch.h: Re-generate.
1247
69e9e646
NW
12482004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1249
1250 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1251 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1252 (ppcnbsd_supply_pcb): New function.
1253 (_initialize_ppcnbsd_nat): New prototype and function.
1254 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1255 (LOADLIBES): New variable.
1256 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1257
5ef2d0aa
AC
12582004-08-08 Andrew Cagney <cagney@gnu.org>
1259
1260 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1261 (builtin_type_ieee_double, builtin_type_ia64_quad)
1262 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1263 BE/LE floating-point types.
1264 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1265 (builtin_type_ieee_double, builtin_type_ia64_quad)
1266 (builtin_type_ia64_spill): Declare.
1267 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1268 (floatformat_ieee_double, floatformat_arm_ext)
1269 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1270 of LE/BE floatformats.
1271 * doublest.h: (struct floatformat, floatformat_ieee_single)
1272 (floatformat_ieee_double, floatformat_arm_ext)
1273 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1274
5c7f2947
MK
12752004-08-08 Mark Kettenis <kettenis@gnu.org>
1276
ecac404d
MK
1277 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1278
9b8607ce
MK
1279 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1280 instead of regcache_raw_supply when storing the registers.
1281
f6052080
MK
1282 * i386gnu-nat.c: Update copyright year.
1283 (gnu_store_registers): Don't use deprecated_registers and
1284 deprecated_registers_valid. Use regcache_valid_p and
1285 regcache_raw_supply instead.
1286
17777823
MK
1287 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1288 frame_pc_unwind.
1289
5240ceac
MK
1290 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1291 variables. Incapitalized "process".
1292
5c7f2947
MK
1293 * configure.in: Add cursesX to the list of possible curses libs.
1294 Add cursesX.h to the list of possible curses headers.
1295 * configure, config.in: Regenerate.
1296
da7d81e3
NW
12972004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1298
1299 * configure.in: Test for struct lwp in <sys/lwp.h>.
1300 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1301 the offset of l_addr in struct lwp.
1302
7f245d65
NW
13032004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1304
1305 * bsd-kvm.c: Include "gdbcore.h"
1306 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1307
47b3f456
AC
13082004-08-07 Andrew Cagney <cagney@gnu.org>
1309
70bd8e24
AC
1310 * gdbtypes.c (build_flt, build_complex): New functions.
1311 (gdbtypes_post_init): Use.
1312
9b0dea39
AC
1313 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1314
5cf7abac
AC
1315 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1316 through to builtin_type_uint128.
1317
64d2b26d
AC
1318 * c-exp.y: Use builtin_type function to obtain builtin types.
1319
7ad6570d
AC
1320 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1321 builtin_uint128.
1322 * gdbtypes.c (gdbtypes_post_init): Update.
1323 (build_gdbtypes): Move initialization of builtin_type_int0
1324 through to builtin_type_uint128 from here ...
1325 (_initialize_gdbtypes): ... to here.
1326 * d10v-tdep.c (d10v_register_type): Update.
1327
47b3f456
AC
1328 * doublest.c: Update copyright.
1329 (floatformat_from_length): Call error when floatformat is NULL.
1330 (extract_floating_by_length): Remove NULL fmt check.
1331 (store_floating_by_length): Ditto.
1332
0a8146bf
AC
13332004-08-07 Andrew Cagney <cagney@gnu.org>
1334
1335 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1336 that the register is valid.
1337
c0ccb908
MK
13382004-08-05 Mark Kettenis <kettenis@chello.nl>
1339
8e6bed05
MK
1340 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1341 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1342 struct frame_info *. Use safe_frame_unwind_memory instead of
1343 deprecated_read_memory_nobpt.
1344 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1345 changed signature of i386_linux_sigtramp_start and
1346 i386_linux_rt_sigtramp_start.
1347
24f9f5e3
MK
1348 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1349 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1350 instead of deprecated_read_memory_nobpt.
1351 (i386nbsd_sigtramp_p): Adjust for changed signature of
1352 i386nbsd_sigtramp_offset.
1353
c822af0c
MK
1354 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1355 safe_frame_unwind_memory instead of target_read_memory.
1356
c0ccb908
MK
1357 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1358 !NO_SYS_FILE.
1359 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1360 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1361 (_initialize_kernel_u_addr): Remove prototype and function.
1362 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1363 !NO_SYS_FILE.
1364 * xcoffread.c: Likewise.
1365
b9e1c0d6
MK
13662004-08-06 Mark Kettenis <kettenis@gnu.org>
1367
1368 * vax-nat.c: New file.
1369 * vaxbsd-nat.c: Tweak comment.
1370 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1371 vaxnbsd-tdep.c.
1372 (vax-nat.o): New dependency.
1373 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1374 (vax-*-ultrix2*): Remove.
1375 * config/vax/vax.mh: New file.
1376 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1377 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1378 (vax_register_u_addr): New prototype.
1379 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1380 * config/vax/vaxult2.mh: Remove file.
1381 * config/vax/vaxult.mh: Remove file.
1382 * config/vax/vaxbsd.mh: Remove file.
1383 * config/vax/vax.mt (TM_FILE): Remove.
1384 * config/vax/tm-vaxbsd.h: Remove file.
1385
9ad7bec7
JB
13862004-08-06 Joel Brobecker <brobecker@gnat.com>
1387
1388 * aix-thread.c (get_signaled_thread): New function.
1389 (iter_trap): Delete, no longer used.
1390 (iter_tid): New function.
1391 (pd_update): Find the thread that received the SIGTRAP signal
1392 by first locating the kernel thread, and then finding its
1393 associated thread.
1394
bf0d233d
UW
13952004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1396
1397 * lin-lwp.c (child_wait): Continue inferior after processing
1398 PTRACE_EVENT_CLONE event.
1399
d0f853e1
NN
14002004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1401
1402 * MAINTAINERS: Add self to Write-After-Approval.
1403
ab14aeb0
JJ
14042004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1405
1406 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1407 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1408
9c8dbfa9
AC
14092004-08-05 Andrew Cagney <cagney@gnu.org>
1410
c8f3ca46
AC
1411 * config/xm-sysv4.h: Delete file.
1412 * config/mips/xm-irix5.h: Delete file.
1413 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1414 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1415 * config/ia64/xm-aix.h: Delete file.
1416 * config/ia64/aix.mh (XM_FILE): Delete.
1417 * config/pa/xm-hppah.h: Delete file.
1418 * config/pa/hpux11w.mh (XM_FILE): Delete.
1419 * config/pa/hpux11.mh (XM_FILE): Delete.
1420 * config/pa/hpux1020.mh (XM_FILE): Delete.
1421 * config/pa/hppahpux.mh (XM_FILE): Delete.
1422
5f7daaff
AC
1423 * config/alpha/xm-alphalinux.h: Delete file.
1424 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1425 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1426 * config/alpha/xm-alphaosf.h: Delete file.
1427 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1428 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1429 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1430 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1431
69babf95
AC
1432 * config/i386/xm-i386v.h: Delete file.
1433 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1434 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1435 * config/i386/xm-i386sco.h: Delete file.
1436 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1437 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1438 * config/i386/xm-i386v4.h: Delete file.
1439 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1440 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1441 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1442 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1443
6f009c8a
AC
1444 * config/vax/xm-vax.h: Delete file.
1445 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1446 * config/vax/xm-vaxult2.h: Delete file.
1447 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1448 * config/vax/vaxult2.mh (XM_FILE): Delete.
1449 * config/vax/xm-vaxult.h: Delete file.
1450 * config/vax/vaxult.mh (XM_FILE): Delete.
1451 * config/vax/xm-vaxbsd.h: Delete file.
1452 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1453
9c8dbfa9
AC
1454 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1455 * gdbarch.h, gdbarch.c: Re-generate.
1456 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1457 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1458 * frame.h: Delete deprecated_read_fp from comments.
1459 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1460 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1461
84367a3e
MK
14622004-08-04 Mark Kettenis <kettenis@gnu.org>
1463
9c8e3411
MK
1464 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1465 trampoline in OpenBSD 3.5-current.
1466
b87bc0d8
MK
1467 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1468 SSE registers.
1469
84367a3e
MK
1470 * Makefile.in: Remove embedded page breaks.
1471
a44bddec
JB
14722004-08-04 Jim Blandy <jimb@redhat.com>
1473
7ab3286f
JB
1474 * regcache.c (regcache_raw_read): Assert that, after calling
1475 target_fetch_registers, the register we're reading is cached.
1476
a44bddec
JB
1477 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1478 a call to 'internal_error', with a more helpful error message.
1479 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1480 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1481
35124113
AC
14822004-08-04 Andrew Cagney <cagney@gnu.org>
1483
1484 * Makefile.in: Update dependencies.
1485
9f643768
JB
14862004-08-04 Jim Blandy <jimb@redhat.com>
1487
6ced10dd
JB
1488 Change the layout of the PowerPC E500 raw register cache to allow
1489 the lower 32-bit halves of the GPRS to be their own raw registers,
1490 not pseudoregisters.
1491 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1492 add ppc_ev0_upper_regnum flag.
1493 * rs6000-tdep.c: #include "reggroups.h".
1494 (spe_register_p): Recognize the ev upper half registers as SPE
1495 registers.
1496 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1497 registers.
1498 (e500_move_ev_register): New function.
1499 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1500 vector registers are the pseudo-registers now, formed by splicing
1501 together the gprs and the upper-half registers.
1502 (e500_register_reggroup_p): New function.
1503 (P): Macro deleted.
1504 (P8, A4): New macro.
1505 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1506 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1507 macros.
1508 (registers_e500): Rearrange register set so that the raw register
1509 set contains 32-bit GPRs and upper-half registers, and the SPE
1510 vector registers become pseudo-registers.
1511 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1512 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1513 register numbers are now the same for the E500 as they are for
1514 other PowerPC variants. Register e500_register_reggroup_p as the
1515 register group function for the E500.
1516 * Makefile.in (rs6000-tdep.o): Update dependencies.
1517
1518 Adapt PPC E500 native support to the new raw regcache layout.
1519 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1520 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1521 (fetch_spe_register, store_spe_register): Handle fetching/storing
1522 all the SPE registers at once, if regno == -1. These now take
1523 over the job of fetch_spe_registers and store_spe_registers.
1524 (fetch_spe_registers, store_spe_registers): Deleted.
1525 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1526 unconditionally; they're always raw. Fetch/store SPE upper half
1527 registers, if present, instead of ev registers.
1528 (fetch_register, store_register): Remove sanity checks: gprs are
1529 never pseudo-registers now, so we never need to even mention any
1530 registers that are ever pseudoregisters.
1531
9f643768
JB
1532 Use a fixed register numbering when communicating with the PowerPC
1533 simulator.
1534 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1535 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1536 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1537 New functions.
1538 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1539 init_sim_regno_table.
1540 * Makefile.in (gdb_sim_ppc_h): New variable.
1541 (rs6000-tdep.o): Update dependencies.
1542
1e2279c8
AC
15432004-08-02 Andrew Cagney <cagney@gnu.org>
1544
1d94326f
AC
1545 * cris-tdep.c (cris_register_size): Restore function, still used
1546 locally.
1547
331ae7ed
AC
1548 * gdbarch.sh (deprecated_target_read_fp)
1549 (deprecated_frame_locals_address, deprecated_frame_args_address)
1550 (deprecated_frame_chain_valid, deprecated_frame_chain)
1551 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1552 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1553 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1554 * gdbarch.h, gdbarch.c: Re-generate.
1555 * regcache.c (deprecated_read_fp): Do not call
1556 DEPRECATED_TARGET_READ_FP_P.
1557 * infcmd.c (default_print_registers_info): Do not call
1558 DEPRECATED_DO_REGISTERS_INFO.
1559 * frame-base.c (default_frame_locals_address): Do not call
1560 DEPRECATED_FRAME_LOCALS_ADDRESS.
1561 (default_frame_args_address): Do not call
1562 DEPRECATED_FRAME_ARGS_ADDRESS.
1563
1e2279c8
AC
1564 * gdbarch.sh (deprecated_register_raw_size)
1565 (deprecated_register_virtual_size:int): Delete.
1566 * gdbarch.h, gdbarch.c: Re-generate.
1567 * cris-tdep.c (cris_register_size): Delete.
1568 (cris_gdbarch_init): Update.
1569 * alpha-tdep.c (alpha_register_raw_size)
1570 (alpha_register_virtual_size): Delete.
1571 (alpha_gdbarch_init): Update.
1572
a90c06b4
AC
1573 * gdbarch.sh (deprecated_register_virtual_type)
1574 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1575 (deprecated_dummy_write_sp): Delete.
1576 * gdbarch.h, gdbarch.c: Re-generate.
1577
f42accbe
AC
1578 * gdbarch.sh (deprecated_register_bytes): Delete.
1579 * gdbarch.h, gdbarch.c: Re-generate.
1580 * regcache.c (deprecated_register_bytes): New function.
1581 * regcache.h (deprecated_register_bytes): Declare.
1582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1583 * v850-tdep.c (v850_gdbarch_init): Update.
1584 * sh64-tdep.c (sh64_gdbarch_init): Update.
1585 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1586 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1587 * mcore-tdep.c (mcore_gdbarch_init): Update.
1588 * cris-tdep.c (cris_gdbarch_init): Update.
1589 * arm-tdep.c (arm_gdbarch_init): Update.
1590 * remote.c (init_remote_state): Update.
1591 * remote-vx.c (vx_prepare_to_store): Update.
1592 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1593 * irix5-nat.c (fetch_core_registers): Update.
1594 * cris-tdep.c (cris_register_bytes_ok): Update.
1595 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1596
45c9dd44
AC
1597 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1598 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1599 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1600 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1601 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1602 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1603 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1604 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1605 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1606 with mips_insn16 and mips_insn32.
1607
3acba339
AC
1608 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1609 * rs6000-tdep.c (rs6000_push_dummy_call)
1610 (rs6000_extract_return_value): Use register_size.
1611 * xstormy16-tdep.c (xstormy16_get_saved_register)
1612 (xstormy16_extract_return_value): Ditto.
1613 * valops.c (value_assign): Ditto.
1614 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1615 * v850-tdep.c (v850_extract_return_value): Ditto.
1616 * tracepoint.c (collect_symbol): Ditto.
1617 * target.c (debug_print_register): Ditto.
1618 * stack.c (frame_info): Ditto.
1619 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1620 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1621 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1622 (store_register_using_P): Ditto.
1623 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1624 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1625 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1626 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1627 * regcache.c (deprecated_read_register_bytes)
1628 (deprecated_write_register_bytes, read_register)
1629 (write_register): Ditto.
1630 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1631 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1632 * monitor.c (monitor_supply_register, monitor_fetch_register)
1633 (monitor_store_register): Ditto.
1634 * mn10300-tdep.c (mn10300_pop_frame_regular)
1635 (mn10300_print_register): Ditto.
1636 * mipsv4-nat.c (fill_fpregset): Ditto.
1637 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1638 (mips64_fill_fpregset): Ditto.
1639 * mi/mi-main.c (register_changed_p, get_register)
1640 (mi_cmd_data_write_register_values): Ditto.
1641 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1642 * irix5-nat.c (fill_gregset, fetch_core_registers):
1643 * infrun.c (write_inferior_status_register): Ditto.
1644 * infptrace.c (fetch_register, store_register): Ditto.
1645 * infcmd.c (default_print_registers_info): Ditto.
1646 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1647 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1648 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1649 * hpux-thread.c (hpux_thread_fetch_registers)
1650 (hpux_thread_store_registers): Ditto.
1651 * hppah-nat.c (store_inferior_registers, fetch_register):
1652 * findvar.c (value_from_register): Ditto.
1653 * dve3900-rom.c (fetch_bitmapped_register):
1654 * cris-tdep.c (cris_gdbarch_init): Ditto.
1655 * alpha-tdep.h: Ditto.
1656 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1657
01e1877c
AC
1658 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1659 DEPRECATED_REGISTER_RAW_SIZE from comments.
1660 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1661 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1662 DEPRECATED_REGISTER_RAW_SIZE.
1663 * findvar.c (value_of_register): Simplify by assuming that the
1664 registers raw and virtual sizes are identical.
1665 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1666 comment.
1667 * arch-utils.c (generic_register_size): Simplify by assuming
1668 register_type.
1669
73f458fb
AC
1670 * regcache.c (legacy_read_register_gen, real_register)
1671 (legacy_write_register_gen): Delete, not used.
1672
336a3131
AC
1673 * regcache.c (struct regcache_descr): Delete legacy_p.
1674 (init_legacy_regcache_descr): Delete function.
1675 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1676 Do not use deprecated register functions.
1677 (regcache_raw_read, deprecated_write_register_gen):
1678 (deprecated_read_register_gen, regcache_raw_write): Delete code
1679 predicated on legacy_p.
1680 (register_size): Delete check against register raw size.
1681
c1d546cd
AC
1682 * cris-tdep.c (cris_register_type): Replace
1683 cris_register_virtual_type.
1684 (cris_gdbarch_init): Update, set register_type.
1685
48c2c0a6
AC
1686 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1687 * gdbarch.h, gdbarch.c: Re-generate.
1688 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1689 (arm_gdbarch_init) Do not set frameless function invocation.
1690 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1691 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1692 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1693 (frv_gdbarch_init): Do not set frameless function invocation.
1694 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1695 * sh-tdep.c (sh_gdbarch_init): Ditto.
1696 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1698 * avr-tdep.c (avr_gdbarch_init): Ditto.
1699
474093a6
AC
1700 * blockframe.c (legacy_frame_chain_valid): Delete function.
1701
3c109c8b
AC
1702 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1703 and pc. Update comments.
1704 (pc_in_dummy_frame): Delete function.
1705 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1706 use the "id".
1707 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1708 call_hi, top and pc, use the id.
1709 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1710
96860204
AC
1711 * dummy-frame.c: Include "gdb_string.h".
1712 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1713 (generic_save_dummy_frame_tos): Delete.
1714 (dummy_frame_push): New function, replaces above.
1715 * dummy-frame.h: Update copyright.
1716 (dummy_frame_push): Declare.
1717 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1718 (generic_save_call_dummy_addr): Delete declarations.
1719 * infcall.c: Include "dummy-frame.h".
1720 (call_function_by_hand): Add locals caller_regcache,
1721 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1722 with call to frame_save_as_regcache plus cleanup. Delete calls to
1723 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1724 Move clear_proceed_status to just before the resume, add call to
1725 dummy_frame_push (discard cleanup).
1726 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1727 (dummy-frame.o): Add $(gdb_string_h).
1728
d67ec5db
AC
17292004-08-01 Andrew Cagney <cagney@gnu.org>
1730
1731 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1732 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1733 * dummy-frame.c (find_dummy_frame): Delete.
1734 (struct dummy_frame_cache, dummy_frame_sniffer)
1735 (dummy_frame_prev_register, dummy_frame_this_id)
1736 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1737 frame unwinder using a dummy_frame_cache.
1738
a81dcb05
AC
17392004-08-01 Andrew Cagney <cagney@gnu.org>
1740
1741 * frame.h (frame_save_as_regcache): Declare.
1742 * frame.c (frame_save_as_regcache): New function.
1743 (do_frame_read_register): Replace do_frame_unwind_register.
1744 (frame_pop): Use frame_save_as_regcache.
1745 * dummy-frame.c (generic_push_dummy_frame): Use
1746 frame_save_as_regcache.
1747
aa495d11
JB
17482004-08-01 Joel Brobecker <brobecker@gnat.com>
1749
1750 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1751 file as included until we record the first line in the linetable.
1752
ff65ac78
AC
17532004-08-01 Andrew Cagney <cagney@gnu.org>
1754
1755 * frame.h (deprecated_pop_dummy_frame)
1756 (deprecated_read_register_dummy)
1757 (deprecated_generic_find_dummy_frame): Delete.
1758 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1759 (deprecated_read_register_dummy)
1760 (deprecated_find_dummy_frame_regcache)
1761 (discard_innermost_dummy)
1762 (deprecated_pop_dummy_frame): Delete.
1763 (dummy_frame_this_id): Simplify.
1764 (struct dummy_frame): Delete "fp" and "sp".
1765 (find_dummy_frame): Simplify.
1766 (generic_push_dummy_frame): Do not set "fp" or "sp".
1767 (fprint_dummy_frames): Do not print "fp" and "sp"
1768
37bdc87e
MK
17692004-08-01 Mark Kettenis <kettenis@gnu.org>
1770
1771 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1772 (struct i386_insn): New structure.
1773 (i386_match_insn): New function.
1774 (i386_frame_setup_skip_insns): New variable.
1775 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1776 array i386_frame_setup_insns of instructions that should be
1777 skipped inside the frame setup sequence.
1778
8241eaa6
AC
17792004-08-01 Andrew Cagney <cagney@gnu.org>
1780
5bc602c7
AC
1781 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1782 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1783 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1784 * stack.c (frame_info): Delete references to
1785 DEPRECATED_FRAME_INIT_SAVED_REGS and
1786 deprecated_get_frame_saved_regs.
1787 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1788 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1789 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1790 (frame_unwind_register_signed)
1791 (frame_unwind_register_unsigned)
1792 (frame_unwind_unsigned_register): Use register_size.
1793 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1794 (deprecated_frame_xmalloc_with_cleanup)
1795 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1796 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1797
03d363a1
AC
1798 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1799 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1800 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1801 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1802
8241eaa6
AC
1803 * infcall.c (call_function_by_hand): Do not use
1804 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1805 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1806 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1807 DEPRECATED_STACK_ALIGN.
1808
f00df8b7
AC
18092004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1810
1811 Committed by Andrew Cagney.
1812 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1813
eec63939
AC
18142004-08-01 Andrew Cagney <cagney@gnu.org>
1815
1816 * mips-tdep.c (mips16_frame_cache)
1817 (mips16_frame_this_id, mips16_frame_prev_register)
1818 (mips16_frame_unwind, mips16_frame_sniffer)
1819 (mips16_frame_base_address, mips16_frame_base)
1820 (mips16_frame_base_sniffer, mips32_frame_cache)
1821 (mips32_frame_this_id, mips32_frame_prev_register)
1822 (mips32_frame_unwind, mips32_frame_sniffer)
1823 (mips32_frame_base_address, mips32_frame_base)
1824 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1825 separate heuristic mips16 and mips32 unwinders.
1826 (mips_stub_frame_cache, mips_stub_frame_this_id)
1827 (mips_stub_frame_prev_register)
1828 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1829 (mips_stub_frame_base_address, mips_stub_frame_base)
1830 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1831 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1832 match true mdebug frames.
1833 (non_heuristic_proc_desc): Add forward declaration.
1834
e66299b3
AC
18352004-08-01 Andrew Cagney <cagney@gnu.org>
1836
83cbbf3e
AC
1837 * config/mips/tm-irix6.h: Delete file.
1838 * config/mips/tm-irix5.h: Delete file.
1839 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1840 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1841
22d41b37
AC
1842 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1843 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1844 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1845 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1846 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1847 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1848 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1849 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1850 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1851 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1852 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1853 (TARGET_SIGNAL_RAW_VALUES): Delete.
1854 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1855 Delete.
1856 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1857 (TARGET_HW_WATCH_LIMIT): Delete.
1858 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1859 * minimon.h: Delete file.
1860
e66299b3
AC
1861 * trad-frame.c (trad_frame_get_this_base)
1862 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1863 functions.
1864 * trad-frame.h (trad_frame_set_this_base)
1865 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1866
1f67027d
AC
18672004-07-31 Andrew Cagney <cagney@gnu.org>
1868
1869 * trad-frame.c (trad_frame_get_prev_register): Rename
1870 trad_frame_get_prev_register.
1871 * vax-tdep.c (vax_frame_prev_register): Update.
1872 * trad-frame.h: Update.
1873 * trad-frame.c (trad_frame_get_register): Update.
1874 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1875 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1876 Update.
1877 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1878 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1879 Update.
1880 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1881 Update.
1882 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1883 Update.
1884 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1885 Update.
1886 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1887 Update.
1888 * s390-tdep.c (s390_frame_prev_register)
1889 (s390_stub_frame_prev_register)
1890 (s390_sigtramp_frame_prev_register): Update.
1891 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1892 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1893 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1894 * m88k-tdep.c (m88k_frame_prev_register)
1895 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1896 * m32r-tdep.c (m32r_frame_prev_register): Update.
1897 * hppa-tdep.c (hppa_frame_prev_register_helper)
1898 * frv-tdep.c (frv_frame_prev_register): Update.
1899 * d10v-tdep.c (d10v_frame_prev_register): Update.
1900 * cris-tdep.c (cris_frame_prev_register): Update.
1901 * avr-tdep.c (avr_frame_prev_register): Update.
1902 * arm-tdep.c (arm_prologue_prev_register)
1903 (arm_sigtramp_prev_register): Update.
1904
c1bf6f65
AC
19052004-07-31 Andrew Cagney <cagney@gnu.org>
1906
1907 * frame.h (legacy_saved_regs_unwind)
1908 (legacy_frame_chain_valid, legacy_frame_p)
1909 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1910 * dummy-frame.c (dummy_frame_this_id): Simplify.
1911 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1912 * frame.c (struct frame_info): Delete the field "type".
1913 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1914 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1915 (legacy_saved_regs_unwind, legacy_frame_p)
1916 (frame_type_from_pc): Delete.
1917 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1918 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1919
dc856692
MK
19202004-07-31 Mark Kettenis <kettenis@gnu.org>
1921
5a5effe1
MK
1922 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1923 indentation.
1924
d4fd50a6
MK
1925 * mips-nat.c: Remove file.
1926 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1927 (mips-nat.o): Remove dependency.
1928
2689df5a
MK
1929 * infptrace.c: Update copyright year.
1930 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1931 explicitly setting the buffer to all zeroes.
1932
dc856692
MK
1933 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1934 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1935
763910e0
AC
19362004-07-30 Andrew Cagney <cagney@gnu.org>
1937
1938 * GDB 6.2 released from gdb_6_2-branch.
1939
0b66e38c
EZ
19402004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1941
1942 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1943
1944 * exec.c (exec_file_attach):
1945 * nto-tdep.c (nto_find_and_open_solib):
1946 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1947 * solib.c (solib_open):
1948 * somsolib.c (som_solib_sizeof_symbol_table):
1949 * source.c (is_regular_file, openp, open_source_file):
1950 * symfile.c (symfile_bfd_open):
1951 * wince.c (upload_to_device): Differentiate between the search for
1952 binary and source files.
1953
be7d7357
AC
19542004-07-30 Andrew Cagney <cagney@gnu.org>
1955
1956 * complaints.c (_initialize_complaints): Pass NULL to
1957 add_setshow_zinteger_cmd for help_doc.
1958 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1959
ddc9cd0f
AC
19602004-07-30 Andrew Cagney <cagney@gnu.org>
1961
1962 Fix PR i18n/761.
1963 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1964 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1965 $(PACKAGE).pot and update-po.
1966 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1967 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1968 (update-po): New rules.
1969 (localedir): Define using autoconf.
1970 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1971 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1972 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1973 * configure.in: Generate CATALOGS and LINGUAS from contents of
1974 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1975 * configure: Re-generate.
1976 * po/gdbtext: New file
1977
e92f3704
JG
19782004-07-30 Jerome Guitton <guitton@gnat.com>
1979
1980 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1981 order.
1982
b0f35d58
DL
19832004-07-30 David Lecomber <dsl@sources.redhat.com>
1984
1985 * dwarf2read.c (read_file_scope): Set producer if attribute
1986 present.
1987 (struct dwarf2_cu): Added new member producer.
1988
ce7d4522
JG
19892004-07-30 Jerome Guitton <guitton@gnat.com>
1990
1991 * inflow.c (kill_command): release file handles in BFD.
1992 * exec.c (exec_file_attach): Ditto.
1993 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1994
05ee07c7
AC
19952004-07-29 Andrew Cagney <cagney@gnu.org>
1996
1997 * PROBLEMS (mips-irix): Note that it is broken.
1998
62eceb47
AC
19992004-07-29 Andrew Cagney <cagney@gnu.org>
2000
e57b8d41
AC
2001 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2002 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2003
d334389b
AC
2004 * config/xm-nbsd.h: Delete file.
2005 * config/arm/xm-nbsd.h: Delete file.
2006 * config/i386/xm-nbsd.h: Delete file.
2007 * config/ns32k/xm-nbsd.h: Delete file.
2008 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2009 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2010 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2011 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2012 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2013
e910f676
AC
2014 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2015 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2016 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2017 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2018 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2019 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2020
6fa856b9
AC
2021 * config/powerpc/xm-linux.h: Delete empty file.
2022 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2023 * config/powerpc/linux.mh (XM_FILE): Delete.
2024 * config/m68k/xm-linux.h: Delete empty file.
2025 * config/m68k/linux.mh (XM_FILE): Delete.
2026 * config/ia64/xm-linux.h: Delete empty file.
2027 * config/ia64/linux.mh (XM_FILE): Delete.
2028 * config/arm/xm-linux.h: Delete empty file.
2029 * config/arm/linux.mh (XM_FILE): Delete.
2030
471ae5ae
AC
2031 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2032 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2033 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2034 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2035 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2036 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2037 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2038 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2039
62eceb47
AC
2040 * config/m68k/xm-m68k.h: Delete file.
2041 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2042 copyright.
2043 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2044 * config/pa/xm-linux.h: Delete empty file.
2045 * config/pa/linux.mh (XM_FILE): Delete.
2046 * config/i386/xm-i386.h: Delete empty file.
2047 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2048 "i386/xm-i386.h".
2049 * config/i386/obsdaout.mh (XM_FILE): Delete.
2050 * config/i386/obsd64.mh (XM_FILE): Delete.
2051 * config/i386/fbsd64.mh (XM_FILE): Delete.
2052 * config/i386/nto.mh (XM_FILE): Delete.
2053 * config/i386/obsd.mh (XM_FILE): Delete.
2054 * config/i386/linux64.mh (XM_FILE): Delete.
2055 * config/i386/linux.mh (XM_FILE): Delete.
2056 * config/i386/i386sol2.mh (XM_FILE): Delete.
2057 * config/i386/i386gnu.mh (XM_FILE): Delete.
2058 * config/i386/fbsd.mh (XM_FILE): Delete.
2059 * config/i386/nbsd64.mh (XM_FILE): Delete.
2060
c35f4ffc
AC
20612004-07-29 Andrew Cagney <cagney@gnu.org>
2062
2063 * config/pa/xm-linux.h: Do not include "floatformat.h".
2064 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2065 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2066 * config/i386/xm-i386.h: Do not include "floatformat.h".
2067 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2068 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2069 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2070 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2071 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2072 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2073 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2074 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2075 * configure, config.in: Regenerate.
2076 * configure.host (gdb_host_float_format, gdb_host_double_format)
2077 (gdb_host_long_double_format): Set according to the host.
2078
624a44a3
AC
20792004-07-29 Andrew Cagney <cagney@gnu.org>
2080
2081 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2082
0dea2468
AC
20832004-07-28 Andrew Cagney <cagney@gnu.org>
2084
2085 * PROBLEMS: Mention threads/1650.
2086 * NEWS: Mention the NPTL fix.
2087
b3f42336
AC
20882004-07-28 Andrew Cagney <cagney@gnu.org>
2089
2090 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2091 (add_setshow_cmd_full): Make static.
2092 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2093 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2094 * cli/cli-decode.c (add_setshow_filename_cmd)
2095 (add_setshow_string_cmd): New functions.
2096 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2097 * mips-tdep.c (_initialize_mips_tdep): Update.
2098 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2099 * cli/cli-logging.c (_initialize_cli_logging): Update.
2100 * complaints.c (_initialize_complaints): Update.
2101 * remote.c (_initialize_remote): Update.
2102
3b64bf98
AC
21032004-07-28 Andrew Cagney <cagney@gnu.org>
2104
2105 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2106 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2107 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2108 print parameters. Make string parameters constant.
2109 * command.h: Update. Update copyright.
2110 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2111 * observer.c (_initialize_observer): Ditto.
2112 * frame.c (_initialize_frame): Ditto.
2113 * complaints.c (_initialize_complaints): Ditto.
2114 * maint.c (_initialize_maint_cmds): Ditto.
2115 * target.c (initialize_targets): Ditto.
2116 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2117 * infcall.c (_initialize_infcall): Ditto.
2118 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2119 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2120 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2121 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2122 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2123
e9667a65
AC
21242004-07-28 Andrew Cagney <cagney@gnu.org>
2125
54a5b07d
AC
2126 * gdbtypes.c (lookup_primitive_typename): Delete function.
2127 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2128 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2129 * gdbtypes.c (lookup_typename): Ditto.
2130 * f-exp.y (yylex): Ditto.
2131 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2132
e9667a65
AC
2133 * scm-lang.c (c_builtin_types): Delete extern declaration.
2134 (scm_language_defn): Replace
2135 string_char_type and primitive_type_vector with
2136 la_language_arch_info.
2137 * jv-lang.c (java_language_defn): Replace
2138 string_char_type and primitive_type_vector with
2139 la_language_arch_info.
2140 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2141 c_builtin_types in comment.
2142 * c-lang.h (struct language_arch_info): Declare opaque.
2143 (c_language_arch_info): Declare.
2144 (c_builtin_types): Delete declaration.
2145 * c-lang.c (c_language_arch_info): Set string_char_type to
2146 builtin_char, not builtin_true_char. Make global.
2147 (c_builtin_types): Delete array.
2148 (asm_language_defn, minimal_language_defn): Replace
2149 string_char_type and primitive_type_vector with
2150 la_language_arch_info.
2151
685419e2
AC
21522004-07-28 Andrew Cagney <cagney@gnu.org>
2153
2154 * gdbtypes.h (struct builtin_type): Rename true_char to
2155 builtin_true_char.
2156 * gdbtypes.c (gdbtypes_post_init): Update.
2157 * c-lang.c (arch_info): New function.
2158 (enum c_primitive_types): New enum.
2159 (c_language_defn): Instead of string_char_type and
2160 primitive_type_vector set la_language_arch_info.
2161
5a44ea29
AC
21622004-07-28 Andrew Cagney <cagney@gnu.org>
2163
2164 * language.h (struct language_arch_info): Fix typo
2165 s/primative/primitive/.
2166 * gdbtypes.c (lookup_primitive_typename): Ditto.
2167 * language.c (language_lookup_primitive_type_by_name)
2168 (unknown_language_arch_info): Ditto.
2169
f290d38e
AC
21702004-07-27 Andrew Cagney <cagney@gnu.org>
2171
2172 * defs.h (enum language): Add nr_languages.
2173 * language.h (struct language_arch_info): Define.
2174 (struct language_defn): Add la_language_arch_info.
2175 (language_lookup_primative_type_by_name): Declare.
2176 (language_string_char_type): Declare.
2177 * language.c (_initialize_language, language_gdbarch_post_init)
2178 (struct language_gdbarch, language_gdbarch_data): Implement
2179 per-architecture language information.
2180 (unknown_language_arch_info, language_string_char_type)
2181 (language_lookup_primative_type_by_name): New functions.
2182 (unknown_language_defn, auto_language_defn)
2183 (local_language_defn): Set la_language_arch_info to
2184 unknown_language_arch_info.
2185 (unknown_builtin_types): Delete.
2186 * gdbtypes.c (lookup_primitive_typename): Use
2187 language_lookup_primative_type_by_name.
2188 (create_string_type): Use language_string_char_type.
2189 * values.c (value_from_string): Use language_string_char_type.
2190 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2191 * p-lang.c (pascal_language_defn): Ditto.
2192 * m2-lang.c (m2_language_defn): Ditto.
2193 * jv-lang.c (java_language_defn): Ditto.
2194 * objc-lang.c (objc_language_defn): Ditto.
2195 * f-lang.c (f_language_defn): Ditto.
2196 * c-lang.c (c_language_defn, cplus_language_defn)
2197 (asm_language_defn, minimal_language_defn): Ditto.
2198
000177f0
AC
21992004-07-27 Andrew Cagney <cagney@gnu.org>
2200
2201 * gdbtypes.h (struct builtin_type): Declare.
2202 (builtin_type): Declare.
2203 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2204 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2205 (gdbtypes_post_init): New function.
2206 (builtin_type): New function.
2207
e22f895c
KI
22082004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2209
2210 * remote-m32r-sdi.c: Fix breakpoint bug.
2211 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2212 recv_char_data, recv_long_data): New functions to replace communication
2213 sequences.
2214
536517dd
MC
22152004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2216
2217 Document PR threads/1650.
2218 * PROBLEMS (Threads): Document problem with many threads
2219
a0a44d18
AC
22202004-07-26 Andrew Cagney <cagney@gnu.org>
2221
2222 * gdb-mi.el: Move from here ...
2223 * mi/gdb-mi.el: ... to here.
2224
7ac4ac06
AC
22252004-07-26 Andrew Cagney <cagney@gnu.org>
2226
2227 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2228 * main.c (captured_main): When in batch mode always detach.
2229
a1b461bf
AC
22302004-07-26 Andrew Cagney <cagney@gnu.org>
2231
2232 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2233 and h8300 as broken.
2234 * NEWS: END-OF-LIFE frame compatibility module.
2235 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2236 specific comments.
2237
cb1a6d5f
AC
22382004-07-26 Andrew Cagney <cagney@gnu.org>
2239
2240 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2241 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2242 * wince.c (_initialize_wince): Update.
2243 * win32-nat.c (_initialize_win32_nat): Update.
2244 * varobj.c (_initialize_varobj): Update.
2245 * valops.c (_initialize_valops): Update.
2246 * utils.c (initialize_utils, initialize_utils): Update.
2247 * tui/tui-win.c (_initialize_tui_win): Update.
2248 * top.c (init_main): Update.
2249 * symfile.c (_initialize_symfile): Update.
2250 * source.c (_initialize_source): Update.
2251 * somsolib.c (_initialize_som_solib): Update.
2252 * solib.c (_initialize_solib): Update.
2253 * solib-frv.c (_initialize_frv_solib): Update.
2254 * serial.c (_initialize_serial): Update.
2255 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2256 * remote.c (_initialize_remote, _initialize_remote): Update.
2257 * remote-vx.c (_initialize_vx): Update.
2258 * remote-utils.c (_initialize_sr_support): Update.
2259 * remote-sds.c (_initialize_remote_sds): Update.
2260 * remote-mips.c (_initialize_remote_mips): Update.
2261 * remote-e7000.c (_initialize_remote_e7000): Update.
2262 * proc-api.c (_initialize_proc_api): Update.
2263 * printcmd.c: Update.
2264 * parse.c (_initialize_parse): Update.
2265 * pa64solib.c (_initialize_pa64_solib): Update.
2266 * p-valprint.c (_initialize_pascal_valprint): Update.
2267 * monitor.c (_initialize_remote_monitors): Update.
2268 * mips-tdep.c (_initialize_mips_tdep): Update.
2269 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2270 * maint.c (_initialize_maint_cmds): Update.
2271 * lin-lwp.c (_initialize_lin_lwp): Update.
2272 * language.c (_initialize_language): Update.
2273 * kod.c (_initialize_kod): Update.
2274 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2275 * i386-tdep.c (_initialize_i386_tdep): Update.
2276 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2277 * gdbarch.sh: Update.
2278 * gdbarch.c: Re-generate.
2279 * gdb-events.sh: Update.
2280 * gdb-events.c: Re-generate.
2281 * frame.c (_initialize_frame): Update.
2282 * exec.c: Update.
2283 * demangle.c (_initialize_demangler): Update.
2284 * dcache.c (_initialize_dcache): Update.
2285 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2286 * cp-valprint.c (_initialize_cp_valprint): Update.
2287 * corefile.c (_initialize_core): Update.
2288 * command.h: Update.
2289 * cli/cli-decode.h: Update.
2290 * cli/cli-cmds.c (init_cli_cmds): Update.
2291 * charset.c (_initialize_charset): Update.
2292 * breakpoint.c (_initialize_breakpoint): Update.
2293 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2294 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2295 * aix-thread.c (_initialize_aix_thread): Update.
2296
b4632131
MK
22972004-07-24 Mark Kettenis <kettenis@gnu.org>
2298
2299 Partial fix for PR backtrace/1718.
2300 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2301 that GCC migrates into the prolugue. Don't handle any
2302 instructions that clobber %ebx.
2303
822c9732
AC
23042004-07-23 Andrew Cagney <cagney@gnu.org>
2305
2306 Use regcache_raw_collect instead of regcache_collect.
2307 * regcache.h (regcache_collect): Delete declaration.
2308 * regcache.c (regcache_colect): Delete function.
2309 * win32-nat.c (do_child_store_inferior_registers): Update.
2310 * sol-thread.c (sol_thread_store_registers): Update.
2311 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2312 * rs6000-nat.c (store_register): Update.
2313 * remote.c (store_register_using_P, remote_store_registers): Update.
2314 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2315 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2316 (fill_vrregset, store_spe_registers, fill_gregset)
2317 (fill_gregset): Update.
2318 * nto-procfs.c (procfs_store_registers): Update.
2319 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2320 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2321 * m68klinux-nat.c (store_register, fill_gregset): Update.
2322 * m68k-tdep.c (fill_gregset): Update.
2323 * infptrace.c (store_register): Update.
2324 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2325 * i386-linux-nat.c (store_register, fill_gregset): Update.
2326 * hppa-linux-nat.c (fill_gregset): Update.
2327 * go32-nat.c (store_register): Update.
2328 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2329 (store_fp_regs): Update.
2330 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2331 (store_nwfpe_extended, store_fpregister, store_fpregs)
2332 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2333 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2334 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2335 (store_regs_user_thread, store_regs_kernel_thread): Update.
2336
32b05c07
MK
23372004-07-24 Mark Kettenis <kettenis@gnu.org>
2338
2339 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2340 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2341 encoding.
2342 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2343 member of `struct comp_unit'.
2344
8567c30f
AC
23452004-07-23 Andrew Cagney <cagney@gnu.org>
2346
2347 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2348 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2349
f6da8dd8
MH
23502004-07-23 Martin Hunt <hunt@redhat.com>
2351 Kevin Buettner <kevinb@redhat.com>
2352
2353 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2354 alignment was being added to the offset instead of multiplied.
2355
bd921882
MK
23562004-07-23 Mark Kettenis <kettenis@gnu.org>
2357
24f033e8
MK
2358 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2359 changed signal trampoline in OpenBSD 3.5-current.
2360
90f3cecd
MK
2361 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2362 <machine/pcb.h> and "bsd-kvm.h".
2363 (sparc64nbsd_supply_pcb): New function.
2364 (_initialize_sparc64nbsd_nat): Renamed from
2365 _initialize_sparcnbsd_nat. Enable libkvm interface.
2366 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2367 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2368 (LOADLIBES): New variable.
2369
a4954a62
MK
2370 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2371
bd921882
MK
2372 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2373
23a6d369
AC
23742004-07-21 Andrew Cagney <cagney@gnu.org>
2375
2376 Use regcache_raw_supply instead of supply_register.
2377 * regcache.h (supply_register): Delete declaration.
2378 * regcache.c (supply_register): Delete function.
2379 * wince.c (do_child_fetch_inferior_registers): Update.
2380 * win32-nat.c (do_child_fetch_inferior_registers)
2381 (fetch_elf_core_registers): Update.
2382 * v850ice.c (v850ice_fetch_registers): Update.
2383 * thread-db.c (thread_db_store_registers): Update.
2384 * sol-thread.c (sol_thread_store_registers): Update.
2385 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2386 * rs6000-nat.c (fetch_register): Update.
2387 * rom68k-rom.c (rom68k_supply_one_register): Update.
2388 * remote.c (remote_wait, remote_async_wait): Update.
2389 * remote-st.c (get_hex_regs): Update.
2390 * remote-sim.c (gdbsim_fetch_register): Update.
2391 * remote-sds.c (sds_fetch_registers): Update.
2392 * remote-rdp.c (remote_rdp_fetch_register): Update.
2393 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2394 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2395 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2396 * remote-hms.c (init_hms_cmds): Update.
2397 * remote-est.c (init_est_cmds): Update.
2398 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2399 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2400 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2401 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2402 (fetch_register, supply_vrregset, supply_vrregset)
2403 (fetch_spe_registers): Update.
2404 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2405 * monitor.c (monitor_supply_register): Update.
2406 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2407 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2408 (mipsnbsd_supply_fpreg): Update.
2409 * mips-nat.c (fetch_inferior_registers)
2410 (fetch_core_registers): Update.
2411 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2412 (supply_fpregset, mips64_supply_gregset)
2413 (mips64_supply_fpregset): Update.
2414 * m68klinux-nat.c (fetch_register, supply_gregset)
2415 (supply_fpregset): Update.
2416 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2417 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2418 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2419 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2420 * infptrace.c (fetch_register): Update.
2421 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2422 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2423 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2424 (gnu_fetch_registers, gnu_store_registers): Update.
2425 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2426 * i386-linux-nat.c (fetch_register, supply_gregset)
2427 (dummy_sse_values): Update.
2428 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2429 * hppah-nat.c (fetch_register): Update.
2430 * hppa-linux-nat.c (fetch_register, supply_gregset)
2431 (supply_fpregset): Update.
2432 * go32-nat.c (fetch_register): Update.
2433 * dve3900-rom.c (fetch_bitmapped_register)
2434 (_initialize_r3900_rom): Update.
2435 * cris-tdep.c (supply_gregset): Update.
2436 * abug-rom.c (init_abug_cmds): Update.
2437 * core-aout.c (fetch_core_registers): Update.
2438 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2439 (fetch_register, fetch_fp_register): Update.
2440 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2441 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2442 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2443 * alphanbsd-tdep.c (fetch_core_registers): Update.
2444 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2445 * alpha-nat.c (fetch_osf_core_registers)
2446 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2447 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2448 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2449
73cc75f3
AC
24502004-07-21 Andrew Cagney <cagney@gnu.org>
2451
2452 * PROBLEMS: Mention breakpoints/1702.
2453 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2454 that is known to work.
2455
a53c66de
AC
24562004-07-21 Andrew Cagney <cagney@gnu.org>
2457
2458 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2459 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2460 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2461 (handle_inferior_event): Wrap call to deprecated
2462 IGNORE_HELPER_CALL in #ifdef.
2463 * config/mips/tm-nbsd.h: Update.
2464
708ff411
JB
24652004-07-20 Jim Blandy <jimb@redhat.com>
2466
412b3060
JB
2467 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2468 bfd_mach_ppc has no segment registers.
2469
13ac140c
JB
2470 Include PowerPC SPR numbers for special-purpose registers.
2471 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2472 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2473 new member in initializer.
2474 (S, S4, SN4, S64): New macros for defining special-purpose
2475 registers.
2476 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2477 registers_403, registers_403GC, registers_505, registers_860,
2478 registers_601, registers_602, registers_603, registers_604,
2479 registers_750, registers_e500): Use them.
2480
708ff411
JB
2481 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2482 replace references with expression used to initialize variable.
2483
1f602b35
AC
24842004-07-20 Andrew Cagney <cagney@gnu.org>
2485
2486 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2487 read_memory_nobpt.
2488 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2489 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2490 (s390_sigtramp_frame_sniffer): Update.
2491 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2492 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2493 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2494 (mips32_fetch_instruction): Update.
2495 * mcore-tdep.c (get_insn): Update.
2496 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2497 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2498 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2499 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2500 (i386_linux_rt_sigtramp_start): Update.
2501 * i386-linux-nat.c (child_resume): Update.
2502 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2503 * hppa-linux-tdep.c (insns_match_pattern): Update.
2504 * gdbcore.h: Update.
2505 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2506 * frame.c (safe_frame_unwind_memory): Update.
2507 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2508 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2509 * alpha-tdep.c (alpha_read_insn): Update.
2510
2cd8546d
AC
25112004-07-20 Andrew Cagney <cagney@gnu.org>
2512
2513 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2514 containing both bytes and mask. Add "frame_type".
2515 * tramp-frame.c (tramp_frame_start): Update.
2516 (tramp_frame_prepend_unwinder): Update.
2517 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2518 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2519 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2520 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2521
f928dd62
EZ
25222004-07-19 Eli Zaretskii <eliz@gnu.org>
2523
2524 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2525 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2526 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2527 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2528
d5c560f7
AC
25292004-07-17 Andrew Cagney <cagney@gnu.org>
2530
860660cb
AC
2531 * NEWS, PROBLEMS: Update for 6.2.
2532
8c266f54
AC
2533 * README: Update to 6.2.
2534
a552edd9
AC
2535 * utils.c (xvasprintf): Call xstrvprintf.
2536
c4a172b5
AC
2537 * parse.c: Update copyright.
2538 (null_post_parser): Eliminate ARGSUSED.
2539
da745b36
AC
2540 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2541 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2542 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2543
9cbc6ef0
AC
2544 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2545 * ppc-linux-nat.c: Use "Linux kernel".
2546 * hppa-linux-tdep.c: Use GNU/Linux.
2547 * hppa-linux-nat.c: Use GNU/Linux.
2548 * dwarfread.c: Add [sic] to use of Linux.
2549
1b89295f
AC
2550 * hppa-linux-nat.c: Do not include <string.h>.
2551 (supply_fpregset): Remove "register" attribute.
2552
d5c560f7
AC
2553 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2554
7ddd7709
MK
25552004-07-17 Mark Kettenis <kettenis@gnu.org>
2556
b1d19a62
MK
2557 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2558 * configure, config.in: Regenerated.
2559
7ddd7709
MK
2560 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2561 "bsd-kvm.h".
2562 (vaxbsd_supply_pcb): New function.
2563 (_initialize_vaxbsd_nat): New prototype and function.
2564 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2565 solib-sunos.o.
2566 (LOADLIBES): New variable.
2567 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2568 (LOADLIBES): New variable.
2569 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2570 (LOADLIBES): New variable.
2571 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2572
2c07db7a
AC
25732004-07-16 Andrew Cagney <cagney@gnu.org>
2574
2575 * defs.h (event_loop_p): Replace variable declaration with macro,
2576 always 1.
2577 * main.c (captured_main): Delete options "-async" and "-noasync".
2578 (event_loop_p): Delete variable.
2579 * NEWS: Mention that "-async" and "-noasync" were removed.
2580
717eb1cf
AC
25812004-07-16 Andrew Cagney <cagney@gnu.org>
2582
2583 * remote-m32r-sdi.c: Re-indent.
2584
c101bc14
JB
25852004-07-16 Jim Blandy <jimb@redhat.com>
2586
5109a438
JB
2587 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2588 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2589 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2590 missing MPC823 SPRs.
2591 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2592 incorrect. (This was corrected in GDB's register name tables on
2593 2004-07-14.)
2594
c101bc14
JB
2595 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2596 should be "esasrr" ("ESA Save and Restore Register").
2597
7ce450bd
AC
25982004-07-16 Andrew Cagney <cagney@gnu.org>
2599
2600 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2601 calls, no longer applicable. Update comments and rename parameter
2602 "step_frame" to "return_frame".
2603
ca73dd9d
AC
26042004-07-16 Andrew Cagney <cagney@gnu.org>
2605
2606 * frame.c (fprint_field): New function.
2607 (fprint_frame_id): Use fprint_field.
2608
31941f6d
JB
26092004-07-15 Joel Brobecker <brobecker@gnat.com>
2610
2611 * ada-lang.c (ada_language_defn): Remove commented out code.
2612
f86a7158
JB
26132004-07-15 Jim Blandy <jimb@redhat.com>
2614
2615 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2616 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2617
c24791ec
JB
26182004-07-14 Jim Blandy <jimb@redhat.com>
2619
29bb1356
JB
2620 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2621
cc98b5cc
JB
2622 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2623
8f088af7
JB
2624 * ppc-tdep.h (ppc_num_srs): New enum constant.
2625
0ea0ec5f
JB
2626 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2627 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2628 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2629 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2630 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2631 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2632 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2633 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2634 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2635 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2636 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2637 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2638 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2639 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2640 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2641 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2642 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2643 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2644 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2645 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2646 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2647 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2648 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2649 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2650 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2651 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2652 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2653 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2654 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2655 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2656 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2657 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2658 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2659 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2660 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2661 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2662 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2663 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2664 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2665 special-purpose register numbers.
2666
c24791ec
JB
2667 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2668 manual mentions 'md_twb', but many mention 'm_twb', and at that
2669 point in the register list.)
2670
d833db3b
AC
26712004-07-14 Andrew Cagney <cagney@gnu.org>
2672
2673 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2674 instead of "internal-error".
2675
080228b2
JB
26762004-07-10 Joel Brobecker <brobecker@gnat.com>
2677
2678 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2679 that was inserted inside a comment.
2680
c268433a
RC
26812004-07-10 Randolph Chung <tausq@debian.org>
2682
2683 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2684 function.
2685 (hppa_hpux_push_dummy_code): New function.
2686 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2687 Set find_global_pointer method.
2688
71009278
MK
26892004-07-10 Mark Kettenis <kettenis@gnu.org>
2690
2691 * NEWS: Mention BSD libkvm interface.
2692
b2fa5097
MS
26932004-07-10 Michael Snyder <msnyder@redhat.com>
2694
2695 * symfile.c (generic_load): Comment typo.
2696 * stack.c (get_selected_block): Ditto.
2697 * regcache.c (regcache_cooked_read): Ditto.
2698 * monitor.c (monitor_debug): Ditto.
2699 * mips-tdep.c (mips_read_pc): Ditto.
2700 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2701 * gdb_mbuild.sh: Ditto.
2702 * gdbarch.sh: Ditto.
2703 * gdbarch.h: Ditto.
2704
c3e5cd34
PH
27052004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2706
8a2225b2
PH
2707 * ada-tasks.c: Remove file.
2708
c3e5cd34
PH
2709 Remove ARI problems:
2710
2711 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2712 beginning of line.
2713
2714 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2715 Add comment.
2716 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2717 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2718 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2719 (UMIN_OF_SIZE): Remove.
2720 (max_of_type): New function to replace orphan macro in gdbtypes.h
2721 (min_of_type): Ditto.
2722 (discrete_type_high_bound): Use max_of_type.
2723 (discrete_type_low_bound): Use min_of_type.
2724 (possible_user_operator_p): Move operator to beginning of line.
2725 (ada_is_variant_part): Ditto.
2726 (ensure_lval): Rewrite to avoid deprecated operations.
2727 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2728 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2729 (ada_enum_name): Remove assignments in 'if' statements.
2730 (build_ada_types): Add gdbarch parameter.
2731 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2732 with gdbarch_data_register_post_init.
2733 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2734 add_show_from_set.
2735
2736 * ada-valprint.c (inspect_it): Remove declaration.
2737 (repeat_count_threshold): Remove declaration.
2738 (ada_print_floating): Remove assignments in 'if' statements.
2739 (print_str): Move operator to beginning of line.
2740
61ce229a
JB
27412004-07-08 Jim Blandy <jimb@redhat.com>
2742
2743 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2744
09bcec80
BR
27452004-07-08 Bob Rossi <bob@brasko.net>
2746
2747 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2748
31c27f77
JJ
27492004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2750
2751 * language.h (struct_language_defn): Add new function pointer:
2752 la_class_name_from_physname. Also add new prototype for
2753 language_class_name_from_physname.
2754 * language.c (language_class_name_from_physname): New function.
2755 (unk_lang_class_name): Ditto.
2756 (unknown_language_defn, auto_language_defn): Change
2757 to add unk_lang_class_name function pointer for
2758 la_class_name_from_physname.
2759 (local_language_defn): Ditto.
2760 * dwarf2read.c (guess_structure_name): Change to call
2761 language_class_name_from_physname.
2762 (determine_class_name): Ditto.
2763 * cp-support.c (class_name_from_physname): Renamed.
2764 (cp_class_name_from_physname): New name of function.
2765 * cp-support.h: Ditto.
2766 * c-lang.c (c_language_defn): Change to add NULL
2767 for class_name_from_physname function pointer.
2768 (cplus_language_defn): Change to add cp_class_name_from_physname.
2769 * jv-lang.c (java_class_name_physname): New function.
2770 (java_find_last_component): New static routine.
2771 (java_language_defn): Add java_class_name_from_physname pointer.
2772 * ada-lang.c (ada_language_defn): Change to add NULL
2773 for class_name_from_physname function pointer.
2774 * f-lang.c (f_language_defn): Ditto.
2775 * m2-lang.c (m2_language_defn): Ditto.
2776 * objc-lang.c (objc_language_defn): Ditto.
2777 * p-lang.c (pascal_language_defn): Ditto.
2778 * scm-lang.c (scm_language_defn): Ditto.
2779
ee28ca0f
AC
27802004-07-06 Andrew Cagney <cagney@gnu.org>
2781
2782 Patch from Bart Robinson.
2783 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2784 (O_LARGEFILE): Define to 0, if not defined.
2785
fdb1bf9d
MK
27862004-07-03 Mark Kettenis <kettenis@gnu.org>
2787
cb162ff6
MK
2788 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2789 <machine/pcb.h> and "bsd-kvm.h".
2790 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2791 (m68kbsd_supply_pcb): New function.
2792 (_initialize_m68kbsd_nat): New prototype and function.
2793 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2794 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2795 (LOADLIBES): New variable.
2796 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2797 (LOADLIBES): New variable.
2798
fdb1bf9d
MK
2799 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2800
963c4174
MK
28012004-07-03 Mark Kettenis <kettenis@gnu.org>
2802
2803 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2804 <sys/proc.h>.
2805 (bsd_kvm_cmdlist): New variable.
2806 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2807 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2808 command and "kvm proc" command.
2809 * Makefile.in (bsd-kvm.o): Update dependencies.
2810
533f1d8f
MK
28112004-07-02 Mark Kettenis <kettenis@gnu.org>
2812
2813 * osabi.c: Update copyright year.
2814 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2815 notes if EI_OSABI is set to ELFOSABI_HPUX.
2816
6780dcde
MS
28172004-07-01 Michael Snyder <msnyder@redhat.com>
2818
2819 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2820 that seems to have gotten whacked out of line.
2821
67bebe79
MK
28222004-07-01 Mark Kettenis <kettenis@gnu.org>
2823
2824 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2825 code.
2826
0b5d8877
PH
28272004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2828
2829 * ada-lang.c (decode_packed_array): Minor change to comment.
2830 (ada_value_slice_ptr): New function.
2831 (ada_value_slice): New function.
2832 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2833 test. Don't know why it is there.
2834 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2835 to avoid dereferencing huge arrays from which one is slicing.
2836 (empty_array): Correct to return an array rather than
2837 a subrange value.
2838 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2839 on empty arrays (let'em use 'FIRST instead).
2840
19c1ef65
PH
28412004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2842
2843 Address complaints from gdb_ari.sh:
2844
2845 * ada-exp.y: Include gdb_string.h rather than string.h.
2846 (convert_char_literal): Reformat declaration.
2847 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2848 * ada-lex.l: Change use of free to xfree (the macro would do so
2849 anyway, but this is harmless).
2850 Include gdb_string.h rather than string.h.
2851 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2852
2853 * ada-lang.c (parse): Remove K&Rism in parameter list.
2854 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2855
d81cbc94
MK
28562004-06-30 Mark Kettenis <kettenis@gnu.org>
2857
2858 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2859 dead code.
2860
07681759
MK
28612004-06-30 Mark Kettenis <kettenis@gnu.org>
2862
2863 * alphabsd-nat.c: Update copyright year.
2864 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2865
f7948b5f
JB
28662004-06-29 Joel Brobecker <brobecker@gnat.com>
2867
6e0cdd28 2868 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2869 (i386_cygwin_in_solib_call_trampoline): New function.
2870 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2871 and skip_trampoline_code gdbarch methods.
2872
8f113c9a
JB
28732004-06-29 Jim Blandy <jimb@redhat.com>
2874
2875 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2876 name actually used in the dependency lists.
2877
97dc871c
RC
28782004-06-29 Randolph Chung <tausq@debian.org>
2879
2880 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2881
47216e51
CV
28822004-06-29 Corinna Vinschen <vinschen@redhat.com>
2883
2884 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2885 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2886 functionality.
2887
e623b504
AC
28882004-06-28 Andrew Cagney <cagney@gnu.org>
2889
2890 * defs.h (xstrvprintf): Declare.
2891 * utils.c (xstrvprintf): New function.
2892 (internal_vproblem, xstrprintf, xasprintf)
2893 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2894 * serial.c (serial_printf): Ditto.
2895 * complaints.c (vcomplaint): Ditto.
2896
79acc9b3
CV
28972004-06-29 Corinna Vinschen <vinschen@redhat.com>
2898
2899 * infcmd.c (attach_command): Move call to target_terminal_inferior
2900 behind loading symbol table.
2901
1daf35d9
AC
29022004-06-28 Andrew Cagney <cagney@gnu.org>
2903
2904 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2905 change - add back extern deprecated_ui_loop_hook declaration.
2906
b435e160
AC
29072004-06-28 Andrew Cagney <cagney@gnu.org>
2908
2909 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2910 xstrprintf.
2911 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2912 (c_value_of_variable): Ditto.
2913 * utils.c (internal_vproblem): Ditto.
2914 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2915 * remote.c (add_packet_config_cmd): Ditto.
2916 * remote-rdp.c (rdp_set_command_line): Ditto.
2917 * regcache.c (regcache_dump): Ditto.
2918 * frv-tdep.c (new_variant, new_variant): Ditto.
2919 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2920 (fbsd_find_memory_regions): Ditto.
2921 * breakpoint.c (create_thread_event_breakpoint)
2922 (create_breakpoints): Ditto.
2923 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2924 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2925
06d5cf63
JB
29262004-06-28 Joel Brobecker <brobecker@gnat.com>
2927
2928 * ada-lang.c: Re-indent file, with some massaging to help indent
2929 a bit when the result is otherwise really too ugly.
2930
35809fad
UW
29312004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2932
2933 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2934 code_addr_p and special_addr_p to 'unsigned int'.
2935
40e20472
MK
29362004-06-27 Mark Kettenis <kettenis@gnu.org>
2937
2938 * i386v4-nat.c: Update copyright year and tweak comment.
2939 (regmap): Remove trailing comma.
2940 (supply_gregset): Rename local variable i to regnum. Call
2941 regcache_raw_supply instead of supply_register.
2942 (fill_gregset): Rename argument regno to regnum. Call
2943 regcache_raw_collect instead of regcache_collect.
2944
12b0b6de
UW
29452004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2946
2947 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2948 and special_addr_p.
2949 (frame_id_build, frame_id_build_special): Update comments.
2950 (frame_id_build_wild): New prototype.
2951 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2952 struct frame_id fields.
2953 (frame_id_build_wild): New function.
2954 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2955
47b42a3e
MK
29562004-06-27 Mark Kettenis <kettenis@gnu.org>
2957
2958 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2959 hppabsd-tdep.c.
2960
1265e4aa
JB
29612004-06-27 Joel Brobecker <brobecker@gnat.com>
2962
2963 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2964
76a01679
JB
29652004-06-27 Joel Brobecker <brobecker@gnat.com>
2966
2967 * ada-lang.c: Re-indent file.
2968
7aca490a
JB
29692004-06-27 Joel Brobecker <brobecker@gnat.com>
2970
2971 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2972 (no_symtab_msg): Likewise.
2973
5e987968
AS
29742004-06-27 Andreas Schwab <schwab@suse.de>
2975
2976 * source.c: Fix whitespace.
2977
315c4276
MK
29782004-06-27 Mark Kettenis <kettenis@gnu.org>
2979
d15be926
MK
2980 * configure.in: Include <sys/param.h> for td_pcb test.
2981 * configure: Regenerated.
2982
9062529b
MK
2983 * i386nbsd-nat.c: New file.
2984 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2985 i386obsd-nat.c and i386obsd-tdep.c.
2986 (i386nbsd-nat.o): New dependency.
2987 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2988 bsd-kvm.o.
2989 (LOADLIBES): New variable.
2990 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2991 bsd-kvm.o.
2992 (LOADLIBES): New variable.
2993
8010310e
MK
2994 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2995 (LOADLIBES): New variable.
2996
efe1d7b9
MK
2997 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2998 fetching from BSD_KVM_PADDR. Correctly lookup address for
2999 "_thread0".
3000
315c4276
MK
3001 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3002 "bsd-kvm.h".
3003 (amd64fbsd_supply_pcb): New funcion.
3004 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3005
399cfac6
DL
30062004-06-27 <david@streamline-computing.com>
3007
3008 Partial fix for PR cli/1056.
3009 * valarith.c: Check for zero in division and remainder
3010 evaluation.
3011
6235f9c8
MK
30122004-06-27 Mark Kettenis <kettenis@gnu.org>
3013
3014 * i387-tdep.c: Remove excessive whitespace.
3015
2726dafc
AC
30162004-06-26 Andrew Cagney <cagney@gnu.org>
3017
3018 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3019 * gdb-events.h, gdb-events.c: Re-generate.
3020 * tui/tui-hooks.c (tui_install_hooks): Update.
3021 (tui_remove_hooks): Update.
3022 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3023
0e56aeaf
MK
30242004-06-26 Mark Kettenis <kettenis@gnu.org>
3025
cb461069
MK
3026 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3027 (gregset_t, fpregset_t): Remove typedefs.
3028 (REG_OFFSET): Rename argument.
3029 (amd64bsd_r_reg_offset): Rename from reg_offset.
3030 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3031 Remove functions.
3032 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3033 of reg_offset.
3034 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3035
ecba89de
MK
3036 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3037
4cd80476
MK
3038 * vax-tdep.c: Tweak comment.
3039
0e56aeaf
MK
3040 Add OpenBSD/hppa support.
3041 * NEWS (New native configurations): Mention OpenBSD/hppa.
3042 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3043 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3044 files.
3045 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3046 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3047 * configure.host: Add hppa*-*-openbsd*.
3048 * configure.tgt: Add hppa*-*-openbsd*.
3049
98bbd631
AC
30502004-06-25 Andrew Cagney <cagney@gnu.org>
3051
3052 * defs.h (deprecated_ui_loop_hook): Deprecated.
3053 * wince.c (child_wait): Update.
3054 * win32-nat.c (child_wait): Update.
3055 * v850ice.c (v850ice_wait): Update.
3056 * top.c (deprecated_ui_loop_hook): Update.
3057 * serial.h: Update.
3058 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3059 (do_unix_readchar): Update.
3060 * ser-tcp.c (net_open): Update.
3061 * remote-sim.c (gdb_os_poll_quit): Update.
3062 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3063
769d7dc4
AC
30642004-06-24 Andrew Cagney <cagney@gnu.org>
3065
3066 * defs.h (deprecated_pre_add_symbol_hook)
3067 (deprecated_post_add_symbol_hook): Deprecated.
3068 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3069 (symbol_file_add_with_addrs_or_offsets): Update references.
3070
11c949aa
AC
30712004-06-24 Andrew Cagney <cagney@gnu.org>
3072
3073 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3074 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3075 * wince.c (ui_loop_hook): Delete extern declaration.
3076 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3077 * v850ice.c (ui_loop_hook): Delete extern declaration..
3078 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3079 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3080 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3081 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3082 ui_loop_hook declaration.
3083
eedc19af
AC
30842004-06-24 Andrew Cagney <cagney@gnu.org>
3085
3086 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3087 entry_func_highpc fields.
3088 * objfiles.c (init_entry_point_info): Do not clear
3089 entry_func_lowpc and entry_func_highpc.
3090 (objfile_relocate): Do not relocate entry_func_lowpc and
3091 entry_func_highpc.
3092 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3093 entry_func_highpc.
3094 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3095 entry_func_highpc.
3096 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3097 entry_func_lowpc and entry_func_highpc with call to
3098 inside_entry_func.
3099
d47079be
MK
31002004-06-24 Mark Kettenis <kettenis@gnu.org>
3101
3102 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3103 quad-precision floating point arguments in registers.
3104
2107e348
MK
31052004-06-24 Mark Kettenis <kettenis@gnu.org>
3106
3107 From Michael Mueller <m.mueller99@kay-mueller.de>:
3108 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3109 account.
3110
46587c42
JJ
31112004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3112
3113 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3114 to -1.
3115 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3116 untriggered watchpoints to a separate if clause. Update function
3117 comment regarding STOPPED_BY_WATCHPOINT argument.
3118
226f5cf4
JB
31192004-06-22 Jim Blandy <jimb@redhat.com>
3120
3121 * gdbarch.sh: Doc fix.
3122
f10683bb
MH
31232004-06-21 Martin Hunt <hunt@redhat.com>
3124 Kevin Buettner <kevinb@redhat.com>
3125
3126 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3127 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3128 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3129 to set_gdbarch_sp_regnum(). Use cooked register number.
3130 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3131
412d5987
AC
31322004-06-21 Andrew Cagney <cagney@gnu.org>
3133
3134 * gdbarch.sh: When the macro field is empty, do not generate a
3135 macro definition. When the macro field is "=", generate the macro
3136 name from the upper-case function name.
3137 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3138 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3139 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3140 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3141 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3142 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3143 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3144 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3145 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3146 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3147 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3148 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3149 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3150 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3151 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3152 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3153 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3154 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3155 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3156 (DEPRECATED_USE_STRUCT_CONVENTION)
3157 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3158 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3159 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3160 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3161 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3162 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3163 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3164 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3165 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3166 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3167 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3168 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3169 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3170 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3171 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3172 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3173 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3174 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3175
68908a3e
AC
31762004-06-21 Andrew Cagney <cagney@gnu.org>
3177
48f7351b
AC
3178 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3179 macro name, and the function rather than macro value. Only wrap
3180 macro print statements in #ifdef. Move format logic to where it
3181 is needed.
3182 * gdbarch.c: Re-generate.
3183
283354d8
AC
3184 * gdbarch.sh (read): Delete "print_p" and "description", add
3185 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3186 Delete references to print_p.
3187 (TARGET_ARCHITECTURE): Delete print predicate.
3188 * gdbarch.c: Re-generate.
3189
68908a3e
AC
3190 * gdbarch.sh: Check that multi-arch methods do not provide a
3191 macro.
3192 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3193 (print_registers_info, print_float_info, print_vector_info)
3194 (adjust_breakpoint_address, remote_translate_xfer_address)
3195 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3196 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3197 name from the multi-arch definition.
3198
a2428dbe
AC
31992004-06-20 Andrew Cagney <cagney@gnu.org>
3200
3201 * gdbarch.sh: Sort by the function, instead of macro name.
3202 * gdbarch.c: Re-generate.
3203
750eb019
AC
32042004-06-20 Andrew Cagney <cagney@gnu.org>
3205
66d659b1
AC
3206 * gdbarch.sh: Use the function, instead of macro name in
3207 errors and the log file.
3208 (return_value): Remove stray ":" in spec.
3209
750eb019
AC
3210 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3211 * gdbarch.h, gdbarch.c: Re-generate.
3212 * Makefile.in (arch-utils.o): Update dependencies.
3213 * values.c (using_struct_return): Move code calling
3214 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3215 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3216 to legacy_return_value, simplify.
3217 * infcmd.c (print_return_value): Move code calling
3218 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3219 to legacy_return_value, simplify.
3220 * infcall.c (call_function_by_hand): Move code calling
3221 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3222 * arch-utils.c: Update copyright. Include "gdbcore.h".
3223 (legacy_return_value): New function.
3224 * arch-utils.h: Update copyright.
3225 (legacy_return_value): Declare.
3226
b5622e8d
AC
32272004-06-20 Andrew Cagney <cagney@gnu.org>
3228
3229 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3230 * gdbarch.h, gdbarch.c: Re-generate.
3231 * values.c (using_struct_return): Update call.
3232 * mcore-tdep.c: Update comment.
3233 * infcall.c (call_function_by_hand): Update comment.
3234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3235 * arch-utils.h (always_use_struct_convention): Update.
3236 * v850-tdep.c (v850_gdbarch_init): Update.
3237 * sh64-tdep.c (sh64_gdbarch_init): Update.
3238 * sh-tdep.c (sh_gdbarch_init): Update.
3239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3240 * mips-tdep.c (mips_gdbarch_init): Update.
3241 * mcore-tdep.c (mcore_gdbarch_init): Update.
3242 * m32r-tdep.c (m32r_gdbarch_init): Update.
3243 * ia64-tdep.c (ia64_gdbarch_init): Update.
3244 * h8300-tdep.c (h8300_gdbarch_init): Update.
3245 * frv-tdep.c (frv_gdbarch_init): Update.
3246 * cris-tdep.c (cris_gdbarch_init): Update.
3247 * arm-tdep.c (arm_gdbarch_init): Update.
3248 * alpha-tdep.c (alpha_gdbarch_init): Update.
3249
5191de37
MC
32502004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3251
3252 * PROBLEMS: Add more specific information, and a work-around,
3253 for PR gdb/1458.
3254
782263ab
AC
32552004-06-18 Andrew Cagney <cagney@gnu.org>
3256
3257 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3258 * gdbarch.h, gdbarch.c: Re-generate.
3259 * ada-lang.c (ada_finish_decode_line_1): Update.
3260 * infrun.c (handle_inferior_event): Update.
3261 * infcall.c (find_function_addr): Update.
3262 * linespec.c (minsym_found): Update.
3263 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3264 Update.
3265 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3266 * cli/cli-cmds.c (disassemble_command): Update.
3267 * vax-tdep.c (vax_gdbarch_init): Update.
3268
2f305df1
MK
32692004-06-18 Mark Kettenis <kettenis@gnu.org>
3270
3271 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3272
e5fe55f7
AC
32732004-06-17 Andrew Cagney <cagney@gnu.org>
3274
3275 GDB 6.1.1 released from the GDB 6.1 branch.
3276 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3277 * PROBLEMS: Ditto.
3278
473b7be6
DJ
32792004-06-16 Daniel Jacobowitz <dan@debian.org>
3280
3281 PR gdb/1658
3282 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3283 operation as a uleb128. Found by Michael Coulter.
3284
96d887e8
PH
32852004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3286
3287 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3288 make it non-static.
3289 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3290 to ada-lang.h; this is needed to be able to implement the kill command
3291 in multi-task mode.
3292 (task_ptid): Ditto.
3293 (task_entry): Ditto.
3294 (task_list): Ditto.
3295 (ada_build_task_list): Ditto.
3296
3297 * ada-lang.c: Conditionalize routines and data structures related
3298 to breakpoints, exceptions, completion, and symbol caching on
3299 GNAT_GDB, since these are not yet used in the submitted public sources.
3300 (ada_main_name): Editorial: Move definition out of exception-related
3301 code.
3302
31eef181
AC
33032004-06-15 Andrew Cagney <cagney@gnu.org>
3304
3305 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3306 deprecated_pc_in_call_dummy.
3307
2c500098
AM
33082004-06-15 Alan Modra <amodra@bigpond.net.au>
3309
3310 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3311 bfd_get_section_size_before_reloc or _raw_size.
3312 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3313 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3314 (dwarf2_read_section): Likewise.
3315 * elfread.c (elf_locate_sections): Likewise.
3316 * gcore.c (derive_heap_segment): Likewise.
3317 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3318 * remote-e7000.c (e7000_load): Likewise.
3319 * remote-m32r-sdi.c (m32r_load): Likewise.
3320 * remote-mips.c (mips_load_srec): Likewise.
3321 (pmon_load_fast): Likewise.
3322 * remote.c (compare_sections_command): Likewise.
3323 * symfile.c (add_section_size_callback): Likewise.
3324 (load_section_callback): Likewise.
3325 (pc_in_unmapped_range): Likewise.
3326 (pc_in_mapped_range): Likewise.
3327 (sections_overlap): Likewise.
3328 (list_overlays_command): Likewise.
3329 (simple_overlay_update_1): Likewise.
3330 (simple_overlay_update): Likewise.
3331 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3332 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3333
90f943f1
RC
33342004-06-14 Randolph Chung <tausq@debian.org>
3335
3336 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3337 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3338 static.
3339 (hppa_hpux_inferior_created): New function.
3340 (hppa_hpux_init_abi): Register observer.
3341 * symfile.c (hp_cxx_exception_support_initialized)
3342 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3343 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3344
700c15aa
RC
33452004-06-14 Randolph Chung <tausq@debian.org>
3346
3973a7d3
AC
3347 * MAINTAINERS (Write After Approval): Alphabetize my entry
3348 correctly.
700c15aa 3349
cea4838c
AC
33502004-06-14 Andrew Cagney <cagney@gnu.org>
3351
3352 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3353 testsuite maintainer.
3354
97092415
AC
33552004-06-13 Andrew Cagney <cagney@gnu.org>
3356
e8c3165b
AC
3357 * infcmd.c (print_return_value): Fix logic, allow
3358 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3359
bceabdd8
AC
3360 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3361 defining any macros.
3362 * gdbarch.h: Re-generate.
3363
57010b1c
AC
3364 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3365 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3366 * gdbarch.h: Re-generate.
3367
bc87dfa0
AC
3368 * values.c (generic_use_struct_convention): Don't check gcc_p.
3369
15ac804d
AC
3370 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3371 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3372 * gdbarch.h, gdbarch.c: Regenerate.
3373 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3374 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3376 deprecated_max_register_raw_size and
3377 deprecated_max_register_virtual_size.
3378 * v850-tdep.c (v850_gdbarch_init): Ditto.
3379 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3381 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3382 * cris-tdep.c (cris_gdbarch_init): Ditto.
3383
97092415
AC
3384 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3385 * gdbarch.h, gdbarch.c: Re-generate.
3386 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3387 (m68hc11_use_struct_convention): Delete function.
3388 (m68hc11_extract_struct_value_address): Delete function.
3389 (m68hc11_return_value): New function.
3390 (m68hc11_gdbarch_init): Instead of store_return_value,
3391 extract_return_value, return_value_on_stack,
3392 deprecated_extract_struct_value_address and use_struct_convention,
3393 set return_value.
3394 * values.c (using_struct_return): Do not call
3395 RETURN_VALUE_ON_STACK.
3396 * arch-utils.h (generic_return_value_on_stack_not): Delete
3397 declaration.
3398 * arch-utils.c (generic_return_value_on_stack_not): Delete
3399 function.
3400
44e5158b
AC
34012004-06-12 Andrew Cagney <cagney@gnu.org>
3402
3403 * values.c (register_value_being_returned): Delete function.
3404 * infcmd.c (legacy_return_value): Delete function.
3405 * infcall.c (call_function_by_hand): Inline
3406 "register_value_being_returned", simplify.
3407 * values.c (using_struct_return): Update comment, refer to
3408 print_return_value instead of register_value_being_returned.
3409 * infcmd.c (print_return_value): Inline calls to
3410 register_value_being_returned and legacy_return_value. Simplify.
3411
b887c273
RC
34122004-06-11 Randolph Chung <tausq@debian.org>
3413
3414 * somread.c (som_symtab_read): Exclude gcc local symbols.
3415
1b2bfbb9
RC
34162004-06-11 Randolph Chung <tausq@debian.org>
3417
3973a7d3
AC
3418 * infrun.c (handle_inferior_event): Handle the case when a
3419 trampoline ends up in the runtime resolver, and if the trampoline
3420 has no name. Rearrange the code so that all the trampoline
3421 processing happens before other step-out-of-range handling.
1b2bfbb9 3422
a9d61c86
MH
34232004-06-11 Martin Hunt <hunt@redhat.com>
3424
3425 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3426 has no fpu.
3427
2c87cf5a
AC
34282004-06-10 Andrew Cagney <cagney@gnu.org>
3429
3430 * blockframe.c (legacy_inside_entry_func): Delete.
3431 (legacy_frame_chain_valid): Inline call to
3432 legacy_inside_entry_func, simplify.
3433
0b67b468 34342004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3435
3436 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3437 * dwarf2read.c (partial_die_info): Add dirname field.
3438 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3439 (read_partial_die): Save away DW_AT_comp_dir.
3440 * defs.h (symtab_to_filename): Removed.
3441 * source.c (find_and_open_source): Added.
57c22c6c 3442 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3443 (symtab_to_filename): Removed.
3444 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3445 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3446 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3447 symtab_to_filename.
3448 * symtab.h (partial_symtab): Add dirname field.
3449 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3450 (mi_cmd_file_list_exec_source_file): Call new function
3451 symtab_to_fullname to find fullname.
57c22c6c 3452 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3453 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3454 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3455
9a1dd1ad
AC
34562004-06-10 Andrew Cagney <cagney@gnu.org>
3457
239ae8c7
AC
3458 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3459 to generic_use_struct_convention, the default value.
3460
fc720350
AC
3461 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3462 of abort.
3463
9a1dd1ad
AC
3464 * ns32k-tdep.c (ns32k_push_arguments): New function.
3465 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3466 * infcall.c (call_function_by_hand): Call error instead of
3467 legacy_push_arguments.
3468 * value.h (legacy_push_arguments): Delete declaration.
3469 * valops.c (legacy_push_arguments): Delete function.
3470 (value_push): Delete function.
3471
fea25152
BF
34722004-06-10 Brian Ford <ford@vss.fsi.com>
3473
3474 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3475 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3476 info.
3477 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3478
30a4a8e0
AC
34792004-06-10 Andrew Cagney <cagney@gnu.org>
3480
3481 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3482 * gdbarch.h, gdbarch.c: Re-generate.
3483 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3484 parameters.
3485 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3486 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3487 deprecated_pc_in_call_dummy instead of
3488 DEPRECATED_PC_IN_CALL_DUMMY.
3489 (arm_skip_prologue): Ditto.
3490 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3491 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3492 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3493 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3494 Ditto.
3495 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3496 (sh64_init_extra_frame_info, sh64_get_saved_register)
3497 (sh64_pop_frame): Ditto.
3498 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3499 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3500 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3501 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3502 (h8300_pop_frame): Ditto.
3503 * blockframe.c (legacy_inside_entry_func)
3504 (legacy_frame_chain_valid): Ditto.
3505 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3506 to deprecated_pc_in_call_dummy.
3507
81cfbe54
AC
35082004-06-09 Andrew Cagney <cagney@gnu.org>
3509
a1f4a1b6
AC
3510 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3511 provide a default value.
3512 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3513 * gdbarch.h, gdbarch.c: Re-generate.
3514 * arch-utils.c (generic_convert_register_p): Rename
3515 legacy_convert_register_p
3516 (legacy_register_to_value, legacy_value_to_register): Delete
3517 functions.
3518 * arch-utils.h (generic_convert_register_p): Rename
3519 legacy_convert_register_p.
3520 (legacy_register_to_value, legacy_value_to_register): Delete
3521 declarations.
3522
9730f241
AC
3523 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3524 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3525 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3526 * gdbarch.h, gdbarch.c: Re-generate.
3527 * infcmd.c (default_print_registers_info): Simplify.
3528 * findvar.c (value_of_register): Simplify.
3529 * mi/mi-main.c (get_register): Simplify.
3530 * arch-utils.c (legacy_convert_register_p): Always return 0.
3531 (legacy_register_to_value, legacy_value_to_register): Always call
3532 internal_error.
3533
8a1bf479
AC
3534 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3535 #ifdef CLEAR_INSN_CACHE code.
3536 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3537 Delete #ifdef CLEAR_DEFERRED_STORES code.
3538
4b38d6f1
AC
3539 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3540
2d62ecc7
AC
3541 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3542 copyright.
3543 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3544
be4f7469
AC
3545 * config/mips/mipsv4.mh: Delete file.
3546
81cfbe54
AC
3547 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3548 unreferenced macro.
3549 (hpread_adjust_stack_address): Delete declaration.
3550
d966f0cb
AC
35512004-06-08 Andrew Cagney <cagney@gnu.org>
3552
3553 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3554 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3555 PTRACE_ATTACH / PTRACE_DETACH available call error.
3556 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3557 * infttrace.c (update_thread_state_after_attach, attach, detach):
3558 Remove #ifdef wrappers.
3559 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3560 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3561 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3562 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3563 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3564 * config/nm-linux.h (ATTACH_DETACH): Delete.
3565 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3566 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3567 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3568 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3569 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3570
d91670b9
CV
35712004-06-08 Corinna Vinschen <vinschen@redhat.com>
3572
3573 * configure.in: Set $configdir to the right OS specific value.
3574 Use value when setting $tcldir and $tkdir.
3575 * configure: Regenerate.
3576
28ba0b33
PB
35772004-06-06 Paul Brook <paul@codesourcery.com>
3578
3579 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3580 records.
3581
f26caa11
PH
35822004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3583
3584 * ada-lang.c (lookup_symbol_in_language): New function to allow
3585 re-use of another language's symbol lookup code. (Placed here
3586 temporarily while Ada support is being integrated into the public
3587 tree).
3588 (restore_language): New auxiliary function for
3589 lookup_symbol_in_language.
3590 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3591 temporarily while Ada support is being integrated into the public
3592 tree).
3593
d560a54b
AO
35942004-06-08 Alexandre Oliva <aoliva@redhat.com>
3595
e75d110c
AO
3596 * Makefile.in (check//%): New.
3597
d560a54b
AO
3598 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3599 (mn10300_store_return_value): Rewrite.
3600 (mn10300_type_align): New.
3601 (mn10300_use_struct_convention): Rewrite.
3602 (mn10300_return_value): New, using all of the above.
3603 (mn10300_pop_frame_regular): Add saved_regs_size.
3604 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3605
a72fbdb7
AO
3606 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3607 regs if PC is on movm.
3608
01904826
JB
36092004-06-07 Jim Blandy <jimb@redhat.com>
3610
3611 Add native Linux support for the PowerPC E500.
3612 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3613 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3614 all architectures except the E500.
3615 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3616 #definitions.
3617 (struct gdb_evrregset_t): New type.
3618 (have_ptrace_getsetevrregs): New variable.
3619 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3620 fetch_spe_registers): New functions.
3621 (fetch_register): Call fetch_spe_register as appropriate.
3622 Assert that we're only passed raw register numbers.
3623 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3624 Don't fetch gprs if they're pseudoregisters.
3625 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3626 store_spe_registers): New functions.
3627 (store_register): Call store_spe_register as appropriate.
3628 Assert that we're only passed raw register numbers.
3629 (store_ppc_registers): Call store_spe_registers as appropriate.
3630 Don't store gprs if they're pseudoregisters.
3631
f90ef764
JJ
36322004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3633
3634 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3635 struct if one exists, even if we are dealing with a zombie thread.
3636
45b75230
AC
36372004-06-07 Andrew Cagney <cagney@gnu.org>
3638
3639 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3640 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3641 Rename PC_REQUIRES_RUN_BEFORE_USE.
3642 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3643 #ifdef.
3644
1658da49
RC
36452004-06-07 Randolph Chung <tausq@debian.org>
3646
3647 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3648 unwinding after sp has been saved to the stack but before the end
3649 of the prologue, and after the fp has been modified but before it has
3650 been saved to the stack.
3651 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3652 Remove superfluous definitions.
3653 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3654
9a727a3c
RC
36552004-06-07 Guy Martin <gmsoft@gentoo.org>
3656
3657 Committed by Randolph Chung.
3658 * hppa-linux-nat.c: Include the correct version of the header file
3659 depending on the kernel version.
3660
9e500012
RC
36612004-06-06 Randolph Chung <tausq@debian.org>
3662
3663 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3664 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3665
3388d7ff
RC
36662004-06-06 Randolph Chung <tausq@debian.org>
3667
3668 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3669 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3670 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3671 * hppa-tdep.c (hppa_symbol_address): New function definition.
3672 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3673
d49771ef
RC
36742004-06-06 Randolph Chung <tausq@debian.org>
3675
3676 * hppa-tdep.h (struct value): Forward declaration.
3677 (gdbarch_tdep): Define tdep find_global_pointer method.
3678 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3679 associated with the function we are trying to call, and write it
3680 to the gp register.
3681 (hppa32_convert_from_funct_ptr_addr): New function.
3682 (hppa_find_global_pointer): New function.
3683 (hppa_gdbarch_init): Set default find_global_pointer method; set
3684 convert_from_func_ptr_addr method.
3685 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3686 (hppa_linux_init_abi): Set find_global_pointer method.
3687 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3688
7d9b040b
RC
36892004-06-06 Randolph Chung <tausq@debian.org>
3690
3691 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3692 to struct value *function.
3693 * gdbarch.c: Regenerate.
3694 * gdbarch.h: Likewise.
3695 * infcall.c (call_function_by_hand): Pass entire function value
3696 to push_dummy_call.
3697
3698 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3699 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3700 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3701 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3702 * arm-tdep.c (arm_push_dummy_call): Likewise.
3703 * avr-tdep.c (avr_push_dummy_call): Likewise.
3704 * cris-tdep.c (cris_push_dummy_call): Likewise.
3705 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3706 * frv-tdep.c (frv_push_dummy_call): Likewise.
3707 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3708 * hppa-tdep.c (hppa32_push_dummy_call)
3709 (hppa64_push_dummy_call): Likewise.
3710 * i386-tdep.c (i386_push_dummy_call): Likewise.
3711 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3712 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3713 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3714 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3715 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3716 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3717 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3718 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3719 (ppc64_sysv_abi_push_dummy_call): Likewise.
3720 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3721 (ppc64_sysv_abi_push_dummy_call): Likewise.
3722 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3723 * s390-tdep.c (s390_push_dummy_call): Likewise.
3724 * sh-tdep.c (sh_push_dummy_call_fpu)
3725 (sh_push_dummy_call_nofpu): Likewise.
3726 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3727 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3728 * vax-tdep.c (vax_push_dummy_call): Likewise.
3729
4a19ea35
JB
37302004-06-04 Jim Blandy <jimb@redhat.com>
3731
8327ccee
JB
3732 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3733 gdbarch argument to register_size.
3734
a3c001ce
JB
3735 * rs6000-tdep.c (rs6000_store_return_value): Use
3736 regcache_cooked_write_part instead of
3737 deprecated_write_register_bytes.
3738 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3739 not gdbarch_deprecated_store_return_value.
3740
4a19ea35
JB
3741 * ppc-linux-nat.c (store_register, fetch_register): Remove
3742 incorrect assertions. Simplify and generalize handling of
3743 transfers whose sizes are not multiples of, or less than, sizeof
3744 (PTRACE_XFER_TYPE).
3745
b9b5d7ea
JJ
37462004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3747
3748 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3749 as a new thread event.
720c7d64 3750 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3751 zombie, return TD_THR_ZOMBIE.
720c7d64 3752 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3753 TD_THR_ZOMBIE, check if the thread is still on the thread list
3754 and return a -1 ptid if not found.
3755 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3756 change the status to TARGET_WAITKIND_SPURIOUS.
3757
c8a3b559
CV
37582004-06-03 Corinna Vinschen <vinschen@redhat.com>
3759
3760 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3761 double values in little endian mode.
3762
20605361
AC
37632004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3764
3765 Committed by Andrew Cagney.
3766 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3767 after last enum constant to avoid error from IBM C
3768 compiler.
3769
bc97b3ba
JB
37702004-06-02 Jim Blandy <jimb@redhat.com>
3771
3772 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3773 to 'message', and make it local to the lone block that uses it.
3774
1da28ab0
JB
3775 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3776
4c4b4cd2
PH
37772004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3778
8a2225b2
PH
3779 * ada-exp.y: Update copyright notice.
3780 Include block.h.
3781
3782 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3783 SPECIAL_VARIABLE and unify the treatment of these cases.
3784
3785 (write_attribute_call0): Remove.
3786 (write_attribute_call1): Remove.
3787 (write_attribute_calln): Remove.
3788 (save_qualifier): Add missing semicolon.
3789
3790 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3791 temporarily disabled to allow compilation with FSF head version.
3792
3793 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3794 use individual operators (OP_*) for all attributes.
3795 (exp syntax): Use write_int.
3796 Handle STRING literals with OP_STRING.
3797 (variable syntax): Add limit parameter to calls to
3798 write_object_renaming.
3799
3800 (temp_parse_space): New definition to hold entities that need
3801 only live until the next call to ada_parse.
3802 (string_to_operator): Rename fields of ada_opname_table entries.
3803
3804 (write_var_from_sym): Record block.
3805 (write_var_from_name): Minor reformatting.
3806 Make sure saved name is properly encoded in the case of multiple
3807 matches, and set its language to Ada.
3808 Update comment.
3809 Modify to indicate unresolved name as symbol in the UNRESOLVED
3810 namespace, allocated in temp_parse_space.
3811 (write_int): New function.
3812
3813 (write_object_renaming): Add max_depth parameter to limit
3814 chains of object renamings.
3815 Handle case where root of renaming expression is itself a renaming.
3816 Use temp_parse_space for temporary name buffer.
3817 Handle renamings to dereferenced pointers (___XEXA suffices).
3818
3819 (ada_parse, yyerror, string_to_operator,
3820 write_var_from_sym, write_var_from_name, write_attribute_call0,
3821 write_attribute_call1, write_attribute_calln,
3822 write_object_renaming): Protoize.
3823
3824 (_initialize_ada_exp): New function.
3825
3826 * ada-lang.c: Update copyright notice.
3827 General terminology change to conform to GNAT compiler usage:
3828 mangle => encode, demangle => decode
3829 Include gdb_obstack.h.
3830 Include gdb_regex.h
3831 Include frame.h
3832 Include hashtab.h
3833 Include completer.h
3834 Include gdb_stat.h
3835 Include block.h
3836 Include infcall.h
3837
3838 (ADA_RETAIN_DOTS): Make sure this is defined.
3839 (TRUNCATION_TOWARDS_ZERO): Define.
3840 (struct string_vector): Define.
3841 (unresolved_names): Remove definition.
3842 (xnew_string_vector): New function.
3843 (string_vector_append): New function.
3844 (extract_string): Make static.
3845 (ada_unqualified_name): New function.
3846 (add_angle_brackets): New function.
3847 (function_name_from_pc): New function.
3848 (place_on_stack): Rename to ensure_lval.
3849
3850 (ensure_lval): Renamed from place_on_stack.
3851 Make identity on lvals.
3852 Update comment.
3853 (is_nonfunction): New interface.
3854 Only symbols in LOC_CONST class can be enumerals.
3855 (fill_in_ada_prototype): Remove; now independent of language.
3856 (add_defn_to_vec): Add obstack and symtab arguments.
3857 Use obstack to hold collected definitions.
3858 (num_defns_collected): New function.
3859 (defns_collected): New function.
3860 (ada_resolve_subexp): Rename to resolve_subexp.
3861 (resolve_subexp): Renamed from ada_resolve_subexp.
3862 (ada_op_name): Return non-const result.
3863 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3864 other purposes.
3865
3866 (to_fixed_array_type): Add declaration.
3867 (coerce_unspec_val_to_type): Remove offset parameter.
3868 (find_sal_from_funcs_and_line): New interface.
3869 (find_line_in_linetable): Ditto.
3870
3871 (all_sals_for_line): Rename to ada_sals_for_line and make
3872 global.
3873 Add new parameter. When set, do not ask the user to choose the
3874 instance, but use the first one found instead.
3875 Use given line number in returned sals.
3876 Fix comment.
3877 Skip the prologue if funfirstline is set.
3878 Correct for memory leak when 0 lines found.
3879
3880 (value_pos_atr): Use pos_atr.
3881 (pos_atr): New function.
3882 (standard_lookup): Add block parameter.
3883
3884 (makeTimeStart): Remove declaration and uses.
3885 (makeTimeStop): Remove declaration and uses.
3886
3887 (ada_completer_word_break_characters): Allow for VMS.
3888 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3889 (raise_sym_name): New constant.
3890 (raise_unhandled_sym_name): New constant.
3891 (raise_assert_sym_name): New constant.
3892 (process_raise_exception_name): New constant.
3893 (longest_exception_template): New constant.
3894 (warning_limit): New variable to limit warnings during expression
3895 evaluation.
3896 (warnings_issued): New variable to keep track of warnings issued.
3897 (known_runtime_file_name_patterns): New constant.
3898 (known_auxiliary_function_name_patterns): New constant.
3899 (symbol_list_obstack): New variable.
3900
3901 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3902 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3903 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3904 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3905 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3906 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3907 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3908 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3909 and strcmp.
3910
3911 (ada_get_field_index): New function.
3912 (lim_warning): New function.
3913 (ada_translate_error_message): New function.
3914 (MAX_OF_SIZE): New function.
3915 (MIN_OF_SIZE): New function.
3916 (UMAX_OF_SIZE): New function.
3917 (UMIN_OF_SIZE): New function.
3918 (discrete_type_high_bound): New function.
3919 (discrete_type_low_bound): New function.
3920 (base_type): New function.
3921 (do_command): Remove.
3922
3923 (ada_update_initial_language): Use language_ada, not language_unknown.
3924 (ada_encode): Renamed from ada_mangle.
3925 Obey ADA_RETAIN_DOTS.
3926 (ada_decode): Renamed from ada_demangle.
3927 Update coding conventions.
3928 (decoded_names_store): New hash table.
3929 (ada_decode_symbol): New function.
3930 (ada_la_decode): New function.
3931
3932 (modify_general_field): Correct computations of offset and bit
3933 position.
3934 (desc_base_type): Handle ref types, too.
3935 (ada_is_direct_array_type): New function.
3936
3937 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3938 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3939 (ada_is_bogus_array_descriptor,ada_type_of_array,
3940 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3941 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3942 ada_is_array_descriptor_type.
3943
3944 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3945 (ada_is_packed_array_type): Handle pointers or
3946 references to packed arrays as well.
3947 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3948 (decode_packed_array_type): Search for the packed array type
3949 symbol in the currently selected block and associated
3950 superblocks too.
3951 Use lookup_symbol again.
3952
3953 (decode_packed_array): Handle pointers and references.
3954 Update call to coerce_unspec_val_to_type.
3955 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3956 (ada_value_primitive_packed_val): Improve comment.
3957
3958 (ada_index_type): Substitute int type for "undefined".
3959 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3960 ada_array_langth, ada_is_string_type): Use renamed
3961 ada_is_simple_array_type.
3962 (empty_array): New function.
3963
3964 (ada_resolve): Rename to resolve.
3965 (resolve): Make static.
3966 Call renamed resolve_subexp.
3967 Update comment.
3968 (ada_resolve_subexp): Rename to resolve_subexp.
3969 (resolve_subexp): Update comment.
3970 Decomment disabled code.
3971 Add LOC_COMPUTED* cases.
3972 Modify to use temporary struct symbols (marked as being in
3973 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3974 OP_UNRESOLVED_VALUE.
3975 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3976 Add OP_STRING case.
3977 Remove OP_ARRAY.
3978 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3979 Use new ada_lookup_symbol_list interface.
3980 Use new ada_resolve_function interface.
3981 Remove OP_TYPE case.
3982
3983 (ada_args_match): Idiot proof against null actuals.
3984 Use intermediate variables to clarify.
3985 (ada_resolve_function): Update comment and interface.
3986 (mangled_ordered_before): Rename to encoded_ordered_before and
3987 update comment.
3988 (sort_choices): Update comment and interface.
3989 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3990 (user_select_syms): New interface.
3991 Use new sort_choices interface.
3992 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3993 (possible_user_operator_p): Idiot-proof against null values.
3994 (ada_simple_renamed_entity): Don't make cleanup; rely on
3995 caller to free result string.
3996 Remove const from return type.
3997 (make_array_descriptor): Rename uses of place_on_stack to
3998 ensure_lval.
3999 Make sure that arrays are on stack.
4000
4001 (HASH_SIZE): Define.
4002 (struct cache_entry): Define.
4003 (cache_space): Define.
4004 (cache): Define.
4005 (clear_ada_sym_cache): New function.
4006 (find_entry): New function.
4007 (lookup_cached_symbol): New function.
4008 (defn_vector_size): Define.
4009 (cache_symbol): New function.
4010 (defn_symbols): Remove.
4011
4012 (standard_lookup): Use lookup_symbol_in_language to get effect of
4013 C lookup.
4014 Cache results.
4015
4016 (symbol_completion_match): New function.
4017 (symbol_completion_add): New function.
4018 (ada_make_symbol_completion_list): New function.
4019
4020 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4021 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4022 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4023 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4024
4025 (ada_lookup_simple_minsym): New function.
4026 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4027
4028 (add_symbols_from_enclosing_procs): New interface.
4029 Conditionalize more helpfully.
4030 Don't bother if program isn't running.
4031 Use new interface to get_frame_block.
4032 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4033
4034 (remove_extra_symbols): New interface.
4035 (xget_renaming_scope): New function.
4036 (is_package_name): New function.
4037 (renaming_is_visible): New function.
4038 (remove_out_of_scope_renamings): New function.
4039
4040 (ada_lookup_symbol_list): New interface.
4041 Properly reinitialize the symbol list obstack.
4042 Don't call add_symbols_from_enclosing_procs if we start from a
4043 static or global block.
4044 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4045 add_symbols_from_enclosing_procs.
4046 Add symtab data to cached entries.
4047 Handle symbols prefixed with
4048 "standard__" specially; strip prefix and don't look in local symbols.
4049 Do not include out of scope renaming symbols in list of
4050 symbols returned.
4051 Add const to block parameter.
4052 Move check for non-local, non-global symbols earlier.
4053 Remove timing stuff.
4054 (ada_lookup_symbol): New interface.
4055 Find symtab as well.
4056 (ada_lookup_symbol_nonlocal): New function.
4057
4058 (is_name_suffix): Enhance suffix detection to recognize
4059 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4060 (is_dot_digits_suffix): New function.
4061 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4062
4063 (ada_add_block_symbols): New interface. Use obstack to return results
4064 in a vector of struct ada_symbol_infos. Add symtab argument.
4065 Use new interface to add_defn_to_vec.
4066 Remove calls to fill_in_ada_prototype.
4067 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4068
4069 (ada_finish_decode_line_1): Add const qualification to local to fix
4070 warning.
4071 Start looking in static block for functions to avoid attempts
4072 to search frame chain for up-level variables.
4073 Adapt to new ada_sals_for_line interface.
4074 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4075 Handle quoting of the function name inside the spec string.
4076 Skip prologue when funfirstline is set and update the
4077 function documentation to that effect.
4078
4079 (debug_print_lines, debug_print_block, debug_print_blocks,
4080 debug_print_symtab): Remove.
4081
4082 (ada_main_name): New function.
4083 (ada_exception_breakpoint_type): New function.
4084 (is_known_support_routine): New function.
4085 (ada_find_printable_frame): Renamed from find_printable_frame and made
4086 global.
4087 Remove level parameter.
4088 Use new interface to select_frame.
4089
4090 (begin_command): Remove.
4091 (ada_adjust_exception_stop): New function.
4092 (ada_print_exception_stop): New function.
4093 (exception_name_from_cond): New function.
4094 (ada_report_exception_break): Replace disabled code with
4095 conditionalization on GNAT_GDB.
4096 Get the exception name from the condition string.
4097 Remove and move functionality into new functions
4098 ada_print_exception_breakpoint_task and
4099 ada_print_exception_breakpoint_nontask.
4100 (error_breakpoint_runtime_sym_not_found): New function.
4101 (is_runtime_sym_defined): New function.
4102 (ada_breakpoint_rewrite): Uncomment suppressed code.
4103 Use symbolic error-message and runtime-symbol names.
4104 Surround runtime symbol names in quotes.
4105 Allow non-specific breakpoints on exceptions and assertions before
4106 program starts.
4107
4108 (ada_is_tagged_type): Add parameter.
4109 (ada_is_tag_type): New function.
4110 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4111 (ada_variant_discrim_type): Ditto.
4112 (value_tag_from_contents_and_address): New function.
4113 (type_from_tag): New function.
4114 (struct tag_args): New structure used to communicate with
4115 ada_tag_name_1.
4116 (ada_tag_name_1): New function.
4117 (ada_tag_name): New function.
4118
4119 (ada_scan_number): Update comment.
4120 (find_struct_field): New function.
4121 (ada_search_struct_field): Make static.
4122 (ada_value_struct_elt): New version that returns references when
4123 given pointers or references to structs.
4124 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4125 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4126 interface.
4127 (ada_value_ind): Use new ada_to_fixed_value interface.
4128 (ada_coerce_ref): Ditto.
4129 (field_offset): Remove.
4130
4131 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4132 (ada_find_renaming_symbol): New function.
4133 (ada_prefer_type): Prefer named types over unnamed ones.
4134 (variant_field_index): New function.
4135 (contains_variant_part): Removed: subsumed by variant_field_index.
4136 (ada_template_to_fixed_record_type): New function, mostly from
4137 template_to_fixed_record_type.
4138 (template_to_fixed_record_type):
4139 Do not scan the type fields beyond the last one; prevents a
4140 potential SEGV.
4141 Handle case where variant field is listed BEFORE discriminant it
4142 depends on.
4143 Fix calculation of record length when bit length is
4144 not evenly divisible by char length.
4145 Move code to ada_template_to_fixed_record_type and call it.
4146
4147 (template_to_static_fixed_type): Revise comment.
4148 Modify to work on ordinary record types as well as templates,
4149 so as to handle fields that use ___XVE or ___XVU encodings.
4150 (to_record_with_fixed_variant_part): Fill out comment.
4151 Initialize C++ stuff in right type.
4152 Allow case where DVAL is null.
4153 Handle case where variant field is not last.
4154 Fix typo concerning record length.
4155 (to_fixed_record_type): Decomment disabled code.
4156 (to_fixed_record_type): Use variant_field_index instead of
4157 contains_variant_part.
4158 (to_fixed_variant_branch_type): Ditto.
4159 (to_fixed_array_type): Decomment disabled code.
4160 (ada_to_fixed_type): Convert tagged types to the specific type.
4161 Deactivate the size-check for array types in order to avoid
4162 some false size alarms.
4163 (to_static_fixed_type): Decomment disabled code.
4164 Modify to call template_to_static_fixed_type
4165 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4166 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4167 Remove valaddr argument, as it is never really used.
4168 (ada_to_fixed_value): Change interface to act on single struct value*
4169 operand.
4170 (adjust_pc_past_prologue): New function.
4171 (ada_attribute_name): Modify to take enum exp_opcode argument.
4172
4173 (ada_enum_name): Recognize new homonym-distinguishing convention.
4174 Adjust local variable's type to remove compiler warning.
4175 Fix a small problem in the part that unqualifies the enumeration name.
4176 (ada_value_binop): New function.
4177 (ada_value_equal): New function.
4178
4179 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4180 Don't give error message when not doing normal evaluation
4181 and a tagged type doesn't seem to contain a structure member.
4182 Give error message for packed arrays.
4183 For indexing arrays, handle pointers to packed arrays correctly.
4184 Handle case of 'first and 'last attributes of bare integral type
4185 without encoded subtype info.
4186 Remove some unnecessary casts.
4187 Fix uninitialized value of type in computing 'first, 'last, or 'length
4188 of array object.
4189 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4190 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4191 calls.
4192 Attributes are now exp_opcode values.
4193 Correct treatment of 'modulus.
4194 Better error message for taking 'length of wrong kind of type;
4195 improve comment.
4196 Change EVAL_NORMAL to noside for consistency.
4197 Use ada_value_binop for DIV, MOD, REM.
4198 Make special case out of array of length 0, since an argument
4199 of 0 upsets some platforms' malloc.
4200 Use OP_STRING instead of OP_ARRAY.
4201 For slice, add check that we have an array type before extracting
4202 a slice out of it. Avoids a SEGV.
4203 When evaluating an array slice, if the array type is a reference to
4204 an aligner type, then replace the aligner type by the actual type.
4205 Decomment disabled code.
4206 Remove some dead code.
4207 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4208 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4209 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4210 and UNOP_MBR to UNOP_IN_RANGE.
4211 If an array type has a parallel ___XVE type, then use it.
4212 Turn arrays into pointers for lvalue arrays.
4213 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4214 bounds error and handle 0-length slices.
4215 Use lim_warning.
4216 When selecting fields, apply ada_to_fixed_value (because the fields
4217 might have ___XVU or ___XVE encodings even if not dynamic.)
4218 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4219 (ada_is_system_address_type): New function.
4220
4221 (get_var_value): Use new interface to ada_lookup_symbol_list.
4222 (get_int_var_value): New interface.
4223 (to_fixed_range_type): Allow unknown bound, with warning.
4224 (ada_is_modular_type): Decomment disabled code.
4225 (ADA_OPERATORS): New definition.
4226 (ada_operator_length): New function.
4227 (ada_expr_op_name): New function.
4228 (ada_forward_operator_length): New function.
4229 (ada_dump_subexp_body): New function.
4230 (ada_print_subexp): New function.
4231 (ada_exp_descriptor): New constant.
4232 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4233 (ada_language_defn): Add ada_exp_descriptor entry.
4234 Change ada_parse => parse.
4235 Add post-parser entry.
4236 Use ada-specific non-local symbol lookup.
4237 Don't use C-style arrays.
4238 String lower-bound is 1.
4239 Decomment disabled code.
4240 (parse): New function.
4241 New fields ada_translate_error_message, ada_lookup_symbol,
4242 ada_lookup_minimal_symbol.
4243
4244 * ada-lang.h: Update copyright dates.
4245 Replace the mangle/demangle terminology throughout by the
4246 more appropriate encode/decode one.
4247 Include breakpoint.h.
4248 Forward declare struct partial_symbol, struct block.
4249 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4250 (EXTRACT_ADDRESS): Remove.
4251 (EXTRACT_INT): Remove.
4252 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4253 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4254 (MAX_RENAMING_CHAIN_LENGTH): Define.
4255 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4256
4257 (enum task_states): Remove.
4258 ada_task_states: Remove.
4259 (fat_string): Remove.
4260 (struct entry_call): Remove.
4261 (struct task_fields): Remove.
4262 (struct task_entry): Remove.
4263
4264 (struct ada_symbol_info): Define.
4265 (enum ada_attribute): Remove.
4266 (enum ada_operator): Define.
4267
4268 (ada_get_field_index): Declare.
4269 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4270 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4271 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4272 (ada_lookup_symbol_list): New interface.
4273 (ada_decode_symbol): Declare.
4274 (ada_decode): Declare.
4275 (ada_lookup_symbol): New interface.
4276 (ada_update_initial_language): Declare.
4277 (ada_lookup_simple_minsym): Declare.
4278 (user_select_syms): New interface.
4279 (ada_sals_for_line): Declare.
4280 (ada_is_tagged_type): New interface.
4281 (ada_tag_name): Declare.
4282 (ada_lookup_struct_elt_type): Remove declaration.
4283 (ada_search_struct_field): Remove declaration.
4284 (ada_attribute_name): New interface.
4285 (ada_is_system_address_type): Declare.
4286 (ada_to_fixed_value): Remove declaration.
4287 (ada_template_to_fixed_record_type_1): Declare.
4288 (get_int_var_value): New interface.
4289 (ada_find_any_symbol): Declare.
4290 (ada_find_renaming_symbol): Declare.
4291 (ada_mangle): Rename to ada_encode.
4292 (ada_simple_renamed_entity): Remove const.
4293 (ada_main_name): Declare.
4294 (get_current_task): Rename to ada_get_current_task.
4295 (get_entry_number): Remove declaration.
4296 (ada_report_exception_break): Remove declaration.
4297 (ada_print_exception_breakpoint_nontask): Declare.
4298 (ada_print_exception_breakpoint_task): Declare.
4299 (ada_find_printable_frame): Declare.
4300
4301 * ada-lex.l: Update copyright notices.
4302 Use xmalloc and xfree instead of malloc and free.
4303 Use new interface to name_lookup.
4304 Use new interface to
4305 ada_mangle=>ada_encode.
4306 Redo handling of '$...' variable to parallel current treatment
4307 in c-exp.y.
4308 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4309 digit_to_int, strtoulst, processInt, processReal, processId,
4310 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4311 yywrap): Protoize.
4312
4313 (processInt): Use cast to remove harmless warning.
4314 (processReal): Modify to get rid of compiler warning on scan formats.
4315
4316 (processId): Replace xmalloc with obstack_alloc for name and remove
4317 call to ada_name_string_cleanup.
4318 Remove obsolete disabled code.
4319 (name_lookup): Ditto.
4320 New interface.
4321 Use obsavestring on temp_parse_space instead of savestring
4322 on name, and remove call to ada_name_string_cleanup.
4323 Free string returned from ada_simple_renamed_entity.
4324 Use new interface to ada_lookup_symbol_list.
4325 Decomment disabled code.
4326 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4327 not types.
4328 When a type name lookup succeeds as a result of
4329 lookup_primitive_typename, check for regular type entry that has not
4330 yet been read in.
4331 Limit length of chain of renamed symbols we are willing to follow.
4332 Do not break names beginning with "standard__" into segments.
4333 (block_lookup): Use new interface to ada_lookup_symbol_list.
4334
4335 * ada-typeprint.c: Update copyright notice.
4336 (demangled_type_name): Rename to decoded_type_name.
4337 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4338 (print_range_bound): Correct handling of negative
4339 bounds that make the index type looked unsigned under STABS.
4340 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4341 (print_range_type_named): Use the builtin int type if no type
4342 corresponding to the given type name could be found.
4343 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4344 Add some bullet-proofing.
4345 (print_variant_clauses): Allow for variant branches with ___XVU
4346 encodings that are not dynamic fields.
4347 Use new interface to ada_is_tagged_type.
4348 (print_record_type): Allow for fields with ___XVE encodings that
4349 are not dynamic fields.
4350 Use new interface to ada_is_tagged_type.
4351 (ada_print_type): ada_is_array_descriptor =>
4352 ada_is_array_descriptor_type.
4353
4354 * ada-valprint.c: Update copyright notice.
4355 Include gdb_string.h
4356 Include infcall.h
4357 (ui_memcpy): New function.
4358 (ada_print_floating): New function.
4359 (ada_print_str): Order arguments correctly.
4360 Correct handling of empty arrays and arrays of 0-length items.
4361 ada_is_array_descriptor => ada_is_array_descriptor_type
4362 Print values of type System.Address in hexadecimal format.
4363 Use ada_print_floating to print floating-point numbers in Ada format.
4364 Print class tag values with type names.
4365 No longer print the address of reference values. Avoids
4366 a potential confusion.
4367 (ada_value_print): Stop printing the object type for reference
4368 values, but preserve that behavior for access types. Avoids
4369 a potential confusion.
4370 Simplify one conditional expression, as the first part is now
4371 necessarily true.
4372 ada_is_array_descriptor => ada_is_array_descriptor_type
4373 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4374
f65f91b5
JB
43752004-06-01 Jim Blandy <jimb@redhat.com>
4376
4377 * ppc-tdep.h: Delete unused 'regoff' member.
4378 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4379
d4687fa0
MC
43802004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4381
4382 Fix PR symtab/1661.
4383 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4384 (hpread_read_struct_type): Likewise.
4385
de169ec9
AC
43862004-06-01 Andrew Cagney <cagney@gnu.org>
4387
c6902d46
AC
4388 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4389 instead of xasprintf.
4390 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4391 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4392 (mi_cmd_data_list_register_names)
4393 (mi_cmd_data_list_changed_registers)
4394 (mi_cmd_data_list_register_values)
4395 (get_register, mi_cmd_data_write_register_values)
4396 (mi_cmd_data_write_register_values)
4397 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4398 (mi_cmd_target_download, mi_cmd_target_select)
4399 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4400 (mi_execute_cli_command, mi_execute_async_cli_command)
4401 (mi_execute_async_cli_command): Ditto.
4402 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4403 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4404
6085fc2d
AC
4405 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4406 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4407 error_last_message instead of mi_error_last_message.
4408 * mi/mi-main.c (mi_error_last_message): Delete function.
4409
de169ec9
AC
4410 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4411 "invalid number of columns" error. Delete redundant "out of
4412 memory" check.
4413
1fc7d519
MK
44142004-05-31 Mark Kettenis <kettenis@gnu.org>
4415
6cfb2041
MK
4416 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4417 (gregset_t, fpregset_t): Remove typedefs.
4418 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4419 (REG_OFFSET): Rename argument.
4420 (i386bsd_r_reg_offset): Rename from reg_offset.
4421 (REG_ADDR): Remove macro.
4422 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4423 functions.
4424 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4425 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4426 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4427 instead of supply_gregset.
4428 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4429 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4430 instead of fill_gregset.
4431 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4432
1fc7d519
MK
4433 * i386bsd-nat.c: Don't include "gregset.h".
4434 (supply_gregset, fill_gregset): Make static.
4435 (supply_fpregset, fill_fpregset): Remove.
4436 * Makefile.in (i386bsd-nat.o): Update dependencies.
4437
2c34abbe
MK
44382004-05-30 Mark Kettenis <kettenis@gnu.org>
4439
448724fb
MK
4440 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4441 "gdb_assert.h". Con't include "gregset.h".
4442 (fbsd_make_corefile_notes): Use regset-based core file support
4443 instead off fill_gregset and fill_fpregset.
4444 * Makefile.in (fbsd-proc.o): Update dependencies.
4445
5ca8ca7c
MK
4446 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4447 instructions.
4448 (m88k_frame_prev_register): Simplify code a bit.
4449
593adc23
MK
4450 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4451 (amd64_collect_fpregset): New function.
4452 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4453
8d1b517b
MK
4454 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4455
7fdafb5a
MK
4456 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4457 (i386_collect_gregset): New function.
4458 (i386_supply_fpregset): Adjust comment.
4459 (i386_collect_fpregset): New function.
4460 (i386_regset_from_core_section): Use i386_collect_gregset and
4461 i386_collect_fpregset.
4462
8693c419
MK
4463 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4464 handle VALUEP being null.
4465
2c34abbe
MK
4466 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4467
45d134d8
MK
44682004-05-29 Mark Kettenis <kettenis@gnu.org>
4469
1698f4e7
MK
4470 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4471
45d134d8
MK
4472 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4473 assembler in OpenBSD 3.5-current.
4474 (amd64obsd_sigcontext_addr): Likewise.
4475
691d145a
JB
44762004-05-28 Jim Blandy <jimb@redhat.com>
4477
4478 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4479 register set, so our regcache isn't declared "legacy" and our E500
4480 pseudoregister read and write functions aren't ignored.
4481 (rs6000_register_byte, rs6000_register_raw_size,
4482 rs6000_register_virtual_type, rs6000_register_convertible,
4483 rs6000_register_convert_to_virtual,
4484 rs6000_register_convert_to_raw): Deleted.
4485 (rs6000_register_type, rs6000_convert_register_p,
4486 rs6000_register_to_value, rs6000_value_to_register): New
4487 functions.
4488 (rs6000_gdbarch_init): Don't register
4489 gdbarch_deprecated_register_size,
4490 gdbarch_deprecated_register_bytes,
4491 gdbarch_deprecated_register_byte,
4492 gdbarch_deprecated_register_raw_size,
4493 gdbarch_deprecated_register_virtual_type,
4494 gdbarch_deprecated_register_convertible,
4495 gdbarch_deprecated_register_convert_to_virtual, or
4496 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4497 register gdbarch_register_type, gdbarch_convert_register_p,
4498 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4499
18ed0c4e
JB
45002004-05-26 Jim Blandy <jimb@redhat.com>
4501
4502 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4503 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4504 functions, updated to match the register numberings used in GCC.
4505 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4506 rs6000_dwarf2_reg_to_regnum as register number conversions
4507 functions for STABS and Dwarf2.
4508
779af9e3
RC
45092004-05-26 Randolph Chung <tausq@debian.org>
4510
4511 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4512 in header file.
4513
c23968a2
JB
45142004-05-25 Joel Brobecker <brobecker@gnat.com>
4515
4516 * NEWS: Document new "start" command.
4517
3a7d1c27
RC
45182004-05-25 Randolph Chung <tausq@debian.org>
4519
4520 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4521 hppa-linux.
4522
43613416
RC
45232004-05-25 Randolph Chung <tausq@debian.org>
4524
4525 * hppa-hpux-tdep.c (offsetof): Define.
4526 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4527 (hppa32_hpux_frame_base_before_sigtramp)
4528 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4529 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4530 (hppa64_hpux_frame_base_before_sigtramp)
4531 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4532 functions.
4533 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4534 (hppa_hpux_sigtramp_frame_unwind_cache)
4535 (hppa_hpux_sigtramp_frame_this_id)
4536 (hppa_hpux_sigtramp_frame_prev_register)
4537 (hppa_hpux_sigtramp_frame_unwind)
4538 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4539 (hppa_hpux_init_abi): Register sigtramp unwinder.
4540 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4541
6d1be3f1
RC
45422004-05-25 Randolph Chung <tausq@debian.org>
4543
4544 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4545 and multiple stack unwinds.
4546 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4547
97c34f65
AC
45482004-05-25 Andrew Cagney <cagney@gnu.org>
4549
4550 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4551 * symfile-mem.h: Delete file.
4552 * symfile-mem.c: Do not include "symfile-mem.h".
4553 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4554 "struct bfd_section". When an error do not bother returning NULL.
4555 (add_symbol_file_from_memory_command): Use "struct bfd" and
4556 "struct bfd_section".
4557 * Makefile.in (symfile_mem_h): Delete.
4558 (symfile-mem.o): Update dependencies.
4559
e23cbd82
NR
45602004-05-25 Nick Roberts <nickrob@gnu.org>
4561
4562 * gdb-mi.el: New file.
4563
20d2ca3e
AC
45642004-05-25 Andrew Cagney <cagney@gnu.org>
4565
4566 * inftarg.c: Include "observer.h".
4567 (child_attach, child_create_inferior): Notify inferior_created.
4568 * corelow.c: Include "observer.h".
4569 (core_open): Notify inferior_created.
4570 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4571
c27cda74
AC
45722004-05-25 Andrew Cagney <cagney@gnu.org>
4573
4574 * target.h (struct target_ops): Add from_tty to
4575 to_create_inferior.
4576 (target_create_inferior, find_default_create_inferior): Update.
4577 * infcmd.c (run_command): Update.
4578 * wince.c (child_create_inferior): Update.
4579 * win32-nat.c (child_create_inferior): Update.
4580 * uw-thread.c (uw_thread_create_inferior): Update.
4581 * thread-db.c (thread_db_create_inferior): Update.
4582 * target.c (debug_to_create_inferior)
4583 (find_default_create_inferior): Update.
4584 (maybe_kill_then_create_inferior): Update.
4585 * sol-thread.c (sol_thread_create_inferior): Update.
4586 * remote.c (extended_remote_async_create_inferior)
4587 (extended_remote_create_inferior): Update.
4588 * remote-vx.c (vx_create_inferior): Update.
4589 * remote-st.c (st2000_create_inferior): Update.
4590 * remote-sim.c (gdbsim_create_inferior): Update.
4591 * remote-sds.c (sds_create_inferior): Update.
4592 * remote-rdp.c (remote_rdp_create_inferior): Update.
4593 * remote-rdi.c (arm_rdi_create_inferior): Update.
4594 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4595 * remote-e7000.c (e7000_create_inferior): Update.
4596 * procfs.c (procfs_create_inferior): Update.
4597 * ocd.c (ocd_create_inferior): Update.
4598 * ocd.h (ocd_create_inferior): Update.
4599 * nto-procfs.c (procfs_create_inferior): Update.
4600 * monitor.c (monitor_create_inferior): Update.
4601 * lin-lwp.c (lin_lwp_create_inferior): Update.
4602 * inftarg.c (child_create_inferior): Update.
4603 * hpux-thread.c (hpux_thread_create_inferior): Update.
4604 * gnu-nat.c (gnu_create_inferior): Update.
4605
1db2a798
AC
46062004-05-25 Andrew Cagney <cagney@gnu.com>
4607
4608 * MAINTAINERS: Update e-mail address.
4609
007d08bb
RC
46102004-05-24 Randolph Chung <tausq@debian.org>
4611
4612 * thread.c (info_threads_command, thread_apply_all_command)
4613 (thread_apply_command, thread_command, do_captured_thread_select):
4614 Remove HPUXHPPA-specific code.
4615
69e7b95e
RC
46162004-05-24 Randolph Chung <tausq@debian.org>
4617
4618 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4619 unused symbols.
4620 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4621 references.
4622
a4d5f2e0
JB
46232004-05-24 Joel Brobecker <brobecker@gnat.com>
4624
4625 * infcmd.c (kill_if_already_running): New function, extracted
4626 from run_command().
4627 (run_command): Replace extracted code by call to
4628 kill_if_already_running().
4629 (start_command): New function.
4630 (_initialize_infcmd): Add "start" command.
4631
bf2ca189
MK
46322004-05-24 Mark Kettenis <kettenis@gnu.org>
4633
4634 Add OpenBSD/m88k support.
4635 * NEWS (New native configurations): Mention OpenBSD/m88k.
4636 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4637 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4638 * Makefile.in (m88k_tdep_h): New variable.
4639 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4640 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4641 * configure.host: Add m88*-*-openbsd*.
4642 * configure.tgt: Add m88*-*-openbsd*.
4643
80fadb11
JB
46442004-05-24 Jim Blandy <jimb@redhat.com>
4645
4646 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4647 to approve changes.
4648
19e2d14b
KB
46492004-05-24 Kevin Buettner <kevinb@redhat.com>
4650
4651 * symtab.c (fixup_section): Search section table when lookup by
4652 name fails.
4653
1b07b470
RC
46542004-05-24 Randolph Chung <tausq@debian.org>
4655
4656 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4657 be "small_struct".
4658
368702b1
MK
46592004-05-24 Mark Kettenis <kettenis@gnu.org>
4660
5df97fde
MK
4661 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4662 register number in regcache_raw_collect call.
4663 (m68kbsd_collect_fpregset): Likewise.
4664 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4665
368702b1
MK
4666 * regset.h (struct regset): Add back `regset' member.
4667
a770d4ec
MK
46682004-05-23 Mark Kettenis <kettenis@gnu.org>
4669
70f9f479
MK
4670 * configure.in: Check for td_pcb in `struct thread'.
4671 * configure, config.in: Regenerated.
4672
2e16d79e
MK
4673 * dpx2-nat.c: Remove file.
4674 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4675 (dpx2-nat.o): Remove dependencies.
4676
492cf391
MK
4677 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4678 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4679 (amd64obsd_supply_pcb): New function.
4680 (_initialize_amd64obsd_nat): Enable libkvm interface.
4681 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4682 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4683 (LOADLIBES): New variable.
4684
a770d4ec
MK
4685 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4686 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4687 (sparc32nbsd_supply_pcb): New function.
4688 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4689 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4690 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4691 (LOADLIBES): New variable.
4692
9ea75c57
MK
46932004-05-22 Mark Kettenis <kettenis@gnu.org>
4694
2e0c3539
MK
4695 * bsd-kvm.c, bsd-kvm.h: New files.
4696 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4697 "bsd-kvm.h".
4698 (i386fbsd_supply_pcb): New function.
4699 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4700 (i386fbsd-nat.o): Update dependencies.
4701 (bsd_kvm_h): New variable.
4702 (bsd-kvm.o): New dependency.
4703 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4704 (LOADLIBES): New variable.
4705
9ea75c57
MK
4706 * regset.c: Tweak comment.
4707 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4708 macro.
4709 * regset.h: Update copyright year.
4710 (struct regset): Remove `descr' member, add `gdbarch' member.
4711 (regset_alloc): Adjust prototype and comment.
4712 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4713 (i386_supply_fpregset): Likewise.
4714 (i386_regset_from_core_section): Update call to regset_alloc.
4715 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4716 REGSET->arch.
4717 (i386obsd_aout_regset_from_core_section): Update call to
4718 regset_alloc.
4719 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4720 REGSET->arch.
4721 (i386nbsd_aout_regset_from_core_section): Update call to
4722 regset_alloc.
4723 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4724 REGSET->arch.
4725 (amd64_regset_from_core_section): Update call to regset_alloc.
4726 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4727 REGSET->arch.
4728 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4729 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4730 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4731 (sparc32nbsd_init_abi): Update call to regset_alloc.
4732 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4733 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4734 (sparc64obsd_init_abi): Update call to regset_alloc.
4735 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4736 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4737 (sparc64nbsd_init_abi): Update call to regset_alloc.
4738 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4739 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4740 (sparc64fbsd_init_abi): Update call to regset_alloc.
4741
867e2dc5
JB
47422004-05-22 Jim Blandy <jimb@redhat.com>
4743
4744 * ppc-tdep.h (spe_register_p): New declaration.
4745 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4746 ppc_spefscr_regnum.
4747 * rs6000-tdep.c (spe_register_p): New function.
4748 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4749 spefscr.
4750 (rs6000_gdbarch_init): Initialize the new members of the tdep
4751 structure.
4752
617a4cba
JB
47532004-05-21 Jim Blandy <jimb@redhat.com>
4754
0397dee1
JB
4755 * ppc-linux-nat.c (fetch_register): Move code back to be next
4756 to the comment that describes it. (Moved code, instead of
4757 comment, for symmetry with store_register.)
4758
617a4cba
JB
4759 Allocate regset structures in the gdbarch's obstack, not using
4760 xmalloc.
4761 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4762 Add 'arch' argument. Allocate the regset on arch's obstack, not
4763 using xmalloc.
4764 * regset.h (regset_alloc): Update declaration.
4765 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4766 gdbarch argument.
4767 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4768 * i386-tdep.c (i386_regset_from_core_section): Same.
4769 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4770 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4771 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4772 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4773 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4774 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4775
9aa3914d
JB
47762004-05-21 Joel Brobecker <brobecker@gnat.com>
4777
4778 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4779
99c87dab
JB
47802004-05-21 Jim Blandy <jimb@redhat.com>
4781
4782 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4783 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4784
c2b6b4aa
JB
47852004-05-20 Jim Blandy <jimb@redhat.com>
4786
4787 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4788
144529d0
MK
47892004-05-20 Mark Kettenis <kettenis@gnu.org>
4790
4791 * regset.h: Make prototype const-correct.
4792 * regset.c (regset_xmalloc): Make const-correct.
4793
4725b721
PH
47942004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4795
4796 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4797 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4798 (symbol_search_name): Declare.
4799
4800 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4801 (iter_name_next_hashed): Ditto.
4802 (iter_name_next_linear): Ditto.
4803 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4804
4805 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4806 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4807 (symbol_search_name): New function.
4808
4809 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4810
4811 * minsyms.c (build_minimal_symbol_hash_tables): Change
4812 test for adding to demangled hash table to check for difference
4813 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4814
be07a590
JB
48152004-05-19 Jim Blandy <jimb@redhat.com>
4816
4817 Use a constructor function to create regset structures.
4818 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4819 (struct regset): Use supply_regset_ftype. Add new
4820 'collect_regset' member.
4821 (regset_xmalloc): New declaration.
4822 * regset.c: New file.
4823 * am64-tdep.c (amd64_regset_from_core_section): Use
4824 regset_xmalloc to construct regset structures.
4825 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4826 * i386-tdep.c (i386_regset_from_core_section): Same.
4827 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4828 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4829 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4830 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4831 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4832 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4833 * Makefile.in (COMMON_OBS): Add regset.o.
4834 (regset.o): New rule.
4835
604368f5
JB
48362004-05-19 Joel Brobecker <brobecker@gnat.com>
4837
4838 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4839 and pthread_cond_wait.c.
4840
82d69f8b
JB
48412004-05-18 Jim Blandy <jimb@redhat.com>
4842
4843 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4844 before the mach-specific switch, and then let the individual cases
4845 override the defaults, rather than leaving them uninitialized
4846 until the switch and then setting them in each case.
4847
5859efe5
RC
48482004-05-18 Randolph Chung <tausq@debian.org>
4849
4850 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4851 millicode functions.
4852
9ca80cf8
RC
48532004-05-18 Randolph Chung <tausq@debian.org>
4854
4855 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4856 references to dld_flags_buffer consistent.
4857
ed70ba00
RC
48582004-05-18 Randolph Chung <tausq@debian.org>
4859
4860 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4861 it for unwinding the stack.
4862
63100632
RC
48632004-05-18 Randolph Chung <tausq@debian.org>
4864
4865 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4866 Undefine these so we can overide them using gdbarch.
4867
090ccbb7
RC
48682004-05-18 Randolph Chung <tausq@debian.org>
4869
4870 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4871 handling for 64-bit HPUX (elf).
4872
594706e6
DJ
48732004-05-18 Daniel Jacobowitz <dan@debian.org>
4874
4875 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4876 constants.
4877 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4878 * ia64-tdep.c (examine_prologue): Likewise.
4879 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4880 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4881
e5483145
MK
48822004-05-18 Mark Kettenis <kettenis@gnu.org>
4883
4884 * vax-tdep.c (vax_return_value): Implement
4885 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4886
caed1a45
MK
48872004-05-17 Mark Kettenis <kettenis@gnu.org>
4888
4889 * vax-tdep.c (vax_return_value): Fix typo.
4890
3c0b7db2
AC
48912004-05-17 Andrew Cagney <cagney@redhat.com>
4892
5aae53e5
AC
4893 * MAINTAINERS: Mark Salter was also responsible for
4894 testsuite/config/
4895
3c0b7db2
AC
4896 * NEWS: Mention signal fixes.
4897
22b0923d
RC
48982004-05-17 Randolph Chung <tausq@debian.org>
4899
4900 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4901 check to see if we are unwinding an export stub. Export stubs clobber
4902 the %rp in the call path and stores the original rp in a stack slot.
4903
22f2b2f3
JB
49042004-05-17 Jim Blandy <jimb@redhat.com>
4905
4906 * MAINTAINERS: Update address for J.T. Conklin.
4907
cea96d64
RC
49082004-05-17 Randolph Chung <tausq@debian.org>
4909
4910 * hppa-tdep.c: Remove superfluous #include's.
4911 * Makefile.in (hppa-tdep.o): Update dependencies.
4912
f08f6a4a
RC
49132004-05-17 Randolph Chung <tausq@debian.org>
4914
4915 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4916 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4917 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4918 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4919 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4920 Remove static function declarations.
4921
51da707a
MK
49222004-05-17 Mark Kettenis <kettenis@gnu.org>
4923
caed1a45
MK
4924 * alphabsd-nat.c: Update copyright year.
4925 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4926
c0c2b0db
MK
4927 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4928 and M68K_A2_REGNUM.
4929
51da707a
MK
4930 * m68k-tdep.c (m68k_svr4_return_value): Implement
4931 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4932
8d027a04
MK
49332004-05-16 Mark Kettenis <kettenis@gnu.org>
4934
4935 * sol-thread.c Update copyright year. Fix various coding
4936 standards violations. Tweak a few comments.
4937 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4938 Delete prototypes.
4939
0d99fdb9
RC
49402004-05-15 Randolph Chung <tausq@debian.org>
4941
4942 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4943 as pointer instead of array reference since HPUX compiler does
4944 not accept unsized array arguments.
4945 * somsolib.c (dld_flags_buffer): Use constant array size.
4946
f7e3843a
MK
49472004-05-15 Mark Kettenis <kettenis@gnu.org>
4948
0fe85704
MK
4949 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4950 offset with decimal offset.
4951 (amd64obsd_sigcontext_addr): Return correct address for entire
4952 signal trampoline.
4953
a54f9a00
MK
4954 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4955 instead of get_frame_base.
4956
feae6502
MK
4957 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4958 (fill_gregset): Use regcache_raw_collect.
4959
0382d099
MK
4960 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4961 ppcobsd-tdep.c.
4962
f7e3843a
MK
4963 * config/sparc/tm-nbsd64.h: Remove file.
4964 * config/tm-sunos.h: Remove file.
4965
773df3e5
JB
49662004-05-15 Joel Brobecker <brobecker@gnat.com>
4967
4968 * rs6000-tdep.c (store_param_on_stack_p): New function,
4969 an improved version of some code extracted from skip_prologue().
4970 (skip_prologue): Use store_param_on_stack_p() to detect
4971 instructions saving a parameter on the stack. Detect when r0
4972 is used to save a parameter.
4973 Do not mark "li rx, SIMM" instructions as part of the prologue,
4974 unless the following instruction is also part of the prologue.
4975
95918acb
AC
49762004-05-14 Andrew Cagney <cagney@redhat.com>
4977
06f32659
AC
4978 * infrun.c (handle_inferior_event): Simplify
4979 STEP_OVER_UNDEBUGGABLE.
4980
95918acb
AC
4981 * infrun.c (handle_step_into_function): Delete function.
4982 (handle_inferior_event): Inline calls to
4983 handle_step_into_function.
4984
40711ff1 49852004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4986
4987 * rs6000-nat.c: Fix a comment.
4988
02f60eae
JB
49892004-05-12 David Anderson <davea@sgi.com>
4990
4991 Committed by Jim Blandy <jimb@redhat.com>:
4992 * regcache.c (struct regcache_descr): fix comment spelling.
4993
552e377b
JB
49942004-05-13 J. Brobecker <brobecker@gnat.com>
4995
4996 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4997 Fixes a link link failure.
4998
349766b2
JB
49992004-05-13 J. Brobecker <brobecker@gnat.com>
5000
5001 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5002 error that was causing the build to fail.
5003
0d4d5484
JB
50042004-05-13 J. Brobecker <brobecker@gnat.com>
5005
5006 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5007 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5008
0b30808c
AC
50092004-05-13 Andrew Cagney <cagney@redhat.com>
5010
5011 * infrun.c (handle_inferior_event): Check for
5012 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5013 calls. Update comments.
5014
cdf2c5f5
JB
50152004-05-13 Jim Blandy <jimb@redhat.com>
5016
063715bf
JB
5017 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5018 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5019 (store_regs_user_thread, store_regs_kernel_thread): Use
5020 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5021 * ppc-linux-nat.c (fill_gregset): Same.
5022 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5023 (ppc_linux_sigtramp_cache): Same.
5024 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5025 (ppcnbsd_sigtramp_cache_init): Same.
5026 * rs6000-nat.c (fetch_core_registers): Same.
5027 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5028 (rs6000_frame_cache): Same.
5029
cdf2c5f5
JB
5030 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5031 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5032 of assuming that the gprs are numbered starting with zero.
5033 * ppc-linux-nat.c (fill_gregset): Same.
5034 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5035 * ppcnbsd-nat.c (getregs_supplies): Same.
5036 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5037 * rs6000-nat.c (fetch_core_registers): Same.
5038 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5039
450bd37b
MS
50402004-05-07 Michael Snyder <msnyder@redhat.com>
5041
5042 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5043 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5044
4a72a2a6
AC
50452004-05-13 Andrew Cagney <cagney@redhat.com>
5046
5047 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5048
8edfa926
BM
50492004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5050
5051 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5052 base_address for shared libraries.
5053
723e0e3d
BM
50542004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5055
5056 * MAINTAINERS (write after approval): Add myself.
5057
00d4360e
UW
50582004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5059
5060 * breakpoint.c (bpstat_stop_status): Add new argument
5061 STOPPED_BY_WATCHPOINT. Use it instead of testing
5062 target_stopped_data_address agaist 0 to check whether
5063 or not we stopped due to a hardware watchpoint.
5064 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5065 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5066 with new argument.
5067
ec76baa5
JB
50682004-05-12 Jim Blandy <jimb@redhat.com>
5069
5070 * configure.in: When checking whether we should use the -bbigtoc
5071 option, don't forget to restore the original value of LDFLAGS.
5072 * configure: Regenerated.
5073
f2c9ca08
AC
50742004-05-12 Andrew Cagney <cagney@redhat.com>
5075
5076 * thread.c (load_infrun_state): Delete step_sp.
5077 * infrun.c (context_switch): Ditto.
5078 * inferior.h (step_sp): Ditto.
5079 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5080 * gdbthread.h (struct thread_info, save_infrun_state)
5081 (restore_infrun_state): Ditto.
5082
090ddb2a
UW
50832004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5084
5085 * MAINTAINERS (write after approval): Add myself.
5086
8aad930b
AC
50872004-05-12 Andrew Cagney <cagney@redhat.com>
5088
5089 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5090 eliminate reference to step_sp.
5091 (struct execution_control_state, init_execution_control_state)
5092 (handle_inferior_event, keep_going): Delete update_step_sp and
5093 step_sp.
5094 * infcmd.c (step_sp): Note that variable is unused.
5095
922d5ae0
AC
50962004-05-11 Andrew Cagney <cagney@redhat.com>
5097
5098 * infrun.c (step_over_function): Delete function.
5099 (handle_step_into_function): Use insert_step_resume_breakpoint.
5100 (insert_step_resume_breakpoint): Fix assertion.
5101
017c5ca5
NR
51022004-05-11 Nick Roberts <nickrob@gnu.org>
5103
5104 * utils.c (defaulted_query): Just use the normal query input type
5105 when printing the annotations.
5106
42edda50
AC
51072004-05-11 Andrew Cagney <cagney@redhat.com>
5108
5109 * infrun.c (handle_inferior_event): Simplify code handling
5110 step-into or return-from a signal trampoline.
5111
d28b44a7
AC
51122004-05-11 Andrew Cagney <cagney@redhat.com>
5113
5114 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5115 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5116
383f0f5b
JB
51172004-05-10 Jim Blandy <jimb@redhat.com>
5118
d0b57c3a
JB
5119 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5120 with a call to internal_error.
5121
383f0f5b
JB
5122 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5123 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5124 processor variant lacks those registers.
5125 (ppc_floating_point_unit_p): Change description to make it clear
5126 that this returns info about the ISA, not the ABI.
5127 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5128 return true or false by checking tdep->ppc_fp0_regnum and
5129 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5130 arch/mach switching done in rs6000_gdbarch_init; it's better to
5131 keep that logic there, and just check the results here.
5132 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5133 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5134 floating-point registers.
5135 (ppc_supply_fpregset, ppc_collect_fpregset)
5136 (rs6000_push_dummy_call, rs6000_extract_return_value)
5137 (rs6000_store_return_value): Assert that we have floating-point
5138 registers.
5139 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5140 (rs6000_frame_cache): Don't note the locations at which
5141 floating-point registers were saved if we have no fprs.
5142 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5143 registers.
5144 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5145 (store_regs_user_thread, store_regs_kernel_thread): Only call
5146 supply_fprs / fill_fprs if we actually have floating-point
5147 registers.
5148 (special_register_p): Check ppc_fpscr_regnum before matching
5149 against it.
5150 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5151 supply / collect fpscr if we don't have it.
5152 * ppc-bdm.c: #include "gdb_assert.h".
5153 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5154 have floating-point registers, since I can't test this code on
5155 FP-free systems to adapt it.
5156 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5157 fpscr and floating point register numbers if they don't exist.
5158 (fetch_register): Assert that we have floating-point registers
5159 before we reach the code that handles them.
5160 (store_register): Same. And use tdep instead of calling
5161 gdbarch_tdep again.
5162 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5163 don't have them.
5164 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5165 fprs and fpscr if we don't have them.
5166 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5167 don't have them.
5168 * ppcnbsd-nat.c: #include "gdb_assert.h".
5169 (getfpregs_supplies): Assert that we have floating-point registers.
5170 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5171 * ppcobsd-tdep.c: #include "gdb_assert.h".
5172 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5173 have floating-point registers.
5174 * rs6000-nat.c (regmap): Don't match against the fpscr and
5175 floating point register numbers if they don't exist.
5176 (fetch_inferior_registers, store_inferior_registers,
5177 fetch_core_registers): Only fetch / store / supply the
5178 floating-point registers and the fpscr if we have them.
5179 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5180 (ppcobsd-tdep.o): Update dependencies.
5181
15960608
AC
51822004-05-10 Andrew Cagney <cagney@redhat.com>
5183
5184 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5185 (context_switch): Do not switch through_sigtramp_breakpoint.
5186 * gdbthread.h (save_infrun_state, load_infrun_state)
5187 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5188 and structure member.
5189 * thread.c (load_infrun_state, save_infrun_state): Update.
5190
5ab5aa0f
MK
51912004-05-10 Mark Kettenis <kettenis@gnu.org>
5192
5193 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5194
da78b0e7
DJ
51952004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5196
5197 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5198 throughout.
5199 * aclocal.m4: Regenerate.
5200
cca0d3b0
NW
52012004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5202
5203 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5204
d303a6c7
AC
52052004-05-10 Andrew Cagney <cagney@redhat.com>
5206
5207 * infrun.c (check_sigtramp2): Delete function.
5208 (handle_inferior_event): When single stepping, and taking a
5209 signal, set a breakpoint at the signal return address. Delete
5210 redundant calls to check_sigtramp2.
5211 (insert_step_resume_breakpoint): New function.
5212 (through_sigtramp_breakpoint, handle_inferior_event)
5213 (follow_exec, wait_for_inferior, fetch_inferior_event)
5214 (currently_stepping, keep_going): Delete most uses of
5215 through_sigtramp_breakpoint, not that it should be deleted.
5216 (delete_breakpoint_current_contents): Delete function.
5217
03f4cc20
RC
52182004-05-10 Randolph Chung <tausq@debian.org>
5219
5220 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5221 target.
5222 * config/pa/tm-linux.h: New file.
5223
37fc812e
DJ
52242004-05-10 Daniel Jacobowitz <drow@mvista.com>
5225
5226 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5227 of prefixes. Don't print the prefix twice in the CLI.
5228
26c0b942
JB
52292004-05-10 Jim Blandy <jimb@redhat.com>
5230
2e56e9c1
JB
5231 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5232 collect all the gprs.
5233
26c0b942
JB
5234 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5235 loop collecting gprs.
5236
dc497459
AC
52372004-05-09 Andrew Cagney <cagney@redhat.com>
5238
5239 * remote-vx.c (net_step): Delete step-range code.
5240 * remote.c (remote_resume, init_all_packet_configs)
5241 (set_remote_protocol_E_packet_cmd)
5242 (show_remote_protocol_E_packet_cmd)
5243 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5244 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5245 (show_remote_protocol_e_packet_cmd): Ditto.
5246
0543f387
MK
52472004-05-09 Mark Kettenis <kettenis@gnu.org>
5248
c481d1ca
MK
5249 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5250
f626a069
MK
5251 * hppa-tdep.h: Update copyright year.
5252 (struct trad_frame_saved_reg): Add opaque declaration.
5253
6fa57a7d
MK
5254 * amd64-tdep.c (amd64_return_value): Implement
5255 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5256
e47577ab
MK
5257 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5258 (m68k_value_to_register): New functions.
5259 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5260 value_to_register.
5261
31db7b6c
MK
5262 * defs.h (enum return_value_convention): Add
5263 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5264 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5265 * infcmd.c (legacy_return_value): New function.
5266 (print_return_value): Rwerite to implement
5267 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5268 * values.c (using_struct_return): Check for inequality to
5269 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5270 RETURN_VALUE_STRUCT_CONVENTION.
5271 * i386-tdep.c (i386_return_value): Implement
5272 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5273
0543f387
MK
5274 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5275 include "symtab.h", "opcode/vax.h" and "inferior.h".
5276 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5277 to read_memory_unsigned_integer.
5278 (vax_gdbarch_init): Reorder.
5279 (_initialize_vax_tdep): Spell out prototype.
5280 * Makefile.in (vax-tdep.o): Update dependencies.
5281
0c93b7b6
AC
52822004-05-08 Andrew Cagney <cagney@redhat.com>
5283
e6b55ae2
AC
5284 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5285 * target.c (target_detach, target_disconnect): Ditto.
5286
1ac839b8
AC
5287 * infcall.c (call_function_by_hand): When no
5288 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5289 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5290 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5291 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5292 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5293
28954179
AC
5294 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5295 * gdbarch.h, gdbarch.c: Re-generate.
5296 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5297 deprecated_fix_call_dummy.
5298 * v850-tdep.c (v850_gdbarch_init): Ditto.
5299 * infcall.c (call_function_by_hand): Do not call
5300 DEPRECATED_FIX_CALL_DUMMY.
5301
434b87dd
AC
5302 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5303 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5304 * gdbarch.h, gdbarch.c: Re-generate.
5305 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5306 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5307 deprecated_sizeof_call_dummy_words.
5308 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5310 * v850-tdep.c (v850_gdbarch_init): Ditto.
5311 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5312 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5314 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5315 * arch-utils.h (legacy_call_dummy_words)
5316 (legacy_sizeof_call_dummy_words): Delete declarations.
5317 * arch-utils.c (legacy_call_dummy_words)
5318 (legacy_sizeof_call_dummy_words): Delete variables.
5319
58d28df8
AC
5320 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5321 * gdbarch.h, gdbarch.c: Re-generate.
5322 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5323 * infcall.c (call_function_by_hand): Eliminate call to
5324 DEPRECATED_PUSH_DUMMY_FRAME.
5325 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5326 push_dummy_frame.
5327 (ns32k_push_dummy_frame): Delete function.
5328
e4a2df64
AC
5329 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5330 deprecated_call_dummy_breakpoint_offset or
5331 deprecated_call_dummy_start_offset.
5332 * dummy-frame.c, arm-tdep.c: Update comments.
5333 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5334 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5335 * gdbarch.h, gdbarch.c: Re-generate.
5336
d3712828
AC
5337 * infcall.c (legacy_push_dummy_code): Delete function.
5338 (push_dummy_code): Delete call.
5339
7a882905
AC
5340 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5341 * gdbarch.h, gdbarch.c: Re-generate.
5342 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5343 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5344 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5345 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5346
0ec5872b
AC
5347 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5348 (struct frame_info): Delete opaque declaration.
5349 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5350 * frame.c (get_frame_type): Delete call.
5351
0c93b7b6
AC
5352 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5353 pc_in_call_dummy.
5354 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5355 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5356
75536971
MK
53572004-05-08 Mark Kettenis <kettenis@gnu.org>
5358
527ca6bb
MK
5359 * alphanbsd-tdep.c: Include "gdb_string.h".
5360 * armnbsd-tdep.c: Update copyright year.
5361 Include "gdb_string.h".
5362 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5363 dependencies.
5364
d39fdc61
MK
5365 * delta68-nat.c: Remove file.
5366 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5367 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5368 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5369 (delta68-nat.o): Remove dependency.
5370
75536971
MK
5371 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5372 function.
5373 (m68k_gdbarch_init): Don't set
5374 deprecated_frameless_function_invocation.
5375
f4ca1d1f
RC
53762004-05-07 Randolph Chung <tausq@debian.org>
5377
5378 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5379 read_memory_nobpt for code reading when doing frame unwinding.
5380 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5381
2f0e8c7a
RC
53822004-05-07 Randolph Chung <tausq@debian.org>
5383
5384 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5385 instead of sp, handle sigaltstack case.
5386 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5387 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5388 signal handler and not that of the caller.
5389 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5390 hppa_linux_sigtramp_find_sigcontext.
5391
959464ff
RC
53922004-05-07 Randolph Chung <tausq@debian.org>
5393
5394 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5395 hppa-linux-nat.c.
5396 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5397 * hppa-linux-nat.c (fetch_register, store_register): Define.
5398 (fetch_inferior_registers, store_inferior_registers): Define.
5399 (supply_gregset): Add comment and clean up some unneeded code.
5400 (fill_gregset): Add comment and fix so that it saves registers in
5401 the right place in the gregset.
5402 (fill_fpregset): Fix buffer overrun problem.
5403 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5404
0da28f8a
RC
54052004-05-07 Randolph Chung <tausq@debian.org>
5406
5407 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5408 do common handling of the pcoqt register.
5409 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5410 to use helper function.
5411 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5412 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5413 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5414 generic fallback unwinder when all else fails.
5415 (hppa_gdbarch_init): Add fallback sniffer.
5416 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5417 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5418 to use helper function.
5419
b9ec757a
JB
54202004-05-08 Joel Brobecker <brobecker@gnat.com>
5421
5422 * config/djgpp/fnchange.lst: Add translation rules for
5423 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5424
756e95f1
MK
54252004-05-08 Mark Kettenis <kettenis@gnu.org>
5426
5427 * frame.c (get_prev_frame_1): Work around GCC bug.
5428 * frame.h: Add comment about GCC bug.
5429
2b4855ab
AC
54302004-05-07 Andrew Cagney <cagney@redhat.com>
5431
5432 * observer.c: Include "commands.h" and "gdbcmd.h".
5433 (observer_debug, _initialize_observer): Add the
5434 command "set/show debug observer".
5435 * observer.sh: When observer debugging, log notify calls.
5436 * Makefile.in (observer.o): Update dependencies.
5437
ba3e8e46
JM
54382004-05-07 Jason Molenda (jmolenda@apple.com)
5439
5440 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5441
16796152
JB
54422004-05-07 Jim Blandy <jimb@redhat.com>
5443
daf6dc85
JB
5444 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5445 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5446 to recognize gpr regnums, instead of assuming that
5447 tdep->ppc_fp0_regnum marks the end of the general-purpose
5448 registers.
5449
16796152
JB
5450 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5451 the given architecture has floating-point registers.
5452
c69b8bfc
AC
54532004-05-07 Andrew Cagney <cagney@redhat.com>
5454
5455 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5456 macro defined to 1.
5457 * gdbarch.h, gdbarch.c: Re-generate.
5458 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5459 deprecated_use_generic_dummy_frames.
5460
7243600a
BF
54612004-05-07 Brian Ford <ford@vss.fsi.com>
5462
5463 * NEWS: Mention Cygwin DWARF 2 support.
5464
73c1e0a1
AC
54652004-05-07 Andrew Cagney <cagney@redhat.com>
5466
5467 * objfiles.h (struct entry_info): Delete unused fields
5468 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5469 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5470 * mipsread.c (mipscoff_symfile_read): Update.
5471 * mdebugread.c (parse_partial_symbols): Update.
5472 * dwarfread.c (read_file_scope): Update.
5473 * dwarf2read.c (read_file_scope): Update.
5474 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5475 * coffread.c (complete_symtab): Update.
5476
1d3056ac
MK
54772004-05-07 Mark Kettenis <kettenis@gnu.org>
5478
5479 * infcall.c (_initialize_infcall): Fix typo.
5480
15170568
AC
54812004-05-07 Andrew Cagney <cagney@redhat.com>
5482
5483 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5484 * command.h (add_setshow_zinteger_cmd): Declare.
5485
34f75cc1
RC
54862004-05-06 Randolph Chung <tausq@debian.org>
5487
5488 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5489 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5490 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5491 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5492 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5493 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5494 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5495 definitions ...
5496 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5497 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5498 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5499 (hppa64_hpux_frame_find_saved_regs_in_sig)
5500 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5501 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5502 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5503 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5504 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5505 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5506 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5507 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5508 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5509 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5510 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5511 (hppa32_register_type, hppa_cannot_store_register)
5512 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5513 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5514 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5515 * pa64solib.c (pa64_solib_have_load_event)
5516 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5517 (pa64_solib_unloaded_library_pathname): Likewise.
5518 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5519 (som_solib_library_pathname): Likewise.
5520
0a5e7efe
JI
55212004-05-05 Jim Ingham <jingham@apple.com>
5522
5523 * breakpoint.c (create_breakpoints): Copy the ignore count and
5524 thread id over from the pended breakpoint to the actual
5525 breakpoint.
5526
10a4b113
AC
55272004-05-05 Andrew Cagney <cagney@redhat.com>
5528
5529 * gdbarch.sh (PARM_BOUNDARY): Delete.
5530 gdbarch.h, gdbarch.c: Re-generate.
5531 * valops.c (PARM_BOUNDARY): Delete macro.
5532 (value_push): Delete PARM_BOUNDARY code.
5533 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5534
366f009f
JB
55352004-05-04 Jim Blandy <jimb@redhat.com>
5536
32b99774
JB
5537 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5538 Don't assume that the gprs, fprs, and UISA sprs are
5539 contiguous, start at register number zero, and end with fpscr.
5540 Instead, use the numbers from the tdep structure.
5541
366f009f
JB
5542 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5543 should no longer be used in code specific to the RS6000 and its
5544 derivatives.
5545 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5546 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5547 tdep->ppc_fp0_regnum.
5548 (ppc_supply_fpregset, ppc_collect_fpregset)
5549 (rs6000_push_dummy_call, rs6000_extract_return_value)
5550 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5551 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5552 FP0_REGNUM.
5553 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5554 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5555 Same.
5556 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5557 bdm_ppc_store_registers): Same.
5558 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5559 (store_register, fill_fpregset): Same.
5560 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5561 (ppc_linux_supply_fpregset): Same.
5562 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5563 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5564 Same.
5565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5566 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5567 ppc64_sysv_abi_return_value): Same.
5568 * rs6000-nat.c (regmap, fetch_inferior_registers)
5569 (store_inferior_registers, fetch_core_registers): Same.
5570
827f338d
MK
55712004-05-01 Mark Kettenis <kettenis@gnu.org>
5572
5573 * m68knbsd-nat.c: Remove file.
5574 * m68knbsd-tdep.c: Remove file.
5575 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5576 dependencies.
5577 * configure.host: Add m68k-*-netbsdelf*.
5578 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5579 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5580 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5581 (XM_FILE): Remove.
5582 * config/m68k/nbsdelf.mh: New file.
5583 * config/m68k/nbsd.mt: New file.
5584 * config/m68k/nbsdaout.mt: Remove file.
5585 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5586 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5587 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5588 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5589 (use_struct_convention): Remove prototype.
5590 (USE_STRUCT_CONVENTION): Remove define.
5591 * config/m68k/xm-nbsd.h: Remove file.
5592
66894781
MS
55932004-05-04 Michael Snyder <msnyder@redhat.com>
5594
5595 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5596 reg_struct_return method (as gcc usually does for cross targets).
5597
f0f63663
AC
55982004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5599
5600 Committed by Andrew Cagney.
5601 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5602 alignment padding when accessing ucontext struct members.
5603
edf61169
JB
56042004-05-04 Jim Blandy <jimb@redhat.com>
5605
8bf659e8
JB
5606 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5607 'ppc_gplast_regnum' member.
5608 (ppc_num_gprs): New enum constant.
5609 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5610 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5611 * rs6000-nat.c (regmap, fetch_inferior_registers,
5612 store_inferior_registers): Same.
5613 * rs6000-tdep.c (e500_pseudo_register_read)
5614 (e500_pseudo_register_write): Same.
5615 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5616
b967e06f
JB
5617 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5618 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5619 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5620 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5621 FPLAST_REGNUM.
5622 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5623 Same.
5624 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5625 * rs6000-nat.c (regmap, fetch_inferior_registers)
5626 (store_inferior_registers): Same.
5627
edf61169
JB
5628 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5629 with FPLAST_REGNUM.
5630
58a9656e
JB
56312004-05-03 Joel Brobecker <brobecker@gnat.com>
5632
5633 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5634 failure detected by recent versions of GCC.
5635 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5636 to be consistent with the usage in dwarf2_create_include_psymtab.
5637
dc305454
MS
56382004-05-03 Michael Snyder <msnyder@redhat.com>
5639
5640 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5641 (heuristic_proc_start): Whitespace cleanup.
5642
29972665
MK
56432004-05-04 Mark Kettenis <kettenis@gnu.org>
5644
6b57680d
MK
5645 * sun3-nat.c: Remove file.
5646 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5647 dependencies.
5648 (ALLDEPFILES): Remove sun3-nat.c.
5649 (sun3-nat.o): Remove dependencies.
5650
29972665
MK
5651 * i386-interix-nat.c, i386-interix-tdep.c,
5652 config/i386/nm-interix.h, config/i386/interix.mh,
5653 config/i386/interix.mt: Remove files.
5654 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5655 dependencies.
5656
f595cb19
MK
56572004-05-03 Mark Kettenis <kettenis@gnu.org>
5658
5659 * m68k-tdep.h (struct gdbarch_tdep): Add member
5660 struct_value_regnum.
5661 (m68k_svr4_init_abi): New prototype.
5662 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5663 different calling conventions.
5664 (m68k_extract_return_value): Remove code dealing with single-field
5665 structs.
5666 (m68k_store_return_value): Remove code dealing with single-field
5667 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5668 (m68k_extract_struct_value_address): Remove function.
5669 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5670 (m68k_reg_struct_return_p, m68k_return_value)
5671 (m68k_svr4_return_value): New functions.
5672 (m68k_use_struct_convention): Remove function.
5673 (m68k_push_dummy_call): Use new struct_value_regnum member of
5674 `struct gdbarch_tdep' instead of hardcoded register number to
5675 store STRUCT_ADDR.
5676 (m68k_svr4_init_abi): New function.
5677 (m68k_gdbarch_init): Don't set extract_return_value,
5678 store_return_values, deprecated_extract_struct_value_address and
5679 use_struct_convention. Set return_value instead. Initialize new
5680 struct_value_regnum member of `struct gdbarch_tdep'.
5681 * m68klinux-tdep.c: Update copyright year.
5682 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5683 (m68k_linux_extract_struct_value_address): Remove function.
5684 (m68k_linux_init_abi): Don't set extract_return_value,
5685 store_return_values, deprecated_extract_struct_value_address and
5686 use_struct_convention. Call m68k_svr4_init_abi but override the
5687 new struct_value_regnum member of `struct gdbarch_tdep'.
5688 * Makefile.in (m68k-tdep.o): Update dependencies.
5689
aaa75496
JB
56902004-05-03 J. Brobecker <brobecker@gnat.com>
5691
5692 * dwarf2read.c (line_header): Add new included_p field in
5693 field file_names.
5694 (partial_die_info): New field has_stmt_list. New field line_offset.
5695 (dwarf2_create_include_psymtab): New function.
5696 (dwarf2_build_include_psymtabs): New function.
5697 (add_file_name): Add forward declaration. Initialize new field.
5698 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5699 to be able to determine the list of files included by the
5700 given unit, and build their associated psymtabs.
5701 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5702 files as well.
5703 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5704 (read_file_scope): Update call to dwarf_decode_lines.
5705 (read_partial_die): Handle DW_AT_stmt_list attributes.
5706
c848556f
MC
57072004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5708
5709 Unfix PR gdb/1626.
5710 * configure.in: Revert special case for osf5.*.
5711 * configure: Regenerate.
5712
eb4556d7
JB
57132004-05-02 Jim Blandy <jimb@redhat.com>
5714
5715 Move the symbol-file-from-memory functions into their own file.
5716 * symfile-mem.c, symfile-mem.h: New files.
5717 * symfile.c (symbol_file_add_from_bfd): New function.
5718 (symbol_file_add): Call symbol_file_add_from_bfd.
5719 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5720 Moved to symfile-mem.c.
5721 (_initialize_symfile): Move definition of
5722 add-symbol-file-from-memory command to symfile-mem.c.
5723 * symfile.h (symbol_file_add_from_bfd): New declaration.
5724 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5725 * config/powerpc/linux.mt (TDEPFILES): Same.
5726 * Makefile.in (SFILES): Add symfile-mem.c.
5727 (symfile_mem_h): New variable.
5728 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5729 (symfile-mem.o): New rule.
5730
80bb239e
AC
57312004-05-01 Andrew Cagney <cagney@redhat.com>
5732
7789d0fa
AC
5733 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5734 frame_find_by_id instead of frame_relative_level.
5735 (do_enable_breakpoint): Ditto.
5736 * thread.c: Update copyright.
5737 (info_threads_command): Ditto, simplify.
5738
80bb239e
AC
5739 * frame.c (deprecated_generic_get_saved_register): Delete
5740 function, moved to "xstormy16-tdep.c".
5741 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5742 deprecated_generic_get_saved_register from "frame.c".
5743 (xstormy16_frame_saved_register): Call
5744 xstormy16_get_saved_register.
5745 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5746 static.
5747 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5748 * frame.h (deprecated_generic_get_saved_register): Delete.
5749
b2a871dd
MC
57502004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5751
5752 * dwarfread.c: Update documentation on the state of dwarf-1.
5753
0e100dab
AC
57542004-05-01 Andrew Cagney <cagney@redhat.com>
5755
acd8056e
AC
5756 * stack.c (select_frame_command): Delete call to
5757 frame_relative_level.
5758 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5759 Delete #if0 code.
5760 (frame_info): Do not print FRAMELESS.
5761 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5762 (catch_info): Delete #if0 code.
5763
0e100dab
AC
5764 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5765 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5766 of frame_relative_level.
5767 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5768 to SENTINEL_FRAME.
5769 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5770 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5771 frame_relative_level.
5772
55699d59
AC
5773 * frame.h (deprecated_set_frame_type): Delete declaration.
5774 * frame.c (deprecated_set_frame_type): Delete function, update
5775 comments.
5776
fcf70625
AC
5777 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5778 * gdbarch.h, gdbarch.c: Re-generate.
5779 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5780 (shnbsd_pc_in_sigtramp): Delete.
5781 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5782 pc_in_sigtramp.
5783 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5784 pc_in_sigtramp.
5785 * frame.h: Update comments.
5786 * ppc-linux-tdep.c: Update comments.
5787 * breakpoint.c (bpstat_what): Update comments.
5788
ac5eccb7
AC
5789 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5790 m68klinux-tdep.o's dependencies, were previously added to
5791 m68klinux-nat.o.
5792
f2524b93
AC
5793 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5794 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5795 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5796 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5797 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5798
17e20bce
AC
5799 * Makefile.in (m68klinux-nat.o): Update dependencies.
5800 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5801 (m68k_linux_sigtramp_frame_cache)
5802 (m68k_linux_sigtramp_frame_this_id)
5803 (m68k_linux_sigtramp_frame_prev_register)
5804 (m68k_linux_sigtramp_frame_unwind)
5805 (m68k_linux_sigtramp_frame_sniffer)
5806 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5807 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5808 names, use trad-frame.h.
5809 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5810 (struct m68k_sigtramp_info): Delete.
5811 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5812 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5813 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5814 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5815 "m68klinux-tdep.c".
5816
c8864fa2
AC
5817 * infrun.c (check_sigtramp2): Delete check for
5818 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5819
511dd2cd
MK
58202004-05-01 Mark Kettenis <kettenis@gnu.org>
5821
5822 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5823
8c6b0e06
AC
58242004-05-01 Andrew Cagney <cagney@redhat.com>
5825
9df0bb3f
AC
5826 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5827 (frv_linux_sigtramp_frame_cache)
5828 (frv_linux_sigtramp_frame_this_id)
5829 (frv_linux_sigtramp_frame_prev_register)
5830 (frv_linux_sigtramp_frame_unwind)
5831 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5832 include "linux" in function and variable names, directly call
5833 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5834 the latest trad-frame code.
5835 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5836 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5837 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5838 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5839 * frv-tdep.c (frv_sigtramp_frame_cache)
5840 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5841 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5842 frv-linux-tdep.c.
5843 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5844 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5845 (frv_set_sigcontext_reg_addr): Delete function.
5846
8c6b0e06
AC
5847 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5848 (DEPRECATED_SIGTRAMP_END): Delete.
5849 * gdbarch.h, gdbarch.c: Re-generate.
5850 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5851 * config/vax/tm-vaxbsd.h: Update copyright.
5852 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5853 (DEPRECATED_IN_SIGTRAMP): Define.
5854 * config/m68k/tm-nbsd.h: Update copyright.
5855 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5856 (DEPRECATED_IN_SIGTRAMP): Define.
5857
50ea7769
MK
58582004-05-01 Mark Kettenis <kettenis@gnu.org>
5859
03ac2a74
MK
5860 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5861 encondings. Fixes PR gdb/1628.
5862
50ea7769
MK
5863 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5864 DW_CFA_restore state without a matching DW_CFA_remember_state
5865 instead of aborting. Fixes PR backtrace/1589.
5866
9a5d7be1
JB
58672004-04-30 Joel Brobecker <brobecker@gnat.com>
5868
5869 * MAINTAINERS: Add self as AIX maintainer.
5870 Update my e-mail address in write-after-approval section.
5871
2593d1cd
AC
58722004-04-30 Andrew Cagney <cagney@redhat.com>
5873
ce12bbf9
AC
5874 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5875 (legacy_get_prev_frame): Ditto.
5876
36710c63
AC
5877 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5878 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5879 * mipsread.c (sigtramp_address): Delete extern variable.
5880 (mipscoff_new_init): Delete reference.
5881 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5882 (fixup_sigtramp): Delete function.
5883 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5884 (fixup_sigtramp): Delete declarations.
5885
2593d1cd
AC
5886 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5887 deprecated_pc_in_sigtramp.
5888 (ppcnbsd_pc_in_sigtramp): Delete function.
5889
2a25f91c
MK
58902004-05-01 Mark Kettenis <kettenis@gnu.org>
5891
5892 * config/m68k/nm-nbsd.h: Tweak comments.
5893 * config/m68k/nm-nbsdaout.h: Likewise.
5894
0b281939
AC
58952004-04-30 Andrew Cagney <cagney@redhat.com>
5896
5897 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5898 legacy_pc_in_sigtramp.
5899 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5900
8f2d3ea0
MK
59012004-05-01 Mark Kettenis <kettenis@gnu.org>
5902
5903 Add OpenBSD/m68k support.
5904 * NEWS (New native configurations): Mention OpenBSD/m68k.
5905 * m68kbsd-tdep.c: New file.
5906 * m68kbsd-nat.c: New file.
5907 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5908 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5909 * configure.host: Add m68k-*-openbsd.
5910 * configure.tgt: Add m68k-*-openbsd.
5911 * config/m68k/tm-obsd.h: New file.
5912 * config/m68k/obsd.mt: New file.
5913 * config/m68k/obsd.mh: New file.
5914 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5915 m68kbsd-tdep.c.
5916
c40f49a4
AC
59172004-04-30 Andrew Cagney <cagney@redhat.com>
5918
5919 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5920 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5921
e81554cd
MK
59222004-04-30 Mark Kettenis <kettenis@gnu.org>
5923
5924 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5925 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5926
d4dc1a91
BF
59272004-04-30 Brian Ford <ford@vss.fsi.com>
5928
5929 Revert 2004-04-16 change.
5930 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5931 (i386_coff_init_abi): Remove.
5932 * i386-tdep.h (i386_coff_init_abi): Remove.
5933 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5934
2f72f850
AC
59352004-04-30 Andrew Cagney <cagney@redhat.com>
5936
e492f9d6
AC
5937 * blockframe.c (find_pc_partial_function): Delete use of
5938 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5939 DEPRECATED_SIGTRAMP_END.
5940
7b7adad0
AC
5941 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5942 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5943 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5944 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5945 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5946
2f72f850
AC
5947 * defs.h (deprecated_inside_entry_file): Delete declaration.
5948 * blockframe.c (deprecated_inside_entry_file): Delete function.
5949 (legacy_frame_chain_valid): Delete call.
5950 * sh64-tdep.c (sh64_frame_chain): Delete call.
5951 * objfiles.h: Update comments.
5952 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5953 call.
5954 * frame.c (get_prev_frame): Delete call, update comments.
5955
283f90a7
BF
59562004-04-30 Brian Ford <ford@vss.fsi.com>
5957
5958 * MAINTAINERS (Write After Approval): Add myself.
5959
8ee56bcf
AC
59602004-04-30 Andrew Cagney <cagney@redhat.com>
5961
5962 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5963 * gdbarch.h, gdbarch.c: Re-generate.
5964 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5965 code.
5966
ee27e1b6
AC
59672004-04-30 Andrew Cagney <cagney@redhat.com>
5968
5969 * gdb-events.sh (selected_thread_changed)
5970 (selected_frame_level_changed, target_changed): Delete.
5971 * gdb-events.h, gdb-events.c: Re-generate.
5972 * valops.c (value_assign): Update.
5973 * stack.c (select_frame_command, up_silently_base)
5974 (down_silently_base): Update.
5975
d5ac5a39
AC
59762004-04-29 Andrew Cagney <cagney@redhat.com>
5977
5978 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5979 registers correctly.
5980 (print_gp_register_row, mips32_heuristic_proc_desc)
5981 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5982 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5983 references to mips_isa_regsize.
5984
ceae6e75
AC
59852004-04-29 Andrew Cagney <cagney@redhat.com>
5986
5987 * mips-tdep.c (struct gdbarch_tdep): Delete
5988 mips_fp_register_double.
5989 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5990 mips_abi_regsize.
5991 (mips_gdbarch_init): Do not set mips_fp_register_double.
5992 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5993
a587af0b
AC
59942004-04-29 Joel Brobecker <brobecker@gnat.com>
5995
5996 Committed by Andrew Cagney.
5997 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5998 function calls.
5999
13326b4e
AC
60002004-04-29 Andrew Cagney <cagney@redhat.com>
6001
6002 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6003 gdbarch, use mips_abi, update callers.
6004 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6005 mips_abi_regsize, update callers.
6006 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6007 mips_default_abi_regsize.
6008 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6009 mips_default_abi_regsize.
6010
711cc5cd
AC
60112004-04-29 Andrew Cagney <cagney@redhat.com>
6012
1b13c4f6
AC
6013 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6014 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6015 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6016 mips_default_abi_regsize.
6017 (mips_isa_regsize): Rename mips_regisze.
6018 * mipsnbsd-tdep.c: Update.
6019 * mips-linux-tdep.c: Update.
6020 * irix5-nat.c: Update.
6021 * mips-tdep.h (mips_isa_regsize): Update.
6022
711cc5cd
AC
6023 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6024 Delete all disabled code.
6025 * gdb-events.h, gdb-events.c: Re-generate.
6026
e63bbc88
MK
60272004-04-19 Jerome Guitton <guitton@gnat.com>
6028 Mark Kettenis <kettenis@gnu.org>
6029
6030 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6031 the function begins with a branch instruction.
6032
fd35795f
MK
60332004-04-29 Mark Kettenis <kettenis@gnu.org>
6034
6035 * i386-tdep.c: Fix spelling mistakes.
6036
c960c18f
AC
60372004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6038 Andrew Cagney <cagney@redhat.com>
6039
6040 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6041 <sys/proc.h>.
6042 * acconfig.h: Provide default _KMEMUSER value.
6043 * config.in, configure: Re-generate.
6044 * NEWS: Mention fix.
6045
50306a9d
RC
60462004-04-24 Randolph Chung <tausq@debian.org>
6047
6048 * configure.host (hppa*-*-linux*): New target.
6049 * configure.tgt (hppa*-*-linux*): Likewise.
6050 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6051 gdbarch_init_osabi() call earlier so that osabi-specific frame
6052 unwinders can be registered first.
6053 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6054 hppa-linux-nat.c.
6055 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6056 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6057 * config/pa/linux.mh: New file.
6058 * config/pa/linux.mt: New file.
6059 * config/pa/nm-linux.h: New file.
6060 * config/pa/xm-linux.h: New file.
6061 * hppa-linux-nat.c: New file.
6062 * hppa-linux-tdep.c: New file.
6063
2a6228ef
RC
60642004-04-28 Randolph Chung <tausq@debian.org>
6065
6066 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6067 return values.
6068 (hppa32_push_dummy_call): Fix small struct and floating point argument
6069 passing, and make sure the stack frame is properly aligned.
6070
82c10df6
AC
60712004-04-28 Andrew Cagney <cagney@redhat.com>
6072
d762c46a
AC
6073 * stack.c (print_stack_frame): Fix description.
6074
82c10df6
AC
6075 * NEWS: Mention gdb/gdbserver/configure execute permission
6076 changed. PR server/519.
6077
0faf0076
AC
60782004-04-28 Andrew Cagney <cagney@redhat.com>
6079
6080 * stack.c (print_stack_frame_stub): Delete declaration.
6081 (struct print_stack_frame_args, print_stack_frame)
6082 (print_frame_info, print_frame): Replace "source" with print what.
6083 Replace "print" with "print_level". Replace "args" with
6084 "print_args".
6085 * frame.h (show_and_print_stack_frame, print_stack_frame)
6086 (print_frame_info): Update declarations.
6087 * stack.c (select_and_print_frame, frame_command)
6088 (current_frame_command, up_command, down_command): Update calls -
6089 use get_selected_frame, pass "enum print_what" for source, do not
6090 call frame_relative_level.
6091 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6092 * remote-rdp.c (remote_rdp_open): Ditto.
6093 * remote-mips.c (common_open): Ditto.
6094 * remote-e7000.c (e7000_start_remote): Ditto.
6095 * ocd.c (ocd_start_remote): Ditto.
6096 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6097 * infrun.c (normal_stop): Ditto.
6098 * inflow.c (kill_command): Ditto.
6099 * infcmd.c (finish_command): Ditto.
6100 * corelow.c (core_open): Ditto.
6101 * tracepoint.c (finish_tfind_command): Ditto.
6102 * thread.c (info_threads_command, info_threads_command)
6103 (restore_current_thread, do_captured_thread_select): Ditto.
6104 * ada-tasks.c (task_command): Ditto.
6105
f4c5303c
OF
61062004-04-26 Orjan Friberg <orjanf@axis.com>
6107
6108 * frame.c: Include "observer.h".
6109 (frame_observer_target_changed): New function.
6110 (_initialize_frame): Attach target_changed observer.
6111 * regcache.c: Include "observer.h".
6112 (regcache_observer_target_changed): New function.
6113 (_initialize_regcache): Attach target_changed observer.
6114 * valops.c: Include "observer.h".
6115 (value_assign): Notify target_changed event when modifying register.
6116 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6117
7270d8f2
OF
61182004-04-26 Orjan Friberg <orjanf@axis.com>
6119
6120 From Paul Koning <pkoning@equallogic.com>:
6121 * breakpoint.c (free_valchain): New function.
6122 (insert_bp_location, delete_breakpoint): Use free_valchain.
6123 (remove_breakpoint): Do not remove the valchain.
6124 (bpstat_stop_status): If not stopped by watchpoint, skip
6125 watchpoints when generating stop status list.
6126 * infrun.c (handle_inferior_event): Make
6127 stepped_after_stopped_by_watchpoint a global variable.
6128 * remote.c (remote_stopped_data_address): Return watch data
6129 address rather than zero if stepped_after_stopped_by_watchpoint is
6130 set.
6131
02d62932
MC
61322004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6133
6134 Fix PR gdb/1626.
6135 * configure.in: Check for curses after termcap.
6136 On osf5.*, do not check for ncurses.
6137 * configure: Regenerate.
6138
3e9a183c
MK
61392004-04-25 Mark Kettenis <kettenis@gnu.org>
6140
c79ac407
MK
6141 * ppcobsd-nat.c: Include "ppc-tdep.h".
6142 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6143
3e9a183c
MK
6144 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6145 Fixes PR tdep/1623 and PR tdep/1624.
6146
38cc9c28
MC
61472004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6148
6149 * xmodem.h, xmodem.c: Remove files.
6150 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6151
7f07c5b6
RC
61522004-04-23 Randolph Chung <tausq@debian.org>
6153
6154 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6155 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6156 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6157 for handling stackless frames.
6158 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6159
9f7194c3
RC
61602004-04-23 Randolph Chung <tausq@debian.org>
6161
6162 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6163 starts at a pc before the frame is created.
6164
dcff6009
JB
61652004-04-23 Joel Brobecker <brobecker@gnat.com>
6166
6167 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6168
40711ff1 61692004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6170
6171 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6172 use convert_typed_floating to get the appropriate format.
6173
abc485a1
RC
61742004-04-22 Randolph Chung <tausq@debian.org>
6175
6176 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6177 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6178 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6179 (hppa_sign_extend): Add prototype.
6180 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6181 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6182 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6183 hppa targets will also use these functions.
6184 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6185 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6186 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6187 (hppa_gdbarch_init): Remove gdbarch setting of
6188 skip_trampoline_code, in_solib_call_trampoline and
6189 in_solib_return_trampoline.
6190 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6191 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6192 hppa_in_solib_call_trampoline.
6193 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6194 Moved from hppa-tdep.c.
6195 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6196 in_solib_call_trampoline and in_solib_return_trampoline.
6197
369aa520
RC
61982004-04-22 Randolph Chung <tausq@debian.org>
6199
6200 * hppa-tdep.c (hppa_debug): New variable.
6201 (find_unwind_entry, hppa_frame_cache): Add debug output.
6202 (_initialize_hppa_tdep): Add command to set debug flag.
6203
476be15e
AC
62042004-04-22 Andrew Cagney <cagney@redhat.com>
6205
6206 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6207 "trad-frame.h".
6208 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6209 signal trampoline unwinder.
6210 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6211
d195bc9f
MK
62122004-04-22 Mark Kettenis <kettenis@gnu.org>
6213
6214 Add OpenBSD/powerpc support.
6215 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6216 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6217 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6218 (ppc_collect_fpregset): New prototypes.
6219 * ppcobsd-nat.c: New file.
6220 * ppcobsd-tdep.c: New file.
6221 * ppcobsd-tdep.h: New file.
6222 * rs6000-tdep.c: Include "regset.h".
6223 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6224 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6225 New functions.
6226 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6227 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6228 (rs6000-tdep.o): Update dependencies.
6229 * configure.host: Add powerpc-*-openbsd.
6230 * configure.tgt: Add powerpc-*-openbsd.
6231 * config/powerpc/obsd.mh: New file.
6232 * config/powerpc/nm-obsd.h: New file.
6233 * config/powerpc/obsd.mt: New file.
6234
6f14cc33
AC
62352004-04-22 Andrew Cagney <cagney@redhat.com>
6236
fcf29e5f
AC
6237 * frame.h (show_frame_info): Delete declaration.
6238
6f14cc33
AC
6239 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6240 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6241 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6242 * frv-tdep.c (frv_frame_this_id): Ditto.
6243 * avr-tdep.c (avr_frame_this_id): Ditto.
6244
e5786a5c
EZ
62452004-04-22 Elena Zannoni <ezannoni@redhat.com>
6246
6247 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6248
26e75e5c
JB
62492004-04-22 Jim Blandy <jimb@redhat.com>
6250
6251 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6252 register number zero.
6253
d8d65dd3
MS
62542004-04-21 Michael Snyder <msnyder@redhat.com>
6255
6256 * mips-tdep.c (heuristic_proc_start):
6257 Warning() already prefixes "Warning: ".
6258
9a4105ab
AC
62592004-04-21 Andrew Cagney <cagney@redhat.com>
6260
6261 * annotate.h (deprecated_annotate_starting_hook)
6262 (deprecated_annotate_stopped_hook)
6263 (deprecated_annotate_exited_hook)
6264 (deprecated_annotate_signal_hook)
6265 (deprecated_annotate_signalled_hook): Deprecate.
6266 * tracepoint.h (deprecated_create_tracepoint_hook)
6267 (deprecated_delete_tracepoint_hook)
6268 (deprecated_modify_tracepoint_hook)
6269 (deprecated_trace_find_hook)
6270 (deprecated_trace_start_stop_hook): Deprecate.
6271 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6272 * remote.h (deprecated_target_resume_hook)
6273 (deprecated_target_wait_loop_hook): Deprecate.
6274 * gdbcore.h (deprecated_exec_file_display_hook)
6275 (deprecated_file_changed_hook): Deprecate.
6276 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6277 * defs.h (deprecated_modify_breakpoint_hook)
6278 (deprecated_command_loop_hook, deprecated_show_load_progress)
6279 (deprecated_print_frame_info_listing_hook)
6280 (deprecated_query_hook, deprecated_warning_hook)
6281 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6282 (deprecated_delete_breakpoint_hook)
6283 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6284 (deprecated_readline_begin_hook, deprecated_readline_hook)
6285 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6286 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6287 (deprecated_context_hook, deprecated_target_wait_hook)
6288 (deprecated_attach_hook, deprecated_detach_hook)
6289 (deprecated_call_command_hook, deprecated_set_hook)
6290 (deprecated_error_hook, deprecated_error_begin_hook)
6291 (deprecated_ui_load_progress_hook): Deprecate.
6292 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6293 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6294 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6295 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6296 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6297 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6298 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6299 * annotate.c, aix-thread.c: Update.
6300
62cf13cc
AC
63012004-04-21 Andrew Cagney <cagney@redhat.com>
6302
b2e31a62
AC
6303 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6304 * vaxnbsd-tdep.c: Include "gdb_string.h".
6305
62cf13cc
AC
6306 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6307 (add_symbol_file_from_memory_command): #if 0 function body, call
6308 error instead.
6309
00e32a35
AC
63102004-04-21 Andrew Cagney <cagney@redhat.com>
6311
6312 * gdbcore.h: Update copyright.
6313 (deprecated_add_core_fns): Rename add_core_fns.
6314 * win32-nat.c (_initialize_core_win32): Update.
6315 * sun3-nat.c (_initialize_core_sun3): Update.
6316 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6317 * rs6000-nat.c (_initialize_core_rs6000): Update.
6318 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6319 * nto-tdep.c (_initialize_nto_tdep): Update.
6320 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6321 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6322 * mips-nat.c (_initialize_core_mips): Update.
6323 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6324 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6325 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6326 * lynx-nat.c (_initialize_core_lynx): Update.
6327 * irix5-nat.c (_initialize_core_irix5): Update.
6328 * i386-interix-nat.c (_initialize_core_interix): Update.
6329 * cris-tdep.c (_initialize_cris_tdep): Update.
6330 * corelow.c (deprecated_add_core_fns): Update.
6331 * core-regset.c (_initialize_core_regset): Update.
6332 * core-aout.c (_initialize_core_aout): Update.
6333 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6334 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6335 * alpha-nat.c (_initialize_core_alpha): Update.
6336
13c7b1ca
JB
63372004-04-21 Jim Blandy <jimb@redhat.com>
6338
6339 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6340
7b5a2f43
DJ
63412004-04-19 Daniel Jacobowitz <drow@mvista.com>
6342
6343 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6344 Delete.
6345 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6346 (read_attribute_value): Update calls to dwarf_alloc_block.
6347 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6348 dwarf2_tmp_obstack.
6349 (psymtab_to_symtab_1): Likewise. Clean up using
6350 free_stack_comp_unit.
6351 (add_to_cu_func_list): Use the comp_unit_obstack.
6352
05cf31d1
JB
63532004-04-19 Joel Brobecker <brobecker@gnat.com>
6354
6355 * dwarf2read.c (dwarf2_flag_true_p): New function.
6356 (die_is_declaration): Use the function above. Add some comments.
6357
adf93a2f
MK
63582004-04-19 Mark Kettenis <kettenis@gnu.org>
6359
6360 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6361 architecture when registering sparcnbsd_core_osabi_sniffer.
6362 Adjust comment.
6363
748894bf
MK
63642004-04-18 Mark Kettenis <kettenis@gnu.org>
6365
f622ad42
MK
6366 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6367 return value.
6368
c4fc7f1b
MK
6369 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6370 * i386-tdep.c: Correct register numbering scheme comments
6371 throughout.
6372 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6373 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6374 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6375 (i386_gdb_arch_init): Likewise.
6376
b4ead1bd
MK
6377 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6378 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6379 ppcnbsd-tdep.o.
6380
748894bf
MK
6381 * m68k-tdep.h: Tweak comments.
6382 * m68k-tdep.c: Tweak comment.
6383
fdd72f95
RC
63842004-04-17 Randolph Chung <tausq@debian.org>
6385
6386 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6387 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6388 (hppa_hpux_som_init_abi): Set is_elf to 0.
6389 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6390 * hppa-tdep.c (low_text_segment_address): Remove global.
6391 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6392 section offset to calculate segment address.
6393 (internalize_unwinds): Define low_text_segment_address as local and
6394 pass to record_text_segment_lowaddr for ELF targets.
6395 (hppa_gdbarch_init): Zero fill tdep structure.
6396 (hppa_dump_tdep): Print tdep structure.
6397 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6398
0f8d9d59
RC
63992004-04-17 Randolph Chung <tausq@debian.org>
6400
6401 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6402 (hppa_gdbarch_init): Set pseudo_register_read.
6403 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6404 * regcache.c (supply_register): Remove check for
6405 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6406
7c46b9fb
RC
64072004-04-17 Randolph Chung <tausq@debian.org>
6408
6409 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6410 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6411 (hpread_adjust_stack_address): Move to hpread.c.
6412 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6413 obj_private_struct): Move from tm-hppa.h.
6414 * hpread.c (hppa-tdep.h): Include.
6415 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6416 (hpread_read_function_type, hpread_read_doc_function_type)
6417 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6418 directly.
6419 * pa64solib.c (hppa-tdep.h): Include.
6420 * somsolib.c (hppa-tdep.h): Include.
6421 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6422 inferior_status): Remove unused forward declarations.
6423 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6424 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6425 obj_private_struct): Move to hppa-tdep.h.
6426 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6427
8d153463
RC
64282004-04-17 Randolph Chung <tausq@debian.org>
6429
6430 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6431 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6432 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6433 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6434 Remove forward declaration and make static.
6435 (hppa_reg_struct_has_addr): Remove.
6436
350c2e5b
JB
64372004-04-16 Joel Brobecker <brobecker@gnat.com>
6438
6439 * observer.sh: Move comments in sed command to first column.
6440
bbde78fa
JM
64412004-04-16 Jason Molenda (jmolenda@apple.com)
6442
6443 * frame.c: Minor typeo corrections in comments.
6444
e0270fd9
JB
64452004-04-16 Joel Brobecker <brobecker@gnat.com>
6446
6447 * observer.c (observer_test_first_notification_function): Update
6448 function profile.
6449 (observer_test_second_notification_function): Likewise.
6450 (observer_test_third_notification_function): Likewise.
6451
3d049254
MK
64522004-04-16 Mark Kettenis <kettenis@gnu.org>
6453
6454 From Brian Ford <ford@vss.fsi.com>:
6455 * i386-tdep.c (i386_coff_init_abi): New function.
6456 * i386-tdep.h (i386_coff_init_abi): New prototype.
6457 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6458 register number translation functions for DWARF and DWARF 2.
6459
7867684d
JB
64602004-04-16 Joel Brobecker <brobecker@gnat.com>
6461
6462 * dwarf2read.c: Back out my previous change, it was incorrect.
6463
72bf9492
DJ
64642004-04-16 Daniel Jacobowitz <drow@mvista.com>
6465
6466 * dwarf2read.c: Include "hashtab.h".
6467 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6468 has_namespace_info.
6469 (struct partial_die_info): Add comments. Use bitfields to reduce
6470 memory footprint. Add scope, scope_set, has_specification,
6471 spec_offset, die_parent, die_child, and die_sibling.
6472 (peek_die_abbrev): Add prototype.
6473 (partial_read_comp_unit_head): New function, broken out from
6474 dwarf2_build_psymtabs_hard.
6475 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6476 Use partial_read_comp_unit_head. Initialize the CU and
6477 comp_unit_obstack. Update calls to read_partial_die and
6478 scan_partial_symbols. Use free_stack_comp_unit and
6479 load_partial_dies.
6480 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6481 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6482 Update calls to helper functions. Remove NAMESPACE argument.
6483 Update comments.
6484 (partial_die_parent_scope, partial_die_full_name): New functions.
6485 (add_partial_symbol): Remove namespace argument. Update call to
6486 pdi_needs_namespace. Use partial_die_full_name. Handle
6487 DW_TAG_namespace. Check has_namespace_info flag.
6488 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6489 tag. Handle namespaces.
6490 (add_partial_namespace, add_partial_enumeration): Simplify.
6491 (guess_structure_name): New function, derived from
6492 add_partial_structure.
6493 (add_partial_structure): Remove.
6494 (determine_class_name): Update comment.
6495 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6496 (is_type_tag_for_partial, load_partial_dies): New functions.
6497 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6498 Record specifications instead of following them immediately.
6499 (find_partial_die_in_comp_unit, find_partial_die)
6500 (fixup_partial_die, free_stack_comp_unit)
6501 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6502 (partial_die_hash, partial_die_eq): New functions.
6503 * Makefile.in (hashtab_h): Define.
6504 (dwarf2read.o): Update dependencies.
6505 (observer_inc, observer_h): Move to the correct section.
6506
fdc860a3
JB
65072004-04-15 Joel Brobecker <brobecker@gnat.com>
6508
6509 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6510 (die_is_declaration): Use the function above. Add comment.
6511
dc718098
JB
65122004-04-15 Joel Brobecker <brobecker@gnat.com>
6513
6514 * dwarf2read.c (read_structure_scope): Identify stub types
6515 using die_is_declaration() only.
6516
8718a420
RM
65172004-04-15 Roland McGrath <roland@redhat.com>
6518
6519 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6520 argument instead of NAME.
6521 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6522 in call to symbol_file_add_with_addrs_or_offsets.
6523 (build_addr_info): New function, helper for ...
6524 (symbol_file_add_from_memory): New function.
6525 (add_symbol_file_from_memory_command): New function using that.
6526 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6527 (pre_add_symbol_hook): Add const to argument type.
6528 * symfile.h (symbol_file_add_from_memory): Declare it.
6529
8b910bab
MK
65302004-04-15 Mark Kettenis <kettenis@gnu.org>
6531
9f076e7a
MK
6532 * NEWS (New native configurations): Mention OpenBSD/vax.
6533 * configure.host: Add vax-*-openbsd*.
6534 * config/vax/obsd.mh: New file.
6535 * config/vax/nm-obsd.h: New file.
6536
8b910bab
MK
6537 * vax-tdep.c: Include "regset.h".
6538 (vax_supply_gregset): New function.
6539 (vax_gregset): New variable.
6540 (vax_regset_from_core_section): New function.
6541 (vax_gdbarch_init): Set regset_from_core_section.
6542 * Makefile.in (vax-tdep.o): Update dependencies.
6543
7a464420
AC
65442004-04-15 Andrew Cagney <cagney@redhat.com>
6545
6546 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6547 (observer_normal_stop_notification_stub)
6548 (observer_attach_normal_stop, observer_detach_normal_stop):
6549 Delete, replaced by #include "observer.inc".
6550 * infrun.c (normal_stop): Pass "stop_bpstat" to
6551 observer_notify_normal_stop.
6552 * Makefile.in (observer_inc): Define.
6553 (observer.o): Update dependencies.
6554 (observer.h, observer.inc): New rules.
6555 * observer.h: Delete file.
6556 * observer.sh: New file.
6557
e36ad527
MK
65582004-04-15 Mark Kettenis <kettenis@gnu.org>
6559
6560 * vax-tdep.c (vax_frame_cache): Fix typo.
6561
67b441e1
MK
65622004-04-14 Mark Kettenis <kettenis@gnu.org>
6563
6f606e1c
MK
6564 * NEWS (New native configurations): Mention NetBSD/vax.
6565 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6566 * config/vax/nbsdelf.mh: New file.
6567 * config/vax/nbsdaout.mh: New file.
6568 * config/vax/nm-nbsd.h: New file.
6569 * config/vax/nm-nbsdaout.h: New file.
6570
9c5519a5
MK
6571 * vaxnbsd-tdep.c: New file.
6572 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6573 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6574 * config/vax/nbsd.mt: New file.
6575 * config/vax/tm-nbsd.h: New file.
6576
4844a614
MK
6577 * Makefile.in (vaxbsd-nat.o): New dependency.
6578
67b441e1
MK
6579 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6580 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6581 struct_addr arguments. Don't push return value address.
6582 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6583 arguments to vax_store_arguments. Store return value address in
6584 R1.
6585 (vax_store_struct_return, vax_extract_return_value)
6586 (vax_store_return_value): Remove functions.
6587 (vax_return_value): New function.
6588 (vax_gdbarch_init): Set return value. Don't set
6589 deprecated_store_struct_return, deprecated_extract_struct_return
6590 and deprecated_store_return_value.
6591
6672f2ae
AS
65922004-04-14 Andreas Schwab <schwab@suse.de>
6593
6594 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6595 value buffer.
6596 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6597
7346c184
MK
65982004-04-14 Mark Kettenis <kettenis@gnu.org>
6599
6600 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6601 (vax_unwind_dummy_id): New functions.
6602 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6603 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6604 variables.
6605 (vax_fix_call_dummy): Remove function.
6606 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6607 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6608 call_dummy_location, deprecated_call_dummy_words,
6609 deprecated_sizeof_call_dummy_words,
6610 deprecated_call_dummy_breakpoint_offset,
6611 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6612 and deprecated_dummy_write_sp.
6613
58e23df4
DC
66142004-04-13 David Carlton <carlton@kealia.com>
6615
6616 * MAINTAINERS: Move myself to "paper trail" section.
6617
5e6b39ff
MK
66182004-04-12 Mark Kettenis <kettenis@gnu.org>
6619
7def7fef
MK
6620 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6621 "trad-frame.h".
6622 (vax_frame_init_saved_regs): Remove function.
6623 (vax_sigtramp_saved_pc): Remove function.
6624 (vax_frame_saved_pc): Remove function.
6625 (vax_frame_args_address): Remove function.
6626 (vax_frame_num_args): Rewrite.
6627 (vax_frame_chain): Remove function.
6628 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6629 VAX_FP_REGNUM.
6630 (vax_pop_frame): Likewise.
6631 (vax_saved_pc_after_call): Remove function.
6632 (struct vax_frame_cache): New structure.
6633 (vax_frame_cache): New function.
6634 (vax_frame_this_id): New function.
6635 (vax_frame_prev_register): New function.
6636 (vax_frame_unwind): New variable.
6637 (vax_frame_sniffer): New function.
6638 (vax_frame_base_address): New function.
6639 (vax_frame_args_address): New function.
6640 (vax_frame_base): New variable.
6641 (vax_unwind_pc): New function.
6642 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6643 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6644 deprecated_frame_chain, deprecated_frame_saved_pc,
6645 deprecated_frame_args_address and
6646 deprecated_frame_init_saved_regs.
6647 * Makefile.in (vax-tdep.o): Update dependencies.
6648
53284fc1
MK
6649 * vaxbsd-nat.c: New file.
6650
5e6b39ff
MK
6651 * vax-tdep.h: Update copyright year. Adjust comments.
6652 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6653 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6654 (vax_regnum): New enum. Replacing...
6655 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6656 (VAX_PS_REGNUM): ... these removed macros.
6657 * vax-tdep.c (vax_register_name): Remove prototype.
6658 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6659 (vax_register_byte, vax_register_raw_size,
6660 vax_register_virtual_size, vax_register_virtual_type): Remove
6661 functions.
6662 (vax_register_type): New function.
6663 (vax_breakpoint_from_pc): Reorganize.
6664 (vax_gdbarch_init): Set register_type. Don't set
6665 deprecated_register_size, deprecated_register_bytes,
6666 deprecated_register_byte, deprecated_register_raw_size,
6667 deprecated_max_register_raw_size,
6668 deprecated_register_virtual_size,
6669 deprecated_max_register_virtual_size and
6670 deprecated_register_virtual_type. Add comment on stack direction.
6671
e9c71e9f
MK
66722004-04-11 Mark Kettenis <kettenis@gnu.org>
6673
6674 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6675 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6676 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6677
d46f1176 66782004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6679
d46f1176
RC
6680 * MAINTAINERS (write after approval): Add myself.
6681
a2a84a72
RC
66822004-04-07 Randolph Chung <tausq@debian.org>
6683
6684 * hppa-tdep.c (hppa_inner_than): Remove.
6685 (is_pa_2): Remove unused static variable.
8718a420 6686 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6687
e85c3284
PH
66882004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6689
6690 * language.h (language_defn): Add new la_post_parser field.
6691 * parser-defs.h (null_post_parser): New declaration (default for
6692 la_post_parser).
8718a420 6693
e85c3284
PH
6694 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6695 insert call to that function.
6696 (parse_exp_in_context): New function, including code formerly in
8718a420 6697 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6698 prefixification.
6699 (parse_expression_in_context): New exported function.
6700 (null_post_parser): New definition.
6701 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6702
e85c3284
PH
6703 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6704 * c-lang.c (c_language_defn): Ditto.
6705 (cplus_language_defn): Ditto.
6706 (asm_language_defn): Ditto.
6707 (minimal_language_defn): Ditto.
6708 * f-lang.c (f_language_defn): Ditto.
6709 * jv-lang.c (java_language_defn): Ditto.
6710 * language.c (unknown_language_defn): Ditto.
6711 (auto_language_defn): Ditto.
6712 (local_language_defn): Ditto.
6713 * m2-lang.c (m2_language_defn): Ditto.
6714 * scm-lang.c (scm_language_defn): Ditto.
6715 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6716
d9f8c85b
MK
67172004-04-10 Mark Kettenis <kettenis@gnu.org>
6718
fa34704a
MK
6719 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6720 (amd64nbsd_mcontext_addr): New function.
6721 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6722 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6723 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6724
403e1656
MK
6725 * corelow.c (core_xfer_partial): Fix coding standards violation.
6726 Add support for TARGET_OBJECT_WCOOKIE.
6727
a57e5a95
MK
6728 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6729 deprecated_pc_in_sigtramp.
6730 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6731 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6732 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6733 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6734 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6735 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6736 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6737
377d9ebd
MK
6738 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6739 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6740 Fix typo.
6741
f0ef85a5
MK
6742 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6743 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6744 (amd64_collect_fxsave): Likewise.
6745
d9f8c85b
MK
6746 * i386-sol2-tdep.c: Include "gdb_string.h".
6747 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6748 name.
6749 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6750
75f501b5
MK
67512004-04-10 Mark Kettenis <kettenis@gnu.org>
6752
6753 * i386-sol2-tdep.c: Include "solib-svr4.h".
6754 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6755 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6756 * config/i386/tm-i386sol2.h: Include :solib.h".
6757 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6758 solib-svr4.o and solib-legacy.o.
6759 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6760 solib-svr4.o.
6761
b31bc724
MK
67622004-04-09 Mark Kettenis <kettenis@gnu.org>
6763
18bbbd9e
MK
6764 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6765 whether a register is supplied by PTRACE_GETFPREGS.
6766 (store_inferior_registers): Likewise.
6767 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6768 whether a register is supplied by PT_GETFPREGS.
6769 (store_inferior_registers): Likewise.
6770
3c30bf1b
MK
6771 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6772 * config/i386/linux64.mt (TDEPFILES): Likewise.
6773
a4194092
MK
6774 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6775
911bc6ee
MK
6776 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6777 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6778 the program counter is in the range specified by `struct
6779 gdbarch_tdep'.
6780 * amd64-linux-tdep.c: Include "symtab.h".
6781 (amd64_linux_pc_in_sigtramp): Remove function.
6782 (amd64_linux_sigtramp_p): New function.
6783 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6784 deprecated_pc_in_sigtramp.
6785 * amd64nbsd-tdep.c: Include "symtab.h".
6786 (amd64nbsd_sigtramp_p): New function.
6787 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6788 deprecated_pc_in_sigtramp.
6789 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6790 few comments.
6791 (amd64obsd_pc_in_sigtramp): Remove function.
6792 (amd64obsd_sigtramp_p): New function.
6793 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6794 deprecated_pc_in_sigtramp.
6795 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6796 (i386bsd_pc_ins_sigtramp): Remove prototype.
6797 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6798 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6799 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6800 the program counter is in the range specified by `struct
6801 gdbarch_tdep'.
6802 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6803 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6804 (i386_go32_pc_in_sigtramp): Remove function.
6805 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6806 Initialize TDEP->sigtramp_p.
6807 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6808 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6809 deprecated_pc_in_sigtramp.
6810 * i386-linux-tdep.c: Adjust comments.
6811 (i386_linux_pc_in_sigtramp): Remove function.
6812 (i386_linux_sigtramp_p): New function.
6813 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6814 deprecated_pc_in_sigtramp.
6815 * i386-nto-tdep.c: Update copyright year.
6816 (i386nto_pc_in_sigtramp): Remove function.
6817 (i386nto_sigtramp_p): New function.
6818 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6819 SP_REGNUM.
6820 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6821 deprecated_pc_in_sigtramp.
6822 * i386-sol2-tdep.c: Update copyright year.
6823 (i386_sol2_pc_in_sigtramp): Remove function.
6824 (i386_sol2_sigtramp_p): New function.
6825 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6826 deprecated_pc_in_sigtramp.
6827 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6828 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6829 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6830 deprecated_sigtramp_start and deprecated_sigtramp_end.
6831 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6832 (i386nbsd_pc_in_sigtramp): Remove function.
6833 (i386nbsd_sigtramp_p): New function.
6834 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6835 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6836 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6837 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6838 (i386obsd_pc_in_sigtramp): Remove function.
6839 (i386obsd_sigtramp_p): New function.
6840 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6841 functions.
6842 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6843 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6844 TDEP->sigtramp_p.
6845 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6846 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6847 dependencies.
6848
e083e6ec
MK
6849 * config/i386/i386aout.mt: Remove file.
6850
bd153b94
MK
6851 * configure.tgt: Remove i[34567]86-*-go32*,
6852 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6853 and i[34567]86-*-isc*. Set gdb_target to i386 for
6854 i[34567]86-*-netware* and i[34567]86-*-*.
6855 * config/i386/i386.mt: New file.
6856 * config/i386/embed.mt: Remove file.
6857 * config/i386/go32.mt: Remove file.
6858 * config/i386/i386nw.mt: Remove file.
6859 * config/i386/i386v.mt: Remove file.
6860 * config/i386/tm-go32.h: Remove file.
6861
4a1bcc8c
MK
6862 * tui/tui-hooks.c: Include "readline/readline.h" after
6863 "gdb_curses.h" instead of before.
6864 * tui/tui-io.c: Likewise.
6865
f9a79064
MK
6866 * tui/tui.c: Fix typo in comment.
6867
b31bc724
MK
6868 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6869
f83f82bc
AC
68702004-04-08 Andrew Cagney <cagney@redhat.com>
6871
6872 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6873 (deprecated_exception_support_initialized): Declare.
8718a420 6874 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6875 (initialize_hp_cxx_exception_support)
6876 (child_enable_exception_callback): Update.
6877 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6878 (deprecated_exception_support_initialized): Rename
6879 deprecated_exception_catchpoints_are_fragile and
6880 deprecated_exception_support_initialized.
6881 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6882
6883 * symtab.c (deprecated_hp_som_som_object_present): Rename
6884 hp_som_som_object_present.
6885 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6886 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6887 Update. Delete extern declaration.
6888 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6889 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6890 (parse_nested_classes_for_hpacc): Ditto.
6891 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6892 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6893 (initialize_hp_cxx_exception_support): Ditto.
6894 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6895 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6896 (cp_print_class_method): Ditto.
8718a420 6897 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6898 (c_type_print_base): Ditto.
6899 * c-exp.y (hp_som_som_object_present): Ditto.
6900
fb2be677
AC
69012004-04-08 Andrew Cagney <cagney@redhat.com>
6902
6903 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6904 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6905 (frame_unwind_find_by_frame): Re-implement the unwind code so
6906 that it can both prepend and append sniffers. Replace
6907 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6908 * tramp-frame.c (tramp_frame_append): Use
6909 frame_unwind_prepend_unwinder.
6910 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6911 frame_unwind_register_unwinder.
6912 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6913 tramp_frame_append.
6914 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6915 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6916 (mips_linux_init_abi): Update.
6917
67faf007
KB
69182004-04-08 Kevin Buettner <kevinb@redhat.com>
6919
6920 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6921 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6922 file support.
6923
8973ff21
KB
69242004-04-07 Kevin Buettner <kevinb@redhat.com>
6925
6926 * ia64-tdep.c (elf.h): Don't include.
6927 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6928
4a0e2f88
JM
69292004-04-07 Jason Molenda (jmolenda@apple.com)
6930
6931 * frame.h: Typeo corrections in comments.
6932
9872ad24
JB
69332004-04-07 Jim Blandy <jimb@redhat.com>
6934
6935 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6936 %esp and %ebp
6937
70b216c8
MK
69382004-04-07 Mark Kettenis <kettenis@gnu.org>
6939
11d5789c
MK
6940 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6941 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6942 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6943 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6944 and solib-legacy.o.
6945 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6946 solib-svr4.o.
6947 * config/sparc/tm-sol2.h: Update copyright year. Include
6948 "solib.h".
6949
70b216c8
MK
6950 * sparc-sol2-tdep.c: Update copyright year. Include
6951 "solib-svr4.h".
6952 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6953 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6954 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6955 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6956 dependencies.
6957
6339dc9e
AC
69582004-04-06 Andrew Cagney <cagney@redhat.com>
6959
6960 * infttrace.c: Include "infttrace.h".
6961 * infttrace.h: Include "target.h".
6962 * Makefile.in (infttrace_h): Update.
6963 (infttrace.o): Update.
8718a420 6964
93449403
AC
69652004-04-06 Andrew Cagney <cagney@redhat.com>
6966
6d518969
AC
6967 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6968 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6969 move extern declarations from here ...
6970 * infttrace.h: ... to here.
6971 * Makefile.in (hppah-nat.o): Update dependencies.
6972
85f4f2d8
AC
6973 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6974 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6975 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6976 (hppa_breakpoint_from_pc): Delete.
6977
93449403
AC
6978 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6979
71456ec6
AC
69802004-04-05 Andrew Cagney <cagney@redhat.com>
6981
6982 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6983 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6984 <sys/file.h>.
8718a420 6985
4c02c60c
AC
69862004-04-06 Randolph Chung <tausq@debian.org>
6987
6988 Committed by Andrew Cagney (mechanical change).
6989 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6990 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6991 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6992 child_enable_exception_callback, current_ex_event,
6993 null_symtab_and_line, child_get_current_exception_event,
6994 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6995 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6996 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6997 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6998 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6999 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7000 Move hpux-specific definitions ...
7001 * hppa-hpux-tdep.c: ... to here.
7002
3a515653
AC
70032004-04-05 Andrew Cagney <cagney@redhat.com>
7004
7005 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7006 skip_prologue_using_sal.
7007
c1730d02
AC
70082004-04-05 Andrew Cagney <cagney@redhat.com>
7009
7010 * config/i386/tm-i386.h: Delete file.
7011 * config/i386/tm-vxworks.h: Update copyright, do not include
7012 "tm-i386.h".
7013 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7014 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7015 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7016 * config/i386/ncr3000.mt (TM_FILE): Delete.
7017 * config/i386/interix.mt (TM_FILE): Delete.
7018 * config/i386/i386v.mt (TM_FILE): Delete.
7019 * config/i386/i386nw.mt (TM_FILE): Delete.
7020 * config/i386/i386gnu.mt (TM_FILE): Delete.
7021 * config/i386/i386aout.mt (TM_FILE): Delete.
7022 * config/i386/embed.mt (TM_FILE): Delete.
7023
8b67aa36
KB
70242004-04-05 Kevin Buettner <kevinb@redhat.com>
7025
7026 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7027 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7028 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7029 (accg7_regnum): New constants.
7030 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7031 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7032 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7033 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7034 for accg registers.
7035 (frv_register_sim_regno): Update spr_map[].
7036
3c7012f5
AC
70372004-04-04 Andrew Cagney <cagney@redhat.com>
7038
7039 * config/mips/xm-riscos.h: Delete.
7040 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7041 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7042 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7043 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7044 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7045 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7046 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7047 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7048 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7049 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7050 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7051 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7052 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7053 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7054 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7055 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7056 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7057 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7058 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7059 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7060 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7061 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7062 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7063 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7064 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7065 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7066
3c7012f5
AC
7067 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7068 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7069 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7070 * configure.host: Remove m680[01]0-sun-sunos3*,
7071 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7072 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7073 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7074 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7075 mips-*-riscos*.
7076 * NEWS: Mention removed systems.
7077
99d16a21
AC
70782004-04-04 Andrew Cagney <cagney@redhat.com>
7079
7080 GDB 6.1 release created from 6.1 branch.
7081
6cdf9d98
AC
70822004-04-04 Andrew Cagney <cagney@redhat.com>
7083
98d346c3
AC
7084 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7085 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7086 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7087
6cdf9d98
AC
7088 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7089 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7090 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7091
859a326d
JB
70922004-04-03 Jim Blandy <jimb@redhat.com>
7093
7094 * MAINTAINERS: Chris Faylor has changed employers; add him to
7095 "paper trail" section, and update his E-mail address.
7096
b87178c3
AC
70972004-04-03 Andrew Cagney <cagney@redhat.com>
7098
4ea2acf0
AC
7099 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7100 generic dummy frames.
7101 * dummy-frame.c: Update copyright.
7102 (dummy_frame_sniffer): Delete check for generic dummy frames.
7103
d0bd2d18 7104 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7105 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7106 (REG_PARM_STACK_SPACE): Delete.
7107 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7108 Inline reference to REG_PARM_STACK_SPACE.
7109
b87178c3
AC
7110 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7111 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7112 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7113 (FRAME_BASE_BEFORE_SIGTRAMP)
7114 (hppa32_hpux_frame_base_before_sigtramp)
7115 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7116 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7117 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7118 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7119 (FRAME_BASE_BEFORE_SIGTRAMP)
7120 (hppa64_hpux_frame_base_before_sigtramp)
7121 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7122
43e2e1a0
AC
71232004-04-03 Andrew Cagney <cagney@redhat.com>
7124
7125 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7126
ddc135a4
AC
71272004-04-02 Andrew Cagney <cagney@redhat.com>
7128
7129 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7130 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7131 * dummy-frame.h: Delete out-of-date comments.
7132 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7133 * gdbarch.h, gdbarch.c: Re-generate.
7134
d15bfd3a 71352004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7136
d15bfd3a
AC
7137 Committed by Andrew Cagney <cagney@redhat.com>.
7138 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7139 into account an instruction saving a register if we have already
7140 seen an earlier instruction saving that same register.
7141
f04ceafa
AC
71422004-04-02 Andrew Cagney <cagney@redhat.com>
7143
08be3abd
AC
7144 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7145 * gdbarch.h, gdbarch.c: Re-generate.
7146 * frame.c (legacy_get_prev_frame): Delete references to
7147 DEPRECATED_INIT_FRAME_PC_FIRST.
7148
f04ceafa
AC
7149 * infrun.c (pc_in_sigtramp): Delete function.
7150 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7151 get_frame_type.
7152
08e69816
AC
71532004-04-02 Andrew Cagney <cagney@redhat.com>
7154
7155 * infrun.c (handle_step_into_function): Delete code conditional on
7156 legacy_frame_p.
7157 (handle_inferior_event, step_over_function): Ditto.
7158
adb54772
AC
71592004-04-02 Andrew Cagney <cagney@redhat.com>
7160
7161 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7162 "previous frame inner to this frame" test.
7163
304396fb
AC
71642004-04-02 Andrew Cagney <cagney@redhat.com>
7165
7166 * frame.c (safe_frame_unwind_memory): New function.
7167 * frame.h (safe_frame_unwind_memory): Declare. Update description
7168 of /safe_/ methods.
7169 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7170 "next_frame". Use safe_frame_unwind_memory.
7171 (tramp_frame_sniffer): Update call to tramp_frame_start.
7172
6502dd73
DJ
71732004-04-01 Daniel Jacobowitz <drow@mvista.com>
7174
7175 * dwarf2read.c (dwarf2_objfile_data_key): New.
7176 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7177 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7178 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7179 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7180 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7181 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7182 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7183 Remove variables.
7184 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7185 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7186 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7187 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7188 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7189 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7190 Remove macros.
7191 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7192 data.
7193 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7194 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7195 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7196 (read_partial_die, read_full_die, read_indirect_string)
7197 (dwarf_decode_line_header, dwarf_decode_macros)
7198 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7199 Update uses of removed variables.
7200 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7201 of removed macros.
7202 (_initialize_dwarf2_read): New function.
7203 * symfile.h (dwarf2_has_info): Update prototype.
7204 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7205 * elfread.c (elf_symfile_read): Likewise.
7206
408752b0
JB
72072004-04-01 Jim Blandy <jimb@redhat.com>
7208
9f744501
JB
7209 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7210 function for register numbers on all the rs6000-derived targets.
7211 (rs6000_gdbarch_init): Don't register a separate
7212 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7213 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7214 variants.
7215
408752b0
JB
7216 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7217 numbering.
7218
2de41bce
PH
72192004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7220
7221 * valarith.c: Update copyright notice.
7222 (value_add): Handle range types.
7223 (value_sub): Ditto.
7224 (value_equal): Ditto.
7225 (value_less): Ditto.
7226 (value_neg): Ditto.
7227 (value_complement): Ditto.
8718a420 7228 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7229 eliminiating unnecessary COERCE_ENUMs.
8718a420 7230
5613d8d3
AC
72312004-03-31 Andrew Cagney <cagney@redhat.com>
7232
7233 * frame.h (frame_unwind_id): Declare.
7234 * frame.c (frame_unwind_id): New function.
7235 (get_prev_frame_1): New function.
7236 (frame_debug_got_null_frame): New function.
7237 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7238 code proper to prev_frame, update description.
7239 * infrun.c (step_over_function): Use frame_unwind_id.
7240
c4557624
JB
72412004-04-31 J. Brobecker <brobecker@gnat.com>
7242
7243 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7244 (hppa64_push_dummy_call): Likewise.
7245
3e6bb910
JB
72462004-03-30 Jim Blandy <jimb@redhat.com>
7247
7248 From Ulrich Weigand:
7249 * utils.c (query): Do not use a va_list variable multiple times.
7250
a2f23071
DJ
72512004-03-29 Daniel Jacobowitz <drow@mvista.com>
7252
7253 * Makefile.in (linux_nat_h): Update dependencies.
7254 * configure.in: Check for <gnu/libc-version.h>.
7255 * configure: Regenerate.
7256 * config.in: Regenerate.
7257 * linux-nat.h: Include "target.h". Add waitstatus field to
7258 struct lwp_info.
7259 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7260 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7261 to.
7262 (lin_lwp_handle_extended): New function. Handle clone events.
7263 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7264 thread exit events.
7265 (child_wait): Handle clone events.
7266 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7267 * linux-nat.c (linux_enable_event_reporting): Turn on
7268 PTRACE_O_TRACECLONE.
7269 (linux_handle_extended_wait): Handle clone events.
7270 * thread-db.c: Include <gnu/libc-version.h>.
7271 (struct private_thread_info): Add dying flag.
7272 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7273 higher.
7274 (attach_thread): Update comments. Handle dying threads.
7275 (detach_thread): Set the dying flag.
7276 (check_event): Always call attach_thread.
7277
8d5f9dcb
DJ
72782004-03-29 Daniel Jacobowitz <drow@mvista.com>
7279
7280 * mips-tdep.c (mips_pdr_data): New.
7281 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7282 (_initialize_mips_tdep): Initialize mips_pdr_data.
7283
66337bb1
CV
72842004-03-29 Corinna Vinschen <vinschen@redhat.com>
7285
7286 * minsyms.c (install_minimal_symbols): Move dropping leading
7287 char from linkage name from here...
7288 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7289 test for "__gnu_compiled*" symbols.
7290
e802b915
JB
72912004-03-28 Jim Blandy <jimb@redhat.com>
7292
7293 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7294 registers to temp register r0 and byte stores as prologue
7295 instructions.
7296
72b56458
AC
72972004-03-28 Andrew Cagney <cagney@redhat.com>
7298
7299 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7300 arm*-*-*.
7301
0bfbda3b
SC
73022004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7303
7304 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7305 and switch the layout to force a display of register window.
7306
5a7225ed
JB
73072004-02-26 J. Brobecker <brobecker@gnat.com>
7308
7309 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7310 of the INTEGER class.
7311
81a07a45
JB
73122004-03-26 Jim Blandy <jimb@redhat.com>
7313
7314 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7315 bytes long on PPC GNU/Linux.
7316
8c691c7a
DC
73172004-03-26 David Carlton <carlton@kealia.com>
7318
7319 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7320
103a0089
AC
73212004-03-25 Andrew Cagney <cagney@redhat.com>
7322
7323 * PROBLEMS: Add general section titles, remove references to
7324 specific releases.
7325
7a5ea0d4
DJ
73262004-03-25 Daniel Jacobowitz <drow@mvista.com>
7327
7328 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7329 INT_REGISTER_SIZE.
7330 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7331 FP_REGISTER_VIRTUAL_SIZE.
7332 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7333 of DEPRECATED_REGISTER_RAW_SIZE.
7334 (arm_register_type): Add gdbarch argument.
7335 (arm_register_raw_size, arm_register_virtual_size): Delete.
7336 (arm_register_byte, arm_extract_return_value)
7337 (arm_store_return_value, arm_get_longjmp_target): Update references
7338 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7339 (arm_gdbarch_init): Likewise. Don't set
7340 deprecated_register_raw_size, deprecated_register_virtual_size,
7341 deprecated_max_register_raw_size,
7342 deprecated_max_register_virtual_size, or
7343 deprecated_max_register_virtual_type. Do set register_type.
7344 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7345 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7346 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7347 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7348 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7349 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7350 INT_REGISTER_SIZE.
7351 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7352 (remote_rdp_store_register): Likewise.
7353
5792a79b
DJ
73542004-03-24 Daniel Jacobowitz <drow@mvista.com>
7355
7356 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7357 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7358 to after osabi initialization.
7359 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7360 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7361 functions.
7362 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7363 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7364 variables.
7365 (mips_linux_init_abi): Append signal trampoline unwinders.
7366
1196bfda
AC
73672004-03-24 Andrew Cagney <cagney@redhat.com>
7368
7369 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7370 * tramp-frame.c: Include "gdb_assert.h".
7371 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7372 correct sizeof.
7373 (tramp_frame_append): Validate the tramp frame's instructions.
7374 * Makefile.in (tramp-frame.o): Update dependencies.
7375
4be282b4
AC
73762004-03-23 Andrew Cagney <cagney@redhat.com>
7377
7378 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7379
69aec09b
AC
73802004-03-23 Andrew Cagney <cagney@redhat.com>
7381
7382 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7383 Nasser as past testsuite/lib/ (and other) maintainers.
7384
63ed89b4
DJ
73852004-03-23 Daniel Jacobowitz <drow@mvista.com>
7386
7387 * infcmd.c (attach_command): Reread symbols if we already have
7388 an exec file.
7389
f3b36427
AC
73902004-03-23 Andrew Cagney <cagney@redhat.com>
7391
7392 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7393
aa2a3f87
AC
73942004-03-23 Andrew Cagney <cagney@redhat.com>
7395
7396 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7397 * gdbarch.h, gdbarch.c: Re-generate.
7398 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7399 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7400 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7401 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7402 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7403 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7404 (DEPRECATED_SIGTRAMP_START): Update.
7405 * blockframe.c (find_pc_sect_partial_function): Update.
7406 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7407
00cac895
DJ
74082004-03-23 Daniel Jacobowitz <drow@mvista.com>
7409
7410 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7411 if necessary.
7412
f561f026
AC
74132004-03-23 Andrew Cagney <cagney@redhat.com>
7414
7415 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7416 predicate, deprecate.
7417 * gdbarch.h, gdbarch.c: Re-generate.
7418 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7419 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7420 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7421 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7422 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7423 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7424 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7425 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7426 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7427 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7428 * blockframe.c (find_pc_partial_function): Update.
7429 * breakpoint.c (bpstat_what): Update.
7430 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7431 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7432 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7433 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7434 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7435 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7436 * i386-nto-tdep.c (i386nto_init_abi): Update.
7437 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7438 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7439 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7440 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7441 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7442 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7443 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7444 * infrun.c (pc_in_sigtramp): Update.
7445 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7446 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7447 * mips-tdep.c (mips_gdbarch_init): Update.
7448 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7449 * ppc-linux-tdep.c: Update comment.
7450 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7451 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7452 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7453 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7454 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7455 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7456 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7457 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7458 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7459 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7460
8050c72f
AC
74612004-03-23 Andrew Cagney <cagney@redhat.com>
7462
d2259dd3
AC
7463 * tramp-frame.h, tramp-frame.h: New files.
7464 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7465 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7466
8050c72f
AC
7467 * Makefile.in: Update all dependencies.
7468
0db9b4b7
AC
74692004-03-23 Andrew Cagney <cagney@redhat.com>
7470
7471 * Makefile.in (trad_frame_h): Add $(frame_h).
7472 * trad-frame.h: Update copyright. Include "frame.h".
7473 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7474 (trad_frame_set_id, trad_frame_get_id): Declare.
7475 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7476 * trad-frame.c: Update copyright.
7477 (struct trad_frame_cache): Define.
7478 (trad_frame_cache_zalloc): New function.
7479 (trad_frame_set_id, trad_frame_get_id): New functions.
7480 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7481
8e645ae7
AC
74822004-03-22 Andrew Cagney <cagney@redhat.com>
7483
7484 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7485 s390_pltstub_unwind_cache.
7486 (s390_stub_frame_unwind_cache): Rename
7487 s390_pltstub_frame_unwind_cache.
7488 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7489 (s390_stub_frame_prev_register): Rename
7490 s390_pltstub_frame_prev_register.
7491 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7492 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7493
7494 From Ulrich Weigand:
7495 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7496 pointer calls like PLT calls.
7497
34fcf120
DJ
74982004-03-22 Daniel Jacobowitz <drow@mvista.com>
7499
7500 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7501 PC rather than the partial function start address. Use the start
7502 address to sanity check the found PDR.
7503
5b917078
DJ
75042004-03-22 Daniel Jacobowitz <drow@mvista.com>
7505
7506 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7507 linux_handle_extended_wait.
7508
8adf9e78
AC
75092004-03-22 Andrew Cagney <cagney@redhat.com>
7510
c3122434
AC
7511 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7512 function.
7513
8adf9e78
AC
7514 * frame.h (generic_pop_current_frame): Delete declaration.
7515 (deprecate_pop_dummy_frame): Deprecate
7516 generic_pop_dummy_frame.
7517 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7518 (generic_pop_current_frame): Delete function.
7519 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7520 generic_pop_current_frame.
7521 * v850-tdep.c (v850_pop_frame): Update.
7522 * mcore-tdep.c (mcore_pop_frame): Update.
7523 * sh64-tdep.c (sh64_pop_frame): Update.
7524 * h8300-tdep.c (h8300_pop_frame): Update.
7525
90ba813f
AC
75262004-03-22 Andrew Cagney <cagney@redhat.com>
7527
7528 * frame.h (deprecated_pc_in_call_dummy): Rename
7529 generic_pc_in_call_dummy.
7530 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7531 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7532 generic_pc_in_call_dummy.
7533 (pc_in_dummy_frame): Make static.
7534 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7535 * gdbarch.h, gdbarch.c: Re-generate.
7536 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7537 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7538 (legacy_get_prev_frame): Ditto.
7539 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7540 comment.
8718a420 7541
ca4bb888
AC
75422004-03-21 Andrew Cagney <cagney@redhat.com>
7543
244675f9
AC
7544 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7545 declaration and out-of-date comment.
7546 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7547 Delete function.
7548 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7549 deprecated_pc_in_call_dummy.
7550
ca4bb888
AC
7551 * infrun.c (handle_inferior_event): For non legacy frames, use the
7552 frame ID and frame type to identify a signal trampoline. Update
7553 comments.
7554
1777c7b4
NW
75552004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7556
7557 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7558 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7559
82417da5
AC
75602004-03-21 Andrew Cagney <cagney@redhat.com>
7561
7562 * frame-unwind.h: Update copyright.
7563 (struct frame_data): Add opaque declaration.
7564 (frame_sniffer_ftype): Declare.
7565 (struct frame_unwind): Add "unwind_data" and "sniffer".
7566 (frame_unwind_register_unwinder): Declare.
7567 (frame_unwind_find_by_frame): Add parameter "this_cache".
7568 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7569 (legacy_get_prev_frame, legacy_get_prev_frame)
7570 (get_frame_type): Pass the prologue_cache to
7571 frame_unwind_find_by_frame.
7572 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7573 "unwinder".
7574 (frame_unwind_register_unwinder): New function.
7575 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7576
b2ba182e
PH
75772004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7578
7579 * bcache.c (print_percentage): Use floating point to avoid
7580 incorrect results when portion*100 overflows.
7581
81332287
KB
75822004-03-19 Kevin Buettner <kevinb@redhat.com>
7583
7584 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7585 (ppc_linux_init_extra_frame_info)
7586 (ppc_linux_frameless_function_invocation)
7587 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7588 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7589 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7590 (rs6000_frame_chain): Delete declarations.
7591 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7592 (ppc_linux_init_extra_frame_info)
7593 (ppc_linux_frameless_function_invocation)
7594 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7595 (ppc_linux_init_abi): Remove registration of above deleted functions.
7596 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7597 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7598 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7599 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7600 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7601 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7602 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7603 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7604 frame management for all OSABIs.
7605
61a65099
KB
76062004-03-19 Andrew Cagney <cagney@redhat.com>
7607
7608 Committed by Kevin Buettner <kevinb@redhat.com>.
7609
7610 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7611 Update copyright.
7612 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7613 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7614 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7615 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7616 unwinders. #ifdef legacy frame code.
7617 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7618 "frame-base.h".
7619 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7620 (struct rs6000_frame_cache, rs6000_frame_cache)
7621 (rs6000_frame_this_id, rs6000_frame_prev_register)
7622 (rs6000_frame_sniffer, rs6000_frame_unwind)
7623 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7624 (rs6000_frame_base): Implement a traditional frame unwinder.
7625 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7626 frame unwinder.
7627
88f7da05
KB
76282004-03-19 Kevin Buettner <kevinb@redhat.com>
7629
7630 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7631 breakpoint address for watchpoints or the catch eventpoints.
7632 Add new paramter ``bptype''. Adjust all callers.
7633
f826dce1
AC
76342004-03-19 Andrew Cagney <cagney@redhat.com>
7635
33cb8b0f
AC
7636 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7637
f826dce1
AC
7638 * PROBLEMS: Delete note that ARM does not use frame code, problem
7639 fixed.
7640
43b1ab88
AC
76412004-03-18 Andrew Cagney <cagney@redhat.com>
7642
292ab034
AC
7643 * stack.c (return_command): Delete code wrapped in #ifdef
7644 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7645
43b1ab88
AC
7646 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7647
dbfe4626
AC
76482004-03-18 Andrew Cagney <cagney@redhat.com>
7649
7650 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7651 DEPRECATED_IN_SIGTRAMP.
7652 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7653 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7654 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7655 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7656 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7657 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7658 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7659 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7660 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7661 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7662
0cad6aec
AC
76632004-03-18 Andrew Cagney <cagney@redhat.com>
7664
7665 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7666 (struct frame_base_table_entry): Define.
7667 (struct frame_base_table): Re-implement as a linked list.
7668 (frame_base_init): Re-implement.
7669 (frame_base_table): Delete function.
7670 (append_predicate): Delete function.
7671 (frame_base_append_sniffer): Update.
7672 (frame_base_set_default): Update.
7673 (frame_base_find_by_frame): Update.
7674 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7675 * Makefile.in (frame-base.o): Update dependencies.
7676
9982c2e7
AC
76772004-03-17 Andrew Cagney <cagney@redhat.com>
7678
7679 * frame.c (legacy_get_prev_frame): Pass correct frame to
7680 frame_unwind_find_by_frame.
7681
8dfe8985
DC
76822004-03-17 David Carlton <carlton@kealia.com>
7683
7684 * NEWS: Mention C++ nested types and namespaces
7685
ed47347a
MC
76862004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7687
7688 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7689 and "Regressions since gdb 5.3.". Add known regressions since
7690 gdb 6.0.
7691
90aeadfc
DC
76922004-03-16 David Carlton <carlton@kealia.com>
7693
7694 * dwarf2read.c (process_structure_scope): Process children even
7695 when we're a declaration.
7696
73912b9b
AC
76972004-03-16 Andrew Cagney <cagney@redhat.com>
7698
7699 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7700 * blockframe.c (find_pc_partial_function)
7701 (find_pc_sect_partial_function): Merge into a single
7702 find_pc_partial_function.
7703
283accbc
MK
77042004-03-16 Mark Kettenis <kettenis@gnu.org>
7705
7706 * i386bsd-nat.c: s/regno/regnum/g.
7707 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7708 FP0_REGNUM.
7709 (store_inferior_registers): Likewise.
7710
f5b1afdf
MK
77112004-03-16 Mark Kettenis <kettenis@gnu.org>
7712
7713 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7714 of i387_fill_fsave.
7715 (store_inferior_registers): Call i387_collect_fsave and
7716 i387_collect_fxsave instead of i387_fill_fsave and
7717 i387_fill_fxsave.
7718
41fe5eb3
AC
77192004-03-15 Andrew Cagney <cagney@redhat.com>
7720
7721 * Makefile.in (frame-unwind.o): Update dependencies.
7722 * frame-unwind.c: Include "gdb_obstack.h".
7723 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7724 parameter.
7725 (append_predicate): Delete function.
7726 (struct frame_unwind_table_entry): New structure.
7727 (struct frame_unwind_table): Replace "sniffer" with "head" and
7728 "tail".
7729 (frame_unwind_append_sniffer): Update.
7730 (frame_unwind_find_by_frame): Update.
7731 (_initialize_frame_unwind): Registe frame_unwind_init using
7732 gdbarch_data_register_pre_init.
7733
3f63813d
MK
77342004-03-15 Mark Kettenis <kettenis@gnu.org>
7735
7736 * i386bsd-nat.c: Update copyright year.
7737 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7738 define unconditionally.
7739
3248c325 77402004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7741
7742 * i387-tdep.h (i387_collect_fsave): New prototype.
7743 * i387-tdep.c (i387_collect_fsave): New function containing most
7744 of the code from i387_fill_fsave.
3248c325 7745 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7746
871fbe6a
MK
77472004-03-15 Mark Kettenis <kettenis@gnu.org>
7748
7749 * i386-linux-tdep.c: Update copyright year.
7750 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7751 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7752 svr4_ilp32_link_map_offsets instead of
7753 i386_linux_svr4_fetch_link_map_offsets.
7754
8176b9b8
DC
77552004-03-15 David Carlton <carlton@kealia.com>
7756
7757 Fix for PR c++/1553:
7758 * dwarf2read.c (read_structure_type): Determine type name by
7759 calling determine_class_name.
7760 (determine_class_name): New.
7761 (determine_prefix): Look at TYPE_TAG_NAME and call
7762 determine_class_name when appropriate.
7763 (determine_prefix_aux, class_name): Delete.
9d58e29d 7764 (read_namespace): Set die->type.
8176b9b8 7765
fe8bf7d7
KB
77662004-03-15 Kevin Buettner <kevinb@redhat.com>
7767
7768 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7769 unused macro definition. The definition in target.h (or perhaps
7770 elsewhere) takes precedence.
7771
ed6edd9b
AC
77722004-03-15 Andrew Cagney <cagney@redhat.com>
7773
f9be684a
AC
7774 * ppc-tdep.h: Update copyright.
7775 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7776 function signatures to match "regsets.h".
7777 * ppc-linux-tdep.c: Include "regset.h".
7778 (ELF_GREGSET_SIZE): Delete.
7779 (right_supply_register): New function.
7780 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7781 using right_supply_register.
7782 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7783 functions.
7784 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7785 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7786 (_initialize_ppc_linux_tdep): Do not register
7787 ppc_linux_regset_core_fns.
7788 (ppc_linux_regset_from_core_section): Replace
7789 fetch_core_registers.
7790 (ppc_linux_regset_core_fns): Delete.
7791 * ppc-linux-nat.c: (right_fill_reg): New function.
7792 (supply_gregset): Update call to ppc_linux_supply_gregset.
7793 (fill_gregset): Clear the register set, use right_fill_reg.
7794 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7795 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7796
ed6edd9b
AC
7797 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7798 unsigned.
7799
030f20e1
AC
78002004-03-15 Andrew Cagney <cagney@redhat.com>
7801
7802 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7803 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7804 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7805 and register_gdbarch_data.
7806 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7807 (struct gdbarch_data): Replace "init" by "pre_init" and
7808 "post_init".
7809 * gdbarch.h, gdbarch.c: Re-generate.
7810 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7811 with"obstack", use OBSTACK_ZALLOC.
7812 (dwarf2_frame_ops): Delete.
7813 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7814 (dwarf2_frame_init_reg): Use gdbarch_data.
7815 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7816 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7817 (_initialize_svr4_solib): Update.
7818 * user-regs.c (_initialize_user_regs): Update.
7819 * reggroups.c (_initialize_reggroup): Update.
7820 * regcache.c (_initialize_regcache): Update.
7821 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7822 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7823 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7824 * frame-unwind.c (_initialize_frame_unwind): Update.
7825 * frame-base.c (_initialize_frame_base): Update.
7826 * user-regs.c (user_reg_add): Update.
7827 * reggroups.c (reggroup_add): Update.
7828 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7829 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7830 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7831 * frame-base.c (frame_base_table): Update.
7832 * remote.c (_initialize_remote): Update.
7833 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7834
3111a3fc
AC
78352004-03-15 Andrew Cagney <cagney@redhat.com>
7836
7837 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7838
5ecb7103
KB
78392004-03-15 Kevin Buettner <kevinb@redhat.com>
7840
7841 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7842 * frv-linux-tdep.c: New file.
7843 * frv-tdep.c (struct gdbarch_tdep): Add new field
7844 ``sigcontext_reg_addr''.
7845 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7846 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7847 (frv_sigramp_frame_sniffer): New functions.
7848 (frv_sigtramp_frame_unwind): New static global.
7849 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7850 sniffers.
7851 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7852 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7853
1ccda5e9
KB
78542004-03-15 Kevin Buettner <kevinb@redhat.com>
7855
7856 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7857 but not via a call to error(), when unable to read memory.
7858
b375a0a5
KB
78592004-03-15 Kevin Buettner <kevinb@redhat.com>
7860
7861 * frv-tdep.c (frv_call_dummy_words): Delete.
7862 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7863
4fdf6121
AC
78642004-03-15 Andrew Cagney <cagney@redhat.com>
7865
7866 * infrun.c (handle_step_into_function, step_over_function): Only
7867 update and use STEP_FRAME_ID when the system is using legacy
7868 frames. Update comments.
7869
34021503
MK
78702004-03-14 Mark Kettenis <kettenis@gnu.org>
7871
187e21d1
MK
7872 * amd64-linux-tdep.h: Remove file.
7873 * amd64-linux-tdep.c: Don't include "inferior.h" and
7874 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7875 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7876 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7877 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7878 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7879 macros.
7880 (user_to_gdb_regmap): Remove variable.
7881 (amd64_linux_gregset_reg_offset): New variable.
7882 (amd64_core_fns): Remove variable.
7883 (fetch_core_registers): Remove function.
7884 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7885 functions.
7886 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7887 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7888 * Makefile.in (amd64_linux_tdep_h): Remove.
7889 (amd64-linux-nat.o): Update dependencies.
7890 (amd64-linux-tdep.o): Update dependencies.
7891
99679982
MK
7892 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7893 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7894 functions.
7895 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7896
34021503
MK
7897 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7898 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7899
134d01f1
DJ
79002004-03-14 Daniel Jacobowitz <drow@mvista.com>
7901
7902 * dwarf2read.c (read_structure_type): Rename from
8718a420 7903 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7904 Return immediately if die->type is set. Call read_type_die before
7905 dwarf2_add_member_fn.
7906 (process_structure_scope): New function.
7907 (read_enumeration_type, process_enumeration_scope): New functions,
7908 broken out from read_enumeration. Don't create the enumeration
7909 type if it has already been created.
7910 (read_enumeration): Removed.
7911 (process_die): Call read_structure_type, process_structure_scope,
7912 read_enumeration_type, and process_enumeration_scope. Just call
7913 new_symbol for base and subrange types. Add a comment about other
7914 type dies.
7915 (read_type_die): Call read_enumeration_type.
7916 (add_partial_structure, new_symbol): Update comments.
7917
65760afb
SC
79182004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7919
7920 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7921
10f59415
SC
79222004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7923
7924 * tui/tui-win.h (tui_get_cmd_list): Declare.
7925 * tui/tui-win.c (tui_command): New function.
7926 (tui_get_cmd_list): New function.
7927 (_initialize_tui_win): Moved initialization of tui command in
7928 tui_get_cmd_list.
7929
7930 * tui/tui-data.c (init_content_element): Setup new data members.
7931 (init_win_info): Likewise.
7932 (free_content_elements): Free it.
7933 * tui/tui-data.h (struct tui_data_element): Store the register
7934 content to print.
7935 (struct tui_data_info): Keep the current register group.
7936
7937 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7938
7939 * tui/tui-regs.h (tui_show_registers): Update prototype.
7940 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7941 (tui_resize_all): No need to calculate anything for register window.
7942 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7943 (tui_set_register_element, tui_set_general_regs_content): Remove.
7944 (tui_set_special_regs_content): Remove.
7945 (tui_set_general_and_special_regs_content): Remove.
7946 (tui_set_float_regs_content): Remove.
7947 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7948 (tui_set_regs_content): Remove.
7949 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7950 (tui_v_show_registers_command_support): Remove.
7951 (tui_show_registers): Use a reggroup to specify the registers to show.
7952 (tui_show_register_group): New function.
7953 (tui_display_registers_from): Compute the layout of register window
7954 and refresh with new API; be sure to delete old register windows.
7955 (tui_check_register_values): Update to use tui_get_register and
7956 tui_display_data.
7957 (tui_display_register): Just refresh the register window part.
7958 (tui_register_format): Format registers and save in tui_data_element.
7959 (tui_get_register): New to combine tui_reg_value_has_changed and
7960 tui_get_register_raw_value; fix to use the new gdb API.
7961 (tui_show_float_command): Renamed tui_reg_float_command.
7962 (tui_show_general_command): Renamed tui_reg_general_command.
7963 (tui_show_special_command): Renamed tui_reg_system_command.
7964 (_initialize_tui_regs): Remove unused commands.
7965
c3364ea4
MK
79662004-03-13 Mark Kettenis <kettenis@gnu.org>
7967
27d1e716
MK
7968 * NEWS (New native configurations): Mention OpenBSD/amd64.
7969
c3364ea4
MK
7970 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7971 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7972 Remove defines.
7973 * config/i386/nm-fbsd64.h: Likewise.
7974 * config/i386/nm-obsd.h: Likewise.
7975 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7976 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7977
b2d6d697
KB
79782004-03-12 Kevin Buettner <kevinb@redhat.com>
7979
7980 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7981 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7982 New constants.
7983
76e43199
KB
7984 From Richard Sandiford <rsandifo@redhat.com>:
7985 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7986
34ce532e
KB
79872004-03-12 Kevin Buettner <kevinb@redhat.com>
7988
7989 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7990 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7991 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7992 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7993 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7994 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7995 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7996 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7997 definitions from frv-tdep.c to frv-tdep.h.
7998
c4d10515
KB
79992004-03-12 Kevin Buettner <kevinb@redhat.com>
8000
8001 Add shared library support for FR-V FDPIC ABI:
8002 * Makefile.in (solib-frv.o): Add dependencies.
8003 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8004 New functions.
8005 (frv_push_dummy_call): Add support for FDPIC ABI.
8006 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8007 for FDPIC ABI.
8008 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8009 (frv_fdpic_find_canonical_descriptor): Declare.
8010 * solib-frv.c: New file.
8011 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8012 * config/frv/tm-frv.h (solib.h): Include.
8013
ed1bd989
KB
80142004-03-12 Kevin Buettner <kevinb@redhat.com>
8015
8016 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8017 (frv-tdep.o): Update dependencies.
8018 * frv-tdep.h: New file.
8019 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8020 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8021 constants.
8022 (struct gdbarch_tdep): Add new member ``frv_abi''.
8023 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8024 functions.
8025 (new_variant): Set ``frv_abi'' field.
8026 (gdb_arch_init): Detect FDPIC executables.
8027
82b38f72
MK
80282004-03-12 Mark Kettenis <kettenis@gnu.org>
8029
8030 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8031 wrapper.
8032
db1ea9ba
AC
80332004-03-11 Andrew Cagney <cagney@redhat.com>
8034
8035 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8036
f8766ec1
KB
80372004-03-11 Kevin Buettner <kevinb@redhat.com>
8038
8039 * solist.h (master_so_list): New function.
8040 * solib.c (master_so_list): Likewise.
8041 * solib-svr4.c (enable_break): Iterate over so_list entries
8042 obtained from master list instead of entries obtained directly
8043 via svr4_current_sos().
8044
523f6a27
BE
80452004-03-10 Ben Elliston <bje@gnu.org>
8046
8047 * MAINTAINERS: Update my mail address.
8048
37814c18
KI
80492004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8050
8051 * remote-m32r-sdi.c: Support hardware watchpoint.
8052
8b9740d8
DJ
80532004-03-09 Daniel Jacobowitz <drow@mvista.com>
8054
8055 * user-regs.c: Update copyright years.
8056 (struct user_regs): Rename to gdb_user_regs.
8057 (append_user_reg, builtin_user_regs, user_regs_init)
8058 (user_reg_add, user_reg_map_name_to_regnum)
8059 (usernum_to_user_reg): Update.
8060
4bb7a0a7
DJ
80612004-03-09 Daniel Jacobowitz <drow@mvista.com>
8062
8063 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8064 (skip_children): New functions.
8065 (locate_pdi_sibling): Call skip_children.
8066
44e1a9eb
DJ
80672004-03-09 Daniel Jacobowitz <drow@mvista.com>
8068
8069 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8070 * gdbtypes.c (check_typedef): Update comments.
8071
f3dd6933
DJ
80722004-03-09 Daniel Jacobowitz <drow@mvista.com>
8073
8074 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8075 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8076 pointer. Update comment about comp_unit_head.
8077 (struct abbrev_info): Shorten two int flags.
8078 (dwarf_alloc_abbrev): Take a CU argument.
8079 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8080 each time through the loop. Update cleanup argument.
8081 (psymtab_to_symtab_1): Update cleanup call.
8082 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8083 abbrev_obstack.
8084 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8085 Just call obstack_free and clear the pointer.
8086
b40c7d58
DJ
80872004-03-09 Daniel Jacobowitz <drow@mvista.com>
8088
8089 * infrun.c (handle_inferior_event): Remove short-circuit code for
8090 events in a different thread.
8091
333dabeb
DJ
80922004-03-09 Daniel Jacobowitz <drow@mvista.com>
8093
8094 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8095 print the whole transfer.
8096 (initialize_targets): Update description of "set debug target".
8097
aa17d93e
DJ
80982004-03-09 Daniel Jacobowitz <drow@mvista.com>
8099
8100 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8101
0b71f08f
NW
81022004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8103
8104 * MAINTAINERS (write after approval): Add myself.
8105
3930f270
CV
81062004-03-08 Corinna Vinschen <vinschen@redhat.com>
8107
8108 * sh-tdep.c (sh_print_registers_info): Use for loop.
8109 Don't skip multiple registers when a float register is encountered.
8110
a2b4a96c
CV
81112004-03-08 Corinna Vinschen <vinschen@redhat.com>
8112
8113 Fix PR tdep/1291.
8114 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8115 to official SH documentation.
8116
f15a4bc0
AC
81172004-03-07 Andrew Cagney <cagney@redhat.com>
8118
8119 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8120 unused function.
8121
9498281f
DJ
81222004-03-07 Daniel Jacobowitz <drow@mvista.com>
8123
8124 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8125 (arm_get_next_pc): Handle BX and BLX.
8126
449e1137
AC
81272004-03-07 Andrew Cagney <cagney@redhat.com>
8128
eded0a31
AC
8129 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8130 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8131 HPPA_SP_REGNUM.
8132 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8133 (hppa_target_read_fp): Delete.
8134 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8135 register_virtual_size, max_register_raw_size,
8136 max_register_virtual_size, register_byte, register_size,
8137 target_read_fp, fp_regnum, and register_bytes. Set register_type
8138 instead of register_virtual_type.
8139 (hppa32_register_type, hppa64_register_type): Replace
8140 hppa32_register_virtual_type and hppa64_register_virtual_type.
8141 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8142 (HPPA_FP_REGNUM): Define.
8143
f5f907e2
AC
8144 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8145
69b4bbe4
AC
8146 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8147 (pa_do_registers_info): Delete.
8148 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8149 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8150 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8151
78161e48
AC
8152 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8153 GDB_TARGET_IS_HPPA code.
8154 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8155 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8156 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8157 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8158 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8159 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8160 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8161 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8162 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8163 (hppa_frameless_function_invocation, hppa64_store_return_value)
8164 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8165 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8166 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8167 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8168 (find_proc_framesize, deposit_21, restore_pc_queue)
8169 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8170 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8171
782eae8b
AC
8172 Unconditionally enable 64-bit frame and ABI code.
8173 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8174 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8175 push_dummy_frame, fix_call_dummy, push_arguments,
8176 call_dummy_location, extract_return_value, use_struct_convention,
8177 store_return_value, store_struct_return, saved_pc_after_call,
8178 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8179 frame_chain, frame_chain_valid, frameless_function_invocation,
8180 frame_saved_pc, and pop_frame.
78161e48 8181
449e1137
AC
8182 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8183 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8184 (hppa_gdbarch_init): Do not set PC_REGNUM.
8185
12507572
MK
81862004-03-06 Mark Kettenis <kettenis@gnu.org>
8187
8188 * config/alpha/tm-fbsd.h: Remove file.
8189 * config/alpha/fbsd.mt: Tweak comment.
8190 (TM_FILE): Set to tm-alpha.h.
8191
c107cc1b
AC
81922004-03-05 Andrew Cagney <cagney@redhat.com>
8193
8194 * infrun.c (step_over_function): When non-legacy code, and no
8195 step_frame_id, use the unwinder to get the caller's frame ID.
8196
f2e7c15d
MK
81972004-03-05 Mark Kettenis <kettenis@gnu.org>
8198
8b0c3633
MK
8199 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8200 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8201 bfd_arch_unknown. Adjust comment.
8202
f2e7c15d
MK
8203 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8204 * i386obsd-tdep.c: Correct spelling in comment.
8205 * i386nbsd-tdep.c: Correct spelling in comment.
8206 * sparc-tdep.c: Correct spelling in comments.
8207
1198ecbe
DC
82082004-03-05 David Carlton <carlton@kealia.com>
8209
8210 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8211 bug.
8212
9eb42ed1
MK
82132004-03-05 Mark Kettenis <kettenis@gnu.org>
8214
8215 * sparc-tdep.c: Fix typo in comment.
8216
52b5e991
JB
82172004-03-04 J. Brobecker <brobecker@gnat.com>
8218
8219 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8220
d8151005
DJ
82212004-03-04 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * dwarf2read.c: Add comment describing memory lifetimes.
8224 (struct dwarf2_pinfo): Update comment.
8225 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8226 (read_enumeration, new_symbol): Don't use obsavestring.
8227
cbeae229
MK
82282004-03-04 Mark Kettenis <kettenis@gnu.org>
8229
722d18c2
MK
8230 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8231 instead of amd64_fill_fxsave.
8232 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8233 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8234
cbeae229
MK
8235 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8236 Reorganize code a bit.
8237
b4206d25
OF
82382004-03-04 Orjan Friberg <orjanf@axis.com>
8239
8240 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8241 when the frame pointer is pushed. Don't set the frame pointer's
8242 address on the stack unless it's actually located there.
b4206d25
OF
8243 Set the SRP's address on the stack correctly when the PC is still in
8244 the prologue.
8245 (cris_return_value): New function.
8246 (cris_gdbarch_init): Clear deprecated store_return_value,
8247 extract_return_value.
8248
49b0b195
JB
82492004-03-02 Jim Blandy <jimb@redhat.com>
8250
8251 * stabsread.c (reg_value_complaint): The maximum register number
8252 is one less than the number of registers.
8253
e9ff708b
AC
82542004-03-02 Andrew Cagney <cagney@redhat.com>
8255
8256 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8257 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8258 trailing comma and redundant assignment of I386_ST0_REGNUM.
8259 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8260 32-bit segment registers.
8261
d4715e41
AC
82622004-03-01 Andrew Cagney <cagney@redhat.com>
8263
8264 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8265 use frame_relative_level and get_next_frame.
8266
3ce2bf18
AC
82672004-02-29 Andrew Cagney <cagney@redhat.com>
8268
8269 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8270 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8271 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8272 Delete macro.
8273
2da6aac3
DJ
82742004-02-29 Daniel Jacobowitz <drow@mvista.com>
8275
8276 * inflow.c (terminal_inferior): Don't give up the terminal if we
8277 previously couldn't get the inferior's terminal state.
8278
6ba34a8d
DJ
82792004-02-29 Daniel Jacobowitz <drow@mvista.com>
8280
8281 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8282 PC_REGNUM.
8283
faae5abe
AC
82842004-02-28 Andrew Cagney <cagney@redhat.com>
8285
8286 * NEWS: Refer to GDB 6.1.
8287 * README: Refer to GDB 6.1.
8288 * PROBLEMS: Refer to GDB 6.1.
8289
2227a3c5
DJ
82902004-02-28 Daniel Jacobowitz <drow@mvista.com>
8291
8292 * thread-db.c (disable_thread_signals): Remove unused function.
8293
80571bff
MK
82942004-02-28 Mark Kettenis <kettenis@gnu.org>
8295
041bd74b
MK
8296 * amd64-nat.c: Include "gdb_string.h".
8297 (amd64_collect_native_gregset): Zero-extend the 32-bit
8298 general-purpose registers and %eip.
8299
3c017e40
MK
8300 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8301 * amd64-tdep.c (amd64_collect_fxsave): New function.
8302 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8303
80571bff
MK
8304 * i387-tdep.h: Update copyright year.
8305 (i387_collect_fxsave): New prototype.
8306 * i387-tdep.c: Update copyright year.
8307 (i387_collect_fxsave): New function containing most of the code
8308 from i387_fill_fxsave.
8309 (i387_fill_fxsave): Call i387_collect_fxsave.
8310
50d71875
AC
83112004-02-28 Andrew Cagney <cagney@redhat.com>
8312
8313 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8314 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8315
4a28816e
MK
83162004-02-28 Mark Kettenis <kettenis@gnu.org>
8317
8318 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8319
dbda9972
AC
83202004-02-28 Andrew Cagney <cagney@redhat.com>
8321
8322 * utils.c: Use "", instead of <>, to include readline.
8323 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8324 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8325 * source.c, solib.c, exec.c, event-top.c: Ditto.
8326 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8327 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8328 * Makefile.in: Update all dependencies.
8329 (readline_tilde_h, readline_history_h): Define.
8330 (readline_headers): Delete.
8331
83277a99
MK
83322004-02-28 Mark Kettenis <kettenis@gnu.org>
8333
91ae4303
MK
8334 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8335 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8336 "config/i386/tm-lx64.h".
8337
83277a99
MK
8338 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8339 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8340 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8341
6e1d7d6c
AC
83422004-02-28 Andrew Cagney <cagney@redhat.com>
8343
ecc9ac84
AC
8344 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8345
6e1d7d6c
AC
8346 * breakpoint.c (_initialize_breakpoint): Use
8347 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8348 Add help to show command.
8349
9671aeef
MK
83502004-02-28 Mark Kettenis <kettenis@gnu.org>
8351
7fa2737c
MK
8352 * i386-nat.c: Reformat to be closer to coding standards.
8353 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8354 `retval'. Make variables `align' and `size' local to while-loop.
8355 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8356 (_initialize_i386_nat): New prototype.
8357
9671aeef
MK
8358 * tui/tui.c: Include <readline/readline.h> instead of
8359 "readline/readline.h". Include it after <term.h> and
8360 "gdb_curses.h".
8361
fca7aa43
AC
83622004-02-27 Andrew Cagney <cagney@redhat.com>
8363
412275d5
AC
8364 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8365 the new frame unwind code.
8366 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8367 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8368 PCOQ_HEAD_REGNUM.
8369
fca7aa43
AC
8370 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8371 "return_value" and "push_dummy_call".
8372 (hppa32_use_struct_convention): Delete unused function.
8373 (hppa32_store_return_value): Delete unused function.
8374 (hppa32_extract_return_value): Delete unused function.
8375 (hppa32_stack_align): Delete function.
8376
e6a8a7d2
EZ
83772004-02-27 Eli Zaretskii <eliz@elta.co.il>
8378
8379 * coffread.c (enter_linenos): Don't let rawptr reference memory
8380 outside linetab[]'s limits.
8381
1797a8f6
AC
83822004-02-27 Andrew Cagney <cagney@redhat.com>
8383
8384 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8385 inferior stack space - the stack needs to grow upwards.
8386 (hppa32_frame_align): New function.
8387 (hppa64_frame_align): Replace hppa_frame_align.
8388 (hppa_gdbarch_init): Update.
8389
2e4b5889
OF
83902004-02-26 Orjan Friberg <orjanf@axis.com>
8391
8392 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8393 (dwarf2-frame.h): Include.
8394 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8395 Remove static variables related to ABI setting.
8396 (struct gdbarch_tdep): Remove cris_abi member.
8397 (struct frame_extra_info): Remove.
8398 (cris_unwind_cache, stack_item): New structs.
8399 (cris_frame_unwind, cris_frame_base): New variables.
8400 (push_stack_item, pop_stack_item)
8401 (cris_frame_unwind_cache, cris_frame_this_id)
8402 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8403 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8404 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8405 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8406 (cris_reg_struct_has_addr): New functions.
8407 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8408 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8409 (cris_store_struct_return, cris_frameless_function_invocation)
8410 (cris_pop_frame, cris_skip_prologue_main)
8411 (cris_abi_original_store_return_value)
8412 (cris_abi_v2_store_return_value)
8413 (cris_abi_original_extract_return_value)
8414 (cris_abi_v2_extract_return_value)
8415 (cris_abi_original_reg_struct_has_addr)
8416 (cris_abi_v2_reg_struct_has_addr)
8417 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8418 (cris_push_return_address, cris_abi_update): Remove.
8419 (_initialize_cris_tdep): Remove ABI command.
8420 (cris_dump_tdep): Ditto.
8718a420 8421 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8422 Set store_return_value, extract_return_value, push_dummy_code,
8423 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8424 frame_unwind_append_sniffer, frame_base_set_default.
8425 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8426 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8427 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8428 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8429 init_extra_frame_info, frameless_function_invocation, frame_chain,
8430 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8431 dummy_write_sp.
8718a420 8432
6b9acc27
JJ
84332004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8434
8435 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8436 * valprint.c (print_hex_chars): Change from static to external.
8437 (print_char_chars): New function.
8438 * printcmd.c (print_scalar_formatted): For integer and enum types
8439 that are longer than LONGEST, perform processing via appropriate
8440 print_*_chars routines.
8441
a431654a
AC
84422004-02-26 Andrew Cagney <cagney@redhat.com>
8443
8444 * Makefile.in: Update dependencies.
8445 Changes from Ulrich Weigand,
8446 * s390-tdep.c: Include "dwarf2-frame.h".
8447 (s390_dwarf2_frame_init_reg): New function.
8448 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8449 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8450
fa8d40ab
JJ
84512004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8452
8453 * breakpoint.c (pending_break_support): New setting variable.
8454 (break_command_1): Account for pending_break_support setting
8455 when creating pending breakpoints.
8456 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8457 (_initialize_breakpoint): Add "set breakpoint pending" and
8458 "show breakpoint pending" commands.
8459
0dcd613f
AC
84602004-02-26 Andrew Cagney <cagney@redhat.com>
8461
8462 Fix PR i18n/1570.
8463 * charset.c (backslashable, backslashed, represented): Remove 'e'
8464 from list of escaped characters, not part of ISO-C.
8465
479272a3
JB
84662004-02-25 J. Brobecker <brobecker@gnat.com>
8467
8468 From Peter Schauer <schauer@pdf.de>:
8469 * tui/tui.c: Move system header includes after local includes.
8470 Fixes a build failure on solaris systems.
8471
7613d933
JB
84722004-02-25 J. Brobecker <brobecker@gnat.com>
8473
8474 * configure.in: Refine the previous change.
8475 * configure: Regenerate.
8476
9c1488cb
MK
84772004-02-25 Mark Kettenis <kettenis@gnu.org>
8478
8479 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8480 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8481 "amd64-tdep.h" instead of "x86-64-tdep.h".
8482 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8483 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8484 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8485 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8486 and "x86-64-tdep.c".
8487 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8488 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8489 and "x86-64-tdep.c".
8490 * amd64bsd-nat.c: Update copyright year.
8491 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8492 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8493 "x86-64-tdep.h".
8494 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8495 "x86-64-tdep.h".
8496 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8497 "x86-64-tdep.h".
8498 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8499 "x86-64-tdep.h".
8500 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8501 "x86-64-tdep.h".
8502 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8503 "x86-64-tdep.h".
8718a420 8504 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8505 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8506 * Makefile.in (amd64_linux_tdep_h): Renamed from
8507 x86_64_linux_tdep_h.
8508 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8509 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8510 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8511 (amd64obsd-tdep.o): Update dependencies.
8512 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8513 dependencies.
8514 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8515 dependencies.
8516 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8517 amd64-linux-nat.c amd64-linux-tdep.c.
8518 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8519 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8520 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8521 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8522 amd64-tdep.o and amd64-linux-tdep.o.
8523 (TM_FILE): Set to tm-linux64.h.
8524 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8525 (NAT_FILE): Set to nm-linux64.h.
8526 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8527 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8528 amd64-tdep.o.
8529 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8530 amd64-tdep.o.
8531 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8532 amd64-tdep.o.
8533
4b8dad4a
RM
85342004-02-25 Roland McGrath <roland@redhat.com>
8535
8536 * remote.c (remote_protocol_qPart_auxv): New variable.
8537 (init_all_packet_configs): Initialize it.
8538 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8539 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8540 (show_remote_cmd): Call it.
8541 (_initialize_remote): Initialize commands.
8542 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8543 service TARGET_OBJECT_AUXV requests.
8544
66745969
JB
85452004-02-25 J. Brobecker <brobecker@gnat.com>
8546
8547 * configure.in: Make sure that the wborder function is available.
8548 Otherwise, search for it in the cur_colr library.
8549 * configure: Regenerate.
8550
79508e1e
AC
85512004-02-25 Andrew Cagney <cagney@redhat.com>
8552
8553 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8554
571ee600
MK
85552004-02-25 Mark Kettenis <kettenis@gnu.org>
8556
8557 * config/i386/tm-x86-64linux.h: Tweak comments.
8558
2b1b322f 85592004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8560
8561 * MAINTAINERS: Add self to write-after-approval list.
8562
4d2acc65
AC
85632004-02-25 Andrew Cagney <cagney@redhat.com>
8564
4b8dad4a 8565 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8566 * cli/cli-script.c (execute_control_command): Unconditionally
8567 install a cleanup. Default "ret" to "invalid_control". Use
8568 "break" instead of "return" to escape from the switch.
8569
4cfcaf21
JB
85702004-02-24 J. Brobecker <brobecker@gnat.com>
8571
8572 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8573 with the lines macro defined in term.h on AiX.
8574 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8575 a collision with the label_width macro defined in term.h on AiX.
8576
54a5c8d8
KB
85772004-02-23 David Mosberger <davidm@hpl.hp.com>
8578
8579 Committed by Kevin Buettner <kevinb@redhat.com>.
8580
8581 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8582 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8583 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8584 instead of ia64_write_pc().
8585 * ia64-linux-tdep.c (regcache.h): Include.
8586 (ia64_linux_write_pc): New function.
4b8dad4a 8587
8a1dac83
RM
85882004-02-23 Roland McGrath <roland@redhat.com>
8589
8590 * auxv.c (info_auxv_command): Fix typos in error messages.
8591
90f90721
MK
85922004-02-23 Mark Kettenis <kettenis@gnu.org>
8593
8a1dac83 8594 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8595 (enum amd64_regnum): New.
8596 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8597 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8598 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8599 (X86_64_XMM1_REGNUM): Removed.
8600 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8601 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8602 prototypes for renamed functions.
8603 * x86-64-tdep.c: Fix typo.
8604 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8605 register numbers.
8606 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8607 Use constants from `enum amd64_regnum' for register numbers.
8608 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8609 (amd64_analyze_prologue, amd64_frame_cache,
8610 amd64_sigtramp_frame_cache): Use constants from `enum
8611 amd64_regnum' for register numbers.
8612 (amd64_supply_fpregset): Adjust for renamed functions.
8613 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8614 `enum amd64_regnum' for register numbers.
8615 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8616 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8617 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8618 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8619 (amd64_linux_fill_gregset): Adjust for renamed macros.
8620 (fetch_core_registers): Adjust for renamed functions.
8621 (amd64_linux_init_abi): Adjust for renamed functions.
8622 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8623 renamed functions.
8624 * amd64-nat.c: Adjust for renamed macros.
8625 * amd64bsd-nat.c (fetch_inferior_registers)
8626 (store_inferior_registers): Use constants from `enum amd64_regnum'
8627 for register numbers. Adjust for renamed variables.
8628 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8629 renamed variables.
8630 (_initialize_amd64fbsd_nat): Use constants from `enum
8631 amd64_regnum' for register numbers.
8632 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8633 `enum amd64_regnum' for register numbers.
8634 (amd64fbsd_init_abi): Adjust for renamed functions.
8635 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8636 `enum amd64_regnum' for register numbers.
8637 (amd64nbsd_init_abi): Adjust for renamed functions.
8638 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8639 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8640 `enum amd64_regnum' for register numbers.
8641 (amd64obsd_init_abi): Adjust for renamed functions.
8642 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8643
d5479188
JJ
86442004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8645
8646 * breakpoint.c (print_one_breakpoint): Do not output spaces
8647 after printing <PENDING> for a pending breakpoint.
8648
81cb7cc9
JJ
86492004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8650
8651 * printcmd.c (print_scalar_formatted): Initialize val_long
8652 to remove compiler warning message.
8653
cbdeadca
JJ
86542004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8655
8656 * defs.h (nquery, yquery): New prototypes.
8657 * breakpoint.c (break_command_1): Use new nquery interface.
8658 * utils.c (defaulted_query, nquery, yquery): New functions.
8659
da6bab63
AC
86602004-02-23 Andrew Cagney <cagney@redhat.com>
8661
2f690297
AC
8662 * hppa-tdep.c (hppa_frame_align): New function.
8663 (hppa32_push_dummy_call): New function.
8664 (hppa64_push_dummy_call): New function.
8665 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8666 disabled.
8a1dac83 8667
da6bab63
AC
8668 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8669 FIX_CALL_DUMMY when push_dummy_call is available.
8670 (call_function_by_hand, push_dummy_code): Ditto.
8671
abf9b42d
AC
86722004-02-22 Andrew Cagney <cagney@redhat.com>
8673
8674 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8675 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8676 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8677 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8678 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8679 call_dummy_location to ON_STACK.
8680
10fc94a4
MK
86812004-02-22 Mark Kettenis <kettenis@gnu.org>
8682
51433e4b
MK
8683 * x86-64-linux-tdep.c: Tweak comment.
8684 (amd64_linux_supply_gregset): Renamed from
8685 x86_64_linux_supply_gresget.
8686 (amd64_linux_fill_gregset): Renamed from
8687 x86_64_linux_fill_gregset.
8688 (fetch_core_registers): Adjust for renamed functions.
8689 (amd64_core_fns): Renamed from x86_64_core_fns.
8690 (amd64_linux_sigtramp_start): Renamed from
8691 x86_64_linux_sigtramp_start.
8692 (amd64_linux_pc_in_sigtramp): Renamed from
8693 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8694 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8695 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8696 (amd64_linux_sigcontext_addr): Renamed from
8697 x86_64_linux_sigcontext_addr.
8698 (amd64_linux_sc_reg_offset): Renamed from
8699 x86_64_linux_sc_reg_offset.
8700 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8701 Adjust for renamed functions and variables.
8702 (_initialize_amd64_linux_tdep): Renamed from
8703 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8704 variables.
8705 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8706 Adjust for renamed functions.
8707
430eaf2e
MK
8708 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8709 from x86_64_linux_gregset64_reg_offset.
8710 (amd64_linux_gregset32_reg_offset): Rename from
8711 x86_64_linux_gregset64_reg_offset.
8712 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8713 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8714 (amd64_linux_dr_set_control): Renamed from
8715 x86_64_linux_dr_set_control. Adjust for renamed functions.
8716 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8717 Adjust for renamed functions.
8718 (amd64_linux_dr_reset_addr): Renamed from
8719 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8720 (amd64_linux_dr_get_status): Renamed from
8721 x86_64_linux_dr_get_status. Adjust for renamed functions.
8722 (_initialize_amd64_linux_nat): Renamed from
8723 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8724 functions.
8725 * config/i386/nm-x86-64linux.h: Update copyright year.
8726 Adjust for renamed functions.
8727
10fc94a4
MK
8728 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8729 amd64fbsd_sigtramp_start.
8730 (amd64fbsd_sigtramp_end_addr): Renamed from
8731 amd64fbsd_sigtramp_end.
8732 (amd64fbsd_init_abi): Adjust for renamed variables.
8733 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8734 variables.
8735 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8736 amd64fbsd_sigtramp_start.
8737 (amd64fbsd_sigtramp_end_addr): Renamed from
8738 amd64fbsd_sigtramp_end.
8739
343af405
AC
87402004-02-22 Andrew Cagney <cagney@redhat.com>
8741
537987fc
AC
8742 * hppa-tdep.c (hppa32_return_value): New function.
8743 (hppa64_return_value): New function.
8744 (hppa_gdbarch_init): Set return_value; keep disabled.
8745
fad850b2
AC
8746 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8747 struct-return and inferior function call methods.
8748
26d08f08
AC
8749 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8750 "frame-base.h".
8751 (struct hppa_frame_cache): Define.
8752 (hppa_frame_cache, hppa_frame_this_id): New functions.
8753 (hppa_frame_prev_register): New function.
8754 (hppa_frame_unwind, hppa_frame_base): New variables.
8755 (hppa_frame_unwind_sniffer): New function.
8756 (hppa_frame_base_address, hppa_unwind_pc): New function.
8757 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8758 sniffer, and frame base sniffer; keep disabled.
8759 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8760 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8761
e7d7bd65
AC
8762 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8763 to predicates for "seriously old code".
8764
e963316f
AC
8765 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8766 runtime if(0).
8767
56132691
AC
8768 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8769 unsigned.
8770 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8771
343af405
AC
8772 * config/pa/tm-hppa.h: Update copyright.
8773 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8774 (deprecated_init_frame_pc_default): Delete declaration.
8775 (hppa_frame_init_saved_regs): Delete declaration.
8776 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8777 * hppa-tdep.c: Include "arch-utils.h".
8778 (hppa_gdbarch_init): Set deprecated init_frame_pc
8779 and deprecated frame_init_saved_regs.
8780 (hppa_frame_init_saved_regs): Make static.
8781
f5859b4d
MK
87822004-02-22 Mark Kettenis <kettenis@gnu.org>
8783
86f6f8e7 8784 Remove old 386BSD support.
cf7c5c23 8785 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8786 * configure.host: Remove i[34567]86-*-bsd*.
8787 * configure.tgt: Remove i[34567]86-*-bsd*.
8788 * i386b-nat.c: Removed.
8789 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8790 (i386b-nat.o): Remove dependencies.
8791
86f6f8e7
MK
8792 * config/i386/i386bsd.mh: Removed.
8793 * config/i386/i386bsd.mt: Removed.
8794 * config/i386/nm-i386bsd.h: Removed.
8795 * config/i386/tm-i386bsd.h: Removed.
8796 * config/i386/xm-i386bsd.h: Removed.
8797
971218cd
MK
8798 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8799
7e654c37
MK
8800 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8801 (amd64fbsd_init_abi): Set link map offsets.
8802 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8803 (amd64nbsd_init_abi): Set link map offsets.
8804 * amd64obsd-tdep.c: Include "solib-svr4.h".
8805 (amd64obsd_init_abi): Set link map offsets.
8806 * i386fbsd-tdep.c: Include "solib-svr4.h".
8807 (i386fbsd_init_abi): Set link map offsets.
8808 * i386nbsd-tdep.c: Include "solib-svr4.h".
8809 (i386nbsdelf_init_abi): Set link map offsets.
8810 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8811 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8812 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8813 solib-legacy.o and core-aout.o. Reformat.
8814 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8815 solib-svr4.o, solib-legacy.o. Reformat.
8816 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8817 * config/i386/nbsdelf.mh: Reformat.
8818 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8819 solib-svr4.o, solib-legacy.o and corelow.o.
8820 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8821 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8822 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8823 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8824 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8825 (TM_FILE): Set to tm-fbsd.h.
8826 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8827 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8828 solib-svr4.o.
8829 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8830 solib-svr4.o.
8831 (TM_FILE): Set to nm-nbsd.h.
8832 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8833 Simplify shared library support. Don't include "elf/common.h".
8834 (SVR4_SHARED_LIBS): Don't define.
8835 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8836 "solib.h".
8837 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8838 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8839 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8840 Don't include "i386/tm-i386.h". Include "solib.h".
8841 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8842 Don't include "i386/tm-i386.h".
8843 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8844 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8845 Include "i386/xm-i386.h".
8846 (HOST_LONG_DOUBLE_FORMAT): Remove.
8847
5d93ae8c
MK
8848 Fix OpenBSD/i386 sigtramp recognition.
8849 * i386-tdep.h: Update copyright year.
8850 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8851 (i386bsd_sigtramp_end): New prototypes.
8852 (i386fbsd_sigtramp_start_addr): Renamed from
8853 i386fbsd_sigtramp_start.
8854 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8855 (i386obsd_sigtramp_start_addr): Renamed from
8856 i386obsd_sigtramp_start.
8857 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8858 * i386bsd-tdep.c: Update copyright year.
8859 (i386bsd_pc_in_sigtramp): Make public.
8860 * i386fbsd-nat.c: Update copyright year.
8861 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8862 * i386fbsd-tdep.c: Update copyright year.
8863 (i386fbsd_sigtramp_start_addr): Renamed from
8864 i386fbsd_sigtramp_start.
8865 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8866 (i386fbsdaout_init_abi): Adjust for renamed variables.
8867 * i386obsd-nat.c: Update copyright year.
8868 (_initialize_i386obsd_nat): Adjust for renamed variables.
8869 * i386obsd-tdep.c: Include "target.h".
8870 (i386obsd_page_size): New variable.
8871 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8872 (i386obsd_sigtramp_end): New functions.
8873 (i386obsd_sigtramp_start_addr): Renamed from
8874 i386obsd_sigtramp_start.
8875 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8876 (i386obsd_init_abi): Adjust for renamed variables. Set
8877 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8878 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8879
84d04465
MK
8880 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8881 trampoline change in OpenBSD kernel.
8882
b053aceb
MK
8883 * amd64-nat.c: Update copyright year.
8884 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8885 architecture from REGCACHE.
8886
f5859b4d
MK
8887 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8888 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8889
e4bbbda8
MK
88902004-02-21 Mark Kettenis <kettenis@gnu.org>
8891
ba361932
MK
8892 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8893 i[34567]86-*-openbsd3.[0-3].
8894 * config/i386/obsdaout.mh: New file.
8895
d3e48264
MK
8896 * config/i386/obsd.mh (MH_FLAGS): Remove.
8897
60a6eeb6
MK
8898 Fix PR build/1549.
8899 * i386obsd-tdep.c: Update copyright years. Include
8900 "solib-svr4.h".
8901 (i386obsd_init_abi): Don't set regset_from_core_section here.
8902 (i386obsd_aout_init_abi): New function. Set
8903 regset_from_core_section here.
8904 (i386obsd_elf_init_abi): New function.
8905 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8906 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8907 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8908 (TM_FILE): Set to tm-nbsd.h.
8909
8910 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8911 solib-sunos.o.
8912
e4bbbda8
MK
8913 * solib-svr4.h: Update copyright year.
8914 (svr4_ilp32_fetch_link_map_offsets)
8915 (svr4_lp64_fetch_link_map_offsets): New prototype.
8916 * solib-svr4.c: Update copyright year.
8917 (svr4_ilp32_fetch_link_map_offsets)
8918 (svr4_lp64_fetch_link_map_offsets): New function.
8919
f6fe98ef
DJ
89202004-02-20 Daniel Jacobowitz <drow@mvista.com>
8921
8922 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8923 to the partial symbol table.
8924
589ca796
JB
89252004-02-20 J. brobecker <brobecker@gnat.com>
8926
8927 * PROBLEMS: Add description of problem documented under gdb/1560.
8928
2031c21a
MK
89292004-02-20 Mark Kettenis <kettenis@gnu.org>
8930
30b344b1
MK
8931 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8932 comments.
8933 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8934 functions.
8935 (amd64obsd_init_abi): Reorder initializations. Use
8936 amd64obsd_r_reg_offset to initialize the general-purpose register
8937 set details. Set regset_from_core_section.
8938 (_initialize_amd64obsd_tdep): Rename from
8939 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8940 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8941 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8942
2031c21a
MK
8943 * NEWS (New native configurations): Mention OpenBSD/alpha.
8944 * configure.tgt: Add alpha*-*-openbsd*.
8945 * configure.host: Add alpha*-*-openbsd*.
8946 * alphanbsd-tdep.c: Update copyright year.
8947 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8948
42471775
AC
89492004-02-20 Andrew Cagney <cagney@redhat.com>
8950
8951 Fix PR tdep/1372.
8952 * configure.tgt: Delete target "none-*-*".
8953 * configure.host: Delete host "none-*-*".
8954 * config/none/none.mh: Delete file.
8955 * config/none/none.mt: Delete file.
8956 * config/none/xm-none.h: Delete file.
8957 * config/none/tm-none.h: Delete file.
8958 * config/none/nm-none.h: Delete file.
8959
960ccd7d
FF
89602004-02-19 Fred Fish <fnf@redhat.com>
8961
8962 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8963 cache->uses_fp prior to setting it.
8964
5f883edd
FF
89652004-02-19 Fred Fish <fnf@redhat.com>
8966
8967 Fix for PR breakpoint/1558.
8968 * sh-tdep.c (IS_JSR): New macro.
8969 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8970
f98c22d5
JB
89712004-02-19 Jim Blandy <jimb@redhat.com>
8972
8973 * findvar.c (value_from_register): Doc fix.
8974
95051d27
JJ
89752004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8976
8977 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8978 type being greater than sizeof of host's LONGEST. Always use
8979 unpack_long() unless format 'f' chosen.
8980
ccefbec3
EZ
89812004-02-19 Joel Brobecker <brobecker@gnat.com>
8982
8983 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8984
ccefbec3
EZ
8985 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8986 contains a symbol wich is the best, non-exact match for the given
8987 pc. Update comments.
8988
89892004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8990
2ede629f
EZ
8991 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8992 macro, which was part of the now removed Mach 3 port.
8993 * utils.c (request_quit): Ditto.
8994
567ee972
MK
89952004-02-18 Mark Kettenis <kettenis@gnu.org>
8996
8997 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8998 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8999
50cca7bb
MK
90002004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9001
9002 Committed by Mark Kettenis <kettenis@gnu.org>.
9003
9004 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9005 Define.
9006
226361c4
AC
90072004-02-18 Andrew Cagney <cagney@redhat.com>
9008
9009 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9010 CONFIG_INSTALL and CONFIG_UNINSTALL.
9011 * configure: Re-generate.
9012 * interps.h (INTERP_TUI): Define.
9013 * Makefile.in: Update dependencies.
9014 (TUI): New macro.
9015 (tui-main.o): Specify dependencies.
9016 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9017 * tui/tui-main.c: New file.
9018
49cfa46f
MK
90192004-02-18 Mark Kettenis <kettenis@gnu.org>
9020
e2879ccb
MK
9021 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9022 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9023 dependencies.
9024 * configure.host: Add x86_64-*-openbsd*.
9025 * configure.tgt: Add x86_64-*-openbsd*.
9026 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9027
c43f4bec
MK
9028 * tui/tui.c: Don't include <malloc.h>.
9029
09ae75b6
MK
9030 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9031 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9032 amd64nbsd-tdep.c.
9033
49cfa46f 9034 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9035 static. Remove extraneous whitespace.
49cfa46f
MK
9036 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9037 static.
9038
05957fdb
JB
90392004-02-17 Jim Blandy <jimb@redhat.com>
9040
9041 * findvar.c (value_from_register): Doc fix.
9042
d0f54f9d
JB
90432004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9044
9045 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9046
8a1dac83 9047 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9048 CORE_ADDR as type for selectors. Correct types for GNU run time
9049 message lookup function to use double indirection.
9050 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9051 * objc-lang.h (lookup_child_selector): Adapt prototype.
9052
9cbd5950
JB
9053 * s390-nat.c (SUBOFF): New macro.
9054 (supply_gregset, fill_gregset): Use it to handle debugging
9055 of 32-bit exectuables running under a 64-bit kernel.
9056 * s390-tdep.c: Include "solib-svr4.h".
9057 (s390_svr4_fetch_link_map_offset): New function.
9058 (s390x_svr_fetch_link_map_offset): Likewise.
9059 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9060 * Makefile.in (s390-tdep.o): Update dependencies.
9061
a8c99f38
JB
9062 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9063 "frame-unwind.h".
9064 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9065 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9066 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9067 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9068 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9069 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9070 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9071 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9072 (struct frame_extra_info): Remove.
9073 (s390_memset_extra_info): Remove.
f73b1eff
JB
9074 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9075 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9076 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9077 (is_rse): Renamed to ...
9078 (is_rsy): ... this. Support long displacements.
9079 (is_rxe): Renamed to ...
9080 (is_rxy): ... this. Support long displacements.
9081 (compute_x_addr): Support long displacements.
9082 (struct s390_prologue_data): New data type.
9083 (s390_on_stack): Change API to use struct s390_prologue_data.
9084 (s390_store): Reimplement.
9085 (s390_load): New function.
9086 (s390_get_signal_frame_info): Remove.
9087 (s390_get_frame_info): Remove, replace by ...
9088 (s390_analyze_prolog): ... this new function.
9089 (s390_check_function_end): Remove.
9090 (s390_function_start): Remove.
9091 (s390_frameless_function_invokation): Remove.
9092 (s390_is_sigreturn): Remove.
9093 (s390_init_frame_pc_first): Remove.
9094 (s390_init_frame_extra_info): Remove.
9095 (s390_frame_init_saved_regs): Remove.
9096 (s390_frame_saved_pc_nofix): Remove.
9097 (s390_frame_saved_pc): Remove.
9098 (s390_frame_chain): Remove.
9099 (s390_fp_regnum, s390_read_fp): Remove.
9100 (s390_pop_frame_regular, s390_pop_frame): Remove.
9101 (s390_saved_pc_after_call): Remove.
9102 (s390_skip_prologue): Reimplement.
9103 (s390_in_function_epilogue_p): Support long displacements.
9104 (struct s390_unwind_cache): New data structure.
9105 (s390_frame_unwind_cache): New function.
9106 (s390_prologue_frame_unwind_cache): Likewise.
9107 (s390_backchain_frame_unwind_cache): Likewise.
9108 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9109 (s390_frame_unwind): Define.
9110 (s390_frame_sniffer): New function.
9111 (struct s390_pltstub_unwind_cache): New data structure.
9112 (s390_pltstub_frame_unwind_cache): New function.
9113 (s390_pltstub_frame_this_id): Likewise.
9114 (s390_pltstub_frame_prev_register): Likewise.
9115 (s390_pltstub_frame_unwind): Define.
9116 (s390_pltstub_frame_sniffer): New function.
9117 (struct s390_sigtramp_unwind_cache): New data structure.
9118 (s390_sigtramp_frame_unwind_cache): New function.
9119 (s390_sigtramp_frame_this_id): Likewise.
9120 (s390_sigtramp_frame_prev_register): Likewise.
9121 (s390_sigtramp_frame_unwind): Define.
9122 (s390_sigtramp_frame_sniffer): New function.
9123 (s390_frame_base_address, s390_local_base_address): New functions.
9124 (s390_frame_base): Define.
9125 (s390_unwind_pc, s390_unwind_sp): New function.
9126 (s390_push_dummy_call): Use new frame base location.
9127 (s390_unwind_dummy_id): Likewise.
9128 (s390_gdbarch_init): Remove calls to:
9129 set_gdbarch_frameless_function_invocation,
9130 set_gdbarch_deprecated_init_frame_pc,
9131 set_gdbarch_deprecated_frame_chain,
9132 set_gdbarch_deprecated_frame_init_saved_regs,
9133 set_gdbarch_deprecated_pop_frame,
9134 set_gdbarch_deprecated_init_extra_frame_info,
9135 set_gdbarch_deprecated_init_frame_pc_first,
9136 set_gdbarch_deprecated_target_read_fp,
9137 set_gdbarch_deprecated_frame_saved_pc,
9138 set_gdbarch_deprecated_saved_pc_after_call,
9139 set_gdbarch_deprecated_fp_regnum.
9140 Add calls to:
9141 set_gdbarch_in_solib_call_trampoline,
9142 frame_unwind_append_sniffer,
9143 frame_base_set_default,
9144 set_gdbarch_unwind_pc,
9145 set_gdbarch_unwind_sp.
9146 * Makefile.in (s390-tdep.o): Update dependencies.
9147
b0cf273e
JB
9148 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9149 (S390_STACK_FRAME_OVERHEAD): Remove.
9150 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9151 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9152 (s390_promote_integer_argument): Remove.
9153 (s390_cannot_extract_struct_value_address): Remove.
9154 (s390_use_struct_convention, s390_store_struct_return): Remove.
9155 (s390_extract_return_value, s390_store_return_value): Remove.
9156 (s390_return_value_convention, s390_return_value): New functions.
9157 (is_float_singleton): Handle typedefs.
8a1dac83 9158 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9159 Remove, replace by ...
9160 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9161 s390_function_arg_integer): ... these new functions.
9162 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9163 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9164 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9165 Fill in tdep->abi.
9166 Remove calls to:
9167 set_gdbarch_deprecated_store_struct_return,
9168 set_gdbarch_deprecated_extract_return_value,
9169 set_gdbarch_deprecated_store_return_value,
9170 set_gdbarch_use_struct_convention,
9171 set_gdbarch_extract_struct_value_address,
9172 set_gdbarch_deprecated_pc_in_call_dummy,
9173 set_gdbarch_deprecated_push_arguments,
9174 set_gdbarch_deprecated_save_dummy_frame_tos,
9175 set_gdbarch_deprecated_push_return_address,
9176 set_gdbarch_deprecated_sizeof_call_dummy_words,
9177 set_gdbarch_deprecated_call_dummy_words,
9178 set_gdbarch_deprecated_dummy_write_sp.
9179 Add calls to:
9180 set_gdbarch_push_dummy_call,
9181 set_gdbarch_unwind_dummy_id,
9182 set_gdbarch_return_value.
8a1dac83 9183
e1457d83
JB
9184 * config/s390/nm-linux.h: Update comments.
9185 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9186 (STOPPED_BY_WATCHPOINT): Redefine.
9187 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9188 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9189 (s390_stopped_by_watchpoint): Likewise.
9190 (watch_area_cnt): Remove.
9191 * s390-nat.c: Update comments.
9192 (watch_area): Remove typedef.
9193 Global replace watch_area by struct watch_area.
9194 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9195 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9196 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9197 (s390_fix_watch_points): Remove pid argument,
9198 use s390_inferior_tid. Recompute area spanned by watchpoints.
9199 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9200 argument. Reimplement.
9201
d0f54f9d
JB
9202 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9203 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9204 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9205 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9206 core-regset.o.
9207 * config/s390/s390x.mt: Remove.
9208 * config/s390/tm-s390.h: Remove.
9209 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9210 (TARGET_ELF64): Remove.
9211 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9212 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9213 s390*-*-* case; always set gdb_target to s390.
9214 * regformats/reg-s390.dat: Remove control registers.
9215 * regformats/reg-s390x.dat: Likewise.
9216 * s390-tdep.h: New file.
8a1dac83 9217 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9218 Include "inferior.h" and "s390-tdep.h".
9219 Remove private definition of offsetof.
9220 (s390_register_u_addr): Remove.
9221 (regmap_gregset, regmap_fpregset): Define.
9222 (supply_gregset, fill_gregset): Reimplement.
9223 (supply_fpregset, fill_fpregset): Likewise.
9224 (s390_inferior_tid): New function.
9225 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9226 (fetch_inferior_registers, store_inferior_registers): Likewise.
9227 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9228 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9229 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9230 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9231 (struct gdbarch_tdep): Define.
9232 (struct s390_register_info): Define.
9233 (s390_register_info): New variable.
9234 (s390_register_name): Reimplement.
9235 (s390_register_type): New function.
9236 (s390_register_raw_size, s390x_register_raw_size): Remove.
9237 (s390_cannot_fetch_register): Remove.
9238 (s390_register_byte): Remove.
9239 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9240 (s390_dwarf_regmap): New variable.
9241 (s390_dwarf_reg_to_regnum): New function.
9242 (s390_stab_reg_to_regnum): Remove.
9243 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9244 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9245 (s390_convert_register_p): Likewise.
9246 (s390_register_to_value, s390_value_to_register): Likewise.
9247 (s390_register_reggroup_p): Likewise.
9248 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9249 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9250 (s390_supply_regset, s390_regset_from_core_section): New functions.
9251 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9252 (S390_FPR_SIZE): Likewise.
9253 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9254 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9255 (S390_NUM_GPRS): Move here from tm-s390.h.
9256 (S390_NUM_FPRS): Likewise.
9257 (s390_in_function_epilogue_p): New function.
9258 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9259 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9260 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9261 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9262 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9263 Remove calls to:
9264 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9265 set_gdbarch_deprecated_max_register_virtual_size,
9266 set_gdbarch_deprecated_register_byte,
d0f54f9d 9267 set_gdbarch_cannot_fetch_register,
8a1dac83 9268 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9269 set_gdbarch_deprecated_register_size,
9270 set_gdbarch_deprecated_register_raw_size,
9271 set_gdbarch_deprecated_register_virtual_size,
9272 set_gdbarch_deprecated_register_virtual_type,
9273 set_gdbarch_deprecated_register_bytes.
9274 Add calls to:
9275 set_gdbarch_num_pseudo_regs,
9276 set_gdbarch_register_type,
9277 set_gdbarch_convert_register_p,
9278 set_gdbarch_register_to_value,
9279 set_gdbarch_value_to_register,
9280 set_gdbarch_register_reggroup_p,
9281 set_gdbarch_regset_from_core_section,
9282 set_gdbarch_pseudo_register_read,
9283 set_gdbarch_pseudo_register_write,
9284 set_gdbarch_in_function_epilogue_p.
9285 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9286 (s390_tdep_h): New variable.
9287
8cfe231d
JB
92882004-02-17 Jim Blandy <jimb@redhat.com>
9289
4589a601
JB
9290 * findvar.c (value_from_register): If the type has no length, just
9291 return an acceptable value --- don't report an internal error.
9292
8cfe231d
JB
9293 * stabsread.c (read_type): If we find any type numbers that are
9294 forward references, complain if the references aren't resolved by
9295 the time we're finished reading.
9296 (cleanup_undefined_types): Make error message more appropriate for
9297 a complaint.
9298
5bf0017e
EZ
92992004-02-17 Elena Zannoni <ezannoni@redhat.com>
9300
9d62932d
EZ
9301 * Makefile.in (defs_h): Remove dependency on progress_h.
9302 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9303 progress.h.
9304 * main.c (captured_main): Delete use of START_PROGRESS and
9305 END_PROGRESS.
9306
93072004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9308
5bf0017e
EZ
9309 * objfiles.c (terminate_minimal_symbol_table): Add back
9310 initialization of MSYMBOL_TYPE.
9311
9fc9f5e2
AC
93122004-02-17 David Mosberger <davidm@hpl.hp.com>
9313
9314 Committed by Andrew Cagney.
9315 * Makefile.in (ia64_tdep_h): New macro.
9316 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9317 (ia64-tdep.o): Likewise.
9318 * ia64-tdep.h: New file.
9319 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9320 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9321 (ia64_aix_sigcontext_register_address): Likewise.
9322 (ia64_linux_getunwind_table): Delete declaration.
9323 * ia64-linux-tdep.c: Likewise.
9324
76cd2bd9
CV
93252004-02-17 Corinna Vinschen <vinschen@redhat.com>
9326
9327 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9328 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9329 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9330
634aa483
AC
93312004-02-17 Andrew Cagney <cagney@redhat.com>
9332
9333 * symtab.c (skip_prologue_using_sal): New function.
9334 * symtab.h (skip_prologue_using_sal): Declare.
9335 * frv-tdep.c: Include "symtab.h".
9336 (skip_prologue_using_sal): Delete function.
9337 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9338 * rs6000-tdep.c (refine_prologue_limit): Mention
9339 skip_prologue_using_sal.
9340 * ia64-tdep.c (refine_prologue_limit): Ditto.
9341 * Makefile.in: Update dependencies.
9342
93432004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9344
39ce7b3f
AC
9345 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9346 START_INFERIOR_TRAPS_EXPECTED.
9347 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9348 START_INFERIOR_TRAPS_EXPECTED.
9349 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9350 Delete macro.
9351 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9352 macro, moved to "nm-osf.h". Update copyright.
9353 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9354 update copyright.
9355
19772a2c
AC
9356 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9357 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9358 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9359 frameless_look_for_prologue.
9360 * frame.h (legacy_frameless_look_for_prologue): Rename
9361 frameless_look_for_prologue.
9362 * gdbarch.h, gdbarch.c: Re-generate.
9363 * sh64-tdep.c (sh64_gdbarch_init): Update.
9364 * sh-tdep.c (sh_gdbarch_init): Update.
9365 * s390-tdep.c (s390_gdbarch_init): Update.
9366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9367 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9368 * m68k-tdep.c (m68k_gdbarch_init): Update.
9369 (delta68_frame_args_address): Update.
9370 * m32r-tdep.c (m32r_gdbarch_init): Update.
9371 * hppa-tdep.c (hppa_gdbarch_init): Update.
9372 * h8300-tdep.c (h8300_gdbarch_init): Update.
9373 * frv-tdep.c (frv_gdbarch_init): Update.
9374 (frv_frameless_function_invocation): Update.
9375 * cris-tdep.c (cris_gdbarch_init): Update.
9376 (cris_frameless_function_invocation): Update.
9377 * avr-tdep.c (avr_gdbarch_init): Update.
9378 * arm-tdep.c (arm_gdbarch_init): Update.
9379 * stack.c (frame_info): Update, call predicate.
9380 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9381 * frame.c (legacy_get_prev_frame): Update, call predicate..
9382 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9383 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9384 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9385 invocation.
9386 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9387 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9388 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9389
9390 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9391 function.
9392
7dcaac91
DJ
93932004-02-16 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9396 initializations.
9397
88289b6e
AC
93982004-02-16 Andrew Cagney <cagney@redhat.com>
9399
9400 * tui/tui-windata.c: Include "gdb_string.h".
9401 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9402 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9403 * Makefile.in: Update dependencies.
9404
9f976b41
DJ
94052004-02-16 Daniel Jacobowitz <drow@mvista.com>
9406
9407 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9408 * infrun.c: Include "gdb_assert.h".
9409 (singlestep_ptid, saved_singlestep_ptid)
9410 (stepping_past_singlestep_breakpoint): New variables.
9411 (resume): Set singlestep_ptid. Check for singlestep thread
9412 hop.
9413 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9414 (handle_inferior_event): Handle singlestep thread hop.
9415
c324d747
AC
94162004-02-16 Andrew Cagney <cagney@redhat.com>
9417
f090b9b1
AC
9418 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9419 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9420 (dwarf2_frame_init_reg): Ditto.
9421
fd33e6cb
AC
9422 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9423 suggested by Joshua Neuheisel
9424
c324d747
AC
9425 * configure.in: Always check for curses, including pdcurses.
9426 Warn, instead of error, when no curses are found. Enable TUI when
9427 curses is available.
9428 * configure: Re-generate.
9429
b66ba949
CV
94302004-02-16 Corinna Vinschen <vinschen@redhat.com>
9431
9432 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9433 sh_sh4_register_convert_to_virtual.
9434 (sh_register_convert_to_raw): Rename from
9435 sh_sh4_register_convert_to_raw.
9436 (sh_pseudo_register_read): Accomodate above name change.
9437 (sh_pseudo_register_write): Ditto.
9438
b58cbbf2
CV
94392004-02-16 Corinna Vinschen <vinschen@redhat.com>
9440
9441 * sh-tdep.c (sh_generic_register_name): Remove.
9442 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9443
5929a910
AC
94442004-02-15 Andrew Cagney <cagney@redhat.com>
9445
4566dfcf
AC
9446 * configure.in (build_warnings): Add -Wunused-function.
9447 * configure: Re-generate.
9448
db11ed55
AC
9449 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9450 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9451
46ac7a5d
AC
9452 * procfs.c (procfs_init_inferior): Assume that
9453 START_INFERIOR_TRAPS_EXPECTED is defined.
9454 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9455 * config/ns32k/tm-nbsd.h: Delete file,
9456 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9457
ba801595
AC
9458 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9459 * config/vax/tm-vax.h: Delete file.
9460
5929a910
AC
9461 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9462 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9463 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9464 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9465 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9466 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9467 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9468
8f22cb90
MK
94692004-02-15 Mark Kettenis <kettenis@gnu.org>
9470
9471 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9472 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9473 (struct dwarf2_frame_ops): New.
9474 (dwarf2_frame_default_init_reg): New function, based on
9475 dwarf2_frame_init_reg.
9476 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9477 (dwarf2_frame_init_reg): Call architecture-specific function.
9478 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9479 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9480 instead of dwarf2_frame_data.
9481 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9482 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9483
8132723e
AC
94842004-02-15 Andrew Cagney <cagney@redhat.com>
9485
046a4708
AC
9486 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9487 register_gdbarch_swap.
9488 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9489 * f-lang.c (_initialize_f_language): Update, use
9490 DEPRECATED_REGISTER_GDBARCH_SWAP.
9491 * remote.c (_initialize_remote): Ditto.
9492 * regcache.c (_initialize_regcache): Ditto.
9493 * parse.c (_initialize_parse): Ditto.
9494 * infrun.c (_initialize_infrun): Ditto.
9495 * mi/mi-main.c (_initialize_mi_main): Ditto.
9496 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9497
549c1eea
AC
9498 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9499 poking .cacheable directly.
9500 * symfile.c (symfile_bfd_open): Ditto.
9501
0c0b39de
AC
9502 * Makefile.in: Update all dependencies.
9503
8132723e
AC
9504 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9505 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9506 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9507 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9508 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9509
b9d26eb9
AC
95102004-02-14 Andrew Cagney <cagney@redhat.com>
9511
8e1f669a
AC
9512 * arch-utils.c (legacy_convert_register_p): Check
9513 DEPRECATED_REGISTER_CONVERTIBLE_P.
9514 * findvar.c (value_of_register): Ditto.
9515
cd0bfa36
AC
9516 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9517 * gdbarch.h, gdbarch.c: Re-generate.
9518 * arch-utils.c (deprecated_register_convertible_not): Delete.
9519 * arch-utils.h (deprecated_register_convertible_not): Delete.
9520 * mi/mi-main.c (get_register): Update. Update copyright.
9521 * infcmd.c (default_print_registers_info): Update.
9522
b9d26eb9
AC
9523 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9524 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9525 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9526 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9527 * frame.c (deprecated_get_next_frame_hack): Delete function.
9528 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9529 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9530 Update.
9531 * infcall.c (call_function_by_hand): Update.
9532
9ab9195f
EZ
95332004-02-14 Elena Zannoni <ezannoni@redhat.com>
9534
9535 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9536 from here...
9ab9195f
EZ
9537 * objfiles.c (init_entry_point_info, entry_point_address):..to
9538 here.
9539 * symfile.h (init_entry_point_info, entry_point_address): Remove
9540 prototypes.
9541 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9542 prototypes.
9ab9195f
EZ
9543 * cris-tdep.c: Remove include of symfile.h. Add include of
9544 objfiles.h.
9545 * infcall.c: Ditto.
9546 * mcore-tdep.c: Ditto.
9547 * mn10300-tdep.c: Ditto.
9548 * sh64-tdep.c: Ditto.
9549 * v850-tdep.c: Ditto.
9550 * arm-tdep.c: Remove include of symfile.h.
9551 * blockframe.c: Ditto.
9552 * coffread.c: Ditto.
9553 * dbxread.c: Ditto.
9554 * dwarf2read.c: Ditto.
9555 * dwarfread.c: Ditto.
8a1dac83 9556 * frv-tdep.c: Ditto.
9ab9195f
EZ
9557 * ia64-tdep.c: Ditto.
9558 * mdebugread.c: Ditto.
9559 * mipsread.c: Ditto.
8a1dac83 9560 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9561 * s390-tdep.c: Ditto.
9562 * sh-tdep.c: Ditto.
8a1dac83 9563 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9564 * gdbarch.sh: Remove include of symfile.h.
9565 * gdbarch.c: Regenerate.
9566 * solib-irix.c (enable_break): Use entry_point_address().
9567 Add comment about include file.
9568 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9569 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9570 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9571 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9572 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9573 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9574
c4c5b7ba
AC
95752004-02-13 Andrew Cagney <cagney@redhat.com>
9576
9577 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9578 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9579 copyright.
9580 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9581
3e7879de
FF
95822004-02-12 Fred Fish <fnf@redhat.com>
9583
9584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9585 set_gdbarch_store_return_value.
9586
6a7760b6
AC
95872004-02-12 Andrew Cagney <cagney@redhat.com>
9588
9589 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9590 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9591 (interrupt_query): Ditto.
9592 (ofunc): Delete unused variable.
9593 * cris-tdep.c (cris_abi): Delete unused function.
9594 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9595 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9596 (cris_get_asr_quick_shift_steps): Ditto.
9597 (cris_skip_prologue_frameless_p): Ditto.
9598 * arm-tdep.c (arm_push_return_address): Delete unused function.
9599 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9600 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9601 * s390-tdep.c (s390_function_start): Delete unused function.
9602
31687c3c
AC
96032004-02-12 Andrew Cagney <cagney@redhat.com>
9604
9605 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9606 gdbarch.h, gdbarch.c: Re-generate.
9607 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9608 to generic_prologue_frameless_p.
9609 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9610 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9611
6de918a6
DJ
96122004-02-11 Daniel Jacobowitz <drow@mvista.com>
9613
9614 * mips-linux-tdep.c: Include "frame.h".
9615 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9616 (mips_linux_skip_resolver): New functions.
9617 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9618 and set_gdbarch_in_solib_call_trampoline.
9619 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9620 to after set_gdbarch_in_solib_return_trampoline. Only set the
9621 solib hooks to mips16 functions if the OS ABI is unknown.
9622 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9623 including "config/tm-linux.h".
9624 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9625 * Makefile.in (mips-linux-tdep.o): Update.
9626
87b3ede8
DC
96272004-02-11 David Carlton <carlton@kealia.com>
9628
9629 * linespec.c (decode_compound): Only look for a class symbol when
9630 considering all but the rightmost component.
9631
5979bc46
AC
96322004-02-11 Andrew Cagney <cagney@redhat.com>
9633
9634 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9635 abi code are are separatly grouped.
9636
5867a2fb
AC
96372004-02-11 Andrew Cagney <cagney@redhat.com>
9638
9639 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9640 * gdbarch.h, gdbarch.c: Re-generate.
9641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9642 * v850-tdep.c (v850_gdbarch_init): Update.
9643 * sh64-tdep.c (sh64_gdbarch_init): Update.
9644 * sh-tdep.c (sh_gdbarch_init): Update.
9645 * s390-tdep.c (s390_gdbarch_init): Update.
9646 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9647 * mips-tdep.c (mips_gdbarch_init): Update.
9648 * mcore-tdep.c (mcore_gdbarch_init): Update.
9649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9650 * m32r-tdep.c (m32r_gdbarch_init): Update.
9651 * ia64-tdep.c (ia64_gdbarch_init): Update.
9652 * hppa-tdep.c (hppa_gdbarch_init): Update.
9653 * h8300-tdep.c (h8300_gdbarch_init): Update.
9654 * frv-tdep.c (frv_gdbarch_init): Update.
9655 * d10v-tdep.c (d10v_gdbarch_init): Update.
9656 * cris-tdep.c (cris_gdbarch_init): Update.
9657 * avr-tdep.c (avr_gdbarch_init): Update.
9658 * arm-tdep.c (arm_gdbarch_init): Update.
9659 * alpha-tdep.c (alpha_gdbarch_init): Update.
9660
026a72f8
CV
96612004-02-11 Corinna Vinschen <vinschen@redhat.com>
9662
9663 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9664 comma.
9665 (sh_sh4al_dsp_register_name): Ditto.
9666
3903d437
AC
96672004-02-10 Andrew Cagney <cagney@redhat.com>
9668
9669 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9670 (mips_init_frame_pc_first): Delete function.
9671 (mips_frame_saved_pc): Delete function.
9672 (mips_frame_chain): Delete function.
9673 (mips_init_extra_frame_info): Delete function.
9674 (mips_xfer_register): Delete unused variable "reg".
9675 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9676 (mips_n32n64_return_value): Delete unused variable "reg".
9677 (mips_n32n64_return_value): Delete unused variable "pos".
9678 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9679 (mips_o32_return_value): Delete unused variable "pos".
9680 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9681 (mips_print_fp_register): Delete unused variable "namelen"
9682 (mips_print_fp_register): Delete unused variable "flt2"
9683 (get_frame_pointer): Delete function.
9684 (cached_proc_desc): Delete static variable.
9685 (mips_pop_frame): Delete function.
9686 (mips_find_saved_regs): Delete function.
9687 (mips_get_saved_register): Delete function.
9688 (mips_saved_pc_after_call): Delete function.
9689 (SIGFRAME_BASE): Delete macro.
9690 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9691 (SIGFRAME_PC_OFF): Delete macro.
9692 (SIGFRAME_REGSAVE_OFF): Delete macro.
9693 (mips_dump_tdep): Do not print deleted macro definitions.
9694
b9fb98bd
AC
96952004-02-10 Andrew Cagney <cagney@redhat.com>
9696
9697 * Makefile.in (SFILES): Remove explictly listed tui files.
9698 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9699
78ced177 97002004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9701
78ced177
JJ
9702 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9703 to use paddr functions to format ia64 addresses and long values.
9704 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9705 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9706 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9707 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9708 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9709
6a83354a
AC
97102004-02-10 Andrew Cagney <cagney@redhat.com>
9711
9712 * defs.h: Do not include "tui.h".
9713 * gdb_curses.h: New file.
9714 * tui/tui-hooks.h: New file.
9715 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9716 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9717 (tui_initialize_io): Delete declaration.
9718 (tui_initialize_readline: Delete redundant declaration.
9719 (struct tui_point): Delete definition.
9720 * tui/tui-data.h (struct tui_point): Define.
9721 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9722 * utils.c: Include "tui/tui.h".
9723 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9724 * printcmd.c [TUI]: Include "tui/tui.h".
9725 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9726 * tui/tui-command.c: Include "gdb_curses.h".
9727 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9728 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9729 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9730 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9731 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9732 * Makefile.in: Update all dependencies.
9733 (tui_hooks_h, gdb_curses_h): Define.
9734 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9735
997470ef
EZ
97362004-02-10 Elena Zannoni <ezannoni@redhat.com>
9737
9738 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9739 auxf2. Add comments about some other rarely used fields.
9740
4ff2cc4d
AC
97412004-02-10 Andrew Cagney <cagney@redhat.com>
9742
9743 * Makefile.in (init.c): Fix script removing duplicates. Problem
9744 reported by Peter Schauer.
9745
1ab21617
EZ
97462004-02-09 Elena Zannoni <ezannoni@redhat.com>
9747
9748 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9749 obstack_specify_allocation.
9750 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9751 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9752 (allocate_rt_common_objfile): Ditto.
9753 * symfile.c (reread_symbols): Ditto.
9754 * gdb_obstack.h: Add comment.
9755
17763fd9
EZ
97562004-02-09 Elena Zannoni <ezannoni@redhat.com>
9757
9758 * linespec.c (decode_line_1, locate_first_half)
9759 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9760 commented out code.
9761
ec5cdd75
DJ
97622004-02-09 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9765 obstack_free.
9766
43b54b88
AC
97672004-02-09 Andrew Cagney <cagney@redhat.com>
9768
9769 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9770 fails, try find_pc_section. Fix PR c++/1267.
9771 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9772 instead of find_pc_mapped_section.
9773 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9774 not default to the section containing PC. Fix PR symtab/1519.
9775
edfae063
AC
97762004-02-09 Andrew Cagney <cagney@redhat.com>
9777
9778 * Makefile.in (mips-tdep.o): Update dependencies.
9779 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9780 "trad-frame.h".
9781 (mips_unwind_pc): Return the pseudo PC register.
9782 (mips_unwind_dummy_id): New function.
9783 (mips16_fetch_instruction): New function.
9784 (mips32_fetch_instruction): New function.
9785 (struct mips_frame_cache): Define.
9786 (mips_mdebug_frame_cache): New function.
9787 (mips_mdebug_frame_this_id): New function.
9788 (mips_mdebug_frame_prev_register): New function.
9789 (mips_mdebug_frame_unwind): Define.
9790 (mips_mdebug_frame_sniffer): New function.
9791 (mips_mdebug_frame_base_address): New function.
9792 (mips_mdebug_frame_base): Define.
9793 (mips_mdebug_frame_base_sniffer): New function.
9794 (mips_gdbarch_init): Append unwind and base sniffers. Set
9795 unwind_dummy_id.
9796
defc864c
AC
97972004-02-08 Andrew Cagney <cagney@redhat.com>
9798
6764ddad
AC
9799 * frame.c: Print both the register number and name.
9800
defc864c
AC
9801 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9802 and a sed into a single sed. Make .c and .o patterns more robust.
9803 (OBS): Delete.
9804 (INIT_FILES): Replace OBS with COMMON_OBS.
9805 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9806
645d6d10
MK
98072004-02-08 Mark Kettenis <kettenis@gnu.org>
9808
9809 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9810 the PT_WCOOKIE request.
9811
23e3c3fc
AC
98122004-02-08 Andrew Cagney <cagney@redhat.com>
9813
58dfe9ff
AC
9814 * mips-tdep.c (mips_unwind_pc): New function.
9815 (mips_gdbarch_init): Set mips_unwind_pc.
9816
1152e35e
AC
9817 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9818 (get_frame_id): Allow the UNKNOWN_FRAME.
9819 (frame_register_unwind, get_frame_type): Ditto.
9820
31b75dbf
AC
9821 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9822 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9823 unwind_dummy_id indicates a legacy frame.
9824
3483b318
AC
9825 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9826 * configure: Re-generate.
9827
23e3c3fc
AC
9828 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9829 methods.
9830
33f8ca73
AC
98312004-02-08 Andrew Cagney <cagney@redhat.com>
9832
9833 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9834 makefile macro.
9835 * configure: Re-generate.
9836 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9837 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9838 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9839 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9840 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9841 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9842 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9843 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9844 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9845 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9846
6ba8e26f 98472004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9848
20d286a5
AC
9849 * Makefile.in: Update all dependencies.
9850
d836ee13
AC
9851 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9852 * configure: Re-generate.
9853 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9854 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9855 (COMMON_OBS): Add "main.o" and "annotate.o".
9856 (ANNOTATE_OBS): Delete.
9857 (OBS): Remove ANNOTATE_OBS.
9858 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9859 CONFIG_INITS.
9860 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9861 against CONFIG_OBS and "main.o".
9862 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9863 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9864
d02c80cd
AC
9865 * tui/tui-command.c: Include "gdb_string.h", delete register
9866 attribute, use ISO-C function signatures.
9867 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9868 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9869 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9870 * tui/tui.c: Ditto.
6ba8e26f
AC
9871
9872 * tui/tui-command.c: Change variable and function names to lower
9873 case.
9874 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9875 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9876 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9877 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9878 * tui/tui-winsource.c, tui/tui.c: Ditto.
9879
4a146b47
EZ
98802004-02-07 Elena Zannoni <ezannoni@redhat.com>
9881
9882 * buildsym.c (free_pending_blocks, finish_block)
9883 (record_pending_block, make_blockvector, end_symtab): Replace
9884 symbol_obstack with objfile_obstack.
8a1dac83 9885 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9886 (coff_read_enum_type): Ditto.
8a1dac83 9887 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9888 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9889 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9890 (dwarf2_symbol_mark_computed): Ditto.
9891 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9892 * elfread.c (elf_symtab_read): Ditto.
9893 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9894 (hpread_read_enum_type, hpread_read_function_type)
9895 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9896 Ditto.
8a1dac83 9897 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9898 (java_link_class_type): Ditto.
8a1dac83 9899 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9900 (new_symbol): Ditto.
9901 * minsyms.c (install_minimal_symbols): Ditto.
9902 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9903 (terminate_minimal_symbol_table): Replace symbol_obstack with
9904 objfile_obstack.
9905 (free_objfile): Remove freeing of symbol_obstack.
9906 * objfiles.h: Remove symbol_obstack field.
9907 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9908 objfile_obstack.
9909 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9910 symbol_obstack.
9911 (solib_add_common_symbols): Replace symbol_obstack with
9912 objfile_obstack.
9913 * somsolib.c (som_solib_add): Ditto.
9914 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9915 (common_block_start, common_block_end): Ditto.
9916 * symfile.c (reread_symbols): Remove freeing and init of
9917 symbol_obstack.
9918 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9919 * symfile.h: Update comment.
9920 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9921 stats printing.
9922 * symtab.c (symbol_set_names): Replace symbol_obstack with
9923 objfile_obstack.
9924 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9925 Update comments.
9926 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9927 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9928 objfile_obstack.
9929
6d012f14
AC
99302004-02-07 Andrew Cagney <cagney@redhat.com>
9931
9932 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9933 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9934 fields and variables.
9935 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9936 (m_beInvisible): Delete macro.
9937 * tui/tui-data.h: Fix case case fields and variables.
9938 (m_genWinPtrIsNull): Delete macro.
9939 (tui_win_list): Rename winList.
9940 (TUI_SRC_WIN): Rename srcWin.
9941 (TUI_DISASM_WIN): Rename disassemWin.
9942 (TUI_DATA_WIN): Rename dataWin.
9943 (TUI_CMD_WIN): Rename cmdWin.
9944 (m_genWinPtrNotNull): Delete macro.
9945 (m_winPtrIsNull): Delete macro.
9946 (m_winPtrNotNull): Delete macro.
9947 (tui_win_is_source_type): Replace m_winIsSourceType
9948 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9949 (tui_win_has_locator): Replace m_hasLocator.
9950 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9951 m_setWinHighlightOff.
9952 * tui/tui-data.c: Update references.
9953 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9954 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9955 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9956 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9957 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9958 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9959 * tui/tui-winsource.c, tui/tui.c: Ditto.
9960
7d34766b
MK
99612004-02-07 Mark Kettenis <kettenis@gnu.org>
9962
1c800673
MK
9963 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9964 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9965 StackGhost.
9966
7d34766b
MK
9967 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9968 variable `i6' to `i7'.
9969 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9970
22940a24
AC
99712004-02-07 Andrew Cagney <cagney@redhat.com>
9972
9973 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9974 (TuiPoint, TuiPointPtr): Ditto.
9975 (TuiStatus, TuiStatusPtr): Ditto.
9976 (TuiWinType, TuiWinTypePtr): Ditto.
9977 (struct tui_point): Rename _TuiPoint.
9978 (tui_get_low_disassembly_address): Rename
9979 tuiGetLowDisassemblyAddress.
9980 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9981 (tuiFree): Delete declaration.
9982 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9983 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9984 * tui/tui.c (tuiFree): Delete function.
9985 * cli/cli-cmds.c (disassemble_command): Update references.
9986 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9987 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9988 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9989 * tui/tui-winsource.c: Ditto.
9990
8b92e4d5
EZ
99912004-02-07 Elena Zannoni <ezannoni@redhat.com>
9992
9993 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9994 coffstab_build_psymtabs, elfstab_build_psymtabs)
9995 (stabsect_build_psymtabs): Replace psymbol_obstack with
9996 objfile_obstack.
9997 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9998 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9999 Ditto.
10000 * dwarfread.c (scan_compilation_units): Ditto.
10001 * elfread.c (elfstab_offset_sections): Ditto.
10002 * hppa-tdep.c (read_unwind_info): Ditto.
10003 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10004 (hpread_end_psymtab): Ditto.
10005 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10006 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10007 Ditto.
10008 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10009 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10010 (build_objfile_section_table): Ditto.
10011 (allocate_objfile): Remove init of psymbol_obstack.
10012 (free_objfile): Remove freeing of psymbol_obstack.
10013 * objfiles.h (struct objfile): Remove field
10014 psymbol_obstack. Update comments.
10015 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10016 psymbol_obstack with objfile_obstack.
10017 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10018 psymbol_obstack.
10019 * somread.c (som_symfile_offsets, init_import_symbols)
10020 (init_export_symbols): Replace psymbol_obstack with
10021 objfile_obstack.
10022 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10023 * symfile.c (default_symfile_offsets, syms_from_objfile)
10024 (reread_symbols): Remove freeing and init of psymbol_obstack.
10025 (cashier_psymtab): Update comment.
10026 * symmisc.c (print_objfile_statistics): Don't report stats for
10027 psymbol obstack.
10028 * symtab.h (struct general_symbol_info, struct partial_symtab):
10029 Update comments.
10030 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10031 (xcoff_symfile_offsets): Replace psymbol_obstack with
10032 objfile_obstack.
10033
b99607ea
EZ
100342004-02-07 Elena Zannoni <ezannoni@redhat.com>
10035
10036 * objfiles.h (struct objfile): Add objfile_obstack field.
10037 Remove type_obstack field.
10038
10039 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10040 read_structure_scope read_enumeration, new_symbol): Replace
10041 type_obstack with objfile_obstack.
10042 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10043 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10044 (lookup_fundamental_type): Ditto.
10045 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10046 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10047 (hpread_read_doc_function_type, hpread_read_struct_type)
10048 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10049 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10050 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10051 (java_link_class_type): Ditto.
10052 * mdebugread.c (parse_type): Ditto.
10053 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10054 * solib-sunos.c (solib_add_common_symbols): Ditto.
10055 * stabsread.c (define_symbol, read_type, read_member_functions,
10056 read_cpp_abbrev, read_one_struct_field): Ditto.
10057 * symfile.c (reread_symbols): Ditto.
10058 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10059
2a8854a7
AC
100602004-02-07 Andrew Cagney <cagney@redhat.com>
10061
10062 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10063 (tui_exec_info_content): Rename TuiExecInfoContent.
10064 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10065 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10066 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10067 (TuiList, TuiListPtr): Ditto.
10068 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10069 (TuiDataType, TuiDataTypePtr): Ditto.
10070 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10071 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10072 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10073 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10074 (TuiDataElement, TuiDataElementPtr): Ditto.
10075 (TuiWinElement, TuiWinElementPtr): Ditto.
10076 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10077 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10078 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10079 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10080 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10081 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10082 * tui/tui-command.c, tui/tui-data.c: Update references.
10083 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10084 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10085 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10086 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10087
05cbe71a
MK
100882004-02-07 Mark Kettenis <kettenis@gnu.org>
10089
10090 * dwarf2-frame.h: Update copyright.
10091 (enum dwarf2_frame_reg_rule): New.
10092 (struct dwarf2_frame_state_reg): New.
10093 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10094 * dwarf2-frame.c: Update copyright.
10095 (enum dwarf2_reg_rule): Remove.
10096 (struct dwarf2_frame_state): Remove defenition of `struct
10097 dwarf2_frame_state_reg'.
10098 (read_reg): Call get_frame_arch to get the architecture instead of
10099 using CURRENT_GDBARCH.
10100 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10101 DWARF2_FRAME_.
10102 (dwarf2_frame_init_reg): New function.
10103 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10104 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10105 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10106 tags with DWARF2_FRAME_.
10107 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10108 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10109 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10110
ec7d9e56
AC
101112004-02-06 Andrew Cagney <cagney@redhat.com>
10112
dd1abb8c
AC
10113 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10114 (enum tui_data_type): Rename _TuiDataType.
10115 (struct tui_layout_def): Rename _TuiLayoutDef.
10116 (struct tui_source_element): Rename _TuiSourceElement.
10117 (struct tui_data_element): Rename _TuiDataElement.
10118 (struct tui_command_element): Rename _TuiCommandElement.
10119 (struct tui_locator_element): Rename _TuiLocatorElement.
10120 (union tui_which_element): Define.
10121 (struct tui_win_element): Rename _TuiWinElement.
10122 (struct tui_data_info): Rename _TuiDataInfo.
10123 (struct tui_source_info): Rename _TuiSourceInfo.
10124 (struct tui_command_info): Rename _TuiCommandInfo.
10125 (tui_initialize_static_data): Rename initializeStaticData.
10126 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10127 (tui_alloc_win_info): Rename allocWinInfo.
10128 (tui_init_generic_part): Rename initGenericPart.
10129 (tui_init_win_info): Rename initWinInfo.
10130 (tui_alloc_content): Rename allocContent.
10131 (tui_add_content_elements): Rename addContentElements.
10132 (tui_init_content_element): Rename initContentElement.
10133 (tui_free_window): Rename freeWindow.
10134 (tui_free_win_content): Rename freeWinContent.
10135 (tui_free_data_content): Rename freeDataContent.
10136 (tui_free_all_source_wins_content): Rename
10137 freeAllSourceWinsContent.
10138 (tui_del_window): Rename tuiDelWindow.
10139 (tui_del_data_windows): Rename tuiDelDataWindows.
10140 (tui_partial_win_by_name): Rename partialWinByName.
10141 (tui_win_name): Rename winName.
10142 (tui_current_layout): Rename currentLayout.
10143 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10144 (tui_term_height): Rename termHeight.
10145 (tui_set_term_height_to): Rename setTermHeightTo.
10146 (tui_term_width): Rename termWidth.
10147 (tui_set_term_width_to): Rename setTermWidthTo.
10148 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10149 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10150 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10151 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10152 (tui_source_windows): Rename sourceWindows.
10153 (tui_clear_source_windows): Rename clearSourceWindows.
10154 (tui_clear_source_windows_detail): Rename
10155 clearSourceWindowsDetail.
10156 (tui_clear_win_detail): Rename clearWinDetail.
10157 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10158 (tui_default_tab_len): Rename tuiDefaultTabLen.
10159 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10160 (tui_win_with_focus): Rename tuiWinWithFocus.
10161 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10162 (tui_layout_def): Rename tuiLayoutDef.
10163 (tui_win_resized): Rename tuiWinResized.
10164 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10165 (tui_next_win): Rename tuiNextWin.
10166 (tui_prev_win): Rename tuiPrevWin.
10167 (tui_add_to_source_windows): Rename addToSourceWindows.
10168 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10169 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10170 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10171 * tui/tui.c, tui/tui-data.c: Ditto.
10172 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10173 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10174
a358af15
AC
10175 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10176 (struct symtab): Declare.
10177 (tui_set_source_content): Rename tuiSetSourceContent.
10178 (tui_show_symtab_source): Rename tuiShowSource.
10179 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10180 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10181 * tui/tui-source.c: Update copyright. Update references.
10182 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10183 * tui/tui-stack.c: Update references.
10184
a21fcd8f
AC
10185 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10186 (struct tui_win_info): Declare.
10187 (tui_scroll_forward): Rename tuiScrollForward.
10188 (tui_scroll_backward): Rename tuiScrollBackward.
10189 (tui_scroll_left): Rename tuiScrollLeft.
10190 (tui_scroll_right): Rename tuiScrollRight.
10191 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10192 (tui_resize_all): Rename tuiResizeAll.
10193 (tui_refresh_all_win): Rename tuiRefreshAll.
10194 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10195 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10196 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10197 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10198
edae1ccf
AC
10199 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10200 (tui_erase_data_content): Rename tuiEraseDataContent.
10201 (tui_display_all_data): Rename tuiDisplayAllData.
10202 (tui_check_data_values): Rename tuiCheckDataValues.
10203 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10204 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10205 (tui_first_data_element_no_in_line): Rename
10206 tuiFirstDataElementNoInLine.
10207 (tui_delete_data_content_windows): Rename
10208 tuiDeleteDataContentWindows.
10209 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10210 (tui_display_data_from): Rename tuiDisplayDataFrom.
10211 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10212 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10213 * tui/tui-win.c, tui/tui-regs.c: Update references.
10214 * tui/tui-layout.c, tui/tui.c: Update references.
10215
ec7d9e56
AC
10216 * tui/tui-wingeneral.h: Update copyright.
10217 (m_allBeVisible): Delete macro.
8a1dac83 10218 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10219 (struct tui_gen_win_info): Declare.
10220 (struct tui_win_info): Declare.
10221 (tui_unhighlight_win): Rename unhighlightWin.
10222 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10223 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10224 (tui_make_window): Rename makeWindow.
10225 (tui_copy_win): Rename copyWin.
10226 (tui_box_win): Rename boxWin.
10227 (tui_highlight_win): Rename highlightWin.
10228 (tui_check_and_display_highlight_if_needed): Rename
10229 checkAndDisplayHighlightIfNeeded.
10230 (tui_refresh_all): Rename refreshAll.
10231 (tui_delete_win): Rename tuiDelwin.
10232 (tui_refresh_win): Rename tuiRefreshWin.
10233 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10234 (tui_make_visible, tui_make_invisible): New functions.
10235 (tui_make_all_visible, tui_make_all_invisible): New functions.
10236 (make_all_visible): Rename makeAllVisible.
10237 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10238 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10239 * tui/tui-windata.c, tui/tui-win.c: Update references.
10240 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10241 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10242
1e52e2eb
MK
102432004-02-06 Mark Kettenis <kettenis@gnu.org>
10244
10245 * proc-api.c (write_with_trace): Initialize local variable to
10246 silence compiler warning.
10247
f80bda8e
AC
102482004-02-06 Andrew Cagney <cagney@redhat.com>
10249
10250 * tui/tui-source.h: Do not include "defs.h".
10251 (struct tui_win_info): Declare.
10252 (tui_set_source_content_nil): Declare.
10253 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10254 (union tui_line_or_address): Rename _TuiLineOrAddress.
10255 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10256 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10257 (tui_update_source_window_as_is): Rename
10258 tuiUpdateSourceWindowAsIs.
10259 (tui_update_source_windows_with_addr): Rename
10260 tuiUpdateSourceWindowsWithAddr.
10261 (tui_update_source_windows_with_line): Rename
10262 tuiUpdateSourceWindowsWithLine.
10263 (tui_clear_source_content): Rename tuiClearSourceContent.
10264 (tui_erase_source_content): Rename tuiEraseSourceContent.
10265 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10266 (tui_show_source_content): Rename tuiShowSourceContent.
10267 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10268 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10269 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10270 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10271 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10272 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10273 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10274 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10275 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10276 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10277 (struct tui_win_info): Declare.
10278 * tui/tui-stack.c: Update references.
10279 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10280 * tui/tui-win.c, tui/tui-source.c: Ditto.
10281 * tui/tui.c, tui/tui-disasm.c: Ditto.
10282
9fbfb822
MK
102832004-02-06 Mark Kettenis <kettenis@gnu.org>
10284
10285 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10286 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10287
03cebad2
MK
102882004-02-05 Mark Kettenis <kettenis@gnu.org>
10289
10290 * infrun.c (handle_inferior_event): Allow for breakpoint
10291 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10292 and SIGEMT. Update comments.
10293 * NEWS (Revised SPARC target): Mention support for non-executable
10294 stack.
10295
290281b1
MK
102962004-02-04 Mark Kettenis <kettenis@gnu.org>
10297
10298 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10299 * inftarg.c: Update copyright year.
10300 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10301 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10302 (sparc_xfer_wcookie): New function.
10303 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10304 * Makefile.in (sparc-nat.o): Update dependencies.
10305 * config/sparc/nm-nbsd.h: Include "target.h".
10306 (NATIVE_XFER_WCOOKIE): New define.
10307 (sparc_xfer_wcookie): New prototype.
10308
212161df
AC
103092004-02-04 Andrew Cagney <cagney@redhat.com>
10310
10311 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10312 SYSCALL_TRAP function.
10313 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10314
6e4c6c91
DJ
103152004-02-04 Andrew Cagney <cagney@redhat.com>
10316 Daniel Jacobowitz <drow@mvista.com>
10317
10318 * objfiles.h: Delete comments refering to inside_entry_func and
10319 DEPRECATED_FRAME_CHAIN_VALID.
10320 * defs.h (inside_entry_func): Update prototype..
10321 * blockframe.c (inside_entry_func): Rename to
10322 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10323 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10324
cae688ec
JJ
103252004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10326
10327 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10328 outside of #ifdef SOLIB_ADD region.
10329 (do_restore_lang_radix_cleanup): Ditto.
10330 (resolve_pending_breakpoint): Ditto.
10331
19217676
AC
103322004-02-03 Andrew Cagney <cagney@redhat.com>
10333
10334 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10335 (process_note_abi_tag_sections): Delete unused function.
10336 (ia64_read_fp): Delete unused function.
10337 (gdbarch_extract_struct_value_address): Delete declaration.
10338
876753be
AC
103392004-02-02 Andrew Cagney <cagney@redhat.com>
10340
10341 * vax-tdep.c (vax_frame_chain): Delete call to
10342 deprecated_inside_entry_file.
10343 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10344
d4f10bf2
MK
103452004-02-02 Mark Kettenis <kettenis@gnu.org>
10346
10347 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10348 column that's "empty" or "same value" when eliminating REG_RA
10349 rules.
10350
cae688ec
JJ
103512004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10352
10353 * NEWS: Add information about new pending breakpoint support.
10354
0101ce28
JJ
103552004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10356
10357 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10358 and pending fields for pending breakpoint support.
10359 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10360 (condition_command): Only parse condition if not a pending
10361 breakpoint.
10362 (print_one_breakpoint): Add support for pending breakpoints.
10363 (describe_other_breakpoints): Add checks to verify we are not
10364 dealing with pending breakpoints.
10365 (check_duplicates): Don't check pending breakpoints.
10366 (set_raw_breakpoint): Initialize pending flag.
10367 (do_restore_lang_radix_cleanup): New cleanup routine.
10368 (resolve_pending_breakpoint): New function.
10369 (re_enable_breakpoints_in_shlibs): Try and resolve any
10370 pending breakpoints via resolve_pending_breakpoint.
10371 (mention): Add pending breakpoint support.
10372 (parse_breakpoint_sals): Add new parameter to pass to
10373 decode_line_1 to indicate silent errors when files or functions
10374 are not found. Change all callers.
10375 (do_captured_parse_breakpoint): New function.
10376 (break_command_1): Change prototype to return an rc value and to
10377 take an optional pending breakpoint pointer. Support creating
10378 a pending breakpoint if a "not found" form of error occurs when
10379 parsing the breakpoint. Also support resolving an existing pending
10380 breakpoint and be silent if the resolution fails.
10381 (create_breakpoints): Change prototype to take pending breakpoint
10382 pointer. When resolving a pending breakpoint, use the new pointer
10383 to provide a conditional or commands added by the end-user.
10384 (delete_breakpoint): Add appropriate check for pending.
10385 (breakpoint_re_set_one): Ditto.
10386 (do_enable_breakpoint): Ditto.
10387
8d577d32
DC
103882004-02-02 David Carlton <carlton@kealia.com>
10389
10390 * valops.c (enum oload_classification): New.
10391 (find_overload_match): Break implementation into separate
10392 functions; delete #if 0'd code; look for symbols within
10393 namespaces.
10394 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10395 (find_oload_champ,oload_method_static,classify_oload_match): New.
10396 * cp-support.h: Add declaration for cp_func_name; update
10397 declaration for make_symbol_overload_list.
10398 * cp-support.c (cp_func_name): New.
10399 (overload_list_add_symbol): Fix comment, use
10400 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10401 (make_symbol_overload_list): Take a function name and a namespace
10402 instead of a symbol; change implementation.
10403 (make_symbol_overload_list_using): New.
10404 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10405
22e8e3c7
FF
104062004-02-02 Fred Fish <fnf@redhat.com>
10407
10408 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10409 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10410 * remote-sim.c (gdb_os_write_stderr): Write output to
10411 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10412 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10413 gdb_stderr stream and update copyright years.
22e8e3c7 10414
6b753f60
DJ
104152004-02-01 Daniel Jacobowitz <drow@mvista.com>
10416
10417 * Makefile.in (mips-linux-nat.o): Update dependencies.
10418 * mips-linux-nat.c: Include mips-tdep.h.
10419
104202004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10421
10422 * sol-thread.c (sol_thread_xfer_partial): New function.
10423 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10424 (init_sol_core_ops): Likewise.
10425
10426 * procfs.c (procfs_xfer_partial): New function.
10427 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10428 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10429
10430 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10431 procfs_xfer_auxv function.
10432
10433 * procfs.c (procfs_make_note_section): If we can read
10434 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10435 * linux-proc.c (linux_make_note_section): Likewise.
10436
10437 * auxv.h: New file.
10438 * auxv.c: New file.
10439 * Makefile.in (auxv_h): New variable.
10440 (COMMON_OBS): Add auxv.o here.
10441 (auxv.o): New target.
10442
10443 * corelow.c (core_xfer_partial): New function.
10444 (init_core_ops): Use it for core_ops.to_xfer_partial.
10445
10446 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10447 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10448 macro if that is defined.
10449
fa5281d0
DJ
104502004-02-01 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10453 and check the specified thread for each breakpoint.
10454 * breakpoint.h (bpstat_stop_status): Update prototype.
10455 * infrun.c (handle_inferior_event): Update calls to
10456 bpstat_stop_status.
10457
26ee262d
DJ
104582004-02-01 Daniel Jacobowitz <drow@mvista.com>
10459
10460 * Makefile.in (cli-cmds.o): Add $(readline_h).
10461
d9b52655
DJ
104622004-02-01 Daniel Jacobowitz <drow@mvista.com>
10463
10464 * cli/cli-cmds.c: Include readline.h.
10465 (complete_command): Pass the start of the last word to
10466 complete_line.
10467
9709f61c
DJ
104682004-01-31 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10471 argument, and change first argument to a CORE_ADDR.
10472 * breakpoint.h (bpstat_stop_status): Update prototype.
10473 * infrun.c (adjust_pc_after_break): Add a new comment.
10474 (handle_inferior_event): Update calls to bpstat_stop_status.
10475
4f1280bb
DJ
104762004-01-31 Daniel Jacobowitz <drow@mvista.com>
10477
10478 * breakpoint.h: Update copyright years.
10479
4fa8626c
DJ
104802004-01-31 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10483 (bpstat_stop_status): Don't decrement PC.
10484 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10485 prototype.
10486 * infrun.c (adjust_pc_after_break): New function.
10487 (handle_inferior_event): Call it, early. Remove later references
10488 to DECR_PC_AFTER_BREAK.
10489 (normal_stop): Add commentary.
10490
fad0733a
DJ
104912004-01-31 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10494 2004-01-27 double-free fix.
10495
42cdca6c
MK
104962004-01-31 Mark Kettenis <kettenis@gnu.org>
10497
10498 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10499 (sparc32_frame_prev_register): Handle StackGhost.
10500 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10501
932d5416
RM
105022004-01-29 Roland McGrath <roland@redhat.com>
10503
10504 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10505 * configure: Regenerated.
10506
10507 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10508 * Makefile.in (procfs.o): Add dep.
10509
47d3492a
AC
105102004-01-28 Andrew Cagney <cagney@redhat.com>
10511
10512 * tui/tui-stack.h: Update copyright.
10513 (struct frame_info): Add opaque declaration.
10514 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10515 (tui_show_locator_content): Rename tuiShowLocatorContent.
10516 (tui_show_frame_info): Rename tuiShowFrameInfo.
10517 * tui/tui-stack.c: Update copyright. Update references.
10518 * tui/tui-winsource.c: Update references.
10519 * tui/tui-win.c: Update references.
10520 * tui/tui-layout.c: Update references.
10521 * tui/tui-hooks.c: Update copyright, update references.
10522 * tui/tui.c: Update copyright, update references.
10523 * tui/tui-disasm.c: Update references.
10524
5d51ca54
DC
105252004-01-28 David Carlton <carlton@kealia.com>
10526
10527 * dwarf2read.c (add_partial_structure): Use demangled name if
10528 namespace equals "".
10529
086ed43d
JB
105302004-01-27 Jim Blandy <jimb@redhat.com>
10531
10532 Clean up misapplied patch:
10533 * dwarf2read.c (determine_prefix): Change one of the two forward
10534 declarations for 'determine_prefix_aux' to a declaration for this.
10535 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10536 argument to 'die_specification'.
10537
2a35147e
JB
10538 * dwarf2read.c (read_func_scope): Re-indent comment.
10539
a355c7de 105402004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10541
a355c7de
AC
10542 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10543 b->exp to NULL after freeing so that error during re-parsing or
10544 evaluation of expressions associated with breakpoint don't
10545 eventually lead to re-freeing of storage.
10546 Committed by Andrew Cagney.
10547
63ff5125
AC
105482004-01-27 Andrew Cagney <cagney@redhat.com>
10549
10550 * source.c (ambiguous_line_spec): Delete undefined declaration.
10551 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10552 (m32r_set_server_address, m32r_set_download_path): Ditto.
10553 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10554
e142c38c
DJ
105552004-01-27 Daniel Jacobowitz <drow@mvista.com>
10556
10557 * dwarf2read.c: Update calls to changed and renamed functions, and
10558 references to moved variables.
10559
10560 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10561 language, language_defn, list_in_scope, and ftypes members.
10562 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10563 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10564 (baseaddr): Remove globals.
10565
10566 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10567 (set_cu_language, die_is_declaration, die_specification)
10568 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10569 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10570 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10571 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10572
10573 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10574 cu.list_in_scope. Don't initialize cu_header_offset.
10575 (add_partial_symbol): Add local baseaddr.
10576 (psymtab_to_symtab_1): Add local baseaddr. Use
10577 objfile->section_offsets for consistency. Don't initialize
10578 cu_header_offset; do initialize cu.header.offset and
10579 cu.list_in_scope.
10580 (read_file_scope, read_func_scope, read_lexical_block_scope)
10581 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10582
c6e06ede
MC
105832004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10584
fb328ecc 10585 * PROBLEMS: Add gdb/1516.
c6e06ede 10586
48184fd4
AC
105872003-12-29 Robert Millan <robertmh@gnu.org>
10588
10589 Patch committed by Andrw Cagney.
10590 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10591 * configure.tgt: Match knetbsd*-gnu.
10592
c1321b30
AC
105932004-01-26 Andrew Cagney <cagney@redhat.com>
10594
f3699be3
AC
10595 * breakpoint.c (catch_command_1): Delete #ifdef code.
10596 (catch_fork_command_1): Delete #ifdef wrapper.
10597 (catch_exec_command_1): Ditto.
10598 (catch_load_command_1): Ditto.
10599 (catch_unload_command_1): Ditto.
10600
c1321b30
AC
10601 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10602 (catch_breakpoint): Delete #if0ed function.
10603 (disable_catch_breakpoint): Ditto.
10604 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10605 (disable_catch, enable_catch, delete_catch): Ditto.
10606
b4501125
AC
106072004-01-26 Andrew Cagney <cagney@redhat.com>
10608
10609 * remote.c (echo_check, quit_flag): Delete variables.
10610 (cisco_kernel_mode): Delete variable.
10611 (minitelnet_return, tty_input, escape_count): Delete variables.
10612 (remote_cisco_mode): Delete variable.
10613 (remote_cisco_open, remote_cisco_close): Delete function.
10614 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10615 (init_remote_cisco_ops): Delete function.
10616 (_initialize_remote): Do not install "remote cisco" code.
10617 (read_frame): Delete cisco specific code.
10618 (remote_info_process): Delete function.
10619 (remote_wait): Delete cisco specific code.
10620 (remote_cisco_section_offsets): Delete function.
10621 (remote_cisco_objfile_relocate): Delete function.
10622 (remote_async_wait): Delete cisco specific code.
10623 (minitelnet, readtty, readsocket): Delete function.
10624
74055713
AC
106252004-01-26 Andrew Cagney <cagney@redhat.com>
10626
10627 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10628 comments mentioning extract_returned_value_address.
10629 * infcmd.c (print_return_value): Update. Add comments on
10630 extract_returned_value_address.
10631 * stack.c (return_command): Add comments on
10632 extract_returned_value_address.
10633 * values.c: Update comment.
10634 * m32r-tdep.c: Update comment.
10635 * sparc-tdep.c: Update comment.
10636 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10638 * sh64-tdep.c (sh64_gdbarch_init): Update.
10639 * sh-tdep.c (sh_gdbarch_init): Update.
10640 * s390-tdep.c (s390_gdbarch_init): Update.
10641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10642 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10643 * m68k-tdep.c (m68k_gdbarch_init): Update.
10644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10645 * m32r-tdep.c (m32r_gdbarch_init): Update.
10646 * ia64-tdep.c (ia64_gdbarch_init): Update.
10647 * h8300-tdep.c (h8300_gdbarch_init): Update.
10648 * frv-tdep.c (frv_gdbarch_init): Update.
10649 * arm-tdep.c (arm_gdbarch_init): Update.
10650 * alpha-tdep.c (alpha_gdbarch_init): Update.
10651
a67af2b9
AC
106522004-01-26 Andrew Cagney <cagney@redhat.com>
10653
10654 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10655 SYMBOL_LOCATION_FUNCS
10656 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10657 "struct symbol_ops".
10658 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10659 type to "struct symbol_ops".
10660 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10661 (struct symbol): Replace ".aux_value.loc.funcs" and
10662 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10663 (SYMBOL_OBJFILE): Delete macro.
10664 (SYMBOL_LOCATION_FUNCS): Delete macro.
10665 (SYMBOL_LOCATION_BATON): Update.
10666 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10667 intead of SYMBOL_LOCATION_FUNCS.
10668 * ax-gdb.c (gen_var_ref): Ditto.
10669 * printcmd.c (address_info): Ditto.
10670 * findvar.c (read_var_value): Ditto.
10671 (symbol_read_needs_frame): Ditto.
10672
c034e007
AC
106732004-01-26 Andrew Cagney <cagney@redhat.com>
10674
10675 * dwarf2read.c (read_func_scope): Document frame-base hack.
10676
bb472c1e
MK
106772004-01-25 Mark Kettenis <kettenis@gnu.org>
10678
10679 * infcmd.c (print_return_value): Plug memory leak; delete
10680 ui_stream object. Rename argument `structure_return' to
10681 `struct_return'.
10682
c8e737d5
MK
106832004-01-25 Mark Kettenis <kettenis@gnu.org>
10684
f941662f
MK
10685 * infcmd.c (print_return_value): Wrap long lines.
10686 (finish_command_continuation, finish_command): Remove unused
10687 variable `funcaddr'. Fix some coding-standards problems.
10688
c558d81a 10689 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10690 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10691 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10692 TDEP->fpregset to zero.
10693
bf1e5861 10694 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10695 floating-point registers for traditional NetBSD core files.
10696 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10697 TDEP->sizeof_fpregset here.
10698
4c72d57a
MK
106992004-01-25 Mark Kettenis <kettenis@gnu.org>
10700
566626fa
MK
10701 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10702 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10703 function with code split out from
10704 sparc32nbsd_sigcontext_frame_cache.
10705 (sparc32nbsd_sigcontext_frame_cache): Use
10706 sparc32nbsd_sigcontext_saved_regs.
10707 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10708 OpenBSD.
10709 * sparcobsd-tdep.c: New file.
10710 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10711 (sparcobsd-tdep.o): New dependency.
10712 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10713 * config/sparc/obsd.mt: New file.
10714
4c72d57a
MK
10715 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10716 TDEP->fpregset to be initialized to enable core file register
10717 sets.
10718
7e5e9f88
MK
107192004-01-24 Mark Kettenis <kettenis@gnu.org>
10720
f0f207fd 10721 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10722 Add opaque declarations.
10723 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10724 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10725 function with code split out from
10726 sparc64nbsd_sigcontext_frame_cache.
10727 (sparc64nbsd_sigcontext_frame_cache): Use
10728 sparc64nbsd_sigcontext_saved_regs.
10729 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10730 OpenBSD.
10731 * sparc64obsd-tdep.c: New file.
10732 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10733 (sparc64obsd-tdep.o): New dependency.
10734 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10735 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10736 * config/sparc/obsd64.mt: New file.
10737
690668cc
MK
10738 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10739 read the instruction at PC.
10740
7e5e9f88
MK
10741 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10742 value of GDB_OSABI_DEFAULT.
10743 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10744 instead of GDB_OSABI_NETBSD_AOUT.
10745
68b6dce9
NR
107462004-01-24 Nick Roberts <nick@nick.uklinux.net>
10747
10748 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10749 copyright.
10750
080ce8c0
AC
107512004-01-23 Andrew Cagney <cagney@redhat.com>
10752
10753 * printcmd.c (display_command): Replace tui_set_display call with
10754 tui_set_layout_for_display_command.
10755 * tui/tui.h (enum tui_win_type): Define.
10756 (tui_set_layout): Delete declaration.
10757 (tui_set_layout_for_display_command): Rename set_tui_layout.
10758 * tui/tui-data.h (enum tui_layout_type): Define.
10759 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10760 "tui.h".
10761 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10762 (tui_default_win_height): Rename tuiDefaultWinHeight.
10763 (tui_default_win_viewport_height): Rename
10764 tuiDefaultWinViewportHeight.
10765 (tui_set_layout): RenametuiSetLayout.
10766 * tui/tui-layout.c: Update references.
10767 * tui/tui.c: Update references.
10768 * tui/tui-disasm.c: Update references.
10769
b368761e
DC
107702004-01-23 David Carlton <carlton@kealia.com>
10771
10772 Partial workaround for PR c++/1511:
10773 * cp-namespace.c: Include frame.h.
10774 (cp_lookup_transparent_type): New
10775 (cp_lookup_transparent_type_loop): New.
10776 * cp-support.h: Declare cp_lookup_transparent_type.
10777 * symtab.c (basic_lookup_transparent_type): Renamed from
10778 lookup_transparent_type.
10779 (lookup_transparent_type): Replace old body by a call to
10780 current_language->la_lookup_transparent_type.
10781 * symtab.h: Update copyright. Declare
10782 basic_lookup_transparent_type.
10783 * language.h: Update copyright.
10784 (struct language_defn): Add la_lookup_transparent_type.
10785 * language.c: Update copyright.
10786 (unknown_language_defn): Add basic_lookup_transparent_type.
10787 (auto_language_defn): Add basic_lookup_transparent_type.
10788 (local_language_defn): Add basic_lookup_transparent_type.
10789 * ada-lang.c: Update copyright.
10790 (ada_language_defn): Add basic_lookup_transparent_type.
10791 * c-lang.c: Update copyright.
10792 (c_language_defn): Add basic_lookup_transparent_type.
10793 (cplus_language_defn): Add basic_lookup_transparent_type.
10794 (asm_language_defn): Add basic_lookup_transparent_type.
10795 (minimal_language_defn): Add basic_lookup_transparent_type.
10796 * f-lang.c: Update copyright.
10797 (f_language_defn): Add basic_lookup_transparent_type.
10798 * jv-lang.c: Update copyright.
10799 (java_language_defn): Add basic_lookup_transparent_type.
10800 * m2-lang.c: Update copyright.
10801 (m2_language_defn): Add basic_lookup_transparent_type.
10802 * objc-lang.c: Update copyright.
10803 (objc_language_defn): Add basic_lookup_transparent_type.
10804 * p-lang.c: Update copyright.
10805 (p_language_defn): Add basic_lookup_transparent_type.
10806 * scm-lang.c: Update copyright.
10807 (scm_language_defn): Add basic_lookup_transparent_type.
10808 * Makefile.in (cp-namespace.o): Depend on frame.h.
10809
fdde2d81
DC
108102004-01-23 David Carlton <carlton@kealia.com>
10811
10812 Patch for PR c++/1520:
10813 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10814 properly if we have a specification die.
10815 (determine_prefix_aux): Rename from determine_prefix.
10816 (determine_prefix): Like the old determine_prefix, but never
10817 returns NULL.
10818
5b828b6b
TR
108192004-01-23 Theodore A. Roth <troth@openavr.org>
10820
10821 * avr-tdep.c: Update copyright.
10822 (avr_iaddr_p): Delete unused function.
10823 (avr_saddr_p): Delete unused function.
10824
a1b8c067
DC
108252004-01-23 David Carlton <carlton@kealia.com>
10826
10827 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10828 Fix for PR symtab/1534.
10829
f2cab569
MK
108302004-01-23 Mark Kettenis <kettenis@gnu.org>
10831
10832 * NEWS (New native configurations): Mention OpenBSD/sparc and
10833 OpenBSD/sparc64.
10834 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10835 * configure.host: Likewise.
10836 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10837 handler for OpenBSD.
10838 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10839
642d8300
MK
108402004-01-22 Mark Kettenis <kettenis@gnu.org>
10841
89aac506
MK
10842 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10843 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10844
36662fde
MK
10845 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10846 * cli/cli-cmds.c (shell_escape): Likewise.
10847
642d8300
MK
10848 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10849 OpenBSD .note.openbsd.ident sections.
10850
fae299cd
DC
108512004-01-22 David Carlton <carlton@kealia.com>
10852
10853 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10854 get_scope_pc_bounds.
10855 (read_file_scope): Ditto.
10856 (get_scope_pc_bounds): New function, produced by extracting code
10857 from the above two functions, consolidating it, and adding support
10858 for DW_TAG_namespace.
10859
a49d618c
MK
108602004-01-22 Mark Kettenis <kettenis@gnu.org>
10861
10862 * osabi.c (MAX_NOTESZ): New define.
10863 (check_note): New function.
10864 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10865 check_note.
10866
fe61caab
RM
108672004-01-21 Roland McGrath <roland@redhat.com>
10868
10869 * MAINTAINERS (write after approval): Add myself.
10870
ec145965
EZ
108712004-01-21 Eli Zaretskii <eliz@gnu.org>
10872
10873 * utils.c (init_page_info): Move declarations of `rows' and
10874 `cols' before the __GO32__-specific code. Move the closing brace
10875 outside the #ifdef __GO32__..#endif block.
10876 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10877
877522db
PB
108782004-01-21 Paul Brook <paul@codesourcery.com>
10879
10880 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10881 BPSTAT_WHAT_CHECK_SHLIBS.
10882
dbf5be1c
PB
108832004-01-21 Paul Brook <paul@codesourcery.com>
10884
10885 * MAINTAINERS: Add myself to write-after-approval.
10886
81f08b92
AC
108872004-01-20 Andrew Cagney <cagney@redhat.com>
10888
5a1efed7
AC
10889 * ax-gdb.c (print_axs_value): Delete unused function.
10890 * jv-lang.c (java_lookup_type): Delete unused function.
10891 * cli/cli-dump.c (dump_filetype): Delete unused function.
10892 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10893 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10894 (mips_getstring): Delete unused function.
10895 (pmon_insert_breakpoint): Delete #if0ed function.
10896 (PMON_MAX_BP): Delete #if0ed MACRO.
10897 (mips_pmon_bp_info): Delete #if0ed variable.
10898 (pmon_remove_breakpoint): Delete #if0ed function.
10899 * monitor.c (monitor_write_even_block): Delete unused function.
10900 (monitor_write_memory_block): Delete #if0ed code.
10901 * dink32-rom.c (dink32_load): Delete unused function.
10902 (_initialize_dink32_rom): Delete #if0ed code.
10903 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10904
b0a30fce
AC
10905 * tui/tui-command.c: Update references.
10906 * tui/tui-io.c: Update references.
10907 * tui/tui-command.h: Update copyright.
10908 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10909
81f08b92
AC
10910 * source.c (ambiguous_line_spec): Delete never-defined function.
10911 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10912 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10913 * cli/cli-cmds.c (validate_comname): Ditto.
10914
65f05602
AC
10915 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10916 "tui-data.h".
10917 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10918 (tui_show_disassem): Rename tuiShowDisassem.
10919 (tui_show_disassem_and_update_source): Rename
10920 tuiVerticalDisassemScroll.
10921 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10922 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10923 * tui/tui.h: Update copyright.
10924 (enum tui_status): Define.
10925 * tui/tui-data.h (enum tui_scroll_direction): Define.
10926 * tui/tui-disasm.c: Update copyright. Update references.
10927 * tui/tui-winsource.c: Update copyright. Update references.
10928 * tui/tui-win.c: Update references.
10929 * tui/tui-layout.c: Update references.
10930
6bb0384f
AC
109312004-01-20 Andrew Cagney <cagney@redhat.com>
10932
10933 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10934 sym2 to start of block.
10935
9175c9a3
MC
109362004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10937
10938 * MAINTAINERS: Delete mmalloc.
10939 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10940 * NEWS: Mention removal of --with-malloc.
10941 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10942 * config.in: Regenerate.
10943 * configure: Regenerate.
6bb0384f
AC
10944 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10945 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10946 * gdbinit.in: Remove mmalloc.
10947 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10948 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10949 * config/i386/go32.mh: Likewise.
10950 * config/i386/interix.mh: Likewise.
10951 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10952
4fcef00a
JJ
109532004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10954
10955 * linespec.c (decode_variable, symtab_from_filename): Call
10956 error_silent with error message instead of throwing an exception
10957 directly.
10958 * defs.h (error_silent, error_output_message): Add prototypes.
10959 (catch_exceptions_with_msg): Ditto.
10960 * utils.c (error_silent, error_output_message): New functions.
10961 * top.c (catch_exceptions_with_msg): New function.
10962
8e94b928
NR
109632004-01-20 Nick Roberts <nick@nick.uklinux.net>
10964
10965 * mi/mi-cmds.h (enum print_values): Add definition.
10966
10967 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10968 type and value for simple data types and just the name and type
10969 for complex ones, if required.
10970
10971 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10972 children, if required.
10973
a02d6af8
KB
109742004-01-19 Kevin Buettner <kevinb@redhat.com>
10975
10976 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10977 unused declarations.
10978
78a4a9b9
AC
109792004-01-19 Andrew Cagney <cagney@redhat.com>
10980
10981 * top.h (mapped_symbol_files): Delete declaration.
10982 * main.c (captured_main): Delete option "m" and "mapped".
10983 * objfiles.c (mapped_symbol_files): Delete variable.
10984 * symfile.c (symbol_file_command): Delete mmap code.
10985 (symbol_file_add_with_addrs_or_offsets): Ditto.
10986 (add_symbol_file_command, reread_separate_symbols): Ditto.
10987 * objfiles.h (OBJF_MAPPED): Delete.
10988 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10989 (free_objfile) [USE_MMALLOC]: Ditto.
10990 (open_existing_mapped_file): Delete function.
10991 (open_mapped_file): Delete function.
10992 (map_to_file): Delete function.
10993
2dbd5e30
KB
109942004-01-19 Kevin Buettner <kevinb@redhat.com>
10995
10996 * infrun.c (step_into_function): Account for possible breakpoint
10997 adjustment when computing ``stop_func_start''.
10998
437b434f
KB
109992004-01-19 Kevin Buettner <kevinb@redhat.com>
11000
11001 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11002 the region size against the size of a pointer, not the size of
11003 a register as given by DEPRECATED_REGISTER_SIZE.
11004
55fb0713
AC
110052004-01-19 Andrew Cagney <cagney@redhat.com>
11006
11007 * tui/tui-regs.h: Include "tui-data.h".
11008 (tuiFirstRegElementNoInLine): Delete declaration.
11009 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11010 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11011 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11012 (tui_calculate_regs_column_count): Rename
11013 tuiCalculateRegsColumnCount.
11014 (tui_check_register_values): Rename tuiCheckRegisterValues.
11015 (tui_show_registers): Rename tuiShowRegisters.
11016 (tui_display_registers_from_line): Rename
11017 tuiDisplayRegistersFromLine.
11018 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11019 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11020 (tui_first_reg_element_no_inline): Rename
11021 tuiFirstRegElementNoInLine.
11022 * tui/tui-data.h: Update copyright.
11023 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11024 * tui/tui-windata.c: Update copyright, update references.
11025 * tui/tui-regs.c: Update copyright, update references.
11026 * tui/tui-win.c: Update copyright, update references.
11027 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11028
cebe9500
AC
110292004-01-18 Andrew Cagney <cagney@redhat.com>
11030
bcdf1568
AC
11031 * tui/tui-io.c: Update copyright.
11032 (key_is_end_sequence, key_is_backspace): New functions.
11033 (key_is_command_char, key_is_start_sequence): New function.
11034 (tui_getc): Update references.
11035 * tui/tui-io.h: Update copyright.
11036 (m_tuiStartNewLine): Delete macro.
11037 (m_isBackspace, m_isDeleteChar): Delete macros.
11038 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11039 (m_isNextPage, m_isPrevPage): Delete macros.
11040 (m_isLeftArrow, m_isRightArrow): Delete macros.
11041 (m_isXdbStyleCommandChar): Delete macro.
11042 (key_is_start_sequence): Declare, replace m_isStartSequence.
11043 (key_is_end_sequence): Declare, replace m_isEndSequence.
11044 (key_is_backspace): Declare ,replace m_isBackspace.
11045 (key_is_command_char): Declare, replace m_isCommandChar.
11046 * tui/tui-command.c: Update copyright.
11047 (tuiDispatchCtrlChar): Update references.
11048
130d87e6
AC
11049 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11050 tuiSourceWin.h.
11051
d7b2e967
AC
11052 * tui/tui-command.c: Rename tui/tuiCommand.c.
11053 * tui/tui-command.h: Rename tui/tuiCommand.h.
11054 * tui/tui-data.c: Rename tui/tuiData.c.
11055 * tui/tui-data.h: Rename tui/tuiData.h.
11056 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11057 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11058 * tui/tui-io.c: Rename tui/tuiIO.c.
11059 * tui/tui-io.h: Rename tui/tuiIO.h.
11060 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11061 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11062 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11063 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11064 * tui/tui-source.c: Rename tui/tuiSource.c.
11065 * tui/tui-source.h: Rename tui/tuiSource.h.
11066 * tui/tui-stack.c: Rename tui/tuiStack.c.
11067 * tui/tui-stack.h: Rename tui/tuiStack.h.
11068 * tui/tui-win.c: Rename tui/tuiWin.c.
11069 * tui/tui-win.h: Rename tui/tuiWin.h.
11070 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11071 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11072 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11073 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11074 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11075 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11076 * tui/tui-file.c: Update includes.
11077 * tui/tui-hooks.c: Update includes.
11078 * tui/tui-interp.c: Update includes.
11079 * tui/tui.c: Update includes.
11080 * Makefile.in: Update all tui/ dependencies.
11081 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11082
b2100910
AC
11083 * Makefile.in: Update copyright. Update dependencies.
11084
cebe9500
AC
11085 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11086 problem.
11087
c6f0559b
AC
110882004-01-18 Andrew Cagney <cagney@redhat.com>
11089
43e9390b
AC
11090 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11091 instead of register_gdbarch_init.
11092
c6f0559b
AC
11093 * remote-sds.c (tohex): Delete unused function. Update copyright.
11094 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11095 * v850-tdep.c (v850_register_virtual_size): Ditto.
11096 * target.c (normal_target_post_startup_inferior): Ditto.
11097 * source.c (ambiguous_line_spec): Ditto.
11098 * remote.c (adapt_remote_get_threadinfo): Ditto.
11099 * mi/mi-out.c (out_field_fmt): Ditto.
11100 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11101 (output_control_change_notification): Ditto.
11102 * m68k-tdep.c (m68k_register_byte): Ditto.
11103 (m68k_remote_breakpoint_from_pc): Ditto.
11104 * ui-out.c (init_ui_out_state): Delete unused declaration.
11105 * stabsread.c (search_value): Ditto.
11106 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11107 * maint.c (print_section_table): Ditto.
11108 * infrun.c (set_follow_fork_mode_command): Ditto.
11109
a8504492
MK
111102004-01-18 Mark Kettenis <kettenis@gnu.org>
11111
11112 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11113 DW_CFA_def_cfa_exporession. Add support for
11114 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11115 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11116
0bd8997e
AC
111172004-01-18 Andrew Cagney <cagney@redhat.com>
11118
11119 * ocd.c: Update copyright.
11120 (bdm_read_register_command): Delete unused function.
11121 (_initialize_remote_ocd): Delete commented out reference.
11122 (get_quoted_char, reset_packet): Delete #if0ed function.
11123 (output_packet, put_quoted_char): Delete #if0ed function.
11124 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11125 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11126 (BDM_BREAKPOINT): Delete #if0ed macro.
11127 (remote_timeout): Delete #if0ed variable.
11128
31bb40e4
MK
111292004-01-18 Mark Kettenis <kettenis@gnu.org>
11130
11131 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11132 (core-sol2.o): Remove dependency.
11133 * core-sol2.c: Remove file.
11134
887432a5
AC
111352004-01-17 Andrew Cagney <cagney@redhat.com>
11136
11137 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11138 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11139 enums.
11140
29182b13
DJ
111412004-01-17 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * remote.c: Update copyright years.
11144
2963ee1d
DJ
111452004-01-17 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11148
79d45cd4
AC
111492004-01-17 Andrew Cagney <cagney@redhat.com>
11150
ee300cd4
AC
11151 * mdebugread.c: Update copyright.
11152 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11153 (parse_type, parse_procedure): Ditto.
11154 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11155
fcacc9c2
AC
11156 * cris-tdep.c (cris_store_struct_return): Put back accidently
11157 deleted function.
11158
79d45cd4
AC
11159 * gdbarch.sh: Update copyright year.
11160 * gdbarch.h, gdbarch.c: Re-generate.
11161
b263358a
DJ
111622004-01-17 Daniel Jacobowitz <drow@mvista.com>
11163
11164 Suggested by George Anzinger.
11165 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11166 correct stack offset. Include unknown opcode numbers in the error
11167 message.
11168
931aecf5
AC
111692004-01-17 Andrew Cagney <cagney@redhat.com>
11170
11171 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11172 extract_struct_value_address, i386 does not set it.
11173 * sparc64-tdep.c (sparc64_init_abi): Do not set
11174 extract_struct_value_address, never called.
11175 (sparc64_extract_struct_value_address): Delete function.
11176 * m68hc11-tdep.c: Update copyright.
11177 (m68hc11_gdbarch_init): Delete redundant assignment of
11178 extract_struct_value_address.
11179 * i386-tdep.c: Update copyright.
11180 (i386_gdbarch_init): Do not set extract_struct_value_address,
11181 never called.
11182 (i386_extract_struct_value_address): Delete function.
11183 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11184 extract_struct_value_address, never called.
11185 (sparc32_extract_struct_value_address): #if 0 function. Add
11186 comments explaining its future.
11187
756fe439
DJ
111882004-01-17 Daniel Jacobowitz <drow@mvista.com>
11189
11190 * arm-tdep.c (arm_write_pc): New function.
11191 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11192
e74f0f02
DJ
111932004-01-17 Daniel Jacobowitz <drow@mvista.com>
11194
11195 * breakpoint.c (must_shift_inst_regs): Delete.
11196 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11197 and SHIFT_INST_REGS.
11198 * infcmd.c (step_1, step_1_continuation): Delete references to
11199 SHIFT_INST_REGS.
11200 * infrun.c (keep_going): Likewise.
11201 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11202 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11203
b6cb9035
AC
112042004-01-17 Andrew Cagney <cagney@redhat.com>
11205
444a1e2e
AC
11206 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11207 * gdbarch.h, gdbarch.c: Re-generate.
11208 * infcmd.c (print_return_value): Delete reference to
11209 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11210
def7e6ed
AC
11211 * cris-tdep.c (cris_gdbarch_init): Do not set
11212 deprecated_extract_struct_value_address.
11213
07be497a
AC
11214 * xstormy16-tdep.c: Update copyright.
11215 (xstormy16_extract_struct_value_address): Update to current
11216 extract struct value address interface.
11217 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11218 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11219 current extract struct value address interface.
11220 (sh64_gdbarch_init): Set extract_struct_value_address.
11221
6b4d5c91
AC
11222 * cris-tdep.c: Update copyright.
11223 (cris_extract_struct_value_address): Delete function.
11224 (struct_return_address): Delete variable.
11225 (cris_store_struct_return): Do not set struct_return_address.
11226
464e0365
AC
11227 * mcore-tdep.c: Update copyright.
11228 (mcore_extract_struct_value_address): Delete function. Update
11229 comments.
11230 (mcore_gdbarch_init): Update.
11231 * mn10300-tdep.c: Update copyright.
11232 (mn10300_extract_struct_value_address): Delete function.
11233 (mn10300_gdbarch_init): Update.
11234 * v850-tdep.c: Update copyright.
11235 (v850_extract_struct_value_address): Delete.
11236 (v850_gdbarch_init): Update.
11237 * ns32k-tdep.c: Update copyright.
11238 (ns32k_extract_struct_value_address): Delete.
11239 (ns32k_gdbarch_init): Update.
11240 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11241 (hppa_gdbarch_init): Update.
11242 * vax-tdep.c: Update copyright.
11243 (vax_extract_struct_value_address): Delete.
11244 (vax_gdbarch_init): Update.
11245
afb18d0f
AC
11246 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11247 * gdbarch.h, gdbarch.c: Re-generate.
11248 * procfs.c (procfs_fetch_registers): Delete reference to
11249 DEPRECATED_NPC_REGNUM.
11250 (procfs_store_registers): Ditto.
11251 * regcache.c (generic_target_write_pc): Simplify.
11252 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11253
a698f53e
AC
11254 * core-sol2.c (fetch_core_registers): Replace
11255 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11256
adc11376
AC
11257 * hppa-tdep.c: Update copyright year.
11258 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11259 NPC_REGNUM.
11260 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11261
b6cb9035
AC
11262 * mips-tdep.c (mips_write_pc): New function.
11263 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11264 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11265 (mips_find_saved_regs, mips_software_single_step: Ditto.
11266 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11267 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11268
6d82d43b
AC
112692004-01-17 Andrew Cagney <cagney@redhat.com>
11270
11271 * mips-tdep.c: Re-indent. Group functions by ABI.
11272
71bd6bd4
AC
112732004-01-17 Andrew Cagney <cagney@redhat.com>
11274
11275 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11276 * gdbarch.c: Re-generate.
11277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11278 DECR_PC_AFTER_BREAK to zero.
11279 * vax-tdep.c (vax_gdbarch_init): Ditto.
11280 * v850-tdep.c (v850_gdbarch_init): Ditto.
11281 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11282 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11283 * sh-tdep.c (sh_gdbarch_init): Ditto.
11284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11285 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11286 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11287 * mips-tdep.c (mips_gdbarch_init): Ditto.
11288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11290 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11291 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11292 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11293 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11294 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11295 * frv-tdep.c (frv_gdbarch_init): Ditto.
11296 * cris-tdep.c (cris_gdbarch_init): Ditto.
11297 * avr-tdep.c (avr_gdbarch_init): Ditto.
11298 * arm-tdep.c (arm_gdbarch_init): Ditto.
11299 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11300
a02abb62
JB
113012004-01-17 J. Brobecker <brobecker@gnat.com>
11302
11303 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11304 Delete, no longer used.
11305 (read_subrange_type): New function, mostly extracted from
11306 read_array_type().
11307 (read_array_type): Replace extracted code by call to
11308 read_subrange_type().
11309 (dwarf2_get_attr_constant_value): New function.
11310 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11311 (add_partial_symbol): Likewise.
11312 (process_die): Likewise.
11313 (new_symbol): Likewise.
11314 (read_type_die): Likewise.
11315
cf5b2f1b
AC
113162004-01-16 Andrew Cagney <cagney@redhat.com>
11317
11318 * symfile.c: Update copyright year.
11319 (compare_symbols): Delete unused function.
11320 * stabsread.c: Update copyright year.
11321 (lrs_general_complaint): Delete unused function.
11322 (ref_search_value): Ditto.
11323 (get_substring): Delete declaration.
11324 * sh64-tdep.c: Update copyright year.
11325 (sh64_get_gdb_regnum): Delete unused function.
11326 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11327 Delete unused function.
11328
d33b9831
MK
113292004-01-17 Mark Kettenis <kettenis@gnu.org>
11330
11331 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11332 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11333
7aea86e6
AC
113342004-01-16 Andrew Cagney <cagney@redhat.com>
11335
11336 Changes from Peter Schauer.
11337 * rs6000-tdep.c: Update copyright year.
11338 (rs6000_push_dummy_call): Update the stack pointer before
11339 accessing the corresponding stack region.
11340 * rs6000-nat.c: Update copyright year.
11341 (set_host_arch): Set "info.abfd" to "exec_bfd".
11342
26b0da32
MK
113432004-01-15 Mark Kettenis <kettenis@gnu.org>
11344
11345 * blockframe.c: Update copyright year.
11346 (inside_entry_func): Don't treat a zero PC specially.
11347
86fbe6cc
EZ
113482004-01-14 Elena Zannoni <ezannoni@redhat.com>
11349
11350 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11351 variable.
11352 (gcore_create_callback): Ditto. Skip any memory segment that has
11353 no permissions set.
11354
63d06c5c
DC
113552004-01-14 David Carlton <carlton@kealia.com>
11356
11357 Change symbols for C++ nested types to contain the fully qualified
11358 name, if possible. (At least in the DWARF-2 case.) Partial fix
11359 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11360 c++/895.
11361 * c-exp.y (qualified_type): Handle types nested within classes.
11362 * cp-namespace.c: Update comments.
11363 (cp_set_block_scope): Delete #if 0.
11364 (cp_lookup_nested_type): Handle types nested within classes.
11365 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11366 when appropriate.
11367 (add_partial_symbol): Add the name of the enclosing namespace to
11368 types.
11369 (pdi_needs_namespace): New.
11370 (add_partial_namespace): Tweak comment.
11371 (add_partial_structure): New.
11372 (psymtab_to_symtab_1): Initialize processing_current_prefix
11373 here...
11374 (process_die): instead of here.
11375 (read_structure_scope): Try to figure out the name of the class or
11376 namespace that the structure might be defined within.
11377 (read_enumeration): Generate fully-qualified names, if possible.
11378 (read_namespace): Don't set name to NULL.
11379 (die_specification): New.
11380 (new_symbol): Generate fully-qualified names for types.
11381 (read_type_die): Determine appropriate prefix.
11382 (determine_prefix): New.
11383 (typename_concat): New.
11384 (class_name): New.
11385 * valops.c (value_aggregate_elt): Pass NOSIDE to
11386 value_struct_elt_for_reference.
11387 (value_struct_elt_for_reference): Make static, add NOSIDE
11388 parameter, call value_maybe_namespace_elt as a last resort.
11389 (value_namespace_elt): Break out code into
11390 value_maybe_namespace_elt.
11391 (value_maybe_namespace_elt): New.
11392
87783b8b
AC
113932004-01-12 Andrew Cagney <cagney@redhat.com>
11394
11395 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11396 cooked floating-point registers.
11397 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11398 and value_to_register.
11399
6503b91e
AC
114002004-01-13 Andrew Cagney <cagney@redhat.com>
11401
11402 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11403 * gdbarch.c: Re-generate.
11404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11405 FUNCTION_START_OFFSET.
11406 * v850-tdep.c (v850_gdbarch_init): Ditto.
11407 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11408 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11409 * sh-tdep.c (sh_gdbarch_init): Ditto.
11410 * s390-tdep.c (s390_gdbarch_init): Ditto.
11411 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11412 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11413 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11414 * mips-tdep.c (mips_gdbarch_init): Ditto.
11415 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11416 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11418 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11420 * i386-tdep.c (i386_gdbarch_init): Ditto.
11421 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11422 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11423 * frv-tdep.c (frv_gdbarch_init): Ditto.
11424 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11425 * cris-tdep.c (cris_gdbarch_init): Ditto.
11426 * avr-tdep.c (avr_gdbarch_init): Ditto.
11427 * arm-tdep.c (arm_gdbarch_init): Ditto.
11428 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11429
ea1dd7bc
DJ
114302004-01-13 Daniel Jacobowitz <drow@mvista.com>
11431
11432 * infrun.c (follow_fork_mode_ask): Remove.
11433 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11434 (follow_fork): Simplify and remove internal error for
11435 follow_fork_mode_ask.
11436 (_initialize_infrun): Update "set follow-fork-mode" help text.
11437
0f0cffd2
AC
114382004-01-13 Andrew Cagney <cagney@redhat.com>
11439
11440 * configure.in: Update copyright year.
11441 (build_warnings): Add -Wunused-label.
11442 * configure: Re-generate.
11443
de38af99
AC
114442004-01-12 Andrew Cagney <cagney@redhat.com>
11445
954a7fba
AC
11446 * exec.h (exec_ops): Make "extern".
11447
de38af99
AC
11448 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11449 the function is void.
11450 (mips_pseudo_register_write): Ditto.
11451
1a111ce3
AC
114522004-01-12 Andrew Cagney <cagney@redhat.com>
11453
11454 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11455 call. Never defined.
11456 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11457 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11458 (struct sparc_gregset, struct regcache): Ditto.
11459 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11460
48efe704
AC
114612004-01-12 Andrew Cagney <cagney@redhat.com>
11462
11463 * mi/ChangeLog: Delete file. Renamed to ...
11464 * mi/ChangeLog-1999-2003: New file.
11465 * tui/ChangeLog: Delete file. Renamed to ...
11466 * tui/ChangeLog-1998-2003: New file.
fe61caab 11467
a54124c5
MK
114682004-01-11 Mark Kettenis <kettenis@gnu.org>
11469
2ca62865
MK
11470 * sparc64nbsd-tdep.c: Include "regset.h".
11471 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11472 Remove variables.
11473 (fetch_core_registers): Remove function.
11474 (sparc64nbsd_core_fns): Remove variable.
11475 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11476 functions.
11477 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11478 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11479 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11480
ca9d58e9
MK
11481 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11482 sparc_extract_struct_value_address.
11483 (sparc32_gdbarch_init): Set extract_struct_value_address.
11484 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11485 function.
11486 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11487 return_value_on_stack.
11488
3cc87ec0
MK
11489 * NEWS: Mention that %cs and %ss have been added to the AMD64
11490 configurations
11491
5bf00f29
MK
11492 * frame.c: Update copyright year.
11493 (get_prev_frame): Improve comment.
11494
4f7ec84e
MK
11495 * sparc64fbsd-tdep.c: Include "regset.h".
11496 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11497 Remove variables.
11498 (fetch_core_registers): Remove function.
11499 (sparc64fbsd_core_fns): Remove variable.
11500 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11501 functions.
11502 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11503 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11504 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11505
4e7b0cd3
MK
11506 * sparcnbsd-tdep.c: Include "regset.h".
11507 (fetch_core_registers): Remove function.
11508 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11509 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11510 functions.
11511 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11512 TDEP->fpregset.
46b58ce9 11513 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11514
a54124c5
MK
11515 * sparc-tdep.h (struct regset): Provide opaque declaration.
11516 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11517 fpregset and sizeof_fpregset members.
11518 * sparc-tdep.c (struct regset): Provide opaque declaration.
11519 (sparc_regset_from_core_section): New function.
11520 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11521 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11522 Set regset_from_core_section when appropriate.
11523
29ff87c5
MK
115242004-01-10 Mark Kettenis <kettenis@gnu.org>
11525
79b1ab3d
MK
11526 * x86-64-tdep.c (amd64_non_pod_p): New function.
11527 (amd64_classify_aggregate): Return class memory for non-POD
11528 C++ structure types.
11529
6470d250
MK
11530 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11531 argument. Use it to reserve a register if necessary.
11532 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11533 amd64_push_arguments.
11534
562c50c2
MK
11535 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11536
af233647
MK
11537 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11538 register numbers in comments.
11539 * x86-64-tdep.h: Update copyright year.
11540 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11541 Adjust for addition of %cs and %ss.
11542 * amd64fbsd-nat.c: Update copyright year.
11543 (reg_offset): Add register offsets for %cs and %ss.
11544 * amd64fbsd-tdep.c: Update copyright year.
11545 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11546 (amd64fbsd_sc_reg_offset): Likewise.
11547 * x86-64-linux-nat.c: Update copyright year.
11548 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11549 and %ss.
11550 * amd64nbsd-nat.c: Update copyright year.
11551 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11552 * amd64nbsd-tdep.c: Update copyright year.
11553 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11554 * x86-64-linux-tdep.c: Update copyright year.
11555 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11556 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11557 * regformats/reg-x86-64.dat: Add %cs and %ss.
11558
29ff87c5
MK
11559 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11560 variables to prevent long lines. Update comments to reflect
11561 reality.
11562
38d518c9
EZ
115632004-01-09 David Carlton <carlton@kealia.com>
11564
11565 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11566 * dwarf2read.c (read_namespace): Pull out name-generating code
11567 into namespace_name. Rename previous_namespace to previous_prefix
11568 and processing_current_namespace to processing_current_prefix..
11569 (namespace_name): New function.
11570 (add_partial_symbol): Substitute uses of pdi->name with
11571 actual_name.
11572 * cp-support.h: Rename processing_current_namespace to
11573 processing_current_prefix.
11574 Update copyright year.
11575 * cp-namespace.c: Rename processing_current_namespace to
11576 processing_current_prefix.
11577 Update copyright year.
fe61caab 11578
1e4728e7
AC
115792004-01-09 Andrew Cagney <cagney@redhat.com>
11580
11581 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11582
c77c642a
MK
115832004-01-09 Mark Kettenis <kettenis@gnu.org>
11584
11585 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11586 complaining.
11587 (process_one_symbol): Deal with N_PATCH stabs.
11588
b44e9041
EZ
115892004-01-09 Elena Zannoni <ezannoni@redhat.com>
11590
11591 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11592 ifdeffed code.
11593 Update copyright year.
38d518c9 11594
eccfb640
MC
115952004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11596
11597 * config/pa/tm-hppa.h: Update extern declarations for
11598 hppa32_hpux_frame_saved_pc_in_sigtramp,
11599 hppa32_hpux_frame_base_before_sigtramp, and
11600 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11601
848c5feb
MC
116022004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11603
11604 * config/pa/tm-hppah.h: Update copyright years.
11605
3cc5d663
AC
116062004-01-08 Andrew Cagney <cagney@redhat.com>
11607
11608 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11609 (mips_o32_reg_struct_has_addr): Delete function.
11610 (mips_gdbarch_init): Update.
11611 (mips_extract_struct_value_address): Delete function.
11612
bfec0b41
JJ
116132004-01-08 David Mosberger <davidm@hpl.hp.com>
11614
11615 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11616 reality.
11617
16e109ca
AC
116182004-01-07 Andrew Cagney <cagney@redhat.com>
11619
6214a8a1
AC
11620 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11621 architecture's elf flags (when available).
11622
8d5838b5
AC
11623 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11624 FPU to the start, check the MIPS FPU when looking for an old
11625 architecture.
11626 (set_mipsfpu_single_command): Update the architecture.
11627 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11628
480d3dd2
AC
11629 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11630 (mips_mask_address_p): Add "tdep" parameter.
11631 (show_mask_address, mips_addr_bits_remove): Update.
11632 (mips_dump_tdep): Update.
11633 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11634 (MIPS_STACK_ARGSIZE): Delete macro.
11635 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11636 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11637 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11638 (mips_dump_tdep): Update.
11639 (MIPS_SAVED_REGSIZE): Delete macro.
11640 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11641 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11642 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11643 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11644 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11645 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11646 (mips_pop_frame, return_value_location): Update.
11647 (mips_n32n64_return_value, mips_dump_tdep): Update.
11648
ec03c1ac
AC
11649 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11650 MIPS ABI.
11651
16e109ca
AC
11652 * mips-tdep.c: Update copyright.
11653 (mips_gdbarch_init): Merge two code blocks handling the register
11654 name and number layout.
11655
15255275
MS
116562004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11657
11658 * tracepoint.c (validate_actionline): Fix segv at EOF
11659
9f9057da
MC
116602004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11661
11662 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11663 properly for static fields.
11664
0127c0d3 116652004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11666 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11667
11668 * disasm.c: Update copyright to include 2004.
11669 (do_mixed_source_and_assembly): For uiout asm list
11670 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11671 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11672 the tuple/list. Move check for whether to close off the
fe61caab 11673 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11674 on each loop iteration.
11675
5269965e
AC
116762004-01-05 Andrew Cagney <cagney@redhat.com>
11677
54f1137d
AC
11678 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11679 should be a switch case and not a label.
11680 * mips-tdep.c (mips32_next_pc): Delete unused labels
11681 "greater_equal_branch" and "less_zero_branch".
11682 * jv-valprint.c (java_print_value_fields): Delete unused label
11683 "flush_it".
11684
5269965e
AC
11685 * target.c (unpush_target): Only close a target that is in the
11686 target stack.
11687
dbc22fa1
MK
116882004-01-05 Mark Kettenis <kettenis@gnu.org>
11689
9515395e
MK
11690 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11691 address from [sp + 64] instead of %o2.
11692
dbc22fa1
MK
11693 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11694 fixes PR backtrace/1476.
11695
5439edaa
AC
116962004-01-05 Andrew Cagney <cagney@redhat.com>
11697
11698 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11699 move to start of file.
11700 * i386-tdep.h (struct regcache): Add opaque declaration.
11701 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11702 declaration.
11703 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11704 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11705 * win32-nat.c (fake_create_process): Use ISO C style definition.
11706 * stabsread.c (define_symbol): Delete #ifndef
11707 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11708 stabs_argument_has_addr call, macro never defined.
11709
19061abe
MC
117102004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11711
11712 * op50-rom.c: Delete.
11713 * w89k-rom.c: Delete.
11714 * Makefile.in: Remove references.
11715
e53bef9f
MK
117162004-01-04 Mark Kettenis <kettenis@gnu.org>
11717
11718 * x86-64-tdep.c: Update copyright year.
11719 (struct amd64_register_info): Rename from x86_64_register_info.
11720 (amd64_register_info): Rename from x86_64_register_info.
11721 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11722 (amd64_register_name): Rename from x86_64_register_name.
11723 (amd64_register_type): Rename from x86_64_register_type.
11724 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11725 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11726 (amd64_dwarf_reg_to_regnum): Rename from
11727 x86_64_dwarf_reg_to_regnum.
11728 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11729 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11730 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11731 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11732 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11733 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11734 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11735 (amd64_frame_cache): Rename from x86_64_frame_cache.
11736 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11737 (amd64_frame_prev_register): Rename from
11738 x86_64_frame_prev_register.
11739 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11740 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11741 (amd64_sigtramp_frame_cache): Rename from
11742 x86_64_sigtramp_frame_cache.
11743 (amd64_sigtramp_frame_prev_register): Rename from
11744 x86_64_sigtramp_frame_prev_register.
11745 (amd64_sigtramp_frame_unwind): Rename from
11746 x86_64_sigtramp_frame_unwind.
11747 (amd64_sigtramp_frame_sniffer): Rename from
11748 x86_64_sigtramp_frame_sniffer.
11749 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11750 (amd64_frame_base): Rename from x86_64_frame_base.
11751 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11752 (amd64_frame_align): Rename from x86_64_frame_align.
11753 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11754 (amd64_regset_from_core_section): Rename from
11755 x86_64_regset_from_core_section.
11756 (x86_64_init_abi): Update comments.
11757
fca6aa58
NR
117582004-01-04 Nick Roberts <nick@nick.uklinux.net>
11759
11760 * MAINTAINERS (write after approval): Add myself.
11761
8ada74e3
MK
117622004-01-04 Mark Kettenis <kettenis@gnu.org>
11763
11764 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11765 `float' arguments.
11766
5154b0cd
MK
117672004-01-04 Mark Kettenis <kettenis@gnu.org>
11768
11769 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11770 such that it mentions a specific version of GCC that exhibits this
11771 bug.
11772
fb316966
MK
117732004-01-03 Mark Kettenis <kettenis@gnu.org>
11774
200cc553
MK
11775 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11776 structure that has a single `float' member, store it in %f1 in
11777 addition to %f0.
11778
e226a4a0
MK
11779 * sparc-sol2-nat.c: Add missing '\'.
11780
b9d4c5ed
MK
11781 * sparc-tdep.c (sparc32_return_value): New function.
11782 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11783 Remove functions.
11784 (sparc32_gdbarch_init): Set return_value, don't set
11785 extract_return_value, store_return_value, use_struct_convention
11786 and return_value_on_stack.
11787
fb316966
MK
11788 * sparc-sol2-nat.c: Add missing ')'.
11789
1af510a8
JB
117902004-01-03 J. Brobecker <brobecker@gnat.com>
11791
11792 * infrun.c (handle_step_into_function): New function.
11793 (handle_inferior_event): Extract out some code into the new
11794 function above.
11795
5cf4d23a
JB
117962004-01-03 J. Brobecker <brobecker@gnat.com>
11797
11798 * infrun.c (handle_inferior_event): Move the declaration of
11799 real_stop_pc inside the if blocks where it is used.
11800
60af1db2
MK
118012004-01-03 Mark Kettenis <kettenis@gnu.org>
11802
11803 * sparc64-tdep.c (sparc64_16_byte_align_p)
11804 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11805 Use check_typedef to get subtypes of structures and unions.
11806 (sparc64_store_return_value): Fix calculation of the appropriate
11807 offset into VALBUF when storing a structure or union.
11808 (sparc64_return_value): New function.
11809 (sparc64_use_struct_convention): Remove function.
11810 (sparc64_init_abi): Set return_value, don't set
11811 extract_return_value, store_return_value and
11812 use_struct_convention.
11813
1a901d3f
EZ
118142004-01-03 Eli Zaretskii <eliz@elta.co.il>
11815
11816 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11817 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11818 gdb/config/alpha/xm-alphaosf.h,
11819 gdb/config/powerpc/tm-ppcle-eabi.h,
11820 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11821 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11822 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11823 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11824 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11825 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11826 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11827 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11828 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11829 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11830 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11831 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11832 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11833 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11834 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11835 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11836 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11837 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11838 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11839 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11840 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11841 Remove lines for .cvsignore files.
11842
ef52e463
JB
118432004-01-03 J. Brobecker <brobecker@gnat.com>
11844
11845 * infrun.c: Back out the previous change.
11846
cb1bf9dc
MK
118472004-01-03 Mark Kettenis <kettenis@gnu.org>
11848
f0424ef6
MK
11849 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11850 sparc-*-sunos4* to the list of REMOVED configurations.
11851
cb1bf9dc
MK
11852 * configure.tgt: Add back sparc-*-vxworks*.
11853 * remote-vxsparc.c: Remove all includes except for "defs.h",
11854 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11855 Include "sparc-tdep.h".
11856 (SPARC_R_G1): New define.
11857 (vxsparc_gregset): New variable.
11858 (ext_format_sparc): Remove extern declaration.
11859 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11860 sparc32_supply_fpregset.
11861 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11862 sparc_collect_rwindow and sparc32_collect_fpregset.
11863 * config/sparc/tm-vxworks.h: New file, based on recently removed
11864 tm-vxsparc.h.
11865 * config/sparc/vxworks.mt: New file, based on recently removed
11866 vxworks.mt.
fe61caab 11867
5e938f9f
JB
118682004-01-03 J. Brobecker <brobecker@gnat.com>
11869
11870 * infrun.c (handle_step_into_function): New function.
11871 (handle_inferior_event): Extract out some code into the new
11872 function above.
11873
386c036b
MK
118742004-01-02 Mark Kettenis <kettenis@gnu.org>
11875
11876 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11877 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11878 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11879 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11880 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11881 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11882 (sparc_nat_h): New variable.
11883 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11884 (tm-sun4os4.h): Remove dependency.
11885 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11886 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11887 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11888 sparc-tdep.o): Update dependencies.
11889 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11890 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11891 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11892 dependencies.
11893 * configure.host: Remove existing sparc-*-lynxos*,
11894 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11895 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11896 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11897 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11898 triplets.
11899 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11900 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11901 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11902 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11903 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11904 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11905 sparc64-*-solaris2* and sparc64-*-* triplets.
11906 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11907 "symtab.h" and "objfiles.h".
11908 (BIAS): Remove define.
11909 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11910 (X_DISP19): Remove macros.
11911 (sparc_fetch_instruction): Remove function.
11912 (struct gdbarch_tdep): Remove definition.
11913 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11914 (sparc_breakpoint_from_pc): Remove function.
11915 (struct sparc64_frame_cache): Remove definition.
11916 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11917 sparc64_unwind_pc): Remove functions.
11918 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11919 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11920 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11921 (sparc64_frame_cache): Change return type to `struct
11922 sparc_frame_cache *'. Simply call sparc_frame_cache.
11923 (sparc64_frame_this_id, sparc64_frame_prev_register,
11924 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11925 instead of `struct sparc64_frame_cache.
11926 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11927 sparc_analyze_control_transfer, sparc_software_single_step,
11928 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11929 _initialize_sparc64_tdep): Remove functions.
11930 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11931 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11932 macros.
11933 (sparc64_supply_gregset, sparc64_collect_gregset,
11934 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11935 (sparc64_init_abi): New function.
11936 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11937 inclusion guard. Include "sparc-tdep.h".
11938 (BIAS): Define.
11939 (r_tstate_offset, r_fprs_offset): New defines.
11940 (enum sparc_regnum): Remove defenition.
11941 (enum sparc64_regnum): Reformat.
11942 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11943 (sparc64_init_abi, sparc64_supply_gregset,
11944 sparc64_collect_gregset, sparc64_supply_fpregset,
11945 sparc64_collect_fpregset): New prototypes.
11946 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11947 Add extern declarations.
11948 (sparc64_sol2_init_abi): New prototype.
11949 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11950 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11951 prototypes.
11952 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11953 "sparnbsd-nat.h".
11954 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11955 functions.
11956 (_initialize_sparc64fbsd_nat): Remove initialization of
11957 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11958 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11959 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11960 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11961 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11962 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11963 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11964 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11965 (sparc64fbsd_r_y_offset): Remove variables.
11966 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11967 Make static and const.
11968 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11969 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11970 functions.
11971 (sparc64fbsd_gregset): New variable.
11972 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11973 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11974 and sparc64_supply_fpregset.
11975 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11976 (sparc64fbsd_sigtramp_frame_this_id)
11977 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11978 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11979 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11980 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11981 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11982 * sparcnbsd-tdep.c: Update copyright year. Include
11983 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11984 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11985 "value.h" and "sparcnbsd-tdep.h".
11986 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11987 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11988 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11989 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11990 defines.
11991 (sparcnbsd_gregset): New variable.
11992 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11993 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11994 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11995 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11996 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11997 variables.
11998 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11999 (sparc32nbsd_sigcontext_frame_this_id)
12000 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12001 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12002 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12003 (sparcnbsd_get_longjmp_target_32,
12004 sparcnbsd_get_longjmp_target_64): Remove functions.
12005 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12006 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12007 sparcnbsd_init_elf): Remove.
12008 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12009 (sparcnbsd_elf_init_abi): New functions.
12010 (_initialize_sparcnbsd_tdep): New prototype.
12011 (_initialize_sparnbsd_tdep): Update.
12012 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12013 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12014 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12015 * config/sparc/linux.mh: Update comment.
12016 (XM_FILE, HOST_IPC): Remove variables.
12017 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12018 sparc-linux-nat.o.
12019 * config/sparc/linux.mt: Update comment.
12020 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12021 * config/sparc/nbsd.mt: Reformat.
12022 * config/sparc/nbsd64.mh: Update comment.
12023 (NATDEPFILES): Add sparc-nat.o.
12024 * config/sparc/nbsd64.mt: Update comment.
12025 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12026 (TM_FILE): Set to tm-nbsd.h.
12027 * config/sparc/nbsdelf.mh: Update comment.
12028 (NATDEPFILES): Add sparc-nat.o.
12029 (XM_FILE): Delete.
12030 * config/sparc/nbsdaout.mh: Update comment.
12031 (NATDEPFILES): Add sparc-nat.o
12032 (XM_FILE): Delete.
12033 * config/sparc/nm-linux.h: Update copyright year. Don't include
12034 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12035 inclusion.
12036 (KERNEL_U_SIZE): Remove define.
12037 (kernel_u_size): Remove prototype.
12038 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12039 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12040 "regcache.h".
12041 (CHILD_PREPARE_TO_STORE): Remove define.
12042 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12043 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12044 sparcnbsd-nat.c: Rewrite files.
12045 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12046 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12047 sparcnbsd-tdep.h: Remove files.
12048 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12049 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12050 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12051 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12052 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12053 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12054 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12055 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12056 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12057 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12058 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12059 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12060 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12061 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12062 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12063 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12064 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12065 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12066 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12067
ee84457a
AC
120682004-01-02 Andrew Cagney <cagney@redhat.com>
12069
12070 From 2003-12-18 Kazuhiro Inaoka:
12071 * configure.host: Add m32r-linux target.
12072
0bc2134e
MC
120732004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12074
12075 * top.c (print_gdb_version): Update year to 2004.
12076
89a72f9c
MM
120772004-01-02 Mark Mitchell <mark@codesourcery.com>
12078
12079 * MAINTAINERS: Add myself to the write-after-approval category.
12080
86b013ed
DJ
120812004-01-02 Daniel Jacobowitz <drow@mvista.com>
12082
12083 From Bernardo Innocenti <bernie@develer.com>:
12084 * configure.tgt: Add uClinux target.
12085
e42c9534
AC
120862004-01-02 Andrew Cagney <cagney@redhat.com>
12087
12088 * utils.c (do_my_cleanups): Make static, add forward declaration.
12089 * defs.h (do_my_cleanups): Delete declaration.
12090
162467d3
EZ
120912004-01-02 Eli Zaretskii <eliz@elta.co.il>
12092
12093 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12094 bfd/ChangeLog-0203.
12095
78434e59
MK
120962004-01-02 Mark Kettenis <kettenis@gnu.org>
12097
12098 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12099 in <machine/reg.h>.
12100 * configure, config.in: Regenerate.
12101
48efe704
AC
12102For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12103tui/ChangeLog-1998-2003.
c906108c
SS
12104\f
12105Local Variables:
12106mode: change-log
12107left-margin: 8
12108fill-column: 74
12109version-control: never
12110End:
This page took 1.124115 seconds and 4 git commands to generate.