Check in the new files.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-04-22 Andrew Cagney <cagney@redhat.com>
2
3 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6 to DEPRECATED_PUSH_RETURN_ADDRESS.
7
8 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9
10 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
11 on the DWARF2 register number prior to fetching a register.
12
13 2003-04-22 J. Brobecker <brobecker@gnat.com>
14
15 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
16 Update all the tests using SOFT_FLOAT considering the fact that
17 this macro was always set to 0.
18 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
19 considering the fact that this macro was always set to 0.
20 * hppa-tdep.h (hppa_store_return_value): Likewise.
21 (hppa_extract_return_value): Likewise.
22
23 2003-04-22 J. Brobecker <brobecker@gnat.com>
24
25 * config/pa/tm-hppa.h: Remove obsolete code, was used by
26 the hppa-pro target only.
27
28 2003-04-21 J. Brobecker <brobecker@gnat.com>
29
30 Ongoing multi-arch conversion effort for HP/UX:
31 * config/pa/tm-hppa.h: Move all macro that are no longer
32 defined now that GDB_MULTI_ARCH is now set to 1 from here...
33 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
34
35 2003-04-21 J. Brobecker <brobecker@gnat.com>
36
37 * config/pa/tm-hppa.h: Obsolete a section that was only used
38 for hppa-pro.
39
40 2003-04-21 J. Brobecker <brobecker@gnat.com>
41
42 Ongoing multi-arch conversion for HP/UX.
43 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
44 if already defined (allows hppa64 to stay non-multiarched for now).
45 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
46
47 2003-04-21 Andrew Cagney <cagney@redhat.com>
48
49 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
50
51 2003-04-21 Andrew Cagney <cagney@redhat.com>
52
53 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
54 "i386_num_mmx_regs".
55
56 2003-04-21 Andrew Cagney <cagney@redhat.com>
57
58 * infcall.c: New file.
59 * infcall.h: New file.
60 * valarith.c: Include "infcall.h".
61 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
62 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
63 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
64 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
65 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
66 (SFILES): Add "infcall.c"
67 (COMMON_OBS): Add "infcall.o".
68 (infcall.o): Specify dependencies.
69 * value.h (call_function_by_hand): Delete declaration.
70 * inferior.h (run_stack_dummy): Delete declaration.
71 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
72 (run_stack_dummy): Move to "infcall.c", merged into
73 call_function_by_hand.
74 * valops.c (call_function_by_hand): Moved to "infcall.c".
75 (find_function_addr, value_arg_coerce): Ditto.
76 (unwindonsignal_p, coerce_float_to_double): Ditto.
77 (_initialize_valops): Move "set/show coerce-float-to-double", and
78 "set/show unwindonsignal" commands to "infcall.c".
79 * v850-tdep.c, target.h: Update comments.
80 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
81 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
82 (sh64_init_extra_frame_info): Update comments.
83 * mn10300-tdep.c: Update comments.
84 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
85 * config/sparc/tm-sparc.h: Update comments.
86 * breakpoint.h: Update comments.
87 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
88 * arm-tdep.c: Update comment.
89
90 2003-04-19 Mark Kettenis <kettenis@gnu.org>
91
92 * i386-tdep.c (i386_num_register_names): New variable.
93 (i386_num_mmx_regs): Renamed from mmx_num_regs.
94 (MM0_REGNUM): Remove redundant parentheses in define.
95 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
96 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
97 i386_mxcsr_regnum_p): Remove redundant parentheses.
98 (i386_register_name): Use i386_num_register_names.
99
100 * i386-tdep.c (i386_extract_return_value,
101 i386_store_return_value): Correct check for availability of
102 floating-point registers.
103
104 * i386-tdep.c (i386_frame_num_args): Remove function.
105 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
106
107 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
108 mmx_regnum_to_fp_regnum. Adjust all callers.
109
110 * i386-tdep.c (i386_get_longjmp_target): Use
111 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
112 and TARGET_CHAR_BIT. Use extract_typed_address instead of
113 extract_address.
114
115 2003-04-19 Mark Kettenis <kettenis@gnu.org>
116
117 * core-regset.c: Update comments to reflect reality. Re-order
118 includes.
119 (fetch_core_registers): Use switch instead of if. Remove
120 redundant prototype.
121
122 2003-04-18 Jim Blandy <jimb@redhat.com>
123
124 * s390-tdep.c (s390_frame_align): New function.
125 (s390_gdbarch_init): Register it with the gdbarch object.
126
127 2003-04-17 Richard Henderson <rth@redhat.com>
128
129 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
130
131 2003-04-17 Michael Snyder <msnyder@redhat.com>
132 Karen Bennet <bennet@redhat.com>
133
134 Committed by Elena Zannoni <ezannoni@redhat.com>
135 * gdb_gcore.sh: New script to create a core dump of a process.
136
137 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
138
139 * values.c (value_being_returned): Don't fetch the return
140 value if the return type is void.
141
142 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
143
144 * thread-db.c: Reindented.
145
146 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
147
148 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
149 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
150 as types.
151
152 2003-04-16 Kevin Buettner <kevinb@redhat.com>
153
154 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
155 the size of ``long double'' to 16, instead of 8.
156
157 2003-04-16 Mark Kettenis <kettenis@gnu.org>
158
159 * i386-linux-nat.c: Add some whitespace to make things more
160 readable.
161 (fetch_register, store_register, fetch_inferior_registers,
162 store_inferior_registers): Get rid of assignment in if-statement.
163 (store_register): Fix typo in error message.
164
165 2003-04-16 Andrew Cagney <cagney@redhat.com>
166
167 * utils.c (xmmalloc): Always allocate something, matches
168 libiberty/xmalloc's semantics.
169 (xmrealloc, xmcalloc): Ditto.
170
171 2003-04-16 Andrew Cagney <cagney@redhat.com>
172
173 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
174 update comments.
175 (get_frame_type): Initialize unwind and type when needed.
176 (get_frame_id, frame_register_unwind): Ditto.
177
178 2003-04-16 Andrew Cagney <cagney@redhat.com>
179
180 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
181 obsolete.
182 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
183 * sparcl-stub.c: Obsolete file.
184 * config/sparc/tm-sparclet.h: Obsolete file.
185 * sparclet-stub.c: Obsolete file.
186 * sparclet-rom.c: Obsolete file.
187 * sparcl-tdep.c: Obsolete file.
188 * config/sparc/tm-sparclite.h: Obsolete file.
189 * config/sparc/sparclite.mt: Obsolete file.
190 * config/sparc/sparclet.mt: Obsolete file.
191 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
192 sparc86x-*-* obsolete.
193
194 2003-04-15 David Carlton <carlton@math.stanford.edu>
195
196 * Makefile.in (SFILES): Add cp-namespace.c.
197 (COMMON_OBS): Add cp-namespace.o.
198 (block.o): Depend on gdb_obstack_h and cp_support_h.
199 (buildsym.o): Depend on cp_support_h.
200 (cp-namespace.o): New.
201 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
202 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
203 (dwarf2read.o): Depend on cp_support_h.
204 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
205 * dwarf2read.c (process_die): Set processing_has_namespace_info,
206 processing_current_namespace.
207 (read_namespace): Update processing_current_namespace; check for
208 anonymous namespaces.
209 (dwarf2_name): New function.
210 (dwarf2_extension): Ditto.
211 * cp-support.h: Update copyright, contributors.
212 Add inclusion guards.
213 Add opaque declaration for structs obstack, block, symbol.
214 (struct using_direct): New struct.
215 Add declarations for cp_find_first_component,
216 cp_entire_prefix_len, processing_has_namespace_info,
217 processing_current_namespace, cp_is_anonymous,
218 cp_add_using_directive, cp_initialize_namespace,
219 cp_finalize_namespace, cp_set_block_scope,
220 cp_scan_for_anonymous_namespaces.
221 * cp-namespace.c: New file.
222 * cp-support.c: Update copyright.
223 Include ctype.h, gdb_assert.h, gdbcmd.h.
224 New variable maint_cplus_cmd_list.
225 (cp_find_first_component): New function.
226 (cp_entire_prefix_len, maint_cplus_command)
227 (first_component_command, _initialize_cp_support): Ditto.
228 * buildsym.c: Include cp-support.h.
229 New variable using_list.
230 (add_symbol_to_list): Check for anonymous namespaces.
231 (finish_block): Set block's scope.
232 (start_symtab): Initialize C++ namespace support.
233 (end_symtab): Finalize C++ namespace support.
234 * block.h: Add opaque declarations for structs
235 block_namespace_info, using_direct, and obstack.
236 Add declarations for block_set_scope and block_set_using.
237 (struct block): Add 'language_specific' member.
238 (BLOCK_NAMESPACE): New macro.
239 * block.c: Include gdb_obstack.h and cp-support.h.
240 (struct block_namespace_info): New struct.
241 (block_set_scope): New function.
242 (block_set_using, block_initialize_namespace): Ditto.
243
244 2003-04-14 Kevin Buettner <kevinb@redhat.com>
245
246 * solib-svr4.c (svr4_have_link_map_offsets): New function.
247 (locate_base): Return early if there aren't any link map offsets.
248 (svr4_solib_create_inferior_hook): Warn if shared library support
249 is unavailable.
250
251 2003-04-14 David Carlton <carlton@math.stanford.edu>
252
253 * symtab.c (symbol_set_names): Add prefix when storing Java names
254 in hash table. Fix for PR java/1039.
255
256 2003-04-14 David Carlton <carlton@math.stanford.edu>
257
258 * symtab.c (symbol_set_names): Rename 'name' arg to
259 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
260 * symtab.h: Change 'name' argument in declaration of
261 symbol_set_names to 'linkage_name'.
262 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
263
264 2003-04-14 Andrew Cagney <cagney@redhat.com>
265
266 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
267 return the fully sign-extended register value.
268 (get_frame_pointer): Ditto.
269 (mips_pop_frame): Initialize "proc_desc" after checking for a
270 dummy frame.
271
272 2003-04-14 Andrew Cagney <cagney@redhat.com>
273
274 * mips-tdep.c (mips_push_dummy_frame): Delete function.
275 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
276 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
277 (mips_push_register): Delete function.
278 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
279 PUSH_FP_REGNUM.
280
281 2003-04-14 Jim Blandy <jimb@redhat.com>
282
283 * symmisc.c: #include "gdb_regex.h".
284 (maintenance_list_symtabs, maintenance_list_psymtabs): New
285 functions.
286 * maint.c (maintenance_list_command): New function.
287 (_initialize_maint_cmds): Register the above as commands.
288 * symtab.h (maintenance_list_symtabs,
289 maintenance_list_psymtabs): New declarations.
290 * cli/cli-cmds.c (maintenancelistlist): New variable.
291 (init_cmd_lists): Initialize it.
292 * cli/cli-cmds.h (maintenancelistlist): New declaration.
293 * gdbcmd.h (maintenancelistlist): New declaration.
294 * Makefile.in (symmisc.o): Update dependencies.
295
296 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
297
298 * s390-nat.c: Include asm/types.h for addr_t.
299
300 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
301
302 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
303 actually incoming type.
304
305 2003-04-13 Andrew Cagney <cagney@redhat.com>
306
307 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
308 get_next_frame and get_frame_saved_regs.
309
310 2003-04-13 Andrew Cagney <cagney@redhat.com>
311
312 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
313 of gdbarch_num_regs.
314
315 2003-04-13 Andrew Cagney <cagney@redhat.com>
316
317 * frame.h: Mention what replaced what in "struct frame_info".
318 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
319 deprecated_update_frame_base_hack and
320 deprecated_update_frame_pc_hack.
321 * hppa-tdep.c: Ditto.
322
323 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
324
325 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
326 to read_reg and update its comment. Remove regnum member.
327 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
328 Don't call read_reg when setting in_reg. Call read_reg to get
329 the frame base if it's in a register. Return the register number
330 on the stack instead of in the context. Remove extra arguments
331 to read_reg.
332 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
333 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
334 the register number on the expression stack.
335 (needs_frame_read_reg): Remove extra arguments.
336
337 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
338
339 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
340 made non-static.
341 (execute_stack_op): All callers updated.
342 * dwarf2expr.h: Add prototype for dwarf2_read_address.
343 * dwarf2loc.c (find_location_expression): New function.
344 (dwarf_expr_frame_base): Call it.
345 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
346 (dwarf2_tracepoint_var_ref): New function, broken out from
347 locexpr_tracepoint_var_ref.
348 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
349 Make static.
350 (loclist_read_variable, loclist_read_needs_frame): New functions.
351 (loclist_describe_location, loclist_tracepoint_var_ref): New
352 functions.
353 (dwarf2_loclist_funcs): New struct location_funcs.
354 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
355 (struct dwarf2_locexpr_baton): Add comments.
356 (dwarf2_loclist_funcs): New extern.
357 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
358 base_address and base_known.
359 (dwarf_loc_buffer): New variable.
360 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
361 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
362 (dwarf2_has_info): Initialize dwarf_loc_offset.
363 (dwarf2_build_psymtabs): Read in .debug_loc.
364 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
365 DWARF_LOC_SIZE.
366 (psymtab_to_symtab_1): Likewise. Move base address calculation
367 here, from...
368 (dwarf2_get_pc_bounds): ... here. Use the base address from
369 cu_header.
370 (dwarf2_symbol_mark_computed): Handle location lists.
371
372 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
373
374 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
375 if the linkage name demangled successfully.
376
377 2003-04-13 Mark Kettenis <kettenis@gnu.org>
378
379 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
380 disassmbly_flavour): Removed.
381
382 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
383
384 2003-04-13 Mark Kettenis <kettenis@gnu.org>
385
386 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
387
388 2003-04-12 Andrew Cagney <cagney@redhat.com>
389
390 * frame.h (struct frame_info): Move definition from here ...
391 * frame.c (struct frame_info): ... to here.
392
393 2003-04-12 Andrew Cagney <cagney@redhat.com>
394
395 * gdbthread.h (save_infrun_state): Delete parameter
396 "prev_func_start".
397 (struct thread_info): Delete field "prev_func_start".
398 (load_infrun_state): Ditto.
399 * thread.c (load_infrun_state, save_infrun_state): Update.
400 * infrun.c (prev_func_start): Delete variable.
401 (context_switch, init_wait_for_inferior): Update.
402 (stop_stepping, keep_going): Update.
403
404 2003-04-12 Andrew Cagney <cagney@redhat.com>
405
406 * gdbarch.sh: Add missing opaque declarations.
407 * gdbarch.h: Regnerate.
408 * symtab.h: Add missing opaque declarations.
409 * value.h, target.h, symfile.h, stabsread.h: Ditto.
410 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
411 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
412 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
413 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
414 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
415 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
416 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
417 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
418 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
419 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
420 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
421 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
422
423 2003-04-11 Andrew Cagney <cagney@redhat.com>
424
425 * frame.c (get_frame_id): Return this frame's "id".
426 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
427 function start.
428 (legacy_saved_regs_this_id): Replace function body with
429 internal-error.
430 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
431 FRAME_OBSTACK_ZALLOC.
432 (create_new_frame): Mark the frame ID as valid.
433
434 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
435
436 * Makefile.in (libbfd_h): Added missing setting.
437 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
438 according to the selected ABI.
439
440 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
441
442 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
443
444 2003-04-11 Andrew Cagney <cagney@redhat.com>
445
446 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
447 SAVED_PC_AFTER_CALL.
448 * gdbarch.h, gdbarch.c: Regenerate.
449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
450 * x86-64-tdep.c (x86_64_init_abi): Update.
451 * vax-tdep.c (vax_gdbarch_init): Update.
452 * v850-tdep.c (v850_gdbarch_init): Update.
453 * sparc-tdep.c (sparc_gdbarch_init): Update.
454 * sh-tdep.c (sh_gdbarch_init): Update.
455 * s390-tdep.c (s390_gdbarch_init): Update.
456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
458 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
459 * mips-tdep.c (mips_gdbarch_init): Update.
460 * mcore-tdep.c (mcore_gdbarch_init): Update.
461 * m68k-tdep.c (m68k_gdbarch_init): Update.
462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
463 * ia64-tdep.c (ia64_gdbarch_init): Update.
464 (ia64_saved_pc_after_call): Update declaration.
465 * i386ly-tdep.c (i386lynx_init_abi): Update.
466 * i386-tdep.c (i386_gdbarch_init): Update.
467 * hppa-tdep.c (hppa_gdbarch_init): Update.
468 * h8300-tdep.c (h8300_gdbarch_init): Update.
469 * frv-tdep.c (frv_gdbarch_init): Update.
470 * cris-tdep.c (cris_gdbarch_init): Update.
471 * avr-tdep.c (avr_gdbarch_init): Update.
472 * arm-tdep.c (arm_gdbarch_init): Update.
473 * alpha-tdep.c (alpha_gdbarch_init): Update.
474 * ns32knbsd-nat.c (frame_num_args): Update.
475 * ns32k-tdep.c (umax_frame_num_args): Update.
476 * mips-tdep.c (mips_init_frame_pc_first): Update.
477 * infrun.c (step_over_function): Update.
478 * i386-linux-tdep.c (skip_hurd_resolver): Update.
479 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
480 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
481 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
482 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
483 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
484 * arm-linux-tdep.c (skip_hurd_resolver): Update.
485 * arch-utils.c (init_frame_pc_default): Update.
486 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
487 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
488 declaration.
489
490 2003-04-11 Andrew Cagney <cagney@redhat.com>
491
492 * i387-tdep.c: Update copyright.
493 (i387_to_double): Delete function.
494 (double_to_i387): Delete function.
495
496 2003-04-10 Andrew Cagney <cagney@redhat.com>
497
498 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
499 frame's function's address. Simplify.
500 (d10v_frame_unwind_cache): Check that the frame's function is
501 non-zero.
502
503 2003-04-10 Jim Blandy <jimb@redhat.com>
504
505 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
506 call to set_gdbarch_deprecated_push_arguments.
507
508 2003-04-10 Andrew Cagney <cagney@redhat.com>
509
510 * frame.c (fprint_frame_id): New function.
511 (fprint_frame_type, fprint_frame): New function.
512 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
513 (create_sentinel_frame, get_frame_id): Ditto.
514 (frame_id_p, frame_id_eq): Ditto.
515 (frame_id_inner, create_new_frame): Ditto.
516 (legacy_get_prev_frame, get_prev_frame): Ditto.
517 (deprecated_update_frame_pc_hack): Ditto.
518 (frame_register_unwind): Ditto.
519 (deprecated_update_frame_base_hack): Ditto.
520
521 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
522
523 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
524 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
525 frame_chain function.
526 * Makefile.in: Add dependencies due to above change.
527
528 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
529
530 * blockframe.c (legacy_frame_chain_valid): Move call to
531 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
532 inside_entry_file.
533
534 2003-04-09 Andrew Cagney <cagney@redhat.com>
535
536 * frame.h (struct frame_id): Replace "pc" and "base" with
537 "stack_addr" and "code_addr". Update comments.
538 (frame_id_build): Update parameter names and comment.
539 (struct frame_info): Replace "id_p" and "id" with "this_id".
540 * dummy-frame.c (dummy_frame_this_id): Update.
541 * breakpoint.c (print_one_breakpoint): Update.
542 * frame.c (get_frame_id): Update.
543 (get_frame_base, frame_id_build): Update.
544 (create_sentinel_frame, legacy_get_prev_frame): Update.
545 (deprecated_update_frame_base_hack): Update.
546 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
547 (frame_id_inner): Ditto.
548
549 2003-04-09 Andrew Cagney <cagney@redhat.com>
550
551 * defs.h (gdb_print_host_address): Make "addr" parameter a
552 pointer constant.
553 * utils.c (gdb_print_host_address): Update.
554
555 2003-04-09 Kevin Buettner <kevinb@redhat.com>
556
557 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
558 register number for R0 is 0.
559
560 2003-04-09 J. Brobecker <brobecker@gnat.com>
561
562 * frame.h (struct gdbarch): Add opaque structure definition
563 to avoid a compilation warning on LynxOS 4.0.
564
565 2003-04-09 Andrew Cagney <cagney@redhat.com>
566
567 * frame.h (struct frame_info): Delete field "pc". Replace
568 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
569 structure.
570 * frame.c (frame_pc_unwind): Update.
571 (create_sentinel_frame): Do not set "pc".
572 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
573 (get_frame_pc): Call frame_pc_unwind.
574 (deprecated_update_frame_pc_hack): Update.
575 (create_new_frame): Use "pc" not "->pc".
576
577 2003-04-09 Andrew Cagney <cagney@redhat.com>
578
579 * frame.c (get_frame_id): Eliminate code updating "frame".
580 (legacy_get_prev_frame): Ditto.
581 (get_frame_base): Return id.base directly.
582 (deprecated_update_frame_base_hack): Update "id.base".
583 * frame.h (struct frame_info): Delete field "frame".
584
585 2003-04-09 Andrew Cagney <cagney@redhat.com>
586
587 * NEWS: Mention that the "Sequent family" is obsolete.
588 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
589 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
590 * configure.host: Obsolete i[3456]86-sequent-bsd*,
591 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
592 * config/i386/tm-ptx4.h: Obsolete file.
593 * config/i386/tm-ptx.h: Obsolete file.
594 * symm-tdep.c: Obsolete file.
595 * config/i386/symmetry.mt: Obsolete file.
596 * config/i386/tm-symmetry.h: Obsolete file.
597 * symm-nat.c: Obsolete file.
598 * config/i386/nm-symmetry.h: Obsolete file.
599 * config/i386/xm-symmetry.h: Obsolete file.
600 * config/i386/symmetry.mh: Obsolete file.
601 * config/i386/nm-ptx4.h: Obsolete file.
602 * config/i386/ptx4.mh: Obsolete file.
603 * config/i386/ptx.mt: Obsolete file.
604 * config/i386/ptx.mh: Obsolete file.
605 * config/i386/xm-ptx4.h: Obsolete file.
606 * config/i386/xm-ptx.h: Obsolete file.
607
608 2003-04-09 Andrew Cagney <cagney@redhat.com>
609
610 Obsolete mips*-*-mach3*.
611 * NEWS: Mention that mips*-*-mach3* is obsolete.
612 * m3-nat.c: Obsolete file.
613 * config/nm-m3.h: Obsolete file.
614 * config/mips/tm-mipsm3.h: Obsolete file.
615 * config/mips/mipsm3.mt: Obsolete file.
616 * config/mips/mipsm3.mh: Obsolete file.
617 * config/mips/xm-mipsm3.h: Obsolete file.
618 * mipsm3-nat.c: Obsolete file.
619 * configure.host: Obsolete mips-dec-mach3*.
620 * configure.tgt: Obsolete mips*-*-mach3*.
621
622 2003-04-09 Andrew Cagney <cagney@redhat.com>
623
624 * doublest.h: Update copyright.
625 (deprecated_store_floating, deprecated_extract_floating): Rename
626 store_floating and extract_floating. Update comments.
627 * doublest.c: Update copyright.
628 (extract_floating_by_length): Replace extract_floating.
629 (store_floating_by_length): Replace store_floating.
630 (deprecated_extract_floating): New function.
631 (deprecated_store_floating): New function.
632 (extract_typed_floating): Call extract_floating_by_length.
633 (store_typed_floating): Call store_floating_by_length.
634 * x86-64-tdep.c (x86_64_store_return_value): Update.
635 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
636 (sh64_extract_return_value): Update.
637 (sh_sh4_register_convert_to_virtual): Update.
638 (sh_sh64_register_convert_to_virtual): Update.
639 (sh_sh4_register_convert_to_raw): Update.
640 (sh_sh64_register_convert_to_raw): Update.
641 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
642 (rs6000_register_convert_to_raw): Update.
643 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
644 (ia64_register_convert_to_raw): Update.
645 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
646 (REGISTER_CONVERT_TO_VIRTUAL): Update.
647 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
648 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
649 (alpha_register_convert_to_raw): Update.
650
651 2003-04-08 Andrew Cagney <cagney@redhat.com>
652
653 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
654 * gdbarch.h, gdbarch.c: Re-generate.
655 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
656 (d10v_gdbarch_init): Do not set saved_pc_after_call.
657 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
658 conditionally, use frame_pc_unwind as an alternative. Add
659 comments.
660 * arch-utils.c (init_frame_pc_default): Only call
661 SAVED_PC_AFTER_CALL when available.
662
663 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
664
665 * infrun.c (stop_soon): Rename from stop_soon_quietly.
666 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
667 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
668 (start_remote): Ditto.
669 (handle_inferior_event): Ditto.
670 (save_inferior_status): Ditto.
671 (restore_inferior_status): Ditto.
672 * infcmd.c (attach_command): Ditto.
673 * fork-child.c (startup_inferior): Ditto.
674 * inferior.h (stop_soon): Rename from stop_soon_quietly.
675 * alpha-tdep.c (heuristic_proc_start): Ditto.
676 * mips-tdep.c (heuristic_proc_start): Ditto.
677 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
678 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
679 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
680 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
681 * remote-vx.c (vx_create_inferior): Ditto.
682
683 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
684
685 * infrun.c (stop_soon_quietly): Make it an enum, to better
686 override the default behavior of handle_inferior_event.
687 (clear_proceed_status): Update uses of stop_soon_quietly to
688 reflect that it is now an enum.
689 (start_remote): Ditto.
690 (handle_inferior_event): Change logic a bit if stop_soon_quietly
691 is set to handle the new GNU/Linux kernel behavior for
692 attach/sigstop. Update uses of stop_soon_quietly.
693 * inferior.h (enum stop_kind): New enum.
694 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
695 Reset normal handle_inferior_event behavior, afterwards.
696 * fork-child.c (startup_inferior): Update.
697 * alpha-tdep.c (heuristic_proc_start): Update.
698 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
699 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
700 * solib-osf.c (osf_solib_create_inferior_hook): Update.
701 * solib-irix.c (irix_solib_create_inferior_hook): Update.
702 * remote-vx.c (vx_create_inferior): Update.
703 * mips-tdep.c (heuristic_proc_start): Update.
704
705 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
706
707 * disasm.c (dump_insns): Move variables inside loop, or they will
708 be freed more than once, causing wild memory corruptions.
709 (gdb_disassembly): Look for the substring "-thread",
710 instead of "-threads" in the target name, to make sure to find
711 the 'multi-thread' target. Also, make sure we do the right thing
712 with the "core" target.
713
714 2003-04-07 Kevin Buettner <kevinb@redhat.com>
715
716 * mips-tdep.c (mips_print_fp_register): New function, created from
717 do_fp_register_row(). Registers are now (also) printed as hex.
718 Only one register is printed per row.
719 (mips_print_register, do_fp_register_row): Print floating point
720 registers with mips_print_fp_register().
721
722 2003-04-06 Andrew Cagney <cagney@redhat.com>
723
724 * valprint.h (inspect_it): Add extern declaration.
725 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
726 (selectors_info, classes_info): Ditto.
727 (find_objc_msgcall): Fix indentation.
728 (objc_printstr): Delete extern declarations.
729
730 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
731
732 2003-04-06 Andrew Cagney <cagney@redhat.com>
733
734 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
735 Update comment.
736 * frame.c (legacy_saved_regs_this_id): Update.
737 (legacy_get_prev_frame): Update.
738 * xstormy16-tdep.c: Update comment.
739 * sparc-tdep.c (sparc_frame_chain): Update comment.
740 * blockframe.c (legacy_frame_chain_valid): Update.
741
742 2003-04-06 Andrew Cagney <cagney@redhat.com>
743
744 * valprint.c (val_print_type_code_int): Delete #ifdef
745 PRINT_TYPELESS_INTEGER code.
746
747 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
748 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
749 multi-arch definition.
750 * gdbarch.h: Re-generate.
751
752 2003-04-05 Andrew Cagney <cagney@redhat.com>
753
754 Eliminate FRAME_FIND_SAVED_REGS.
755 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
756 Change FSR parameter to a pointer.
757 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
758 Assume FSR parameter is a pointer.
759 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
760 Make fsr a pointer.
761 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
762 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
763 saved_regs a pointer.
764 (hppa_frame_saved_pc): Ditto.
765 (find_dummy_frame_regs): Make frame_saved_regs a pointer
766 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
767 pointer.
768 (restore_pc_queue): Make fsr a pointer.
769 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
770 (hppa_frame_chain): Make saved_regs a pointer, call
771 hppa_frame_init_saved_regs.
772 * sparc-tdep.c: Include "gdb_assert.h".
773 (sparc_frame_find_saved_regs): Replace internal_error with
774 gdb_assert.
775 * remote-vxsparc.c (vx_read_register): Delete reference to
776 FRAME_FIND_SAVED_REGS.
777 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
778 * gdbarch.h: Regenerate.
779 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
780 (deprecated_get_frame_saved_regs): Delete declaration.
781 (struct frame_saved_regs): Delete definition.
782 * frame.c (deprecated_get_frame_saved_regs): Delete function.
783 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
784 (hppa_frame_find_saved_regs): Delete declaration.
785 (FRAME_FIND_SAVED_REGS): Delete macro.
786 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
787 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
788 FRAME_FIND_SAVED_REGS in comment.
789
790 2003-04-05 Andrew Cagney <cagney@redhat.com>
791
792 * frame.c (frame_func_unwind, get_frame_func): New functions.
793 * frame.h (get_frame_func, frame_func_unwind): Declare.
794 (struct frame_info): Add field "prev_func" for caching the
795 previous frame's function address.
796 * arm-tdep.c (arm_frameless_function_invocation): Combine
797 get_pc_function_start and get_frame_pc into get_frame_func.
798 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
799 (sh64_nofp_frame_init_saved_regs): Ditto.
800 * s390-tdep.c (s390_function_start): Ditto.
801 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
802 (rs6000_frameless_function_invocation): Ditto.
803 (rs6000_frame_saved_pc): Ditto.
804 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
805 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
806 * i386-tdep.c (i386_frameless_signal_p): Ditto.
807 (i386_frame_init_saved_regs): Ditto.
808 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
809 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
810 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
811 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
812 * blockframe.c (frameless_look_for_prologue): Ditto.
813
814 2003-04-05 Andrew Cagney <cagney@redhat.com>
815
816 * frame.c (legacy_get_prev_frame): Link prev to next at the
817 function start. Update comments.
818
819 2003-04-05 Andrew Cagney <cagney@redhat.com>
820
821 * frame.c (get_frame_id): Update comment.
822 (legacy_get_prev_frame): Update comment.
823 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
824 * gdbarch.h: Regenerate.
825 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
826 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
827
828 2003-04-05 Andrew Cagney <cagney@redhat.com>
829
830 * stack.c (print_frame_info): Use get_frame_pc.
831
832 2003-04-04 Andrew Cagney <cagney@redhat.com>
833
834 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
835 the frame's type from the unwinder.
836 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
837 (create_new_frame, legacy_get_prev_frame): When the unwinder's
838 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
839 (get_frame_base_address): Use get_frame_type.
840 (get_frame_locals_address, get_frame_args_address): Ditto.
841 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
842 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
843 (struct frame_info): Add comment explaining why the frame contains
844 a "type" field.
845 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
846 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
847 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
848 NORMAL_FRAME.
849 * frame-unwind.h: Include "frame.h".
850 (struct frame_unwind): Add "type" field.
851 * Makefile.in (frame_unwind_h): Add $(frame_h).
852
853 2003-04-04 Andrew Cagney <cagney@redhat.com>
854
855 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
856 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
857 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
858 get_frame_base.
859 (d10v_unwind_dummy_id): Use frame_id_build.
860 * frame.c (find_frame_sal): Use get_frame_pc.
861 (create_new_frame): Use deprecated_update_frame_pc_hack and
862 deprecated_update_frame_base_hack.
863 (create_sentinel_frame): Add comment about ->pc going away.
864 (get_prev_frame): Add comment about ->pc going away.
865 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
866 frame_id_build, deprecated_update_frame_pc_hack and
867 deprecated_update_frame_base_hack.
868 (select_frame): Use get_frame_pc.
869 (legacy_saved_regs_this_id): Use frame_id_build.
870
871 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
872
873 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
874 signed integer case.
875 (classify_argument): Handle enumerations and references.
876
877 2003-04-04 Andrew Cagney <cagney@redhat.com>
878
879 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
880 ID to NULL.
881
882 2003-04-01 Adam Fedor <fedor@gnu.org>
883
884 * gdb/objc-lang.c (selectors_info): Replace calls to
885 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
886 SYMBOL_NATURAL_NAME.
887 (classes_info, find_methods): Likewise.
888
889 2003-04-03 Kevin Buettner <kevinb@redhat.com>
890
891 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
892 ``mach'' to the value determined by bfd_default_set_arch_mach().
893
894 2003-04-02 Bob Rossi <bob_rossi@cox.net>
895
896 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
897 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
898 (mi-cmd-file.o): Update dependencies.
899
900 2003-04-01 Kevin Buettner <kevinb@redhat.com>
901
902 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
903 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
904
905 2003-04-01 Adam Fedor <fedor@gnu.org>
906
907 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
908 * language.h (struct language_defn): Add la_demangle.
909 (language_demangle): Declare.
910 * language.c (language_demangle): New function.
911 (unk_lang_demangle): Likewise.
912 (unknown_language_defn, auto_language_defn, local_language_defn):
913 Add ukn_lang_demangle.
914 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
915 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
916 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
917 (cplus_language_defn): Add cplus_demangle for la_demangle element.
918 * jv-lang.c (java_demangle): New function
919 (java_language_defn): Use it for la_demangle element.
920 * objc-lang.c (objc_demangle): Add options argument
921 (objc_language_defn): Use objc_demangle for la_demangle element.
922 * maint.c (maintenance_demangle): Replace switch with
923 call to language_demangle.
924 * utils.c (fprintf_symbol_filtered): Likewise.
925
926 2003-04-01 Andrew Cagney <cagney@redhat.com>
927
928 * printcmd.c (print_frame_nameless_args): Delete #ifdef
929 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
930 PRINT_TYPELESS_INTEGER.
931 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
932 PUSH_RETURN_ADDRESS.
933
934 2003-04-01 Andrew Cagney <cagney@redhat.com>
935
936 * Makefile.in (d10v-tdep.o): Update dependencies.
937 * d10v-tdep.c: Include "frame-base.h".
938 (d10v_frame_unwind): Make constant.
939 (d10v_frame_base_address): New function.
940 (d10v_frame_base): New variable.
941 (d10v_gdbarch_init): Set frame_base default.
942 (struct d10v_unwind_cache): Add the field "prev_sp". Update
943 comment for base.
944 (d10v_frame_unwind_cache): Set and use "prev_sp".
945 (d10v_frame_this_id): Use the previous frame's inner most stack
946 address and this frame's func address for the frame ID. Use
947 frame_id_build. Don't analyze beyond the current instruction.
948
949 2003-04-01 Andrew Cagney <cagney@redhat.com>
950
951 * frame.h (get_frame_locals_address, get_frame_args_address):
952 Refer to the base address, instead of the address of the first
953 local or parameter.
954
955 2003-04-01 Andrew Cagney <cagney@redhat.com>
956
957 Add frame debug info addresses:
958 * frame-base.c: New file.
959 * frame-base.h: New file.
960 * frame.h (struct frame_base): Add opaque declaration.
961 (get_frame_base): Update comment.
962 (get_frame_base_address): Declare.
963 (get_frame_locals_address): Declare.
964 (get_frame_args_address): Declare.
965 (struct frame_info): Add "base" and "base_cache". Update
966 comments on the unwinder.
967 * frame.c: Include "frame-base.h".
968 (get_frame_locals_address): New function.
969 (get_frame_base_address): New function.
970 (get_frame_args_address): New function.
971 * findvar.c (read_var_value): Use get_frame_locals_address and
972 get_frame_args_address.
973 * stack.c (frame_info): Use get_frame_locals_address and
974 get_frame_args_address.
975 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
976 moved to "frame-base.c".
977 * printcmd.c (print_frame_nameless_args): Ditto.
978 * symtab.h (address_class): Update comments.
979 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
980 get_frame_base_address.
981 * dwarf2expr.c (execute_stack_op): Ditto.
982 * Makefile.in (frame_base_h): Define.
983 (frame.o): Update dependencies.
984 (frame-base.o): Add dependencies.
985 (SFILES): Add frame-base.c.
986 (COMMON_OBS): Add frame-base.o.
987
988 2003-04-01 Andrew Cagney <cagney@redhat.com>
989
990 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
991 CALL_DUMMY_LENGTH): Ditto.
992 * gdbarch.c: Re-generate.
993 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
994 (CALL_DUMMY_LENGTH): Delete macro.
995 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
996 * arm-tdep.c (arm_gdbarch_init): Ditto.
997 * avr-tdep.c (avr_gdbarch_init): Ditto.
998 * cris-tdep.c (cris_gdbarch_init): Ditto.
999 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1000 * frv-tdep.c (frv_gdbarch_init): Ditto.
1001 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1002 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1003 * i386-tdep.c (i386_gdbarch_init): Ditto.
1004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1006 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1007 * mips-tdep.c (mips_gdbarch_init): Ditto.
1008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1009 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1010 * s390-tdep.c (s390_gdbarch_init): Ditto.
1011 * sh-tdep.c (sh_gdbarch_init): Ditto.
1012 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1013 * v850-tdep.c (v850_gdbarch_init): Ditto.
1014 * vax-tdep.c (vax_gdbarch_init): Ditto.
1015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1016
1017 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
1018
1019 * frame.c (get_prev_frame): Disable call to inside_entry_file().
1020
1021 2003-04-01 Andrew Cagney <cagney@redhat.com>
1022
1023 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
1024 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1025 * gdbarch.h, gdbarch.c: Re-generate.
1026 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1027 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1028 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1029 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1030 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1031 * infcmd.c (run_stack_dummy): Simplify assuming
1032 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1033 * infrun.c (handle_inferior_event): Ditto.
1034 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1035 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
1036 * arm-tdep.c (arm_gdbarch_init): Ditto.
1037 * avr-tdep.c (avr_gdbarch_init): Ditto.
1038 * cris-tdep.c (cris_gdbarch_init): Ditto.
1039 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1040 * frv-tdep.c (frv_gdbarch_init): Ditto.
1041 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1042 * i386-tdep.c (i386_gdbarch_init): Ditto.
1043 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1045 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1047 * mips-tdep.c (mips_gdbarch_init): Ditto.
1048 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1049 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1050 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1051 * s390-tdep.c (s390_gdbarch_init): Ditto.
1052 * sh-tdep.c (sh_gdbarch_init): Ditto.
1053 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1054 * v850-tdep.c (v850_gdbarch_init): Ditto.
1055 * vax-tdep.c (vax_gdbarch_init): Ditto.
1056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1057
1058 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
1059
1060 * symfile.c (symfile_relocate_debug_section): Update call to
1061 bfd_simple_get_relocated_section_contents.
1062
1063 2003-03-31 Andrew Cagney <cagney@redhat.com>
1064
1065 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
1066 * gdbarch.h, gdbarch.c: Regenerate.
1067 * inferior.h (FIX_CALL_DUMMY): Delete macro.
1068 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
1069 available.
1070 * frame.h (generic_fix_call_dummy): Delete declaration.
1071 * dummy-frame.h: Update comment.
1072 * dummy-frame.c (generic_fix_call_dummy): Delete function.
1073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1074 fix_call_dummy.
1075 * sh-tdep.c (sh_gdbarch_init): Ditto.
1076 * s390-tdep.c (s390_gdbarch_init): Ditto.
1077 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1078 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1080 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1081 * i386-tdep.c (i386_gdbarch_init): Ditto.
1082 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1083 * frv-tdep.c (frv_gdbarch_init): Ditto.
1084 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1085 * cris-tdep.c (cris_gdbarch_init): Ditto.
1086 * avr-tdep.c (avr_gdbarch_init): Ditto.
1087 * arm-tdep.c (arm_gdbarch_init): Ditto.
1088
1089 2003-03-31 J. Brobecker <brobecker@gnat.com>
1090
1091 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
1092 (INIT_FRAME_AP): Likewise.
1093 (EXTRA_FRAME_INFO): Likewise.
1094
1095 2003-03-31 Andrew Cagney <cagney@redhat.com>
1096
1097 * gdbarch.sh: Include "symfile.h".
1098 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
1099 * gdbarch.h, gdbarch.c: Re-generate.
1100 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
1101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1102 call_dummy_address, the default is at entry_point_address.
1103 * v850-tdep.c (v850_gdbarch_init): Ditto.
1104 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1105 * sh-tdep.c (sh_gdbarch_init): Ditto.
1106 * s390-tdep.c (s390_gdbarch_init): Ditto.
1107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1109 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1110 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1111 * i386-tdep.c (i386_gdbarch_init): Ditto.
1112 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1113 * frv-tdep.c (frv_gdbarch_init): Ditto.
1114 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1115 * cris-tdep.c (cris_gdbarch_init): Ditto.
1116 * arm-tdep.c (arm_gdbarch_init): Ditto.
1117
1118 2003-03-31 Andrew Cagney <cagney@redhat.com>
1119
1120 * gdbarch.sh (CALL_DUMMY_P): Delete.
1121 * gdbarch.h, gdbarch.c: Re-generate.
1122 * inferior.h (CALL_DUMMY_P): Delete macro.
1123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1124 * vax-tdep.c (vax_gdbarch_init): Update.
1125 * v850-tdep.c (v850_gdbarch_init): Update.
1126 * sparc-tdep.c (sparc_gdbarch_init): Update.
1127 * sh-tdep.c (sh_gdbarch_init): Update.
1128 * s390-tdep.c (s390_gdbarch_init): Update.
1129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1130 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1131 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1132 * mips-tdep.c (mips_gdbarch_init): Update.
1133 * mcore-tdep.c (mcore_gdbarch_init): Update.
1134 * m68k-tdep.c (m68k_gdbarch_init): Update.
1135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1136 * ia64-tdep.c (ia64_gdbarch_init): Update.
1137 * i386-tdep.c (i386_gdbarch_init): Update.
1138 * h8300-tdep.c (h8300_gdbarch_init): Update.
1139 * frv-tdep.c (frv_gdbarch_init): Update.
1140 * d10v-tdep.c (d10v_gdbarch_init): Update.
1141 * cris-tdep.c (cris_gdbarch_init): Update.
1142 * breakpoint.c (deprecated_frame_in_dummy): Update.
1143 * avr-tdep.c (avr_gdbarch_init): Update.
1144 * alpha-tdep.c (alpha_gdbarch_init): Update.
1145 * arm-tdep.c (arm_gdbarch_init): Update.
1146 * dummy-frame.c (dummy_frame_this_id): Update comments.
1147 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
1148 * frame.c (legacy_get_prev_frame): Ditto.
1149 * valops.c (call_function_by_hand): Delete function.
1150 (hand_function_call): Rename to call_function_by_hand
1151
1152 2003-03-30 Andrew Cagney <cagney@redhat.com>
1153
1154 2002-11-10 Klee Dienes <kdienes@apple.com>
1155 * value.h (struct value): Update comment.
1156
1157 2003-03-30 Andrew Cagney <cagney@redhat.com>
1158
1159 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
1160 D10V_FP_REGNUM.
1161 (d10v_gdbarch_init): Do not set fp_regnum.
1162
1163 * frame.c (get_frame_base): Force ID initialization.
1164 (get_prev_frame): Move computation of the frame ID from here ...
1165 (get_frame_id): ... to here.
1166 (legacy_get_prev_frame): Mark the frame ID as valid.
1167 * frame.h (struct frame_info): Add field "id_p".
1168
1169 2003-03-30 Mark Kettenis <kettenis@gnu.org>
1170
1171 * i386-tdep.c (i386_store_struct_return): Removed.
1172 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
1173
1174 2003-03-30 Andrew Cagney <cagney@redhat.com>
1175
1176 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
1177 * gdbarch.h, gdbarch.c: Regenerate.
1178 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
1179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1181 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1182 * i386-tdep.c (i386_gdbarch_init): Ditto.
1183 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1184 * cris-tdep.c (cris_gdbarch_init): Ditto.
1185 * vax-tdep.c (vax_gdbarch_init): Ditto.
1186 * s390-tdep.c (s390_gdbarch_init): Ditto.
1187 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1188 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1189 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1190 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
1191 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1192 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
1193 * sparc-tdep.c (sparc_gdbarch_init): Update.
1194 * sh-tdep.c (sh_gdbarch_init): Update.
1195 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1196 * mips-tdep.c (mips_gdbarch_init): Update.
1197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1198 * ia64-tdep.c (ia64_gdbarch_init): Update.
1199 * frv-tdep.c (frv_gdbarch_init): Update.
1200 * avr-tdep.c (avr_gdbarch_init): Update.
1201 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
1202 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
1203 instead of when push_dummy_call is not available.
1204
1205 2003-03-30 Andrew Cagney <cagney@redhat.com>
1206
1207 * infttrace.c: Include "gdbthread.h".
1208 (parent_attach_all): Fix function signature.
1209 (call_ptrace): Update call.
1210 * Makefile.in (infttrace.o): Update dependencies.
1211
1212 2003-03-30 Andrew Cagney <cagney@redhat.com>
1213
1214 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
1215 PUSH_RETURN_ADDRESS.
1216 * gdbarch.h, gdbarch.c: Regenerate.
1217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1218 * x86-64-tdep.c (x86_64_init_abi): Update.
1219 * v850-tdep.c (v850_gdbarch_init): Update.
1220 * sparc-tdep.c (sparc_gdbarch_init): Update.
1221 * sh-tdep.c (sh_gdbarch_init): Update.
1222 * s390-tdep.c (s390_gdbarch_init): Update.
1223 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1225 * mips-tdep.c (mips_gdbarch_init): Update.
1226 * mcore-tdep.c (mcore_gdbarch_init): Update.
1227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1228 * ia64-tdep.c (ia64_gdbarch_init): Update.
1229 * i386-tdep.c (i386_gdbarch_init): Update.
1230 * h8300-tdep.c (h8300_gdbarch_init): Update.
1231 * frv-tdep.c (frv_gdbarch_init): Update.
1232 * cris-tdep.c (cris_gdbarch_init): Update.
1233 * avr-tdep.c (avr_gdbarch_init): Update.
1234 * arm-tdep.c (arm_gdbarch_init): Update.
1235 * valops.c (hand_function_call): Update.
1236
1237 2003-03-29 Andrew Cagney <cagney@redhat.com>
1238
1239 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
1240 sizeof_call_dummy_words.
1241 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
1242 define.
1243 * gdbarch.h: Regenerate.
1244
1245 2003-03-29 Andrew Cagney <cagney@redhat.com>
1246
1247 * infttrace.h: New file.
1248 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
1249 (hpread_get_textlow): Detect an uninitialized dn_bufp.
1250 (hpread_read_doc_function_type): Detect an initialized type1.
1251 (hpread_quick_traverse): Initialize mod_name_string.
1252 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
1253 (som_solib_get_solib_by_pc): Declare.
1254 (so_lib_thread_start_addr): Declare.
1255 (no_shared_libraries): Declare.
1256 * somread.c (init_import_symbols): Make static. Add forward
1257 declaration.
1258 * config/pa/nm-hppah.h: Include "infttrace.h" for
1259 parent_attach_all.
1260 (hppa_insert_hw_watchpoint): Declare.
1261 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
1262 * hppah-nat.c: Include "gdb_string.h".
1263 (parent_attach_all): Delete extern declaration, moved to
1264 "infttrace.h".
1265 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
1266 int.
1267 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
1268 * Makefile.in (infttrace_h): Define.
1269 (hpread.o): Update dependencies.
1270 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
1271 * hppa-hpux-tdep.c: Include "gdb_string.h".
1272 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
1273 * infrun.c (handle_inferior_event): Always initialize
1274 stepped_after_stopped_by_watchpoint. Add default and remove
1275 fallthrough in switch statement.
1276 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
1277 parameter to int.
1278 (hppa_remove_hw_watchpoint): Ditto.
1279
1280 2003-03-29 Andrew Cagney <cagney@redhat.com>
1281
1282 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
1283 offset.
1284
1285 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
1286
1287 * arm-tdep.c (arm_push_arguments): Delete.
1288 (struct stack_item): New type.
1289 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
1290 (arm_store_struct_return): Delte.
1291 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
1292 arm_push_arguments or arm_store_struct_return.
1293
1294 2003-03-28 Andrew Cagney <cagney@redhat.com>
1295
1296 * Makefile.in (d10v-tdep.o): Update dependencies.
1297 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
1298 * d10v-tdep.c: Include "remote.h".
1299 (target_resume_hook): Delete extern declaration.
1300 (target_wait_loop_hook): Ditto.
1301 (tdisassemble_command): Eliminate assignment in "if" conditional.
1302 (d10v_ts2_register_sim_regno): Eliminate call to
1303 legacy_register_sim_regno.
1304 (d10v_ts3_register_sim_regno): Ditto.
1305
1306 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
1307
1308 * thread.c: Reindented.
1309 * lin-lwp.c: Ditto.
1310 * linux-proc.c: Ditto.
1311
1312 2003-03-28 Bob Rossi <bob_rossi@cox.net>
1313
1314 * MAINTAINERS (write after approval): Add myself.
1315
1316 2003-03-27 Theodore A. Roth <troth@openavr.org>
1317
1318 * objc-exp.y: Add missing semi-colons.
1319
1320 2003-03-27 Andrew Cagney <cagney@redhat.com>
1321
1322 * regcache.c (write_sp): Delete function and references.
1323 * inferior.h (write_sp): Delete declaration.
1324 * valops.c (hand_function_call): Replace write_sp with
1325 TARGET_WRITE_SP.
1326 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
1327 (sparc_pop_frame): Ditto.
1328
1329 2003-03-27 Andrew Cagney <cagney@redhat.com>
1330
1331 * NEWS: Mention removal of support for hppa*-*-bsd* and
1332 hppa*-*-osf* natives, and hppa*-*-pro* target.
1333 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
1334 * config/pa/xm-pa.h: Obsolete file.
1335 * config/pa/xm-hppab.h: Obsolete file.
1336 * config/pa/nm-hppab.h: Obsolete file.
1337 * config/pa/tm-hppab.h: Obsolete file.
1338 * config/pa/tm-hppao.h: Obsolete file.
1339 * config/pa/nm-hppao.h: Obsolete file.
1340 * config/pa/tm-pro.h: Obsolete file.
1341 * config/pa/hppaosf.mt: Obsolete file.
1342 * config/pa/hppaosf.mh: Obsolete file.
1343 * config/pa/hppapro.mt: Obsolete file.
1344 * config/pa/hppabsd.mt: Obsolete file.
1345 * config/pa/hppabsd.mh: Obsolete file.
1346 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
1347 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
1348 hppa*-*-osf*.
1349
1350 2003-03-27 Andrew Cagney <cagney@redhat.com>
1351
1352 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
1353 push_arguments. Don't set push_return_address or write_sp.
1354 (d10v_push_dummy_call): Replace d10v_push_arguments.
1355 (d10v_push_return_address, d10v_write_sp): Delete function,
1356 handled by push_dummy_call.
1357
1358 2003-03-26 Andrew Cagney <cagney@redhat.com>
1359
1360 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
1361 (push_dummy_call): New pure multi-arch replacement with gdbarch,
1362 regcache and dummy_addr parameters.
1363 * gdbarch.h, gdbarch.c: Re-generate.
1364 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
1365 available; assume it will handle stack alignment and return
1366 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
1367 legacy_push_arguments.
1368 (legacy_push_arguments): Rename default_push_arguments.
1369 * value.h (legacy_push_arguments): Rename default_push_arguments.
1370 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
1371 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1372 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1373 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1374 * config/i386/tm-symmetry.h: Update.
1375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1376 * x86-64-tdep.c (x86_64_init_abi): Update.
1377 * v850-tdep.c (v850_gdbarch_init): Update.
1378 * sparc-tdep.c (sparc_gdbarch_init): Update.
1379 * sh-tdep.c (sh_gdbarch_init): Update.
1380 * s390-tdep.c (s390_gdbarch_init): Update.
1381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1382 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1383 * mips-tdep.c (mips_gdbarch_init): Update.
1384 * mcore-tdep.c (mcore_gdbarch_init): Update.
1385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1386 * ia64-tdep.c (ia64_gdbarch_init): Update.
1387 * i386-tdep.c (i386_gdbarch_init): Update.
1388 * hppa-tdep.c (hppa_gdbarch_init): Update.
1389 * h8300-tdep.c (h8300_gdbarch_init): Update.
1390 * frv-tdep.c (frv_gdbarch_init): Update.
1391 * d10v-tdep.c (d10v_gdbarch_init): Update.
1392 * cris-tdep.c (cris_gdbarch_init): Update.
1393 * avr-tdep.c (avr_gdbarch_init): Update.
1394 * arm-tdep.c (arm_gdbarch_init): Update.
1395 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1396 * alpha-tdep.c (alpha_gdbarch_init): Update.
1397
1398 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1399
1400 * signals/signals.c (do_target_signal_to_host): Correct realtime
1401 signal range test.
1402
1403 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1404
1405 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
1406 (struct sal_chain, map_catch_names): Remove.
1407 (catch_exception_command_1): Don't call
1408 handle_gnu_4_16_catch_command.
1409
1410 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1411
1412 From Mark Dettinger <dettinge@de.ibm.com>:
1413 * dwarf2cfi.c (read_2u): Increment pointer by two.
1414
1415 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1416
1417 * signals/signals.c: Fix typos in last change.
1418
1419 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1420
1421 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
1422 not already defined. Use __SIGRTMIN if available.
1423 (target_signal_from_host): Remove SIGRTMIN block.
1424 (do_target_signal_to_host): Remove SIGRTMIN block; check that
1425 the signal is within the realtime range.
1426
1427 2003-03-25 Adam Fedor <fedor@gnu.org>
1428
1429 * Makefile.in (infrun.o): Add $(language_h)
1430 * infrun.c (handle_inferior_event): Use skip_language_trampoline
1431 for language specific trampolines.
1432 * language.h (struct language_defn): Add skip_trampoline.
1433 (skip_language_trampoline): Declare.
1434 * language.c (unk_lang_trampoline, skip_language_trampoline):
1435 New functions.
1436 (unknown_language_defn, auto_language_defn, local_language_defn):
1437 Add ukn_lang_trampoline.
1438 * ada-lang.c (ada_language_defn): Add NULL for language
1439 specific skip_trampoline.
1440 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
1441 scm-lang.c: Likewise.
1442 * objc-lang.c (objc_skip_trampoline): New function.
1443 (objc_language_defn): Add objc_skip_trampoline.
1444
1445 2003-03-25 Andrew Cagney <cagney@redhat.com>
1446
1447 * frame.c (get_prev_frame): Delay validating a frame's ID -
1448 non-NULL, didn't go backwards - until an attempt to unwind it to
1449 the previous frame.
1450
1451 2003-03-25 Andrew Cagney <cagney@redhat.com>
1452
1453 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
1454 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
1455 * gdbarch.h, gdbarch.c: Re-generate.
1456 * config/sparc/tm-sparc.h
1457 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
1458 * sparc-tdep.c (sparc_gdbarch_init): Set
1459 deprecated_extra_stack_alignment_needed.
1460 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
1462 extra_stack_alignment_needed.
1463 * v850-tdep.c (v850_gdbarch_init): Ditto.
1464 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1466 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1467 * cris-tdep.c (cris_gdbarch_init): Ditto.
1468 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1470
1471 2003-03-25 Andrew Cagney <cagney@redhat.com>
1472
1473 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
1474 STORE_STRUCT_RETURN.
1475 * gdbarch.h, gdbarch.c: Regenerate.
1476 * d10v-tdep.c (d10v_store_struct_return): Delete function.
1477 (d10v_push_arguments): Set the struct return register.
1478 (d10v_gdbarch_init): Update.
1479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1480 * x86-64-tdep.c (x86_64_init_abi): Update.
1481 * vax-tdep.c (vax_gdbarch_init): Update.
1482 * v850-tdep.c (v850_gdbarch_init): Update.
1483 * sparc-tdep.c (sparc_gdbarch_init): Update.
1484 * sh-tdep.c (sh_gdbarch_init): Update.
1485 * s390-tdep.c (s390_gdbarch_init): Update.
1486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1487 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1489 * mips-tdep.c (mips_gdbarch_init): Update.
1490 * mcore-tdep.c (mcore_gdbarch_init): Update.
1491 * m68k-tdep.c (m68k_gdbarch_init): Update.
1492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1493 * ia64-tdep.c (ia64_gdbarch_init): Update.
1494 * i386-tdep.c (i386_gdbarch_init): Update.
1495 * hppa-tdep.c (hppa_gdbarch_init): Update.
1496 * h8300-tdep.c (h8300_gdbarch_init): Update.
1497 * frv-tdep.c (frv_gdbarch_init): Update.
1498 * cris-tdep.c (cris_gdbarch_init): Update.
1499 * avr-tdep.c (avr_gdbarch_init): Update.
1500 * arm-tdep.c (arm_gdbarch_init): Update.
1501 * alpha-tdep.c (alpha_gdbarch_init): Update.
1502
1503 2003-03-25 Andrew Cagney <cagney@redhat.com>
1504
1505 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1506 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1507 CALL_DUMMY_STACK_ADJUST with a predicate variable.
1508 * gdbarch.h, gdbarch.c: Regenerate.
1509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1510 call_dummy_stack_adjust_p.
1511 * vax-tdep.c (vax_gdbarch_init): Ditto.
1512 * v850-tdep.c (v850_gdbarch_init): Ditto.
1513 * sh-tdep.c (sh_gdbarch_init): Ditto.
1514 * s390-tdep.c (s390_gdbarch_init): Ditto.
1515 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1516 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1518 * mips-tdep.c (mips_gdbarch_init): Ditto.
1519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1520 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1523 * i386-tdep.c (i386_gdbarch_init): Ditto.
1524 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1525 * frv-tdep.c (frv_gdbarch_init): Ditto.
1526 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1527 * cris-tdep.c (cris_gdbarch_init): Ditto.
1528 * avr-tdep.c (avr_gdbarch_init): Ditto.
1529 * arm-tdep.c (arm_gdbarch_init): Ditto.
1530 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1531 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1532 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1533 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1534 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
1535 call_dummy_stack_adjust_p.
1536 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1537 (CALL_DUMMY_STACK_ADJUST): Delete macro.
1538 * sparc-tdep.c (sparc32_push_arguments): Update.
1539 * valops.c (hand_function_call): Update.
1540
1541 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
1542
1543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1544 set_gdbarch_char_signed.
1545
1546 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1547
1548 PR cli/548
1549 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1550
1551 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1552
1553 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1554 (_initialize_arm_tdep): Don't set tm_print_insn.
1555
1556 2003-03-24 Adam Fedor <fedor@gnu.org>
1557
1558 * Makefile.in (YYOBJ): Add objc-exp.tab.o
1559 * objc-lang.h: Add multiple inclusion protection.
1560 (start_msglist, add_msglist, end_msglist): Additional declarations.
1561
1562 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
1563
1564 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1565 value was renamed to ARM_FLOAT_SOFT_FPA.
1566
1567 2003-03-23 Andrew Cagney <cagney@redhat.com>
1568
1569 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1570 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1571 * gdbarch.h, gdbarch.c: Regenerate.
1572 * valops.c (hand_function_call): Update.
1573 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1574 * frame.c (legacy_saved_regs_this_id): Update.
1575 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1576 * dummy-frame.h: Update.
1577 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1578 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1579 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1580 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1581 * config/m68k/tm-sun3.h: Update.
1582 * blockframe.c (inside_main_func, frame_chain_valid): Update.
1583 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1584 * x86-64-tdep.c (x86_64_init_abi): Update.
1585 * vax-tdep.c (vax_gdbarch_init): Update.
1586 * v850-tdep.c (v850_gdbarch_init): Update.
1587 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1588 * sh-tdep.c (sh_gdbarch_init): Update.
1589 * s390-tdep.c (s390_gdbarch_init): Update.
1590 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1591 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1592 (frame_get_saved_regs): Update.
1593 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1594 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1595 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1596 * mips-tdep.c (mips_gdbarch_init): Update.
1597 * mcore-tdep.c (mcore_gdbarch_init): Update.
1598 * m68k-tdep.c (m68k_gdbarch_init): Update.
1599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1600 * ia64-tdep.c (ia64_gdbarch_init): Update.
1601 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1602 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1603 (i386_interix_back_one_frame): Update.
1604 * hppa-tdep.c (hppa_gdbarch_init): Update.
1605 (hppa_init_extra_frame_info): Update.
1606 * h8300-tdep.c (h8300_gdbarch_init): Update.
1607 * frv-tdep.c (frv_gdbarch_init): Update.
1608 * cris-tdep.c (cris_gdbarch_init): Update.
1609 * avr-tdep.c (avr_gdbarch_init): Update.
1610 * arm-tdep.c (arm_gdbarch_init): Update.
1611 * alpha-tdep.c (alpha_gdbarch_init): Update.
1612
1613 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1614
1615 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1616 (arm_get_fp_model): Declare.
1617 * arm-tdep.c (fp_model_strings): New string array.
1618 (arm_fp_model, current_fp_model): New variables.
1619 (arm_get_fp_model): New function.
1620 (arm_set_fp): New function.
1621 (set_fp_model_sfunc): New function.
1622 (show_fp_model): New function.
1623 (_initialize_arm_tdep): Add new command to set/show the FPU.
1624 (arm_extract_return_value): Use arm_get_fp_model.
1625 (arm_store_return_value): Likewise.
1626 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1627 to initialize the floating-point data types.
1628 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1629 model is FPA.
1630
1631 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1632
1633 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1634 the current setting of each value.
1635 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1636 new_set and new_show. Use add_setshow_cmd_full and
1637 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1638 commands and add new version as subcommands of "set/show arm".
1639
1640 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1641
1642 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1643 (set_arm_command, show_arm_command): New functions.
1644 (_initialize_arm_tdep): Add them.
1645 (num_disassembly_options): Renamed from num_flavor_options.
1646 (valid_disassembly_styles): Renamed from valid_flavors.
1647 (disassembly_style): Renamed from disassembly_flavor.
1648 (set_disassembly_style_sfunc): Renamed from
1649 set_disassembly_flavor_sfunc.
1650 (set_disassembly_style): Renamed from set_disassembly_flavor.
1651 (arm_othernames): Updated.
1652 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1653 command. Add "set/show arm disassembly" commands. Deprecate
1654 "othernames" command.
1655
1656 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1657
1658 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1659 (arm-tdep.o): Depend on elf_arm_h.
1660
1661 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1662
1663 * Makefile.in (coff_internal_h): Define.
1664 (arm-tdep.o): Update dependencies.
1665
1666 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1667
1668 * arm-tdep.c (prologue_cache): Delete.
1669 (check_prologue_cache, save_prologue_cache): Delete.
1670 (arm_scan_prologue): Don't check or update the prologue_cache.
1671 (arm_gdb_arch_init): Don't initialize it.
1672 (_initialize_arm_tdep): Likewise.
1673
1674 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1675
1676 * MAINTAINERS (tui): Maintainer of tui code.
1677
1678 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1679
1680 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1681 (i386-cygwin-tdep.o): Add dependencies.
1682 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1683 * i386-cygwin-tdep.c: New file.
1684 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1685 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1686
1687 2003-03-20 Andrew Cagney <cagney@redhat.com>
1688
1689 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1690 (handle_inferior_event): Remove code calling
1691 DYNAMIC_TRAMPOLINE_NEXTPC.
1692
1693 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1694 already has a full path.
1695
1696 * main.c (gdb_main): Return 1.
1697 (captured_main): Call error to report an invalid interpreter.
1698
1699 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1700 * alpha-osf1-tdep.c: Include "gdb_string.h".
1701
1702 2003-03-19 J. Brobecker <brobecker@gnat.com>
1703
1704 Continuing work to convert the hppa targets to multiarch partial.
1705
1706 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1707 method, now that hppa_push_dummy_frame has a conformant prototype.
1708 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1709 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1710 for the switch to multiarch partial.
1711
1712 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1713
1714 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1715 when iss is issNull.
1716
1717 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1718
1719 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1720 NUM_REGS bounds check.
1721
1722 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1723
1724 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1725 * mips-tdep.c (gdb_assert.h): Include.
1726 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1727 (mips_register_name): Handle integer registers explicitly. Add
1728 bounds checking.
1729 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1730 (mips_lsi33k_reg_names): Don't list integer registers; they're
1731 handled by mips_register_name() now.
1732 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1733 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1734 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1735 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1736 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1737
1738 2003-03-18 Andrew Cagney <cagney@redhat.com>
1739
1740 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1741 a void pointer.
1742 * gdbtypes.h (print_scalar_formatted): Update declaration.
1743 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1744
1745 2003-03-18 J. Brobecker <brobecker@gnat.com>
1746
1747 * infrun.c (observer.h): Add #include.
1748 (normal_stop): Add call to observer_notify_normal_stop.
1749 * Makefile.in (infrun.o): Add dependency on observer.h.
1750
1751 2003-03-18 J. Brobecker <brobecker@gnat.com>
1752
1753 Continuing work to convert the hppa targets to multiarch partial.
1754 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1755 parameter. Reformat comment.
1756 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1757 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1758 to match new profile.
1759
1760 2003-03-18 J. Brobecker <brobecker@gnat.com>
1761
1762 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1763 appear to be working in any case.
1764
1765 2003-03-18 J. Brobecker <brobecker@gnat.com>
1766
1767 * observer.c (observer_test_first_observer): New static variable.
1768 (observer_test_second_observer): Likewise.
1769 (observer_test_third_observer): Likewise.
1770 (observer_test_first_notification_function): New static function.
1771 (observer_test_second_notification_function): Likewise.
1772 (observer_test_third_notification_function): Likewise.
1773
1774 2003-03-17 J. Brobecker <brobecker@gnat.com>
1775
1776 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1777 * somsolib.c (gdb_assert.h): Likewise.
1778 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1779 (somsolib.o): Likewise.
1780
1781 2003-03-17 Andrew Cagney <cagney@redhat.com>
1782
1783 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1784 BFD. Simplify setting of di.endian.
1785
1786 2003-03-17 Andrew Cagney <cagney@redhat.com>
1787
1788 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1789 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1790
1791 From Elena Zannoni <ezannoni@redhat.com>
1792 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1793 vector and floating-point parameters.
1794 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1795 convention.
1796 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1797
1798 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1799
1800 * MAINTAINERS: Remove my name from several maintainership roles.
1801
1802 2003-03-17 Andrew Cagney <cagney@redhat.com>
1803
1804 Fix frame off-by-one bug.
1805 * frame-unwind.h (frame_this_id_ftype): Replace
1806 frame_unwind_id_ftype.
1807 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1808 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1809 with "prev_register".
1810 * frame-unwind.c (frame_unwind_find_by_pc): Return
1811 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1812 comment.
1813 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1814 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1815 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1816 (dummy_frame_unwind): Update.
1817 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1818 sentinel_frame_register_unwind.
1819 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1820 (sentinel_frame_unwinder): Update.
1821 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1822 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1823 * frame.c (create_sentinel_frame): Update. Initialize
1824 "prologue_cache" instead of "unwind_cache".
1825 (frame_register_unwind): Call this frame's prev_register with the
1826 next frame and this frame's prologue cache.
1827 (get_prev_frame): Simplify. Always call prev frame's this_id with
1828 this frame and prev frame's prologue cache. Document that this
1829 call is shifted one to the left when compared to the
1830 frame_register_unwind call.
1831 (legacy_saved_regs_prev_register): Replace
1832 frame_saved_regs_register_unwind.
1833 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1834 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1835 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1836 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1837 (d10v_frame_unwind): Update.
1838 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1839 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1840 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1841 "saved_regs" with "this_saved_regs".
1842
1843 2003-03-16 Andrew Cagney <cagney@redhat.com>
1844
1845 * frame.c (frame_pop): Don't call target_store_registers. Fix
1846 problem reported by Mark Kettenis.
1847
1848 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1849
1850 * i386-tdep.c (i386_register_type): Renamed from
1851 i386_register_virtual_type. Adjust function signature.
1852 (i386_gdbarch_init): Set register_type instead of
1853 deprecated_max_register_raw_size,
1854 deprecated_max_register_virtual_size and register_virtual_type.
1855
1856 2003-03-14 Andrew Cagney <cagney@redhat.com>
1857
1858 * frame.c (get_prev_frame): When a legacy frame, always call
1859 legacy_get_prev_frame. Simplify unwind code using assumption that
1860 the unwinder is new.
1861 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1862 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1863 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1864
1865 2003-03-14 Andrew Cagney <cagney@redhat.com>
1866
1867 * frame.c (get_saved_register): Delete function.
1868 * frame.h (get_saved_register): Delete declaration.
1869 * xstormy16-tdep.c: Update comment.
1870 * regcache.h: Update comments.
1871 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1872 get_saved_register and extract_address, use
1873 frame_read_unsigned_register.
1874 (sparc_frame_saved_pc): Ditto.
1875 (sparc_get_saved_register): Instead of get_saved_register, use
1876 frame_register.
1877 (sparc_pop_frame): Ditto.
1878 * findvar.c: Update comments.
1879 (value_of_register): Call frame_register instead of
1880 get_saved_register.
1881 (value_from_register): Ditto.
1882 * config/sparc/tm-sparc.h: Update comment.
1883 * breakpoint.c: Update comment.
1884
1885 2003-03-14 Andrew Cagney <cagney@redhat.com>
1886
1887 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1888 GET_SAVED_REGISTER.
1889 * gdbarch.h, gdbarch.c: Re-generate.
1890 * frame.h: Update comments.
1891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1892 * x86-64-tdep.c (x86_64_init_abi): Update.
1893 * sparc-tdep.c (sparc_gdbarch_init): Update.
1894 * sh-tdep.c (sh_gdbarch_init): Update.
1895 * mips-tdep.c (mips_gdbarch_init): Update.
1896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1897 * cris-tdep.c (cris_gdbarch_init): Update.
1898 * ia64-tdep.c (ia64_gdbarch_init): Update.
1899 * frame.c (frame_register): Update.
1900 (get_saved_register): Update.
1901 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1902
1903 2003-03-13 Andrew Cagney <cagney@redhat.com>
1904
1905 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1906 * gdbarch.h, gdbarch.c: Regenerate.
1907 * valops.c (hand_function_call): Update comment.
1908 * stack.c (return_command): Update comment.
1909 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1910 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1912 * x86-64-tdep.c (x86_64_init_abi): Update.
1913 * vax-tdep.c (vax_gdbarch_init): Update.
1914 * v850-tdep.c (v850_gdbarch_init): Update.
1915 * sparc-tdep.c (sparc_gdbarch_init): Update.
1916 * sh-tdep.c (sh_gdbarch_init): Update.
1917 * s390-tdep.c (s390_gdbarch_init): Update.
1918 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1919 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1920 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1921 * mips-tdep.c (mips_gdbarch_init): Update.
1922 * mcore-tdep.c (mcore_gdbarch_init): Update.
1923 * m68k-tdep.c (m68k_gdbarch_init): Update.
1924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1925 * ia64-tdep.c (ia64_gdbarch_init): Update.
1926 * i386-tdep.c (i386_gdbarch_init): Update.
1927 * hppa-tdep.c (hppa_gdbarch_init): Update.
1928 * h8300-tdep.c (h8300_gdbarch_init): Update.
1929 * frv-tdep.c (frv_gdbarch_init): Update.
1930 * cris-tdep.c (cris_gdbarch_init): Update.
1931 * avr-tdep.c (avr_gdbarch_init): Update.
1932 * arm-tdep.c (arm_gdbarch_init): Update.
1933 * alpha-tdep.c (alpha_gdbarch_init): Update.
1934
1935 2003-03-13 Andrew Cagney <cagney@redhat.com>
1936
1937 * frame.c (legacy_frame_p): New function.
1938 (get_prev_frame): Use legacy_frame_p.
1939 * frame.h (legacy_frame_p): Declare.
1940
1941 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1942
1943 * MAINTAINERS (write after approval): Alphabetically
1944 listing corrected.
1945
1946 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1947
1948 * MAINTAINERS (write after approval): Add myself.
1949
1950 2003-03-12 Andrew Cagney <cagney@redhat.com>
1951
1952 * frame.c (get_prev_frame): Rename the frame parameter to
1953 "this_frame".
1954 (get_next_frame, legacy_get_prev_frame): Ditto.
1955
1956 2003-03-12 Andrew Cagney <cagney@redhat.com>
1957
1958 * frame.c (get_current_frame): Check target_has_registers before
1959 checking target_has_stack.
1960 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1961 instead of deprecated_selected_frame.
1962 * findvar.c (value_of_register): Pass "frame", not
1963 deprecated_selected_frame, to value_of_builtin_reg.
1964
1965 2003-03-12 Andrew Cagney <cagney@redhat.com>
1966
1967 * regcache.c (regcache_cooked_write_signed): New function.
1968 (regcache_cooked_write_unsigned): New function.
1969 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1970 (regcache_cooked_read_signed): Fix regnum in range assertion.
1971 * regcache.h (regcache_cooked_write_signed): Declare.
1972 (regcache_cooked_write_unsigned): Declare.
1973
1974 2003-03-12 Andrew Cagney <cagney@redhat.com>
1975
1976 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1977 * gdbarch.h, gdbarch.c: Re-generate.
1978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1979 * x86-64-tdep.h: Update.
1980 * x86-64-tdep.c (x86_64_init_abi): Update.
1981 * v850-tdep.c (v850_gdbarch_init): Update.
1982 * sparc-tdep.c (sparc_gdbarch_init): Update.
1983 * sh-tdep.c (sh_gdbarch_init): Update.
1984 * s390-tdep.c (s390_gdbarch_init): Update.
1985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1986 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1987 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1988 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1989 * mips-tdep.c (mips_gdbarch_init): Update.
1990 * mcore-tdep.c (mcore_gdbarch_init): Update.
1991 * m68k-tdep.c (m68k_gdbarch_init): Update.
1992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1993 * ia64-tdep.c (ia64_gdbarch_init): Update.
1994 * i386-tdep.c (i386_gdbarch_init): Update.
1995 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1996 * hppa-tdep.c (hppa_gdbarch_init): Update.
1997 * h8300-tdep.c (h8300_gdbarch_init): Update.
1998 * frv-tdep.c (frv_gdbarch_init): Update.
1999 * cris-tdep.c (cris_gdbarch_init): Update.
2000 * avr-tdep.c (avr_gdbarch_init): Update.
2001 * arm-tdep.c (arm_gdbarch_init): Update.
2002 * alpha-tdep.c (alpha_gdbarch_init): Update.
2003 * sh-tdep.c (sh_init_extra_frame_info): Update.
2004 (sh64_init_extra_frame_info): Update.
2005 * ns32knbsd-nat.c (frame_num_args): Update.
2006 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2007 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2008 (xstormy16_frame_chain_valid): Update.
2009 * vax-tdep.c (vax_saved_pc_after_call): Update.
2010 * v850-tdep.c (v850_frame_chain): Update.
2011 (v850_pop_frame): Update.
2012 (v850_init_extra_frame_info): Update.
2013 * sparc-tdep.c (setup_arbitrary_frame): Update.
2014 * ns32k-tdep.c (umax_frame_num_args): Update.
2015 * s390-tdep.c (s390_pop_frame_regular): Update.
2016 * mn10300-tdep.c (mn10300_frame_chain): Update.
2017 (mn10300_pop_frame_regular): Update.
2018 (mn10300_init_extra_frame_info): Update.
2019 * mips-tdep.c (mips_init_frame_pc_first): Update.
2020 (mips_frame_chain): Update.
2021 (mips_pop_frame): Update.
2022 * mcore-tdep.c (mcore_frame_chain): Update.
2023 (mcore_pop_frame): Update.
2024 (mcore_init_extra_frame_info): Update.
2025 * arch-utils.c (init_frame_pc_default): Update.
2026 * m68k-tdep.c (isi_frame_num_args): Update.
2027 (delta68_frame_num_args): Update.
2028 (news_frame_num_args): Update.
2029 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2030 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2031 (alpha_frame_chain): Update.
2032 (alpha_pop_frame): Update.
2033 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2034 (hppa_init_extra_frame_info): Update.
2035 (hppa_frame_chain): Update.
2036 (hppa_frame_chain_valid): Update.
2037 * cris-tdep.c (cris_init_extra_frame_info): Update.
2038 * avr-tdep.c (avr_init_extra_frame_info): Update.
2039 * arm-tdep.c (arm_frame_chain_valid): Update.
2040 (arm_init_extra_frame_info): Update.
2041 (arm_pop_frame): Update.
2042 * frame.c (frame_pc_unwind): Update.
2043 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2044 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2045 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2046 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2047 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2048 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2049
2050 2003-03-12 Andrew Cagney <cagney@redhat.com>
2051
2052 Eliminate the need for POP_FRAME.
2053 * frame.c (do_frame_unwind_register): New function.
2054 (frame_pop): When no POP_FRAME, pop the frame using register
2055 unwind and a scratch regcache.
2056 (frame_saved_regs_pop): Delete function.
2057 (trad_frame_unwinder): Update.
2058 * d10v-tdep.c (d10v_frame_pop): Delete function.
2059 (d10v_frame_unwind): Update.
2060 * sentinel-frame.c (sentinel_frame_pop): Delete function.
2061 (sentinel_frame_unwinder): Update.
2062 * dummy-frame.c (dummy_frame_pop): Delete function.
2063 (dummy_frame_unwind): Update.
2064 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
2065 (struct frame_unwind): Update.
2066
2067 2003-03-11 Kevin Buettner <kevinb@redhat.com>
2068
2069 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
2070 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
2071 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
2072 Do range checks on register number obtained from debugging info.
2073 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
2074 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
2075 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
2076 mapping function.
2077 (do_fp_register_row): Fix typo which caused double type to be
2078 used when attempting to unpack a float.
2079
2080 2003-03-11 J. Brobecker <brobecker@gnat.com>
2081
2082 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
2083
2084 2003-03-11 Andrew Cagney <cagney@redhat.com>
2085
2086 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
2087 frame. Problem found by Corinna Vinschen.
2088
2089 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
2090
2091 * doublest.c (floatformat_from_length): Accept also
2092 the real size of 'long double' type.
2093
2094 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
2095
2096 From Klee Dienes <kdienes@apple.com>:
2097 * breakpoint.c (bpstat_copy): Copy the command lines as well
2098 as the old value, to match what is freed in bpstat_clear.
2099
2100 2003-03-10 David Carlton <carlton@math.stanford.edu>
2101
2102 * minsyms.c (add_minsym_to_hash_table): Replace
2103 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2104 (compare_minimal_symbols, compact_minimal_symbols)
2105 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
2106 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
2107 of DEPRECATED_SYMBOL_MATCHES_NAME.
2108 (lookup_minimal_symbol_solib_trampoline): Ditto.
2109
2110 2003-03-10 Andrew Cagney <cagney@redhat.com>
2111
2112 * regcache.h (regcache_cooked_read_ftype): Define.
2113 (regcache_save, regcache_restore): Add a cooked_read parameter.
2114 * regcache.c (regcache_save, regcache_restore): Update.
2115 (do_cooked_read): New function.
2116 (regcache_cpy): Pass do_cooked_read to regcache_save and
2117 regcache_restore.
2118
2119 2003-03-10 Andrew Cagney <cagney@redhat.com>
2120
2121 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2122 * gdbarch.h, gdbarch.c: Re-generate.
2123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2124 * x86-64-tdep.h: Update.
2125 * x86-64-tdep.c (x86_64_init_abi): Update.
2126 * v850-tdep.c (v850_gdbarch_init): Update.
2127 * sparc-tdep.c (sparc_gdbarch_init): Update.
2128 * sh-tdep.c (sh_gdbarch_init): Update.
2129 * s390-tdep.c (s390_gdbarch_init): Update.
2130 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2131 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2132 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2134 * mips-tdep.c (mips_gdbarch_init): Update.
2135 * mcore-tdep.c (mcore_gdbarch_init): Update.
2136 * m68k-tdep.c (m68k_gdbarch_init): Update.
2137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2138 * ia64-tdep.c (ia64_gdbarch_init): Update.
2139 * i386-tdep.c (i386_gdbarch_init): Update.
2140 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2141 * hppa-tdep.c (hppa_gdbarch_init): Update.
2142 * h8300-tdep.c (h8300_gdbarch_init): Update.
2143 * frv-tdep.c (frv_gdbarch_init): Update.
2144 * cris-tdep.c (cris_gdbarch_init): Update.
2145 * avr-tdep.c (avr_gdbarch_init): Update.
2146 * arm-tdep.c (arm_gdbarch_init): Update.
2147 * alpha-tdep.c (alpha_gdbarch_init): Update.
2148 * sh-tdep.c (sh_init_extra_frame_info): Update.
2149 (sh64_init_extra_frame_info): Update.
2150 * ns32knbsd-nat.c (frame_num_args): Update.
2151 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2152 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2153 (xstormy16_frame_chain_valid): Update.
2154 * vax-tdep.c (vax_saved_pc_after_call): Update.
2155 * v850-tdep.c (v850_frame_chain): Update.
2156 (v850_pop_frame): Update.
2157 (v850_init_extra_frame_info): Update.
2158 * sparc-tdep.c (setup_arbitrary_frame): Update.
2159 * ns32k-tdep.c (umax_frame_num_args): Update.
2160 * s390-tdep.c (s390_pop_frame_regular): Update.
2161 * mn10300-tdep.c (mn10300_frame_chain): Update.
2162 (mn10300_pop_frame_regular): Update.
2163 (mn10300_init_extra_frame_info): Update.
2164 * mips-tdep.c (mips_init_frame_pc_first): Update.
2165 (mips_frame_chain): Update.
2166 (mips_pop_frame): Update.
2167 * mcore-tdep.c (mcore_frame_chain): Update.
2168 (mcore_pop_frame): Update.
2169 (mcore_init_extra_frame_info): Update.
2170 * arch-utils.c (init_frame_pc_default): Update.
2171 * m68k-tdep.c (isi_frame_num_args): Update.
2172 (delta68_frame_num_args): Update.
2173 (news_frame_num_args): Update.
2174 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2175 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2176 (alpha_frame_chain): Update.
2177 (alpha_pop_frame): Update.
2178 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2179 (hppa_init_extra_frame_info): Update.
2180 (hppa_frame_chain): Update.
2181 (hppa_frame_chain_valid): Update.
2182 * cris-tdep.c (cris_init_extra_frame_info): Update.
2183 * avr-tdep.c (avr_init_extra_frame_info): Update.
2184 * arm-tdep.c (arm_frame_chain_valid): Update.
2185 (arm_init_extra_frame_info): Update.
2186 (arm_pop_frame): Update.
2187 * frame.c (frame_pc_unwind): Update.
2188 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2189 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2190 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2191 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2192 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2193 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2194
2195 2003-03-10 Andrew Cagney <cagney@redhat.com>
2196
2197 * gdbarch.sh (gdbarch_unwind_pc): New method.
2198 * gdbarch.h, gdbarch.c: Regenerate.
2199 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
2200 but use read_pc and FRAME_SAVED_PC as fall backs.
2201 (frame_saved_regs_pc_unwind): Delete function.
2202 (trad_frame_unwinder): Update.
2203 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
2204 (struct frame_unwind): Update.
2205 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
2206 (dummy_frame_unwind): Update.
2207 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
2208 (sentinel_frame_unwinder): Update.
2209 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
2210 (d10v_frame_unwind): Update.
2211 (d10v_unwind_pc): New function.
2212 (d10v_gdbarch_init): Set unwind_pc.
2213
2214 2003-03-10 Andrew Cagney <cagney@redhat.com>
2215
2216 * gdbarch.h: Re-generate.
2217
2218 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
2219 PC.
2220 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
2221 the PC register.
2222
2223 2003-03-08 Mark Kettenis <kettenis@gnu.org>
2224
2225 * gdbarch.sh (save_dummy_frame_tos): Add comment.
2226
2227 2003-03-08 Andrew Cagney <cagney@redhat.com>
2228
2229 * cli-out.c: Update copyright.
2230 (cli_out_data): Define typedef. Use instead of ui_out_data.
2231
2232 2003-03-08 Andrew Cagney <cagney@redhat.com>
2233
2234 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
2235 the result.
2236
2237 2003-03-07 Andrew Cagney <cagney@redhat.com>
2238
2239 * gdbarch.sh: Don't generate two macro definitions when an
2240 undefined macro taking no arguments.
2241 * gdbarch.h: Regenerate.
2242
2243 2002-03-07 Michal Ludvig <mludvig@suse.cz>
2244
2245 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
2246 (x86_64_unwind_dummy_id): New functions.
2247 (x86_64_init_abi): Register these two new functions.
2248
2249 2003-03-07 Michal Ludvig <mludvig@suse.cz>
2250
2251 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
2252 (x86_64_skip_prologue): Move prologue detection to
2253 separate function.
2254 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
2255
2256 2003-03-05 Andrew Cagney <cagney@redhat.com>
2257
2258 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
2259 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
2260 * frame.c (get_prev_frame): Restructure the frame ID unwind code
2261 to use unwind_dummy_id when a dummy frame.
2262 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
2263 predicate.
2264 * gdbarch.h, gdbarch.c: Regneerate.
2265
2266 2003-03-05 Andrew Cagney <cagney@redhat.com>
2267
2268 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
2269 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
2270 Do not use d10v_read_sp or d10v_read_fp when obtaining register
2271 values.
2272
2273 2003-03-05 Andrew Cagney <cagney@redhat.com>
2274
2275 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
2276 (struct d10v_unwind_cache): Delete field "frameless". Replace
2277 "next_addr" with "sp_offset". Add "r11_offset".
2278 (d10v_frame_unwind_cache): Update.
2279 (prologue_find_regs): Update. When "mv r11, sp", save the
2280 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
2281 RN was saved in r11_offset.
2282
2283 2003-03-05 Andrew Cagney <cagney@redhat.com>
2284
2285 * frame.c (deprecated_update_frame_pc_hack): Also update the the
2286 cached PC value in the next frame.
2287
2288 2003-03-05 Andrew Cagney <cagney@redhat.com>
2289
2290 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
2291 "id_unwind_cache" with "id".
2292 (frame_id_unwind): Delete declaration.
2293 * frame.c (frame_id_unwind): Delete function.
2294 (get_prev_frame): Call the frame id unwind method directly. Store
2295 the returned next frame's ID value in NEXT_FRAME. Note that there
2296 is a problem with the wrong unwind ID being called with the wrong
2297 unwind cache.
2298
2299 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
2300
2301 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
2302
2303 2003-03-05 James Ingham <jingham@apple.com>
2304 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
2307 (auto_cp_abi): New variable.
2308 (current_cp_abi, num_cp_abis): Make static.
2309 (CP_ABI_MAX): Define.
2310 (cp_abis): Turn into an array.
2311 (value_virtual_fn_field): Fix formatting.
2312 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
2313 takes a pointer.
2314 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
2315 (list_cp_abis, _initialize_cp_abi): New functions.
2316 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
2317 declarations for cp_abis, num_cp_abis, current_cp_abi, and
2318 switch_to_cp_abi. Update prototype for register_cp_abi.
2319 * Makefile.in (cp-abi.o): Update dependencies.
2320 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
2321 instead of switch_to_cp_abi.
2322 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
2323 register_cp_abi.
2324 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
2325 register_cp_abi.
2326 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
2327
2328 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
2329
2330 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
2331 * dwarf2loc.c: Include "regcache.h".
2332 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
2333 register_size.
2334 * Makefile.in (dwarf2loc.o): Update dependencies.
2335
2336 2003-03-04 Theodore A. Roth <troth@openavr.org>
2337
2338 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
2339 number of io registers reported by remote target is not a multiple of
2340 step.
2341
2342 2003-03-04 David Carlton <carlton@math.stanford.edu>
2343
2344 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
2345 (lookup_symbol_aux_psymtabs): Update call to
2346 lookup_partial_symbol.
2347 (lookup_transparent_type, find_main_psymtab)
2348 (make_symbol_overload_list): Ditto.
2349
2350 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
2351
2352 * MAINTAINERS (Write after approval): Update my email address.
2353
2354 2003-03-03 Andrew Cagney <cagney@redhat.com>
2355
2356 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
2357 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
2358 predicate. Replace MAX_REGISTER_RAW_SIZE.
2359 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
2360 MAX_REGISTER_VIRTUAL_SIZE.
2361 * regcache.c (legacy_max_register_raw_size): New function.
2362 (legacy_max_register_virtual_size): New function.
2363 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
2364 (MAX_REGISTER_RAW_SIZE): Define.
2365 (legacy_max_register_raw_size): Declare.
2366 (legacy_max_register_virtual_size): Declare.
2367 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2368 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
2369 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2370 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2371 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2372 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2373 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2374 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2375 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2377 * vax-tdep.c (vax_gdbarch_init): Update.
2378 * v850-tdep.c (v850_gdbarch_init): Update.
2379 * sparc-tdep.c (sparc_gdbarch_init): Update.
2380 * sh-tdep.c (sh_gdbarch_init): Update.
2381 * s390-tdep.c (s390_gdbarch_init): Update.
2382 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2383 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2384 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2385 * mips-tdep.c (mips_gdbarch_init): Update.
2386 * mcore-tdep.c (mcore_gdbarch_init): Update.
2387 * m68k-tdep.c (m68k_gdbarch_init): Update.
2388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2389 * ia64-tdep.c (ia64_gdbarch_init): Update.
2390 * i386-tdep.c (i386_gdbarch_init): Update.
2391 * hppa-tdep.c (hppa_gdbarch_init): Update.
2392 * h8300-tdep.c (h8300_gdbarch_init): Update.
2393 * frv-tdep.c (frv_gdbarch_init): Update.
2394 * cris-tdep.c (cris_gdbarch_init): Update.
2395 * avr-tdep.c (avr_gdbarch_init): Update.
2396 * arm-tdep.c (arm_gdbarch_init): Update.
2397 * alpha-tdep.c (alpha_gdbarch_init): Update.
2398 * d10v-tdep.c (d10v_gdbarch_init): Do not set
2399 max_register_raw_size or max_register_virtual_size.
2400
2401 2003-03-03 David Carlton <carlton@math.stanford.edu>
2402
2403 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
2404 SYMBOL_MATCHES_NAME, add comment.
2405 (SYMBOL_MATCHES_NATURAL_NAME): New.
2406 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
2407 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
2408 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
2409 * symtab.c (lookup_partial_symbol): Use
2410 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
2411 unhelpful comment.
2412 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
2413 SYMBOL_MATCHES_NAME.
2414 Fix for PR c++/33.
2415
2416 2003-03-03 David Carlton <carlton@math.stanford.edu>
2417
2418 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
2419 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
2420 by regexp matching against SYMBOL_NATURAL_NAME.
2421
2422 2003-03-03 David Carlton <carlton@math.stanford.edu>
2423
2424 * linespec.c (find_method): Extract code into collect_methods.
2425 (collect_methods): New.
2426
2427 2003-03-02 Mark Kettenis <kettenis@gnu.org>
2428
2429 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
2430 get_frame_base.
2431
2432 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
2433 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2434
2435 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
2436
2437 * arch-utils.c (generic_register_byte): Fix to use the loop index
2438 and not regnum when summing the size of all registers up to regnum.
2439
2440 2003-03-01 Andrew Cagney <cagney@redhat.com>
2441
2442 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
2443 FRAME_INIT_SAVED_REGS.
2444 * gdbarch.h, gdbarch.c: Regenerate.
2445 * stack.c (frame_info): Update.
2446 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
2447 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
2448 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
2449 * ns32k-tdep.c (ns32k_pop_frame): Update.
2450 * mips-tdep.c (mips_pop_frame): Update.
2451 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
2452 * ia64-tdep.c (ia64_frame_chain): Update.
2453 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
2454 (ia64_frameless_function_invocation): Update.
2455 (ia64_init_extra_frame_info): Update.
2456 (ia64_pop_frame_regular): Update.
2457 * frame.h (struct frame_info): Update comment.
2458 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
2459 * frame.c (frame_saved_regs_register_unwind): Update.
2460 (frame_saved_regs_register_unwind): Update.
2461 (deprecated_generic_get_saved_register): Update.
2462 * cris-tdep.c: Update comment.
2463 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
2464 Rename macro.
2465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2466 * x86-64-tdep.c (x86_64_init_abi): Update.
2467 * vax-tdep.c (vax_gdbarch_init): Update.
2468 * v850-tdep.c (v850_gdbarch_init): Update.
2469 * sparc-tdep.c (sparc_gdbarch_init): Update.
2470 * sh-tdep.c (sh_gdbarch_init): Update.
2471 * s390-tdep.c (s390_gdbarch_init): Update.
2472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2473 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2474 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2475 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2476 * mips-tdep.c (mips_gdbarch_init): Update.
2477 * mcore-tdep.c (mcore_gdbarch_init): Update.
2478 * m68k-tdep.c (m68k_gdbarch_init): Update.
2479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2480 * ia64-tdep.c (ia64_gdbarch_init): Update.
2481 * i386-tdep.c (i386_gdbarch_init): Update.
2482 * frv-tdep.c (frv_gdbarch_init): Update.
2483 * avr-tdep.c (avr_gdbarch_init): Update.
2484 * arm-tdep.c (arm_gdbarch_init): Update.
2485 * alpha-tdep.c (alpha_gdbarch_init): Update.
2486
2487 2003-03-01 Andrew Cagney <cagney@redhat.com>
2488
2489 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
2490 option enum and switch. When no windows, set the interpreter to
2491 INTERP_CONSOLE.
2492
2493 2003-03-01 Andrew Cagney <cagney@redhat.com>
2494
2495 * main.c (captured_main): Replace magic option characters with an
2496 enum.
2497
2498 2003-03-01 Andrew Cagney <cagney@redhat.com>
2499
2500 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2501 INIT_EXTRA_FRAME_INFO.
2502 * gdbarch.h, gdbarch.c: Regenerate.
2503 * arm-tdep.c: Update comments.
2504 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2505 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2506 * frame.h, avr-tdep.c: Ditto.
2507 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2508 (create_new_frame, legacy_get_prev_frame): Ditto.
2509 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2510 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2512 deprecated_init_extra_frame_info instead of init_extra_frame_info.
2513 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2514 * v850-tdep.c (v850_gdbarch_init): Ditto.
2515 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2516 * sh-tdep.c (sh_gdbarch_init): Ditto.
2517 * s390-tdep.c (s390_gdbarch_init): Ditto.
2518 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2519 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2520 * mips-tdep.c (mips_gdbarch_init): Ditto.
2521 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2523 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2524 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2525 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2526 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2527 * frv-tdep.c (frv_gdbarch_init): Ditto.
2528 * cris-tdep.c (cris_gdbarch_init): Ditto.
2529 * avr-tdep.c (avr_gdbarch_init): Ditto.
2530 * arm-tdep.c (arm_gdbarch_init): Ditto.
2531 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2532 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2533
2534 2003-03-01 Andrew Cagney <cagney@redhat.com>
2535
2536 * gdbarch.sh (register_type): New function with predicate.
2537 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2538 * gdbarch.h, gdbarch.c: Re-generate.
2539 * arch-utils.c (generic_register_byte): Use generic_register_size.
2540 (generic_register_size): When available, use
2541 gdbarch_register_type.
2542 * regcache.c (init_regcache_descr): When available, initialize the
2543 register type array using gdbarch_register_type. If the
2544 architecture supplies gdbarch_register_type, do not use the legacy
2545 regcache layout.
2546 * d10v-tdep.c (d10v_register_type): Replace
2547 d10v_register_virtual_type.
2548 (d10v_gdbarch_init): Set register_type instead of
2549 register_virtual_type.
2550
2551 2003-03-01 Andrew Cagney <cagney@redhat.com>
2552
2553 * Makefile.in (ax-gdb.o): Update dependencies.
2554 * ax-gdb.c: Include "regcache.h".
2555 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2556 * findvar.c (value_of_register): Ditto.
2557 * infcmd.c (default_print_registers_info): Ditto.
2558
2559 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2560
2561 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2562 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2563
2564 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2565
2566 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2567 of STREQ.
2568
2569 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
2570
2571 * Makefile.in (dwarf2loc.o): Update dependencies.
2572 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2573 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2574 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2575 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2576 (locexpr_tracepoint_var_ref): New function.
2577 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2578
2579 2003-02-28 Andrew Cagney <cagney@redhat.com>
2580
2581 * regcache.c (register_size): New function.
2582 * regcache.h (register_size): Declare
2583 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2584 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2585
2586 2003-02-28 David Carlton <carlton@math.stanford.edu>
2587
2588 * linespec.c (decode_compound): Extract code into find_method.
2589 (find_method): New.
2590
2591 2003-02-28 J. Brobecker <brobecker@gnat.com>
2592
2593 * Makefile.in: Add rules to build and link in observer.o.
2594
2595 2003-02-27 J. Brobecker <brobecker@gnat.com>
2596
2597 * observer.c: Minor comments edits.
2598
2599 2003-02-27 J. Brobecker <brobecker@gnat.com>
2600
2601 * observer.h, observer.c: New file.
2602
2603 2003-02-27 Andrew Cagney <cagney@redhat.com>
2604
2605 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2606
2607 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
2608
2609 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2610 (M6812_OP_STS_EXT): Likewise.
2611 (m6811_prologue): Use the above to recognize prologue.
2612 (m6812_prologue): Likewise.
2613
2614 2003-02-27 David Carlton <carlton@math.stanford.edu>
2615
2616 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2617 SYMBOL_PRINT_NAME.
2618 (compare_psymbols): Ditto.
2619 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2620
2621 2003-02-27 Michael Snyder <msnyder@redhat.com>
2622
2623 * f-lang.c (build_fortran_types): New function.
2624 (_initialize_f_language): Gdbarch-register built-in fortran types.
2625 * doublest.c (extract_floating): Fix warning text.
2626
2627 2003-02-27 Andrew Cagney <cagney@redhat.com>
2628
2629 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2630 predicate. Replaces PUSH_DUMMY_FRAME.
2631 * gdbarch.h, gdbarch.c: Regnerate.
2632 * valops.c (hand_function_call): Update. Call
2633 generic_push_dummy_frame directly.
2634 * vax-tdep.c (vax_gdbarch_init): Update.
2635 * sparc-tdep.c (sparc_gdbarch_init): Update.
2636 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2637 * m68k-tdep.c (m68k_gdbarch_init): Update.
2638 * hppa-tdep.c (hppa_gdbarch_init): Update.
2639 * alpha-tdep.c (alpha_gdbarch_init): Update.
2640 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2641 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2642 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2644 push_dummy_frame to generic_push_dummy_frame.
2645 * v850-tdep.c (v850_gdbarch_init): Ditto.
2646 * sh-tdep.c (sh_gdbarch_init): Ditto.
2647 * s390-tdep.c (s390_gdbarch_init): Ditto.
2648 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2649 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2650 * mips-tdep.c (mips_gdbarch_init): Ditto.
2651 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2653 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2654 * i386-tdep.c (i386_gdbarch_init): Ditto.
2655 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2656 * frv-tdep.c (frv_gdbarch_init): Ditto.
2657 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2658 * cris-tdep.c (cris_gdbarch_init): Ditto.
2659 * avr-tdep.c (avr_gdbarch_init): Ditto.
2660 * arm-tdep.c (arm_gdbarch_init): Ditto.
2661
2662 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2663
2664 * mips-tdep.c (show_mips_abi): New function.
2665 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2666 command ``show mips abi''.
2667
2668 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2669
2670 From Elena Zannoni <ezannoni@redhat.com>
2671 * dbxread.c (process_one_symbol): Only record line 0 if one or
2672 more sline entries have been seen for the function.
2673
2674 2003-02-26 Michael Chastain <mec@shout.net>
2675
2676 * configure: Regenerate with autoconf 000227.
2677
2678 2003-02-26 Michael Chastain <mec@shout.net>
2679
2680 Close PR build/660.
2681 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2682 for old libc5/glibc.
2683 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2684
2685 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2686
2687 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2688 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2689
2690 2003-02-26 Michael Chastain <mec@shout.net>
2691
2692 * configure.in: New variable HAVE_UINTPTR_T.
2693 * configure, config.in: Regenerated.
2694
2695 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2696
2697 Fix PR build/1097.
2698 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2699
2700 2003-02-25 Andrew Cagney <cagney@redhat.com>
2701
2702 * frame.c (get_prev_frame): Add comment on check for
2703 inside_entry_func. Only check for inside_entry_file when not a
2704 dummy and not a sentinel. Check that the new frame is not inner
2705 to the old frame.
2706
2707 2003-02-25 Andrew Cagney <cagney@redhat.com>
2708
2709 * frame.c (frame_debug): New variable.
2710 (_initialize_frame): Add "set/show debug frame" command.
2711 (get_prev_frame): When frame_debug, print reason why unwind
2712 failed.
2713
2714 2003-02-25 Michael Chastain <mec@shout.net>
2715
2716 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2717 to avoid uintptr_t definition problems.
2718
2719 2003-02-25 David Carlton <carlton@math.stanford.edu>
2720
2721 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2722 (SYMBOL_LINKAGE_NAME): Ditto.
2723 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2724 SYMBOL_LINKAGE_NAME.
2725 (struct general_symbol_info): Expand comment.
2726 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2727 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2728 (SYMBOL_MATCHES_REGEXP): Ditto.
2729 * symtab.c (symbol_natural_name): New function.
2730 * objfiles.h: Replace all uses of SYMBOL_NAME by
2731 DEPRECATED_SYMBOL_NAME.
2732 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2733 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2734 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2735 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2736 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2737 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2738 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2739 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2740 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2741 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2742 * ada-exp.y: Ditto.
2743 * ada-exp.y: Update copyright.
2744 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2745 * cp-valprint.c: Ditto.
2746
2747 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2748
2749 * infptrace.c (detach): Do not flag error if ptrace detach fails
2750 and errno is set to ESRCH.
2751
2752 2003-02-24 Andrew Cagney <cagney@redhat.com>
2753
2754 * infptrace.c (udot_info): Change type of udot_off to long. Use
2755 paddr when printing udot_off's value.
2756
2757 2003-02-24 David Carlton <carlton@math.stanford.edu>
2758
2759 * symtab.c (make_symbol_overload_list): Only read in partial
2760 symtabs containing a matching partial symbol.
2761
2762 2003-02-24 David Carlton <carlton@math.stanford.edu>
2763
2764 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2765 do the comparison, not strcmp.
2766 * symfile.c (compare_psymbols): Ditto.
2767 * defs.h: Declare strcmp_iw_ordered.
2768 * utils.c (strcmp_iw_ordered): New function.
2769
2770 2003-02-24 Jim Blandy <jimb@redhat.com>
2771
2772 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2773 support, shared libs): Remove my name from here, to better reflect
2774 reality.
2775
2776 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2777
2778 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2779 (target_ops): Add to_have_continuable_watchpoint.
2780 * target.c (update_current_target): Add INHERIT line for
2781 to_have_continuable_watchpoint.
2782 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2783 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2784 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2785 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2786
2787 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2788
2789 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2790 maintainership.
2791
2792 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2793
2794 * solib.c (solib_open): Call target defined search function after
2795 failing with solib-search-path.
2796 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2797 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2798
2799 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2800
2801 * MAINTAINERS: Add myself to Write After section.
2802
2803 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2804
2805 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2806
2807 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2808
2809 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2810 (m68hc11_add_reggroups): New function.
2811 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2812 (m68hc11_gdbarch_init): Install the reggroups.
2813 (_initialize_m68hc11_tdep): Initialize them.
2814
2815 2003-02-21 James E Wilson <wilson@tuliptree.org>
2816
2817 * MAINTAINERS: Update my email address.
2818
2819 2003-02-21 David Carlton <carlton@math.stanford.edu>
2820
2821 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2822
2823 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2824
2825 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2826 * symtab.h: Add opaque declarations of struct axs_value and
2827 struct agent_expr.
2828 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2829 (struct location_funcs): New type.
2830 (struct symbol): Add "loc" to aux_value.
2831 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2832 * dwarf2read.c: Include "dwarf2expr.h".
2833 (dwarf2_symbol_mark_computed): New function.
2834 (read_func_scope): Use it.
2835 (var_decode_location): New function.
2836 (new_symbol): Use it.
2837 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2838
2839 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2840 (dwarf2expr_h, dwarf2loc_h): New variables.
2841 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2842 (dwarf2expr.o, dwarf2loc.o): New rules.
2843 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2844 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2845 LOC_COMPUTED_ARG.
2846 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2847 * m2-exp.y (yylex): Likewise.
2848 * printcmd.c (address_info, print_frame_args): Likewise.
2849 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2850 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2851 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2852 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2853 * symtab.c (lookup_block_symbol): Likewise.
2854
2855 2003-02-20 Adam Fedor <fedor@gnu.org>
2856
2857 * symtab.h: Remove objc_specific struct
2858 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2859 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2860 Have language_objc use cplus_specific struct.
2861
2862 2003-02-20 Tom Tromey <tromey@redhat.com>
2863
2864 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2865 TYPE_NAME, when printing a String value. PR java/1075.
2866
2867 2003-02-20 Adam Fedor <fedor@gnu.org>
2868
2869 * objc-lang.h (find_methods): Remove declaration.
2870 * objc-lang.c (find_methods): Make static.
2871
2872 2003-02-20 Christopher Faylor <cgf@redhat.com>
2873
2874 * win32-nat.c (get_image_name): Check return value from
2875 ReadProcessMemory.
2876 (child_xfer_memory): Ditto.
2877
2878 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2879
2880 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2881 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2882 '${exec_prefix}' (in addition to the expansion thereof) as
2883 relocatable.
2884 * configure: Rebuilt.
2885
2886 2003-02-20 David Carlton <carlton@math.stanford.edu>
2887
2888 * symtab.c (search_symbols): Revert the search_symbols part of my
2889 2002-12-23 patch. Add comment.
2890
2891 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2892
2893 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2894 * dbxread.c (elfstab_build_psymtabs): Don't call
2895 install_minimal_symbols.
2896 (stabsect_build_psymtabs): Likewise.
2897 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2898 earlier.
2899 * somread.c (som_symfile_read): Call install_minimal_symbols
2900 and do_cleanups earlier.
2901 * nlmread.c (nlm_symfile_read): Likewise.
2902 * mdebugread.c (elfmdebug_build_psymtabs): Call
2903 install_minimal_symbols and make appropriate cleanups.
2904
2905 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2906
2907 * solib.c (reload_shared_libraries): New function.
2908 (_initialize_solib): Add callbacks for ``set solib-search-path''
2909 and ``set solib-absolute-prefix''.
2910
2911 2003-02-20 David Carlton <carlton@math.stanford.edu>
2912
2913 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2914 expand comment.
2915 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2916 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2917 * ada-typeprint.c (ada_typedef_print): Ditto.
2918 * ax-gdb.c (gen_var_ref): Ditto.
2919 * breakpoint.c (print_one_breakpoint): Ditto.
2920 * buildsym.c (finish_block): Ditto.
2921 * c-valprint.c (c_val_print): Ditto.
2922 * expprint.c (print_subexp): Ditto.
2923 * findvar.c (locate_var_value): Ditto.
2924 * infcmd.c (jump_command): Ditto.
2925 * linespec.c (decode_line_2, decode_compound): Ditto.
2926 * maint.c (maintenance_translate_address): Ditto.
2927 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2928 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2929 Ditto.
2930 * p-valprint.c (pascal_val_print): Ditto.
2931 * stabsread.c (define_symbol): Ditto.
2932 * stack.c (print_frame, frame_info, print_block_frame_locals)
2933 (print_frame_arg_vars, return_command): Ditto.
2934 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2935 * symmisc.c (print_symbol): Ditto.
2936 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2937 (compare_search_syms, print_symbol_info, print_msymbol_info)
2938 (rbreak_command): Ditto.
2939 * tracepoint.c (tracepoints_info): Ditto.
2940 * typeprint.c (typedef_print): Ditto.
2941 * valops.c (value_of_variable, hand_function_call): Ditto.
2942 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2943 * ada-typeprint.c: Update Copyright.
2944 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2945 * tracepoint.c, cli/cli-cmds.c: Ditto.
2946
2947 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2948
2949 * frame.c (generic_unwind_get_saved_register): Make non-static.
2950 * frame.h (generic_unwind_get_saved_register): Declare.
2951 * mips-tdep.c (read_next_frame_reg): Fetch register from
2952 current regcache when frame is NULL.
2953 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2954 that must be NULL.
2955 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2956 instead of frame_register_unwind().
2957
2958 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2959
2960 * remote-sim.c (gdbsim_insert_breakpoint)
2961 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2962 code.
2963
2964 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2965
2966 * remote.c (_initialize_remote): Add commands "set/show remote
2967 hardware-watchpoint-limit" and "set/show remote
2968 hardware-breakpoint-limit".
2969 (remote_hw_watchpoint_limit): Initialize to -1.
2970 (remote_hw_breakpoint_limit): Ditto.
2971 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2972
2973 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2974
2975 * coff-pe-read.c: New file - support reading of minimal symbols from a
2976 portable executable using the export table.
2977 * coff-pe-read.h: New file.
2978 * coffread.c: Include coff-pe-read.h.
2979 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2980 debugging symbols found.
2981 * Makefile.in (SFILES): Add coff-pe-read.o.
2982 (coff_pe_read_h): Define.
2983 (COMMON_OBS): Add coff-pe-read.o.
2984 (coffread.o): Add coff_pe_read_h dependency.
2985 (coff-pe-read.o): New target.
2986
2987 2003-02-19 David Carlton <carlton@math.stanford.edu>
2988
2989 * Makefile.in (SFILES): Add block.c.
2990 (block_h): New.
2991 (COMMON_OBS): Add block.o.
2992 (block.o): New.
2993 (x86-64-tdep.o): Add $(block_h).
2994 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2995 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2996 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2997 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2998 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2999 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
3000 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
3001 * value.h: Add opaque declaration for struct block.
3002 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
3003 * ada-lang.h: Ditto.
3004 * x86-64-tdep.c: #include "block.h"
3005 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
3006 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
3007 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
3008 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
3009 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
3010 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
3011 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
3012 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
3013 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
3014 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
3015 * symtab.c (block_function): Ditto.
3016 (contained_in): Ditto.
3017 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
3018 block.h. Add opaque declaration for struct block.
3019 * symtab.h: Move block_function and contained_in declarations to
3020 block.h. Add opaque declarations for struct block, struct
3021 blockvector.
3022 (struct block): Move to block.h.
3023 (struct blockvector): Ditto.
3024 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
3025 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
3026 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
3027 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
3028 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
3029 Ditto.
3030 * block.c: New file.
3031 * block.h: New file.
3032
3033 2003-02-19 Theodore A. Roth <troth@openavr.org>
3034
3035 * avr-tdep.c (avr_extract_return_value): Remove function.
3036 (avr_store_return_value): Remove function.
3037 (avr_extract_struct_value_address): Remove function.
3038 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
3039
3040 2003-02-19 Andrew Cagney <ac131313@redhat.com>
3041
3042 * rs6000-tdep.c: Include "gdb_assert.h".
3043 (registers_e500): Add "acc" and "spefscr".
3044 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
3045 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
3046 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
3047 really is "r0".
3048 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
3049
3050 2003-02-18 Keith Seitz <keiths@redhat.com>
3051
3052 * Makefile.in: Add gdbtk-interps.c.
3053
3054 2003-02-18 Kevin Buettner <kevinb@redhat.com>
3055
3056 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
3057 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
3058
3059 2003-02-18 Andrew Cagney <cagney@redhat.com>
3060
3061 * symtab.h (struct objfile): Add opaque declaration.
3062
3063 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
3064
3065 From Jim Ingham <jingham@apple.com>:
3066 * dbxread.c (process_one_symbol): Use last_function_start rather
3067 than function_start_offset to find the real beginning of the
3068 current function. The latter is just the text section offset on
3069 some systems, the former is always the real function start.
3070
3071 2003-02-17 Andrew Cagney <cagney@redhat.com>
3072
3073 * configure.in: Revert ${target} != ${host}.
3074
3075 2003-02-17 Andrew Cagney <ac131313@redhat.com>
3076
3077 * configure.in (Makefile): Use the test ${target} != ${host},
3078 instead of the absence of the "nm.h" file, to determine of the
3079 configuration non-native.
3080 * configure: Regenerate.
3081
3082 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
3083
3084 From Brian Ford <ford@vss.fsi.com>
3085
3086 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
3087 conditionalize tui_active test.
3088 (lookup_cmd_1): Ditto.
3089
3090 2003-02-14 Mark Kettenis <kettenis@gnu.org>
3091
3092 * configure.in: Add check for _etext.
3093 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
3094 available.
3095 * config.in, configure: regenerated.
3096
3097 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
3098
3099 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
3100
3101 2003-02-14 Andrew Cagney <ac131313@redhat.com>
3102
3103 * main.c (tui_version): Delete variable.
3104 (captured_main): When --tui, set interpreter_p to "tui" instead of
3105 enabling tui_version.
3106 * printcmd.c (display_command) [TUI]: Test tui_active instead of
3107 tui_version.
3108 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
3109 * cli/cli-cmds.c (disassemble_command): Ditto.
3110 * defs.h (tui_version): Delete declaration.
3111 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
3112 (tui-interp.o): Add rules.
3113 (SUBDIR_TUI_OBS): Add "tui-interp.o".
3114
3115 2003-02-14 Christopher Faylor <cgf@redhat.com>
3116
3117 * win32-nat.c (register_loaded_dll): Correctly set address range for
3118 just-loaded dll.
3119
3120 2003-02-12 Jason Molenda (jmolenda@apple.com)
3121
3122 * symmisc.c (print_objfile_statistics): Include information about
3123 the number of psymtabs and symtabs in each object file.
3124
3125 2003-02-13 Keith R Seitz <keiths@redhat.com>
3126
3127 * main.h (struct captured_main_args): Add interpreter_p.
3128 * main.c (captured_main): Initialize interpreter_p from context.
3129 * gdb.c (main): Set interpreter_p argument.
3130 * Makefile.in (gdb.o): Add dependency for interps.h.
3131
3132 2003-02-12 Andrew Cagney <ac131313@redhat.com>
3133
3134 * event-top.c (cli_command_loop): Delete declaration.
3135 (_initialize_event_loop): Delete function setting event_loop_hook.
3136 * event-top.h (cli_command_loop): Declare. Update copyright.
3137 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
3138 * interps.c (current_interp_command_loop): When event_loop_p, call
3139 cli_command_loop.
3140
3141 2003-02-12 Andrew Cagney <ac131313@redhat.com>
3142
3143 * interps.h (interp_command_loop_ftype): Change return type to
3144 void.
3145
3146 2003-02-12 Michal Ludvig <mludvig@suse.cz>
3147
3148 * x86-64-tdep.c (x86_64_extract_return_value)
3149 (x86_64_store_return_value): Use regcache instead of regbuf.
3150 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
3151 * x86-64-linux-nat.c (fill_gregset): Use regcache.
3152
3153 2003-02-11 Andrew Cagney <ac131313@redhat.com>
3154
3155 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
3156 * aclocal.m4: Regenerate.
3157 * configure: Regenerate.
3158
3159 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
3160 TCL_LD_SEARCH_FLAGS.
3161
3162 2003-02-10 Michal Ludvig <mludvig@suse.cz>
3163
3164 * dwarf2cfi.c: Reindented.
3165
3166 2003-02-09 Andrew Cagney <ac131313@redhat.com>
3167
3168 * interps.c (clear_interpreter_hooks): Convert function definition
3169 to ISO C.
3170
3171 2003-02-07 David Carlton <carlton@math.stanford.edu>
3172
3173 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
3174
3175 2003-02-07 Kevin Buettner <kevinb@redhat.com>
3176
3177 * gdbtypes.h (struct main_type): Move ``length'' field from here...
3178 (struct type): ...to here.
3179 (TYPE_LENGTH): Adjust to reflect different location of ``length''
3180 field.
3181 * gdbtypes.c (make_qualified_type): Set length on newly created type.
3182 (replace_type): Set length on all type variants for a given type.
3183
3184 2003-02-07 Andrew Cagney <ac131313@redhat.com>
3185
3186 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
3187 <sys/stat.h>.
3188 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
3189
3190 2003-02-06 Andrew Cagney <ac131313@redhat.com>
3191
3192 * Makefile.in (symm-nat.o): Update dependencies.
3193 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
3194 (lynx-nat.o, ia64-linux-nat.): Ditto.
3195 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
3196 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
3197 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
3198
3199 * Makefile.in (inflow_h): Define.
3200 (procfs.o, inflow.o, procfs.o): Update dependencies.
3201 * inftarg.c (child_stop): Delete extern declaration of
3202 inferior_process_group. Include "inflow.h".
3203 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
3204 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
3205 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
3206 (our_process_group, inferior_process_group): Extern declarations.
3207
3208 * procfs.c: Include "gdb_assert.h".
3209
3210 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3211 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
3212 * jv-typeprint.c (java_type_print_base): Ditto.
3213 * typeprint.c (typedef_print): Eliminate STREQ.
3214 * cli/cli-script.c (define_command, define_command): Ditto.
3215 * main.c (captured_main): Ditto.
3216 * values.c (lookup_internalvar): Ditto.
3217 * utils.c (safe_strerror, parse_escape): Eliminate assignment
3218 within `if' conditional.
3219 * linespec.c (decode_line_2): Ditto.
3220 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
3221 (bfd_openw_with_cleanup): Ditto.
3222
3223 2003-02-07 Mark Kettenis <kettenis@gnu.org>
3224
3225 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
3226 legacy_extract_return_value and store_return_value to
3227 legacy_return_value.
3228
3229 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
3230
3231 * win32-nat.c (get_relocated_section_addrs): New function. Find
3232 section load addresses for symbol handling in relocated DLLs.
3233 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
3234
3235 2003-02-05 Fred Fish <fnf@intrinsity.com>
3236
3237 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
3238 '=' and '!='.
3239 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
3240 with '&' and '=='.
3241 (angel_RDI_info): Ditto.
3242 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
3243 with '&' and '!='.
3244 (threads_continue_all_with_signals): Ditto.
3245
3246 2003-02-05 Jim Ingham <jingham@apple.com>
3247 Keith Seitz <keiths@redhat.com>
3248 Elena Zannoni <ezannoni@redhat.com>
3249 Andrew Cagney <ac131313@redhat.com>
3250
3251 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
3252 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
3253 (SUBDIR_MI_OBS): Add "mi-interp.o".
3254 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
3255 (SFILES): Add "interps.c".
3256 (COMMON_OBS): Add "interps.o".
3257 (interps_h, mi_main_h): Define.
3258 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
3259 (mi-main.o, main.o, event-top.o): Update dependencies.
3260 * cli/cli-interp.c: New file.
3261 * interps.h, interps.c: New files.
3262 * top.c: (gdb_init): Don't install the default interpreter, handed
3263 by captured_main.
3264 * main.c: Include "interps.h".
3265 (interpreter_p): Note that it should malloc'ed.
3266 (captured_command_loop): Call current_interp_command_loop.
3267 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
3268 xfree and xstrdup when updating interpreter_p. Install the
3269 default interpreter. Add hack to stop mi1's copyright notice
3270 being encoded.
3271 * event-top.h (gdb_setup_readline): Declare.
3272 (gdb_disable_readline): Declare.
3273 * event-top.c: Include "interps.h".
3274 (display_gdb_prompt): Call current_interp_display_prompt_p.
3275 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
3276 gdb_stdlog, and gdb_stdtarg.
3277 (_initialize_event_loop): Don't call gdb_setup_readline.
3278 * cli-out.c (cli_out_set_stream): New function.
3279 * cli-out.h (cli_out_set_stream): Declare.
3280
3281 2003-02-06 Mark Kettenis <kettenis@gnu.org>
3282
3283 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
3284 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
3285 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
3286 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
3287 config/i386/i386v42mp.mt: Removed.
3288
3289 2003-02-05 Mark Kettenis <kettenis@gnu.org>
3290
3291 * configure.tgt (*-*-solaris*): Set gdb_osabi to
3292 GDB_OSABI_SOLARIS.
3293
3294 2003-02-05 Michael Chastain <mec@shout.net>
3295
3296 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
3297 2.12.1 and earlier versions.
3298
3299 2003-02-05 Andrew Cagney <ac131313@redhat.com>
3300
3301 Remove orphaned hosts, targets and files.
3302 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
3303 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
3304 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
3305 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
3306 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
3307 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
3308 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
3309 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
3310 * config/sparc/tm-sp64sim.h: Delete.
3311 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
3312 hosts.
3313 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
3314 mips*-dec-mach3* targets.
3315
3316 2003-02-04 Michael Chastain <mec@shout.net>
3317
3318 * NEWS: Fix typo: sepcifying -> specifying.
3319
3320 2003-02-04 Michael Chastain <mec@shout.net>
3321
3322 * dwarfread.c: Add documentation on the state of dwarf-1,
3323 looking towards obsoletion.
3324
3325 2003-02-03 Michael Chastain <mec@shout.net>
3326
3327 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
3328 gdb/testsuite/gdb.c++/pr-1023.exp.
3329
3330 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3331
3332 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
3333 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
3334
3335 * utils.c (init_page_info): Delete reference to MPW in comments.
3336 * main.c (captured_main): Delete #ifdef MPW.
3337
3338 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3339
3340 * NEWS: Note that the m32r-*-elf* is obsolete.
3341 * monitor.c (monitor_expect): Obsolete reference to m32r.
3342 * configure.tgt: Mark m32r-*-elf* as obsolete.
3343 * MAINTAINERS: Mark m32k as obsolete.
3344 * m32r-rom.c: Obsolete file.
3345 * config/m32r/m32r.mt: Obsolete file.
3346 * config/m32r/tm-m32r.h: Obsolete file.
3347 * m32r-stub.c: Obsolete file.
3348 * m32r-tdep.c: Obsolete file.
3349
3350 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3351
3352 * NEWS: Mention that the z8k-zilog-none is obsolete.
3353 * MAINTAINERS: Mark z8k as obsolete.
3354 * configure.tgt: Obsolete the z8k-*-coff* target.
3355 * config/z8k/z8k.mt: Obsolete file.
3356 * config/z8k/tm-z8k.h: Obsolete file.
3357 * z8k-tdep.c: Obsolete file.
3358
3359 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3360
3361 * NEWS: Mention that the mn10200-elf is obsolete.
3362 * configure.tgt: Obsolete mn10200-*-* target.
3363 * breakpoint.c (update_breakpoints_after_exec): Update comment to
3364 mention that the mn10200 is obsolete.
3365 * breakpoint.h: Ditto.
3366 * MAINTAINERS: Mark the mn10200-elf as obsolete.
3367 * config/mn10200/mn10200.mt: Obsolete file.
3368 * config/mn10200/tm-mn10200.h: Obsolete file.
3369 * mn10200-tdep.c: Obsolete file.
3370
3371 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3372
3373 * MAINTAINERS: Mark h8500 as obsolete.
3374 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
3375 * findvar.c (value_from_register): Ditto.
3376 * h8500-tdep.c: Mark file as obsolete.
3377 * config/h8500/h8500.mt: Ditto.
3378 * config/h8500/tm-h8500.h: Ditto.
3379 * NEWS: Mention that h8500 is obsolete.
3380
3381 2003-02-04 David Carlton <carlton@math.stanford.edu>
3382
3383 * objfiles.c (allocate_objfile): Always set name. Add comment at
3384 start of function.
3385 * jv-lang.c (get_dynamics_objfile): Add comment.
3386
3387 2003-02-04 David Carlton <carlton@math.stanford.edu>
3388
3389 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
3390 * printcmd.c (build_address_symbolic): Replace uses of
3391 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
3392 SYMBOL_NAME, and asm_demangle.
3393 Update copyright.
3394
3395 2003-02-04 David Carlton <carlton@math.stanford.edu>
3396
3397 * linespec.c (decode_compound): Extract code into
3398 lookup_prefix_sym.
3399 (lookup_prefix_sym): New function.
3400
3401 2003-02-04 David Carlton <carlton@math.stanford.edu>
3402
3403 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
3404 FLOAT_COERCION_BADNESS.
3405 * gdbtypes.c (rank_one_type): Replace all uses of
3406 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
3407
3408 2003-02-04 Jim Blandy <jimb@redhat.com>
3409
3410 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
3411 section, let dwarf_macinfo_section point to it, not
3412 dwarf_loc_section.
3413
3414 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
3415
3416 Pointed out by Anton Blanchard <anton@samba.org>.
3417 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
3418 (ppc_linux_at_sigtramp_return_path): Use it.
3419
3420 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * defs.h (streq): Add prototype.
3423 * utils.c (streq): New function.
3424
3425 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
3426 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
3427 * mdebugread.c (new_symbol): Likewise.
3428 * stabsread.c (define_symbol): Likewise.
3429 * coffread.c (process_coff_symbol): Likewise.
3430 * dwarfread.c (new_symbol): Likewise.
3431
3432 * minsyms.c (prim_record_minimal_symbol_and_info): Use
3433 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
3434 here.
3435 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
3436 SYMBOL_INIT_DEMANGLED_NAME.
3437 * objfiles.c: Include "hashtab.h".
3438 (allocate_objfile): Call htab_set_functions_ex for the
3439 demangled_names_hash.
3440 (free_objfile): Call htab_delete for the demangled_names_hash.
3441 * objfiles.h (struct htab): Add declaration.
3442 (struct objfile): Add demangled_names_hash.
3443 * symfile.c: Include "hashtab.h".
3444 (reread_symbols): Call htab_delete for the demangled_names_hash.
3445 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
3446 SYMBOL_NAME in the bcache.
3447 * symtab.c: Include "hashtab.h". Update comments.
3448 (create_demangled_names_hash, symbol_set_names): New functions.
3449 (symbol_find_demangled_name): New function, broken out from
3450 symbol_init_demangled_names.
3451 (symbol_init_demangled_names): Use it.
3452 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
3453 (SYMBOL_SET_NAMES): New macro.
3454 (symbol_set_names): Add prototype.
3455
3456 2003-02-03 Jim Blandy <jimb@redhat.com>
3457
3458 Use a single, consistent representation for an empty minimal
3459 symbol table in an objfile.
3460 * objfiles.c (terminate_minimal_symbol_table): New function.
3461 (allocate_objfile): Call it.
3462 * objfiles.h (terminate_minimal_symbol_table): New declaration.
3463 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
3464 non-NULL.
3465 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
3466 objfile has minimal symbols, compare minimal_symbol_count to zero,
3467 instead of comparing msymbols with NULL.
3468 * objfiles.c (have_minimal_symbols): Same.
3469 * solib-sunos.c (solib_add_common_symbols): Call
3470 terminate_minimal_symbol_table.
3471 * symfile.c (reread_symbols): Same.
3472
3473 2003-02-03 Kevin Buettner <kevinb@redhat.com>
3474
3475 * s390-tdep.c (s390_address_class_type_flags)
3476 (s390_address_class_type_flags_to_name)
3477 (s390_address_class_name_to_type_flags): New functions.
3478 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
3479 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
3480
3481 2003-02-03 Michael Snyder <msnyder@redhat.com>
3482
3483 * arm-tdep.c: Fix spell-o in comment.
3484
3485 2003-02-03 Michal Ludvig <mludvig@suse.cz>
3486
3487 * dwarf2cfi.c (pointer_encoding): Added new parameter.
3488 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
3489 error messages to contain BFD filename.
3490
3491 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
3492
3493 Fix PR gdb/742 gdb/743 gdb/877
3494 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3495 (do_mixed_source_and_assembly): Use
3496 make_cleanup_ui_out_tuple_begin_end and
3497 make_cleanup_ui_out_tuple_begin_end.
3498 (do_mixed_source_and_assembly): Ditto.
3499 * thread.c (do_captured_list_thread_ids): Ditto.
3500 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3501 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3502 ui_out_tuple_end): Delete prototypes.
3503 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3504 ui_out_list_end, ui_out_tuple_end): Delete.
3505
3506 From Kevin Buettner <kevinb@redhat.com>:
3507 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3508 * ui-out.c (make_cleanup_ui_out_table_begin_end)
3509 (do_cleanup_table_end): New functions.
3510 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3511 Use cleanups to invoke_ui_out_tuple_end().
3512 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3513 * cli/cli-setshow.c (cmd_show_list): Use
3514 make_cleanup_ui_out_tuple_begin_end.
3515
3516 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3517
3518 * frame.c (frame_unwind_register): New function.
3519 (frame_unwind_unsigned_register): Use.
3520 (frame_unwind_signed_register): Use.
3521 (frame_read_register): New function.
3522 * frame.h (frame_unwind_register): Declare.
3523 (frame_read_register): Declare.
3524
3525 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3526 and frame_unwind_register instead of read_memory, write_register
3527 and deprecated_write_register_bytes.
3528
3529 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3530
3531 * frame.h: Note that namelen can be negative.
3532 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3533 NAME's length.
3534
3535 * NEWS: Mention that the d10v's `regs' command is deprecated.
3536 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3537 (d10v_print_registers_info): New function.
3538 (show_regs): Call d10v_print_registers_info.
3539 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3540
3541 2003-02-02 Mark Kettenis <kettenis@gnu.org>
3542
3543 * stack.c (print_frame_info): Restore call to annotate_frame_begin
3544 lost in the previous patch.
3545
3546 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3547
3548 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
3549 * stack.c (print_frame_info_base): Output complete FRAME tuple
3550 for synthesized frames.
3551
3552 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3553
3554 * mips-nat.c (zerobuf): Delete.
3555 (fetch_inferior_registers): Alloc local zerobuf.
3556 (fetch_core_registers): Alloc local zerobuf.
3557 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3558 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3559 * thread-db.c (thread_db_store_registers): Ditto.
3560 * sh-tdep.c (sh_do_register): Ditto.
3561 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3562 * remote-sim.c (gdbsim_store_register): Ditto.
3563 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3564 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3565 * monitor.c (monitor_supply_register): Ditto.
3566 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3567 * mips-nat.c (fetch_inferior_registers): Ditto.
3568 * m68klinux-nat.c (fetch_register): Ditto.
3569 * lynx-nat.c (fetch_inferior_registers): Ditto.
3570 (fetch_inferior_registers): Ditto.
3571 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3572 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3573 (hpux_thread_store_registers): Ditto.
3574 * hppah-nat.c (fetch_register): Ditto.
3575 * hppab-nat.c (fetch_register): Ditto.
3576 * hppa-tdep.c (pa_register_look_aside): Ditto.
3577 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3578 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3579
3580 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3581
3582 * gdbarch.sh: Explictly specify all method levels. When a
3583 variable with an empty level, provide a non-multi-arch default.
3584 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3585 * gdbarch.h: Re-generate.
3586 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3587 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3588
3589 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3590
3591 * defs.h (host_pointer_to_address): Delete declaration.
3592 (address_to_host_pointer): Delete declaration.
3593 * utils.c (host_pointer_to_address): Delete function.
3594 (address_to_host_pointer): Delete function.
3595 * procfs.c (procfs_address_to_host_pointer): New function.
3596 * procfs.c (proc_set_watchpoint): Use.
3597 (procfs_can_use_hw_breakpoint): Update comments.
3598 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3599 (som_solib_add): Use.
3600 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3601 * hppa-tdep.c (unwind_command): Use.
3602
3603 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3604
3605 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3606 strlen d_name.
3607
3608 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3609 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3610 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3611 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3612 (define_symbol): Update.
3613 * symfile.c (generic_load): Remove references to nindy.
3614 * symtab.c: Remove references to nindy.
3615
3616 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3617
3618 * infcmd.c (print_float_info): Delete code conditional on
3619 FLOAT_INFO.
3620 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3621 * config/m68k/nm-apollo68b.h: Ditto.
3622 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3623 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3624 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3625
3626 2003-02-01 Mark Kettenis <kettenis@gnu.org>
3627
3628 * config/i386/tm-i386os9k.h: Removed.
3629
3630 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3631 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3632 they're identical to i[3456]86-*-sysv* now.
3633 * config/i386/i386v32.mh: Removed.
3634 * config/i386/xm-i386v32.h: Removed.
3635 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3636
3637 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3638
3639 * config/i386/i386dgux.mh: Removed.
3640 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3641
3642 * configure.in: Fix typo.
3643 * configure: Regenerated.
3644
3645 2003-01-31 David Carlton <carlton@math.stanford.edu>
3646
3647 * dwarf2read.c (dwarf2_locate_sections): Set
3648 dwarf_ranges_section.
3649
3650 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3651
3652 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3653 * utils.c: Update comments documenting legitimate uses of PTR.
3654
3655 * utils.c: Re-indent.
3656
3657 * config/djgpp/fnchange.lst: Delete nindy files.
3658 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3659 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3660 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3661 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3662 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3663 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3664 * Makefile.in (init.c): Remove nindy references.
3665 (saber_gdb): Delete rule.
3666 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3667 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3668 and a68v-nat.c.
3669 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3670 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3671 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3672 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3673 nindy-share/stop.h.
3674 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3675 * saber.suppress: Delete file.
3676
3677 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3678
3679 * dbxread.c (stabs_data): New static variable.
3680 (fill_symbuf): Support an in-memory buffer for stabs data.
3681 (stabs_seek): New function.
3682 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3683 (read_ofile_symtab): Use stabs_seek.
3684 (elfstab_build_psymtabs): Take an asection* instead of
3685 an offset and size. Relocate the stabs data if necessary.
3686 Save the section* for dbx_psymtab_to_symtab.
3687 * dwarf2read.c: Add section variables for each debug section.
3688 (dwarf2_locate_sections): Fill them in.
3689 (dwarf2_read_section): Take an asection* argument.
3690 Relocate the section contents if necessary.
3691 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3692 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3693 it to dwarf2_read_section.
3694 (dwarf2_build_frame_info): Update callers.
3695 * elfread.c (elf_symfile_read): Update call to
3696 elfstab_build_psymtabs.
3697 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3698 (DBX_STAB_SECTION): New macro.
3699 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3700 * symfile.c (symfile_dummy_outputs): New function.
3701 (symfile_relocate_debug_section): New function.
3702 * symfile.h (symfile_relocate_debug_section): Add prototype.
3703
3704 2003-01-31 Richard Henderson <rth@redhat.com>
3705
3706 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3707 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3708 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3709 * alpha-tdep.c (alpha_register_name): Add "unique".
3710 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3711 (ALPHA_UNIQUE_REGNUM): New.
3712 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3713
3714 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3715
3716 * README: Remove reference to Ericsson 1800 monitor.
3717 * Makefile.in (remote-es.o): Delete rule.
3718 (ALLDEPFILES): Delete remote-es.c.
3719 * remote-es.c: Delete file.
3720 * config/m68k/es1800.mt: Delete file.
3721 * config/djgpp/fnchange.lst: Update.
3722 * configure.tgt: Delete m68*-ericsson-* target.
3723
3724 2003-01-31 Adam Fedor <fedor@gnu.org>
3725
3726 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3727 Remove duplicate/shadowing variable of same name.
3728
3729 2003-01-30 Jim Blandy <jimb@redhat.com>
3730
3731 * symfile.c (find_separate_debug_file): Assert that the objfile's
3732 directory name we compute ends with a slash, and then assume that
3733 that's so everywhere we use it.
3734
3735 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * valops.c (value_assign): Flush frame cache after stores to memory
3738 also.
3739
3740 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3741
3742 * Makefile.in (mon960-rom.o): Delete rule.
3743 * mon960-rom.c: Delete file.
3744
3745 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3746
3747 * d10v-tdep.c: Include "frame-unwind.h".
3748 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3749 list.
3750 (next_addr, uses_frame): Delete.
3751 (struct d10v_unwind_cache): Define.
3752 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3753 Use info instead of next_addr and uses_frame globals.
3754 (d10v_frame_init_saved_regs): Delete function.
3755 (d10v_init_extra_frame_info): Delete function.
3756 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3757 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3758 init_frame_pc or frame_saved_pc.
3759 (d10v_pop_frame): Delete function.
3760 (do_d10v_pop_frame): Delete function.
3761 (d10v_frame_chain): Delete function.
3762 (d10v_frame_chain_valid): Delete function.
3763 (d10v_frame_pc_unwind): New function.
3764 (d10v_frame_id_unwind): New function.
3765 (saved_regs_unwinder): New function.
3766 (d10v_frame_register_unwind): New function.
3767 (d10v_frame_pop): New function.
3768 (d10v_frame_unwind): New variable.
3769 (d10v_frame_p): New function.
3770 (d10v_frame_saved_pc): Delete function.
3771 * Makefile.in (d10v-tdep.o): Update dependencies.
3772
3773 2003-01-30 J. Brobecker <brobecker@gnat.com>
3774
3775 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3776 causing some regressions due to a change in the default value
3777 for this macro.
3778
3779 2003-01-29 Richard Henderson <rth@redhat.com>
3780 Elena Zannoni <ezannoni@redhat.com>
3781 Daniel Jacobowitz <drow@mvista.com>
3782
3783 Fix PR gdb/961.
3784 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3785 variables.
3786 (RANGES_SECTION): New.
3787 (dwarf_ranges_buffer): New variable.
3788 (struct comp_unit_head): Add member "die".
3789 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3790 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3791 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3792 (dwarf2_locate_sections): Likewise.
3793 (dwarf2_build_psymtabs): Read .debug_ranges.
3794 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3795 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3796 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3797 Look for DW_AT_ranges and return the bounding box.
3798
3799 2003-01-29 Brian Ford <ford@vss.fsi.com>
3800
3801 * win32-nat.c (cygwin_pid): Removed as unused.
3802 (child_attach): Try fall back to Cygwin pid.
3803
3804 2003-01-29 Jim Blandy <jimb@redhat.com>
3805
3806 * objfiles.h (struct objfile): Doc fix.
3807
3808 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3809
3810 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3811 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3812 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3813 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3814 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3815 (FRAME_SAVED_PC): Change to a function with predicate.
3816 * gdbarch.h, gdbarch.c: Re-generate.
3817
3818 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3819
3820 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3821
3822 * complaints.c (complain): Delete function.
3823 * complaints.h (struct deprecated_complaint): Delete definition.
3824 (complain): Delete declaration.
3825
3826 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3827
3828 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3829 dummy frames.
3830
3831 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3832
3833 * sentinel-frame.h, sentinel-frame.c: New files.
3834 * Makefile.in (frame.o): Update dependencies.
3835 (SFILES): Add sentinel-frame.c.
3836 (sentinel_frame_h): Define.
3837 (COMMON_OBS): Add sentinel-frame.o.
3838 (sentinel-frame.o): Specify dependencies.
3839 * frame.c: Include "sentinel-frame.h".
3840 (frame_register_unwind): Rewrite assuming that there is always a a
3841 ->next frame.
3842 (frame_register, generic_unwind_get_saved_register): Ditto.
3843 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3844 (create_sentinel_frame, unwind_to_current_frame): New functions.
3845 (get_current_frame): Rewrite using create_sentinel_frame and
3846 unwind_to_current_frame. When possible, always create a frame.
3847 (create_new_frame): Set next to the sentinel frame.
3848 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3849 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3850 ID cache when necessary.
3851 (frame_saved_regs_id_unwind): Use frame_relative_level.
3852 (deprecated_generic_get_saved_register): Use frame_relative_level,
3853 get_frame_saved_regs, get_frame_pc, get_frame_base and
3854 get_next_frame.
3855 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3856 frame_register.
3857
3858 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3859
3860 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3861
3862 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3863
3864 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3865 (maintenance_set_profile_cmd): Use error () instead of warning ().
3866
3867 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3868
3869 * configure.in: Check that -pg works if using --enable-profiling.
3870 Check for monstartup and _mcleanup regardless of --enable-profiling.
3871 * maint.c: Check for monstartup and _mcleanup before using them.
3872 * config.in: Regenerated.
3873 * configure: Regenerated.
3874
3875 2003-01-24 Nick Clifton <nickc@redhat.com>
3876
3877 * Add sh2e support:
3878
3879 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3880
3881 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3882 (sh2e_show_regs): New.
3883 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3884 * config/sh/tm-sh.h: Added sh2e to comments.
3885
3886 2003-01-23 Jim Blandy <jimb@redhat.com>
3887
3888 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3889 symbols found)" message here; we haven't checked for a separate
3890 debug info file yet, so we don't know yet.
3891 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3892 we've looked everywhere. Also, there's no need to print a special
3893 message when we're loading the separate debug info file: the one
3894 symbol_file_add prints is fine.
3895
3896 2003-01-23 Alexander Larsson <alexl@redhat.com>
3897 Jim Blandy <jimb@redhat.com>
3898
3899 Add support for executables whose debug info has been separated
3900 out into a separate file, leaving only a link behind.
3901 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3902 and separate_debug_objfile_backlink.
3903 (put_objfile_before): New declaration.
3904 * symfile.c: #include "filenames.h".
3905 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3906 debug info in a separate file, read that, too. Save the addrs
3907 argument, so we can use it again to read the separated debug info;
3908 syms_from_objfile modifies the table we pass it.
3909 (reread_symbols): After re-reading an objfile, call
3910 reread_separate_symbols to refresh its separate debug info
3911 objfile, if it has one.
3912 (reread_separate_symbols, find_separate_debug_file,
3913 get_debug_link_info, separate_debug_file_exists): New functions.
3914 (debug_file_directory): New global var.
3915 (_initialize_symfile): Initialize debug_file_directory, and
3916 provide the new `set debug-file-directory' command to let the user
3917 change it.
3918 * objfiles.c (free_objfile): If this objfile has its debug info in
3919 a separate objfile, free that one too. If this is itself a
3920 separate debug info objfile, clear our parent's backlink.
3921 (put_objfile_before): New function.
3922 * utils.c (gnu_debuglink_crc32): New function.
3923 * defs.h (gnu_debuglink_crc32): New declaration.
3924 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3925 * configure.in: Handle --with-separate-debug-dir config option.
3926 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3927 * acconfig.h (DEBUGDIR): New macro.
3928 * configure, aclocal.m4, config.in: Regenerated.
3929
3930 2003-01-22 Jim Blandy <jimb@redhat.com>
3931
3932 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3933 like the old symbol_file_add, but taking new arguments: you can
3934 now pass in either a `struct section_addr_info' list to say where
3935 each section is loaded, or a `struct section_offsets' table. Pass
3936 these new arguments through to syms_from_objfile as appropriate.
3937 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3938 with the appropriate quiescent values for the new arguments.
3939
3940 * symfile.c: #include "gdb_assert.h".
3941 (syms_from_objfile): Add the ability to pass in a section offset
3942 table directly, as an alternative to the section_addr_info table.
3943 Document arguments better.
3944 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3945 * symfile.h (syms_from_objfile): Update declaration.
3946 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3947 syms_from_objfile.
3948 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3949
3950 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3951
3952 Original patch by Tom Tromey <tromey@cygnus.com> and
3953 Jason Molenda <jmolenda@apple.com>.
3954 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3955 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3956 * NEWS: Mention profiling.
3957 * configure.in (--enable-gdbtk): Fix typo.
3958 (--enable-profiling): New. Set PROFILE_CFLAGS.
3959 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3960 Fill in function.
3961 (profiling_state): New variable.
3962 (mcleanup_wrapper): New function.
3963 (_initialize_maint): Remove NOTYET, fix call to
3964 add_setshow_boolean_cmd for "maint set profile".
3965 * configure: Regenerated.
3966
3967 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3968
3969 * Makefile.in (install-gdbtk): Install PNG images too.
3970
3971 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3972
3973 * exec.c (text_start): Delete global variable.
3974 (exec_file_attach): Make text_start local to the function.
3975 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3976 * valops.c (hand_function_call): Delete code that handles
3977 BEFORE_TEXT_END and AFTER_TEXT_END.
3978 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3979 of CALL_DUMMY_LOCATION.
3980 * gdbarch.c: Regenerate.
3981 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3982 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3983 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3984 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3985 (text_end): Delete extern declaration.
3986
3987 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3988
3989 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3990 * blockframe.c (backtrace_below_main): Move to "frame.c".
3991 (frame_chain_valid): Delete check for backtrace_below_main.
3992 (_initialize_blockframe): Delete initialization, move ``set
3993 backtrace-below-main'' command to "frame.c".
3994 (do_flush_frames_sfunc): Delete function.
3995 * frame.c: Include "command.h" and "gdbcmd.h".
3996 (frame_type_from_pc): New function.
3997 (create_new_frame): Use frame_type_from_pc.
3998 (legacy_get_prev_frame): New function.
3999 (get_prev_frame): Rewrite. When an old style frame, call
4000 legacy_get_prev_frame. Otherwize, unwind the PC first.
4001 (_initialize_frame): Add ``set backtrace-below-main'' command.
4002 * Makefile.in (frame.o): Update dependencies.
4003
4004 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4005
4006 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
4007 DEPRECATED_REGISTERS_INFO.
4008
4009 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4010
4011 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
4012 Maintainers'. Update `Various Maintainers'.
4013
4014 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4015
4016 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
4017 * gdbarch.sh (POP_FRAME): Change to function with predicate.
4018 Suppress actual parameters when `-'.
4019 * gdbarch.h, gdbarch.c: Regenerate.
4020
4021 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4022
4023 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
4024 code handling dummy frames.
4025
4026 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4027
4028 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
4029 (struct frame_unwind): Add field pop.
4030 * frame.h (frame_pop): Declare.
4031 * frame.c (frame_saved_regs_pop): New function.
4032 (trad_frame_unwinder): Add frame_saved_regs_pop.
4033 (frame_pop): New function.
4034 * dummy-frame.c (dummy_frame_pop): New function.
4035 (discard_innermost_dummy): New function.
4036 (generic_pop_dummy_frame): Use discard_innermost_dummy.
4037 (dummy_frame_unwind): Add dummy_frame_pop.
4038 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
4039 * valops.c (hand_function_call): Ditto.
4040 * stack.c (return_command): Ditto.
4041
4042 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4043
4044 * cris-tdep.c: Fix function declaration indentation.
4045 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
4046 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
4047 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
4048 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
4049 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
4050 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
4051
4052 2003-01-18 Michael Chastain <mec@shout.net>
4053
4054 * README (Unpacking and Installation -- quick overview):
4055 Warn against ".../gdb-5.3/gdb/configure".
4056
4057 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4058
4059 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
4060 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
4061 (struct frame_unwind): Declare opaque.
4062 (dummy_frame_p): Declare function.
4063 * dummy-frame.c (dummy_frame_id_unwind): Make static.
4064 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
4065 * dummy-frame.c: Include "frame-unwind.h".
4066 (dummy_frame_p): New function.
4067 (dummy_frame_unwind): New variable.
4068 * frame.c: Include "frame-unwind.h".
4069 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
4070 to use the new unwind field.
4071 (set_unwind_by_pc): Delete function.
4072 (create_new_frame, get_prev_frame): Set unwind field using
4073 frame_unwind_find_by_pc.
4074 (trad_frame_unwind, trad_frame_unwinder): New variables.
4075 * frame.h (trad_frame_unwind): Declare variable.
4076 (frame_id_unwind_ftype): Delete declaration.
4077 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
4078 (struct frame_unwind): Declare opaque.
4079 (struct frame_info): Replace the fields id_unwind, pc_unwind and
4080 register_unwind with a single unwind pointer.
4081 * frame-unwind.h, frame-unwind.c: New files.
4082 * Makefile.in (SFILES): Add frame-unwind.c.
4083 (frame_unwind_h): Define.
4084 (COMMON_OBS): Add frame-unwind.o.
4085 (frame-unwind.o): Specify dependencies.
4086 (frame.o, dummy-frame.o): Update dependencies.
4087
4088 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4089
4090 * ada-valprint.c: Eliminate PTR.
4091 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
4092 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
4093 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
4094 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
4095 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
4096 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
4097 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
4098
4099 2003-01-17 Andrew Cagney <ac131313@redhat.com>
4100
4101 * main.c (captured_main): Don't use PTR.
4102 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
4103 * gdbtypes.c (lookup_primitive_typename): Ditto.
4104 (lookup_struct_elt_type): Ditto.
4105 * f-valprint.c (info_common_command): Ditto.
4106 (list_all_visible_commons): Ditto.
4107 * jv-typeprint.c (java_type_print_base): Ditto.
4108
4109 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
4110 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
4111 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
4112 i386-interix-nat.c and i386-interix-tdep.c. Rename
4113 m68klinux-nat.c and m68klinux-tdep.c. Rename
4114 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
4115 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
4116 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
4117 * main.c (captured_main): Use xfree, not free.
4118
4119 2003-01-16 Andrew Cagney <ac131313@redhat.com>
4120
4121 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
4122 ID back using a parameter.
4123 * frame.c (frame_id_unwind): Update call.
4124 (frame_saved_regs_id_unwind): Update.
4125 * dummy-frame.c (dummy_frame_id_unwind): Update function.
4126 * dummy-frame.h (struct frame_id): Add opaque declaration.
4127 (dummy_frame_id_unwind): Update declaration.
4128
4129 2003-01-15 Andrew Cagney <ac131313@redhat.com>
4130
4131 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
4132
4133 2003-01-15 Stephen P. Smith <ischis2@cox.net>
4134
4135 * MAINTAINERS (Stephen P. Smith): Updated email address.
4136
4137 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
4138
4139 Fix PR gdb/898
4140 * breakpoint.c (until_break_command): Add new argument. Use it to
4141 decide whether to stop only at the current frame or not.
4142 * breakpoint.h (until_break_command): Update prototype.
4143 * infcmd.c (until_command): Add new argument to until_break_command
4144 call.
4145 (advance_command): New function.
4146 (_initialize_infcmd): Update help string for 'until' command.
4147 Add new 'advance' command.
4148
4149 2003-01-14 David Carlton <carlton@math.stanford.edu>
4150
4151 * linespec.c (decode_line_1): Normalize comments.
4152 (set_flags): Ditto.
4153 (locate_first_half): Ditto.
4154 (decode_compound): Ditto.
4155 (symtab_from_filename): Ditto.
4156 (decode_all_digits): Ditto.
4157 (decode_dollar): Ditto.
4158 (find_methods): Ditto.
4159 (find_toplevel_char): Ditto.
4160
4161 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4162
4163 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
4164 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
4165 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
4166 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
4167 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
4168 * language.c, language.h, m32r-tdep.c: Update copyright.
4169 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
4170 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
4171 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
4172 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
4173 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
4174 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
4175
4176 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
4177
4178 * stabsread.h (process_later, resolve_cfront_continuation):
4179 Obsolete.
4180 Update copyright years.
4181 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
4182 Update copyright year.
4183 * dbxread.c(struct cont_elem): Obsolete.
4184 (process_later, process_now): Obsolete functions.
4185 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
4186 Update copyright year.
4187 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
4188 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
4189 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
4190 (parse_partial_symbols): Obsolete cfront support.
4191 * stabsread.c
4192 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
4193 macros.
4194 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
4195 read_cfront_baseclasses, read_cfront_member_functions,
4196 resolve_cfront_continuation,read_cfront_static_fields,
4197 copy_cfront_struct_fields): Obsolete functions.
4198 (define_symbol, read_one_struct_field): Obsolete cfront support.
4199 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
4200 Update Copyright year.
4201
4202 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
4203
4204 * stack.c (print_frame_info, print_stack_frame_base_stub,
4205 print_stack_frame_base, show_and_print_stack_frame_stub,
4206 show_and_print_stack_frame, print_only_stack_frame_stub,
4207 print_only_stack_frame): Delete functions.
4208 (print_stack_frame_stub): Call print_frame_info instead of
4209 print_frame_info_base.
4210 (print_frame_info_base): Rename to print_frame_info.
4211 (backtrace_command_1): Call print_frame_info, instead of
4212 print_frame_info_base.
4213 (current_frame_command): Call print_stack_frame, instead of
4214 print_only_stack_frame.
4215 (frame_command): Call print_stack_frame, instead of
4216 show_and_print_stack_frame.
4217 (up_command): Ditto.
4218 (down_command): Ditto.
4219 * frame.h (print_only_stack_frame): Delete prototype.
4220 * infrun.c (normal_stop): Call print_stack_frame, instead of
4221 show_and_print_stack_frame.
4222 * thread.c (info_threads_command): Call print_stack_frame, instead
4223 of print_only_stack_frame.
4224
4225 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4226
4227 * README (Graphical interface to GDB): Update URL. Point at
4228 gdb/links/.
4229
4230 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
4231 version match.
4232
4233 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4234
4235 * symtab.c (find_pc_sect_line): Don't consider end-of-function
4236 lines.
4237
4238 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4239
4240 * thread-db.c (attach_thread): Prototype.
4241 (struct private_thread_info): Remove lwpid. Add thread handle (th),
4242 thread information (ti), and valid flags (th_valid, ti_valid).
4243 (attach_thread): Move target_pid_to_str call to after the thread
4244 is added to GDB's list. Initialize the cache.
4245 (thread_get_info_callback, thread_db_map_id2thr)
4246 (thread_db_get_info): New functions.
4247 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
4248 (thread_db_store_registers, thread_db_thread_alive)
4249 (thread_db_get_thread_local_address): Use them.
4250 (thread_db_pid_to_str): Likewise. Return "Missing" instead
4251 of calling error() for threads in unknown state.
4252
4253 (clear_lwpid_callback): New function.
4254 (thread_db_resume): Use it to clear the cache.
4255
4256 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4257
4258 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
4259 (resume_callback): Remove dead code.
4260
4261 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4262
4263 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
4264 predicate.
4265 * gdbarch.h, gdbarch.c: Regenerate.
4266 * stack.c (frame_info): Only initialize the saved registers when
4267 FRAME_INIT_SAVED_REGS_P.
4268 * frame.c (frame_saved_regs_register_unwind): Assert
4269 FRAME_INIT_SAVED_REGS_P.
4270 (deprecated_generic_get_saved_register): Ditto.
4271
4272 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4273
4274 * source.c (openp): Squelch warning about "filename".
4275
4276 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4277
4278 * source.c (openp): If the file does not exist don't necessarily
4279 search the path.
4280
4281 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4282
4283 Fix PR gdb/872.
4284 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
4285 (integer_types_same_name_p): New function.
4286 (rank_one_type): Use it.
4287 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
4288
4289 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4290
4291 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
4292 variables.
4293 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
4294 * configure.in: Add --with-sysroot.
4295 * configure: Regenerated.
4296 * main.c (gdb_sysroot): New variable.
4297 (captured_main): Initialize gdb_sysroot.
4298 * defs.h (gdb_sysroot): New extern declaration.
4299 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
4300
4301 2003-01-12 Michael Chastain <mec@shout.net>
4302
4303 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
4304
4305 2003-01-12 Michael Chastain <mec@shout.net>
4306
4307 * top.c (print_gdb_version): Bump copyright year to 2003.
4308
4309 2003-01-12 David Carlton <carlton@bactrian.org>
4310
4311 * linespec.c (symtab_from_filename): Rename variable 's' to
4312 'file_symtab'.
4313
4314 2003-01-12 Andrew Cagney <ac131313@redhat.com>
4315
4316 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
4317 dummy frame.
4318 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
4319
4320 2003-01-12 Andrew Cagney <ac131313@redhat.com>
4321
4322 * d10v-tdep.c: Include "gdb_assert.h".
4323 (d10v_store_return_value): Rewrite to match current interface.
4324 (d10v_extract_struct_value_address): Ditto.
4325 (d10v_extract_return_value): Ditto.
4326 (d10v_gdbarch_init): Set store_restore_value,
4327 extract_struct_value_address and extract_return_value.
4328
4329 2003-01-12 J. Brobecker <brobecker@gnat.com>
4330
4331 * hpread.c (set_namestring): New procedure replacing the
4332 SET_NAMESTRING macro.
4333 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
4334 by calls to set_namestring.
4335
4336 2003-01-11 J. Brobecker <brobecker@gnat.com>
4337
4338 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
4339 a compilation warning.
4340 (hpread_process_one_debug_symbol): Likewise.
4341
4342 2003-01-10 David Carlton <carlton@math.stanford.edu>
4343
4344 * linespec.c (decode_line_1): Rename variable 's' to
4345 'file_symtab'.
4346 (decode_all_digits): Rename argument 's' to 'file_symtab'.
4347 (decode_dollar): Ditto.
4348 (decode_variable): Ditto.
4349 (symbol_found): Ditto.
4350
4351 2003-01-09 Michael Chastain <mec@shout.net>
4352
4353 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
4354
4355 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
4356
4357 * win32-nat.c (set_process_privilege): New function.
4358 (child_attach): Call set_process_privilege() to enable the
4359 SE_DEBUG_NAME user privilege if available in process token.
4360
4361 2003-01-10 J. Brobecker <brobecker@gnat.com>
4362
4363 * hpread.c (hpread_process_one_debug_symbol): Fix a small
4364 compilation error in the previous revision.
4365
4366 2003-01-09 David Carlton <carlton@math.stanford.edu>
4367
4368 * linespec.c: Update copyright.
4369
4370 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
4371
4372 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
4373 than inferior_ptid.
4374 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
4375
4376 2003-01-09 Andrew Cagney <ac131313@redhat.com>
4377
4378 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
4379 Update comments.
4380 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
4381 (frame_saved_regs_zalloc): Update.
4382 (frame_saved_regs_register_unwind): Update.
4383 (create_new_frame): Update.
4384 (get_prev_frame): Update.
4385 (frame_extra_info_zalloc): Update.
4386 (deprecated_get_frame_saved_regs): Update.
4387 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
4388 * cris-tdep.c: Update comment.
4389
4390 * somsolib.h: Fix function indentation.
4391 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
4392 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
4393 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
4394 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
4395 * somsolib.c, inftarg.c: Remove assignment in if conditional.
4396
4397 * infrun.c (follow_fork): Use ISO C definition.
4398 * expprint.c (print_subexp): Use xfree instead of free.
4399 * charset.c: Include "gdb_string.h" instead of <string.h>.
4400 (register_iconv_charsets): Use ISO C definition.
4401 (host_charset, target_charset): Ditto.
4402 * Makefile.in (charset.o): Update dependencies.
4403 (mi-cmd-env.o): Update dependencies.
4404
4405 2003-01-08 Andrew Cagney <cagney@redhat.com>
4406
4407 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4408 get_frame_base.
4409
4410 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4411
4412 * gdb_mbuild.sh: Add --keep option. When specified, keep the
4413 build directories. Save edited gdb output in Mbuild.log. If a
4414 build fails, remove any final GDB executable.
4415
4416 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4417
4418 * gdb_mbuild.sh: Edit the output of `maint print architecture'
4419 replacing hex constants with function names and stripping leading
4420 file name directory prefixes.
4421
4422 2003-01-08 Andrew Cagney <cagney@redhat.com>
4423
4424 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4425 get_frame_base.
4426
4427 2003-01-08 David Carlton <carlton@math.stanford.edu>
4428
4429 * linespec.c (decode_line_1): Move code into decode_variable.
4430 (decode_variable): New function.
4431
4432 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4433
4434 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4435
4436 2003-01-08 Andrew Cagney <cagney@redhat.com>
4437
4438 * cris-tdep.c (cris_frame_init_saved_regs): Use
4439 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
4440 saved_regs buffer.
4441 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4442 (sh64_nofp_frame_init_saved_regs): Ditto.
4443 (sh_fp_frame_init_saved_regs): Ditto.
4444 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
4445 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4446 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4447 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4448
4449 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
4450
4451 * minsyms.c (lookup_minimal_symbol): Update comment.
4452 (lookup_minimal_symbol_text): Update comment. Use the hash table.
4453 (lookup_minimal_symbol_solib_trampoline): Likewise.
4454
4455 2003-01-08 Andrew Cagney <cagney@redhat.com>
4456
4457 * d10v-tdep.c (d10v_init_extra_frame_info): Use
4458 frame_relative_level.
4459
4460 * alpha-tdep.c: Use get_frame_extra_info.
4461 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4462 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
4463 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4464 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
4465
4466 * alpha-tdep.c: Use get_next_frame.
4467 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4468 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4469 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
4470 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
4471 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
4472 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
4473 * xstormy16-tdep.c: Ditto.
4474
4475 2003-01-07 Andrew Cagney <cagney@redhat.com>
4476
4477 * alpha-tdep.c: Use get_frame_base.
4478 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4479 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4480 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4481 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4482 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
4483 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4484 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
4485 * config/sparc/tm-sparc.h: Ditto.
4486
4487 2003-01-07 Andrew Cagney <cagney@redhat.com>
4488
4489 * frame.c (deprecated_get_frame_context): New function.
4490 (deprecated_set_frame_context): New function.
4491 * frame.h (deprecated_get_frame_context): Declare.
4492 (deprecated_set_frame_context): Declare.
4493 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
4494 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4495
4496 2003-01-07 Andrew Cagney <cagney@redhat.com>
4497
4498 * frame.c (deprecated_set_frame_next_hack): New function.
4499 (deprecated_set_frame_prev_hack): New function.
4500 * frame.h (deprecated_set_frame_next_hack): Declare.
4501 (deprecated_set_frame_prev_hack): Declare.
4502 * mcore-tdep.c (analyze_dummy_frame): Use
4503 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4504 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4505
4506 2003-01-07 David Carlton <carlton@math.stanford.edu>
4507
4508 * linespec.c (decode_line_1): Move code into decode_dollar.
4509 (decode_dollar): New function.
4510
4511 2003-01-07 Andrew Cagney <cagney@redhat.com>
4512
4513 * arm-tdep.c (arm_init_extra_frame_info): Use
4514 deprecated_update_frame_base_hack.
4515 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4516 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4517 (fix_frame_pointer): Ditto.
4518 (mn10300_analyze_prologue): Ditto.
4519
4520 2003-01-07 Andrew Cagney <cagney@redhat.com>
4521
4522 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4523 extra_info using frame_extra_info_zalloc.
4524 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4525 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4526 (sh64_init_extra_frame_info): Ditto.
4527 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4528 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4529 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4530 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4531 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4532 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4533 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4534 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4535 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4536 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4537 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4538 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4539
4540 * mn10300-tdep.c (analyze_dummy_frame): Use
4541 deprecated_set_frame_extra_info_hack.
4542 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4543
4544 2003-01-07 J. Brobecker <brobecker@gnat.com>
4545
4546 * mdebugread.c (parse_symbol): Skip stProc entries which storage
4547 class is not scText. These do not define "real" procedures.
4548 (parse_partial_symbols): Likewise.
4549
4550 2003-01-06 Michael Snyder <msnyder@redhat.com>
4551
4552 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4553
4554 2003-01-06 Andrew Cagney <ac131313@redhat.com>
4555
4556 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4557 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4558 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4559 deprecated_frame_xmalloc_with_cleanup.
4560 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4561 deprecated_frame_xmalloc.
4562 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4563 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4564
4565 2003-01-06 Andrew Cagney <cagney@redhat.com>
4566
4567 * x86-64-linux-tdep.c: Include "osabi.h".
4568 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4569
4570 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4571
4572 2003-01-06 Andrew Cagney <cagney@redhat.com>
4573
4574 * MAINTAINERS (Target Instruction Set Architectures): Update
4575 arm-elf. Can be built with -Werror, has been multiarched.
4576
4577 * value.h (unpack_long): Make buffer parameter constant.
4578 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4579 * scm-lang.h (scm_parse): Ditto.
4580 * defs.h (extract_typed_address, extract_address): Ditto.
4581 (extract_long_unsigned_integer): Ditto.
4582 * inferior.h (unsigned_pointer_to_address): Ditto.
4583 (signed_pointer_to_address): Ditto.
4584 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4585 * gdbarch.h, gdbarch.c: Regenerate.
4586 * findvar.c (extract_long_unsigned_integer): Update.
4587 (extract_address): Update.
4588 (extract_typed_address): Update.
4589 (unsigned_pointer_to_address): Update.
4590 * values.c (unpack_long): Update.
4591 (unpack_double): Update.
4592 (unpack_pointer): Update.
4593 (unpack_field_as_long): Update.
4594 * d10v-tdep.c (d10v_pointer_to_address): Update.
4595 * avr-tdep.c (avr_pointer_to_address): Update.
4596 * scm-lang.c (scm_unpack): Update.
4597 * findvar.c (signed_pointer_to_address): Update.
4598
4599 2003-01-06 Michal Ludvig <mludvig@suse.cz>
4600
4601 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4602 since it is in i386-tdep.c.
4603
4604 2003-01-06 J. Brobecker <brobecker@gnat.com>
4605
4606 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4607 failure introduced in the previous change.
4608
4609 2003-01-05 Michael Chastain <mec@shout.net>
4610
4611 * README: Remove references to deleted remote-*.c files:
4612 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4613 remote-nrom.c, remote-os9k.c, remote-udi.c.
4614
4615 2003-01-05 Mark Kettenis <kettenis@gnu.org>
4616
4617 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4618 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4619 i386_get_longjmp_target.
4620
4621 2003-01-05 Andrew Cagney <ac131313@redhat.com>
4622
4623 * arm-tdep.c (prologue_cache): Change to a pointer.
4624 (_initialize_arm_tdep): Allocate prologue_cache.
4625 (check_prologue_cache): Update.
4626 (save_prologue_cache): Update.
4627 (arm_gdbarch_init): Update.
4628
4629 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4630
4631 * stabsread.c (update_method_name_from_physname): Call complaint()
4632 instead of error.
4633
4634 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4635
4636 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4637 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4638 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4639
4640 * blockframe.c: Include "gdbcmd.h" and "command.h".
4641 (backtrace_below_main): New variable.
4642 (file_frame_chain_valid, func_frame_chain_valid)
4643 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4644 (generic_func_frame_chain_valid): Remove functions.
4645 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4646 (_initialize_blockframe): New function.
4647 * Makefile.in (blockframe.o): Update dependencies.
4648 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4649 comment. Call frame_chain_valid ().
4650 * frame.h: Remove old prototypes. Add prototype for
4651 frame_chain_valid and update comments to match.
4652 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4653 Remove old comment.
4654 * gdbarch.h: Regenerated.
4655 * gdbarch.c: Regenerated.
4656
4657 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4658 set_gdbarch_frame_chain_valid.
4659 * avr-tdep.c (avr_gdbarch_init): Likewise.
4660 * cris-tdep.c (cris_gdbarch_init): Likewise.
4661 * frv-tdep.c (frv_gdbarch_init): Likewise.
4662 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4663 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4664 (i386_nw_init_abi): Likewise.
4665 (i386_gdbarch_init): Likewise.
4666 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4668 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4669 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4670 * mips-tdep.c (mips_gdbarch_init): Likewise.
4671 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4672 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4673 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4674 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4675 * s390-tdep.c (s390_gdbarch_init): Likewise.
4676 * sh-tdep.c (sh_gdbarch_init): Likewise.
4677 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4678 * v850-tdep.c (v850_gdbarch_init): Likewise.
4679 * vax-tdep.c (vax_gdbarch_init): Likewise.
4680 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4681
4682 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4683 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4684 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4685 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4686 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4687 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4688 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4689 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4690
4691 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4692
4693 * Makefile.in (acconfig_h): Remove incorrect macro.
4694 (config_h): Define.
4695 (osabi.o): Update dependencies.
4696 * configure.tgt: Set gdb_osabi based on target triplet.
4697 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4698 * configure: Regenerated.
4699 * config.in: Regenerated.
4700 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4701 (GDB_OSABI_DEFAULT): Define if not already defined.
4702 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4703 (set_osabi_string): New variables.
4704 (gdbarch_register_osabi): Add new OS ABI to
4705 gdb_osabi_available_names.
4706 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4707 (set_osabi, show_osabi): New functions.
4708 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4709
4710 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4711
4712 * arch-utils.c (gdbarch_info_init): Set osabi to
4713 GDB_OSABI_UNINITIALIZED.
4714 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4715 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4716 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4717 * gdbarch.c: Regenerated.
4718 * gdbarch.h: Regenerated.
4719 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4720 there's no BFD.
4721 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4722 * osabi.h (enum gdb_osabi): Move to defs.h.
4723 (gdbarch_init_osabi): Update prototype.
4724 * defs.h (enum gdb_osabi): Moved here.
4725 * Makefile.in: Update dependencies.
4726
4727 * alpha-tdep.h: Don't include "osabi.h".
4728 (struct gdbarch_tdep): Remove osabi member.
4729 * alpha-tdep.c: Include "osabi.h".
4730 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4731 iterate over arches. Update call to gdbarch_init_osabi.
4732 (alpha_dump_tdep): Don't dump osabi.
4733 * alpha-linux-tdep.c: Include "osabi.h".
4734 * alpha-osf1-tdep.c: Include "osabi.h".
4735 * alphafbsd-tdep.c: Include "osabi.h".
4736 * alphanbsd-tdep.c: Include "osabi.h".
4737
4738 * arm-tdep.h: Don't include "osabi.h".
4739 (struct gdbarch_tdep): Remove osabi member.
4740 * arm-tdep.c: Include "osabi.h".
4741 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4742 iterate over arches. Update call to gdbarch_init_osabi.
4743 (arm_dump_tdep): Don't dump osabi.
4744 * arm-linux-tdep.c: Include "osabi.h".
4745 * armnbsd-tdep.c: Include "osabi.h".
4746
4747 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4748 Update call to gdbarch_init_osabi.
4749
4750 * i386-tdep.h: Don't include "osabi.h".
4751 (struct gdbarch_tdep): Remove osabi member.
4752 * i386-tdep.c: Include "osabi.h".
4753 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4754 iterate over arches. Update call to gdbarch_init_osabi.
4755 (i386_dump_tdep): Don't dump osabi.
4756 * i386-linux-tdep.c: Include "osabi.h".
4757 * i386-sol2-tdep.c: Include "osabi.h".
4758 * i386bsd-tdep.c: Include "osabi.h".
4759 * i386gnu-tdep.c: Include "osabi.h".
4760 * i386ly-tdep.c: Include "osabi.h".
4761 * i386nbsd-tdep.c: Include "osabi.h".
4762 * i386obsd-tdep.c: Include "osabi.h".
4763
4764 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4765 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4766 check osabi when iterating over arches. Update call to
4767 gdbarch_init_osabi.
4768 (mips_dump_tdep): Don't dump osabi.
4769
4770 * ns32k-tdep.h: Don't include "osabi.h".
4771 (struct gdbarch_tdep): Remove.
4772 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4773 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4774 allocate tdep. Update call to gdbarch_init_osabi.
4775 (ns32k_dump_tdep): Remove.
4776 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4777 * ns32knbsd-tdep.c: Include "osabi.h".
4778
4779 * ppc-tdep.h: Don't include "osabi.h".
4780 (struct gdbarch_tdep): Remove osabi member.
4781 * rs6000-tdep.c: Include "osabi.h".
4782 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4783 osabi when iterating over arches. Update call to
4784 gdbarch_init_osabi.
4785 (rs6000_dump_tdep): Don't dump osabi.
4786 * ppc-linux-tdep.c: Include "osabi.h".
4787 * ppcnbsd-tdep.c: Include "osabi.h".
4788
4789 * sh-tdep.h: Don't include "osabi.h".
4790 (struct gdbarch_tdep): Remove osabi member.
4791 * sh-tdep.c: Include "osabi.h".
4792 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4793 iterate over arches. Update call to gdbarch_init_osabi.
4794 (sh_dump_tdep): Don't dump osabi.
4795 * shnbsd-tdep.c: Include "osabi.h".
4796
4797 * sparc-tdep.c: Include "osabi.h".
4798 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4799 iterate over arches. Update call to gdbarch_init_osabi.
4800 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4801 tdep structure.
4802
4803 * vax-tdep.h: Don't include "osabi.h".
4804 (struct gdbarch_tdep): Remove.
4805 * vax-tdep.c: Include "osabi.h".
4806 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4807 iterate over arches. Don't allocate tdep. Update call
4808 to gdbarch_init_osabi.
4809 (vax_dump_tdep): Remove.
4810 (_initialize_vax_tdep): Update call to gdbarch_register.
4811
4812 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4813
4814 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4815 entirely.
4816 (breakpoint_re_set_one): Don't fetch the value for a disabled
4817 watchpoint.
4818
4819 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4820
4821 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4822 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4823 (COERCE_FLOAT_TO_DOUBLE): Remove.
4824 * gdbarch.c: Regenerate.
4825 * gdbarch.h: Regenerate.
4826 * Makefile.in: Remove value_h from gdbarch_h.
4827 * valops.c (coerce_float_to_double): New variable.
4828 (default_coerce_float_to_double): Remove.
4829 (standard_coerce_float_to_double): Remove.
4830 (value_arg_coerce): Use coerce_float_to_double.
4831 (_initialize_valops): Add "set coerce-float-to-double".
4832 * value.h (default_coerce_float_to_double): Remove prototype.
4833 (standard_coerce_float_to_double): Remove prototype.
4834
4835 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4836 prototyped.
4837 * mdebugread.c (parse_symbol): Likewise.
4838 * stabsread.c (define_symbol): Mark all functions as prototyped.
4839
4840 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4841 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4842 set_gdbarch_coerce_float_to_double.
4843 * arm-tdep.c (arm_gdbarch_init): Likewise.
4844 * frv-tdep.c (frv_gdbarch_init): Likewise.
4845 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4846 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4847 * mips-tdep.c (mips_gdbarch_init): Likewise.
4848 (mips_coerce_float_to_double): Remove.
4849 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4850 (rs6000_coerce_float_to_double): Remove.
4851 * s390-tdep.c (s390_gdbarch_init): Likewise.
4852 * sh-tdep.c (sh_gdbarch_init): Likewise.
4853 (sh_coerce_float_to_double): Remove.
4854 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4855 (sparc_coerce_float_to_double): Remove.
4856 * v850-tdep.c (v850_gdbarch_init): Likewise.
4857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4858 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4859 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4860 (hppa_coerce_float_to_double): Remove prototype.
4861 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4862
4863 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4864
4865 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4866
4867 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4868
4869 Suggested by Stewart Brown <sb24@avaya.com>:
4870 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4871 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4872 (c_type_print_varspec_suffix): Likewise.
4873
4874 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4875
4876 * configure.in: Don't set and AC_SUBST SUBDIRS.
4877 * configure: Regenerated.
4878
4879 * configure.in: Remove code dealing with shared libraries.
4880 * Makefile.in: Remove HLDFLAGS and HLDENV.
4881 * configure: Regenerated.
4882
4883 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4884
4885 * frame.c (deprecated_frame_xmalloc): New function.
4886 (deprecated_set_frame_saved_regs_hack): New function.
4887 (deprecated_set_frame_extra_info_hack): New function.
4888 * frame.h (deprecated_frame_xmalloc): Declare.
4889 (deprecated_set_frame_saved_regs_hack): Declare.
4890 (deprecated_set_frame_extra_info_hack): Declare.
4891
4892 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4893
4894 * configure.in: Move code that provides the --enable-gdbtk option
4895 right after the code that handles the --enable-tui option, and
4896 polish it somewhat.
4897 * configure: Regenerated.
4898
4899 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4900 AC_CHECK_FUNCS and remove the old check for pread64.
4901 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4902 * acconfig.h (_GNU_SOURCE): Add.
4903 (HAVE_PREAD64): Remove.
4904 * configure, aclocal.m4, config.in: Regenerated.
4905
4906 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4907
4908 * alpha-tdep.c: Use get_frame_saved_regs.
4909 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4910 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4911 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4912 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4913 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4914
4915 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4916
4917 * configure.in: Remove all use of the SUBDIRS variable; add
4918 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4919 code providing the --enable-multi-ice option, and move it right in
4920 front of the code that checks whether gdbserver is supported.
4921 Polish that too.
4922 * configure: Regenerated.
4923 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4924 @SUBDIRS@.
4925
4926 2003-01-03 Andrew Cagney <cagney@redhat.com>
4927
4928 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4929 * avr-tdep.c, cris-tdep.c: Ditto.
4930 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4931 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4932
4933 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4934
4935 * configure.in: Remove --enable-netrom option.
4936 * configure: Regenerated.
4937
4938 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4939
4940 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4941 declaration for `struct re_pattern_buffer' instead.
4942 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4943
4944 2003-01-03 J. Brobecker <brobecker@gnat.com>
4945
4946 * mdebugread.c (parse_symbol): Count until the stEnd matching
4947 the structure name.
4948
4949 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4950
4951 * configure.in: Remove --with-cpu option.
4952 subscripts. Remove evil changequotes here.
4953 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4954 * config.in, configure: Regenerated.
4955
4956 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4957 * configure.in: Cleanup section that sources GDB and BFD configure
4958 subscripts. Remove evil changequotes here.
4959 * config.in, configure: Regenerated.
4960
4961 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4962
4963 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4964 frame accessor methods.
4965 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4966 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4967 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4968 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4969 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4970 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4971 * z8k-tdep.c: Ditto.
4972
4973 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4974
4975 * configure.in: Remove UI_OUT configuration code.
4976 * ada-lang.c: Update assuming UI_OUT is always true.
4977 * Makefile.in (UIOUT_CFLAGS): Remove.
4978 * configure: Regenerated.
4979 * TODO: Remove blurb about elimination of -DUI_OUT.
4980
4981 * configure.in: Move code that provides the --enable-gdbcli,
4982 --enable-gdbmi options right before the code that handles the
4983 --enable-tui option. Polish a bit.
4984 * configure: Regenerated.
4985
4986 * configure.in: Rewrite check for GNU regex and the
4987 --without-included regex option, and move it into the "Checks for
4988 library functions" section. This makes us use the system regex
4989 again by default on systems with version 2 of the GNU C library.
4990 This was apparently broken.
4991 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4992 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4993 * config.in, configure: Regenerated.
4994
4995 * configure.in: Move code that provides the --enable-tui option
4996 before the "Checks for libraries" section. Polish the code
4997 somewhat and set need_curses to yes if we build the TUI. Rewrite
4998 code that looks for a library providing termcap functionality to
4999 match more closely what's done in the Readline library, and move
5000 it into to the "Checks for libraries" section.
5001 * configure: Regenerated.
5002 * Makefile.in (TERMCAP): Remove variable.
5003 * config/i386/go32.mh (TERMCAP): Remove variable.
5004
5005 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5006
5007 * MAINTAINERS: Mention gdb_mbuild.sh.
5008 * gdb_mbuild.sh: Rewrite.
5009
5010 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5011
5012 * configure.in: Fix typo in last change.
5013 * config.in, configure: Regenerated.
5014
5015 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5016
5017 * valarith.c (value_binop): Delete obsolete code and comments.
5018 * configure.host: Ditto.
5019 * buildsym.h (make_blockvector): Ditto.
5020 * buildsym.c (make_blockvector): Ditto.
5021 * defs.h (enum language): Ditto.
5022 (chill_demangle): Ditto.
5023 * elfread.c (elf_symtab_read): Ditto.
5024 * dwarfread.c (CHILL_PRODUCER): Ditto.
5025 (set_cu_language): Ditto.
5026 (handle_producer): Ditto.
5027 * expprint.c (print_subexp): Ditto.
5028 * gdbtypes.c (chill_varying_type): Ditto.
5029 * gdbtypes.h (builtin_type_chill_bool): Ditto.
5030 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
5031 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
5032 (chill_varying_type): Ditto.
5033 * language.h (_LANG_chill): Ditto.
5034 * language.c (binop_result_type, integral_type): Ditto.
5035 (character_type, string_type, structured_type): Ditto.
5036 (lang_bool_type, binop_type_check): Ditto.
5037 * stabsread.h (os9k_stabs): Ditto.
5038 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
5039 (define_symbol, read_type, read_struct_fields): Ditto.
5040 (read_array_type, read_enum_type, read_huge_number): Ditto.
5041 (read_range_type, start_stabs): Ditto.
5042 * symfile.c (init_filename_language_table): Ditto.
5043 (add_psymbol_with_dem_name_to_list): Ditto.
5044 * symtab.c (symbol_init_language_specific): Ditto.
5045 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
5046 * symtab.h (struct general_symbol_info): Ditto.
5047 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5048 * typeprint.c (typedef_print): Ditto.
5049 * utils.c (fprintf_symbol_filtered): Ditto.
5050 * valops.c (value_cast, search_struct_field, value_slice): Delete
5051 obsolete code.
5052 (varying_to_slice): Delete function.
5053 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
5054 (varying_to_slice): Delete declaration.
5055 * MAINTAINERS: Update.
5056
5057 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5058
5059 * configure.in: Reorganize "Checks for library functions section"
5060 a bit. Remove check for `btowc' and `isascii' functions.
5061 * configure: Regenerated.
5062
5063 * acconfig.h (_MSE_INT_H): Remove.
5064 * configure.in: Create "Checks for header files" section, and move
5065 appropriate tests there. Don't check for objlist.h, wchar.h,
5066 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
5067 misdetection fix. Also add "Checks for types", "Checks for
5068 compiler characteristics" and "Checks for library functions"
5069 sections.
5070 * config.in, configure: Regenerated.
5071
5072 * configure.in: Create "Checks for programs" section, and move
5073 appropriate tests there.
5074
5075 2003-01-01 Mark Kettenis <kettenis@gnu.org>
5076
5077 * configure.in: Create "Checks for libraries" section, and move
5078 appropriate tests there. Cleanup check for wctype in libw. Use
5079 AC_SEARCH_LIBS to see whether we need libsocket.
5080 * configure: Regenerated.
5081
5082 For older changes see ChangeLog-2002
5083 \f
5084 Local Variables:
5085 mode: change-log
5086 left-margin: 8
5087 fill-column: 74
5088 version-control: never
5089 End: