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