* sol-thread.c (sol_thread_store_registers): Use regcache_collect
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
26604a34
MK
12003-08-10 Mark Kettenis <kettenis@gnu.org>
2
87232496
MK
3 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
5 and supply_register instead of manipulating the register buffer
6 directly.
7
c9b9de0b
MK
8 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
9 * config/i386/nm-i386sol2.h
10 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
11
26604a34
MK
12 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
13 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
14 instructions that GCC likes to mingle into the prologue. Fixes
15 gdb/1253 and gdb/1255.
16
25d29d70
AC
172003-08-09 Andrew Cagney <cagney@redhat.com>
18
19 Fix GDB PR cli/926.
20 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
21 * command.h (add_setshow_uinteger_cmd): Declare.
22 * frame.c (set_backtrace_cmd): New function.
23 (show_backtrace_cmd): New function.
24 * frame.c (_initialize_frame): Replace "set/show
25 backtrace-below-main" with "set/show backtrace past-main". Add
26 command "set/show backtrace limit".
27 (backtrace_past_main): Rename "backtrace_below_main".
28 (backtrace_limit): New variable.
29 (get_prev_frame): Update. Check the backtrace_limit.
30
9ebf4acf
AC
312003-08-09 Andrew Cagney <cagney@redhat.com>
32
33 * defs.h (xstrprintf): Declare.
34 * utils.c (xstrprintf): New function.
35 * breakpoint.c (insert_breakpoints): Replace sprintf and
36 non-literal format strings, with xstrprintf and cleanups.
37 (delete_breakpoint,breakpoint_re_set): Ditto.
38 (commands_command, insert_breakpoints): Ditto.
39 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
40 (break_at_finish_command_1): Ditto.
41
3771659b
AC
422003-08-09 Andrew Cagney <cagney@redhat.com>
43
44 * MAINTAINERS (language support): List Adam Fedor as Objective C
45 maintainer.
46
b4263afa
JB
472003-08-08 J. Brobecker <brobecker@gnat.com>
48
49 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
50 are now multiarched.
51
d84defb1
JB
522003-08-08 J. Brobecker <brobecker@gnat.com>
53
54 * config/pa/tm-hppa64.h: Remove lots of macros that are no
55 longer necessary now that hppa64 is partially multiarch'ed.
56
f786f615
AC
572003-08-08 Andrew Cagney <cagney@redhat.com>
58
59 * interps.c (interp_set): Check for a NULL "old_interp".
60
c938e9b0
L
612003-08-08 H.J. Lu <hongjiu.lu@intel.com>
62
63 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
64 (install-only): Support DESTDIR.
65 (uninstall): Likewise.
66 (install-gdbtk): Likewise.
67
9a146a11
EZ
682003-08-08 Elena Zannoni <ezannoni@redhat.com>
69
70 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
71 contains something meaningful at all times.
72
73Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 74
62599e99 75 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 76
56296155
BC
77Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
78
62599e99 79 * MAINTAINERS (write after approval): Added self.
56296155 80
9710e734
AC
812003-08-07 Andrew Cagney <cagney@redhat.com>
82
83 * inferior.h (AT_SYMBOL): Define.
84 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
85 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
86 * mips-tdep.c (mips_call_dummy_address): Delete function.
87 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
88 set call_dummy_address.
89
98b3ab73
AC
902003-08-07 Andrew Cagney <cagney@redhat.com>
91
92 * language.c (op_error): Delete function.
93 (binop_type_check): Delete function.
94 * language.h (type_op_error, range_op_error): Delete macros.
95 (op_error): Delete declaration.
96
2fcf52f0
AC
972003-08-07 Andrew Cagney <cagney@redhat.com>
98
99 * interps.h (INTERP_MI2, INTERP_MI3): Define.
100
abd4220e 1012003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 102
abd4220e 103 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 104 (x86_64_push_arguments): Skip the red zone.
abd4220e 105
9dd5f34f
AC
1062003-08-05 Andrew Cagney <cagney@redhat.com>
107
108 * reggroups.c (reggroup_next): Check for the final entry.
109
e5e78edc
AC
1102003-08-04 Andrew Cagney <cagney@redhat.com>
111
ab4e3d93
AC
112 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
113 * cli/cli-script.c (define_command): Call query directly, instead
114 of passing it a buffer.
115 * ocd.c (ocd_error): Pass error a constant format string.
116 * remote-mips.c (mips_error): Use fputs_filtered.
117
1062ca82
AC
118 * solib-svr4.c (_initialize_svr4_solib): Update
119 register_gdbarch_data call.
120 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
121
fcc1c85c
AC
122 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
123 (register_gdbarch_data): Delete "free" parameter. Update
124 comments.
125 * gdbarch.h, gdbarch.c: Re-generate.
126 * reggroups.c (_initialize_reggroup): Update.
127 * gnu-v3-abi.c (init_gnuv3_ops): Update.
128 * frame-base.c (_initialize_frame_base): Update.
129 * frame-unwind.c (_initialize_frame_unwind): Update.
130 * user-regs.c (_initialize_user_regs): Update.
131 * remote.c (_initialize_remote): Update.
132 * regcache.c (_initialize_regcache): Update.
133
116f06ea
AC
134 * regcache.c (xfree_regcache_descr): Delete function.
135 (_initialize_regcache): Update call to register_gdbarch_data.
136 (init_regcache_descr, init_legacy_regcache_descr): Use
137 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
138
e5e78edc
AC
139 * remote.c (free_remote_state): Delete function.
140 (_initialize_remote): Update register_gdbarch_data.
141 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
142 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
143
6c7d17ba
AC
1442003-08-04 Andrew Cagney <cagney@redhat.com>
145
146 * reggroups.c (struct reggroup_el): Define.
147 (struct reggroups): Delete field "nr_group". Replace array
148 "group" with a "first" to "last" linked list.
149 (reggroups_init): Update. Allocate using gdbarch's obstack.
150 (reggroups_free): Delete function.
151 (add_group): Update. Add "el" parameter.
152 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
153 (default_groups): Update.
154 (reggroup_next): Replace reggroups.
155 (reggroups_dump): Update.
156 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
157 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
158 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
159
89b7795b
DJ
1602003-08-04 Daniel Jacobowitz <drow@mvista.com>
161
162 * Makefile.in (tui-interp.o): Update dependencies.
163
306d9ac5
DC
1642003-08-04 David Carlton <carlton@kealia.com>
165
166 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
167 to internal_error call.
168 * source.c (forward_search_command): Add "%s" format argument.
169 (reverse_search_command): Ditto.
170 * top.c (quit_confirm): Ditto.
171 * cli/cli-setshow.c (do_setshow_command): Ditto.
172 * cp-valprint.c (cp_print_class_method): Replace
173 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
174 (cp_print_class_member): Ditto.
175 * event-top.c (command_line_handler): Ditto.
176 * linux-proc.c (linux_info_proc_cmd): Ditto.
177 * p-typeprint.c (pascal_type_print_base): Ditto.
178 * p-valprint.c (pascal_object_print_class_method): Ditto.
179 (pascal_object_print_class_member): Ditto.
180 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
181 * remote.c (remote_cisco_section_offsets): Ditto.
182 * top.c (command_line_input): Ditto.
183 * utils.c (vwarning,error_stream,quit): Ditto.
184 * valprint.c (print_floating,print_binary_chars)
185 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
186
57bfe177
AC
1872003-08-04 Andrew Cagney <cagney@redhat.com>
188
189 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
190
e546b999
AC
1912003-08-02 Andrew Cagney <cagney@redhat.com>
192
193 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
194 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
195 amd64fbsd-nat.c.
196
91092ee5
AC
1972003-08-02 Andrew Cagney <cagney@redhat.com>
198
199 * Makefile.in: Update all dependencies and definitions.
200
889f28e2
AF
2012003-08-02 Adam Fedor <fedor@gnu.org>
202
203 * linespec.c (is_objc_method_format): New function
204 (decode_line_1, locate_first_half): Use it.
205 Fixes PR objc/1298
206
880bc914
AC
2072003-08-01 Andrew Cagney <cagney@redhat.com>
208
209 * NEWS: Mention that m32r is multi-arch.
210 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
211 * configure.tgt: Recognize m32r-*-*.
212 * config/m32r/tm-m32r.h: Delete file.
213 * config/m32r/m32r.mt: New file.
214 * m32r-rom.c (m32r_upload_command): Use hostent only when
215 gethostname succeeds, in order to avoid a compilation
216 warning.
217 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
218 compiler warning.
219
19f59343
MS
2202003-08-01 Michael Snyder <msnyder@redhat.com>
221
222 * sh-tdep.c (sh_frame_align): New gdbarch method.
223 (sh_gdbarch_init): Set up frame_align method.
224
4e7d7511
MS
2252003-07-31 Michael Snyder <msnyder@redhat.com>
226
227 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
228 which is already covered by the new frames infrastructure.
229
63022984
AC
2302003-07-31 Andrew Cagney <cagney@redhat.com>
231
232 * user-regs.c (struct user_reg): Add "next" link.
233 (struct user_regs): Replace "user" with "first" and "last" links.
234 (append_user_reg): Add pre-allocated "reg" parameter.
235 (builtin_user_regs): Provide initial value for "last".
236 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
237 (user_regs_init): Allocate memory from the gdbarch obstack.
238 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
239 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
240 linked list.
241 (usernum_to_user_reg): New function.
242 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
243 (value_of_user_reg): Use usernum_to_user_reg.
244 (user_regs_free): Delete function.
245 (_initialize_user_regs): Update register_gdbarch_data call.
246
7cf6e574
DJ
2472003-07-31 Daniel Jacobowitz <drow@mvista.com>
248
249 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
250
c48a845b
MS
2512003-07-30 Michael Snyder <msnyder@redhat.com>
252
4e7d7511 253 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
254 * infcall.c (call_function_by_hand): Pass struct_addr to
255 value_being_returned.
256 * infcmd.c (print_return_value): Pass zero as struct_addr.
257 * values.c (value_being_returned): If struct_addr is passed,
258 use it instead of trying to recover it from the inferior.
259
f0d8db19
KB
2602003-07-30 Kevin Buettner <kevinb@redhat.com>
261
262 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
263 the prologue analyzer won't need to attempt to extract the pc
264 value from the woefully incomplete dummy frame.
265 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
266 possible. Disable code which modifies the frame.
267
e5c113a1
AC
2682003-07-28 Andrew Cagney <cagney@redhat.com>
269
270 * annotate.c (annotate_breakpoints_headers): Restrict annotation
271 to level 2.
272 (annotate_breakpoints_table, annotate_record): Ditto.
273 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
274 (annotate_field_name_end, annotate_field_value): Ditto.
275 (annotate_field_end, annotate_frame_source_begin): Ditto.
276 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
277 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
278 (annotate_frame_begin, annotate_frame_function_name): Ditto.
279 (annotate_frame_address_end, annotate_frame_address): Ditto.
280 (annotate_frame_args, annotate_frame_end): Ditto.
281 (annotate_frame_where, annotate_arg_begin): Ditto.
282 (annotate_arg_name_end, annotate_arg_value): Ditto.
283 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
284 (annotate_function_call, annotate_signal_name): Ditto.
285 (annotate_signal_string, annotate_signal_name_end): Ditto.
286 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
287 (annotate_value_begin, annotate_value_history_value): Ditto.
288 (annotate_value_history_end, annotate_value_end): Ditto.
289 (annotate_display_begin, annotate_display_number_end): Ditto.
290 (annotate_display_format, annotate_display_expression): Ditto.
291 (annotate_display_expression_end, annotate_display_value): Ditto.
292 (annotate_display_end, annotate_array_section_begin): Ditto.
293 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
294 (annotate_elt, annotate_array_section_end): Ditto.
295
bb1db049
AC
2962003-07-28 Andrew Cagney <cagney@redhat.com>
297
298 * regcache.c (struct regcache_descr): Update comments on
299 nr_raw_registers.
300 (init_legacy_regcache_descr): Don't set nr_raw_registers or
301 sizeof_raw_register_valid_p.
302 (init_regcache_descr): Set nr_raw_registers and
303 sizeof_raw_register_valid_p before calling
304 init_legacy_regcache_descr.
305
20e6603c
AC
3062003-07-28 Andrew Cagney <cagney@redhat.com>
307
308 * mips-tdep.c (print_gp_register_row): Print the GPR's register
309 MOD NUM_REGS.
310
db742940
DJ
3112003-07-28 Daniel Jacobowitz <drow@mvista.com>
312
313 * thread.c (info_threads_command): Use get_selected_frame ().
314 Check that there is at least one non-sentinel frame.
315
ce7f4371
SC
3162003-07-27 Stephane Carrez <stcarrez@nerim.fr>
317
318 * m68hc11-tdep.c (struct frame_extra_info): Remove.
319 (m68hc11_pop_frame): Remove.
320 (m68hc11_frame_saved_pc): Remove.
321 (m68hc11_frame_chain): Remove.
322 (m68hc11_frame_init_saved_regs): Remove.
323 (m68hc11_init_extra_frame_info): Remove.
324 (m68hc11_store_struct_return): Remove.
325 (m68hc11_saved_pc_after_call): Remove.
326
1ea653ae
SC
3272003-07-27 Stephane Carrez <stcarrez@nerim.fr>
328
329 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
330 frame unwind information.
331 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
332 and adapted for frame unwinding.
333 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
334 (m68hc11_unwind_pc): New function.
335 (m68hc11_frame_unwind_cache): New function to analyze frames.
336 (m68hc11_frame_this_id): New function to create new frame struct.
337 (m68hc11_frame_prev_register): New function to unwind a register from
338 the frame.
339 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
340 (m68hc11_frame_p): New function for the above.
341 (m68hc11_frame_base_address): New function to return fp of frame.
342 (m68hc11_frame_args_address): Update for frame.
343 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
344 (m68hc11_unwind_sp): New function.
345 (m68hc11_unwind_dummy_id): New function.
346 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
347 calls.
348
c8a7f6ac
SC
3492003-07-27 Stephane Carrez <stcarrez@nerim.fr>
350
351 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
352 (m68hc11_guess_from_prologue): Advance the pc and frame size only
353 when we are beyond the current pc.
354
3dc990bf
SC
3552003-07-27 Stephane Carrez <stcarrez@nerim.fr>
356
357 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
358 from m68hc11_push_arguments.
359 (m68hc11_push_arguments): Remove.
360 (m68hc11_push_return_address): Remove.
361 (m68hc11_gdbarch_init): Install the above; remove above deprecated
362 handlers; remove deprecated_extra_stack_alignment_needed.
363
222e5d1d
AC
3642003-07-27 Andrew Cagney <cagney@redhat.com>
365
366 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
367 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
368 REAL_PC and not the pointer.
369 * hppa-hpux-tdep.c: Include frame.h
370
a7e9a47e
AC
3712003-07-27 Andrew Cagney <cagney@redhat.com>
372
373 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
374 GDB_MULTI_ACH_PARTIAL.
375
7e3dd49e
AC
3762003-07-27 Andrew Cagney <cagney@redhat.com>
377
378 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
379 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
380 operator at start and not end of line.
381 (decode_prologue): Ditto.
382 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
383 frame_unwind_register_unsigned instead of
384 frame_unwind_unsigned_register.
385 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
386 read_register.
387 (m32r_push_dummy_call): Use register_size instead of
388 REGISTER_RAW_SIZE.
389 (m32r_frame_sniffer): Replace m32r_frame_p.
390 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
391 * m32r-rom.c (report_transfer_performance): Delete extern
392 declaration.
393 (m32r_load, m32r_upload_command): Use print_transfer_performance
394 instead of report_transfer_performance.
395 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
396 / add_show_from_set.
397
0880807f
AC
3982003-07-26 Andrew Cagney <cagney@redhat.com>
399
400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
401 store_return_value and extract_struct_value_address.
402
64ae9269
DJ
4032003-07-26 Daniel Jacobowitz <drow@mvista.com>
404
405 PR c++/1267
406 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
407 NULL, default to the section containing PC.
408
e286caf2
SC
4092003-07-24 Stephane Carrez <stcarrez@nerim.fr>
410
411 * NEWS: Mention "regs" deprecated for m68hc11 too.
412
413 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
414 (m68hc11_print_register): New function to print out one register.
415 (m68hc11_print_registers_info): New function to print registers.
416 (show_regs): Deprecate and use the above.
417 (m68hc11_gdbarch_init): Install the print_registers_info.
418
705b278b
JJ
4192003-07-24 Jeff Johnston <jjohnstn@redhat.com>
420
421 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
422 that we have a SIGTRAP before returning non-zero.
423
63cd4198
EZ
4242003-07-23 Michal Ludvig <mludvig@suse.cz>
425 Elena Zannoni <ezannoni@redhat.com>
426
427 * linespec.c (decode_line_2): Avoid crash if
428 find_function_start_sal() returns empty record.
429
6926787d
AS
4302003-07-23 Andreas Schwab <schwab@suse.de>
431
432 * ia64-tdep.c (ia64_print_insn): New function.
433 (ia64_gdbarch_init): Set print_insn to it.
434 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
435 deprecated_tm_print_insn_info.
436
708cc1b6
MS
4372003-07-22 Michael Snyder <msnyder@redhat.com>
438
439 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
440 handle 8-bit returns (long long).
441 (h8300h_extract_return_value): Ditto.
442 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
443
aebd7893
AC
4442003-07-22 Andrew Cagney <cagney@redhat.com>
445
446 * gdbarch.c Include "gdb_obstack.h".
447 (struct gdbarch): Add an "obstack".
448 (alloc_gdbarch_data): Allocate the gdbarch data using
449 GDBARCH_OBSTACK_CALLOC.
450 (free_gdbarch_data): Delete function.
451 (gdbarch_obstack_zalloc): New function.
452 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
453 Assert that the architecture is not initialized.
454 (gdbarch_alloc): Allocate an obstack, allocate the architecture
455 vector from the obstack.
456 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
457 architecture obstack.
458 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
459 (set_gdbarch_data): Assert that the data is not initialized.
460 (struct gdbarch_data): Delete member "free".
461 (register_gdbarch_data): Do not initialize "free".
462 * gdbarch.h, gdbarch.c: Re-generate.
463
153721e6
AC
4642003-07-22 Andrew Cagney <cagney@redhat.com>
465
466 * configure.in (build_warnings): Add -Wformat-nonliteral.
467 * configure: Re-generate.
468
c193f044 4692003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
470
471 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 472
c3228f12
EZ
4732003-07-22 Elena Zannoni <ezannoni@redhat.com>
474
475 * findvar.c (read_var_value): Remove case for thread local storage
476 variables. It is now entirely handled by the dwarf2 location
477 expression code.
478 * printcmd.c (address_info): Ditto.
479 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
480 enumeration value.
481 (struct symbol): Remove objfile field, which was used by
482 LOC_THREAD_LOCAL_STATIC only.
483 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
484 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
485 usage of objfile pointer.
486 * dwarf2loc.c (locexpr_describe_location): Add case to handle
487 thread local variables.
488 Add include of objfiles.h.
489 * dwarf2expr.c (execute_stack_op): Add comments about thread local
490 storage variables.
491 * Makefile.in (dwarf2loc.o): Update dependencies.
492
aef9bcd2
AC
4932003-07-22 Andrew Cagney <cagney@redhat.com>
494
495 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
496 get_frame_base.
497 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
498 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
499 (struct value): Add opaque declaration.
500 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
501
d95a8903
AC
5022003-07-21 Andrew Cagney <cagney@redhat.com>
503
504 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
505 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
506
4db73d49
SC
5072003-07-20 Stephane Carrez <stcarrez@nerim.fr>
508
509 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
510 regcache_cooked_read_unsigned instead of read_register.
511 (m68hc11_saved_pc_after_call): Likewise.
512 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
513 instead of write_register.
514 (m68hc11_register_type): New function.
515 (m68hc11_register_virtual_type): Remove.
516 (m68hc11_store_return_value): Convert to use the regcache.
517 (m68hc11_extract_struct_value_address): Likewise.
518 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
519 m68hc11_register_type; undeprecate store_return_value and
520 extract_struct_value_address.
521
ef2b8fcd
SC
5222003-07-20 Stephane Carrez <stcarrez@nerim.fr>
523
524 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
525 and translate to use regcache.
526 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
527
625b0b97
AC
5282003-07-18 Andrew Cagney <cagney@redhat.com>
529
530 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
531 * gdbarch.h, gdbarch.c: Re-generate.
532 * i386-tdep.c (i386_gdbarch_init): Do not set
533 DWARF2_BUILD_FRAME_INFO.
534 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
535 unconditionally.
536 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
537 DWARF2_BUILD_FRAME_INFO.
538
22b0d388
AC
5392003-07-18 Andrew Cagney <cagney@redhat.com>
540
541 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
542 * disasm.c (gdb_disassemble_info): Initilize di.arch.
543
1ce5d6dd
AC
5442003-07-18 Andrew Cagney <cagney@redhat.com>
545
546 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
547 frame_unwind_address_in_block, instead of frame_pc_unwind.
548 (dwarf2_frame_cache): Ditto.
549
e6e5e94c
AC
5502003-07-18 Andrew Cagney <cagney@redhat.com>
551
552 * user-regs.h (struct gdbarch): Declare opaque.
553 * ui-out.h (struct ui_file): Declare opaque.
554 * dwarf2-frame.h (struct frame_info): Declare opaque.
555
5483d879
KW
5562003-07-18 Kris Warkentin <kewarken@qnx.com>
557
558 * nto-procfs.c: Clean ARI hits. Change #include <..> to
559 #include "...".
560 (procfs_meminfo): Change strerror to safe_strerror.
561 (procfs_can_run): Remove K&R badness.
562
278a7cf7
MS
5632003-07-17 Michael Snyder <msnyder@redhat.com>
564
565 * remote-sim.c: Comment typo fix.
566
606e3b82
AC
5672003-07-17 Andrew Cagney <cagney@redhat.com>
568
569 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
570 configure.
571 * sparc-tdep.c (sparc_intreg_size): Make non-static.
572 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
573 GDB_MULTI_ARCH_PARTIAL.
574
c43af07c
EZ
5752003-07-17 Elena Zannoni <ezannoni@redhat.com>
576
577 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
578 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
579 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
580
3b85b0f1
TR
5812003-07-16 Theodore A. Roth <troth@openavr.org>
582
583 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
584 found.
585 (avr_frame_unwind_cache): Don't unwind FP for main.
586 Update a comment.
587 Save the computed prev_sp.
588 (avr_saved_regs_unwinder): Remove function.
589 (avr_frame_prev_register): Use PC unwind logic from
590 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
591
336d1bba
AC
5922003-07-16 Andrew Cagney <cagney@redhat.com>
593
594 * frame-base.h (frame_base_p_ftype): Delete definition.
595 (frame_base_append_predicate): Delete declaration.
596 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
597 (frame_unwind_append_predicate): Delete declaration.
598 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
599 (append_predicate): Delete parameter "p".
600 (frame_unwind_append_predicate): Delete function.
601 (frame_unwind_append_sniffer): Update call to append_predicate.
602 (frame_unwind_free): Delete function.
603 (_initialize_frame_unwind): Pass NULL as "free" to
604 register_gdbarch_data.
605 (frame_unwind_init): Append the dummy_frame_sniffer.
606 (frame_unwind_find_by_frame): Simplify.
607 * frame-base.c (struct frame_base_table): Delete field "p".
608 (append_predicate): Delete parameter "p".
609 (frame_base_append_predicate): Delete function.
610 (frame_base_append_sniffer): Update call to append_predicate.
611 (frame_base_free): Delete function.
612 (frame_base_find_by_frame): Simplify.
613 (_initialize_frame_base): Pass NULL as "free" to
614 register_gdbarch_data.
615 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
616 (x86_64_sigtramp_frame_sniffer): Replace
617 "x86_64_sigtramp_frame_p".
618 (x86_64_init_abi): Set the frame unwind sniffers.
619 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
620 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
621 (m68k_gdbarch_init): Set the frame unwind sniffers.
622 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
623 "i386_sigtramp_frame_p".
624 (i386_frame_sniffer): Replace "i386_frame_p".
625 (i386_gdbarch_init): Set the frame unwind sniffers.
626 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
627 (avr_gdbarch_init): Set the frame unwind sniffers.
628 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
629 "alpha_sigtramp_frame_p"
630 (alpha_heuristic_frame_sniffer): Replace
631 "alpha_heuristic_frame_p".
632 (alpha_gdbarch_init): Set the frame unwind sniffers.
633 (alpha_dwarf2_init_abi): Ditto.
634 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
635 "alpha_debug_frame_p".
636 (alpha_mdebug_frame_base_sniffer): Replace
637 "alpha_mdebug_frame_base_p".
638 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
639 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
640 (d10v_gdbarch_init): Set the frame unwind sniffer.
641 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
642 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
643 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
644 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
645 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
646 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
647
48db5a3c
CV
6482003-07-16 Michael Snyder <msnyder@redhat.com>
649
650 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
651 should go thru sh_dsp_register_sim_regno, else the dsp regs
652 will not get the right values.
653
6542003-07-16 Corinna Vinschen <vinschen@redhat.com>
655
656 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
657 deprecated_store_floating by call to store_typed_floating.
658 (sh_sh4_register_convert_to_raw): Substitute call to
659 deprecated_extract_floating by call to extract_typed_floating.
660
6612003-07-16 Corinna Vinschen <vinschen@redhat.com>
662
663 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
664
6652003-07-16 Corinna Vinschen <vinschen@redhat.com>
666
667 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
668 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
669 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
670 as possible.
671 (do_pseudo_register): Remove.
672 (sh_push_dummy_code): New function.
673 (sh64_store_struct_return): Rename from sh_store_struct_return.
674 Only called for sh64 now.
675 (sh_extract_struct_value_address): Regcache'ify.
676 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
677 and accomodate new tasks.
678 (sh64_push_return_address): Rename from sh_push_return_address.
679 Only called for sh64 now.
680 (sh_default_extract_return_value): Rename from sh_extract_return_value.
681 Regcache'ify.
682 (sh3e_sh4_extract_return_value): Regcache'ify.
683 (sh_default_store_return_value): Ditto.
684 (sh3e_sh4_store_return_value): Ditto.
685 (sh_default_register_byte): Remove.
686 (sh_sh4_register_byte): Remove.
687 (sh_default_register_raw_size): Remove.
688 (sh_sh4_register_raw_size): Remove.
689 (sh_register_virtual_size): Remove.
690 (sh_sh3e_register_virtual_type): Remove.
691 (sh_sh3e_register_type): New function.
692 (sh_sh4_register_virtual_type): Remove.
693 (sh_sh4_register_type): New function.
694 (sh_default_register_virtual_type): Remove.
695 (sh_default_register_type): New function.
696 (do_fv_register_info): Add parameters to accomodate call from
697 sh_print_registers_info.
698 (do_dr_register_info): Ditto.
699 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
700 Add parameters to accomodate call from sh_print_registers_info.
701 (sh_do_fp_register): Ditto.
702 (sh64_do_pseudo_register): Call do_dr_register_info,
703 do_fv_register_info and sh_do_fp_register with default parameters.
704 (sh_do_register): Add parameters to accomodate call from
705 sh_print_registers_info.
706 (sh_print_register): Ditto.
707 (sh_print_registers_info): Rename from sh_do_registers_info.
708 Add parameters to be used as gdbarch_print_registers_info
709 implementation. Accomodate removed do_pseudo_register function
710 pointer.
711 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
712 function pointer. Call sh_print_register with default parameters.
713 (sh64_do_registers_info): Call sh_print_registers_info instead of
714 sh_do_registers_info.
715 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
716 detection of deprecated vs. non-deprecated functionality.
717 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
718 function pointer assignments by direct function calls.
719
e8a89fe2
AC
7202003-07-15 Andrew Cagney <cagney@redhat.com>
721
722 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
723 (frame_register_unwind, create_new_frame): Ditto.
724 (legacy_get_prev_frame, get_frame_type): Ditto.
725 (get_frame_base_address): Use frame_base_find_by_frame.
726 (get_frame_locals_address): Use frame_base_find_by_frame.
727 (get_frame_args_address): Use frame_base_find_by_frame.
728 * frame-base.h (frame_base_sniffer_ftype): Declare.
729 (frame_base_append_sniffer): Declare.
730 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
731 * frame-base.c (append_predicate): Add a "sniffer" parameter.
732 (frame_base_append_sniffer): New function.
733 (frame_base_append_predicate): Add a NULL sniffer.
734 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
735 (struct frame_base_table): Add "sniffer".
736 (frame_base_free): Free the "sniffer" table.
737 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
738 (frame_unwind_append_sniffer): Declare.
739 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
740 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
741 (struct frame_unwind_table): Add "sniffer", delete "middle".
742 (append_predicate): Add "sniffer" parameter, append the sniffer.
743 (frame_unwind_init): Update append_predicate call.
744 (frame_unwind_append_sniffer): New function.
745 (frame_unwind_append_predicate): Update append_predicate call.
746 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
747
0714963c
AC
7482003-07-15 Andrew Cagney <cagney@redhat.com>
749
750 * frame.c (get_prev_frame): Move disabled inside_entry_func to
751 before code inhibiting repeated unwind attempts. Add to
752 commentary on that test's problems.
753 * blockframe.c (inside_main_func): Look for "main" in the minimal
754 symbol table.
755 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
756 identical.
757
d9170e22
AC
7582003-07-15 Andrew Cagney <cagney@redhat.com>
759
760 * complaints.c (struct explanation): Define.
761 (struct complaints): Change type of "explanation" to "struct
762 explanation".
763 (symfile_explanations): Convert to a "struct explanation" table.
764 (vcomplaint): Update.
765
eba29c8c
ML
7662003-07-15 Michal Ludvig <mludvig@suse.cz>
767
768 * x86-64-linux-nat.c (regmap): Removed.
769 (supply_gregset, fill_gregset): Call
770 x86_64_linux_(fill,supply)_gregset functions.
771 * x86-64-linux-tdep.c (USER_*): New defines.
772 (user_to_gdb_regmap, x86_64_core_fns): New structure.
773 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
774 New functions.
775 (fetch_core_registers): Ditto.
776 (_initialize_x86_64_linux_tdep): Call add_core_fns().
777 * x86-64-linux-tdep.h: New file.
778 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
779 and core-regset.o.
780 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
781
68cc0bfb
MK
7822003-07-13 Mark Kettenis <kettenis@gnu.org>
783
88a115f7
MK
784 * x86-64-tdep.c (x86_64_store_return_value): Use
785 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 786
68cc0bfb
MK
787 * configure.host: Add x86_64-*-freebsd*.
788 * configure.tgt: Add x86_64-*-freebsd*.
789 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
790 * amd64fbsd-nat.c: New file.
791 * amd64fbsd-tdep.c: New file.
792 * config/i386/nm-fbsd64.h: New file.
793 * config/i386/fbsd64.mh: New file.
794 * config/i386/fbsd64.mt: New file.
795
138e7be5
MK
7962003-07-11 Mark Kettenis <kettenis@gnu.org>
797
798 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
799 `sc_regs_offset' and `sc_fpregs_offset'.
800 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
801 SIGFRAME_FPREGSAVE_OFF): Remove defines.
802 (alpha_sigtramp_register_address): Rewrite to use new members of
803 `struct gdbarch_tdep'.
804 (alpha_gdbarch_init): Initialize new members of struct
805 gdbarch_tdep'.
806 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
807 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
808 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
809 (alphafbsd_pc_in_sigtramp): Implement.
810 (alphafbsd_sigtramp_offset): New function.
811 (alphafbsd_sigcontext_addr): New function.
812 (alphafbsd_init_abi): Initialize signal trampoline related members
813 of `struct gdbarch_tdep'.
814 (_initialize_alphafbsd_tdep): Add prototype.
815
95303a68
TR
8162003-07-11 Theodore A. Roth <troth@openavr.org>
817
ba292e4c
TR
818 * Makefile.in (install-only): Quote sed expression when generating
819 transformed_name.
95303a68 820
6896c0c7
RH
8212003-07-11 Richard Henderson <rth@redhat.com>
822
823 * Makefile.in (dwarf2-frame.o): Add complaints_h.
824 * dwarf2-frame.c: Include complaints.h.
825 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
826 variable initialization; return NULL on error.
827 (decode_frame_entry): New.
828
8edd5d01
AC
8292003-07-11 Andrew Cagney <cagney@redhat.com>
830
c4a09524
AC
831 * frame.h (frame_address_in_block): Delete declaration.
832 * blockframe.c (frame_address_in_block): Delete function.
833 (get_frame_block): Use get_frame_address_in_block.
834 (block_innermost_frame): Ditto.
835 * stack.c (print_frame, backtrace_command_1): Ditto.
836
8edd5d01
AC
837 * frame.h (get_frame_address_in_block): Declare.
838 (frame_unwind_address_in_block): Declare.
839 * frame.c (frame_unwind_address_in_block): New function.
840 (get_frame_address_in_block): New function.
841
f7968451
AC
8422003-07-10 Andrew Cagney <cagney@redhat.com>
843
844 * gdbarch.sh: Simplify predicate methods. Remove need to provide
845 pre-default. Note: re-generate has no effect.
846
ae99b398
AC
8472003-07-10 Andrew Cagney <cagney@redhat.com>
848
849 * gdbarch.sh: When a variable, but not a function, compare against
850 0. Fix problem in previous patch.
851 * gdbarch.c: Re-generate.
852
956ac328
AC
8532003-07-10 Andrew Cagney <cagney@redhat.com>
854
855 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
856 functions against NULL, not 0.
857 * gdbarch.c: Re-generate.
858
287c3240
FF
8592003-07-10 Fred Fish <fnf@ninemoons.com>
860
861 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
862 null string instead of a null pointer.
863 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
864
32f63c4b
MS
8652003-07-09 Michael Snyder <msnyder@redhat.com>
866
867 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
868
402ecd56
MK
8692003-07-09 Mark Kettenis <kettenis@gnu.org>
870
871 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
872 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
873 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
874 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
875 * x86-64-tdep.c: ... from here.
876
c481dac7
AS
8772003-07-09 Andreas Schwab <schwab@suse.de>
878
879 * m68k-tdep.h (enum struct_return): Define.
880 (struct gdbarch_tdep): Add struct_return.
881 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
882 bytes are padded to the right, not to the left. Pass struct value
883 address in register %a1, not on stack.
884 (m68k_use_struct_convention): New function.
885 (m68k_gdbarch_init): Set use_struct_convention. Initialize
886 struct_return in tdep to pcc_struct_return.
887 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
888 reg_struct_return.
889
64176fa3
JB
8902003-07-09 Joel Brobecker <brobecker@gnat.com>
891
892 * somread.c (som_symfile_offsets): Fix compilation error.
893
96a4ee76
AC
8942003-07-09 Andrew Cagney <cagney@redhat.com>
895
896 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
897 Add comments about the checks.
898
1517c6d1
AC
8992003-07-08 Andrew Cagney <cagney@redhat.com>
900
901 * Makefile.in: Make dependency section headers consistent.
902 (config_h): Move to $BUILD headers section.
903 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
904 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
905 (ada-exp.tab.c): Move to YACC/LEX section.
906 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
907 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
908
dc5dd1eb
KW
9092003-07-08 Kris Warkentin <kewarken@qnx.com>
910
911 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
912 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
913 of strerror with safe_strerror, use ISO C function definitions,
914 and replace instances of sprintf with snprintf.
dc5dd1eb 915
612dde91
AC
9162003-07-07 Andrew Cagney <cagney@redhat.com>
917
918 * frame.c (get_prev_frame): Enable check for identical frames.
919 Update comments. Update error messages.
920
492c11d3
JB
9212003-07-07 Joel Brobecker <brobecker@gnat.com>
922
923 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
924
376a5a49
JB
9252003-07-07 Joel Brobecker <brobecker@gnat.com>
926
927 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
928 sort_symtab_syms, no longer necessary.
929
22b4a9ad
JB
9302003-07-07 Joel Brobecker <brobecker@gnat.com>
931
932 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
933
5bbcb741
JB
9342003-07-07 Joel Brobecker <brobecker@gnat.com>
935
936 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
937 (mips_register_byte): Likewise.
938
c139e7d9
DJ
9392003-07-07 Daniel Jacobowitz <drow@mvista.com>
940
941 * Makefile.in (sparc_tdep_h): New.
942 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
943 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
944 * sparc-linux-nat.c: Include "sparc-tdep.h".
945 * sparc-nat.c: Likewise.
946 * sparc-tdep.c: Likewise.
947 * sparc64nbsd-nat.c: Likewise.
948 * sparcnbsd-nat.c: Likewise.
949 * sparcnbsd-tdep.c: Likewise.
950 * sparc-tdep.h: New file.
951 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
952 and sparc_npc_regnum.
953
fd8f87c5
DJ
9542003-07-07 Daniel Jacobowitz <drow@mvista.com>
955
956 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
957 (mips_linux_cannot_store_register): List supported instead of
958 unsupported registers.
959
13adf674
DJ
9602003-07-07 Daniel Jacobowitz <drow@mvista.com>
961
962 * disasm.c (dump_insns): Separate instructions from addresses.
963
8de307e0
AS
9642003-07-07 Andreas Schwab <schwab@suse.de>
965
966 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
967 dependencies.
968 * m68k-tdep.c (NUM_FREGS): Delete.
969 (SIG_PC_FP_OFFSET): Delete.
970 (TARGET_M68K): Delete.
971 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
972 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
973 P_MOVEL_SP, P_MOVEML_SP): Define.
974 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
975 P_TRAP): Delete.
976 (m68k_register_raw_size): Delete.
977 (m68k_register_virtual_size): Delete.
978 (m68k_register_type): Renamed from m68k_register_virtual_type and
979 add gdbarch argument.
980 (m68k_store_struct_return): Delete.
981 (m68k_deprecated_extract_return_value): Delete.
982 (m68k_deprecated_extract_struct_value_address): Delete.
983 (m68k_frame_chain): Delete.
984 (m68k_frame_saved_pc): Delete.
985 (m68k_fix_call_dummy): Delete.
986 (m68k_push_dummy_frame): Delete.
987 (m68k_pop_frame): Delete.
988 (m68k_extract_return_value): New function.
989 (m68k_store_return_value): Rewrite using regcache.
990 (m68k_extract_struct_value_address): Rewrite using regcache.
991 (m68k_push_dummy_call): New function.
992 (struct m68k_frame_cache): Define.
993 (m68k_alloc_frame_cache): New function.
994 (m68k_analyze_frame_setup): New function.
995 (m68k_analyze_register_saves): New function.
996 (m68k_analyze_prologue): New function.
997 (m68k_skip_prologue): Rewrite using above functions.
998 (m68k_unwind_pc): New function.
999 (m68k_frame_cache): New function.
1000 (m68k_frame_this_id): New function.
1001 (m68k_frame_prev_register): New function.
1002 (m68k_frame_unwind): New variable.
1003 (m68k_frame_p): New function.
1004 (m68k_sigtramp_frame_cache): New function.
1005 (m68k_sigtramp_frame_this_id): New function.
1006 (m68k_sigtramp_frame_prev_register): New function.
1007 (m68k_sigtramp_frame_unwind): New variable.
1008 (m68k_sigtramp_frame_p): New function.
1009 (m68k_frame_base_address): New function.
1010 (m68k_frame_base): New function.
1011 (m68k_unwind_dummy_id): New function.
1012 (fill_gregset): Use regcache_collect.
1013 (fill_fpregset): Likewise.
1014 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1015 defined.
1016 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1017 deprecated_init_frame_pc, deprecated_store_struct_return,
1018 deprecated_extract_return_value, deprecated_store_return_value,
1019 deprecated_frame_chain, deprecated_frame_saved_pc,
1020 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1021 deprecated_register_virtual_size,
1022 deprecated_max_register_raw_size,
1023 deprecated_max_register_virtual_size,
1024 deprecated_register_virtual_type, deprecated_register_size,
1025 deprecated_register_byte, deprecated_register_bytes,
1026 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1027 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1028 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1029 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1030 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1031 deprecated_push_dummy_frame, deprecated_pop_frame,
1032 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1033 only if SYSCALL_TRAP is defined. Set extract_return_value,
1034 store_return_value, extract_struct_value_address, register_type,
1035 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1036 predicates.
1037 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1038 M68K_MAX_REGISTER_SIZE): Define.
1039 (struct m68k_sigtramp_info): Define.
1040 (struct gdbarch_tdep): Add get_sigtramp_info.
1041 * m68klinux-nat.c (fetch_register): Use register_size instead of
1042 REGISTER_RAW_SIZE. Don't put assignment in if.
1043 (store_register): Likewise.
1044 (fetch_inferior_registers): Likewise.
1045 (store_inferior_registers): Likewise.
1046 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1047 (m68k_linux_frame_saved_pc): Delete.
1048 (m68k_linux_sigcontext_reg_offset,
1049 m68k_linux_ucontext_reg_offset): Define.
1050 (m68k_linux_get_sigtramp_info): New function.
1051 (m68k_linux_extract_return_value): Rewrite using regcache.
1052 (m68k_linux_store_return_value): Likewise.
1053 (m68k_linux_extract_struct_value_address): Likewise.
1054 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1055 Don't set deprecated_frame_saved_pc,
1056 deprecated_extract_return_value, deprecated_store_return_value,
1057 deprecated_extract_struct_value_address. Set
1058 extract_return_value, store_return_value,
1059 extract_struct_value_address.
1060
eb8bc282
AC
10612003-07-07 Andrew Cagney <cagney@redhat.com>
1062
1063 * expprint.c: Include "user-regs.h" instead of "frame.h".
1064 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1065 frame_map_regnum_to_name.
1066 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1067 (frame_map_name_to_regnum): Simplify, call
1068 user_reg_map_name_to_regnum.
1069 (frame_map_regnum_to_name): Simplify, call
1070 user_reg_map_regnum_to_name.
1071 (frame_register_unwind): Update.
1072 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1073 (_initialize_frame_reg): Call user_reg_add_builtin.
1074 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1075 (value_of_register): Use value_of_user_reg.
1076 * eval.c (evaluate_subexp_standard): Update.
1077 * parse.c (write_dollar_variable): Update.
1078 * d10v-tdep.c (d10v_print_registers_info): Update.
1079 * infcmd.c (registers_info): Update.
1080 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1081 (builtin_regs_h): Delete macro.
1082 (user_regs_h): Define.
1083 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1084 (builtin-regs.o): Delete target.
1085 (user-regs.o): Specify dependencies.
1086 (expprint.o): Update dependencies.
1087 (findvar.o): Update dependencies.
1088 (frame.o): Update dependencies.
1089 (std-regs.o): Update dependencies.
1090
9f476a01
CF
10912003-07-06 Christopher Faylor <cgf@redhat.com>
1092
1093 * win32-nat.c (solib_symbols_add): Use one variable for all section
1094 address stuff. Pass variable rather than address of variable to
1095 safe_symbol_file_add.
1096
a731b831
AS
10972003-07-06 Andreas Schwab <schwab@suse.de>
1098
1099 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1100
9f83329d
JB
11012003-07-04 Joel Brobecker <brobecker@gnat.com>
1102
1103 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1104
27e28cc5
KW
11052003-07-04 Kris Warkentin <kewarken@qnx.com>
1106
1107 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1108
11092003-07-04 Kris Warkentin <kewarken@qnx.com>
1110
1111 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1112 * config/i386/nto.mh: New file.
1113 * config/i386/nm-nto.h: New file.
1114 * configure.host: Add i[3456]86-*-nto*.
1115
100f2e98
JB
11162003-07-03 Joel Brobecker <brobecker@gnat.com>
1117
1118 * remote-vx.c (vx_add_symbols): Fix compilation error.
1119
e23457df
AC
11202003-07-03 Andrew Cagney <cagney@redhat.com>
1121
1122 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1123 * gdbarch.h, gdbarch.c: Re-generate.
1124 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1125 (legacy_register_name): Declare.
1126 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1127 (REGISTER_NAME): Define.
1128 * sparc-tdep.c (legacy_register_name): New function.
1129 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1130 (REGISTER_NAME): Define.
1131 (hppa64_register_name): Declare.
1132 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1133 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1134 (hppa64_register_name): New function.
1135 (hppa_register_name): New function.
1136 * arch-utils.c (legacy_register_name): Delete.
1137 * arch-utils.h (legacy_register_name): Delete.
1138
38caaeec
DJ
11392003-07-03 Daniel Jacobowitz <drow@mvista.com>
1140
1141 * cli/cli-interp.c (cli_interpreter_resume): Update the
1142 cli_uiout's stream to gdb_stdout.
1143
dadd712e
AC
11442003-07-03 Andrew Cagney <cagney@redhat.com>
1145
1146 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1147 predicate.
1148 * gdbarch.h, gdbarch.c: Re-generate.
1149 * regcache.c (init_regcache_descr): Use legacy code when either
1150 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1151
c7f1390e
DJ
11522003-07-02 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * NEWS: Move "set logging" entry into GDB 6.0 section.
1155
4bc8c588
JB
11562003-07-02 Jim Blandy <jimb@redhat.com>
1157
a9dd42f1
JB
1158 * s390-tdep.c (struct frame_extra_info): new member:
1159 'stack_bought_valid'.
1160 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1161 initialize fextra_info->stack_bought.
1162 (s390_frameless_function_invocation): Don't trust the value of
1163 fextra_info_ptr->stack_bought unless
1164 fextra_info->stack_bought_valid is set.
1165
4bc8c588
JB
1166 New S390 prologue analyzer.
1167 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1168 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1169 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1170 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1171 compute_x_addr, s390_on_stack, s390_store,
1172 s390_get_signal_frame_info): New functions.
1173 (S390_NUM_SPILL_SLOTS): New macro.
1174 (s390_get_frame_info): Rewritten.
1175 (is_arg_reg): Deleted.
1176
1177 Break out the decoding of S/390 instructions into separate
1178 functions, to make it more legible, and easier to check
1179 against the spec.
1180 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1181 is_rx, is_rxe): New functions.
1182 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1183 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1184 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1185 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1186 enums for opcode values. (Is this an improvement?)
1187
fd13a04a
AC
11882003-07-02 Andrew Cagney <cagney@redhat.com>
1189
1190 * i386-tdep.c: Revert change committed as part of trad-frame code
1191 below.
1192
3f8091c1
DJ
11932003-07-02 Daniel Jacobowitz <drow@mvista.com>
1194
1195 * breakpoint.c (insert_catchpoint): Make static.
1196
8dd5115e
AS
11972003-07-02 Andreas Schwab <schwab@suse.de>
1198
1199 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1200 former ia64_push_arguments and ia64_push_return_address, and use
1201 regcache functions instead of read/write_register.
1202 (ia64_gdbarch_init): Set push_dummy_call instead of
1203 deprecated_push_arguments and deprecated_push_return_address.
1204
a2229c23
AJ
12052003-07-01 Andreas Jaeger <aj@suse.de>
1206
1207 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1208 before the call.
1209 Set %rax only to number of SSE registers used.
1210
3b3850e8
AC
12112003-07-01 Andrew Cagney <cagney@redhat.com>
1212
1213 * trad-frame.h: Update comments, a -1 .addr is reserved.
1214 (trad_frame_value_p, trad_frame_addr_p): Declare.
1215 (trad_frame_reg_p): Declare.
1216 (trad_frame_set_value): Rename trad_frame_register_value.
1217 (trad_frame_set_unknown): Declare.
1218 * trad-frame.c (trad_frame_realreg_p): New function.
1219 (trad_frame_addr_p, trad_frame_value_p): New function.
1220 (trad_frame_set_unknown): New function.
1221 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1222 (trad_frame_prev_register): Use trad_frame_realreg_p,
1223 trad_frame_addr_p and trad_frame_value_p.
1224 (trad_frame_set_value): Rename trad_frame_register_value.
1225 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1226 and trad_frame_set_value.
a2229c23 1227
4d819d0e
JB
12282003-06-30 Jim Blandy <jimb@redhat.com>
1229
1230 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1231 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1232 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1233 for 16 registers, and then 32 more bytes.
1234 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1235 New macros.
1236 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1237 Move up in the file, since it's now used by is_simple_arg.
1238 (is_simple_arg): Don't assume registers are four bytes long.
1239 Exclude all double arguments. Extended floats are not simple
1240 args.
1241 (is_power_of_two): New function.
1242 (pass_by_copy_ref): Call is_power_of_two, and check that the
1243 length fits in a register, rather than listing all the acceptable
1244 sizes. Extended floats are not passed by reference.
1245 (s390_push_arguments): Don't assume registers are four bytes long.
1246 Reserve an argument register to point to the buffer for structures
1247 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1248 S390_STACK_FRAME_OVERHEAD.
1249
1ad828f1
AS
12502003-06-30 Andreas Schwab <schwab@suse.de>
1251
1252 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1253 format error message.
1254
39b00981
JB
12552003-06-30 Joel Brobecker <brobecker@gnat.com>
1256
1257 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1258
b2a7f303
DC
12592003-06-30 David Carlton <carlton@kealia.com>
1260
1261 Band-aid for PR c++/1245.
1262 * Makefile.in (cp-support.o): Depend on complaints_h.
1263 * cp-support.c: Include complaints.h. Add declaration for
1264 find_last_component.
1265 (cp_find_first_component): Separate code into
1266 cp_find_first_component_aux.
1267 (cp_find_first_component_aux): Call demangled_name_complaint.
1268 (demangled_name_complaint): New.
1269
a257b5bb
AC
12702003-06-30 Andrew Cagney <cagney@redhat.com>
1271
1272 * remote.c (remote_write_bytes): Explicitly compute and then use
1273 the payload size. Update comments to reflect. Fixes problem of
1274 GDB not sending small packets as found by Fred Fish.
1275
0a2cfde4
AC
12762003-06-30 Andrew Cagney <cagney@redhat.com>
1277
1278 * remote.c (remote_async_wait): Fix -Wformat problem.
1279
3fcb8548
AC
12802003-06-29 Andrew Cagney <cagney@redhat.com>
1281
1282 * remote.c (remote_wait): Call error, and not warning, when the
1283 packet is corrupt.
1284 (remote_async_wait): Ditto.
1285
9f9970a3
DJ
12862003-06-29 Daniel Jacobowitz <drow@mvista.com>
1287
1288 * sparc-tdep.c (sparc_y_regnum): Make external again.
1289
83a8ccca
DJ
12902003-06-29 Daniel Jacobowitz <drow@mvista.com>
1291
1292 * cli/cli-logging.c (pop_output_files): Add void to function
1293 definition.
1294
d2cf594a
AC
12952003-06-29 Andrew Cagney <cagney@redhat.com>
1296
1297 * frame.c (frame_register_unwind): Use unsigned char when dumping
1298 the buffer contents.
1299
0fac0b41
DJ
13002003-06-28 Daniel Jacobowitz <drow@mvista.com>
1301
1302 * cli/cli-logging.c: New file.
1303 * cli-out.c (struct ui_out_data): Add original_stream.
1304 (cli_redirect): New function.
1305 (cli_ui_out_impl): Add cli_redirect.
1306 (cli_out_new): Initialize original_stream.
1307 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1308 (uo_redirect, ui_out_redirect): New.
1309 * ui-out.h (struct ui_out_impl): Add redirect member.
1310 (redirect_ftype): New.
1311 (ui_out_redirect): Add prototype.
1312 * Makefile.in: Add rules for cli-logging.c.
1313 * NEWS: Mention "set logging".
1314
88a07d7c
EZ
13152003-06-27 Elena Zannoni <ezannoni@redhat.com>
1316
1317 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1318
4eb58876
AC
13192003-06-27 Andrew Cagney <cagney@redhat.com>
1320
1321 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1322 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1323 * avr-tdep.c (avr_call_dummy_address): Delete function.
1324 (avr_gdbarch_init): Do not set call_dummy_address.
1325
1549f619
EZ
13262003-06-27 Elena Zannoni <ezannoni@redhat.com>
1327
1328 * symfile.c (syms_from_objfile): Move variables to inner block.
1329 Move the checks for the non-mainline case a bit earlier to avoid
1330 doing some useless computations.
1331
3cb3398d
EZ
13322003-06-27 Elena Zannoni <ezannoni@redhat.com>
1333
1334 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1335
3799ccc6
EZ
13362003-06-26 Elena Zannoni <ezannoni@redhat.com>
1337
1338 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1339 sections.
1340
ce1f6491
MC
13412003-06-26 Michael Chastain <mec@shout.net>
1342
1343 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1344 gdb/testsuite/gdb.c++/pr-1210.exp.
1345
d958dfd0
AC
13462003-06-26 Andrew Cagney <cagney@redhat.com>
1347
1348 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1349 altivec_expression.h and altivec_registers.h.
1350
d31431ed
AC
13512003-06-26 Andrew Cagney <cagney@redhat.com>
1352
1353 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1354 info->mach when MIPS16. Patch suggested by Fred Fish.
1355
714b1282
AC
13562003-06-26 Andrew Cagney <cagney@redhat.com>
1357
1358 * utils.c (internal_vproblem): Print the problem to a reason
1359 buffer and then pass to query. Make the msg variable more local.
1360
42efa47a
AC
13612003-06-26 Andrew Cagney <cagney@redhat.com>
1362
1363 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1364 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1365 * gdbarch.h, gdbarch.c: Re-generate.
1366 * frame-base.c (default_frame_args_address): Update. Use
1367 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1368 not available.
1369 (default_frame_locals_address): Ditto for
1370 DEPRECATED_FRAME_LOCALS_ADDRESS.
1371 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1372 (vax_frame_num_args): Update.
1373 (vax_gdbarch_init): Update.
1374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1375 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1376 * mcore-tdep.c (mcore_gdbarch_init): Update.
1377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1378 * ia64-tdep.c (ia64_gdbarch_init): Update.
1379 * symtab.h (address_class): Update comments.
1380 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1381 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1382 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1383 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1384 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1385 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1386 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1387 * alpha-mdebug-tdep.c: Update.
1388 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1389
8ffd9b1b
AJ
13902003-06-26 Andreas Jaeger <aj@suse.de>
1391
1392 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1393 of SSE registers so that varargs functions work. Rework handling
1394 of passing arguments on the stack.
1395 (x86_64_store_return_value): Return double and float values in SSE
1396 register.
1397
e8ac10a6
MC
13982003-06-24 Michael Chastain <mec@shout.net>
1399
1400 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1401 the "constructor breakpoints ignored" bug.
1402
986af8e6
DC
14032003-06-25 David Carlton <carlton@kealia.com>
1404
1405 * MAINTAINERS: Update e-mail address.
1406
d64558a5
JB
14072003-06-24 Jim Blandy <jimb@redhat.com>
1408
e538d2d7
JB
1409 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1410
02631ec0
JB
1411 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1412 function.
1413 (ppc_linux_init_abi): Register it as the
1414 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1415
e716d87a
JB
1416 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1417 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1418 method.
1419
d64558a5
JB
1420 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1421 (ppc64_standard_linkage_target): Use it.
1422
449a5da4
AC
14232003-06-23 Andrew Cagney <cagney@redhat.com>
1424
1425 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1426 for 0 "int0" and 4 "int32" sized registers.
1427 * gdbtypes.c (builtin_type_int0): Define.
1428 (build_gdbtypes): Initialize builtin_type_int0.
1429 * gdbtypes.h (builtin_type_int0): Declare.
1430
b2a02dda
SC
14312003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1432
1433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1434 as characters are unsigned.
1435
fba3138e
DJ
14362003-06-22 Daniel Jacobowitz <drow@mvista.com>
1437
1438 PR gdb/1179
1439 * dwarfread.c (struct_type): Skip static fields without crashing.
1440
f6c8180b
AC
14412003-06-22 Andrew Cagney <cagney@redhat.com>
1442
1443 GDB 6.0 branch created.
f2c06f52
AC
1444 * README: Update.
1445 * PROBLEMS: Update. Empty.
1446 * NEWS: Update.
f6c8180b 1447
ae822768
DJ
14482003-06-22 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1451 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1452
261de166
AC
14532003-06-22 Andrew Cagney <cagney@redhat.com>
1454
1455 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1456 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1457 Velikov.
1458
30e94205
DJ
14592003-06-22 Daniel Jacobowitz <drow@mvista.com>
1460
1461 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1462 compilers.
1463
9e14d721
DJ
14642003-06-21 Daniel Jacobowitz <drow@mvista.com>
1465
1466 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1467 argument of val_print.
1468 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1469 to the address argument of baseclass_offset or target_read_memory.
1470 Do add it to the argument of cp_print_value_fields.
1471
a4b8ebc8
AC
14722003-06-21 Andrew Cagney <cagney@redhat.com>
1473
1474 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1475 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1476 instead of 0..NUM_REGS.
1477 (mips_register_reggroup_p): New function.
1478 (mips_pseudo_register_write): New function.
1479 (mips_pseudo_register_read): New function.
1480 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1481 based on the register's type.
1482 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1483 cooked.
1484 (mips_get_saved_register): Simplify. Assert that REGNO is a
1485 pseudo / cooked.
1486 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1487 (mips_register_type): Replace mips_register_virtual_type. Map
1488 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1489 when available.
1490 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1491 that the register is cooked / virtual.
1492 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1493 Only get the extra info when needed.
1494 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1495 (mips32_heuristic_proc_desc): Fetch the cooked register.
1496 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1497 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1498 (mips_print_register): Use gdbarch_register_type, instead of
1499 REGISTER_VIRTUAL_TYPE.
1500 (print_gp_register_row): Use gdbarch_register_type, instead of
1501 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1502 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1503 Print the pseudo / cooked registers.
1504 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1505 Print the pseudo / cooked registers.
1506 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1507 REG_NUM is pseudo / cooked.
1508 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1509 (mips_n32n64_xfer_return_value): Ditto.
1510 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1511 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1512 (mips_register_sim_regno): New function.
1513 (mips_gdbarch_init): Set deprecated_register_byte,
1514 register_group_p, pseudo_register_write, pseudo_register_read,
1515 register_sim_regno, and num_pseudo_regs. Set register_type,
1516 instead of register_virtual_type.
1517 * Makefile.in (mips-tdep.o): Update dependencies.
1518 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1519 REGISTER_VIRTUAL_TYPE.
1520 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1521 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1522 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1523 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1524 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1525
325ed089
DJ
15262003-06-21 Daniel Jacobowitz <drow@mvista.com>
1527
1528 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1529 * cli/cli-cmds.c: Include "gdb_vfork.h".
1530 (shell_escape): Use vfork.
1531
f0e7d0e8
AC
15322003-06-21 Andrew Cagney <cagney@redhat.com>
1533
c57bb9fa
AC
1534 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1535 32 bit floating-point register saves.
1536
6e51443a
AC
1537 * frame.h (deprecated_unwind_get_saved_register): Delete.
1538 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1539 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1540 and deprecated_get_next_frame_hack instead of
1541 deprecated_unwind_get_saved_register.
1542
ed183c7c
AC
1543 * mips-tdep.c (mips_dump_tdep): Do not print
1544 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1545
f0e7d0e8
AC
1546 * frame.c (get_frame_register): New function.
1547 (frame_unwind_register_signed): New function.
1548 (get_frame_register_signed): New function.
1549 (frame_unwind_register_unsigned): New function.
1550 (get_frame_register_unsigned): New function.
1551 * frame.h: Add comments on naming schema.
1552 (get_frame_register, frame_unwind_register_signed): Declare.
1553 (get_frame_register_signed, get_frame_register_signed): Declare.
1554 (frame_unwind_register_unsigned): Declare.
1555 (get_frame_register_unsigned): Declare.
1556
2224d941
TR
15572003-06-20 Theodore A. Roth <troth@openavr.org>
1558
1559 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1560
8619218d
TR
15612003-06-20 Theodore A. Roth <troth@openavr.org>
1562
1563 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1564 (avr_read_sp): Ditto.
1565
0b1b50c0
DJ
15662003-06-20 Daniel Jacobowitz <drow@mvista.com>
1567
1568 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1569 * config/arm/nm-linux.h: Likewise.
1570 * config/arm/tm-linux.h: Likewise.
1571 * config/ia64/nm-linux.h: Likewise.
1572 * config/ia64/tm-ia64.h: Likewise.
1573 * config/s390/tm-linux.h: Likewise.
1574 * config/s390/tm-s390.h: Likewise.
1575 * s390-nat.c: Likewise.
1576 * s390-tdep.c: Likewise.
1577
1578 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1579 * config/ia64/linux.mt: Likewise.
1580 * config/m68k/linux.mh: Likewise.
1581 * config/mips/linux.mt: Likewise.
1582 * config/powerpc/linux.mh: Likewise.
1583 * config/sh/linux.mt: Likewise.
1584
c8c18e65
KW
15852003-06-19 Kris Warkentin <kewarken@qnx.com>
1586
1587 * solib.c (solib_open): Change tests for whether to search
1588 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1589 comments.
1590
dcccef2e
TR
15912003-06-19 Theodore A. Roth <troth@openavr.org>
1592
1593 * avr-tdep.c (avr_frame_address): Delete function.
1594 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1595 set_gdbarch_frame_args_address.
1596
5861a190
AC
15972003-06-19 Andrew Cagney <cagney@redhat.com>
1598
1599 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1600 (REGISTER_CONVERT_FROM_TYPE): Delete.
1601 (mips_register_convert_to_type): Delete declaration.
1602 (mips_register_convert_from_type): Delete declaration.
1603 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1604 kernel/.
1605
0274a8ce
MS
16062003-06-19 Michael Snyder <msnyder@redhat.com>
1607
1608 * linux-nat.h: New file.
1609 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 1610 * lin-lwp.c: Include linux-nat.h.
0274a8ce 1611 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 1612 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
1613 (linux_make_note_section): Iterate over lwps instead of threads.
1614 (linux_do_thread_registers): Use lwp instead of merged pid.
1615 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 1616 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
1617 Add dependency on linux_nat_h.
1618
adf5f719
TR
16192003-06-19 Theodore A. Roth <troth@openavr.org>
1620
1621 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1622
6766a268
DJ
16232003-06-19 Daniel Jacobowitz <drow@mvista.com>
1624
1625 * varobj.c (get_type, get_target_type): Use check_typedef.
1626
1171114a
DJ
16272003-06-19 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * breakpoint.c (insert_catchpoint): Call internal_error.
1630
adcf68a2
TR
16312003-06-19 Theodore A. Roth <troth@openavr.org>
1632
1633 * avr-tdep.c (avr_push_dummy_code): Delete function.
1634 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1635
ea67f13b
DJ
16362003-06-19 Daniel Jacobowitz <drow@mvista.com>
1637
1638 * arch-utils.c (default_prepare_to_proceed): Remove.
1639 (generic_prepare_to_proceed): Remove.
1640 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1641 (generic_prepare_to_proceed): Remove prototype.
1642 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1643 * gdbarch.c: Regenerate.
1644 * gdbarch.h: Regenerate.
1645 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1646 * hppah-nat.c (hppa_switched_threads): Remove.
1647 * infrun.c (prepare_to_proceed): New static function, copied from
1648 generic_prepare_to_proceed. Remove select_it argument.
1649 (proceed): Call prepare_to_proceed.
1650 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1651 variables.
1652 (ptrace_wait): Don't set the removed variables.
1653 (hppa_switched_threads): Remove.
1654 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1655 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1656 (lin_lwp_prepare_to_proceed): Remove prototype.
1657 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1658 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1659
4add8633
TR
16602003-06-18 Theodore A. Roth <troth@openavr.org>
1661
1662 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1663 trad-frame.h.
1664 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1665 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1666 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1667 (AVR_PROLOGUE_*): Enumerate prologue types.
1668 (struct frame_extra_info): Remove.
1669 (struct avr_unwind_cache): Define.
1670 (avr_write_sp): Delete function.
1671 (avr_read_fp): Ditto.
1672 (avr_init_extra_frame_info): Ditto.
1673 (avr_pop_frame): Ditto.
1674 (avr_frame_saved_pc): Ditto.
1675 (avr_saved_pc_after_call): Ditto.
1676 (avr_push_return_address): Ditto.
1677 (avr_frame_chain): Ditto.
1678 (avr_store_struct_return): Ditto.
1679 (avr_push_arguments): Ditto.
1680 (avr_scan_prologue): Update comments. Changed to set up the info for
1681 cache unwinding. Now returns end of prologue PC.
1682 (avr_skip_prologue): Better handling of functions lacking a prologue
1683 by using avr_scan_prologue.
1684 (avr_scan_arg_moves): New function.
1685 (avr_saved_regs_unwinder): Ditto.
1686 (avr_frame_unwind_cache): Ditto.
1687 (avr_unwind_pc): Ditto.
1688 (avr_frame_this_id): Ditto.
1689 (avr_frame_prev_register): Ditto.
1690 (avr_frame_p): Ditto.
1691 (avr_frame_base_address ): Ditto.
1692 (avr_unwind_dummy_id): Ditto.
1693 (avr_push_dummy_code): Ditto.
1694 (push_stack_item): Ditto.
1695 (pop_stack_item): Ditto.
1696 (avr_push_dummy_call): Ditto.
1697 (struct stack_item): Define.
1698 (avr_frame_unwind): Declare structure.
1699 (avr_frame_base): Ditto.
1700 (avr_gdbarch_init): Remove calls to
1701 set_gdbarch_deprecated_init_frame_pc,
1702 set_gdbarch_deprecated_target_read_fp,
1703 set_gdbarch_deprecated_dummy_write_sp,
1704 set_gdbarch_deprecated_fp_regnum,
1705 set_gdbarch_deprecated_push_arguments,
1706 set_gdbarch_deprecated_push_return_address,
1707 set_gdbarch_deprecated_pop_frame,
1708 set_gdbarch_deprecated_store_struct_return,
1709 set_gdbarch_deprecated_frame_init_saved_regs,
1710 set_gdbarch_deprecated_init_extra_frame_info,
1711 set_gdbarch_deprecated_frame_chain,
1712 set_gdbarch_deprecated_frame_saved_pc,
1713 set_gdbarch_deprecated_saved_pc_after_call.
1714 Add calls to set_gdbarch_push_dummy_call,
1715 set_gdbarch_push_dummy_code,
1716 frame_unwind_append_predicate,
1717 frame_base_set_default,
1718 set_gdbarch_unwind_dummy_id,
1719 set_gdbarch_unwind_pc.
1720 Wrap a long line.
1721
7be04a68
MS
17222003-06-18 Corinna Vinschen <vinschen@redhat.com>
1723
1724 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1725 registers for H8/300S.
1726 (h8300_print_registers_info): Ditto.
8ffd9b1b 1727 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 1728
ae087d01
DJ
17292003-06-18 Daniel Jacobowitz <drow@mvista.com>
1730
1731 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1732 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1733 (lin_lwp_wait): Likewise. Update comments.
1734 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1735 (pull_pid_from_list, linux_record_stopped_pid): New.
1736
07d8f827
SC
17372003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1738
1739 * ada-lang.c (scan_discrim_bound): Name first argument.
1740 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1741 declared by ALL_BLOCK_SYMBOLS.
1742
7cb47b14
SC
17432003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1744
1745 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1746 ("regcache.h"): Include it.
1747 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1748
6ad8ae5c
DJ
17492003-06-17 Daniel Jacobowitz <drow@mvista.com>
1750
1751 * NEWS: Mention gdbserver detach change and "disconnect" command.
1752 * infcmd.c (disconnect_command): New function.
1753 (_initialize_infcmd): Add ``disconnect'' command.
1754 * remote.c (remote_async_detach): Delete.
1755 (remote_detach): Merge remote_async_detach.
1756 (remote_disconnect): New.
1757 (init_remote_ops): Set to_disconnect.
1758 (init_remote_cisco_ops): Likewise.
1759 (init_remote_async_ops): Likewise. Use remote_detach.
1760 * target.c (cleanup_target): Default to_disconnect.
1761 (update_current_target): Inherit to_disconnect.
1762 (target_disconnect, debug_to_disconnect): New functions.
1763 (setup_target_debug): Set to_disconnect.
1764 * target.h (struct target_ops): Add to_disconnect.
1765 (target_disconnect): Add prototype.
1766
687595f9
DJ
17672003-06-17 Daniel Jacobowitz <drow@mvista.com>
1768
1769 * breakpoint.c (insert_catchpoint): New function.
1770 (insert_breakpoints): Use catch_exceptions to call
1771 insert_catchpoint. Disable catchpoints if they fail to insert.
1772
29239a8f
DJ
17732003-06-17 Daniel Jacobowitz <drow@mvista.com>
1774
1775 * symfile.c (reread_symbols): Clear sym_private.
1776
2cdf3c63
AC
17772003-06-17 Andrew Cagney <cagney@redhat.com>
1778
1779 * trad-frame.h (struct frame_info): Add opaque declaration.
1780 * remote-fileio.h (struct cmd_list_element): Add opaque
1781 declaration.
1782 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1783 comments.
1784
cf0e1e0d
DJ
17852003-06-17 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * remote.c (remote_prepare_to_store): Replace call to
1788 deprecated_read_register_bytes with multiple regcache_raw_read
1789 calls.
1790
192cdb19
KW
17912003-06-17 Kris Warkentin <kewarken@qnx.com>
1792
1793 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1794 (nto_find_and_open_solib): Likewise.
1795 (nto_init_solib_absolute_prefix): Likewise.
1796 (_initialize_nto_tdep): Fix indentation.
1797
89929b45
KW
17982003-06-17 Kris Warkentin <kewarken@qnx.com>
1799
1800 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1801
46019f27
KW
18022003-06-17 Kris Warkentin <kewarken@qnx.com>
1803
1804 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1805
1a38736e
JB
18062003-06-17 Jim Blandy <jimb@redhat.com>
1807
1808 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1809
3605c34a
TR
18102003-06-16 Theodore A. Roth <troth@openavr.org>
1811
1812 * avr-tdep.c (avr_extract_return_value): New function.
1813 (avr_gdbarch_init): Set extract_return_value method.
1814
870b3035
AC
18152003-06-16 Andrew Cagney <cagney@redhat.com>
1816
1817 * frame.h (deprecated_get_next_frame_hack): Declare.
1818 * frame.c (legacy_saved_regs_prev_register): Only require
1819 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1820 there are always saved regs.
1821 (deprecated_generic_get_saved_register): Do not require
1822 DEPRECATED_FRAME_INIT_SAVED_REGS.
1823 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1824 use frame ID unwind instead.
1825 (deprecated_get_next_frame_hack): New function.
1826
63d47a7d
CV
18272003-06-16 Corinna Vinschen <vinschen@redhat.com>
1828
1829 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1830 (h8300_push_dummy_call): ...this function. Some minor optimization.
1831 (h8300_push_return_address): Remove.
1832 (h8300_gdbarch_init): Remove calls to
1833 set_gdbarch_deprecated_dummy_write_sp,
1834 set_gdbarch_deprecated_push_arguments and
1835 set_gdbarch_deprecated_push_return_address.
1836 Add call to set_gdbarch_push_dummy_call.
1837
4bb1dc5e
CV
18382003-06-16 Corinna Vinschen <vinschen@redhat.com>
1839
1840 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1841 (E_PSEUDO_EXR_REGNUM): Ditto.
1842 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 1843 registers into safe registers.
4bb1dc5e
CV
1844 (h8300_skip_prologue): Check for stm instruction to push registers
1845 used for register variables onto stack.
1846 (gdb_print_insn_h8300): Remove.
1847 (h8300_examine_prologue): Add a comment.
1848 (h8300_register_name): Take pseudo registers into account.
1849 (h8300s_register_name): Ditto.
1850 (h8300sx_register_name): Ditto.
1851 (h8300_print_register): Ditto.
1852 (h8300_print_registers_info): Define "nice" printing order.
1853 (h8300_saved_pc_after_call): Take pseudo registers into account.
1854 (h8300_register_type): Ditto. Return type used for remote connection
1855 when requesting real CCR or EXR register, return actual type when
1856 requesting pseudo CCR or EXR.
1857 (h8300_pseudo_register_read): New function.
1858 (h8300_pseudo_register_write): Ditto.
1859 (h8300_dbg_reg_to_regnum): Ditto.
1860 (h8300s_dbg_reg_to_regnum): Ditto.
1861 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1862 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1863 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1864 set_gdbarch_print_insn architecture dependent.
1865 Call set_gdbarch_pseudo_register_read and
1866 set_gdbarch_pseudo_register_write.
1867 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1868
a59fe496
AC
18692003-06-16 Andrew Cagney <cagney@redhat.com>
1870
1871 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1872 * gdbarch.h, gdbarch.c: Re-generate.
1873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1874 * s390-tdep.c (s390_gdbarch_init): Update.
1875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1876 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1877 * mips-tdep.c (mips_gdbarch_init): Update.
1878 * mcore-tdep.c (mcore_gdbarch_init): Update.
1879 * cris-tdep.c (cris_gdbarch_init): Update.
1880 * infcall.c (call_function_by_hand): Update.
1881 * ia64-tdep.c (ia64_push_arguments): Update comment.
1882 * frame.c (legacy_get_prev_frame): Do not assume
1883 SAVE_DUMMY_FRAME_TOS_P.
1884 * dummy-frame.c (find_dummy_frame): Update comment.
1885
6f4e5a41
AC
18862003-06-16 Andrew Cagney <cagney@redhat.com>
1887
1888 * regcache.c (do_cooked_read): Do not use register_valid_p.
1889
72fab697
TR
18902003-06-15 Theodore A. Roth <troth@openavr.org>
1891
1892 * avr-tdep.c (avr_register_type): Remove a blank line.
1893 (avr_scan_prologue): Correct some comments.
1894
e3d8b004
TR
18952003-06-15 Theodore A. Roth <troth@openavr.org>
1896
1897 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1898 prologue types.
8ffd9b1b 1899 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
1900 option.
1901 Add code to scan -mcall-prologues for mega devices.
1902
866b76ea
TR
19032003-06-15 Theodore A. Roth <troth@openavr.org>
1904
1905 * avr-tdep.c (avr_register_byte): Delete function.
1906 (avr_register_raw_size): Delete function.
1907 (avr_register_virtual_size): Delete function.
1908 (avr_register_virtual_type): Delete function.
1909 (avr_register_type): New function.
1910 (avr_address_to_pointer): Remove unused code.
1911 (avr_read_fp): Need to read FP as two separate bytes due to change to
1912 avr_register_type() usage.
1913 (avr_gdbarch_init): Don't set deprecated_register_size.
1914 Don't set deprecated_register_bytes.
1915 Don't set deprecated_register_byte.
1916 Don't set deprecated_register_raw_size.
1917 Don't set deprecated_max_register_raw_size.
1918 Don't set deprecated_register_virtual_size.
1919 Don't set deprecated_max_register_virtual_size.
1920 Don't set deprecated_register_virtual_type.
1921 Set register_type method.
1922
3993f6b1
DJ
19232003-06-15 Daniel Jacobowitz <drow@mvista.com>
1924
1925 * Makefile.in (linux-nat.o): Add rule.
1926 * linux-nat.c: New file.
1927 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1928 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1929 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1930 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1931 * config/arm/linux.mh (NATDEPFILES): Likewise.
1932 * config/i386/linux.mh (NATDEPFILES): Likewise.
1933 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1934 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1935 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1936 * config/mips/linux.mh (NATDEPFILES): Likewise.
1937 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1938 * config/s390/s390.mh (NATDEPFILES): Likewise.
1939 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1940
786a90bb
MK
19412003-06-15 Mark Kettenis <kettenis@gnu.org>
1942
1943 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1944 replace out-of-date comment.
1945
3bd3f01e
AC
19462003-06-15 Andrew Cagney <cagney@redhat.com>
1947
1948 * rdi-share/host.h (Fail): Change to a varargs function.
1949 * remote-rdi.c (Fail): Update.
8ffd9b1b 1950
de5b9bb9
MK
19512003-06-15 Mark Kettenis <kettenis@gnu.org>
1952
1953 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1954 (i386_convert_register_p, i386_register_to_value,
1955 i386_register_from_value): Handle types longer than 8 bytes.
1956
d532c08f
MK
19572003-06-15 Mark Kettenis <kettenis@gnu.org>
1958
1959 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1960 Move floating-point code to new function in i387-tdep.c.
1961 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1962 New functions containing code moved here from i386-tdep.c.
1963 * i387-tdep.h: Add opaque declaration for `struct type'.
1964 (i387_register_to_value, i387_value_to_register): New prototypes.
1965 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1966 (x86_64_init_abi): Set convert_register_p, register_to_value and
1967 value_to_register here.
8ffd9b1b 1968
42c466d7
AC
19692003-06-14 Andrew Cagney <cagney@redhat.com>
1970
1971 * mips-tdep.c (mips_register_to_value): Make static.
1972 (mips_value_to_register): Make static.
1973 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1974 * ia64-tdep.c (ia64_register_raw_size): Make static.
1975 (ia64_register_virtual_size): Make static.
1976 (ia64_register_byte): Make static.
1977 * i387-tdep.c: Include "i387-tdep.h".
1978 (print_387_control_word): Delete function.
1979 (print_387_status_word): Delete function.
1980 (print_387_status_bits): Delete function.
1981 (print_387_control_bits): Delete function.
1982 * Makefile.in (i387-tdep.o): Update dependencies.
1983 * rdi-share/host.h (Fail): Declare.
1984 * remote-rdi.c (Fail): Update to match declaration.
1985
2a9cda49
AC
19862003-06-14 Andrew Cagney <cagney@redhat.com>
1987
1988 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1989 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1990 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1991 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1992 * README: Delete reference to remote-array.
1993 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1994 (remote-array.o): Delete target.
1995 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1996 * remote-array.c: Delete file.
1997
ff2e87ac
AC
19982003-06-14 Andrew Cagney <cagney@redhat.com>
1999 Mark Kettenis <kettenis@gnu.org>
2000
2001 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2002 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2003 parameter with "frame".
2004 * gdbarch.h, gdbarch.c: Re-generate.
2005 * frame.h (put_frame_register): Declare.
2006 * frame.c (put_frame_register): New function.
2007 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2008 (legacy_register_to_value): Rewrite, use "frame" to get the
2009 register value.
2010 (legacy_value_to_register): Rewrite, use "frame" to find the
2011 register's location before storing.
2012 * arch-utils.h (legacy_convert_register_p): Update.
2013 (legacy_register_to_value, legacy_value_to_register): Update.
2014 * findvar.c (value_from_register): Rewrite, eliminate use of
2015 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2016 "frame" to REGISTER_TO_VALUE.
2017 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2018 lval_reg_frame_relative + lval_register branch of the switch. Do
2019 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2020 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2021 I386_EDI_REGNUM): New defines.
2022 (i386_next_regnum, i386_convert_register_p,
2023 i386_register_to_value, i386_value_to_register): New functions.
2024 (i386_register_convertible, i386_register_convert_to_virtual,
2025 i386_convert_to_raw): Remove functions.
2026 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2027 value_to_register instead of register_convertible,
2028 register_convert_to_virtual and register_convert_to_raw.
2029 * mips-tdep.c (mips_convert_register_p): New function.
2030 (mips_value_to_register): Replace mips_register_convert_from_type.
2031 (mips_register_to_value): Replace mips_register_convert_to_type.
2032 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2033 register_to_value.
2034 * alpha-tdep.c (alpha_convert_register_p): Update.
2035 (alpha_value_to_register): Update, store the register.
2036 (alpha_register_to_value): Update, fetch the register.
2037
98be1e77
TR
20382003-06-14 Theodore A. Roth <troth@openavr.org>
2039
2040 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2041 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2042 Don't set deprecated_call_dummy_words.
2043 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2044 Don't set remote_translate_xfer_address.
2045 (avr_io_reg_read_command): Remove commented out debug printf.
2046 Wrap a long line.
2047
57bc6122
TR
20482003-06-14 Theodore A. Roth <troth@openavr.org>
2049
2050 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2051 causes gdb to seg fault.
2052
eb01fc62
DJ
20532003-06-14 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * sparc-nat.c (fetch_inferior_registers): Correct
2056 a reference to "registers".
2057
3b3e6bee
DJ
20582003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2059
2060 * Makefile.in (exc_request_U_h): Define
2061 (exc_request_S_h): Likewise.
2062 (msg_reply_S_h): Likewise.
2063 (msg_U_h): Likewise.
2064 (notify_S_h): Likewise.
2065 (process_reply_S_h): Likewise.
2066 (gnu-nat.o): Depend on gdb_obstack_h
2067 * gnu-nat.c: Include "gdb_obstack.h".
2068
b8de8283
AC
20692003-06-13 Andrew Cagney <cagney@redhat.com>
2070
2071 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2072 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2073
f3be58bc
AC
20742003-06-13 Andrew Cagney <cagney@redhat.com>
2075
2076 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2077 when deprecated REGISTER macros can be deleted.
2078 * gdbarch.h, gdbarch.c: Re-generate.
2079
4c0122c8
JB
20802003-06-13 Jim Blandy <jimb@redhat.com>
2081
2082 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2083 Linux entry point symbols for _dl_debug_state, too.
2084
3e210248
AC
20852003-06-13 Andrew Cagney <cagney@redhat.com>
2086
2087 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2088 available, do not use the FP register, and always save the TOS.
2089 * dummy-frame.c (dummy_frame_this_id): Do not assert
2090 SAVE_DUMMY_FRAME_TOS.
2091 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2092 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2093 (i386_push_dummy_call): Add 8 to the returned SP.
2094 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2095 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2096 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2097 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2098 (x86_64_push_dummy_call): Return "sp + 16".
2099 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2100 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2101 save_dummy_frame_tos.
2102
0b65af49
JB
21032003-06-13 Jim Blandy <jimb@redhat.com>
2104
2105 * frv-tdep.c (frv_use_struct_convention): Delete static
2106 declaration for function deleted in my change of 2003-06-12.
2107
4ea2465e
TR
21082003-06-13 Theodore A. Roth <troth@openavr.org>
2109
2110 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2111 (avr_pointer_to_address): Shift code addrs left 1 bit.
2112 (avr_convert_from_func_ptr_addr): Delete function since operation is
2113 better handled by avr_address_to_pointer and avr_pointer_to_address.
2114 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2115
1581182a
MK
21162003-06-13 Mark Kettenis <kettenis@gnu.org>
2117
2118 From Kelley Cook <kelleycook@wideopenwest.com>:
2119 * configure.host: Accept i[34567]86 variants.
2120 * configure.tgt: Likewise.
2121 * nlm/configure.in: Likewise.
2122 * nlm/configure: Regenerated.
2123
7aa1783e
RE
21242003-06-13 Richard Earnshaw <rearnsha@arm.com>
2125
2126 * arm-tdep.c (solib-svr4.h): Dont' include it.
2127 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2128 * arm-linux-tdep.c: ... here. Make static.
2129 (arm_linux_init_abi): Register it.
2130 (solib-svr4.h): Include it.
2131 * Makefile.in: Update dependencies.
2132 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2133 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2134
0261a0d0
CV
21352003-06-13 Corinna Vinschen <vinschen@redhat.com>
2136
2137 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2138 indicate registers used for return values.
2139 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2140 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2141 members.
2142 (h8300_init_extra_frame_info): Ditto.
2143 (h8300_frame_locals_address): Removed.
2144 (h8300_frame_args_address): Removed.
2145 (h8300_extract_return_value): Use new regcache structure. Only care
2146 for 16 bit CPUs.
2147 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2148 (h8300_store_return_value): Use new regcache structure. Only care
2149 for 16 bit CPUs.
2150 (h8300h_store_return_value): Same function for 32 bit CPUs.
2151 (h8300_store_struct_return): Removed.
2152 (h8300_extract_struct_value_address): Use new regcache structure.
2153 (h8300h_extract_struct_value_address): Removed.
2154 (h8300_push_dummy_code): New function.
2155 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2156 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2157 set_gdbarch_store_return_value architecture dependent.
2158 Call set_gdbarch_push_dummy_code and
2159 set_gdbarch_extract_struct_value_address.
2160 Remove calls to set_gdbarch_frame_args_address,
2161 set_gdbarch_frame_locals_address,
2162 set_gdbarch_deprecated_store_struct_return,
2163 set_gdbarch_deprecated_extract_return_value,
2164 set_gdbarch_deprecated_extract_struct_value_address,
2165 set_gdbarch_deprecated_call_dummy_words and
2166 set_gdbarch_deprecated_sizeof_call_dummy_words.
2167
055c394a
CV
21682003-06-13 Corinna Vinschen <vinschen@redhat.com>
2169
2170 * h8300-tdep.c (h8300_register_byte): Remove.
2171 (h8300h_register_byte): Remove.
2172 (h8300_register_virtual_type): Remove. Substitute by...
2173 (h8300_register_type): New function.
2174 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2175 (h8300h_extract_struct_value_address): Ditto.
2176 (h8300_gdbarch_init): Drop calls to
2177 set_gdbarch_deprecated_register_byte and
2178 set_gdbarch_deprecated_register_virtual_type.
2179 Add call to set_gdbarch_register_type.
2180
9c04cab7
AC
21812003-06-13 Andrew Cagney <cagney@redhat.com>
2182
2183 * gdbarch.sh: Update comments on registers.
2184 (deprecated_register_byte): Rename register_byte.
2185 (deprecated_register_raw_size): Rename register_raw_size.
2186 (deprecated_register_virtual_size): Rename register_virtual_size.
2187 (deprecated_register_virtual_type): Rename register_virtual_type.
2188 * gdbarch.h, gdbarch.c: Re-generate.
2189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2190 * vax-tdep.c (vax_gdbarch_init): Update.
2191 * v850-tdep.c (v850_gdbarch_init): Update.
2192 * sparc-tdep.c (sparc_gdbarch_init): Update.
2193 * sh-tdep.c (sh_gdbarch_init): Update.
2194 * s390-tdep.c (s390_gdbarch_init): Update.
2195 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2196 * ns32k-tdep.c: Update.
2197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2198 * mips-tdep.c (mips_gdbarch_init): Update.
2199 * mcore-tdep.c (mcore_gdbarch_init): Update.
2200 * m68k-tdep.c (m68k_gdbarch_init): Update.
2201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2202 * ia64-tdep.c (ia64_gdbarch_init): Update.
2203 * hppa-tdep.c (hppa_gdbarch_init): Update.
2204 * h8300-tdep.c (h8300_gdbarch_init): Update.
2205 * frv-tdep.c (frv_gdbarch_init): Update.
2206 * cris-tdep.c (cris_gdbarch_init): Update.
2207 * avr-tdep.c (avr_gdbarch_init): Update.
2208 * alpha-tdep.c (alpha_gdbarch_init): Update.
2209 * arm-tdep.c (arm_gdbarch_init): Update.
2210
b060cbea
AC
22112003-06-13 Andrew Cagney <cagney@redhat.com>
2212
2213 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2214 mips_o32_use_struct_convention with always_use_struct_convention.
2215
0fc9922a
DC
22162003-06-12 David Carlton <carlton@kealia.com>
2217
2218 * cp-namespace.c (cp_set_block_scope): Comment out
2219 processing_has_namespace_info branch.
2220
1fd35568
JB
22212003-06-12 Jim Blandy <jimb@redhat.com>
2222
f470a70a
JB
2223 Recognize and skip 64-bit PowerPC Linux linkage functions.
2224 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2225 insn_pattern, insns_match_pattern, d_field, ds_field): New
2226 functions, macros, and types for working with PPC instructions.
2227 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2228 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2229 ppc64_skip_trampoline_code): New functions, variables, and macros
2230 for recognizing and skipping linkage functions.
2231 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2232 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2233
49ff75ad
JB
2234 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2235 register offsets for both the 32- and 64-bit interfaces.
2236
bd918c83
JB
2237 Actually finish the job started by my change of 2003-05-29.
2238 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2239 other #definition of this.
2240 (ppc_linux_skip_trampoline_code): Remove declaration.
2241 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2242 static.
2243 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2244 method for GDBARCH.
2245
2246 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2247 'long' on ppc64-*-linux*.
2248
f8c59253
JB
2249 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2250 isn't #defined, assume the register doesn't exist: act as if
2251 tdep->ppc_mq_regnum were -1.
2252
8fbb30b1
JB
2253 * configure.host, configure.tgt: Add entries for
2254 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2255 powerpc/linux.mt.
2256 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2257 New files.
2258
1fd35568
JB
2259 * arch-utils.c (always_use_struct_convention): New function.
2260 * arch-utils.h (always_use_struct_convention): New prototype.
2261 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2262 (alpha_gdbarch_init): Register always_use_struct_convention,
2263 instead of alpha_use_struct_convention.
2264 * cris-tdep.c (cris_use_struct_convention): Delete.
2265 (cris_gdbarch_init): Register always_use_struct_convention,
2266 instead of cris_use_struct_convention.
2267 * frv-tdep.c (frv_use_struct_convention): Delete.
2268 (frv_gdbarch_init): Register always_use_struct_convention,
2269 instead of frv_use_struct_convention.
2270 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2271 (h8300_gdbarch_init): Register always_use_struct_convention,
2272 instead of h8300_use_struct_convention.
e3305dd9 2273 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2274 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2275 instead of mips_o32_use_struct_convention.
2276
e14e6e9c
AC
22772003-06-12 Andrew Cagney <cagney@redhat.com>
2278
2279 * wince.c: Include "mips-tdep.h".
2280 * mips-tdep.h (mips_next_pc): Declare.
2281 * mcore-tdep.c: Make more local functions static.
2282 * Makefile.in (wince.o): Update dependencies.
2283
2335f48e
DC
22842003-06-12 David Carlton <carlton@kealia.com>
2285
2286 * symtab.c (lookup_symbol_aux_minsyms): Replace
2287 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2288 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2289 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2290 SYMBOL_NATURAL_NAME.
2291
f70a7d61
AS
22922003-06-12 Andreas Schwab <schwab@suse.de>
2293
2294 * Makefile.in (tuiDisassem.o): Update dependencies.
2295
b6429628
DC
22962003-06-12 David Carlton <carlton@bactrian.org>
2297
2298 * symtab.h: Delete declaration of make_symbol_overload_list.
2299 Add declaration of lookup_partial_symbol.
2300 * symtab.c (remove_params): Move to cp-support.c.
2301 (overload_list_add_symbol, make_symbol_overload_list)
2302 (sym_return_val_size, sym_return_val_index): Ditto.
2303 (lookup_partial_symbol): Make extern.
2304 * cp-support.h: Add declaration of make_symbol_overload_list.
2305 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2306 symtab.h, and block.h.
2307 (remove_params): Move here from symtab.c.
2308 (overload_list_add_symbol, make_symbol_overload_list)
2309 (sym_return_val_size, sym_return_val_index): Ditto.
2310 * valops.c: Include cp-support.h.
2311 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2312 frame_h, and block_h.
2313 (valops.o): Depend on cp_support_h.
2314
084edea5
CV
23152003-06-12 Corinna Vinschen <vinschen@redhat.com>
2316
2317 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2318 substitute by NUM_REGS throughout.
2319 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2320 (h8300s_register_name): New function for H8S registers.
2321 (h8300sx_register_name): Ditto for H8SX registers.
2322 (h8300_print_register): Revise register printing, avoid depending
2323 on 32 bit long.
0261a0d0 2324 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2325 (h8300h_register_byte): New function for any other architecture.
2326 (h8300_register_raw_size): Remove.
2327 (h8300_register_virtual_type): Revise to return actually useful
2328 type.
2329 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2330 (h8300h_extract_struct_value_address): New function for any other
2331 architecture.
2332 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2333 set_gdbarch_register_name, set_gdbarch_register_byte,
2334 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2335 Remove calls to set_gdbarch_deprecated_register_size,
2336 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2337 set_gdbarch_deprecated_max_register_raw_size,
2338 set_gdbarch_register_virtual_size and
2339 set_gdbarch_deprecated_max_register_virtual_size entirely.
2340 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2341 set_gdbarch_long_double_bit.
2342
06194148
JJ
23432003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2344
8ffd9b1b
AJ
2345 * doublest.c (convert_doublest_to_floatformat): When dealing
2346 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2347 processing a full 32 bits of mantissa.
2348
de4f826b
DC
23492003-06-11 David Carlton <carlton@bactrian.org>
2350
2351 * dictionary.h: New.
2352 * dictionary.c: New.
2353 * block.h: Add opaque declaration for struct dictionary.
2354 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2355 'sym' members.
2356 (BLOCK_DICT): New macro.
2357 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2358 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2359 BLOCK_SHOULD_SORT.
2360 (ALL_BLOCK_SYMBOLS): Update definition.
2361 * Makefile.in (SFILES): Add dictionary.c.
2362 (dictionary_h): New.
2363 (COMMON_OBS): Add dictionary.o.
2364 (dictionary.o): New.
2365 (ada-lang.o): Depend on dictionary_h.
2366 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2367 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2368 (mi-cmd-stack.o): Ditto.
2369 (gdbtk-cmds.o): Update dependencies.
2370 (gdbtk-stack.o): Ditto.
2371 * ada-lang.c: Include dictionary.h.
2372 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2373 (fill_in_ada_prototype, debug_print_block): Ditto.
2374 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2375 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2376 'is_sorted'.
2377 * mdebugread.c: Include dictionary.h.
2378 (struct parse_stack): Delete 'maxsyms' member.
2379 (parse_symbol): Update calls to new_block. Delete calls to
2380 shrink_block. Use dictionary methods.
2381 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2382 Update calls to new_symtab. Don't maintain maxsyms data.
2383 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2384 (add_symbol): Just call dict_add_symbol.
2385 (new_symtab): Delete 'maxsyms' argument.
2386 (new_symtab): Update calls to new_block.
2387 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2388 (shrink_block): Delete function.
2389 (fixup_sigtramp): Update call to new_block. Add symbol via
2390 dict_add_symbol.
2391 * jv-lang.c: Include dictionary.h.
2392 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2393 appropriately. Set class_symtab->free_func. Make sure the
2394 blockvector is big enough to hold two blocks.
2395 (add_class_symtab_symbol): Use dictionary methods.
2396 (free_class_block): New function.
2397 (type_from_class): Replace explicit iteration by
2398 ALL_BLOCK_SYMBOLS.
2399 * symtab.h (struct symtab): Replace 'free_ptr' method by
2400 'free_func'.
2401 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2402 sort_symtab_syms.
2403 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2404 sort_symtab_syms.
2405 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2406 Include dictionary.h.
2407 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2408 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2409 sort_symtab_syms.
2410 * objfiles.c: Include dictionary.h.
2411 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2412 * buildsym.c: Include dictionary.h.
2413 (finish_block): Use dictionary methods.
2414 (end_symtab): Set free_func to NULL, not free_ptr.
2415 * tracepoint.c: Include dictionary.h.
2416 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2417 (scope_info): Ditto.
2418 * stack.c: Include dictionary.h.
2419 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2420 (print_block_frame_labels, print_frame_arg_vars)
2421 (print_frame_args): Ditto.
2422 * symmisc.c (free_symtab_block): Use dictionary methods.
2423 (dump_symtab): Ditto.
2424 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2425 Include dictionary.h.
2426 * symfile.h: Delete declarations of sort_block_syms,
2427 sort_symtab_syms.
2428 * symfile.c (sort_block_syms): Delete.
2429 (sort_symtab_syms): Delete.
2430 * symtab.c: Include dictionary.h.
2431 (lookup_block_symbol): Use dictionary iterators.
2432 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2433 (search_symbols, make_symbol_completion_list): Ditto.
2434 (make_symbol_overload_list): Ditto.
2435 * valops.c (value_of_local): Use dict_empty.
2436 Include dictionary.h.
2437
a31f978c
JB
24382003-06-11 J. Brobecker <brobecker@gnat.com>
2439
2440 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2441
526e70c0
DC
24422003-06-11 David Carlton <carlton@bactrian.org>
2443
2444 * block.h (BLOCK_SHOULD_SORT): Delete.
2445 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2446 blocks.
2447 * ada-lang.c (ada_add_block_symbols): Ditto.
2448 * symfile.c (sort_block_syms): Delete.
2449 (sort_symtab_syms): Ditto.
2450 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2451 declarations.
2452 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2453 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2454 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2455 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2456 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2457 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2459
33c08150
JJ
24602003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2461
8ffd9b1b 2462 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2463 bits to 128.
2464
781a750d
AC
24652003-06-11 Andrew Cagney <cagney@redhat.com>
2466
2467 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2468 REGISTER_CONVERTIBLE.
2469 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2470 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2471 * gdbarch.h, gdbarch.c: Re-generate.
2472 * arch-utils.h (deprecated_register_convertible_not): Rename
2473 generic_register_convertible_not.
2474 * arch-utils.c (deprecated_register_convertible_not): Rename
2475 generic_register_convertible.
2476 (legacy_convert_register_p, legacy_register_to_value): Update.
2477 * sh-tdep.c (sh64_push_arguments): Update.
2478 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2479 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2480 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2481 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2482 * arch-utils.c (legacy_value_to_register): Update.
2483 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2484 (rs6000_register_convert_to_raw): Make parameter "from" const.
2485 * mips-tdep.c (mips_gdbarch_init): Update.
2486 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2487 * infcmd.c (default_print_registers_info): Update.
2488 * ia64-tdep.c (ia64_gdbarch_init): Update.
2489 (ia64_register_convert_to_raw): Make parameter "from" const.
2490 * i386-tdep.c (i386_gdbarch_init): Update.
2491 (i386_register_convert_to_raw): Update.
2492
cd90e54f
AC
24932003-06-11 Andrew Cagney <cagney@redhat.com>
2494
2495 * remote-fileio.c: Include "remote-fileio.h".
2496 * Makefile.in (remote-fileio.o): Update dependencies.
2497 (remote_fileio_h): Fix typo.
2498
a78f21af
AC
24992003-06-11 Andrew Cagney <cagney@redhat.com>
2500
2501 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2502 (xstormy16_save_dummy_frame_tos): Make static.
2503 (_initialize_xstormy16_tdep): Add declaration.
2504 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2505 * v850-tdep.c: Make local functions static.
2506 (_initialize_v850_tdep): Add declaration.
2507 * sparc-tdep.c: Make local functions static.
2508 (_initialize_sparc_tdep): Add declaration.
2509 * sh-tdep.c: Make local functions static.
2510 (_initialize_sh_tdep): Add declaration.
2511 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2512 * s390-tdep.c: Make local functions static.
2513 (_initialize_s390_tdep): Add declaration.
2514 * dbxread.c (find_stab_function_addr): Make static.
2515 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2516 * ocd.c (_initialize_remote_ocd): Add declaration.
2517 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2518 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2519 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2520 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2521 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2522 * remote-array.c (_initialize_array): Add declaration.
2523 (_initialize_remote_monitors): Add declaration.
2524 * remote-mips.c: Make local functions static.
2525 (_initialize_remote_mips): Add declaration.
2526 * mcore-tdep.c: Make all local functions static.
2527 (_initialize_mcore_tdep): Add declaration.
2528 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2529 * abug-rom.c (_initialize_abug_rom): Add declaration.
2530 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2531 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2532 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2533 * remote-est.c (_initialize_est): Add declaration.
2534 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2535 (m68hc11_call_dummy_address): Make static.
2536 * ia64-tdep.c: Make local functions static.
2537 (_initialize_ia64_tdep): Add declaration.
2538 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2539 * monitor.c (monitor_wait_filter): Make static.
2540 (_initialize_remote_monitors): Add declaration.
2541 * remote-hms.c (_initialize_remote_hms): Add declaration.
2542 * remote-e7000.c (fetch_regs_from_dump): Make static.
2543 (expect_n): Make static.
2544 (_initialize_remote_e7000): Add declaration.
2545 * ser-e7kpc.c: Always include "defs.h".
2546 (_initialize_ser_e7000pc): Add declaration.
2547 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2548 * cris-tdep.c: Make all but one function static.
2549 (_initialize_cris_tdep): Add declaration.
2550 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2551 * solib.c (update_solib_list): Make static.
2552 (_initialize_solib): Add declaration.
2553 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2554 (_initialize_avr_tdep): Add declaration.
2555 * remote-rdi.c (voiddummy): Make static.
2556 (_initialize_remote_rdi): Add declaration.
2557 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2558 * remote-rdp.c (send_rdp): Make static.
2559 (_initialize_remote_rdp): Add declaration.
2560 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2561
cbcdb1f5
CV
25622003-06-11 Corinna Vinschen <vinschen@redhat.com>
2563
2564 * remote-fileio.c: Make ari happy.
2565
a191ea8d
JB
25662003-06-10 J. Brobecker <brobecker@gnat.com>
2567
2568 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2569 fetching the trailing bytes of the buffer we are about to write.
2570
0ef75e11
AC
25712003-06-10 Andrew Cagney <cagney@redhat.com>
2572
2573 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2574 * Makefile.in (remote-fileio.o): Update dependencies.
2575 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2576 include <setjmp.h>, or <sys/types.h> conditional on USG.
2577 (remote_fio_jmp_buf): Delete global variable.
2578
449092f6 25792003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 2580 Martin M. Hunt <hunt@redhat.com>
449092f6 2581
559fa028
AC
2582 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2583 (SFILES): Add remote-fileio.c.
2584 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2585 dependencies for building remote.o.
449092f6
CV
2586 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2587 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2588 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2589 static storage class.
2590 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2591 'F' packet.
2592 (_initialize_remote): Call initialize_remote_fileio().
2593 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2594 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2595 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2596 (captured_main): Initialize new ui_files.
2597 * ui-file.c: Add read and fgets input functions.
2598 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2599 (null_file_read): New function.
2600 (ui_file_read): New function.
2601 (set_ui_file_read): New function.
2602 (stdio_file_read): New function.
2603 * ui-file.h: New type ui_file_read_ftype.
2604 (set_ui_file_read): Declare.
2605 (ui_file_read): Declare.
2606
248de703
AC
26072003-06-09 Andrew Cagney <cagney@redhat.com>
2608
2609 * frame.h (deprecated_unwind_get_saved_register): Rename
2610 generic_unwind_get_saved_register, update comments.
2611 * mips-tdep.c (mips_get_saved_register): Update.
2612 * frame.c (deprecated_unwind_get_saved_register): Update.
2613
0ed8aa57
AC
26142003-06-09 Andrew Cagney <cagney@redhat.com>
2615
2616 * vax-tdep.c (vax_frame_locals_address): Delete function.
2617 (vax_gdbarch_init): Do not set frame_locals_address.
2618 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2619 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2620 * s390-tdep.c (s390_frame_args_address): Delete function.
2621 (s390_gdbarch_init): Do not set frame_args_address or
2622 frame_locals_address.
2623 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2624 (ns32k_gdbarch_init): Do not set frame_locals_address.
2625 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2626 (hppa_frame_locals_address): Delete function.
2627 (hppa_gdbarch_init): Do not set frame_args_address, or
2628 frame_locals_address.
2629 * arm-tdep.c (arm_frame_args_address): Delete.
2630 (arm_frame_locals_address): Delete.
2631 (arm_gdbarch_init): Do not set frame_args_address, or
2632 frame_locals_address.
2633
983a287a
AC
26342003-06-09 Andrew Cagney <cagney@redhat.com>
2635
2636 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2637 * gdbarch.h, gdbarch.c: Re-generate.
2638 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2639 * arch-utils.c (frame_num_args_unknown): Delete function.
2640 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2641 (frame_info): Use FRAME_NUM_ARGS_P.
2642 * arm-tdep.c (arm_frame_num_args): Delete function.
2643 (arm_gdbarch_init): Do not set frame_num_args.
2644 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2645 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2646 (hppa_gdbarch_init): Do not set frame_num_args.
2647 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2649 frame_num_args to default frame_num_args_unknown.
2650 * v850-tdep.c (v850_gdbarch_init): Ditto.
2651 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2652 * sh-tdep.c (sh_gdbarch_init): Ditto.
2653 * s390-tdep.c (s390_gdbarch_init): Ditto.
2654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2655 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2656 * mips-tdep.c (mips_gdbarch_init): Ditto.
2657 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2658 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2660 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2661 * i386-tdep.c (i386_gdbarch_init): Ditto.
2662 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2663 * frv-tdep.c (frv_gdbarch_init): Ditto.
2664 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2665 * cris-tdep.c (cris_gdbarch_init): Ditto.
2666 * avr-tdep.c (avr_gdbarch_init): Ditto.
2667 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2668
8d3b0994
AC
26692003-06-09 Andrew Cagney <cagney@redhat.com>
2670
2671 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2672 (print_frame_args): Moved to "stack.c".
2673 * stack.c: Include "gdb_assert.h".
2674 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2675 (print_frame_args): Moved from "printcmd.c".
2676 * frame.h (print_frame_args): Delete declaration.
2677 * Makefile.in (stack.o): Update dependencies.
2678
25e3a86b
AC
26792003-06-08 Andrew Cagney <cagney@redhat.com>
2680
2681 * frame.c (get_prev_frame): Remove reference to
2682 frame_args_address_correct in comments.
2683 * frame-base.c (default_frame_args_address): Delete code
2684 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2685 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2686 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2687 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2688 (vax_frame_args_address_correct): Delete declaration.
2689
a9e5fdc2
AC
26902003-06-08 Andrew Cagney <cagney@redhat.com>
2691
2692 * gdbarch.sh (UNWIND_SP): Add.
2693 * gdbarch.h, gdbarch.c: Re-generate.
2694 * frame.c (frame_sp_unwind): New function.
2695 (get_frame_sp): New function.
2696 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2697 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2698 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2699 value.
2700 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2701 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2702
8983bd83
AC
27032003-06-08 Andrew Cagney <cagney@redhat.com>
2704
7fec2c59
AC
2705 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2706 REMOTE_BREAKPOINT.
2707 * remote.c: Update.
2708 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2709 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2710 * config/m68k/tm-sun3.h: Update.
2711 * config/m68k/tm-m68klynx.h: Update.
2712 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2713
8983bd83
AC
2714 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2715 trad_frame". Update comments.
2716 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2717 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2718 (trad_frame_register_value, trad_frame_prev_register): Update.
2719
b9362cc7
AC
27202003-06-08 Andrew Cagney <cagney@redhat.com>
2721
2722 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2723 from GCC's acinclude.m4.
2724 * configure.in: Check for getopt's delcaration.
8ffd9b1b 2725 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
2726 * main.c (error_init): Delete declaration.
2727 * defs.h (error_init): Declare.
2728 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2729 (rs6000_convert_from_func_ptr_addr): Make static.
2730 (_initialize_rs6000_tdep): Add declaration.
2731 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2732 (show_commands, set_verbose, show_history): Delete declaration.
2733 * top.h (set_verbose): Add declaration.
2734 (show_history, set_history, show_commands): Add declaration.
2735 (do_restore_instream_cleanup): Add declaration.
2736 * objc-lang.c (specialcmp): Make static.
2737 (print_object_command): Make static.
2738 (find_objc_msgsend): Make static.
2739 (find_objc_msgcall_submethod_helper): Make static.
2740 (find_objc_msgcall_submethod): Make static.
2741 (_initialize_objc_language): Add declaration.
2742 (find_implementation_from_class): Make static.
2743 (find_implementation): Make static.
2744 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2745 * objc-lang.h (lookup_struct_typedef): Add declaration.
2746 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2747 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2748 (do_restore_user_call_depth): Make static.
2749 (do_restore_instream_cleanup): Delete declaration.
2750 (dont_repeat): Delete declaration.
2751 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2752 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2753 * reggroups.c (_initialize_reggroup): Add declaration.
2754 * cp-support.c (_initialize_cp_support): Add declaration.
2755 * cp-abi.c (_initialize_cp_abi): Add declaration.
2756 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2757 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2758 (_initialize_gnu_v3_abi): Add declaration.
2759 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2760 (_initialize_gnu_v2_abi): Add declaration.
2761 * frame-base.c (_initialize_frame_base): Add declaration.
2762 * doublest.c (floatformat_from_length): Make static.
2763 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2764 * frame.c (create_sentinel_frame): Make static.
2765 (_initialize_frame): Add declaration.
2766 * top.c (do_catch_errors): Make static.
2767 (gdb_rl_operate_and_get_next_completion): Make static.
2768 * typeprint.c: Include "typeprint.h".
2769 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2770 (sentinel_frame_this_id): Make static.
2771 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2772 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2773 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2774 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2775 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2776 * maint.c (maintenance_print_architecture): Make static.
2777 * signals/signals.c (_initialize_signals): Add declaration.
2778 * std-regs.c (_initialize_frame_reg): Add declaration.
2779 * jv-exp.y (push_variable): ISO C definition.
2780 (push_qualified_expression_name): Ditto.
2781 * memattr.c (_initialize_mem): Add declaration.
2782 * remote.c (remote_check_watch_resources): Make static.
2783 (remote_stopped_by_watchpoint): Make static.
2784 (remote_stopped_data_address): Make static.
2785 * d10v-tdep.c (nr_dmap_regs): Make static.
2786 (a0_regnum): Make static.
2787 (d10v_frame_unwind_cache): Make static.
2788 (d10v_frame_p): Make static.
2789 * osabi.c (show_osabi): Make static.
2790 (_initialize_gdb_osabi): Add extern declaration.
2791 * gdbtypes.c (make_qualified_type): Make static.
2792 (safe_parse_type): Make static.
2793 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2794 * macrotab.c (macro_bcache_free): Make static.
2795 * interps.c (interp_set_quiet): Make static.
2796 (interpreter_exec_cmd): Make static.
2797 * stack.h (select_frame_command): New file.
2798 * stack.c: Include "stack.h".
2799 (select_frame_command_wrapper): Delete function.
2800 (select_frame_command): Make global.
2801 * infcall.c: Include "infcall.h".
2802 * linespec.c: Include "linespec.h".
2803 * symfile.c (sections_overlap): Make static.
2804 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2805 * charset.c (_initialize_charset): Add missing prototype.
2806 * regcache.c (init_legacy_regcache_descr): Make static.
2807 (do_regcache_xfree): Make static.
2808 (regcache_xfer_part): Make static.
2809 (_initialize_regcache): Add missing prototype.
2810 * breakpoint.c (parse_breakpoint_sals): Make static.
2811 (breakpoint_sals_to_pc): Make static.
2812 * interps.h (clear_interpreter_hooks): ISO C declaration.
2813 * Makefile.in (stack_h): Define.
2814 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2815 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2816
a0f267c7
AC
28172003-06-08 Andrew Cagney <cagney@redhat.com>
2818
2819 * Makefile.in (d10v-tdep.o): Update dependencies.
2820 (SFILES): Add trad-frame.c.
2821 (trad_frame_h): Define.
2822 (COMMON_OBS): Add trad-frame.o.
2823 (trad-frame.o): Specify dependencies.
2824 * d10v-tdep.c: Include "trad-frame.h".
2825 (saved_regs_unwinder): Delete function.
2826 (d10v_frame_prev_register): Use trad_frame_prev_register.
2827 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2828 trad_frame", delete "regs" and "prev_sp".
2829 (prologue_find_regs): Use trad-frame.
2830 * trad-frame.h, trad-frame.c: New files.
2831
4538b4f4
MK
28322003-06-08 Mark Kettenis <kettenis@gnu.org>
2833
2834 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2835
a0273b2f
AF
28362003-06-07 Adam Fedor <fedor@gnu.org>
2837
2838 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2839 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2840 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2841 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 2842 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
2843 Use it.
2844
3a6c3343
AC
28452003-06-07 Andrew Cagney <cagney@redhat.com>
2846
2847 * symfile.h: Re-indent, clean up comments.
2848
b46e02f6
AC
28492003-06-07 Andrew Cagney <cagney@redhat.com>
2850
2851 * inferior.h (deprecated_write_sp): Replace
2852 generic_target_write_sp.
2853 * regcache.c (deprecated_write_sp): Replace
2854 generic_target_write_sp.
2855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2856 * vax-tdep.c (vax_gdbarch_init): Update.
2857 * v850-tdep.c (v850_gdbarch_init): Update.
2858 * sparc-tdep.c (sparc_gdbarch_init): Update.
2859 * sh-tdep.c (sh_gdbarch_init): Update.
2860 * s390-tdep.c (s390_gdbarch_init): Update.
2861 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2862 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2864 * mcore-tdep.c (mcore_gdbarch_init): Update.
2865 * m68k-tdep.c (m68k_gdbarch_init): Update.
2866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2867 * ia64-tdep.c (ia64_gdbarch_init): Update.
2868 * h8300-tdep.c (h8300_gdbarch_init): Update.
2869 * frv-tdep.c (frv_gdbarch_init): Update.
2870 * cris-tdep.c (cris_gdbarch_init): Update.
2871 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2872
a42e117c
AC
28732003-06-07 Andrew Cagney <cagney@redhat.com>
2874
2875 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2876 Assert that PC_REGNUM is valid.
2877 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2878
bd1ce8ba
AC
28792003-06-07 Andrew Cagney <cagney@redhat.com>
2880
2881 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2882 * gdbarch.h, gdbarch.c: Regenerate.
2883 * mn10300-tdep.c: Include "gdb_assert.h".
2884 (mn10300_read_fp): New function.
2885 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2886 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2887 * ia64-tdep.c: Include "gdb_assert.h".
2888 (ia64_read_fp): New function.
2889 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2890 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2891 * regcache.c (generic_target_read_sp): Delete function.
2892 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2893 * inferior.h (generic_target_read_sp): Delete declaration.
2894 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2895 generic_target_read_sp.
2896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2897 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2898 * sh-tdep.c (sh_gdbarch_init): Ditto.
2899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2900 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2901
ec5cbaec
AC
29022003-06-07 Andrew Cagney <cagney@redhat.com>
2903
2904 * gdbarch.sh: Comment each field of startup_gdbarch.
2905 * gdbarch.h, gdbarch.c: Re-generate.
2906
cde9ea48
AC
29072003-06-07 Andrew Cagney <cagney@redhat.com>
2908
2909 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2910 * gdbarch.h, gdbarch.c: Re-generate.
2911 * regcache.c: Update comments on read_pc et.al.
2912 (generic_target_read_pc): Delete function.
2913 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2914 * inferior.h (generic_target_read_pc): Delete declaration.
2915 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2916 generic_target_read_pc.
2917 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2918 * sh-tdep.c (sh_gdbarch_init): Ditto.
2919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 2921
9a90a780
AC
29222003-06-07 Andrew Cagney <cagney@redhat.com>
2923
2924 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2925 "index" with "special_local_sect". Use strcmp instead of STREQ.
2926 Append period to coments.
2927
a39a16c4
MM
29282003-06-06 Mark Mitchell <mark@codesourcery.com>
2929
2930 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2931 (elfstab_offset_sections): Likewise.
2932 * gdb-stabs.h (stab_section_info): Likewise.
2933 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2934 * objfiles.c (objfile_relocate): Likewise.
2935 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2936 * remote.c (get_offsets): Likewise.
2937 (remote_cisco_objfile_relocate): Likewise.
2938 * somread.c (som_symfile_offsets): Likewise.
2939 * symfile.c (alloc_section_addr_info): New function.
2940 (build_section_addr_info_from_section_tab): Use it.
2941 (free_section_addr_info): Adjust.
2942 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2943 (syms_from_objfile): Allocate local_addr dynamically.
2944 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2945 dynamically.
2946 (add_symbol_file_command): Allocate sect_opts dynamically.
2947 (reread_symbols): Avoid use of SECT_OFF_MAX.
2948 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2949 (alloc_section_addr_info): Declare it.
2950 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2951 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2952 dynamically.
2953 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2954
20c6c2f8
AC
29552003-06-06 Andrew Cagney <cagney@redhat.com>
2956
2957 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2958 (d10v_frame_unwind_cache): Do not set "return_pc".
2959
884a26c8
MS
29602003-06-06 Michael Snyder <msnyder@redhat.com>
2961
2962 * h8300-tdep.c: Make tidy (long lines).
2963
088ce440
ML
29642003-06-06 Michal Ludvig <mludvig@suse.cz>
2965
8ffd9b1b 2966 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2967 to regcache_collect().
2968
7d773d96
JB
29692003-06-05 J. Brobecker <brobecker@gnat.com>
2970
2971 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2972 pc_in_sigtramp multiarch method.
2973 (hppa_hpux_som_init_abi): Use it.
2974 (hppa_hpux_elf_init_abi): Likewise.
2975 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2976 macro has been multiarched.
2977 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2978 macro here, as hppa64 isn't multiarched yet.
2979
1df6926e
AC
29802003-06-05 Andrew Cagney <cagney@redhat.com>
2981
2982 * Makefile.in (value_h): Add $(frame_h).
2983 * value.h: Include "frame.h".
2984 (struct value): Replace "frame_addr" with "frame_id".
2985 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2986 * values.c (allocate_value): Use VALUE_FRAME_ID.
2987 (value_copy): Use VALUE_FRAME_ID.
2988 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2989 * valops.c (value_assign): Update. Use frame_find_by_id.
2990
6b53acc6
ML
29912003-06-05 Michal Ludvig <mludvig@suse.cz>
2992
2993 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2994 in each pass.
2995
4d9850d3
JJ
29962003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2997
2998 * thread-db.c (check_event): For create/death event breakpoints,
2999 loop through all messages to ensure that we read the message
3000 corresponding to the breakpoint we are at.
3001
8efca6ba
MS
30022003-06-04 Michael Snyder <msnyder@redhat.com>
3003
3004 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3005
0912c7f2
MK
30062003-06-04 Mark Kettenis <kettenis@gnu.org>
3007
3008 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3009 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3010 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3011 when handling .eh_frame sections.
3012
4e370325
JB
30132003-06-04 J. Brobecker <brobecker@gnat.com>
3014
3015 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3016 prepare_to_proceed procedure instead of the hppa-specific one.
3017 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3018
b757528f 30192003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3020
b757528f
JJ
3021 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3022 * config.in: Regenerated.
3023 * configure.in: Add test for syscall function and check for
3024 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3025 * configure: Regenerated.
3026 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3027 <sys/syscall.h>.
3028 (kill_lwp): New function that uses tkill syscall or
3029 uses kill, depending on whether threading model is nptl or not.
3030 All callers of kill() changed to use kill_lwp().
3031 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3032 see if all threads have already exited in the nptl model.
3033 (stop_and_resume_callback): New callback function used by the
3034 lin_lwp_wait thread exit handling code.
3035 (stop_wait_callback): Check for threads already having exited and
3036 delete such threads fromt the lwp list when discovered.
3037 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3038
b757528f
JJ
3039 Roland McGrath <roland@redhat.com>
3040 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3041 nptl libthread_db.
3042
087779b1
RH
30432003-06-03 Richard Henderson <rth@redhat.com>
3044
b21fd293
RH
3045 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3046 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3047 (alpha_sigtramp_frame_prev_register): Likewise.
3048 (alpha_heuristic_frame_prev_register): Likewise.
3049 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3050
8ffd9b1b 3051 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3052 alpha-specific register id names.
3053 (alpha_mdebug_frame_unwind_cache): Likewise.
3054 (alpha_mdebug_frame_prev_register): Likewise.
3055
baa490c4
RH
30562003-06-03 Richard Henderson <rth@redhat.com>
3057
3058 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3059 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3060 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3061 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3062 unwind routines.
3063 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3064 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3065 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3066
3067 * alpha-linux-tdep.c: Remove unnecessary includes.
3068 * Makefile.in (alpha-linux-tdep.o): Update.
3069
30702003-06-03 Richard Henderson <rth@redhat.com>
3071
3072 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3073 (alphabsd_fill_fpreg): Likewise.
3074
f534e522
JB
30752003-06-03 J. Brobecker <brobecker@gnat.com>
3076
3077 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3078 references to struct frame_info fields by calls to the equivalent
3079 accessors. Necessary now that frame_info is opaque.
3080
4035536b
JB
30812003-06-03 J. Brobecker <brobecker@gnat.com>
3082
3083 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3084 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3085 structure, field no longer exists.
3086
0bd79c5c
JB
30872003-06-03 J. Brobecker <brobecker@gnat.com>
3088
3089 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3090 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3091
37bb6d9f
JB
30922003-06-03 J. Brobecker <brobecker@gnat.com>
3093
3094 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3095 references to struct frame_info fields by calls to the equivalent
3096 accessors. Necessary now that frame_info is opaque.
3097
852ee05c
JB
30982003-06-03 J. Brobecker <brobecker@gnat.com>
3099
3100 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3101 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3102 structure, field no longer exists.
3103
7d58c67d
TR
31042003-06-03 Theodore A. Roth <troth@openavr.org>
3105
8ffd9b1b 3106 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3107 accumulation of the size of all registers instead of blindly using
3108 DEPRECATED_REGISTER_BYTES.
3109
0a48e7e8
MS
31102003-06-03 Michael Snyder <msnyder@redhat.com>
3111
3112 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3113 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3114 for h8300sx.
3115
9798ab0d
JB
31162003-06-03 J. Brobecker <brobecker@gnat.com>
3117
3118 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3119 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3120
00b037e2
AC
31212003-06-03 Andrew Cagney <cagney@redhat.com>
3122
3123 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3124 (sparc_convert_to_raw): Delete function.
3125 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3126 register_convert_to_virtual.
3127
043b2f77
JJ
31282003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3129
3130 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3131 layer if not dealing with a statically-linked threaded program.
3132
f43caff8
KW
31332003-06-03 Kris Warkentin <kewarken@qnx.com>
3134
3135 * solib.c (solib_open): Update comment to reflect actual search order.
3136
ae1e7417
AC
31372003-06-03 Andrew Cagney <cagney@redhat.com>
3138
3139 * frame.c (get_frame_memory_signed): New function.
3140 (get_frame_memory, get_frame_memory_unsigned): New function.
3141 (get_frame_arch): New function.
3142 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3143 (get_frame_memory, get_frame_unsigned_memory): Declare.
3144 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3145 get_frame_memory_unsigned and get_frame_arch.
3146 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3147
cb123844
RG
31482003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3149
3150 * MAINTAINERS (write after approval): Add myself.
3151
1bb792e9
JB
31522003-06-03 Jim Blandy <jimb@redhat.com>
3153
3154 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3155 elements of gregset_t are 64 bits each, but access registers
3156 are still 32 bits, so they're packed two per gregset_t
3157 element. Unpack/pack them properly.
3158
aee8d8ba
DC
31592003-06-02 David Carlton <carlton@bactrian.org>
3160
3161 * linespec.c (find_methods): Break out code into
3162 add_matching_methods and add_constructors.
3163 (add_matching_methods): New.
3164 (add_constructors): Ditto.
3165
bf7488d2
AC
31662003-06-02 Andrew Cagney <cagney@redhat.com>
3167
bf7488d2
AC
3168 * sparc-tdep.c (sparc_print_registers): Delete call to
3169 REGISTER_CONVERTIBLE.
3170 (sparc_gdbarch_init): Do not set register_convertible.
3171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3172 * frv-tdep.c (frv_gdbarch_init): Ditto.
3173 * cris-tdep.c (cris_gdbarch_init): Ditto.
3174
adedef68
EZ
31752003-06-02 Elena Zannoni <ezannoni@redhat.com>
3176
8ffd9b1b 3177 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3178 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3179 (syms_from_objfile): Ditto.
3180
650fcc91
AS
31812003-06-03 Andreas Schwab <schwab@suse.de>
3182
3183 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3184 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3185
df4a182b
RH
31862003-06-02 Richard Henderson <rth@redhat.com>
3187
3188 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3189 a member of all_reggroup.
3190
c483c494
RH
31912003-06-02 Richard Henderson <rth@redhat.com>
3192
3193 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3194 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3195 (alpha_lds, alpha_sts): New.
3196 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3197 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3198 restructure and fail for type sizes other than 4 or 8.
3199 (alpha_value_to_register): Similarly.
3200 (alpha_extract_return_value): Use alpha_sts.
3201 (alpha_store_return_value): Use alpha_lds.
3202 (alpha_gdbarch_init): Update hooks.
3203
b38b6be2
RH
32042003-06-02 Richard Henderson <rth@redhat.com>
3205
3206 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3207 regnum identifiers.
3208 (alpha_sigtramp_register_address): Likewise.
3209
98a8e1e5
RH
32102003-06-02 Richard Henderson <rth@redhat.com>
3211
3212 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3213 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3214 * alpha-tdep.h: Declare them.
3215
3216 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3217 Remove zerobuf. Don't error on UNIQUE.
3218 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3219 (ALPHA_REGSET_UNIQUE): Provide default.
3220 (supply_gregset): Use alpha_supply_int_regs.
3221 (fill_gregset): Use alpha_fill_int_regs.
3222 (supply_fpregset): Use alpha_supply_fp_regs.
3223 (fill_fpregset): Use alpha_fill_fp_regs.
3224 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3225 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3226 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3227 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3228 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3229 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3230
67dfac52
RH
32312003-06-02 Richard Henderson <rth@redhat.com>
3232
f75d70cc
RH
3233 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3234
67dfac52
RH
3235 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3236 (alpha_store_return_value): Likewise.
3237
0cf566ec
DC
32382003-06-02 David Carlton <carlton@math.stanford.edu>
3239
3240 * block.c (contained_in): Add 'const' to arguments.
3241 (block_function): Ditto.
3242 * block.h: Update declarations for block_function and
3243 contained_in.
3244
cdef89d0
DC
32452003-06-02 David Carlton <carlton@math.stanford.edu>
3246
3247 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3248 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3249 * p-valprint.c (pascal_val_print): Ditto.
3250 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3251
72667056
RH
32522003-06-02 Richard Henderson <rth@redhat.com>
3253
98a8e1e5
RH
3254 * alpha-tdep.c (alpha_push_dummy_call): Use
3255 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3256
8ffd9b1b 3257 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3258 sign-extension of 32-bit values.
3259 (alpha_store_return_value): Similarly.
0ede8eca 3260
98a8e1e5
RH
3261 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3262 (alpha_extract_return_value): Likewise.
3263 (alpha_store_return_value): Likewise.
7b5e1cb3 3264
98a8e1e5
RH
3265 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3266 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3267
98a8e1e5
RH
3268 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3269 (alpha_extract_struct_value_address): Likewise.
3270 (alpha_store_return_value): Likewise.
3271 (alpha_store_struct_return): Remove.
3272 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3273
98a8e1e5
RH
3274 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3275 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3276 macros where appropriate.
3277 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3278 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3279
98a8e1e5
RH
3280 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3281 for SP, GP; void_func_ptr for PC; non-language-specific types
3282 for all others.
3283 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3284
6dd77b81
RH
32852003-06-02 Richard Henderson <rth@redhat.com>
3286
3287 * top.h (lim_at_start): Declare.
3288 * main.c (captured_main): Set it.
3289 * top.c (lim_at_start): Define.
3290 (command_loop): Use it instead of &environ.
3291 * event-top.c (command_handler): Likewise.
3292
f4dbdb54
JT
32932003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3294
3295 * mipsnbsd-tdep.c: Update copyright years.
3296 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3297
8f285956
RH
32982003-06-01 Richard Henderson <rth@redhat.com>
3299
98a8e1e5
RH
3300 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3301 (alpha-linux-tdep.o): Update dependencies.
3302 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3303 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3304
615967cb
RH
33052003-06-01 Richard Henderson <rth@redhat.com>
3306
98a8e1e5
RH
3307 * alpha-tdep.c (alpha_register_reggroup_p): New.
3308 (alpha_gdbarch_init): Register it.
615967cb 3309
b59661bd
AC
33102003-06-02 Andrew Cagney <cagney@redhat.com>
3311
3312 * dwarfread.c: Eliminate "register"
3313 (decode_die_type): Eliminate assignment within "if".
3314 (struct_type, decode_array_element_type): Ditto.
3315 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3316 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3317 (decode_modified_type, completedieinfo): Ditto.
3318 * block.c: Eliminate "register".
3319 (blockvector_for_pc_sect): Eliminate assignment within "if".
3320 * cp-support.h (struct symbol): Opaque declaration.
3321 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3322
5ef165c2
RH
33232003-06-01 Richard Henderson <rth@redhat.com>
3324
98a8e1e5
RH
3325 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3326 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3327
143985b7
AF
33282003-06-01 Adam Fedor <fedor@gnu.org>
3329
3330 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3331 * gdbarch.[ch]: Regenerate.
3332 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3333 (hppa_gdbarch_init): Set it in the gdbarch vector.
3334 * i386-tdep.c (i386_fetch_pointer_argument): New
3335 (i386_gdbarch_init): Set it into gdbarch.
3336 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3337 (rs6000_gdbarch_init): Set it in gdbarch.
3338 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3339 (sparc_gdbarch_init): Set it in gdbarch.
3340
ae0167b9
AC
33412003-06-01 Andrew Cagney <cagney@redhat.com>
3342
7c0b4a20
AC
3343 * defs.h (extract_address): Delete declaration.
3344 * findvar.c (extract_address): Delete function.
3345 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3346 extract_address with the inline equivalent,
3347 extract_unsigned_integer.
3348 (xstormy16_extract_struct_value_address): Ditto.
3349 (xstormy16_pointer_to_address): Ditto.
3350 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3351 * v850-tdep.c (v850_push_arguments): Ditto.
3352 (v850_extract_return_value): Ditto.
3353 (v850_extract_struct_value_address): Ditto.
3354 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3355 (sparcnbsd_get_longjmp_target_64): Ditto.
3356 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3357 (get_longjmp_target): Ditto.
3358 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3359 (sh64_extract_struct_value_address): Ditto.
3360 (sh_push_arguments): Ditto.
3361 (sh64_push_arguments): Ditto.
3362 * remote-vxsparc.c (vx_read_register): Ditto.
3363 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3364 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3365 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3366 * mipsv4-nat.c (get_longjmp_target): Ditto.
3367 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3368 * mips-nat.c (get_longjmp_target): Ditto.
3369 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3370 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3371 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3372 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3373 * irix5-nat.c (get_longjmp_target): Ditto.
3374 * irix4-nat.c (get_longjmp_target): Ditto.
3375 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3376 (ia64_push_arguments): Ditto.
3377 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3378 * h8300-tdep.c (h8300_push_arguments): Ditto.
3379 (h8300_store_return_value): Ditto.
3380 (h8300_extract_struct_value_address): Ditto.
3381 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3382 (frv_push_arguments): Ditto.
3383 * avr-tdep.c (avr_pointer_to_address): Ditto.
3384 (avr_push_arguments): Ditto.
3385 * arm-tdep.c (arm_push_dummy_call): Ditto.
3386 (arm_get_longjmp_target): Ditto.
3387 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3388 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3389 (alpha_get_longjmp_target): Ditto.
3390
ae0167b9
AC
3391 * solib-irix.c (extract_mips_address): Inline extract_address,
3392 replacing it with extract_signed_integer.
3393 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3394 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3395 (first_link_map_member, open_symbol_file_object): Ditto.
3396 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3397 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3398 (LM_NEXT, LM_NAME): Ditto.
3399
44d88583
RH
34002003-06-01 Richard Henderson <rth@redhat.com>
3401
98a8e1e5
RH
3402 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3403 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3404 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3405 (alpha_cannot_store_register): Likewise.
3406 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3407 * alpha-nat.c (supply_gregset): Likewise.
3408 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3409
310e9b6a
AC
34102003-06-01 Andrew Cagney <cagney@redhat.com>
3411
3412 * infcall.c (call_function_by_hand): Update comment on
3413 DEPRECATED_DUMMY_WRITE_SP.
3414
3415 * mips-tdep.c (mips_gdbarch_init): Do not set
3416 deprecated_dummy_write_sp.
3417 (mips_eabi_push_dummy_call): Set the SP register.
3418 (mips_o64_push_dummy_call): Set the SP register.
3419 (mips_o32_push_dummy_call): Set the SP register.
3420 (mips_n32n64_push_dummy_call): Set the SP register.
3421
5ab84872
RH
34222003-06-01 Richard Henderson <rth@redhat.com>
3423
98a8e1e5
RH
3424 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3425 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3426 (supply_gregset): Likewise.
3427 * alpha-tdep.c (alpha_store_return_value): Likewise.
3428 (alpha_get_longjmp_target): Likewise.
3429 (alpha_register_name): Constify array.
3430 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3431 deprecated_register_size, deprecated_register_bytes,
3432 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3433 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3434 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3435
09cc52fd
RH
34362003-06-01 Richard Henderson <rth@redhat.com>
3437
3438 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3439 from arg_reg_buffer to regcache to avoid double conversion.
3440
c7f16359
MK
34412003-06-01 Mark Kettenis <kettenis@gnu.org>
3442
3443 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3444 SP_REGNUM.
3445 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3446 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3447
7131cb6e
RH
34482003-06-01 Richard Henderson <rth@redhat.com>
3449
98a8e1e5
RH
3450 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3451 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3452
f3e0f90b
RH
34532003-06-01 Richard Henderson <rth@redhat.com>
3454
98a8e1e5
RH
3455 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3456 not overlapping PC_REGNUM.
f3e0f90b 3457
c88e30c0
RH
34582003-06-01 Richard Henderson <rth@redhat.com>
3459
98a8e1e5
RH
3460 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3461 alpha_push_arguments. Don't dump argument register data to
3462 the target stack. Fix float and 128-bit long double semantics.
3463 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3464 (alpha_fix_call_dummy): Remove.
3465 (alpha_call_dummy_words): Remove.
3466 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3467
f1a559ae
RH
34682003-06-01 Richard Henderson <rth@redhat.com>
3469
3470 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3471
5e045346
AC
34722003-06-01 Andrew Cagney <cagney@redhat.com>
3473
95404a3e
AC
3474 * mips-tdep.c (is_mips16_addr): New function.
3475 (make_mips16_addr, unmake_mips16_addr): New functions.
3476 (pc_is_mips16, mips_fetch_instruction): Use.
3477 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3478 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3479 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3480 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3481 TARGET_MIPS.
3482 * config/mips/tm-mips.h: Update copyright.
3483 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3484 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3485 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3486 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3487 (TM_PRINT_INSN_MACH): Delete.
3488 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3489
5e045346
AC
3490 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3491 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3492 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3493 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3494 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3495 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3496 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3497 mips*-*-riscos* and mips*-*-sysv* onto mips.
3498 * config/mips/mips64.mt: New file.
3499 * config/mips/mips.mt: New file.
3500 * config/mips/littlemips.mt: Delete file.
3501 * config/mips/decstation.mt: Delete file.
3502 * config/mips/vr4300el.mt: Delete file.
3503 * config/mips/vr5000el.mt: Delete file.
3504 * config/mips/vr5000.mt: Delete file.
3505 * config/mips/vr4100.mt: Delete file.
3506 * config/mips/vr4xxxel.mt: Delete file.
3507 * config/mips/vr4300.mt: Delete file.
3508 * config/mips/vr4xxx.mt: Delete file.
3509 * config/mips/bigmips.mt: Delete file.
3510 * config/mips/bigmips64.mt: Delete file.
3511 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3512 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3513 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3514 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3515 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3516 "tm-bigmips.h".
3517 * config/mips/tm-irix3.h: Ditto.
3518 * config/mips/tm-mipsv4.h: Ditto.
3519 * config/mips/tm-embed.h: Ditto.
3520 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3521 "tm-bigmips64.h".
3522 * config/mips/tm-vr5000el.h: Delete file.
3523 * config/mips/tm-tx39l.h: Delete file.
3524 * config/mips/tm-vr4300el.h: Delete file.
3525 * config/mips/tm-vr4xxxel.h: Delete file.
3526 * config/mips/tm-vr4300.h: Delete file.
3527 * config/mips/tm-vr4100.h: Delete file.
3528 * config/mips/tm-vr4xxx.h: Delete file.
3529 * config/mips/tm-vr5000.h: Delete file.
3530 * config/mips/tm-embedl64.h: Delete file.
3531 * config/mips/tm-embedl.h: Delete file.
3532 * config/mips/tm-embed64.h: Delete file.
3533 * config/mips/tm-bigmips64.h: Delete file.
3534 * config/mips/tm-bigmips.h: Delete file.
3535
2473a4a9
MK
35362003-06-01 Mark Kettenis <kettenis@gnu.org>
3537
97a5b208
MK
3538 Fix gdb/1216.
3539 * shnbsd-nat.c: Include "sh-tdep.h".
3540
2473a4a9
MK
3541 From Richard Henderson <rth@redhat.com>:
3542 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3543
e0f7ec59
AC
35442003-05-31 Andrew Cagney <cagney@redhat.com>
3545
3546 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3547 forward declaration.
3548 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3549 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3550 (mips_find_saved_regs): Use set_reg_offset.
3551 (mips_frame_init_saved_regs): Delete function.
3552 (mips_pop_frame): Call mips_find_saved_regs instead of
3553 DEPRECATED_FRAME_INIT_SAVED_REGS.
3554
68dcc709
AC
35552003-05-31 Andrew Cagney <cagney@redhat.com>
3556
3557 * mips-tdep.c (mips_gdbarch_init): Do not set
3558 deprecated_max_register_raw_size, register_virtual_size, and
3559 deprecated_max_register_virtual_size.
3560
cfc14b3a
MK
35612003-05-31 Mark Kettenis <kettenis@gnu.org>
3562
6405b0a6
MK
3563 * i386-tdep.c: Include "dwarf2-frame.h".
3564 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3565 * Makefile.in (i386-tdep.o): Update dependencies.
3566
cfc14b3a
MK
3567 * dwarf2-frame.c, dwarf2-frame.h: New files.
3568 * Makefile.in (SFILES): Add dwarf2-frame.c.
3569 (dwarf2_frame_h): Define.
3570 (COMMON_OBS): Add dwarf2-frame.o.
3571 (dwarf2-frame.o): Add dependencies.
3572
6a2751d2
AJ
35732003-05-31 Andreas Jaeger <aj@suse.de>
3574
3575 * x86-64-linux-nat.c: Fix comment.
3576
1c3545ae
MK
35772003-05-31 Mark Kettenis <kettenis@gnu.org>
3578
10f93086
MK
3579 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3580 function signature.
3581
1c3545ae
MK
3582 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3583 have a sigcontext_addr handler.
3584 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3585 sigcontext_addr handler.
3586
e11c53d2
AC
35872003-05-31 Andrew Cagney <cagney@redhat.com>
3588
3589 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3590 (print_fp_register_row): Replace do_fp_register_row.
3591 (mips_print_fp_register): Add "file" and "frame" parameters.
3592 (mips_print_register): Add "file" and "frame" parameters.
3593 (mips_print_registers_info): Replace mips_do_registers_info.
3594 (mips_gdbarch_init): Set print_registers_info instead of
3595 deprecated_do_registers_info.
3596 (mips_read_fp_register_single): Add "frame" parameter.
3597 (mips_read_fp_register_double): Add "frame" parameter.
3598
a3386186
MK
35992003-05-31 Mark Kettenis <kettenis@gnu.org>
3600
70913449
MK
3601 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3602 Fixes a bug where GDB would print the wrong register names for
3603 targets without SSE.
3604
2b5e0749
MK
3605 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3606 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3607 registers.
3608
3609 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3610 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3611 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3612 TDEP->sc_sp_offset.
3613
a3386186
MK
3614 From Michal Ludvig <mludvig@suse.cz>:
3615 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3616 and `sc_num_regs'.
3617 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3618 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3619 I386_ST0_REGNUM): Move here from...
3620 * i386-tdep.c: ... here.
3621 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3622 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3623 registers if possible.
3624 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3625 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3626 Remove variables.
3627 (i386bsd_sc_reg_offset): New variable.
3628 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3629 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3630 TDEP->sc_sp_offset.
3631 (i386fbsd_sc_reg_offset): New variable.
3632 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3633 TDEP->sc_num_regs.
3634 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3635 variables.
3636 (i386fbsd4_sc_reg_offset): New variable.
3637 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3638 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3639 TDEP->sc_sp_offset.
3640 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3641 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3642 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3643 Remove variables.
3644 (i386nbsd_sc_reg_offset): New variable.
3645 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3646 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3647 TDEP->sc_sp_offset.
3648 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3649 Remove variables.
3650 (i386obsd_sc_reg_offset): New variable.
3651 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3652 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3653 TDEP->sc_sp_offset.
3654 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3655 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3656 for frame pointer offset in `struct sigcontext'.
3657
25ab4790
AC
36582003-05-31 Andrew Cagney <cagney@redhat.com>
3659
3660 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3661 architecture methods call_dummy_words, sizeof_call_dummy_words,
3662 push_return_address, store_struct_return, and fix_call_dummy. Set
3663 push_dummy_call instead of deprecated_push_arguments.
3664 (mips_store_struct_return): Delete function.
3665 (mips_fix_call_dummy): Delete function.
3666 (mips_push_return_address): Delete function.
3667 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3668 RA_REGNUM and T9_REGNUM.
3669 (mips_n32n64_push_dummy_call): Ditto for
3670 mips_n32n64_push_arguments.
3671 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3672 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3673
6a65450a
AC
36742003-05-31 Andrew Cagney <cagney@redhat.com>
3675
3676 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3677 "dummy_addr" to "bp_addr".
3678 * infcall.c (call_function_by_hand): Pass "funaddr" to
3679 gdbarch_push_dummy_call.
3680 * gdbarch.h, gdbarch.c: Re-generate.
3681 * i386-tdep.c (i386_push_dummy_call): Update.
3682 * arm-tdep.c (arm_push_dummy_call): Update.
3683 * d10v-tdep.c (d10v_push_dummy_call): Update.
3684
c4f35dd8
MK
36852003-05-31 Mark Kettenis <kettenis@gnu.org>
3686
3687 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3688 variable declarations.
3689 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3690 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3691 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3692 x86_64_init_frame_pc, x86_64_init_frame_pc,
3693 x86_64_function_has_prologue): Remove prototypes.
3694 (X86_64_NUM_GREGS): New define.
3695 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3696 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3697 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3698 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3699 XMM1_REGNUM): Remove defines.
3700 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3701 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3702 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3703 X86_64_XMM1_REGNUM): New defines.
3704 (struct x86_64_register_info): Renamed from `struct
3705 register_info'. Remove `size' member.
3706 (x86_64_register_info_table): Remove variable.
3707 (x86_64_register_info): New variable.
3708 (X86_64_NUM_REGS): New define.
3709 (X86_64_NUM_GREGS): Remove define.
3710 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3711 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3712 Remove variables.
3713 (x86_54_dwarf2_reg_to_regnum): Remove function.
3714 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3715 (x86_64_dwarf_reg_to_regnum): New function.
3716 (x86_64_register_name): Rewrite.
3717 (x86_64_register_raw_size): Remove function.
3718 (x86_64_register_byte_table): Remove variable.
3719 (x86_64_register_byte): Remove function.
3720 (x86_64_register_virtual_type): Remove function.
3721 (x86_64_register_type): New function.
3722 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3723 x86_64_register_convert_to_raw): Remove functions.
3724 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3725 (x86_64_use_struct_convention): Make static. Adjust for renamed
3726 defines.
3727 (x86_64_frame_init_saved_regs): Remove function.
3728 (x86_64_push_arguments): Make static. Change to accept a regcache
3729 as argument.
3730 (x86_64_store_return_value, x86_64_extract_return_value): Make
3731 static. Rewrite based on i386 counterparts.
3732 (x86_64_push_dummy_call): New function.
3733 (X86_64_NUM_SAVED_REGS): New define.
3734 (x86_64_register_number): Remove function.
3735 (x86_64_store_struct_return): Remove function.
3736 (x86_64_frameless_function_invocation,
3737 x86_64_function_has_prologue): Remove functions.
3738 (PROLOG_BUFSIZE): Remove define.
3739 (struct x86_64_frame_cache): New structure.
3740 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3741 x86_64_frame_cache, x86_64_frame_this_id,
3742 x86_64_frame_prev_register, x86_64_frame_p,
3743 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3744 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3745 functions.
3746 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3747 variables.
3748 (x86_64_skip_prologue): Rewrite in terms of
3749 x86_64_analyze_prologue.
3750 (x86_64_frame_base_address): New function.
3751 (x86_64_frame_base): New variable.
3752 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3753 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3754 set deprecated_fp_regnum, deprecated_register_size,
3755 deprecated_register_bytes, register_raw_size, register_byte,
3756 register_virtual_type, register_convertiable,
3757 register_convert_to_virtual, convert_to_raw,
3758 deprecated_get_saved_register, deprecated_target_read_fp,
3759 deprecated_push_arguments, deprecated_push_return_address,
3760 deprecated_pop_frame, deprecated_store_struct_return,
3761 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3762 frameless_function_invocation, deprecated_frame_saved_pc,
3763 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3764 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3765 deprecated_init_frame_pc and virtual_frame_pointer. Call
3766 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3767 and x86_64_frame_p. Call frame_base_set_default to register
3768 x86_64_frame_base.
3769 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3770 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3771 (_initialize_x86_64_tdep): Remove function.
3772 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3773 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3774 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3775 define.
3776 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3777 (x86_64_linux_sigcontext_addr): Rewrite.
3778 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3779 x86_64_linux_frame_saved_pc): Remove functions.
3780 (x86_64_linux_pc_in_sigtramp): Renamed from
3781 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3782 trampoline.
3783 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3784 Remove_functions.
3785 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3786 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3787 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3788 (x86_64_regmap): Rename to regmap.
3789 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3790 x86_64_num_gregs.
3791 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3792 x86_64_regmap.
3793 (x86_64_fxsave_offset): Remove function.
3794 (supply_fpregset): Simply call x86_64_supply_fxsave.
3795 (fill_fpregset): Simply call x86_64_fill_fxsave.
3796 (fetch_inferior_registers, store_inferior_registers): Avoid
3797 asignment in if-statement.
3798 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3799 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3800 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3801 (fetch_core_registers): Remove function.
3802 (linux_elf_core_fns): Remove.
3803 (offsetoff): Don't define.
3804 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3805 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3806 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3807 add core-regset.o.
3808 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3809 protection against multiple includes instead of NM_X86_64_h. Add
3810 various comments. Include "config/nm-linux.h". Don't include
3811 <signal.h>.
3812 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3813 GET_THREAD_SIGNALS): Remove defines.
3814 (x86_64_register_u_addr, kernel_u_size,
3815 lin_thread_get_thread_signals): Remove prototypes.
3816 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3817 [HAVE_LINK_H]: Don't include "solib.h".
3818 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3819 * config/i386/tm-x86-64linux.h: Fix comments.
3820 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3821 x86-64-tdep.o): Update dependencies.
3822
c25083af
AC
38232003-05-30 Andrew Cagney <cagney@redhat.com>
3824
c8f55a7b
AC
3825 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3826 Change parameter type to a "struct regcache *".
3827
c25083af
AC
3828 * gdbarch.sh: Regardless of the multi-arch level, always define
3829 the macro when not already defined.
3830 * gdbarch.h, gdbarch.c: Re-generate.
3831
fbe586ae
RH
38322003-05-30 Richard Henderson <rth@redhat.com>
3833
3834 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3835 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3836 (alpha_mdebug_frame_this_id): Likewise.
3837 (alpha_mdebug_frame_prev_register): Likewise.
3838 (alpha_mdebug_frame_base_address): Likewise.
3839 (alpha_mdebug_frame_locals_address): Likewise.
3840 (alpha_mdebug_frame_args_address): Likewise.
3841 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3842 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3843 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3844 loop increment.
3845 (alpha_heuristic_frame_this_id): Make static.
3846 (alpha_heuristic_frame_prev_register): Likewise.
3847 (alpha_heuristic_frame_base_address): Likewise.
3848 * alpha-tdep.h: Update.
3849
acd5c798
MK
38502003-05-30 Mark Kettenis <kettenis@gnu.org>
3851
3852 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3853 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3854 defenitions.
3855 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3856 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3857 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3858 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3859 I386_ST0_REGNUM): New defines.
3860 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3861 codestream_get): Remove define.
3862 (codestream_next_addr, condestream_addr, condestream_buf,
3863 codestream_off, codestream_cnt): Remove variables.
3864 (codestream_fill, codestream_seek, codestream_read): Remove
3865 functions.
3866 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3867 functionality.
3868 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3869 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3870 i386_frame_saved_pc, i386_saved_pc_after_call,
3871 i386_frame_num_args, i386_frame_init_saved_regs,
3872 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3873 i386_push_arguments): Remove functions.
3874 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3875 functionality. Use i386_analyze_prologue instead of
3876 i386_get_frame_setup.
3877 (I386_NUM_SAVED_REGS): New define.
3878 (struct i386_frame_cache): New structure.
3879 (i386_alloc_frame_cache, i386_analyze_struct_return,
3880 i386_skip_probe, i386_analyze_frame_setup,
3881 i386_analyze_register_saves, i386_analyze_prologue,
3882 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3883 i386_frame_prev_register, i386_sigtramp_frame_cache,
3884 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3885 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3886 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3887 New functions.
3888 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3889 New variables.
3890 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3891 I386_EAX_REGNUM and I386_EDX_REGNUM.
3892 (i386_extract_return_value, i386_store_return_value): Use
3893 I386_ST0_REGNUM where appropriate.
3894 (i386_extract_struct_value_address): Rewrite to use extract_address.
3895 (i386_svr4_pc_in_sigtramp): Add comment.
3896 (i386_svr4_sigcontext_addr): Rewrite.
3897 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3898 TDEP->sc_sp_offset.
3899 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3900 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3901 of new defines. Set push_dummy_call, don't set
3902 deprecated_push_arguments, deprecated_push_return_address,
3903 deprecated_pop_frame. Don't set parm_boundary. Don't set
3904 deprecated_frame_chain, deprecated_frame_saved_pc,
3905 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3906 save_dummy_frame_tos, unwind_pc. Call
3907 frame_unwind_append_predicate and frame_base_set_default. Don't
3908 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3909 Don't set frameless_function_invocation. Don't set
3910 deprecated_register_bytes, deprecated_register_size,
3911 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3912 * i386-linux-tdep.c: Fix formatting in some comments.
3913 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3914 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3915 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3916 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3917 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3918 redundant parentheses.
3919 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3920 (i386_linux_sigcontext_addr): Use it. Rewrite.
3921 (find_minsym_and_objfile): Change name of second argument.
3922 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3923 changed. Use frame_pc_unwind instead of
3924 DEPRECATED_SAVED_PC_AFTER_CALL.
3925 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3926 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3927 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3928 unwinder.
3929 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3930 "dummy-frame.h".
3931 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3932 (_initialize_i386_cygwin_tdep): New prototype.
3933 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3934 deprecated_frame_chain_valid.
3935 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3936 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3937 Rely on the SVR4 defaults.
3938 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3939 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3940
c89b70f1
AC
39412003-05-30 Andrew Cagney <cagney@redhat.com>
3942
3943 * infcall.c (call_function_by_hand): Always call
3944 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3945
85b32d22
RH
39462003-05-30 Richard Henderson <rth@redhat.com>
3947
c89b70f1
AC
3948 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3949 increment.
85b32d22 3950
bfe51b1e
JB
39512003-05-29 Jim Blandy <jimb@redhat.com>
3952
3953 Use gdbarch methods for solib stuff on PowerPC Linux.
3954 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3955 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3956 show through.
3957 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3958 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3959 giving the same effect as the #definitions above.
3960
1abf022c
AF
39612003-05-29 Adam Fedor <fedor@gnu.org>
3962
3963 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3964 (find_implementation_from_class): Replace it with the standard
3965 case i.e. do nothing.
3966
d2427a71
RH
39672003-05-29 Richard Henderson <rth@redhat.com>
3968
3969 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3970 (alpha_linux_sigtramp_offset): Use it. Make static.
3971 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3972 update for new frame model.
3973 * alpha-mdebug-tdep.c: New file.
3974 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3975 (alpha_osf1_init_abi): Install it.
3976 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3977 (linked_proc_desc_table): Remove.
3978 (alpha_frame_past_sigtramp_frame): Remove.
3979 (alpha_dynamic_sigtramp_offset): Remove.
3980 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3981 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3982 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3983 (push_sigtramp_desc): Remove.
3984 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3985 (alpha_cannot_store_register): Likewise.
3986 (alpha_sigcontext_addr): Remove.
3987 (alpha_find_saved_regs): Remove.
3988 (alpha_frame_init_saved_regs): Remove.
3989 (alpha_init_frame_pc_first): Remove.
3990 (read_next_frame_reg): Remove.
3991 (alpha_frame_saved_pc): Remove.
3992 (alpha_saved_pc_after_call): Remove.
3993 (temp_proc_desc, temp_saved_regs): Remove.
3994 (alpha_about_to_return): Remove.
3995 (cached_proc_desc): Remove.
3996 (alpha_frame_chain): Remove.
3997 (alpha_print_extra_frame_info): Remove.
3998 (alpha_init_extra_frame_info): Remove.
3999 (alpha_frame_locals_address): Remove.
4000 (alpha_frame_args_address): Remove.
4001 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4002 (alpha_push_dummy_frame): Remove.
4003 (alpha_pop_frame): Remove.
4004 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4005 (alpha_read_insn): New.
4006 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4007 for different insn encodings.
4008 (alpha_in_lenient_prologue): Remove.
4009 (struct alpha_sigtramp_unwind_cache): New.
4010 (alpha_sigtramp_frame_unwind_cache): New.
4011 (alpha_sigtramp_register_address): New.
4012 (alpha_sigtramp_frame_this_id): New.
4013 (alpha_sigtramp_frame_prev_register): New.
4014 (alpha_sigtramp_frame_unwind): New.
4015 (alpha_sigtramp_frame_p): New.
4016 (struct alpha_heuristic_unwind_cache): New.
4017 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4018 don't count nop insns that occur between functions.
4019 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4020 heuristic_proc_desc, but without the mdebug wrapping.
4021 (alpha_heuristic_frame_this_id): New.
4022 (alpha_heuristic_frame_prev_register): New.
4023 (alpha_heuristic_frame_unwind): New.
4024 (alpha_heuristic_frame_p): New.
4025 (alpha_heuristic_frame_base_address): New.
4026 (alpha_heuristic_frame_base): New.
4027 (alpha_unwind_dummy_id): New.
4028 (alpha_unwind_pc): New.
4029 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4030 frame related deprecated initializations; install replacements.
4031 (alpha_dump_tdep): Remove.
4032 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4033 (alpha_read_insn, alpha_after_prologue,
4034 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4035 alpha_heuristic_frame_prev_register,
4036 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4037 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4038 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4039 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4040
93ec1121
AC
40412003-05-29 Andrew Cagney <cagney@redhat.com>
4042
4043 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4044 dependant on the availability of ASSERT_FUNCTION.
4045 (ASSERT_FUNCTION): Do not define when there is no function name.
4046
98f08d3d
KB
40472003-05-29 Kevin Buettner <kevinb@redhat.com>
4048
4049 From Jimi X <jimix@watson.ibm.com>:
4050 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4051
0897f59b
JB
40522003-05-28 Jim Blandy <jimb@redhat.com>
4053
4054 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4055 argument to ptrace to int; the system headers should give it the
4056 right type, and pointers don't fit in ints on powerpc64-*-*.
4057
14898363
L
40582003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4059
4060 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4061 DW_TAG_catch_block.
4062
a7a48797
EZ
40632003-05-26 Elena Zannoni <ezannoni@redhat.com>
4064
4065 * stabsread.c (dbx_lookup_type): Make static.
4066 (read_type): Ditto.
4067 (add_undefined_type): Ditto.
4068 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4069 not export.
4070
f5479e9c
EZ
40712003-05-26 Elena Zannoni <ezannoni@redhat.com>
4072
4073 * hpread.c (hpread_has_name): Make static.
4074 (hpread_psymtab_to_symtab): Ditto.
4075 (file_exists): Ditto.
4076 (hpread_call_pxdb): Ditto.
4077 (hpread_pxdb_needed): Ditto.
4078 (hpread_quick_traverse): Ditto.
4079 (hpread_get_header): Ditto.
4080 (hpread_get_lntt): Ditto.
4081 (hpread_get_slt): Ditto.
4082 (class_of): Ditto.
4083
eb2e12d7
AS
40842003-05-25 Andreas Schwab <schwab@suse.de>
4085
78bf922a
AS
4086 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4087 stack_align and deprecated_extra_stack_alignment_needed.
4088 (m68k_stack_align): Delete.
4089
eb2e12d7
AS
4090 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4091 (m68k_register_virtual_size): Likewise.
4092 (altos_skip_prologue): Remove obsolete function.
4093 (isi_frame_num_args): Likewise.
4094 (news_frame_num_args): Likewise.
4095 (m68k_fix_call_dummy): Make static.
4096 (m68k_push_dummy_frame): Likewise.
4097 (m68k_pop_frame): Likewise.
4098 (m68k_skip_prologue): Likewise.
4099 (m68k_frame_init_saved_regs): Likewise.
4100 (m68k_saved_pc_after_call): Likewise.
4101 (m68k_get_longjmp_target): Make multi-arch.
4102 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4103 structure. Register m68k_get_longjmp_target if enabled.
4104 * m68k-tdep.h (struct gdbarch_tdep): Define.
4105 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4106
4107 * Makefile.in (config.status): Also depend on configure.tgt
4108 and configure.host.
4109 (m68klinux-tdep.o): Update dependencies.
4110 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4111 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4112 (M68K_LINUX_JB_PC): Define.
4113 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4114 and take additional parameter.
4115 (m68k_linux_sigtramp_saved_pc): Update.
4116 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4117 m68k_linux_pc_in_sigtramp, in_plt_section,
4118 find_solib_trampoline_target.
4119 * config/m68k/tm-linux.h: Don't include any tm headers.
4120 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4121 (JB_ELEMENT_SIZE): Likewise.
4122 (JB_PC): Likewise.
4123 (GET_LONGJMP_TARGET): Likewise.
4124 (IN_SIGTRAMP): Likewise.
4125 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4126
eb2c22dc
MK
41272003-05-25 Mark Kettenis <kettenis@gnu.org>
4128
4129 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4130 (sparc32_push_arguments): Re-implement by calling
4131 sparc32_do_push_arguments.
4132
44b7b84e
MK
41332003-05-25 Mark Kettenis <kettenis@gnu.org>
4134
4135 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4136 SPARC_O1_REGNUM): New defines.
4137 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4138 (sparc32_store_return_value): New function.
4139 (sparc_extract_struct_value_address): Rewrite to operate on a
4140 regcache.
4141 (sparc_gdbarch_init): Don't set
4142 deprecated_extract_struct_value_address. Set
4143 extract_struct_value_address instead. Don't set
4144 deprecated_extract_return_value and deprecated_store_return_value
4145 for 32-bit targets. Set extract_return_value and
4146 store_return_value instead.
4147 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4148 DEPRECTAED_EXTRACT_RETURN_VALUE,
4149 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4150 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4151 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4152 (sparc_store_return_value): Remove prototype.
4153 (sparc32_store_return_value): New prototype.
4154 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4155 Adjust prototypes.
4156
f6ad61e3
MK
41572003-05-24 Mark Kettenis <kettenis@gnu.org>
4158
4159 * sparcnbsd-tdep.c: Include "gdb_string.h".
4160
b276f1bb
AC
41612003-05-23 Andrew Cagney <cagney@redhat.com>
4162
4163 * p-valprint.c (pascal_val_print): Replace extract_address with
4164 the inline equivalent extract_unsigned_integer.
4165 * jv-valprint.c (java_value_print): Ditto.
4166 * ada-valprint.c (ada_val_print_1): Ditto.
4167 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4168
e76c5fcc
TR
41692003-05-23 Theodore A. Roth <troth@openavr.org>
4170
4171 * blockframe.c (frameless_look_for_prologue): Remove unused
4172 after_prologue variable.
4173
2cdd89cb
MK
41742003-05-23 Mark Kettenis <kettenis@gnu.org>
4175
4176 * blockframe.c (get_pc_function_start): Rewrite to avoid
4177 asignments in if-statements.
4178
182d43bc
EZ
41792003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4180
4181 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4182 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4183 files, don't relocate absolute symbols (and do use mst_abs).
4184
e8f3fcdd
AC
41852003-05-23 Andrew Cagney <cagney@redhat.com>
4186
4187 * objc-lang.c: Include "gdb_assert.h".
4188 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4189 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4190 (gdb_check, gdb_check_fatal): Delete functions.
4191 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4192 gdb_assert.
4193 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4194 * Makefile.in (objc-lang.o): Update dependencies.
4195
3c23e6fb
ILT
41962003-05-22 Ian Lance Taylor <ian@airs.com>
4197
4198 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4199 with fprintf_filtered, not fprintf_unfiltered.
4200
af1342ab
AC
42012003-05-22 Andrew Cagney <cagney@redhat.com>
4202
4203 * stack.c (frame_info): Inline extract_address, replacing it with
4204 extract_unsigned_integer.
4205 * findvar.c (unsigned_pointer_to_address): Ditto.
4206 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4207 * dwarf2expr.c (dwarf2_read_address): Ditto.
4208 * frame.c (frame_pc_unwind): Update comment.
4209 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4210
47e242ec
JJ
42112003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4212
4213 * infptrace.c (detach): Call print_sys_errmsg rather than
4214 perror_with_name to issue warning message when errno is non-zero
4215 after calling ptrace detach.
4216
e2ac8128
JB
42172003-05-21 J. Brobecker <brobecker@gnat.com>
4218
4219 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4220 macro definitions from here...
4221 * hppa-tdep.c: ...to there.
4222
92b3541e
KB
42232003-05-20 Kevin Buettner <kevinb@redhat.com>
4224
4225 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4226 register_ptrace_addr(). Fix all callers.
4227
55809acb
AS
42282003-05-21 Andreas Schwab <schwab@suse.de>
4229
4230 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4231 dependencies.
4232 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4233 end.
4234 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4235 (_initialize_m68k_linux_tdep): New function.
4236 (m68k_linux_frame_saved_pc): Make static.
4237 (m68k_linux_extract_return_value): Likewise.
4238 (m68k_linux_store_return_value): Likewise.
4239 (m68k_linux_extract_struct_value_address): Likewise.
4240 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4241 Remove.
4242 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4243 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4244 (DEPRECATED_FRAME_SAVED_PC): Remove.
4245
0fbc10f7
KW
42462003-05-20 Kris Warkentin <kewarken@qnx.com>
4247
4248 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4249 regset numbering rather than our own.
4250
58da2eb2
DC
42512003-05-19 David Carlton <carlton@bactrian.org>
4252
4253 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4254
1fcb5155
DC
42552003-05-19 David Carlton <carlton@bactrian.org>
4256
4257 Partial fix for PR c++/827.
4258 * cp-support.h: Include symtab.h.
4259 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4260 * cp-namespace.c: Update contributors.
4261 (cp_lookup_symbol_nonlocal): New.
4262 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4263 (lookup_symbol_file): Ditto.
4264 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4265 * block.h: Declare block_scope, block_using, block_global_block.
4266 * block.c (block_scope): New.
4267 (block_using, block_global_block): Ditto.
4268 * Makefile.in (cp_support_h): Depend on symtab_h.
4269 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4270
5f9a71c3
DC
42712003-05-19 David Carlton <carlton@bactrian.org>
4272
4273 * language.h (struct language_defn): Add 'la_value_of_this'
4274 and 'la_lookup_symbol_nonlocal' members.
4275 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4276 lookup_symbol_static, lookup_symbol_global,
4277 lookup_symbol_aux_block.
4278 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4279 if we should search fields of this and how to do static/global
4280 lookup.
4281 (lookup_symbol_aux_block): Make extern.
4282 (basic_lookup_symbol_nonlocal): New.
4283 (lookup_symbol_static, lookup_symbol_global): Ditto.
4284 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4285 'la_lookup_symbol_nonlocal' members.
4286 * c-lang.c (c_language_defn, cplus_language_defn)
4287 (asm_language_defn, minimal_language_defn): Ditto.
4288 * jv-lang.c (java_language_defn): Ditto.
4289 * language.c (unknown_language_defn, auto_language_defn)
4290 (local_language_defn): Ditto.
4291 * m2-lang.c (m2_language_defn): Ditto.
4292 * objc-lang.c (objc_language_defn): Ditto.
4293 * scm-lang.c (scm_language_defn): Ditto.
4294 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4295 * p-lang.c (pascal_language_defn): Ditto for both.
4296 * Makefile.in (f-lang.o): Depend on value_h.
4297 (p-lang.o): Ditto.
4298
89a9d1b1
DC
42992003-05-19 David Carlton <carlton@bactrian.org>
4300
4301 * block.h: Declare block_static_block.
4302 * block.c (block_static_block): New.
4303 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4304 lookup_symbol_aux_local, calling block_static_block instead.
4305 (lookup_symbol_aux_local): Delete 'static_block' argument.
4306
eed3f8ab
DC
43072003-05-19 David Carlton <carlton@bactrian.org>
4308
4309 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4310
a09d8bda
ML
43112003-05-19 Michal Ludvig <mludvig@suse.cz>
4312
4313 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4314 register numbers mapping.
4315
69636828
AF
43162003-05-18 Adam Fedor <fedor@gnu.org>
4317
4318 * symtab.c (completion_list_objc_symbol): New function.
4319 (make_symbol_completion_list): Use it to add ObjC symbols
4320 when looking though the list.
4321 (language_search_unquoted_string): New function.
4322 (make_file_symbol_completion_list): Use it.
4323
55baeb84
AS
43242003-05-18 Andreas Schwab <schwab@suse.de>
4325
d0b45d99
AS
4326 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4327 dependencies.
4328 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4329 as m68k_linux_extract_return_value.
4330 (DEPRECATED_STORE_RETURN_VALUE): Define as
4331 m68k_linux_store_return_value.
4332 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4333 m68k_linux_extract_struct_value_address.
4334 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4335 get_next_frame, get_frame_base, get_frame_pc.
4336 (m68k_linux_frame_saved_pc): Use get_frame_base.
4337 (m68k_linux_extract_return_value): New function.
4338 (m68k_linux_store_return_value): New function.
4339 (m68k_linux_extract_struct_value_address): New function.
4340 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4341
55baeb84
AS
4342 * c-exp.y (typebase): Remove duplicate occurence of
4343 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4344 of lookup_signed_typename.
55baeb84 4345
b6b08ebf
MK
43462003-05-18 Mark Kettenis <kettenis@gnu.org>
4347
4348 * dwarf2loc.c (find_location_expression): Change type of second
4349 argument to `size_t *'.
4350 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4351 for size variable.
4352
5ad1c190
DC
43532003-05-18 David Carlton <carlton@bactrian.org>
4354
4355 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4356 'linkage_name'. Add comment.
4357 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4358 'linkage_name'.
4359 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4360 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4361 (lookup_block_symbol): Ditto.
4362
b8b527c5
AC
43632003-05-16 Andrew Cagney <cagney@redhat.com>
4364
4365 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4366 * gdbarch.h, gdbarch.c: Re-generate.
4367 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4368 * TODO (REGISTER_BYTES): Delete reference.
4369 * alpha-tdep.c (alpha_gdbarch_init): Update.
4370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4371 * x86-64-tdep.c (x86_64_init_abi): Update.
4372 * vax-tdep.c (vax_gdbarch_init): Update.
4373 * v850-tdep.c (v850_gdbarch_init): Update.
4374 * sparc-tdep.c (sparc_gdbarch_init): Update.
4375 * sh-tdep.c (sh_gdbarch_init): Update.
4376 * s390-tdep.c (s390_gdbarch_init): Update.
4377 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4378 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4379 (ns32k_gdbarch_init_32382): Update.
4380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4381 * mcore-tdep.c (mcore_gdbarch_init): Update.
4382 * m68k-tdep.c (m68k_gdbarch_init): Update.
4383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4384 * ia64-tdep.c (ia64_gdbarch_init): Update.
4385 * i386-tdep.c (i386_gdbarch_init): Update.
4386 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4387 * hppa-tdep.c (hppa_gdbarch_init): Update.
4388 * h8300-tdep.c (h8300_gdbarch_init): Update.
4389 * frv-tdep.c (frv_gdbarch_init): Update.
4390 * cris-tdep.c (cris_gdbarch_init): Update.
4391 * avr-tdep.c (avr_gdbarch_init): Update.
4392 * arm-tdep.c (arm_gdbarch_init): Update.
4393 * sparc-tdep.c (sparc_pop_frame): Update.
4394 * rs6000-tdep.c (rs6000_pop_frame): Update.
4395 * remote.c (init_remote_state): Update.
4396 (remote_prepare_to_store): Update.
4397 * remote-vx.c (vx_prepare_to_store): Update.
4398 * remote-sds.c (sds_fetch_registers): Update.
4399 (sds_prepare_to_store): Update.
4400 * remote-array.c: Update.
4401 * regcache.c (init_legacy_regcache_descr): Update.
4402 (init_regcache_descr): Update.
4403 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4404 (mips_o64_extract_return_value): Update.
4405 * irix5-nat.c (fetch_core_registers): Update.
4406 * irix4-nat.c (fetch_core_registers): Update.
4407 * i386-tdep.h: Update.
4408 * hppa-tdep.c (pa_do_registers_info): Update.
4409 (pa_do_strcat_registers_info): Update.
4410 * cris-tdep.c (cris_register_bytes_ok): Update.
4411 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4412 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4413 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4414 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4415 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4416 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4417 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4418 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4419 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4420 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4421 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4422 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4423 (REGISTER_BYTES_OK): Update.
4424 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4425 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4426
ee2842e2
ILT
44272003-05-16 Ian Lance Taylor <ian@airs.com>
4428
4429 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4430 (vax_print_insn, print_insn_arg): Remove static functions.
4431 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4432 print_insn_vax from opcodes library.
4433 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4434
973177d3
AC
44352003-05-15 Andrew Cagney <cagney@redhat.com>
4436
aaab4dba
AC
4437 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4438 * target.h (memory_breakpoint_from_pc): Delete declaration.
4439 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4440 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4441 * monitor.c (monitor_insert_breakpoint): Use
4442 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4443 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4444 * gdbarch.h, gdbarch.c: Re-generate.
4445 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4446 (sparc_gdbarch_init): Set breakpoint_from_pc to
4447 sparc_breakpoint_from_pc.
4448 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4449 (BREAKPOINT_FROM_PC): Define.
4450 (sparc_breakpoint_from_pc): Declare.
4451 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4452 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4453 (BREAKPOINT_FROM_PC): Define.
4454 (BREAKPOINT): Delete macro.
4455 * target.h: Update comment.
4456 * s390-tdep.c (s390_gdbarch_init): Update comments.
4457 * remote.c: Update comments.
4458 * remote-mips.c: Update comments.
4459 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4460 * mem-break.c: Update comment.
4461 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4462 (ia64_memory_insert_breakpoint): Update.
4463 * config/sparc/tm-sparc.h: Update comment.
4464 * config/pa/tm-hppa64.h: Update comment.
4465 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4466 (rs6000_breakpoint_from_pc): Update.
4467 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4468 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4469 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4470 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4471 (mips_breakpoint_from_pc): Update.
4472 (mips_dump_tdep): Update.
4473
e06963ff
AC
4474 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4475 * minsyms.c (lookup_minimal_symbol): Inline
4476 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4477
973177d3
AC
4478 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4479 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4480 * p-lang.c (pascal_printstr): Ditto.
4481 * objc-lang.c (objc_printstr): Ditto.
4482 * m2-lang.c (m2_printstr): Ditto.
4483 * jv-valprint.c (java_print_value_fields): Ditto.
4484 * f-lang.c (f_printstr): Ditto.
4485 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4486 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4487 for repeat_count_threshold.
4488 * Makefile.in (cp-valprint.o): Update dependencies.
4489
5ea2bd7f 44902003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4491
5ea2bd7f
JJ
4492 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4493 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4494 they start with mov r2,r12. Support skipping over indirect stores
4495 of the input registers. Upon hitting a non-nop branch instruction
4496 or predicated instruction, bail out by setting lim_pc to the current
4497 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4498 beyond our calculated value and we have trust_limit set,
4499 use the lim_pc value.
4500
cc8c88f3
AC
45012003-05-15 Andrew Cagney <cagney@redhat.com>
4502
4503 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4504 generic_find_dummy_frame.
4505 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4506 (deprecated_generic_find_dummy_frame): Update.
4507 (deprecated_read_register_dummy): Update.
4508 * frame.c (deprecated_generic_get_saved_register): Update.
4509
909cd28e
TR
45102003-05-15 Theodore A. Roth <troth@openavr.org>
4511
4512 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4513 (avr_gdbarch_init): Set breakpoint_from_pc method.
4514
b923b08d
AC
45152003-05-15 Andrew Cagney <cagney@redhat.com>
4516
4517 * regcache.c (build_regcache): Set deprecated_register_valid
4518 directly.
4519 (deprecated_grub_regcache_for_register_valid): Delete function.
4520 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4521 declaration.
4522
ae2f03ac 45232003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4524
4525 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4526 * symtab.c (lookup_symbol_aux): Delete calls to
4527 lookup_symbol_aux_minsyms.
4528 (lookup_symbol_aux_minsyms): Comment out function and
4529 prototype. Delete lookup by mangled name.
ae2f03ac 4530
18ec9831
KB
45312003-05-14 Kevin Buettner <kevinb@redhat.com>
4532
4533 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4534 correctly indicate an empty stack and ``stack_allocated'' to the
4535 indicate the number of elements initially allocated.
4536 (dwarf_expr_grow_stack): Simplify method for computing new
4537 stack size. Don't loop infinitely if ``stack_len'' is zero.
4538 (execute_stack_op): Move ``ctx->in_reg'' initialization
4539 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4540 be used in conjuction with DW_OP_piece. Revise error message
4541 accordingly.
4542
de18ac1f
TR
45432003-05-14 Theodore A. Roth <troth@openavr.org>
4544
4545 * MAINTAINERS: Update my email address.
4546 * avr-tdep.c: Ditto.
4547
176620f1
EZ
45482003-05-14 Elena Zannoni <ezannoni@redhat.com>
4549
4550 * symtab.h (enum domain_enum): Rename from namespace_enum.
4551 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4552 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4553 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4554 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4555 TYPES_NAMESPACE, METHODS_NAMESPACE.
4556 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4557 (struct symbol, struct partial_symbol): Rename field
4558 'namespace_enum namespace' to 'domain_enum domain'.
4559 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4560 Delete old define kludge for namespace.
4561
4562 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4563 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4564 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4565 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4566 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4567 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4568 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4569 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4570 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4571 occurrences of the above.
4572
b7f31508
ILT
45732003-05-14 Ian Lance Taylor <ian@airs.com>
4574
4575 * Makefile.in (install-only): Use $(SHELL) when running
4576 mkinstalldirs.
4577
2fdbdd39
ILT
45782003-05-13 Ian Lance Taylor <ian@airs.com>
4579
a208d82c
ILT
4580 * MAINTAINERS (write after approval): Add myself.
4581
2fdbdd39
ILT
4582 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4583 second and third arguments.
4584 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4585 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4586
fbd9dcd3
AC
45872003-05-13 Andrew Cagney <cagney@redhat.com>
4588
4589 * defs.h (store_address): Delete declaration.
4590 findvar.c (store_address): Delete function.
4591 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4592 store_unsigned_integer.
4593 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4594 * v850-tdep.c (v850_push_arguments): Ditto.
4595 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4596 * sh-tdep.c (sh64_get_saved_register): Ditto.
4597 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4598 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4599 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4600 (mips_get_saved_register): Ditto.
4601 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4602 (find_func_descr, ia64_push_arguments): Ditto.
4603 * i386-tdep.c (i386_push_arguments): Ditto.
4604 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4605 * frv-tdep.c (frv_push_arguments): Ditto.
4606 * frame.c (legacy_saved_regs_prev_register): Ditto.
4607 (deprecated_generic_get_saved_register): Ditto.
4608 * findvar.c (unsigned_address_to_pointer): Ditto.
4609 * dwarf2read.c (dwarf2_const_value): Ditto.
4610 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4611 * alpha-tdep.c (alpha_push_arguments): Ditto.
4612
6760f9e6
JB
46132003-05-12 J. Brobecker <brobecker@gnat.com>
4614
4615 * NEWS: Mention that the hppa-hpux port has been partially
4616 multiarched (32bit ABIT only, so far).
4617
30e221b4
AC
46182003-05-11 Andrew Cagney <cagney@redhat.com>
4619
4620 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4621 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4622 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4623 sim/testsuite/sim/arm/misaligned2.ms, and
4624 sim/testsuite/sim/arm/misaligned3.ms.
4625 * disasm.h (struct ui_file): Add opaque struct declaration.
4626 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4627 * frame.h (struct ui_file): Ditto.
4628
dea7f9ba
MK
46292003-05-11 Mark Kettenis <kettenis@gnu.org>
4630
4631 * value.h: Pretty print.
4632
01986c48
MK
46332003-05-10 Mark Kettenis <kettenis@gnu.org>
4634
4635 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4636
123a958e
AC
46372003-05-08 Andrew Cagney <cagney@redhat.com>
4638
4639 * regcache.h (max_register_size): Delete declaration.
4640 * regcache.c (max_register_size): Delete function.
4641 (struct regcache_descr): Delete field "max_register_size".
4642 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4643 registers fit in MAX_REGISTER_SIZE.
4644 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4645 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4646 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4647 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4648 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4649 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4650 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4651 * dve3900-rom.c, hppa-tdep.c: Ditto.
4652
eb294659
DC
46532003-05-08 David Carlton <carlton@math.stanford.edu>
4654
4655 * valops.c (push_word): Fix typo.
4656
d9d9c31f
AC
46572003-05-08 Andrew Cagney <cagney@redhat.com>
4658
4659 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4660 * gdbarch.h: Re-generate.
4661 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4662 (legacy_max_register_raw_size): Delete declaration.
4663 * regcache.c (legacy_max_register_raw_size): Delete function.
4664 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4665 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4666 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4667 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4668 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4669 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4670 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4671 * findvar.c, dwarf2cfi.c: Ditto.
4672
22540ece
AC
46732003-05-08 Andrew Cagney <cagney@redhat.com>
4674
4675 * mips-tdep.c (read_signed_register): New function, moved to here
4676 from "regcache.c".
4677 (read_signed_register_pid): Ditto.
4678 * regcache.c (read_signed_register_pid): Delete function, moved to
4679 "mips-tdep.c".
4680 (read_signed_register): Ditto.
4681 * regcache.h (read_signed_register): Delete declaration.
4682 (read_signed_register_pid): Delete declaration.
4683
0c92afe8
AC
46842003-05-08 Andrew Cagney <cagney@redhat.com>
4685
4686 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4687 * gdbarch.h: Re-generate.
4688 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4689 (legacy_max_register_virtual_size): Delete declaration.
4690 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4691 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4692 * tracepoint.c (memrange_sortmerge): Ditto.
4693 * sparc-tdep.c (sparc_print_registers): Ditto.
4694 * regcache.c (legacy_max_register_virtual_size): Delete function.
4695
6037b830
JB
46962002-05-08 J. Brobecker <brobecker@gnat.com>
4697
4698 * fork-child.c (escape_bang_in_quoted_argument): New function.
4699 (fork_inferior): Escape '!' characters in quoted arguments
4700 only when needed.
4701
5d62c8b1
JB
47022003-05-08 J. Brobecker <brobecker@gnat.com>
4703
4704 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4705 the language of the CU is not currently supported by GDB.
4706
20a0e81d
JB
47072003-05-08 J. Brobecker <brobecker@gnat.com>
4708
4709 * defs.h (language): Add language_minimal enum value.
4710 * c-lang.c (minimal_language_defn): New language definition.
4711 (_initialize_c_language): Add the new minimal language to the list
4712 of languages known to GDB.
4713
710ee10a
KB
47142003-05-08 Kevin Buettner <kevinb@redhat.com>
4715
4716 * frame.c (get_frame_type): Don't attempt to lazily initialize
4717 frame's unwinder for legacy frames.
4718
1750fa04
AC
47192003-05-07 Andrew Cagney <cagney@redhat.com>
4720
4721 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4722 and "regcache" parameters.
4723 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4724
ddf9f258 47252003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
4726
4727 * dwarf2read.c (dwarf_decode_lines): Only use output of
4728 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
4729 the current address.
4730
87767c29
AC
47312003-05-07 Andrew Cagney <cagney@redhat.com>
4732
4733 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4734 code.
4735
5e7b2f39
JB
47362003-05-07 Jim Blandy <jimb@redhat.com>
4737
4738 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4739 'maint info symtabs' and 'maint info psymtabs'.
4740 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4741 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4742 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4743 Declarations updated.
4744 * maint.c (maintenance_list_command): Delete.
4745 (_initialize_maint_cmds): Update calls to add_cmd.
4746 * gdbcmd.h (maintenancelistlist): Delete declaration.
4747 * cli/cli-cmds.c (maintenancelistlist): Delete.
4748 (init_cmd_lists): Don't initialize it.
4749 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4750
f6684c31
AC
47512003-05-07 Andrew Cagney <cagney@redhat.com>
4752
4753 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4754 "regcache".
4755 (d10v_print_registers_info): Update.
4756 (d10v_dmap_register, d10v_imap_register): Delete functions.
4757 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4758 and "imap_register".
4759 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4760 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4761 * arch-utils.c (generic_remote_translate_xfer_address): Add
4762 "regcache" and "gdbarch" parameters.
4763 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4764 parameter. Change class to multi-arch.
4765 * gdbarch.h, gdbarch.c: Re-generate.
4766 * remote.c (remote_xfer_memory): Use
4767 gdbarch_remote_translate_xfer_address.
8ffd9b1b 4768
e4846b08
JJ
47692003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4770
4771 * infrun.c (prev_pc): Move declaration ahead of proceed().
4772 (proceed): Refresh prev_pc value before resuming.
4773 (stop_stepping): Remove code to refresh prev_pc.
4774
6b71b8ac
KW
47752003-05-06 Kris Warkentin <kewarken@qnx.com>
4776
4777 * nto-tdep.c: Removed stray comment.
4778
47979a4b
KW
47792003-05-06 Kris Warkentin <kewarken@qnx.com>
4780
4781 * i386-nto-tdep.c: Fix old K&R function definitions.
4782 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4783 Also change add_show_from_set() call to add_setshow_cmd().
4784 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4785
00905d52
AC
47862003-05-05 Andrew Cagney <cagney@redhat.com>
4787
4788 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4789 (fprint_dummy_frames): New function.
4790 (maintenance_print_dummy_frames): New function.
4791 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4792 * frame.c (fprint_frame_id): Make global.
4793 * frame.h (fprint_frame_id): Declare.
4794 * Makefile.in (dummy-frame.o): Update dependencies.
4795
b1e29e33
AC
47962003-05-05 Andrew Cagney <cagney@redhat.com>
4797
4798 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4799 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4800 SIZEOF_CALL_DUMMY_WORDS.
4801 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4802 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4803 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4804 CALL_DUMMY_BREAKPOINT_OFFSET.
4805 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4806 CALL_DUMMY_START_OFFSET.
4807 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4808 * gdbarch.h, gdbarch.c: Re-generate.
4809 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4810 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4811 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4812 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4813 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4814 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4815 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4816 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4817 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4818 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4819 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4820 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4821 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4822 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4823 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
4824
48252003-05-05 Kris Warkentin <kewarken@qnx.com>
4826
4827 * configure.tgt: Add i[3456]86-*-nto*.
4828 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4829 * nto-tdep.c: New file. Neutrino target support routines.
4830 * nto-tdep.h: New file. Neutrino target header.
4831 * config/tm-qnxnto.h: New file.
4832 * config/i386/i386nto.mt: New file.
4833 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 4834
0ce3d317
AC
48352003-05-04 Andrew Cagney <cagney@redhat.com>
4836
4837 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4838 (load_infrun_state): Ditto.
4839 (struct thread_info): Drop "prev_func_name" field.
4840 * thread.c (load_infrun_state): Update.
4841 (save_infrun_state): Update.
4842 * infrun.c (prev_func_name): Delete variable.
4843 (init_wait_for_inferior): Do not clear prev_func_name.
4844 (stop_stepping, keep_going, context_switch): Do not swap
4845 prev_func_name.
4846 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4847 instead of PC_IN_SIGTRAMP.
4848
46654a5b
AC
48492003-05-04 Andrew Cagney <cagney@redhat.com>
4850
4851 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4852 REGISTER_BYTE with register_offset_hack.
4853 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4854 that REGISTER_BYTE is consistent with the regcache.
4855 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4856 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 4857
14b08c1b
MK
48582003-05-04 Mark Kettenis <kettenis@gnu.org>
4859
04c8243f
MK
4860 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4861 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4862
14b08c1b
MK
4863 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4864
c7a11e01
JB
48652003-05-03 J. Brobecker <brobecker@gnat.com>
4866
4867 From Thierry Schneider <tpschneider1@yahoo.com>
4868 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4869 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4870 (mi-cmd-symbol.o): Add rule.
4871
7043d8dc
AC
48722003-05-03 Andrew Cagney <cagney@redhat.com>
4873
4874 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4875 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4876 * gdbarch.h, gdbarch.c: Re-generate.
4877 * d10v-tdep.c (d10v_push_dummy_code): New function.
4878 (d10v_gdbarch_init): Set push_dummy_code.
4879 * infcall.c (legacy_push_dummy_code): New function.
4880 (generic_push_dummy_code): New function.
4881 (push_dummy_code): New function.
4882 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4883 instead of dummy_addr, to push_dummy_call. Move call to
4884 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4885 switch.
4886 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4887
92bf2b80
AC
48882003-05-03 Andrew Cagney <cagney@redhat.com>
4889
4890 * disasm.h (print_insn): Declare.
4891 * disasm.c (init_gdb_disassemble_info): New function.
4892 (gdb_disassembly): Call init_gdb_disassemble_info.
4893 (gdb_print_insn): New function.
4894 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4895 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4896 * mcore-tdep.c: Include "disasm.h"
4897 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4898 * d10v-tdep.c: Include "disasm.h".
4899 (display_trace): Call gdb_print_insn, instead of print_insn.
4900 (print_insn): Delete function.
4901 * printcmd.c: Include "disasm.h".
4902 (print_insn): Delete function.
4903 (print_formatted): Call gdb_print_insn, instead of print_insn.
4904 * Makefile.in (printcmd.o): Update dependencies.
4905 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 4906
27d94c49
AC
49072003-05-02 Andrew Cagney <cagney@redhat.com>
4908
82de1e5b
AC
4909 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4910 PC_REGNUM, re-indent.
4911 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4912 PC_REGNUM isn't set.
4913
27d94c49
AC
4914 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4915 * gdbarch.h, gdbarch.c: Re-generate.
4916 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4917 register_virtual_size, pc_regnum, or register_bytes.
4918 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4919 (d10v_register_type): Use D10V_PC_REGNUM.
4920 (d10v_print_registers_info, d10v_read_pc): Ditto.
4921 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4922 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4923
a9c0dc7f
DC
49242003-05-02 David Carlton <carlton@bactrian.org>
4925
4926 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4927 the name with mstrsave.
4928
e33d66ec
EZ
49292003-05-02 Elena Zannoni <ezannoni@redhat.com>
4930
4931 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4932 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4933 (host_charset_name, target_charset_name): New vars for use by
4934 set/show commands.
4935 (host_charset_enum, target_charset_enum): New enums for set/show
4936 commands.
4937 (set_charset_sfunc, set_host_charset_sfunc,
4938 set_target_charset_sfunc): New functions.
4939 (set_host_charset, set_target_charset): Make static.
4940 (list_charsets, set_host_charset_command,
4941 set_target_charset_command): Delete functions.
4942 (show_charset_command): Rewrite as....
4943 (show_charset): Hook this up with the set/show command mechanism.
4944 (_initialize_charset): Change names of charsets to match the
4945 set/show enums. Use host_charset_name and target_charset_name.
4946 Use set/show mechanism for charset, host-charset, target-charset
4947 commands. Do not make 'show host-charset' and 'show
4948 target-charset' be aliases of 'show charset'.
4949
4950 * charset.h (set_host_charset, set_target_charset): Don't export,
4951 they are not used outside the file.
4952
2b6fd0d8
AC
49532003-05-01 Andrew Cagney <cagney@redhat.com>
4954
4955 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4956 (gdb_disassembly): Make "di" non static, always initialize and
4957 cleanup. Always use dis_asm_read_memory.
4958 (gdb_dis_asm_read_memory): Delete function.
4959
6ae2f580
AC
49602003-05-01 Andrew Cagney <cagney@redhat.com>
4961
4962 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4963 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4964
810ecf9f
AC
49652003-04-30 Andrew Cagney <cagney@redhat.com>
4966
4967 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4968 "tm_print_insn_info".
4969 (TARGET_PRINT_INSN_INFO): Delete macro.
4970 (dis_asm_read_memory): Delete function declaration.
4971 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4972 (tm_print_insn_info): Delete variable definition.
4973 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4974 * gdbarch.h, gdbarch.c: Re-generate.
4975 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4976 "deprecated_tm_print_insn_info".
4977 * mcore-tdep.c (mcore_dump_insn): Ditto.
4978 * mips-tdep.c (mips_gdbarch_init): Ditto.
4979 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4980 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4981 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4982 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4983 instead of TARGET_PRINT_INSN_INFO, add comment.
4984 * s390-tdep.c (s390_get_frame_info): Instead of
4985 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4986 (s390_check_function_end, s390_is_sigreturn): Ditto.
4987 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4988 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4989 * disasm.c: Include "gdbcore.h".
4990 (_initialize_disasm): New function, initialize
4991 "deprecated_tm_print_insn_info".
4992 (deprecated_tm_print_insn_info): New variable.
4993 (dis_asm_read_memory): Moved from "corefile.c", made static.
4994 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4995 * Makefile.in (disasm.o): Update dependencies.
4996
07020390
AC
49972003-04-30 Andrew Cagney <cagney@redhat.com>
4998
4999 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5000
a9fa03de
AF
50012003-04-29 Adam Fedor <fedor@gnu.org>
5002
5003 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5004 * infcall.c (find_function_addr): Make non-static.
5005 * infcall.h (find_function_addr): Declare.
5006 * Makefile.in (eval.o): Update dependencies.
5007
1bae87b9
AF
50082003-04-28 Adam Fedor <fedor@gnu.org>
5009
5010 * symtab.c (symbol_find_demangled_name): Check for and demangle
5011 ObjC symbols.
5012 (symbol_init_demangled_name): Init for language_objc as well.
5013
0ba6dca9
AC
50142003-04-28 Andrew Cagney <cagney@redhat.com>
5015
5016 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5017 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5018 * gdbarch.h, gdbarch.c: Re-generate.
5019 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5020 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5021 * inferior.h (deprecated_read_fp): Rename read_fp.
5022 (generic_target_read_fp): Delete declaration.
5023 * regcache.c (generic_target_read_fp): Delete function.
5024 (deprecated_read_fp): Replace read_fp, use
5025 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5026 * d10v-tdep.c (d10v_read_fp): Delete function.
5027 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5028
5029 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5030 deprecated_target_read_fp to generic_target_read_fp.
5031 * sh-tdep.c (sh_gdbarch_init): Ditto.
5032 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5034 * frv-tdep.c (frv_gdbarch_init): Ditto.
5035
5036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5037 deprecated_fp_regnum.
5038 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5039 * vax-tdep.c (vax_gdbarch_init): Ditto.
5040 * v850-tdep.c (v850_gdbarch_init): Ditto.
5041 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5042 * sh-tdep.c (sh_gdbarch_init): Ditto.
5043 * s390-tdep.c (s390_gdbarch_init): Ditto.
5044 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5045 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5047 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5049 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5050 * i386-tdep.c (i386_gdbarch_init): Ditto.
5051 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5052 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5053 * frv-tdep.c (frv_gdbarch_init): Ditto.
5054 * cris-tdep.c (cris_gdbarch_init): Ditto.
5055 * avr-tdep.c (avr_gdbarch_init): Ditto.
5056 * arm-tdep.c (arm_gdbarch_init): Ditto.
5057 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5058
5059 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5060 * v850-tdep.c (v850_gdbarch_init): Ditto.
5061 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5062 * sh-tdep.c (sh_gdbarch_init): Ditto.
5063 * s390-tdep.c (s390_gdbarch_init): Ditto.
5064 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5065 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5066 * mips-tdep.c (mips_gdbarch_init): Ditto.
5067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5068 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5069 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5070 * frv-tdep.c (frv_gdbarch_init): Ditto.
5071 * avr-tdep.c (avr_gdbarch_init): Ditto.
5072 * arm-tdep.c (arm_gdbarch_init): Ditto.
5073
5074 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5075 DEPRECATED_FP_REGNUM.
5076 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5077 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5078 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5079 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5080 (sparc32_register_virtual_type): Ditto.
5081 * sh-tdep.c (sh64_frame_chain): Ditto.
5082 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5083 (sh_nofp_frame_init_saved_regs): Ditto.
5084 (sh64_nofp_frame_init_saved_regs): Ditto.
5085 (sh_fp_frame_init_saved_regs): Ditto.
5086 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5087 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5088 * procfs.c (procfs_fetch_registers): Ditto.
5089 (procfs_store_registers): Ditto.
5090 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5091 (store_inferior_registers, fetch_core_registers): Ditto.
5092 (fetch_kcore_registers, clear_regs): Ditto.
5093 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5094 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5095 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5096 * nlm/i386.c (do_status): Ditto.
5097 * mipsv4-nat.c (supply_gregset): Ditto.
5098 * mips-tdep.c: Ditto for comments.
5099 * mips-nat.c (fetch_inferior_registers): Ditto.
5100 (store_inferior_registers, fetch_core_registers): Ditto.
5101 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5102 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5103 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5104 (i386_do_pop_frame, i386_register_type): Ditto.
5105 * hppa-tdep.c (hppa_frame_chain): Ditto.
5106 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5107 (hppa_pop_frame, hppa_read_fp): Ditto.
5108 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5109 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5110 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5111 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5112 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5113 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5114 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5115 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5116 * blockframe.c: Ditto for comments.
5117 * arch-utils.h: Ditto for comments.
5118 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5119 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5120 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5121 * alpha-tdep.h: Ditto for comments.
5122 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5123 (alpha_cannot_store_register): Ditto.
5124 (alpha_push_dummy_frame): Ditto.
5125 * alpha-nat.c (supply_gregset): Ditto.
5126
5127 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5128 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5129 * config/sparc/tm-sparc.h: Update comment.
5130
5131 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5132 deprecated_read_fp instead of TARGET_READ_FP.
5133 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5134 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5135 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5136 deprecated_read_fp instead of read_fp.
5137 * s390-tdep.c (s390_push_arguments): Ditto.
5138 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5139 * frame.h: Ditto in comments.
5140 * frame.c (legacy_get_prev_frame): Ditto.
5141 * dummy-frame.c (dummy_frame_this_id): Ditto.
5142 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5143
d7a27068
AC
51442003-04-28 Andrew Cagney <cagney@redhat.com>
5145
5146 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5147 * gdbarch.h, gdbarch.c: Re-generate.
5148 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5149 * vax-tdep.c (_initialize_vax_tdep): Update.
5150 * v850-tdep.c (_initialize_v850_tdep): Update.
5151 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5152 * s390-tdep.c (_initialize_s390_tdep): Update.
5153 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5154 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5155 * mips-tdep.c (_initialize_mips_tdep): Update.
5156 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5157 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5158 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5159 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5160 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5161 * frv-tdep.c (_initialize_frv_tdep): Update.
5162 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5163 (_initialize_cris_tdep): Update.
5164 * arch-utils.c (legacy_print_insn): Update.
5165 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5166
d2630e69
AF
51672003-04-26 Adam Fedor <fedor@gnu.org>
5168
5169 * linespec.c (decode_objc): New function to decode ObjC calls
5170 (decode_line_1): Check for ObjC calls (using decode_objc)
5171 * Makefile (linespec.o): Update dependencies.
5172
3086aeae
DJ
51732003-04-26 Daniel Jacobowitz <drow@mvista.com>
5174
5175 * breakpoint.h (struct breakpoint_ops): New.
5176 (struct breakpoint): Add ops member.
5177
5178 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5179 (mention): Use new breakpoint ops member.
5180 (set_raw_breakpoint): Initialize ops field to NULL.
5181 (print_exception_catchpoint, print_one_exception_catchpoint)
5182 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5183 (gnu_v3_exception_catchpoint_ops): New.
5184 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5185
1fbec6c3
AF
51862003-04-25 Adam Fedor <fedor@gnu.org>
5187
5188 * Makefile.in (COMMON_OBS): Add objc-lang.o
5189
0ef21242
AC
51902003-04-25 Andrew Cagney <cagney@redhat.com>
5191
5192 * d10v-tdep.c (print_insn): Delete function.
5193 (display_trace): Use TARGET_PRINT_INSN.
5194 (_initialize_d10v_tdep): Do not set tm_print_insn.
5195 (d10v_gdbarch_init): Set print_insn.
5196
f75493ed
AC
51972003-04-25 Andrew Cagney <cagney@redhat.com>
5198
5199 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5200 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5201 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5202 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5203 (nr_dmap_regs, a0_regnum): ... new functions.
5204 (d10v_print_registers_info): Use a0_regnum, use register_size.
5205 (d10v_register_byte): Delete function.
5206 (d10v_register_raw_size): Delete function.
5207 (d10v_register_type): Use a0_regnum.
5208 (d10v_print_registers_info): Use a0_regnum.
5209 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5210 (d10v_gdbarch_init): Do not set register_byte or
5211 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5212 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5213 extract_address.
5214 (trace_command): Use XCALLOC.
5215 (print_insn): Delete reference to tm_print_insn.
5216 (saved_regs_unwinder): Use store_unsigned_integer instead of
5217 store_address.
5218 * frame.h (FRAME_OBSTACK_CALLOC): Define
5219
2202b100
DC
52202003-04-25 David Carlton <carlton@bactrian.org>
5221
5222 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5223
4e45ca2e
AF
52242003-04-24 Adam Fedor <fedor@gnu.org>
5225
5226 * objc-lang.c: Include "valprint.h"
5227 * Makefile.in (objc-lang.o): Update dependencies.
5228
93de3e7f
AF
52292003-04-24 Adam Fedor <fedor@gnu.org>
5230
8ffd9b1b 5231 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5232 architecture dependant compilation and mark as unimplemented
5233 (until they get put in the gdbarch vector).
5234
0f20eeea
DC
52352003-04-23 David Carlton <carlton@bactrian.org>
5236
5237 * cp-support.c (cp_find_first_component): Accept 'operator' in
5238 more locations.
5239
74cfe982
AC
52402003-04-23 Andrew Cagney <cagney@redhat.com>
5241
5242 * infcall.c (call_function_by_hand): Eliminate redundant
5243 indentation. Move "saved_async" and "old_cleanups" to where they
5244 are needed.
8ffd9b1b 5245
52557533
AC
52462003-04-23 Andrew Cagney <cagney@redhat.com>
5247
5248 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5249 and "buffer". Move the "name" code to where it is needed.
5250
158775de
AC
52512003-04-23 Andrew Cagney <cagney@redhat.com>
5252
5253 * infcall.c (call_function_by_hand): Move variables "start_sp",
5254 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5255 code to ON_STACK switch branch.
8ffd9b1b 5256
ebc7896c
AC
52572003-04-23 Andrew Cagney <cagney@redhat.com>
5258
5259 * infcall.c (call_function_by_hand): Make declaration of "i",
5260 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5261 lint.
5262
d727590f
AC
52632003-04-23 Andrew Cagney <cagney@redhat.com>
5264
5265 * infcall.c (call_function_by_hand): Delete variable
5266 "n_method_args". Localize "param_type"'s declaration to the loop
5267 that it is used. Reinstate code assigning to said variable -
5268 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5269 Rationalize code using "param_type".
5270
d585e13a
AC
52712003-04-22 Andrew Cagney <cagney@redhat.com>
5272
5273 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5274 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5275 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5276 to DEPRECATED_PUSH_RETURN_ADDRESS.
5277
051caad9
KB
52782003-04-22 Kevin Buettner <kevinb@redhat.com>
5279
5280 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5281 on the DWARF2 register number prior to fetching a register.
5282
77296879
JB
52832003-04-22 J. Brobecker <brobecker@gnat.com>
5284
5285 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5286 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5287 this macro was always set to 0.
77296879
JB
5288 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5289 considering the fact that this macro was always set to 0.
5290 * hppa-tdep.h (hppa_store_return_value): Likewise.
5291 (hppa_extract_return_value): Likewise.
5292
4252f1df
JB
52932003-04-22 J. Brobecker <brobecker@gnat.com>
5294
5295 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5296 the hppa-pro target only.
5297
14604c6b
JB
52982003-04-21 J. Brobecker <brobecker@gnat.com>
5299
5300 Ongoing multi-arch conversion effort for HP/UX:
5301 * config/pa/tm-hppa.h: Move all macro that are no longer
5302 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5303 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5304
77eb01d1
JB
53052003-04-21 J. Brobecker <brobecker@gnat.com>
5306
5307 * config/pa/tm-hppa.h: Obsolete a section that was only used
5308 for hppa-pro.
5309
61995b3b
JB
53102003-04-21 J. Brobecker <brobecker@gnat.com>
5311
5312 Ongoing multi-arch conversion for HP/UX.
5313 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5314 if already defined (allows hppa64 to stay non-multiarched for now).
5315 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5316
4aa79dcc
AC
53172003-04-21 Andrew Cagney <cagney@redhat.com>
5318
5319 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5320
0f751ff2
AC
53212003-04-21 Andrew Cagney <cagney@redhat.com>
5322
5323 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5324 "i386_num_mmx_regs".
5325
04714b91
AC
53262003-04-21 Andrew Cagney <cagney@redhat.com>
5327
5328 * infcall.c: New file.
5329 * infcall.h: New file.
5330 * valarith.c: Include "infcall.h".
5331 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5332 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5333 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5334 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5335 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5336 (SFILES): Add "infcall.c"
5337 (COMMON_OBS): Add "infcall.o".
5338 (infcall.o): Specify dependencies.
5339 * value.h (call_function_by_hand): Delete declaration.
5340 * inferior.h (run_stack_dummy): Delete declaration.
5341 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5342 (run_stack_dummy): Move to "infcall.c", merged into
5343 call_function_by_hand.
5344 * valops.c (call_function_by_hand): Moved to "infcall.c".
5345 (find_function_addr, value_arg_coerce): Ditto.
5346 (unwindonsignal_p, coerce_float_to_double): Ditto.
5347 (_initialize_valops): Move "set/show coerce-float-to-double", and
5348 "set/show unwindonsignal" commands to "infcall.c".
5349 * v850-tdep.c, target.h: Update comments.
5350 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5351 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5352 (sh64_init_extra_frame_info): Update comments.
5353 * mn10300-tdep.c: Update comments.
5354 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5355 * config/sparc/tm-sparc.h: Update comments.
5356 * breakpoint.h: Update comments.
5357 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5358 * arm-tdep.c: Update comment.
5359
f9d3c2a8
MK
53602003-04-19 Mark Kettenis <kettenis@gnu.org>
5361
c40e1eab
MK
5362 * i386-tdep.c (i386_num_register_names): New variable.
5363 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5364 (MM0_REGNUM): Remove redundant parentheses in define.
5365 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5366 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5367 i386_mxcsr_regnum_p): Remove redundant parentheses.
5368 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5369
94ea66b3
MK
5370 * i386-tdep.c (i386_extract_return_value,
5371 i386_store_return_value): Correct check for availability of
5372 floating-point registers.
5373
54299a1d
MK
5374 * i386-tdep.c (i386_frame_num_args): Remove function.
5375 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5376
c86c27af
MK
5377 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5378 mmx_regnum_to_fp_regnum. Adjust all callers.
5379
f9d3c2a8
MK
5380 * i386-tdep.c (i386_get_longjmp_target): Use
5381 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5382 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5383 extract_address.
5384
94ba74a9
MK
53852003-04-19 Mark Kettenis <kettenis@gnu.org>
5386
5387 * core-regset.c: Update comments to reflect reality. Re-order
5388 includes.
5389 (fetch_core_registers): Use switch instead of if. Remove
5390 redundant prototype.
5391
4074e13c
JB
53922003-04-18 Jim Blandy <jimb@redhat.com>
5393
5394 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5395 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5396
e3ab4aba
RH
53972003-04-17 Richard Henderson <rth@redhat.com>
5398
5399 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5400
627bf7c1
EZ
54012003-04-17 Michael Snyder <msnyder@redhat.com>
5402 Karen Bennet <bennet@redhat.com>
5403
5404 Committed by Elena Zannoni <ezannoni@redhat.com>
5405 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5406
514621a9
EZ
54072003-04-17 Elena Zannoni <ezannoni@redhat.com>
5408
5409 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5410 value if the return type is void.
514621a9 5411
b4acd559
JJ
54122003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5413
5414 * thread-db.c: Reindented.
8ffd9b1b 5415
530b167e 54162003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5417
5418 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5419 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5420 as types.
5421
0a48e7e8
MS
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
8ffd9b1b 5445
ab9fe00e
KB
54462003-04-16 Kevin Buettner <kevinb@redhat.com>
5447
610a3745 5448 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5449 the size of ``long double'' to 16, instead of 8.
5450
e64a344c
MK
54512003-04-16 Mark Kettenis <kettenis@gnu.org>
5452
5453 * i386-linux-nat.c: Add some whitespace to make things more
5454 readable.
5455 (fetch_register, store_register, fetch_inferior_registers,
5456 store_inferior_registers): Get rid of assignment in if-statement.
5457 (store_register): Fix typo in error message.
5458
25d41031
AC
54592003-04-16 Andrew Cagney <cagney@redhat.com>
5460
5461 * utils.c (xmmalloc): Always allocate something, matches
5462 libiberty/xmalloc's semantics.
5463 (xmrealloc, xmcalloc): Ditto.
5464
c50901fd
AC
54652003-04-16 Andrew Cagney <cagney@redhat.com>
5466
5467 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5468 update comments.
5469 (get_frame_type): Initialize unwind and type when needed.
5470 (get_frame_id, frame_register_unwind): Ditto.
5471
f81824a9
AC
54722003-04-16 Andrew Cagney <cagney@redhat.com>
5473
5474 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5475 obsolete.
5476 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5477 * sparcl-stub.c: Obsolete file.
5478 * config/sparc/tm-sparclet.h: Obsolete file.
5479 * sparclet-stub.c: Obsolete file.
5480 * sparclet-rom.c: Obsolete file.
5481 * sparcl-tdep.c: Obsolete file.
5482 * config/sparc/tm-sparclite.h: Obsolete file.
5483 * config/sparc/sparclite.mt: Obsolete file.
5484 * config/sparc/sparclet.mt: Obsolete file.
5485 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5486 sparc86x-*-* obsolete.
5487
9219021c
DC
54882003-04-15 David Carlton <carlton@math.stanford.edu>
5489
5490 * Makefile.in (SFILES): Add cp-namespace.c.
5491 (COMMON_OBS): Add cp-namespace.o.
5492 (block.o): Depend on gdb_obstack_h and cp_support_h.
5493 (buildsym.o): Depend on cp_support_h.
5494 (cp-namespace.o): New.
5495 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5496 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5497 (dwarf2read.o): Depend on cp_support_h.
5498 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5499 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5500 processing_current_namespace.
5501 (read_namespace): Update processing_current_namespace; check for
5502 anonymous namespaces.
5503 (dwarf2_name): New function.
5504 (dwarf2_extension): Ditto.
5505 * cp-support.h: Update copyright, contributors.
5506 Add inclusion guards.
5507 Add opaque declaration for structs obstack, block, symbol.
5508 (struct using_direct): New struct.
5509 Add declarations for cp_find_first_component,
5510 cp_entire_prefix_len, processing_has_namespace_info,
5511 processing_current_namespace, cp_is_anonymous,
5512 cp_add_using_directive, cp_initialize_namespace,
5513 cp_finalize_namespace, cp_set_block_scope,
5514 cp_scan_for_anonymous_namespaces.
5515 * cp-namespace.c: New file.
5516 * cp-support.c: Update copyright.
5517 Include ctype.h, gdb_assert.h, gdbcmd.h.
5518 New variable maint_cplus_cmd_list.
5519 (cp_find_first_component): New function.
5520 (cp_entire_prefix_len, maint_cplus_command)
5521 (first_component_command, _initialize_cp_support): Ditto.
5522 * buildsym.c: Include cp-support.h.
5523 New variable using_list.
5524 (add_symbol_to_list): Check for anonymous namespaces.
5525 (finish_block): Set block's scope.
5526 (start_symtab): Initialize C++ namespace support.
5527 (end_symtab): Finalize C++ namespace support.
5528 * block.h: Add opaque declarations for structs
5529 block_namespace_info, using_direct, and obstack.
5530 Add declarations for block_set_scope and block_set_using.
5531 (struct block): Add 'language_specific' member.
5532 (BLOCK_NAMESPACE): New macro.
5533 * block.c: Include gdb_obstack.h and cp-support.h.
5534 (struct block_namespace_info): New struct.
5535 (block_set_scope): New function.
5536 (block_set_using, block_initialize_namespace): Ditto.
5537
d5a921c9
KB
55382003-04-14 Kevin Buettner <kevinb@redhat.com>
5539
5540 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5541 (locate_base): Return early if there aren't any link map offsets.
5542 (svr4_solib_create_inferior_hook): Warn if shared library support
5543 is unavailable.
5544
d2a52b27
DC
55452003-04-14 David Carlton <carlton@math.stanford.edu>
5546
5547 * symtab.c (symbol_set_names): Add prefix when storing Java names
5548 in hash table. Fix for PR java/1039.
5549
980cae7a
DC
55502003-04-14 David Carlton <carlton@math.stanford.edu>
5551
5552 * symtab.c (symbol_set_names): Rename 'name' arg to
5553 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5554 * symtab.h: Change 'name' argument in declaration of
5555 symbol_set_names to 'linkage_name'.
5556 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5557
e227b13c
AC
55582003-04-14 Andrew Cagney <cagney@redhat.com>
5559
5560 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5561 return the fully sign-extended register value.
5562 (get_frame_pointer): Ditto.
5563 (mips_pop_frame): Initialize "proc_desc" after checking for a
5564 dummy frame.
5565
36712a20
AC
55662003-04-14 Andrew Cagney <cagney@redhat.com>
5567
5568 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5569 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5570 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5571 (mips_push_register): Delete function.
5572 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5573 PUSH_FP_REGNUM.
5574
44ea7b70
JB
55752003-04-14 Jim Blandy <jimb@redhat.com>
5576
5577 * symmisc.c: #include "gdb_regex.h".
5578 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5579 functions.
5580 * maint.c (maintenance_list_command): New function.
5581 (_initialize_maint_cmds): Register the above as commands.
5582 * symtab.h (maintenance_list_symtabs,
5583 maintenance_list_psymtabs): New declarations.
5584 * cli/cli-cmds.c (maintenancelistlist): New variable.
5585 (init_cmd_lists): Initialize it.
5586 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5587 * gdbcmd.h (maintenancelistlist): New declaration.
5588 * Makefile.in (symmisc.o): Update dependencies.
5589
2d0c7962
EZ
55902003-04-14 Elena Zannoni <ezannoni@redhat.com>
5591
5592 * s390-nat.c: Include asm/types.h for addr_t.
5593
1947a811
CV
55942003-04-14 Corinna Vinschen <vinschen@redhat.com>
5595
5596 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5597 actually incoming type.
5598
adb616d7
AC
55992003-04-13 Andrew Cagney <cagney@redhat.com>
5600
5601 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5602 get_next_frame and get_frame_saved_regs.
5603
9b5e151c
AC
56042003-04-13 Andrew Cagney <cagney@redhat.com>
5605
5606 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5607 of gdbarch_num_regs.
5608
ef6e7e13
AC
56092003-04-13 Andrew Cagney <cagney@redhat.com>
5610
5611 * frame.h: Mention what replaced what in "struct frame_info".
5612 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5613 deprecated_update_frame_base_hack and
5614 deprecated_update_frame_pc_hack.
5615 * hppa-tdep.c: Ditto.
5616
61fbb938
DJ
56172003-04-13 Daniel Jacobowitz <drow@mvista.com>
5618
5619 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5620 to read_reg and update its comment. Remove regnum member.
5621 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5622 Don't call read_reg when setting in_reg. Call read_reg to get
5623 the frame base if it's in a register. Return the register number
5624 on the stack instead of in the context. Remove extra arguments
5625 to read_reg.
5626 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5627 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5628 the register number on the expression stack.
5629 (needs_frame_read_reg): Remove extra arguments.
5630
0d53c4c4
DJ
56312003-04-13 Daniel Jacobowitz <drow@mvista.com>
5632
5633 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5634 made non-static.
5635 (execute_stack_op): All callers updated.
5636 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5637 * dwarf2loc.c (find_location_expression): New function.
5638 (dwarf_expr_frame_base): Call it.
5639 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5640 (dwarf2_tracepoint_var_ref): New function, broken out from
5641 locexpr_tracepoint_var_ref.
5642 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5643 Make static.
5644 (loclist_read_variable, loclist_read_needs_frame): New functions.
5645 (loclist_describe_location, loclist_tracepoint_var_ref): New
5646 functions.
5647 (dwarf2_loclist_funcs): New struct location_funcs.
5648 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5649 (struct dwarf2_locexpr_baton): Add comments.
5650 (dwarf2_loclist_funcs): New extern.
5651 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5652 base_address and base_known.
5653 (dwarf_loc_buffer): New variable.
5654 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5655 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5656 (dwarf2_has_info): Initialize dwarf_loc_offset.
5657 (dwarf2_build_psymtabs): Read in .debug_loc.
5658 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5659 DWARF_LOC_SIZE.
5660 (psymtab_to_symtab_1): Likewise. Move base address calculation
5661 here, from...
5662 (dwarf2_get_pc_bounds): ... here. Use the base address from
5663 cu_header.
5664 (dwarf2_symbol_mark_computed): Handle location lists.
5665
6aca59a3
DJ
56662003-04-13 Daniel Jacobowitz <drow@mvista.com>
5667
5668 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5669 if the linkage name demangled successfully.
5670
aca1fcd0
MK
56712003-04-13 Mark Kettenis <kettenis@gnu.org>
5672
97095916
MK
5673 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5674 disassmbly_flavour): Removed.
5675
aca1fcd0
MK
5676 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5677
562a961f
MK
56782003-04-13 Mark Kettenis <kettenis@gnu.org>
5679
5680 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5681
bd013d54
AC
56822003-04-12 Andrew Cagney <cagney@redhat.com>
5683
5684 * frame.h (struct frame_info): Move definition from here ...
5685 * frame.c (struct frame_info): ... to here.
5686
167ef8b1
AC
56872003-04-12 Andrew Cagney <cagney@redhat.com>
5688
5689 * gdbthread.h (save_infrun_state): Delete parameter
5690 "prev_func_start".
5691 (struct thread_info): Delete field "prev_func_start".
5692 (load_infrun_state): Ditto.
5693 * thread.c (load_infrun_state, save_infrun_state): Update.
5694 * infrun.c (prev_func_start): Delete variable.
5695 (context_switch, init_wait_for_inferior): Update.
5696 (stop_stepping, keep_going): Update.
5697
da3331ec
AC
56982003-04-12 Andrew Cagney <cagney@redhat.com>
5699
5700 * gdbarch.sh: Add missing opaque declarations.
5701 * gdbarch.h: Regnerate.
5702 * symtab.h: Add missing opaque declarations.
5703 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5704 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5705 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5706 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5707 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5708 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5709 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5710 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5711 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5712 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5713 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5714 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5715 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5716
18adea3f
AC
57172003-04-11 Andrew Cagney <cagney@redhat.com>
5718
5719 * frame.c (get_frame_id): Return this frame's "id".
5720 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5721 function start.
5722 (legacy_saved_regs_this_id): Replace function body with
5723 internal-error.
5724 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5725 FRAME_OBSTACK_ZALLOC.
5726 (create_new_frame): Mark the frame ID as valid.
5727
2252e863
AO
57282003-04-11 Alexandre Oliva <aoliva@redhat.com>
5729
5730 * Makefile.in (libbfd_h): Added missing setting.
5731 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5732 according to the selected ABI.
5733
a8245ab8
JJ
57342003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5735
5736 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5737
6913c89a
AC
57382003-04-11 Andrew Cagney <cagney@redhat.com>
5739
5740 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5741 SAVED_PC_AFTER_CALL.
5742 * gdbarch.h, gdbarch.c: Regenerate.
5743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5744 * x86-64-tdep.c (x86_64_init_abi): Update.
5745 * vax-tdep.c (vax_gdbarch_init): Update.
5746 * v850-tdep.c (v850_gdbarch_init): Update.
5747 * sparc-tdep.c (sparc_gdbarch_init): Update.
5748 * sh-tdep.c (sh_gdbarch_init): Update.
5749 * s390-tdep.c (s390_gdbarch_init): Update.
5750 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5751 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5752 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5753 * mips-tdep.c (mips_gdbarch_init): Update.
5754 * mcore-tdep.c (mcore_gdbarch_init): Update.
5755 * m68k-tdep.c (m68k_gdbarch_init): Update.
5756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5757 * ia64-tdep.c (ia64_gdbarch_init): Update.
5758 (ia64_saved_pc_after_call): Update declaration.
5759 * i386ly-tdep.c (i386lynx_init_abi): Update.
5760 * i386-tdep.c (i386_gdbarch_init): Update.
5761 * hppa-tdep.c (hppa_gdbarch_init): Update.
5762 * h8300-tdep.c (h8300_gdbarch_init): Update.
5763 * frv-tdep.c (frv_gdbarch_init): Update.
5764 * cris-tdep.c (cris_gdbarch_init): Update.
5765 * avr-tdep.c (avr_gdbarch_init): Update.
5766 * arm-tdep.c (arm_gdbarch_init): Update.
5767 * alpha-tdep.c (alpha_gdbarch_init): Update.
5768 * ns32knbsd-nat.c (frame_num_args): Update.
5769 * ns32k-tdep.c (umax_frame_num_args): Update.
5770 * mips-tdep.c (mips_init_frame_pc_first): Update.
5771 * infrun.c (step_over_function): Update.
5772 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5773 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5774 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5775 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5776 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5777 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5778 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5779 * arch-utils.c (init_frame_pc_default): Update.
5780 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5781 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5782 declaration.
8ffd9b1b 5783
38edeab8
AC
57842003-04-11 Andrew Cagney <cagney@redhat.com>
5785
5786 * i387-tdep.c: Update copyright.
5787 (i387_to_double): Delete function.
5788 (double_to_i387): Delete function.
5789
81f8a206
AC
57902003-04-10 Andrew Cagney <cagney@redhat.com>
5791
5792 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5793 frame's function's address. Simplify.
5794 (d10v_frame_unwind_cache): Check that the frame's function is
5795 non-zero.
5796
6e691f7a
JB
57972003-04-10 Jim Blandy <jimb@redhat.com>
5798
5799 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5800 call to set_gdbarch_deprecated_push_arguments.
5801
7f78e237
AC
58022003-04-10 Andrew Cagney <cagney@redhat.com>
5803
5804 * frame.c (fprint_frame_id): New function.
5805 (fprint_frame_type, fprint_frame): New function.
5806 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5807 (create_sentinel_frame, get_frame_id): Ditto.
5808 (frame_id_p, frame_id_eq): Ditto.
5809 (frame_id_inner, create_new_frame): Ditto.
5810 (legacy_get_prev_frame, get_prev_frame): Ditto.
5811 (deprecated_update_frame_pc_hack): Ditto.
5812 (frame_register_unwind): Ditto.
5813 (deprecated_update_frame_base_hack): Ditto.
5814
f870b49b
CV
58152003-04-10 Corinna Vinschen <vinschen@redhat.com>
5816
5817 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5818 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5819 frame_chain function.
5820 * Makefile.in: Add dependencies due to above change.
5821
7c86889b
CV
58222003-04-10 Corinna Vinschen <vinschen@redhat.com>
5823
5824 * blockframe.c (legacy_frame_chain_valid): Move call to
5825 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5826 inside_entry_file.
5827
d0a55772
AC
58282003-04-09 Andrew Cagney <cagney@redhat.com>
5829
5830 * frame.h (struct frame_id): Replace "pc" and "base" with
5831 "stack_addr" and "code_addr". Update comments.
5832 (frame_id_build): Update parameter names and comment.
5833 (struct frame_info): Replace "id_p" and "id" with "this_id".
5834 * dummy-frame.c (dummy_frame_this_id): Update.
5835 * breakpoint.c (print_one_breakpoint): Update.
5836 * frame.c (get_frame_id): Update.
5837 (get_frame_base, frame_id_build): Update.
5838 (create_sentinel_frame, legacy_get_prev_frame): Update.
5839 (deprecated_update_frame_base_hack): Update.
5840 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5841 (frame_id_inner): Ditto.
5842
ac16bf07
AC
58432003-04-09 Andrew Cagney <cagney@redhat.com>
5844
5845 * defs.h (gdb_print_host_address): Make "addr" parameter a
5846 pointer constant.
5847 * utils.c (gdb_print_host_address): Update.
5848
366cfc9e
KB
58492003-04-09 Kevin Buettner <kevinb@redhat.com>
5850
5851 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5852 register number for R0 is 0.
5853
cd983b5c
JB
58542003-04-09 J. Brobecker <brobecker@gnat.com>
5855
5856 * frame.h (struct gdbarch): Add opaque structure definition
5857 to avoid a compilation warning on LynxOS 4.0.
5858
d1340264
AC
58592003-04-09 Andrew Cagney <cagney@redhat.com>
5860
5861 * frame.h (struct frame_info): Delete field "pc". Replace
5862 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5863 structure.
5864 * frame.c (frame_pc_unwind): Update.
5865 (create_sentinel_frame): Do not set "pc".
5866 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5867 (get_frame_pc): Call frame_pc_unwind.
5868 (deprecated_update_frame_pc_hack): Update.
5869 (create_new_frame): Use "pc" not "->pc".
5870
90a6fffb
AC
58712003-04-09 Andrew Cagney <cagney@redhat.com>
5872
5873 * frame.c (get_frame_id): Eliminate code updating "frame".
5874 (legacy_get_prev_frame): Ditto.
5875 (get_frame_base): Return id.base directly.
5876 (deprecated_update_frame_base_hack): Update "id.base".
5877 * frame.h (struct frame_info): Delete field "frame".
5878
2fbce691
AC
58792003-04-09 Andrew Cagney <cagney@redhat.com>
5880
5881 * NEWS: Mention that the "Sequent family" is obsolete.
5882 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5883 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5884 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5885 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5886 * config/i386/tm-ptx4.h: Obsolete file.
5887 * config/i386/tm-ptx.h: Obsolete file.
5888 * symm-tdep.c: Obsolete file.
5889 * config/i386/symmetry.mt: Obsolete file.
5890 * config/i386/tm-symmetry.h: Obsolete file.
5891 * symm-nat.c: Obsolete file.
5892 * config/i386/nm-symmetry.h: Obsolete file.
5893 * config/i386/xm-symmetry.h: Obsolete file.
5894 * config/i386/symmetry.mh: Obsolete file.
5895 * config/i386/nm-ptx4.h: Obsolete file.
5896 * config/i386/ptx4.mh: Obsolete file.
5897 * config/i386/ptx.mt: Obsolete file.
5898 * config/i386/ptx.mh: Obsolete file.
5899 * config/i386/xm-ptx4.h: Obsolete file.
5900 * config/i386/xm-ptx.h: Obsolete file.
5901
78c43945
AC
59022003-04-09 Andrew Cagney <cagney@redhat.com>
5903
5904 Obsolete mips*-*-mach3*.
5905 * NEWS: Mention that mips*-*-mach3* is obsolete.
5906 * m3-nat.c: Obsolete file.
5907 * config/nm-m3.h: Obsolete file.
5908 * config/mips/tm-mipsm3.h: Obsolete file.
5909 * config/mips/mipsm3.mt: Obsolete file.
5910 * config/mips/mipsm3.mh: Obsolete file.
5911 * config/mips/xm-mipsm3.h: Obsolete file.
5912 * mipsm3-nat.c: Obsolete file.
5913 * configure.host: Obsolete mips-dec-mach3*.
5914 * configure.tgt: Obsolete mips*-*-mach3*.
5915
f1908289
AC
59162003-04-09 Andrew Cagney <cagney@redhat.com>
5917
5918 * doublest.h: Update copyright.
5919 (deprecated_store_floating, deprecated_extract_floating): Rename
5920 store_floating and extract_floating. Update comments.
5921 * doublest.c: Update copyright.
5922 (extract_floating_by_length): Replace extract_floating.
5923 (store_floating_by_length): Replace store_floating.
5924 (deprecated_extract_floating): New function.
5925 (deprecated_store_floating): New function.
5926 (extract_typed_floating): Call extract_floating_by_length.
5927 (store_typed_floating): Call store_floating_by_length.
5928 * x86-64-tdep.c (x86_64_store_return_value): Update.
5929 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5930 (sh64_extract_return_value): Update.
5931 (sh_sh4_register_convert_to_virtual): Update.
5932 (sh_sh64_register_convert_to_virtual): Update.
5933 (sh_sh4_register_convert_to_raw): Update.
5934 (sh_sh64_register_convert_to_raw): Update.
5935 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5936 (rs6000_register_convert_to_raw): Update.
5937 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5938 (ia64_register_convert_to_raw): Update.
5939 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5940 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5941 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5942 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5943 (alpha_register_convert_to_raw): Update.
5944
4443bd83
AC
59452003-04-08 Andrew Cagney <cagney@redhat.com>
5946
5947 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5948 * gdbarch.h, gdbarch.c: Re-generate.
5949 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5950 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5951 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5952 conditionally, use frame_pc_unwind as an alternative. Add
5953 comments.
5954 * arch-utils.c (init_frame_pc_default): Only call
5955 SAVED_PC_AFTER_CALL when available.
5956
c0236d92
EZ
59572003-04-08 Elena Zannoni <ezannoni@redhat.com>
5958
fbe586ae 5959 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5960 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5961 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5962 (start_remote): Ditto.
5963 (handle_inferior_event): Ditto.
5964 (save_inferior_status): Ditto.
5965 (restore_inferior_status): Ditto.
5966 * infcmd.c (attach_command): Ditto.
5967 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5968 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5969 * alpha-tdep.c (heuristic_proc_start): Ditto.
5970 * mips-tdep.c (heuristic_proc_start): Ditto.
5971 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5972 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5973 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5974 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5975 * remote-vx.c (vx_create_inferior): Ditto.
5976
59772003-04-08 Elena Zannoni <ezannoni@redhat.com>
5978
5979 * infrun.c (stop_soon_quietly): Make it an enum, to better
5980 override the default behavior of handle_inferior_event.
5981 (clear_proceed_status): Update uses of stop_soon_quietly to
5982 reflect that it is now an enum.
5983 (start_remote): Ditto.
5984 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5985 is set to handle the new GNU/Linux kernel behavior for
5986 attach/sigstop. Update uses of stop_soon_quietly.
5987 * inferior.h (enum stop_kind): New enum.
5988 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5989 Reset normal handle_inferior_event behavior, afterwards.
5990 * fork-child.c (startup_inferior): Update.
5991 * alpha-tdep.c (heuristic_proc_start): Update.
5992 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5993 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5994 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5995 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5996 * remote-vx.c (vx_create_inferior): Update.
5997 * mips-tdep.c (heuristic_proc_start): Update.
5998
1211bce3
EZ
59992003-04-07 Elena Zannoni <ezannoni@redhat.com>
6000
6001 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6002 be freed more than once, causing wild memory corruptions.
1211bce3 6003 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6004 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6005 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6006 with the "core" target.
1211bce3 6007
f0ef6b29
KB
60082003-04-07 Kevin Buettner <kevinb@redhat.com>
6009
6010 * mips-tdep.c (mips_print_fp_register): New function, created from
6011 do_fp_register_row(). Registers are now (also) printed as hex.
6012 Only one register is printed per row.
6013 (mips_print_register, do_fp_register_row): Print floating point
6014 registers with mips_print_fp_register().
6015
8cf71652
AC
60162003-04-06 Andrew Cagney <cagney@redhat.com>
6017
5e488a7b
AC
6018 * valprint.h (inspect_it): Add extern declaration.
6019 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6020 (selectors_info, classes_info): Ditto.
6021 (find_objc_msgcall): Fix indentation.
6022 (objc_printstr): Delete extern declarations.
6023
8cf71652
AC
6024 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6025
e6ba3bc9
AC
60262003-04-06 Andrew Cagney <cagney@redhat.com>
6027
6028 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6029 Update comment.
6030 * frame.c (legacy_saved_regs_this_id): Update.
6031 (legacy_get_prev_frame): Update.
6032 * xstormy16-tdep.c: Update comment.
6033 * sparc-tdep.c (sparc_frame_chain): Update comment.
6034 * blockframe.c (legacy_frame_chain_valid): Update.
6035
55e1d7e7
AC
60362003-04-06 Andrew Cagney <cagney@redhat.com>
6037
996179ee
AC
6038 * valprint.c (val_print_type_code_int): Delete #ifdef
6039 PRINT_TYPELESS_INTEGER code.
6040
55e1d7e7
AC
6041 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6042 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6043 multi-arch definition.
6044 * gdbarch.h: Re-generate.
6045
43bd9a9e
AC
60462003-04-05 Andrew Cagney <cagney@redhat.com>
6047
6048 Eliminate FRAME_FIND_SAVED_REGS.
6049 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6050 Change FSR parameter to a pointer.
6051 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6052 Assume FSR parameter is a pointer.
6053 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6054 Make fsr a pointer.
6055 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6056 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6057 saved_regs a pointer.
6058 (hppa_frame_saved_pc): Ditto.
6059 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6060 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6061 pointer.
6062 (restore_pc_queue): Make fsr a pointer.
6063 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6064 (hppa_frame_chain): Make saved_regs a pointer, call
6065 hppa_frame_init_saved_regs.
6066 * sparc-tdep.c: Include "gdb_assert.h".
6067 (sparc_frame_find_saved_regs): Replace internal_error with
6068 gdb_assert.
6069 * remote-vxsparc.c (vx_read_register): Delete reference to
6070 FRAME_FIND_SAVED_REGS.
6071 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6072 * gdbarch.h: Regenerate.
6073 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6074 (deprecated_get_frame_saved_regs): Delete declaration.
6075 (struct frame_saved_regs): Delete definition.
6076 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6077 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6078 (hppa_frame_find_saved_regs): Delete declaration.
6079 (FRAME_FIND_SAVED_REGS): Delete macro.
6080 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6081 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6082 FRAME_FIND_SAVED_REGS in comment.
6083
be41e9f4
AC
60842003-04-05 Andrew Cagney <cagney@redhat.com>
6085
6086 * frame.c (frame_func_unwind, get_frame_func): New functions.
6087 * frame.h (get_frame_func, frame_func_unwind): Declare.
6088 (struct frame_info): Add field "prev_func" for caching the
6089 previous frame's function address.
6090 * arm-tdep.c (arm_frameless_function_invocation): Combine
6091 get_pc_function_start and get_frame_pc into get_frame_func.
6092 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6093 (sh64_nofp_frame_init_saved_regs): Ditto.
6094 * s390-tdep.c (s390_function_start): Ditto.
6095 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6096 (rs6000_frameless_function_invocation): Ditto.
6097 (rs6000_frame_saved_pc): Ditto.
6098 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6099 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6100 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6101 (i386_frame_init_saved_regs): Ditto.
6102 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6103 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6104 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6105 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6106 * blockframe.c (frameless_look_for_prologue): Ditto.
6107
a01dd7cc
AC
61082003-04-05 Andrew Cagney <cagney@redhat.com>
6109
6110 * frame.c (legacy_get_prev_frame): Link prev to next at the
6111 function start. Update comments.
6112
5e5592e6
AC
61132003-04-05 Andrew Cagney <cagney@redhat.com>
6114
6115 * frame.c (get_frame_id): Update comment.
6116 (legacy_get_prev_frame): Update comment.
6117 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6118 * gdbarch.h: Regenerate.
6119 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6120 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6121
6fba5002
AC
61222003-04-05 Andrew Cagney <cagney@redhat.com>
6123
6124 * stack.c (print_frame_info): Use get_frame_pc.
6125
7df05f2b
AC
61262003-04-04 Andrew Cagney <cagney@redhat.com>
6127
6128 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6129 the frame's type from the unwinder.
6130 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6131 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6132 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6133 (get_frame_base_address): Use get_frame_type.
6134 (get_frame_locals_address, get_frame_args_address): Ditto.
6135 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6136 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6137 (struct frame_info): Add comment explaining why the frame contains
6138 a "type" field.
6139 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6140 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6141 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6142 NORMAL_FRAME.
6143 * frame-unwind.h: Include "frame.h".
6144 (struct frame_unwind): Add "type" field.
6145 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6146
11889732
AC
61472003-04-04 Andrew Cagney <cagney@redhat.com>
6148
6149 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6150 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6151 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6152 get_frame_base.
6153 (d10v_unwind_dummy_id): Use frame_id_build.
6154 * frame.c (find_frame_sal): Use get_frame_pc.
6155 (create_new_frame): Use deprecated_update_frame_pc_hack and
6156 deprecated_update_frame_base_hack.
6157 (create_sentinel_frame): Add comment about ->pc going away.
6158 (get_prev_frame): Add comment about ->pc going away.
6159 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6160 frame_id_build, deprecated_update_frame_pc_hack and
6161 deprecated_update_frame_base_hack.
6162 (select_frame): Use get_frame_pc.
6163 (legacy_saved_regs_this_id): Use frame_id_build.
6164
50c46a0d
EZ
61652003-04-04 Elena Zannoni <ezannoni@redhat.com>
6166
fbe586ae
RH
6167 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6168 signed integer case.
6169 (classify_argument): Handle enumerations and references.
50c46a0d 6170
50bbdbd9
AC
61712003-04-04 Andrew Cagney <cagney@redhat.com>
6172
6173 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6174 ID to NULL.
6175
36018d2e
AF
61762003-04-01 Adam Fedor <fedor@gnu.org>
6177
6178 * gdb/objc-lang.c (selectors_info): Replace calls to
6179 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6180 SYMBOL_NATURAL_NAME.
6181 (classes_info, find_methods): Likewise.
6182
35cec841
KB
61832003-04-03 Kevin Buettner <kevinb@redhat.com>
6184
6185 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6186 ``mach'' to the value determined by bfd_default_set_arch_mach().
6187
43136899
BR
61882003-04-02 Bob Rossi <bob_rossi@cox.net>
6189
6190 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6191 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6192 (mi-cmd-file.o): Update dependencies.
6193
040b99fd
KB
61942003-04-01 Kevin Buettner <kevinb@redhat.com>
6195
6196 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6197 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6198
9a3d7dfd
AF
61992003-04-01 Adam Fedor <fedor@gnu.org>
6200
6201 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6202 * language.h (struct language_defn): Add la_demangle.
6203 (language_demangle): Declare.
6204 * language.c (language_demangle): New function.
6205 (unk_lang_demangle): Likewise.
6206 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6207 Add ukn_lang_demangle.
9a3d7dfd 6208 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6209 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6210 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6211 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6212 * jv-lang.c (java_demangle): New function
6213 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6214 * objc-lang.c (objc_demangle): Add options argument
6215 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6216 * maint.c (maintenance_demangle): Replace switch with
6217 call to language_demangle.
6218 * utils.c (fprintf_symbol_filtered): Likewise.
6219
5e074003
AC
62202003-04-01 Andrew Cagney <cagney@redhat.com>
6221
6222 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6223 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6224 PRINT_TYPELESS_INTEGER.
6225 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6226 PUSH_RETURN_ADDRESS.
6227
270cb5d6
AC
62282003-04-01 Andrew Cagney <cagney@redhat.com>
6229
6230 * Makefile.in (d10v-tdep.o): Update dependencies.
6231 * d10v-tdep.c: Include "frame-base.h".
6232 (d10v_frame_unwind): Make constant.
6233 (d10v_frame_base_address): New function.
6234 (d10v_frame_base): New variable.
6235 (d10v_gdbarch_init): Set frame_base default.
6236 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6237 comment for base.
6238 (d10v_frame_unwind_cache): Set and use "prev_sp".
6239 (d10v_frame_this_id): Use the previous frame's inner most stack
6240 address and this frame's func address for the frame ID. Use
6241 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6242
6bfb3e36
AC
62432003-04-01 Andrew Cagney <cagney@redhat.com>
6244
6245 * frame.h (get_frame_locals_address, get_frame_args_address):
6246 Refer to the base address, instead of the address of the first
6247 local or parameter.
8ffd9b1b 6248
da62e633
AC
62492003-04-01 Andrew Cagney <cagney@redhat.com>
6250
6251 Add frame debug info addresses:
6252 * frame-base.c: New file.
6253 * frame-base.h: New file.
6254 * frame.h (struct frame_base): Add opaque declaration.
6255 (get_frame_base): Update comment.
6256 (get_frame_base_address): Declare.
6257 (get_frame_locals_address): Declare.
6258 (get_frame_args_address): Declare.
6259 (struct frame_info): Add "base" and "base_cache". Update
6260 comments on the unwinder.
6261 * frame.c: Include "frame-base.h".
6262 (get_frame_locals_address): New function.
6263 (get_frame_base_address): New function.
6264 (get_frame_args_address): New function.
6265 * findvar.c (read_var_value): Use get_frame_locals_address and
6266 get_frame_args_address.
6267 * stack.c (frame_info): Use get_frame_locals_address and
6268 get_frame_args_address.
6269 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6270 moved to "frame-base.c".
6271 * printcmd.c (print_frame_nameless_args): Ditto.
6272 * symtab.h (address_class): Update comments.
6273 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6274 get_frame_base_address.
6275 * dwarf2expr.c (execute_stack_op): Ditto.
6276 * Makefile.in (frame_base_h): Define.
6277 (frame.o): Update dependencies.
6278 (frame-base.o): Add dependencies.
6279 (SFILES): Add frame-base.c.
6280 (COMMON_OBS): Add frame-base.o.
6281
3d30e9c2
AC
62822003-04-01 Andrew Cagney <cagney@redhat.com>
6283
6284 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6285 CALL_DUMMY_LENGTH): Ditto.
6286 * gdbarch.c: Re-generate.
6287 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6288 (CALL_DUMMY_LENGTH): Delete macro.
6289 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6290 * arm-tdep.c (arm_gdbarch_init): Ditto.
6291 * avr-tdep.c (avr_gdbarch_init): Ditto.
6292 * cris-tdep.c (cris_gdbarch_init): Ditto.
6293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6294 * frv-tdep.c (frv_gdbarch_init): Ditto.
6295 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6296 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6297 * i386-tdep.c (i386_gdbarch_init): Ditto.
6298 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6300 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6301 * mips-tdep.c (mips_gdbarch_init): Ditto.
6302 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6304 * s390-tdep.c (s390_gdbarch_init): Ditto.
6305 * sh-tdep.c (sh_gdbarch_init): Ditto.
6306 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6307 * v850-tdep.c (v850_gdbarch_init): Ditto.
6308 * vax-tdep.c (vax_gdbarch_init): Ditto.
6309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6310
ce0c7262
CV
63112003-04-01 Corinna Vinschen <vinschen@redhat.com>
6312
6313 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6314
73dd234f
AC
63152003-04-01 Andrew Cagney <cagney@redhat.com>
6316
6317 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6318 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6319 * gdbarch.h, gdbarch.c: Re-generate.
6320 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6321 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6322 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6323 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6324 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6325 * infcmd.c (run_stack_dummy): Simplify assuming
6326 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6327 * infrun.c (handle_inferior_event): Ditto.
6328 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6329 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6330 * arm-tdep.c (arm_gdbarch_init): Ditto.
6331 * avr-tdep.c (avr_gdbarch_init): Ditto.
6332 * cris-tdep.c (cris_gdbarch_init): Ditto.
6333 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6334 * frv-tdep.c (frv_gdbarch_init): Ditto.
6335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6336 * i386-tdep.c (i386_gdbarch_init): Ditto.
6337 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6339 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6340 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6341 * mips-tdep.c (mips_gdbarch_init): Ditto.
6342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6343 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6345 * s390-tdep.c (s390_gdbarch_init): Ditto.
6346 * sh-tdep.c (sh_gdbarch_init): Ditto.
6347 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6348 * v850-tdep.c (v850_gdbarch_init): Ditto.
6349 * vax-tdep.c (vax_gdbarch_init): Ditto.
6350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6351
97606a13
DJ
63522003-04-01 Daniel Jacobowitz <drow@mvista.com>
6353
6354 * symfile.c (symfile_relocate_debug_section): Update call to
6355 bfd_simple_get_relocated_section_contents.
6356
e8ab51f7
AC
63572003-03-31 Andrew Cagney <cagney@redhat.com>
6358
6359 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6360 * gdbarch.h, gdbarch.c: Regenerate.
6361 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6362 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6363 available.
6364 * frame.h (generic_fix_call_dummy): Delete declaration.
6365 * dummy-frame.h: Update comment.
6366 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6367 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6368 fix_call_dummy.
6369 * sh-tdep.c (sh_gdbarch_init): Ditto.
6370 * s390-tdep.c (s390_gdbarch_init): Ditto.
6371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6372 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6375 * i386-tdep.c (i386_gdbarch_init): Ditto.
6376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6377 * frv-tdep.c (frv_gdbarch_init): Ditto.
6378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6379 * cris-tdep.c (cris_gdbarch_init): Ditto.
6380 * avr-tdep.c (avr_gdbarch_init): Ditto.
6381 * arm-tdep.c (arm_gdbarch_init): Ditto.
6382
018d1b48
JB
63832003-03-31 J. Brobecker <brobecker@gnat.com>
6384
6385 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6386 (INIT_FRAME_AP): Likewise.
6387 (EXTRA_FRAME_INFO): Likewise.
6388
e9a2674e
AC
63892003-03-31 Andrew Cagney <cagney@redhat.com>
6390
6391 * gdbarch.sh: Include "symfile.h".
6392 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6393 * gdbarch.h, gdbarch.c: Re-generate.
6394 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6396 call_dummy_address, the default is at entry_point_address.
6397 * v850-tdep.c (v850_gdbarch_init): Ditto.
6398 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6399 * sh-tdep.c (sh_gdbarch_init): Ditto.
6400 * s390-tdep.c (s390_gdbarch_init): Ditto.
6401 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6402 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6403 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6404 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6405 * i386-tdep.c (i386_gdbarch_init): Ditto.
6406 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6407 * frv-tdep.c (frv_gdbarch_init): Ditto.
6408 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6409 * cris-tdep.c (cris_gdbarch_init): Ditto.
6410 * arm-tdep.c (arm_gdbarch_init): Ditto.
6411
e8a8712a
AC
64122003-03-31 Andrew Cagney <cagney@redhat.com>
6413
6414 * gdbarch.sh (CALL_DUMMY_P): Delete.
6415 * gdbarch.h, gdbarch.c: Re-generate.
6416 * inferior.h (CALL_DUMMY_P): Delete macro.
6417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6418 * vax-tdep.c (vax_gdbarch_init): Update.
6419 * v850-tdep.c (v850_gdbarch_init): Update.
6420 * sparc-tdep.c (sparc_gdbarch_init): Update.
6421 * sh-tdep.c (sh_gdbarch_init): Update.
6422 * s390-tdep.c (s390_gdbarch_init): Update.
6423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6425 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6426 * mips-tdep.c (mips_gdbarch_init): Update.
6427 * mcore-tdep.c (mcore_gdbarch_init): Update.
6428 * m68k-tdep.c (m68k_gdbarch_init): Update.
6429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6430 * ia64-tdep.c (ia64_gdbarch_init): Update.
6431 * i386-tdep.c (i386_gdbarch_init): Update.
6432 * h8300-tdep.c (h8300_gdbarch_init): Update.
6433 * frv-tdep.c (frv_gdbarch_init): Update.
6434 * d10v-tdep.c (d10v_gdbarch_init): Update.
6435 * cris-tdep.c (cris_gdbarch_init): Update.
6436 * breakpoint.c (deprecated_frame_in_dummy): Update.
6437 * avr-tdep.c (avr_gdbarch_init): Update.
6438 * alpha-tdep.c (alpha_gdbarch_init): Update.
6439 * arm-tdep.c (arm_gdbarch_init): Update.
6440 * dummy-frame.c (dummy_frame_this_id): Update comments.
6441 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6442 * frame.c (legacy_get_prev_frame): Ditto.
6443 * valops.c (call_function_by_hand): Delete function.
6444 (hand_function_call): Rename to call_function_by_hand
6445
ed234cf8
AC
64462003-03-30 Andrew Cagney <cagney@redhat.com>
6447
6448 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6449 * value.h (struct value): Update comment.
ed234cf8 6450
06c77151
AC
64512003-03-30 Andrew Cagney <cagney@redhat.com>
6452
6c2b5168
AC
6453 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6454 D10V_FP_REGNUM.
6455 (d10v_gdbarch_init): Do not set fp_regnum.
6456
06c77151
AC
6457 * frame.c (get_frame_base): Force ID initialization.
6458 (get_prev_frame): Move computation of the frame ID from here ...
6459 (get_frame_id): ... to here.
6460 (legacy_get_prev_frame): Mark the frame ID as valid.
6461 * frame.h (struct frame_info): Add field "id_p".
6462
97a1a11c
MK
64632003-03-30 Mark Kettenis <kettenis@gnu.org>
6464
6465 * i386-tdep.c (i386_store_struct_return): Removed.
6466 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6467
6c0e89ed
AC
64682003-03-30 Andrew Cagney <cagney@redhat.com>
6469
6470 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6471 * gdbarch.h, gdbarch.c: Regenerate.
6472 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6474 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6475 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6476 * i386-tdep.c (i386_gdbarch_init): Ditto.
6477 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6478 * cris-tdep.c (cris_gdbarch_init): Ditto.
6479 * vax-tdep.c (vax_gdbarch_init): Ditto.
6480 * s390-tdep.c (s390_gdbarch_init): Ditto.
6481 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6482 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6483 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6484 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6485 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6486 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6487 * sparc-tdep.c (sparc_gdbarch_init): Update.
6488 * sh-tdep.c (sh_gdbarch_init): Update.
6489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6490 * mips-tdep.c (mips_gdbarch_init): Update.
6491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6492 * ia64-tdep.c (ia64_gdbarch_init): Update.
6493 * frv-tdep.c (frv_gdbarch_init): Update.
6494 * avr-tdep.c (avr_gdbarch_init): Update.
6495 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6496 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6497 instead of when push_dummy_call is not available.
8ffd9b1b 6498
f7dd6af2
AC
64992003-03-30 Andrew Cagney <cagney@redhat.com>
6500
6501 * infttrace.c: Include "gdbthread.h".
6502 (parent_attach_all): Fix function signature.
6503 (call_ptrace): Update call.
6504 * Makefile.in (infttrace.o): Update dependencies.
6505
28f617b3
AC
65062003-03-30 Andrew Cagney <cagney@redhat.com>
6507
6508 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6509 PUSH_RETURN_ADDRESS.
6510 * gdbarch.h, gdbarch.c: Regenerate.
6511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6512 * x86-64-tdep.c (x86_64_init_abi): Update.
6513 * v850-tdep.c (v850_gdbarch_init): Update.
6514 * sparc-tdep.c (sparc_gdbarch_init): Update.
6515 * sh-tdep.c (sh_gdbarch_init): Update.
6516 * s390-tdep.c (s390_gdbarch_init): Update.
6517 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6518 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6519 * mips-tdep.c (mips_gdbarch_init): Update.
6520 * mcore-tdep.c (mcore_gdbarch_init): Update.
6521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6522 * ia64-tdep.c (ia64_gdbarch_init): Update.
6523 * i386-tdep.c (i386_gdbarch_init): Update.
6524 * h8300-tdep.c (h8300_gdbarch_init): Update.
6525 * frv-tdep.c (frv_gdbarch_init): Update.
6526 * cris-tdep.c (cris_gdbarch_init): Update.
6527 * avr-tdep.c (avr_gdbarch_init): Update.
6528 * arm-tdep.c (arm_gdbarch_init): Update.
6529 * valops.c (hand_function_call): Update.
6530
4d628cd7
AC
65312003-03-29 Andrew Cagney <cagney@redhat.com>
6532
6533 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6534 sizeof_call_dummy_words.
6535 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6536 define.
6537 * gdbarch.h: Regenerate.
8ffd9b1b 6538
65e82032
AC
65392003-03-29 Andrew Cagney <cagney@redhat.com>
6540
6541 * infttrace.h: New file.
6542 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6543 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6544 (hpread_read_doc_function_type): Detect an initialized type1.
6545 (hpread_quick_traverse): Initialize mod_name_string.
6546 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6547 (som_solib_get_solib_by_pc): Declare.
6548 (so_lib_thread_start_addr): Declare.
6549 (no_shared_libraries): Declare.
6550 * somread.c (init_import_symbols): Make static. Add forward
6551 declaration.
6552 * config/pa/nm-hppah.h: Include "infttrace.h" for
6553 parent_attach_all.
6554 (hppa_insert_hw_watchpoint): Declare.
6555 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6556 * hppah-nat.c: Include "gdb_string.h".
6557 (parent_attach_all): Delete extern declaration, moved to
6558 "infttrace.h".
6559 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6560 int.
6561 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6562 * Makefile.in (infttrace_h): Define.
6563 (hpread.o): Update dependencies.
6564 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6565 * hppa-hpux-tdep.c: Include "gdb_string.h".
6566 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6567 * infrun.c (handle_inferior_event): Always initialize
6568 stepped_after_stopped_by_watchpoint. Add default and remove
6569 fallthrough in switch statement.
6570 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6571 parameter to int.
6572 (hppa_remove_hw_watchpoint): Ditto.
6573
2c3bbe77
AC
65742003-03-29 Andrew Cagney <cagney@redhat.com>
6575
6576 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6577 offset.
6578
2dd604e7
RE
65792003-03-29 Richard Earnshaw <rearnsha@arm.com>
6580
6581 * arm-tdep.c (arm_push_arguments): Delete.
6582 (struct stack_item): New type.
6583 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6584 (arm_store_struct_return): Delte.
6585 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6586 arm_push_arguments or arm_store_struct_return.
6587
e8933a55
AC
65882003-03-28 Andrew Cagney <cagney@redhat.com>
6589
6590 * Makefile.in (d10v-tdep.o): Update dependencies.
6591 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6592 * d10v-tdep.c: Include "remote.h".
6593 (target_resume_hook): Delete extern declaration.
6594 (target_wait_loop_hook): Ditto.
6595 (tdisassemble_command): Eliminate assignment in "if" conditional.
6596 (d10v_ts2_register_sim_regno): Eliminate call to
6597 legacy_register_sim_regno.
6598 (d10v_ts3_register_sim_regno): Ditto.
6599
6949171e
JJ
66002003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6601
6602 * thread.c: Reindented.
6603 * lin-lwp.c: Ditto.
6604 * linux-proc.c: Ditto.
6605
98c7071f
BR
66062003-03-28 Bob Rossi <bob_rossi@cox.net>
6607
fbe586ae 6608 * MAINTAINERS (write after approval): Add myself.
98c7071f 6609
5edc9ca6
TR
66102003-03-27 Theodore A. Roth <troth@openavr.org>
6611
6612 * objc-exp.y: Add missing semi-colons.
6613
378bfd1b
AC
66142003-03-27 Andrew Cagney <cagney@redhat.com>
6615
6616 * regcache.c (write_sp): Delete function and references.
6617 * inferior.h (write_sp): Delete declaration.
6618 * valops.c (hand_function_call): Replace write_sp with
6619 TARGET_WRITE_SP.
6620 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6621 (sparc_pop_frame): Ditto.
8ffd9b1b 6622
56056df7
AC
66232003-03-27 Andrew Cagney <cagney@redhat.com>
6624
6625 * NEWS: Mention removal of support for hppa*-*-bsd* and
6626 hppa*-*-osf* natives, and hppa*-*-pro* target.
6627 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6628 * config/pa/xm-pa.h: Obsolete file.
6629 * config/pa/xm-hppab.h: Obsolete file.
6630 * config/pa/nm-hppab.h: Obsolete file.
6631 * config/pa/tm-hppab.h: Obsolete file.
6632 * config/pa/tm-hppao.h: Obsolete file.
6633 * config/pa/nm-hppao.h: Obsolete file.
6634 * config/pa/tm-pro.h: Obsolete file.
6635 * config/pa/hppaosf.mt: Obsolete file.
6636 * config/pa/hppaosf.mh: Obsolete file.
6637 * config/pa/hppapro.mt: Obsolete file.
6638 * config/pa/hppabsd.mt: Obsolete file.
6639 * config/pa/hppabsd.mh: Obsolete file.
6640 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6641 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6642 hppa*-*-osf*.
6643
5873a88d
AC
66442003-03-27 Andrew Cagney <cagney@redhat.com>
6645
6646 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6647 push_arguments. Don't set push_return_address or write_sp.
6648 (d10v_push_dummy_call): Replace d10v_push_arguments.
6649 (d10v_push_return_address, d10v_write_sp): Delete function,
6650 handled by push_dummy_call.
6651
b81774d8
AC
66522003-03-26 Andrew Cagney <cagney@redhat.com>
6653
6654 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6655 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6656 regcache and dummy_addr parameters.
6657 * gdbarch.h, gdbarch.c: Re-generate.
6658 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6659 available; assume it will handle stack alignment and return
6660 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6661 legacy_push_arguments.
6662 (legacy_push_arguments): Rename default_push_arguments.
6663 * value.h (legacy_push_arguments): Rename default_push_arguments.
6664 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6665 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6666 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6667 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6668 * config/i386/tm-symmetry.h: Update.
6669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6670 * x86-64-tdep.c (x86_64_init_abi): Update.
6671 * v850-tdep.c (v850_gdbarch_init): Update.
6672 * sparc-tdep.c (sparc_gdbarch_init): Update.
6673 * sh-tdep.c (sh_gdbarch_init): Update.
6674 * s390-tdep.c (s390_gdbarch_init): Update.
6675 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6677 * mips-tdep.c (mips_gdbarch_init): Update.
6678 * mcore-tdep.c (mcore_gdbarch_init): Update.
6679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6680 * ia64-tdep.c (ia64_gdbarch_init): Update.
6681 * i386-tdep.c (i386_gdbarch_init): Update.
6682 * hppa-tdep.c (hppa_gdbarch_init): Update.
6683 * h8300-tdep.c (h8300_gdbarch_init): Update.
6684 * frv-tdep.c (frv_gdbarch_init): Update.
6685 * d10v-tdep.c (d10v_gdbarch_init): Update.
6686 * cris-tdep.c (cris_gdbarch_init): Update.
6687 * avr-tdep.c (avr_gdbarch_init): Update.
6688 * arm-tdep.c (arm_gdbarch_init): Update.
6689 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6690 * alpha-tdep.c (alpha_gdbarch_init): Update.
6691
f541410f
DJ
66922003-03-26 Daniel Jacobowitz <drow@mvista.com>
6693
6694 * signals/signals.c (do_target_signal_to_host): Correct realtime
6695 signal range test.
6696
69f567ae
DJ
66972003-03-26 Daniel Jacobowitz <drow@mvista.com>
6698
6699 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6700 (struct sal_chain, map_catch_names): Remove.
6701 (catch_exception_command_1): Don't call
6702 handle_gnu_4_16_catch_command.
6703
d5d14a5a
DJ
67042003-03-26 Daniel Jacobowitz <drow@mvista.com>
6705
6706 From Mark Dettinger <dettinge@de.ibm.com>:
6707 * dwarf2cfi.c (read_2u): Increment pointer by two.
6708
bdd73e22
DJ
67092003-03-26 Daniel Jacobowitz <drow@mvista.com>
6710
6711 * signals/signals.c: Fix typos in last change.
6712
960cb555
DJ
67132003-03-26 Daniel Jacobowitz <drow@mvista.com>
6714
6715 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6716 not already defined. Use __SIGRTMIN if available.
6717 (target_signal_from_host): Remove SIGRTMIN block.
6718 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6719 the signal is within the realtime range.
6720
f636b87d
AF
67212003-03-25 Adam Fedor <fedor@gnu.org>
6722
6723 * Makefile.in (infrun.o): Add $(language_h)
6724 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6725 for language specific trampolines.
6726 * language.h (struct language_defn): Add skip_trampoline.
6727 (skip_language_trampoline): Declare.
6728 * language.c (unk_lang_trampoline, skip_language_trampoline):
6729 New functions.
6730 (unknown_language_defn, auto_language_defn, local_language_defn):
6731 Add ukn_lang_trampoline.
6732 * ada-lang.c (ada_language_defn): Add NULL for language
6733 specific skip_trampoline.
6734 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6735 scm-lang.c: Likewise.
6736 * objc-lang.c (objc_skip_trampoline): New function.
6737 (objc_language_defn): Add objc_skip_trampoline.
6738
28f617b3 67392003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
6740
6741 * frame.c (get_prev_frame): Delay validating a frame's ID -
6742 non-NULL, didn't go backwards - until an attempt to unwind it to
6743 the previous frame.
6744
f933a9c5
AC
67452003-03-25 Andrew Cagney <cagney@redhat.com>
6746
6747 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6748 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6749 * gdbarch.h, gdbarch.c: Re-generate.
6750 * config/sparc/tm-sparc.h
6751 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6752 * sparc-tdep.c (sparc_gdbarch_init): Set
6753 deprecated_extra_stack_alignment_needed.
6754 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6756 extra_stack_alignment_needed.
6757 * v850-tdep.c (v850_gdbarch_init): Ditto.
6758 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6759 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6760 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6761 * cris-tdep.c (cris_gdbarch_init): Ditto.
6762 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6764
4183d812
AC
67652003-03-25 Andrew Cagney <cagney@redhat.com>
6766
6767 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6768 STORE_STRUCT_RETURN.
6769 * gdbarch.h, gdbarch.c: Regenerate.
6770 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6771 (d10v_push_arguments): Set the struct return register.
6772 (d10v_gdbarch_init): Update.
6773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6774 * x86-64-tdep.c (x86_64_init_abi): Update.
6775 * vax-tdep.c (vax_gdbarch_init): Update.
6776 * v850-tdep.c (v850_gdbarch_init): Update.
6777 * sparc-tdep.c (sparc_gdbarch_init): Update.
6778 * sh-tdep.c (sh_gdbarch_init): Update.
6779 * s390-tdep.c (s390_gdbarch_init): Update.
6780 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6781 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6782 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6783 * mips-tdep.c (mips_gdbarch_init): Update.
6784 * mcore-tdep.c (mcore_gdbarch_init): Update.
6785 * m68k-tdep.c (m68k_gdbarch_init): Update.
6786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6787 * ia64-tdep.c (ia64_gdbarch_init): Update.
6788 * i386-tdep.c (i386_gdbarch_init): Update.
6789 * hppa-tdep.c (hppa_gdbarch_init): Update.
6790 * h8300-tdep.c (h8300_gdbarch_init): Update.
6791 * frv-tdep.c (frv_gdbarch_init): Update.
6792 * cris-tdep.c (cris_gdbarch_init): Update.
6793 * avr-tdep.c (avr_gdbarch_init): Update.
6794 * arm-tdep.c (arm_gdbarch_init): Update.
6795 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6796
1bf6d5cc
AC
67972003-03-25 Andrew Cagney <cagney@redhat.com>
6798
6799 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6800 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6801 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6802 * gdbarch.h, gdbarch.c: Regenerate.
6803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6804 call_dummy_stack_adjust_p.
6805 * vax-tdep.c (vax_gdbarch_init): Ditto.
6806 * v850-tdep.c (v850_gdbarch_init): Ditto.
6807 * sh-tdep.c (sh_gdbarch_init): Ditto.
6808 * s390-tdep.c (s390_gdbarch_init): Ditto.
6809 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6810 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6811 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6812 * mips-tdep.c (mips_gdbarch_init): Ditto.
6813 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6814 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6816 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6817 * i386-tdep.c (i386_gdbarch_init): Ditto.
6818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6819 * frv-tdep.c (frv_gdbarch_init): Ditto.
6820 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6821 * cris-tdep.c (cris_gdbarch_init): Ditto.
6822 * avr-tdep.c (avr_gdbarch_init): Ditto.
6823 * arm-tdep.c (arm_gdbarch_init): Ditto.
6824 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6825 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6826 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6827 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6828 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6829 call_dummy_stack_adjust_p.
6830 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6831 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6832 * sparc-tdep.c (sparc32_push_arguments): Update.
6833 * valops.c (hand_function_call): Update.
6834
71c08af0
CV
68352003-03-25 Corinna Vinschen <vinschen@redhat.com>
6836
6837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6838 set_gdbarch_char_signed.
6839
30757f90
RE
68402003-03-25 Richard Earnshaw <rearnsha@arm.com>
6841
6842 PR cli/548
6843 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6844
03d48a7d
RE
68452003-03-25 Richard Earnshaw <rearnsha@arm.com>
6846
6847 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6848 (_initialize_arm_tdep): Don't set tm_print_insn.
6849
2cf6873c
AF
68502003-03-24 Adam Fedor <fedor@gnu.org>
6851
6852 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6853 * objc-lang.h: Add multiple inclusion protection.
6854 (start_msglist, add_msglist, end_msglist): Additional declarations.
6855
17c0759e
RE
68562003-03-24 Richard Earnshaw <rearnsha@arm.com>
6857
6858 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6859 value was renamed to ARM_FLOAT_SOFT_FPA.
6860
618ce49f
AC
68612003-03-23 Andrew Cagney <cagney@redhat.com>
6862
6863 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6864 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6865 * gdbarch.h, gdbarch.c: Regenerate.
6866 * valops.c (hand_function_call): Update.
6867 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6868 * frame.c (legacy_saved_regs_this_id): Update.
6869 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6870 * dummy-frame.h: Update.
6871 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6872 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6873 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6874 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6875 * config/m68k/tm-sun3.h: Update.
6876 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6878 * x86-64-tdep.c (x86_64_init_abi): Update.
6879 * vax-tdep.c (vax_gdbarch_init): Update.
6880 * v850-tdep.c (v850_gdbarch_init): Update.
6881 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6882 * sh-tdep.c (sh_gdbarch_init): Update.
6883 * s390-tdep.c (s390_gdbarch_init): Update.
6884 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6885 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6886 (frame_get_saved_regs): Update.
6887 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6888 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6889 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6890 * mips-tdep.c (mips_gdbarch_init): Update.
6891 * mcore-tdep.c (mcore_gdbarch_init): Update.
6892 * m68k-tdep.c (m68k_gdbarch_init): Update.
6893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6894 * ia64-tdep.c (ia64_gdbarch_init): Update.
6895 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6896 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6897 (i386_interix_back_one_frame): Update.
6898 * hppa-tdep.c (hppa_gdbarch_init): Update.
6899 (hppa_init_extra_frame_info): Update.
6900 * h8300-tdep.c (h8300_gdbarch_init): Update.
6901 * frv-tdep.c (frv_gdbarch_init): Update.
6902 * cris-tdep.c (cris_gdbarch_init): Update.
6903 * avr-tdep.c (avr_gdbarch_init): Update.
6904 * arm-tdep.c (arm_gdbarch_init): Update.
6905 * alpha-tdep.c (alpha_gdbarch_init): Update.
6906
fd50bc42
RE
69072003-03-22 Richard Earnshaw <rearnsha@arm.com>
6908
6909 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6910 (arm_get_fp_model): Declare.
6911 * arm-tdep.c (fp_model_strings): New string array.
6912 (arm_fp_model, current_fp_model): New variables.
6913 (arm_get_fp_model): New function.
6914 (arm_set_fp): New function.
6915 (set_fp_model_sfunc): New function.
6916 (show_fp_model): New function.
6917 (_initialize_arm_tdep): Add new command to set/show the FPU.
6918 (arm_extract_return_value): Use arm_get_fp_model.
6919 (arm_store_return_value): Likewise.
6920 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6921 to initialize the floating-point data types.
6922 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6923 model is FPA.
6924
26304000
RE
69252003-03-22 Richard Earnshaw <rearnsha@arm.com>
6926
6927 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6928 the current setting of each value.
6929 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6930 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6931 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6932 commands and add new version as subcommands of "set/show arm".
6933
afd7eef0
RE
69342003-03-22 Richard Earnshaw <rearnsha@arm.com>
6935
6936 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6937 (set_arm_command, show_arm_command): New functions.
6938 (_initialize_arm_tdep): Add them.
6939 (num_disassembly_options): Renamed from num_flavor_options.
6940 (valid_disassembly_styles): Renamed from valid_flavors.
6941 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6942 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6943 set_disassembly_flavor_sfunc.
6944 (set_disassembly_style): Renamed from set_disassembly_flavor.
6945 (arm_othernames): Updated.
6946 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6947 command. Add "set/show arm disassembly" commands. Deprecate
6948 "othernames" command.
6949
299a7944
RE
69502003-03-22 Richard Earnshaw <rearnsha@arm.com>
6951
6952 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6953 (arm-tdep.o): Depend on elf_arm_h.
6954
c1dac9e6
RE
69552003-03-22 Richard Earnshaw <rearnsha@arm.com>
6956
6957 * Makefile.in (coff_internal_h): Define.
6958 (arm-tdep.o): Update dependencies.
6959
2702d96c
RE
69602003-03-22 Richard Earnshaw <rearnsha@arm.com>
6961
6962 * arm-tdep.c (prologue_cache): Delete.
6963 (check_prologue_cache, save_prologue_cache): Delete.
6964 (arm_scan_prologue): Don't check or update the prologue_cache.
6965 (arm_gdb_arch_init): Don't initialize it.
6966 (_initialize_arm_tdep): Likewise.
6967
27d5d74b
SC
69682003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6969
6970 * MAINTAINERS (tui): Maintainer of tui code.
6971
1762d96d
CV
69722003-03-21 Corinna Vinschen <vinschen@redhat.com>
6973
6974 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6975 (i386-cygwin-tdep.o): Add dependencies.
6976 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6977 * i386-cygwin-tdep.c: New file.
6978 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6979 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6980
4c2e2391
AC
69812003-03-20 Andrew Cagney <cagney@redhat.com>
6982
f20d38b7
AC
6983 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6984 (handle_inferior_event): Remove code calling
6985 DYNAMIC_TRAMPOLINE_NEXTPC.
6986
0022b738
AC
6987 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6988 already has a full path.
6989
864dbc90
AC
6990 * main.c (gdb_main): Return 1.
6991 (captured_main): Call error to report an invalid interpreter.
6992
4c2e2391
AC
6993 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6994 * alpha-osf1-tdep.c: Include "gdb_string.h".
6995
5ef7553b
JB
69962003-03-19 J. Brobecker <brobecker@gnat.com>
6997
6998 Continuing work to convert the hppa targets to multiarch partial.
6999
7000 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7001 method, now that hppa_push_dummy_frame has a conformant prototype.
7002 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7003 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7004 for the switch to multiarch partial.
7005
7bde8967
KB
70062003-03-19 Kevin Buettner <kevinb@redhat.com>
7007
7008 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7009 when iss is issNull.
7010
b006a9e9
KB
70112003-03-18 Kevin Buettner <kevinb@redhat.com>
7012
7013 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7014 NUM_REGS bounds check.
7015
5e2e9765
KB
70162003-03-18 Kevin Buettner <kevinb@redhat.com>
7017
7018 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7019 * mips-tdep.c (gdb_assert.h): Include.
7020 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7021 (mips_register_name): Handle integer registers explicitly. Add
7022 bounds checking.
7023 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7024 (mips_lsi33k_reg_names): Don't list integer registers; they're
7025 handled by mips_register_name() now.
7026 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7027 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7028 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7029 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7030 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7031
a2867626
AC
70322003-03-18 Andrew Cagney <cagney@redhat.com>
7033
7034 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7035 a void pointer.
7036 * gdbtypes.h (print_scalar_formatted): Update declaration.
7037 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7038
06600e06
JB
70392003-03-18 J. Brobecker <brobecker@gnat.com>
7040
7041 * infrun.c (observer.h): Add #include.
7042 (normal_stop): Add call to observer_notify_normal_stop.
7043 * Makefile.in (infrun.o): Add dependency on observer.h.
7044
7daf4f5b
JB
70452003-03-18 J. Brobecker <brobecker@gnat.com>
7046
7047 Continuing work to convert the hppa targets to multiarch partial.
7048 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7049 parameter. Reformat comment.
7050 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7051 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7052 to match new profile.
7053
3371ccc0
JB
70542003-03-18 J. Brobecker <brobecker@gnat.com>
7055
7056 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7057 appear to be working in any case.
7058
4fbe891e
JB
70592003-03-18 J. Brobecker <brobecker@gnat.com>
7060
7061 * observer.c (observer_test_first_observer): New static variable.
7062 (observer_test_second_observer): Likewise.
7063 (observer_test_third_observer): Likewise.
7064 (observer_test_first_notification_function): New static function.
7065 (observer_test_second_notification_function): Likewise.
7066 (observer_test_third_notification_function): Likewise.
7067
a7ff40e7
JB
70682003-03-17 J. Brobecker <brobecker@gnat.com>
7069
7070 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7071 * somsolib.c (gdb_assert.h): Likewise.
7072 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7073 (somsolib.o): Likewise.
7074
26ca4152
AC
70752003-03-17 Andrew Cagney <cagney@redhat.com>
7076
7077 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7078 BFD. Simplify setting of di.endian.
7079
0a613259
AC
70802003-03-17 Andrew Cagney <cagney@redhat.com>
7081
7082 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7083 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7084
7085 From Elena Zannoni <ezannoni@redhat.com>
7086 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7087 vector and floating-point parameters.
7088 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7089 convention.
7090 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7091
1132738f
FN
70922003-03-17 Fernando Nasser <fnasser@redhat.com>
7093
7094 * MAINTAINERS: Remove my name from several maintainership roles.
7095
6dc42492
AC
70962003-03-17 Andrew Cagney <cagney@redhat.com>
7097
7098 Fix frame off-by-one bug.
7099 * frame-unwind.h (frame_this_id_ftype): Replace
7100 frame_unwind_id_ftype.
7101 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7102 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7103 with "prev_register".
7104 * frame-unwind.c (frame_unwind_find_by_pc): Return
7105 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7106 comment.
7107 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7108 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7109 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7110 (dummy_frame_unwind): Update.
7111 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7112 sentinel_frame_register_unwind.
7113 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7114 (sentinel_frame_unwinder): Update.
7115 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7116 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7117 * frame.c (create_sentinel_frame): Update. Initialize
7118 "prologue_cache" instead of "unwind_cache".
7119 (frame_register_unwind): Call this frame's prev_register with the
7120 next frame and this frame's prologue cache.
7121 (get_prev_frame): Simplify. Always call prev frame's this_id with
7122 this frame and prev frame's prologue cache. Document that this
7123 call is shifted one to the left when compared to the
7124 frame_register_unwind call.
7125 (legacy_saved_regs_prev_register): Replace
7126 frame_saved_regs_register_unwind.
7127 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7128 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7129 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7130 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7131 (d10v_frame_unwind): Update.
7132 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7133 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7134 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7135 "saved_regs" with "this_saved_regs".
7136
efd710d6
AC
71372003-03-16 Andrew Cagney <cagney@redhat.com>
7138
7139 * frame.c (frame_pop): Don't call target_store_registers. Fix
7140 problem reported by Mark Kettenis.
7141
4e259f09
MK
71422003-03-16 Mark Kettenis <kettenis@gnu.org>
7143
7144 * i386-tdep.c (i386_register_type): Renamed from
7145 i386_register_virtual_type. Adjust function signature.
7146 (i386_gdbarch_init): Set register_type instead of
7147 deprecated_max_register_raw_size,
7148 deprecated_max_register_virtual_size and register_virtual_type.
7149
055bb976
AC
71502003-03-14 Andrew Cagney <cagney@redhat.com>
7151
7152 * frame.c (get_prev_frame): When a legacy frame, always call
7153 legacy_get_prev_frame. Simplify unwind code using assumption that
7154 the unwinder is new.
7155 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7156 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7157 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7158
ac2adee5
AC
71592003-03-14 Andrew Cagney <cagney@redhat.com>
7160
7161 * frame.c (get_saved_register): Delete function.
7162 * frame.h (get_saved_register): Delete declaration.
7163 * xstormy16-tdep.c: Update comment.
7164 * regcache.h: Update comments.
7165 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7166 get_saved_register and extract_address, use
7167 frame_read_unsigned_register.
7168 (sparc_frame_saved_pc): Ditto.
7169 (sparc_get_saved_register): Instead of get_saved_register, use
7170 frame_register.
7171 (sparc_pop_frame): Ditto.
7172 * findvar.c: Update comments.
7173 (value_of_register): Call frame_register instead of
7174 get_saved_register.
7175 (value_from_register): Ditto.
7176 * config/sparc/tm-sparc.h: Update comment.
7177 * breakpoint.c: Update comment.
7178
129c1cd6
AC
71792003-03-14 Andrew Cagney <cagney@redhat.com>
7180
7181 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7182 GET_SAVED_REGISTER.
7183 * gdbarch.h, gdbarch.c: Re-generate.
7184 * frame.h: Update comments.
7185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7186 * x86-64-tdep.c (x86_64_init_abi): Update.
7187 * sparc-tdep.c (sparc_gdbarch_init): Update.
7188 * sh-tdep.c (sh_gdbarch_init): Update.
7189 * mips-tdep.c (mips_gdbarch_init): Update.
7190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7191 * cris-tdep.c (cris_gdbarch_init): Update.
7192 * ia64-tdep.c (ia64_gdbarch_init): Update.
7193 * frame.c (frame_register): Update.
7194 (get_saved_register): Update.
7195 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7196
749b82f6
AC
71972003-03-13 Andrew Cagney <cagney@redhat.com>
7198
7199 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7200 * gdbarch.h, gdbarch.c: Regenerate.
7201 * valops.c (hand_function_call): Update comment.
7202 * stack.c (return_command): Update comment.
7203 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7204 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7206 * x86-64-tdep.c (x86_64_init_abi): Update.
7207 * vax-tdep.c (vax_gdbarch_init): Update.
7208 * v850-tdep.c (v850_gdbarch_init): Update.
7209 * sparc-tdep.c (sparc_gdbarch_init): Update.
7210 * sh-tdep.c (sh_gdbarch_init): Update.
7211 * s390-tdep.c (s390_gdbarch_init): Update.
7212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7213 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7214 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7215 * mips-tdep.c (mips_gdbarch_init): Update.
7216 * mcore-tdep.c (mcore_gdbarch_init): Update.
7217 * m68k-tdep.c (m68k_gdbarch_init): Update.
7218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7219 * ia64-tdep.c (ia64_gdbarch_init): Update.
7220 * i386-tdep.c (i386_gdbarch_init): Update.
7221 * hppa-tdep.c (hppa_gdbarch_init): Update.
7222 * h8300-tdep.c (h8300_gdbarch_init): Update.
7223 * frv-tdep.c (frv_gdbarch_init): Update.
7224 * cris-tdep.c (cris_gdbarch_init): Update.
7225 * avr-tdep.c (avr_gdbarch_init): Update.
7226 * arm-tdep.c (arm_gdbarch_init): Update.
7227 * alpha-tdep.c (alpha_gdbarch_init): Update.
7228
1594fa56
AC
72292003-03-13 Andrew Cagney <cagney@redhat.com>
7230
7231 * frame.c (legacy_frame_p): New function.
7232 (get_prev_frame): Use legacy_frame_p.
7233 * frame.h (legacy_frame_p): Declare.
7234
7717fda3
V
72352003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7236
fbe586ae 7237 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7238 listing corrected.
7239
0c67cbe9
V
72402003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7241
fbe586ae 7242 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7243
03febf99
AC
72442003-03-12 Andrew Cagney <cagney@redhat.com>
7245
7246 * frame.c (get_prev_frame): Rename the frame parameter to
7247 "this_frame".
7248 (get_next_frame, legacy_get_prev_frame): Ditto.
7249
0a1e1ca1
AC
72502003-03-12 Andrew Cagney <cagney@redhat.com>
7251
7252 * frame.c (get_current_frame): Check target_has_registers before
7253 checking target_has_stack.
7254 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7255 instead of deprecated_selected_frame.
7256 * findvar.c (value_of_register): Pass "frame", not
7257 deprecated_selected_frame, to value_of_builtin_reg.
7258
a66a9c23
AC
72592003-03-12 Andrew Cagney <cagney@redhat.com>
7260
7261 * regcache.c (regcache_cooked_write_signed): New function.
7262 (regcache_cooked_write_unsigned): New function.
7263 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7264 (regcache_cooked_read_signed): Fix regnum in range assertion.
7265 * regcache.h (regcache_cooked_write_signed): Declare.
7266 (regcache_cooked_write_unsigned): Declare.
7267
8bedc050
AC
72682003-03-12 Andrew Cagney <cagney@redhat.com>
7269
7270 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7271 * gdbarch.h, gdbarch.c: Re-generate.
7272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7273 * x86-64-tdep.h: Update.
7274 * x86-64-tdep.c (x86_64_init_abi): Update.
7275 * v850-tdep.c (v850_gdbarch_init): Update.
7276 * sparc-tdep.c (sparc_gdbarch_init): Update.
7277 * sh-tdep.c (sh_gdbarch_init): Update.
7278 * s390-tdep.c (s390_gdbarch_init): Update.
7279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7280 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7281 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7282 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7283 * mips-tdep.c (mips_gdbarch_init): Update.
7284 * mcore-tdep.c (mcore_gdbarch_init): Update.
7285 * m68k-tdep.c (m68k_gdbarch_init): Update.
7286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7287 * ia64-tdep.c (ia64_gdbarch_init): Update.
7288 * i386-tdep.c (i386_gdbarch_init): Update.
7289 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7290 * hppa-tdep.c (hppa_gdbarch_init): Update.
7291 * h8300-tdep.c (h8300_gdbarch_init): Update.
7292 * frv-tdep.c (frv_gdbarch_init): Update.
7293 * cris-tdep.c (cris_gdbarch_init): Update.
7294 * avr-tdep.c (avr_gdbarch_init): Update.
7295 * arm-tdep.c (arm_gdbarch_init): Update.
7296 * alpha-tdep.c (alpha_gdbarch_init): Update.
7297 * sh-tdep.c (sh_init_extra_frame_info): Update.
7298 (sh64_init_extra_frame_info): Update.
7299 * ns32knbsd-nat.c (frame_num_args): Update.
7300 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7301 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7302 (xstormy16_frame_chain_valid): Update.
7303 * vax-tdep.c (vax_saved_pc_after_call): Update.
7304 * v850-tdep.c (v850_frame_chain): Update.
7305 (v850_pop_frame): Update.
7306 (v850_init_extra_frame_info): Update.
7307 * sparc-tdep.c (setup_arbitrary_frame): Update.
7308 * ns32k-tdep.c (umax_frame_num_args): Update.
7309 * s390-tdep.c (s390_pop_frame_regular): Update.
7310 * mn10300-tdep.c (mn10300_frame_chain): Update.
7311 (mn10300_pop_frame_regular): Update.
7312 (mn10300_init_extra_frame_info): Update.
7313 * mips-tdep.c (mips_init_frame_pc_first): Update.
7314 (mips_frame_chain): Update.
7315 (mips_pop_frame): Update.
7316 * mcore-tdep.c (mcore_frame_chain): Update.
7317 (mcore_pop_frame): Update.
7318 (mcore_init_extra_frame_info): Update.
7319 * arch-utils.c (init_frame_pc_default): Update.
7320 * m68k-tdep.c (isi_frame_num_args): Update.
7321 (delta68_frame_num_args): Update.
7322 (news_frame_num_args): Update.
7323 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7324 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7325 (alpha_frame_chain): Update.
7326 (alpha_pop_frame): Update.
7327 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7328 (hppa_init_extra_frame_info): Update.
7329 (hppa_frame_chain): Update.
7330 (hppa_frame_chain_valid): Update.
7331 * cris-tdep.c (cris_init_extra_frame_info): Update.
7332 * avr-tdep.c (avr_init_extra_frame_info): Update.
7333 * arm-tdep.c (arm_frame_chain_valid): Update.
7334 (arm_init_extra_frame_info): Update.
7335 (arm_pop_frame): Update.
7336 * frame.c (frame_pc_unwind): Update.
7337 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7338 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7339 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7340 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7341 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7342 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7343
7a25a7c1
AC
73442003-03-12 Andrew Cagney <cagney@redhat.com>
7345
7346 Eliminate the need for POP_FRAME.
7347 * frame.c (do_frame_unwind_register): New function.
7348 (frame_pop): When no POP_FRAME, pop the frame using register
7349 unwind and a scratch regcache.
7350 (frame_saved_regs_pop): Delete function.
7351 (trad_frame_unwinder): Update.
7352 * d10v-tdep.c (d10v_frame_pop): Delete function.
7353 (d10v_frame_unwind): Update.
7354 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7355 (sentinel_frame_unwinder): Update.
7356 * dummy-frame.c (dummy_frame_pop): Delete function.
7357 (dummy_frame_unwind): Update.
7358 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7359 (struct frame_unwind): Update.
7360
2f38ef89
KB
73612003-03-11 Kevin Buettner <kevinb@redhat.com>
7362
7363 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7364 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7365 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7366 Do range checks on register number obtained from debugging info.
7367 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7368 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7369 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7370 mapping function.
7371 (do_fp_register_row): Fix typo which caused double type to be
7372 used when attempting to unpack a float.
7373
552f4abf
JB
73742003-03-11 J. Brobecker <brobecker@gnat.com>
7375
7376 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7377
e0d2ae16
AC
73782003-03-11 Andrew Cagney <cagney@redhat.com>
7379
7380 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7381 frame. Problem found by Corinna Vinschen.
7382
ddbfdd06
PM
73832003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7384
7385 * doublest.c (floatformat_from_length): Accept also
7386 the real size of 'long double' type.
7387
088b2ddc 73882003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7389
088b2ddc 7390 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7391 * breakpoint.c (bpstat_copy): Copy the command lines as well
7392 as the old value, to match what is freed in bpstat_clear.
7393
f56f77c1
DC
73942003-03-10 David Carlton <carlton@math.stanford.edu>
7395
7396 * minsyms.c (add_minsym_to_hash_table): Replace
7397 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7398 (compare_minimal_symbols, compact_minimal_symbols)
7399 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7400 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7401 of DEPRECATED_SYMBOL_MATCHES_NAME.
7402 (lookup_minimal_symbol_solib_trampoline): Ditto.
7403
5602984a
AC
74042003-03-10 Andrew Cagney <cagney@redhat.com>
7405
7406 * regcache.h (regcache_cooked_read_ftype): Define.
7407 (regcache_save, regcache_restore): Add a cooked_read parameter.
7408 * regcache.c (regcache_save, regcache_restore): Update.
7409 (do_cooked_read): New function.
7410 (regcache_cpy): Pass do_cooked_read to regcache_save and
7411 regcache_restore.
7412
8bedc050
AC
74132003-03-10 Andrew Cagney <cagney@redhat.com>
7414
7415 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7416 * gdbarch.h, gdbarch.c: Re-generate.
7417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7418 * x86-64-tdep.h: Update.
7419 * x86-64-tdep.c (x86_64_init_abi): Update.
7420 * v850-tdep.c (v850_gdbarch_init): Update.
7421 * sparc-tdep.c (sparc_gdbarch_init): Update.
7422 * sh-tdep.c (sh_gdbarch_init): Update.
7423 * s390-tdep.c (s390_gdbarch_init): Update.
7424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7425 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7426 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7427 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7428 * mips-tdep.c (mips_gdbarch_init): Update.
7429 * mcore-tdep.c (mcore_gdbarch_init): Update.
7430 * m68k-tdep.c (m68k_gdbarch_init): Update.
7431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7432 * ia64-tdep.c (ia64_gdbarch_init): Update.
7433 * i386-tdep.c (i386_gdbarch_init): Update.
7434 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7435 * hppa-tdep.c (hppa_gdbarch_init): Update.
7436 * h8300-tdep.c (h8300_gdbarch_init): Update.
7437 * frv-tdep.c (frv_gdbarch_init): Update.
7438 * cris-tdep.c (cris_gdbarch_init): Update.
7439 * avr-tdep.c (avr_gdbarch_init): Update.
7440 * arm-tdep.c (arm_gdbarch_init): Update.
7441 * alpha-tdep.c (alpha_gdbarch_init): Update.
7442 * sh-tdep.c (sh_init_extra_frame_info): Update.
7443 (sh64_init_extra_frame_info): Update.
7444 * ns32knbsd-nat.c (frame_num_args): Update.
7445 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7446 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7447 (xstormy16_frame_chain_valid): Update.
7448 * vax-tdep.c (vax_saved_pc_after_call): Update.
7449 * v850-tdep.c (v850_frame_chain): Update.
7450 (v850_pop_frame): Update.
7451 (v850_init_extra_frame_info): Update.
7452 * sparc-tdep.c (setup_arbitrary_frame): Update.
7453 * ns32k-tdep.c (umax_frame_num_args): Update.
7454 * s390-tdep.c (s390_pop_frame_regular): Update.
7455 * mn10300-tdep.c (mn10300_frame_chain): Update.
7456 (mn10300_pop_frame_regular): Update.
7457 (mn10300_init_extra_frame_info): Update.
7458 * mips-tdep.c (mips_init_frame_pc_first): Update.
7459 (mips_frame_chain): Update.
7460 (mips_pop_frame): Update.
7461 * mcore-tdep.c (mcore_frame_chain): Update.
7462 (mcore_pop_frame): Update.
7463 (mcore_init_extra_frame_info): Update.
7464 * arch-utils.c (init_frame_pc_default): Update.
7465 * m68k-tdep.c (isi_frame_num_args): Update.
7466 (delta68_frame_num_args): Update.
7467 (news_frame_num_args): Update.
7468 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7469 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7470 (alpha_frame_chain): Update.
7471 (alpha_pop_frame): Update.
7472 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7473 (hppa_init_extra_frame_info): Update.
7474 (hppa_frame_chain): Update.
7475 (hppa_frame_chain_valid): Update.
7476 * cris-tdep.c (cris_init_extra_frame_info): Update.
7477 * avr-tdep.c (avr_init_extra_frame_info): Update.
7478 * arm-tdep.c (arm_frame_chain_valid): Update.
7479 (arm_init_extra_frame_info): Update.
7480 (arm_pop_frame): Update.
7481 * frame.c (frame_pc_unwind): Update.
7482 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7483 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7484 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7485 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7486 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7487 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7488
12cc2063
AC
74892003-03-10 Andrew Cagney <cagney@redhat.com>
7490
7491 * gdbarch.sh (gdbarch_unwind_pc): New method.
7492 * gdbarch.h, gdbarch.c: Regenerate.
7493 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7494 but use read_pc and FRAME_SAVED_PC as fall backs.
7495 (frame_saved_regs_pc_unwind): Delete function.
7496 (trad_frame_unwinder): Update.
7497 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7498 (struct frame_unwind): Update.
7499 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7500 (dummy_frame_unwind): Update.
7501 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7502 (sentinel_frame_unwinder): Update.
7503 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7504 (d10v_frame_unwind): Update.
7505 (d10v_unwind_pc): New function.
7506 (d10v_gdbarch_init): Set unwind_pc.
7507
ef840a37
AC
75082003-03-10 Andrew Cagney <cagney@redhat.com>
7509
a2ce2e56
AC
7510 * gdbarch.h: Re-generate.
7511
ef840a37
AC
7512 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7513 PC.
7514 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7515 the PC register.
7516
08f3424b
MK
75172003-03-08 Mark Kettenis <kettenis@gnu.org>
7518
7519 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7520
1248ede2
AC
75212003-03-08 Andrew Cagney <cagney@redhat.com>
7522
7523 * cli-out.c: Update copyright.
7524 (cli_out_data): Define typedef. Use instead of ui_out_data.
7525
f49bacc8
AC
75262003-03-08 Andrew Cagney <cagney@redhat.com>
7527
7528 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7529 the result.
7530
9b05f993
AC
75312003-03-07 Andrew Cagney <cagney@redhat.com>
7532
7533 * gdbarch.sh: Don't generate two macro definitions when an
7534 undefined macro taking no arguments.
7535 * gdbarch.h: Regenerate.
8ffd9b1b 7536
166f4c7b
ML
75372002-03-07 Michal Ludvig <mludvig@suse.cz>
7538
7539 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7540 (x86_64_unwind_dummy_id): New functions.
7541 (x86_64_init_abi): Register these two new functions.
7542
6d686a84
ML
75432003-03-07 Michal Ludvig <mludvig@suse.cz>
7544
7545 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7546 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7547 separate function.
7548 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7549
6314f104
AC
75502003-03-05 Andrew Cagney <cagney@redhat.com>
7551
7552 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7553 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7554 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7555 to use unwind_dummy_id when a dummy frame.
7556 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7557 predicate.
7558 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7559
ceea5145
AC
75602003-03-05 Andrew Cagney <cagney@redhat.com>
7561
7562 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7563 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7564 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7565 values.
7566
0d843116
AC
75672003-03-05 Andrew Cagney <cagney@redhat.com>
7568
7569 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7570 (struct d10v_unwind_cache): Delete field "frameless". Replace
7571 "next_addr" with "sp_offset". Add "r11_offset".
7572 (d10v_frame_unwind_cache): Update.
7573 (prologue_find_regs): Update. When "mv r11, sp", save the
7574 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7575 RN was saved in r11_offset.
7576
b2579786
AC
75772003-03-05 Andrew Cagney <cagney@redhat.com>
7578
7579 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7580 cached PC value in the next frame.
7581
218e5956
AC
75822003-03-05 Andrew Cagney <cagney@redhat.com>
7583
7584 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7585 "id_unwind_cache" with "id".
7586 (frame_id_unwind): Delete declaration.
7587 * frame.c (frame_id_unwind): Delete function.
7588 (get_prev_frame): Call the frame id unwind method directly. Store
7589 the returned next frame's ID value in NEXT_FRAME. Note that there
7590 is a problem with the wrong unwind ID being called with the wrong
7591 unwind cache.
7592
ed363b1b
DJ
75932003-03-05 Daniel Jacobowitz <drow@mvista.com>
7594
7595 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7596
fe1f4a5e
DJ
75972003-03-05 James Ingham <jingham@apple.com>
7598 Daniel Jacobowitz <drow@mvista.com>
7599
7600 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7601 (auto_cp_abi): New variable.
7602 (current_cp_abi, num_cp_abis): Make static.
7603 (CP_ABI_MAX): Define.
7604 (cp_abis): Turn into an array.
7605 (value_virtual_fn_field): Fix formatting.
7606 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7607 takes a pointer.
7608 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7609 (list_cp_abis, _initialize_cp_abi): New functions.
7610 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7611 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7612 switch_to_cp_abi. Update prototype for register_cp_abi.
7613 * Makefile.in (cp-abi.o): Update dependencies.
7614 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7615 instead of switch_to_cp_abi.
7616 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7617 register_cp_abi.
7618 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7619 register_cp_abi.
7620 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7621
e4adbba9
DJ
76222003-03-05 Daniel Jacobowitz <drow@mvista.com>
7623
7624 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7625 * dwarf2loc.c: Include "regcache.h".
7626 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7627 register_size.
7628 * Makefile.in (dwarf2loc.o): Update dependencies.
7629
91ccbfc1
TR
76302003-03-04 Theodore A. Roth <troth@openavr.org>
7631
7632 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7633 number of io registers reported by remote target is not a multiple of
7634 step.
7635
3d4e8fd2
DC
76362003-03-04 David Carlton <carlton@math.stanford.edu>
7637
7638 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7639 (lookup_symbol_aux_psymtabs): Update call to
7640 lookup_partial_symbol.
7641 (lookup_transparent_type, find_main_psymtab)
7642 (make_symbol_overload_list): Ditto.
7643
ed42d87b
KH
76442003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7645
7646 * MAINTAINERS (Write after approval): Update my email address.
7647
a0ed5532
AC
76482003-03-03 Andrew Cagney <cagney@redhat.com>
7649
7650 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7651 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7652 predicate. Replace MAX_REGISTER_RAW_SIZE.
7653 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7654 MAX_REGISTER_VIRTUAL_SIZE.
7655 * regcache.c (legacy_max_register_raw_size): New function.
7656 (legacy_max_register_virtual_size): New function.
7657 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7658 (MAX_REGISTER_RAW_SIZE): Define.
7659 (legacy_max_register_raw_size): Declare.
7660 (legacy_max_register_virtual_size): Declare.
7661 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7662 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7663 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7664 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7665 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7666 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7667 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7668 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7669 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7671 * vax-tdep.c (vax_gdbarch_init): Update.
7672 * v850-tdep.c (v850_gdbarch_init): Update.
7673 * sparc-tdep.c (sparc_gdbarch_init): Update.
7674 * sh-tdep.c (sh_gdbarch_init): Update.
7675 * s390-tdep.c (s390_gdbarch_init): Update.
7676 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7677 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7678 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7679 * mips-tdep.c (mips_gdbarch_init): Update.
7680 * mcore-tdep.c (mcore_gdbarch_init): Update.
7681 * m68k-tdep.c (m68k_gdbarch_init): Update.
7682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7683 * ia64-tdep.c (ia64_gdbarch_init): Update.
7684 * i386-tdep.c (i386_gdbarch_init): Update.
7685 * hppa-tdep.c (hppa_gdbarch_init): Update.
7686 * h8300-tdep.c (h8300_gdbarch_init): Update.
7687 * frv-tdep.c (frv_gdbarch_init): Update.
7688 * cris-tdep.c (cris_gdbarch_init): Update.
7689 * avr-tdep.c (avr_gdbarch_init): Update.
7690 * arm-tdep.c (arm_gdbarch_init): Update.
7691 * alpha-tdep.c (alpha_gdbarch_init): Update.
7692 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7693 max_register_raw_size or max_register_virtual_size.
7694
8e437497
DC
76952003-03-03 David Carlton <carlton@math.stanford.edu>
7696
7697 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7698 SYMBOL_MATCHES_NAME, add comment.
7699 (SYMBOL_MATCHES_NATURAL_NAME): New.
7700 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7701 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7702 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7703 * symtab.c (lookup_partial_symbol): Use
7704 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7705 unhelpful comment.
7706 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7707 SYMBOL_MATCHES_NAME.
7708 Fix for PR c++/33.
7709
25120b0d
DC
77102003-03-03 David Carlton <carlton@math.stanford.edu>
7711
7712 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7713 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7714 by regexp matching against SYMBOL_NATURAL_NAME.
7715
78a11fb4
DC
77162003-03-03 David Carlton <carlton@math.stanford.edu>
7717
7718 * linespec.c (find_method): Extract code into collect_methods.
7719 (collect_methods): New.
7720
645dd519
MK
77212003-03-02 Mark Kettenis <kettenis@gnu.org>
7722
b4700d91
MK
7723 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7724 get_frame_base.
7725
645dd519
MK
7726 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7727 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7728
0aa7e1aa
SC
77292003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7730
8ffd9b1b 7731 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
7732 and not regnum when summing the size of all registers up to regnum.
7733
f30ee0bc
AC
77342003-03-01 Andrew Cagney <cagney@redhat.com>
7735
7736 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7737 FRAME_INIT_SAVED_REGS.
7738 * gdbarch.h, gdbarch.c: Regenerate.
7739 * stack.c (frame_info): Update.
7740 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7741 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7742 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7743 * ns32k-tdep.c (ns32k_pop_frame): Update.
7744 * mips-tdep.c (mips_pop_frame): Update.
7745 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7746 * ia64-tdep.c (ia64_frame_chain): Update.
7747 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7748 (ia64_frameless_function_invocation): Update.
7749 (ia64_init_extra_frame_info): Update.
7750 (ia64_pop_frame_regular): Update.
7751 * frame.h (struct frame_info): Update comment.
7752 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7753 * frame.c (frame_saved_regs_register_unwind): Update.
7754 (frame_saved_regs_register_unwind): Update.
7755 (deprecated_generic_get_saved_register): Update.
7756 * cris-tdep.c: Update comment.
7757 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7758 Rename macro.
7759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7760 * x86-64-tdep.c (x86_64_init_abi): Update.
7761 * vax-tdep.c (vax_gdbarch_init): Update.
7762 * v850-tdep.c (v850_gdbarch_init): Update.
7763 * sparc-tdep.c (sparc_gdbarch_init): Update.
7764 * sh-tdep.c (sh_gdbarch_init): Update.
7765 * s390-tdep.c (s390_gdbarch_init): Update.
7766 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7767 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7769 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7770 * mips-tdep.c (mips_gdbarch_init): Update.
7771 * mcore-tdep.c (mcore_gdbarch_init): Update.
7772 * m68k-tdep.c (m68k_gdbarch_init): Update.
7773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7774 * ia64-tdep.c (ia64_gdbarch_init): Update.
7775 * i386-tdep.c (i386_gdbarch_init): Update.
7776 * frv-tdep.c (frv_gdbarch_init): Update.
7777 * avr-tdep.c (avr_gdbarch_init): Update.
7778 * arm-tdep.c (arm_gdbarch_init): Update.
7779 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7780
42fa7c0f
AC
77812003-03-01 Andrew Cagney <cagney@redhat.com>
7782
7783 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7784 option enum and switch. When no windows, set the interpreter to
7785 INTERP_CONSOLE.
8ffd9b1b 7786
49c7e338
AC
77872003-03-01 Andrew Cagney <cagney@redhat.com>
7788
7789 * main.c (captured_main): Replace magic option characters with an
7790 enum.
7791
e9582e71
AC
77922003-03-01 Andrew Cagney <cagney@redhat.com>
7793
7794 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7795 INIT_EXTRA_FRAME_INFO.
7796 * gdbarch.h, gdbarch.c: Regenerate.
7797 * arm-tdep.c: Update comments.
7798 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7799 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7800 * frame.h, avr-tdep.c: Ditto.
7801 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7802 (create_new_frame, legacy_get_prev_frame): Ditto.
7803 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7804 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7806 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7807 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7808 * v850-tdep.c (v850_gdbarch_init): Ditto.
7809 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7810 * sh-tdep.c (sh_gdbarch_init): Ditto.
7811 * s390-tdep.c (s390_gdbarch_init): Ditto.
7812 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7814 * mips-tdep.c (mips_gdbarch_init): Ditto.
7815 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7817 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7818 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7819 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7820 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7821 * frv-tdep.c (frv_gdbarch_init): Ditto.
7822 * cris-tdep.c (cris_gdbarch_init): Ditto.
7823 * avr-tdep.c (avr_gdbarch_init): Ditto.
7824 * arm-tdep.c (arm_gdbarch_init): Ditto.
7825 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7827
35cac7cf
AC
78282003-03-01 Andrew Cagney <cagney@redhat.com>
7829
7830 * gdbarch.sh (register_type): New function with predicate.
7831 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7832 * gdbarch.h, gdbarch.c: Re-generate.
7833 * arch-utils.c (generic_register_byte): Use generic_register_size.
7834 (generic_register_size): When available, use
7835 gdbarch_register_type.
7836 * regcache.c (init_regcache_descr): When available, initialize the
7837 register type array using gdbarch_register_type. If the
7838 architecture supplies gdbarch_register_type, do not use the legacy
7839 regcache layout.
7840 * d10v-tdep.c (d10v_register_type): Replace
7841 d10v_register_virtual_type.
7842 (d10v_gdbarch_init): Set register_type instead of
7843 register_virtual_type.
7844
7b83296f
AC
78452003-03-01 Andrew Cagney <cagney@redhat.com>
7846
7847 * Makefile.in (ax-gdb.o): Update dependencies.
7848 * ax-gdb.c: Include "regcache.h".
7849 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7850 * findvar.c (value_of_register): Ditto.
7851 * infcmd.c (default_print_registers_info): Ditto.
7852
eadc1c87
MK
78532003-03-01 Mark Kettenis <kettenis@gnu.org>
7854
7855 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7856 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7857
14143612
MK
78582003-03-01 Mark Kettenis <kettenis@gnu.org>
7859
7860 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7861 of STREQ.
7862
a55cc764
DJ
78632003-02-28 Daniel Jacobowitz <drow@mvista.com>
7864
7865 * Makefile.in (dwarf2loc.o): Update dependencies.
7866 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7867 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7868 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7869 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7870 (locexpr_tracepoint_var_ref): New function.
7871 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7872
08a617da
AC
78732003-02-28 Andrew Cagney <cagney@redhat.com>
7874
7875 * regcache.c (register_size): New function.
7876 * regcache.h (register_size): Declare
7877 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7878 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7879
4224873a
DC
78802003-02-28 David Carlton <carlton@math.stanford.edu>
7881
7882 * linespec.c (decode_compound): Extract code into find_method.
7883 (find_method): New.
7884
ccdc5d7f
JB
78852003-02-28 J. Brobecker <brobecker@gnat.com>
7886
7887 * Makefile.in: Add rules to build and link in observer.o.
7888
974e8ced
JB
78892003-02-27 J. Brobecker <brobecker@gnat.com>
7890
7891 * observer.c: Minor comments edits.
7892
7a28f973
JB
78932003-02-27 J. Brobecker <brobecker@gnat.com>
7894
7895 * observer.h, observer.c: New file.
7896
27cddce2
AC
78972003-02-27 Andrew Cagney <cagney@redhat.com>
7898
7899 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7900
b94a41a1
SC
79012003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7902
7903 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7904 (M6812_OP_STS_EXT): Likewise.
7905 (m6811_prologue): Use the above to recognize prologue.
7906 (m6812_prologue): Likewise.
7907
c8be8951
DC
79082003-02-27 David Carlton <carlton@math.stanford.edu>
7909
7910 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7911 SYMBOL_PRINT_NAME.
7912 (compare_psymbols): Ditto.
7913 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7914
d05bb1fc
MS
79152003-02-27 Michael Snyder <msnyder@redhat.com>
7916
4e845cd3
MS
7917 * f-lang.c (build_fortran_types): New function.
7918 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
7919 * doublest.c (extract_floating): Fix warning text.
7920
f3824013
AC
79212003-02-27 Andrew Cagney <cagney@redhat.com>
7922
7923 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7924 predicate. Replaces PUSH_DUMMY_FRAME.
7925 * gdbarch.h, gdbarch.c: Regnerate.
7926 * valops.c (hand_function_call): Update. Call
7927 generic_push_dummy_frame directly.
7928 * vax-tdep.c (vax_gdbarch_init): Update.
7929 * sparc-tdep.c (sparc_gdbarch_init): Update.
7930 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7931 * m68k-tdep.c (m68k_gdbarch_init): Update.
7932 * hppa-tdep.c (hppa_gdbarch_init): Update.
7933 * alpha-tdep.c (alpha_gdbarch_init): Update.
7934 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7935 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7936 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7938 push_dummy_frame to generic_push_dummy_frame.
7939 * v850-tdep.c (v850_gdbarch_init): Ditto.
7940 * sh-tdep.c (sh_gdbarch_init): Ditto.
7941 * s390-tdep.c (s390_gdbarch_init): Ditto.
7942 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7943 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7944 * mips-tdep.c (mips_gdbarch_init): Ditto.
7945 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7947 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7948 * i386-tdep.c (i386_gdbarch_init): Ditto.
7949 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7950 * frv-tdep.c (frv_gdbarch_init): Ditto.
7951 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7952 * cris-tdep.c (cris_gdbarch_init): Ditto.
7953 * avr-tdep.c (avr_gdbarch_init): Ditto.
7954 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7955
ad188201
KB
79562003-02-26 Kevin Buettner <kevinb@redhat.com>
7957
7958 * mips-tdep.c (show_mips_abi): New function.
7959 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7960 command ``show mips abi''.
7961
6b37567a 79622003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7963
6b37567a 7964 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 7965 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7966 more sline entries have been seen for the function.
7967
d3e0a5bf
MC
79682003-02-26 Michael Chastain <mec@shout.net>
7969
7970 * configure: Regenerate with autoconf 000227.
7971
18972eea
MC
79722003-02-26 Michael Chastain <mec@shout.net>
7973
7974 Close PR build/660.
7975 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7976 for old libc5/glibc.
7977 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7978
0bbde931
KW
79792003-02-26 Kris Warkentin <kewarken@qnx.com>
7980
7981 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7982 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7983
27ca5dad
MC
79842003-02-26 Michael Chastain <mec@shout.net>
7985
7986 * configure.in: New variable HAVE_UINTPTR_T.
7987 * configure, config.in: Regenerated.
7988
6f88d630
DJ
79892003-02-26 Daniel Jacobowitz <drow@mvista.com>
7990
7991 Fix PR build/1097.
7992 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7993
b14185ce
AC
79942003-02-25 Andrew Cagney <cagney@redhat.com>
7995
7996 * frame.c (get_prev_frame): Add comment on check for
7997 inside_entry_func. Only check for inside_entry_file when not a
7998 dummy and not a sentinel. Check that the new frame is not inner
7999 to the old frame.
8000
ac2bd0a9
AC
80012003-02-25 Andrew Cagney <cagney@redhat.com>
8002
8003 * frame.c (frame_debug): New variable.
8004 (_initialize_frame): Add "set/show debug frame" command.
8005 (get_prev_frame): When frame_debug, print reason why unwind
8006 failed.
8007
b18a0fd2
MC
80082003-02-25 Michael Chastain <mec@shout.net>
8009
8010 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8011 to avoid uintptr_t definition problems.
8012
22abf04a
DC
80132003-02-25 David Carlton <carlton@math.stanford.edu>
8014
8015 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8016 (SYMBOL_LINKAGE_NAME): Ditto.
8017 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8018 SYMBOL_LINKAGE_NAME.
8019 (struct general_symbol_info): Expand comment.
8020 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8021 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8022 (SYMBOL_MATCHES_REGEXP): Ditto.
8023 * symtab.c (symbol_natural_name): New function.
8024 * objfiles.h: Replace all uses of SYMBOL_NAME by
8025 DEPRECATED_SYMBOL_NAME.
8026 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8027 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8028 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8029 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8030 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8031 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8032 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8033 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8034 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8035 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8036 * ada-exp.y: Ditto.
8037 * ada-exp.y: Update copyright.
8038 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8039 * cp-valprint.c: Ditto.
8040
1a5848f6
JJ
80412003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8042
8043 * infptrace.c (detach): Do not flag error if ptrace detach fails
8044 and errno is set to ESRCH.
8045
7343d46a
AC
80462003-02-24 Andrew Cagney <cagney@redhat.com>
8047
8048 * infptrace.c (udot_info): Change type of udot_off to long. Use
8049 paddr when printing udot_off's value.
8050
49fa1dc2
DC
80512003-02-24 David Carlton <carlton@math.stanford.edu>
8052
8053 * symtab.c (make_symbol_overload_list): Only read in partial
8054 symtabs containing a matching partial symbol.
8055
0fe19209
DC
80562003-02-24 David Carlton <carlton@math.stanford.edu>
8057
8058 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8059 do the comparison, not strcmp.
8060 * symfile.c (compare_psymbols): Ditto.
8061 * defs.h: Declare strcmp_iw_ordered.
8062 * utils.c (strcmp_iw_ordered): New function.
8063
8e3ee7b5
JB
80642003-02-24 Jim Blandy <jimb@redhat.com>
8065
8066 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8067 support, shared libs): Remove my name from here, to better reflect
8068 reality.
8069
7df1a324
KW
80702003-02-24 Kris Warkentin <kewarken@qnx.com>
8071
8072 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8073 (target_ops): Add to_have_continuable_watchpoint.
8074 * target.c (update_current_target): Add INHERIT line for
8075 to_have_continuable_watchpoint.
8076 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8077 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8078 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8079 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8080
d1c76907
EZ
80812003-02-24 Elena Zannoni <ezannoni@redhat.com>
8082
8083 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8084 maintainership.
8085
2610b0bf
KW
80862003-02-24 Kris Warkentin <kewarken@qnx.com>
8087
f46169db
KW
8088 * solib.c (solib_open): Call target defined search function after
8089 failing with solib-search-path.
8090 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8091 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8092
9a3c34fe
KW
80932003-02-24 Kris Warkentin <kewarken@qnx.com>
8094
f46169db 8095 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8096
2417dd25
SC
80972003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8098
8099 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8100
b631436b
SC
81012003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8102
8103 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8104 (m68hc11_add_reggroups): New function.
8105 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8106 (m68hc11_gdbarch_init): Install the reggroups.
8107 (_initialize_m68hc11_tdep): Initialize them.
8108
0aa8c1e4
JW
81092003-02-21 James E Wilson <wilson@tuliptree.org>
8110
8111 * MAINTAINERS: Update my email address.
8112
50ceaba5
DC
81132003-02-21 David Carlton <carlton@math.stanford.edu>
8114
8115 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8116
4c2df51b
DJ
81172003-02-21 Daniel Jacobowitz <drow@mvista.com>
8118
8119 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8120 * symtab.h: Add opaque declarations of struct axs_value and
8121 struct agent_expr.
8122 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8123 (struct location_funcs): New type.
8124 (struct symbol): Add "loc" to aux_value.
8125 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8126 * dwarf2read.c: Include "dwarf2expr.h".
8127 (dwarf2_symbol_mark_computed): New function.
8128 (read_func_scope): Use it.
8129 (var_decode_location): New function.
8130 (new_symbol): Use it.
8131 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8132
8133 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8134 (dwarf2expr_h, dwarf2loc_h): New variables.
8135 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8136 (dwarf2expr.o, dwarf2loc.o): New rules.
8137 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8138 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8139 LOC_COMPUTED_ARG.
8140 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8141 * m2-exp.y (yylex): Likewise.
8142 * printcmd.c (address_info, print_frame_args): Likewise.
8143 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8144 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8145 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8146 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8147 * symtab.c (lookup_block_symbol): Likewise.
8148
5784d15e
AF
81492003-02-20 Adam Fedor <fedor@gnu.org>
8150
8151 * symtab.h: Remove objc_specific struct
8152 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8153 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8154 Have language_objc use cplus_specific struct.
8155
d4cad8db
TT
81562003-02-20 Tom Tromey <tromey@redhat.com>
8157
8158 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8159 TYPE_NAME, when printing a String value. PR java/1075.
8160
2f9a90b4
AF
81612003-02-20 Adam Fedor <fedor@gnu.org>
8162
d38074a8 8163 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8164 * objc-lang.c (find_methods): Make static.
2f9a90b4 8165
6f17862b
CF
81662003-02-20 Christopher Faylor <cgf@redhat.com>
8167
8168 * win32-nat.c (get_image_name): Check return value from
8169 ReadProcessMemory.
8170 (child_xfer_memory): Ditto.
8171
715d1656
AO
81722003-02-20 Alexandre Oliva <aoliva@redhat.com>
8173
8174 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8175 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8176 '${exec_prefix}' (in addition to the expansion thereof) as
8177 relocatable.
8178 * configure: Rebuilt.
8179
b1262a02
DC
81802003-02-20 David Carlton <carlton@math.stanford.edu>
8181
8182 * symtab.c (search_symbols): Revert the search_symbols part of my
8183 2002-12-23 patch. Add comment.
8184
7134143f
DJ
81852002-02-20 Daniel Jacobowitz <drow@mvista.com>
8186
8187 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8188 * dbxread.c (elfstab_build_psymtabs): Don't call
8189 install_minimal_symbols.
8190 (stabsect_build_psymtabs): Likewise.
8191 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8192 earlier.
8193 * somread.c (som_symfile_read): Call install_minimal_symbols
8194 and do_cleanups earlier.
8195 * nlmread.c (nlm_symfile_read): Likewise.
8196 * mdebugread.c (elfmdebug_build_psymtabs): Call
8197 install_minimal_symbols and make appropriate cleanups.
8198
cf466558
KB
81992003-02-20 Kevin Buettner <kevinb@redhat.com>
8200
8201 * solib.c (reload_shared_libraries): New function.
8202 (_initialize_solib): Add callbacks for ``set solib-search-path''
8203 and ``set solib-absolute-prefix''.
8204
de5ad195
DC
82052003-02-20 David Carlton <carlton@math.stanford.edu>
8206
8207 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8208 expand comment.
8209 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8210 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8211 * ada-typeprint.c (ada_typedef_print): Ditto.
8212 * ax-gdb.c (gen_var_ref): Ditto.
8213 * breakpoint.c (print_one_breakpoint): Ditto.
8214 * buildsym.c (finish_block): Ditto.
8215 * c-valprint.c (c_val_print): Ditto.
8216 * expprint.c (print_subexp): Ditto.
8217 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8218 * infcmd.c (jump_command): Ditto.
8219 * linespec.c (decode_line_2, decode_compound): Ditto.
8220 * maint.c (maintenance_translate_address): Ditto.
8221 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8222 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8223 Ditto.
8ffd9b1b
AJ
8224 * p-valprint.c (pascal_val_print): Ditto.
8225 * stabsread.c (define_symbol): Ditto.
de5ad195 8226 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8227 (print_frame_arg_vars, return_command): Ditto.
8228 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8229 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8230 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8231 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8232 (rbreak_command): Ditto.
8233 * tracepoint.c (tracepoints_info): Ditto.
8234 * typeprint.c (typedef_print): Ditto.
8235 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8236 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8237 * ada-typeprint.c: Update Copyright.
8238 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8239 * tracepoint.c, cli/cli-cmds.c: Ditto.
8240
f796e4be
KB
82412003-02-20 Kevin Buettner <kevinb@redhat.com>
8242
8243 * frame.c (generic_unwind_get_saved_register): Make non-static.
8244 * frame.h (generic_unwind_get_saved_register): Declare.
8245 * mips-tdep.c (read_next_frame_reg): Fetch register from
8246 current regcache when frame is NULL.
8247 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8248 that must be NULL.
8249 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8250 instead of frame_register_unwind().
8251
836cc9f4
AC
82522003-02-20 Andrew Cagney <ac131313@redhat.com>
8253
8254 * remote-sim.c (gdbsim_insert_breakpoint)
8255 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8256 code.
8257
501eef12
AC
82582003-02-20 Andrew Cagney <ac131313@redhat.com>
8259
8260 * remote.c (_initialize_remote): Add commands "set/show remote
8261 hardware-watchpoint-limit" and "set/show remote
8262 hardware-breakpoint-limit".
8263 (remote_hw_watchpoint_limit): Initialize to -1.
8264 (remote_hw_breakpoint_limit): Ditto.
8265 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8266
1b6bc7e0
CF
82672003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8268
8269 * coff-pe-read.c: New file - support reading of minimal symbols from a
8270 portable executable using the export table.
8271 * coff-pe-read.h: New file.
8272 * coffread.c: Include coff-pe-read.h.
8273 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8274 debugging symbols found.
8275 * Makefile.in (SFILES): Add coff-pe-read.o.
8276 (coff_pe_read_h): Define.
8277 (COMMON_OBS): Add coff-pe-read.o.
8278 (coffread.o): Add coff_pe_read_h dependency.
8279 (coff-pe-read.o): New target.
8280
fe898f56
DC
82812003-02-19 David Carlton <carlton@math.stanford.edu>
8282
8283 * Makefile.in (SFILES): Add block.c.
8284 (block_h): New.
8285 (COMMON_OBS): Add block.o.
8286 (block.o): New.
8287 (x86-64-tdep.o): Add $(block_h).
8288 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8289 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8290 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8291 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8292 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8293 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8294 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8295 * value.h: Add opaque declaration for struct block.
8296 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8297 * ada-lang.h: Ditto.
8298 * x86-64-tdep.c: #include "block.h"
8299 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8300 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8301 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8302 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8303 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8304 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8305 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8306 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8307 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8308 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8309 * symtab.c (block_function): Ditto.
8310 (contained_in): Ditto.
8311 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8312 block.h. Add opaque declaration for struct block.
8313 * symtab.h: Move block_function and contained_in declarations to
8314 block.h. Add opaque declarations for struct block, struct
8315 blockvector.
8316 (struct block): Move to block.h.
8317 (struct blockvector): Ditto.
8318 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8319 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8320 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8321 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8322 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8323 Ditto.
8324 * block.c: New file.
8325 * block.h: New file.
8326
173345b5
TR
83272003-02-19 Theodore A. Roth <troth@openavr.org>
8328
8329 * avr-tdep.c (avr_extract_return_value): Remove function.
8330 (avr_store_return_value): Remove function.
8331 (avr_extract_struct_value_address): Remove function.
8332 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8333
338ef23d
AC
83342003-02-19 Andrew Cagney <ac131313@redhat.com>
8335
8336 * rs6000-tdep.c: Include "gdb_assert.h".
8337 (registers_e500): Add "acc" and "spefscr".
8338 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8339 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8340 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8341 really is "r0".
8342 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8343
5412f5f3
KS
83442003-02-18 Keith Seitz <keiths@redhat.com>
8345
8346 * Makefile.in: Add gdbtk-interps.c.
8347
881324eb
KB
83482003-02-18 Kevin Buettner <kevinb@redhat.com>
8349
8350 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8351 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8352
6a2f5abf
AC
83532003-02-18 Andrew Cagney <cagney@redhat.com>
8354
8355 * symtab.h (struct objfile): Add opaque declaration.
8356
54c7009d
EZ
83572003-02-18 Elena Zannoni <ezannoni@redhat.com>
8358
8359 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8360 * dbxread.c (process_one_symbol): Use last_function_start rather
8361 than function_start_offset to find the real beginning of the
8362 current function. The latter is just the text section offset on
8363 some systems, the former is always the real function start.
54c7009d 8364
7ee6d7eb
AC
83652003-02-17 Andrew Cagney <cagney@redhat.com>
8366
8367 * configure.in: Revert ${target} != ${host}.
8368
2846da9b
AC
83692003-02-17 Andrew Cagney <ac131313@redhat.com>
8370
8371 * configure.in (Makefile): Use the test ${target} != ${host},
8372 instead of the absence of the "nm.h" file, to determine of the
8373 configuration non-native.
8374 * configure: Regenerate.
8ffd9b1b 8375
3b27aeea
EZ
83762003-02-14 Elena Zannoni <ezannoni@redhat.com>
8377
fbe586ae 8378 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8379
8380 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8381 conditionalize tui_active test.
8382 (lookup_cmd_1): Ditto.
8383
b0b1c2c0
MK
83842003-02-14 Mark Kettenis <kettenis@gnu.org>
8385
8386 * configure.in: Add check for _etext.
8387 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8388 available.
8389 * config.in, configure: regenerated.
8390
8f05cde5
DJ
83912003-02-14 Daniel Jacobowitz <drow@mvista.com>
8392
8393 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8394
021e7609
AC
83952003-02-14 Andrew Cagney <ac131313@redhat.com>
8396
8397 * main.c (tui_version): Delete variable.
8398 (captured_main): When --tui, set interpreter_p to "tui" instead of
8399 enabling tui_version.
8400 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8401 tui_version.
8402 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8403 * cli/cli-cmds.c (disassemble_command): Ditto.
8404 * defs.h (tui_version): Delete declaration.
8405 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8406 (tui-interp.o): Add rules.
8407 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8408
e325dcec
CF
84092003-02-14 Christopher Faylor <cgf@redhat.com>
8410
36ffb041 8411 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8412 just-loaded dll.
8413
c4f90d87
JM
84142003-02-12 Jason Molenda (jmolenda@apple.com)
8415
fbe586ae
RH
8416 * symmisc.c (print_objfile_statistics): Include information about
8417 the number of psymtabs and symtabs in each object file.
c4f90d87 8418
e46e5ccd
KS
84192003-02-13 Keith R Seitz <keiths@redhat.com>
8420
8421 * main.h (struct captured_main_args): Add interpreter_p.
8422 * main.c (captured_main): Initialize interpreter_p from context.
8423 * gdb.c (main): Set interpreter_p argument.
8424 * Makefile.in (gdb.o): Add dependency for interps.h.
8425
fe97fe9c
AC
84262003-02-12 Andrew Cagney <ac131313@redhat.com>
8427
8428 * event-top.c (cli_command_loop): Delete declaration.
8429 (_initialize_event_loop): Delete function setting event_loop_hook.
8430 * event-top.h (cli_command_loop): Declare. Update copyright.
8431 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8432 * interps.c (current_interp_command_loop): When event_loop_p, call
8433 cli_command_loop.
8434
1cdac4ef
AC
84352003-02-12 Andrew Cagney <ac131313@redhat.com>
8436
8437 * interps.h (interp_command_loop_ftype): Change return type to
8438 void.
8439
48037ead
ML
84402003-02-12 Michal Ludvig <mludvig@suse.cz>
8441
8442 * x86-64-tdep.c (x86_64_extract_return_value)
8443 (x86_64_store_return_value): Use regcache instead of regbuf.
8444 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8445 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8446
033afc63
AC
84472003-02-11 Andrew Cagney <ac131313@redhat.com>
8448
8449 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8450 * aclocal.m4: Regenerate.
8451 * configure: Regenerate.
8452
8453 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8454 TCL_LD_SEARCH_FLAGS.
8455
40d02bca
ML
84562003-02-10 Michal Ludvig <mludvig@suse.cz>
8457
8458 * dwarf2cfi.c: Reindented.
8459
11308a41
AC
84602003-02-09 Andrew Cagney <ac131313@redhat.com>
8461
8462 * interps.c (clear_interpreter_hooks): Convert function definition
8463 to ISO C.
8464
e1c1c0f6
DC
84652003-02-07 David Carlton <carlton@math.stanford.edu>
8466
8467 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8468
ab5d3da6
KB
84692003-02-07 Kevin Buettner <kevinb@redhat.com>
8470
8471 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8472 (struct type): ...to here.
8473 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8474 field.
8475 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8476 (replace_type): Set length on all type variants for a given type.
8477
b8a92b82
AC
84782003-02-07 Andrew Cagney <ac131313@redhat.com>
8479
8480 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8481 <sys/stat.h>.
8482 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8483
5cb316ef
AC
84842003-02-06 Andrew Cagney <ac131313@redhat.com>
8485
2555fe1a
AC
8486 * Makefile.in (symm-nat.o): Update dependencies.
8487 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8488 (lynx-nat.o, ia64-linux-nat.): Ditto.
8489 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8490 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8491 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8492
44270758
AC
8493 * Makefile.in (inflow_h): Define.
8494 (procfs.o, inflow.o, procfs.o): Update dependencies.
8495 * inftarg.c (child_stop): Delete extern declaration of
8496 inferior_process_group. Include "inflow.h".
8497 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8498 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8499 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8500 (our_process_group, inferior_process_group): Extern declarations.
8501
df8f7274
AC
8502 * procfs.c: Include "gdb_assert.h".
8503
5cb316ef
AC
8504 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8505 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8506 * jv-typeprint.c (java_type_print_base): Ditto.
8507 * typeprint.c (typedef_print): Eliminate STREQ.
8508 * cli/cli-script.c (define_command, define_command): Ditto.
8509 * main.c (captured_main): Ditto.
8510 * values.c (lookup_internalvar): Ditto.
8511 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8512 within `if' conditional.
8513 * linespec.c (decode_line_2): Ditto.
8514 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8515 (bfd_openw_with_cleanup): Ditto.
8516
2a28ccea
MK
85172003-02-07 Mark Kettenis <kettenis@gnu.org>
8518
8519 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8520 legacy_extract_return_value and store_return_value to
8521 legacy_return_value.
8522
786b8124
CF
85232003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8524
8525 * win32-nat.c (get_relocated_section_addrs): New function. Find
8526 section load addresses for symbol handling in relocated DLLs.
8527 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8528
b871e4ec
FF
85292003-02-05 Fred Fish <fnf@intrinsity.com>
8530
8531 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8532 '=' and '!='.
8533 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8534 with '&' and '=='.
8535 (angel_RDI_info): Ditto.
8536 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8537 with '&' and '!='.
8538 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8539
4389a95a 85402003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8541 Keith Seitz <keiths@redhat.com>
8542 Elena Zannoni <ezannoni@redhat.com>
8543 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8544
8545 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8546 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8547 (SUBDIR_MI_OBS): Add "mi-interp.o".
8548 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8549 (SFILES): Add "interps.c".
8550 (COMMON_OBS): Add "interps.o".
8551 (interps_h, mi_main_h): Define.
8552 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8553 (mi-main.o, main.o, event-top.o): Update dependencies.
8554 * cli/cli-interp.c: New file.
8555 * interps.h, interps.c: New files.
8556 * top.c: (gdb_init): Don't install the default interpreter, handed
8557 by captured_main.
8558 * main.c: Include "interps.h".
8559 (interpreter_p): Note that it should malloc'ed.
8560 (captured_command_loop): Call current_interp_command_loop.
8561 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8562 xfree and xstrdup when updating interpreter_p. Install the
8563 default interpreter. Add hack to stop mi1's copyright notice
8564 being encoded.
8565 * event-top.h (gdb_setup_readline): Declare.
8566 (gdb_disable_readline): Declare.
8567 * event-top.c: Include "interps.h".
8568 (display_gdb_prompt): Call current_interp_display_prompt_p.
8569 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8570 gdb_stdlog, and gdb_stdtarg.
8571 (_initialize_event_loop): Don't call gdb_setup_readline.
8572 * cli-out.c (cli_out_set_stream): New function.
8573 * cli-out.h (cli_out_set_stream): Declare.
8574
ff3b5810
MK
85752003-02-06 Mark Kettenis <kettenis@gnu.org>
8576
8577 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8578 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8579 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8580 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8581 config/i386/i386v42mp.mt: Removed.
8582
5b729aa5
MK
85832003-02-05 Mark Kettenis <kettenis@gnu.org>
8584
8585 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8586 GDB_OSABI_SOLARIS.
8587
8cc15142
MC
85882003-02-05 Michael Chastain <mec@shout.net>
8589
8590 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8591 2.12.1 and earlier versions.
8592
5aa5d4b9
AC
85932003-02-05 Andrew Cagney <ac131313@redhat.com>
8594
8595 Remove orphaned hosts, targets and files.
8596 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8597 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8598 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8599 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8600 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8601 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8602 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8603 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8604 * config/sparc/tm-sp64sim.h: Delete.
8605 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8606 hosts.
8607 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8608 mips*-dec-mach3* targets.
8609
b68767c1
MC
86102003-02-04 Michael Chastain <mec@shout.net>
8611
8612 * NEWS: Fix typo: sepcifying -> specifying.
8613
5ae7ca1d
MC
86142003-02-04 Michael Chastain <mec@shout.net>
8615
8616 * dwarfread.c: Add documentation on the state of dwarf-1,
8617 looking towards obsoletion.
8618
d08a4280
MC
86192003-02-03 Michael Chastain <mec@shout.net>
8620
8621 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8622 gdb/testsuite/gdb.c++/pr-1023.exp.
8623
e9be73e4
AC
86242003-02-04 Andrew Cagney <ac131313@redhat.com>
8625
8626 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8627 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8628
8629 * utils.c (init_page_info): Delete reference to MPW in comments.
8630 * main.c (captured_main): Delete #ifdef MPW.
8631
05d57f6f
AC
86322003-02-04 Andrew Cagney <ac131313@redhat.com>
8633
8ffd9b1b 8634 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
8635 * monitor.c (monitor_expect): Obsolete reference to m32r.
8636 * configure.tgt: Mark m32r-*-elf* as obsolete.
8637 * MAINTAINERS: Mark m32k as obsolete.
8638 * m32r-rom.c: Obsolete file.
8639 * config/m32r/m32r.mt: Obsolete file.
8640 * config/m32r/tm-m32r.h: Obsolete file.
8641 * m32r-stub.c: Obsolete file.
8642 * m32r-tdep.c: Obsolete file.
8643
8b0e5691
AC
86442003-02-04 Andrew Cagney <ac131313@redhat.com>
8645
8646 * NEWS: Mention that the z8k-zilog-none is obsolete.
8647 * MAINTAINERS: Mark z8k as obsolete.
8648 * configure.tgt: Obsolete the z8k-*-coff* target.
8649 * config/z8k/z8k.mt: Obsolete file.
8650 * config/z8k/tm-z8k.h: Obsolete file.
8651 * z8k-tdep.c: Obsolete file.
8652
67f16606
AC
86532003-02-04 Andrew Cagney <ac131313@redhat.com>
8654
8655 * NEWS: Mention that the mn10200-elf is obsolete.
8656 * configure.tgt: Obsolete mn10200-*-* target.
8657 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8658 mention that the mn10200 is obsolete.
8659 * breakpoint.h: Ditto.
8660 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8661 * config/mn10200/mn10200.mt: Obsolete file.
8662 * config/mn10200/tm-mn10200.h: Obsolete file.
8663 * mn10200-tdep.c: Obsolete file.
8664
fd2299bd
AC
86652003-02-04 Andrew Cagney <ac131313@redhat.com>
8666
8667 * MAINTAINERS: Mark h8500 as obsolete.
8668 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8669 * findvar.c (value_from_register): Ditto.
8670 * h8500-tdep.c: Mark file as obsolete.
8671 * config/h8500/h8500.mt: Ditto.
8672 * config/h8500/tm-h8500.h: Ditto.
8673 * NEWS: Mention that h8500 is obsolete.
8674
eb9a305d
DC
86752003-02-04 David Carlton <carlton@math.stanford.edu>
8676
8677 * objfiles.c (allocate_objfile): Always set name. Add comment at
8678 start of function.
8679 * jv-lang.c (get_dynamics_objfile): Add comment.
8680
406fc7fb
DC
86812003-02-04 David Carlton <carlton@math.stanford.edu>
8682
8683 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8684 * printcmd.c (build_address_symbolic): Replace uses of
8685 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8686 SYMBOL_NAME, and asm_demangle.
8687 Update copyright.
8688
93d91629
DC
86892003-02-04 David Carlton <carlton@math.stanford.edu>
8690
8691 * linespec.c (decode_compound): Extract code into
8692 lookup_prefix_sym.
8693 (lookup_prefix_sym): New function.
8694
1c5cb38e
DC
86952003-02-04 David Carlton <carlton@math.stanford.edu>
8696
8697 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8698 FLOAT_COERCION_BADNESS.
8699 * gdbtypes.c (rank_one_type): Replace all uses of
8700 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8701
0cf824c9
JB
87022003-02-04 Jim Blandy <jimb@redhat.com>
8703
8704 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8705 section, let dwarf_macinfo_section point to it, not
8706 dwarf_loc_section.
8707
a2d356b0
DJ
87082003-02-04 Daniel Jacobowitz <drow@mvista.com>
8709
8710 Pointed out by Anton Blanchard <anton@samba.org>.
8711 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8712 (ppc_linux_at_sigtramp_return_path): Use it.
8713
2de7ced7
DJ
87142003-02-04 Daniel Jacobowitz <drow@mvista.com>
8715
8716 * defs.h (streq): Add prototype.
8717 * utils.c (streq): New function.
8718
8719 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8720 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8721 * mdebugread.c (new_symbol): Likewise.
8722 * stabsread.c (define_symbol): Likewise.
8723 * coffread.c (process_coff_symbol): Likewise.
8724 * dwarfread.c (new_symbol): Likewise.
8725
8726 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8727 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8728 here.
8729 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8730 SYMBOL_INIT_DEMANGLED_NAME.
8731 * objfiles.c: Include "hashtab.h".
8732 (allocate_objfile): Call htab_set_functions_ex for the
8733 demangled_names_hash.
8734 (free_objfile): Call htab_delete for the demangled_names_hash.
8735 * objfiles.h (struct htab): Add declaration.
8736 (struct objfile): Add demangled_names_hash.
8737 * symfile.c: Include "hashtab.h".
8738 (reread_symbols): Call htab_delete for the demangled_names_hash.
8739 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8740 SYMBOL_NAME in the bcache.
8741 * symtab.c: Include "hashtab.h". Update comments.
8742 (create_demangled_names_hash, symbol_set_names): New functions.
8743 (symbol_find_demangled_name): New function, broken out from
8744 symbol_init_demangled_names.
8745 (symbol_init_demangled_names): Use it.
8746 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8747 (SYMBOL_SET_NAMES): New macro.
8748 (symbol_set_names): Add prototype.
8749
15831452
JB
87502003-02-03 Jim Blandy <jimb@redhat.com>
8751
8752 Use a single, consistent representation for an empty minimal
8753 symbol table in an objfile.
8754 * objfiles.c (terminate_minimal_symbol_table): New function.
8755 (allocate_objfile): Call it.
8756 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8757 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 8758 non-NULL.
15831452
JB
8759 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8760 objfile has minimal symbols, compare minimal_symbol_count to zero,
8761 instead of comparing msymbols with NULL.
8762 * objfiles.c (have_minimal_symbols): Same.
8763 * solib-sunos.c (solib_add_common_symbols): Call
8764 terminate_minimal_symbol_table.
8765 * symfile.c (reread_symbols): Same.
8ffd9b1b 8766
ffc65945
KB
87672003-02-03 Kevin Buettner <kevinb@redhat.com>
8768
8769 * s390-tdep.c (s390_address_class_type_flags)
8770 (s390_address_class_type_flags_to_name)
8771 (s390_address_class_name_to_type_flags): New functions.
8772 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8773 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8774
f211c6d4
MS
87752003-02-03 Michael Snyder <msnyder@redhat.com>
8776
8777 * arm-tdep.c: Fix spell-o in comment.
8778
659b0389
ML
87792003-02-03 Michal Ludvig <mludvig@suse.cz>
8780
8781 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8782 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 8783 error messages to contain BFD filename.
659b0389 8784
3b31d625
EZ
87852003-02-02 Elena Zannoni <ezannoni@redhat.com>
8786
997b089a 8787 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
8788 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8789 (do_mixed_source_and_assembly): Use
8790 make_cleanup_ui_out_tuple_begin_end and
8791 make_cleanup_ui_out_tuple_begin_end.
8792 (do_mixed_source_and_assembly): Ditto.
8793 * thread.c (do_captured_list_thread_ids): Ditto.
8794 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8795 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8796 ui_out_tuple_end): Delete prototypes.
8797 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8798 ui_out_list_end, ui_out_tuple_end): Delete.
8799
8800 From Kevin Buettner <kevinb@redhat.com>:
8801 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
8802 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8803 (do_cleanup_table_end): New functions.
8804 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8805 Use cleanups to invoke_ui_out_tuple_end().
8806 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
8807 * cli/cli-setshow.c (cmd_show_list): Use
8808 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 8809
5b181d62
AC
88102003-02-02 Andrew Cagney <ac131313@redhat.com>
8811
8812 * frame.c (frame_unwind_register): New function.
8813 (frame_unwind_unsigned_register): Use.
8814 (frame_unwind_signed_register): Use.
8815 (frame_read_register): New function.
8816 * frame.h (frame_unwind_register): Declare.
8817 (frame_read_register): Declare.
8818
8819 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8820 and frame_unwind_register instead of read_memory, write_register
8821 and deprecated_write_register_bytes.
8822
5f601589
AC
88232003-02-02 Andrew Cagney <ac131313@redhat.com>
8824
8825 * frame.h: Note that namelen can be negative.
8826 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8827 NAME's length.
8828
8829 * NEWS: Mention that the d10v's `regs' command is deprecated.
8830 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8831 (d10v_print_registers_info): New function.
8832 (show_regs): Call d10v_print_registers_info.
8833 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8834
6a3fe0a4
MK
88352003-02-02 Mark Kettenis <kettenis@gnu.org>
8836
8837 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8838 lost in the previous patch.
8839
075559bc
AC
88402003-02-01 Andrew Cagney <ac131313@redhat.com>
8841
8842 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
8843 * stack.c (print_frame_info_base): Output complete FRAME tuple
8844 for synthesized frames.
075559bc 8845
6789195b
AC
88462003-02-02 Andrew Cagney <ac131313@redhat.com>
8847
8848 * mips-nat.c (zerobuf): Delete.
8849 (fetch_inferior_registers): Alloc local zerobuf.
8850 (fetch_core_registers): Alloc local zerobuf.
8851 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8852 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8853 * thread-db.c (thread_db_store_registers): Ditto.
8854 * sh-tdep.c (sh_do_register): Ditto.
8855 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8856 * remote-sim.c (gdbsim_store_register): Ditto.
8857 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8858 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8859 * monitor.c (monitor_supply_register): Ditto.
8860 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8861 * mips-nat.c (fetch_inferior_registers): Ditto.
8862 * m68klinux-nat.c (fetch_register): Ditto.
8863 * lynx-nat.c (fetch_inferior_registers): Ditto.
8864 (fetch_inferior_registers): Ditto.
8865 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8866 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8867 (hpux_thread_store_registers): Ditto.
8868 * hppah-nat.c (fetch_register): Ditto.
8869 * hppab-nat.c (fetch_register): Ditto.
8870 * hppa-tdep.c (pa_register_look_aside): Ditto.
8871 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8872 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8873
e669114a
AC
88742003-02-01 Andrew Cagney <ac131313@redhat.com>
8875
8876 * gdbarch.sh: Explictly specify all method levels. When a
8877 variable with an empty level, provide a non-multi-arch default.
8878 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8879 * gdbarch.h: Re-generate.
8880 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8881 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8882
9a043c1d
AC
88832003-02-01 Andrew Cagney <ac131313@redhat.com>
8884
8885 * defs.h (host_pointer_to_address): Delete declaration.
8886 (address_to_host_pointer): Delete declaration.
8887 * utils.c (host_pointer_to_address): Delete function.
8888 (address_to_host_pointer): Delete function.
8889 * procfs.c (procfs_address_to_host_pointer): New function.
8890 * procfs.c (proc_set_watchpoint): Use.
8891 (procfs_can_use_hw_breakpoint): Update comments.
8892 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8893 (som_solib_add): Use.
8894 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8895 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 8896
7ca9f392
AC
88972003-02-01 Andrew Cagney <ac131313@redhat.com>
8898
94bbfd30
AC
8899 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8900 strlen d_name.
8901
7ca9f392
AC
8902 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8903 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8904 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8905 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8906 (define_symbol): Update.
8907 * symfile.c (generic_load): Remove references to nindy.
8908 * symtab.c: Remove references to nindy.
8909
31a85ea2
AC
89102003-02-01 Andrew Cagney <ac131313@redhat.com>
8911
8912 * infcmd.c (print_float_info): Delete code conditional on
8913 FLOAT_INFO.
8914 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8915 * config/m68k/nm-apollo68b.h: Ditto.
8916 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8917 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8918 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8919
f6e85fc8
MK
89202003-02-01 Mark Kettenis <kettenis@gnu.org>
8921
6015b6a0
MK
8922 * config/i386/tm-i386os9k.h: Removed.
8923
f7a30bdf
MK
8924 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8925 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8926 they're identical to i[3456]86-*-sysv* now.
8927 * config/i386/i386v32.mh: Removed.
8928 * config/i386/xm-i386v32.h: Removed.
8929 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8930
28d52111
MK
8931 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8932
4d3f6bce
MK
8933 * config/i386/i386dgux.mh: Removed.
8934 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8935
f6e85fc8
MK
8936 * configure.in: Fix typo.
8937 * configure: Regenerated.
8938
53955967
DC
89392003-01-31 David Carlton <carlton@math.stanford.edu>
8940
8941 * dwarf2read.c (dwarf2_locate_sections): Set
8942 dwarf_ranges_section.
8943
b1364885
AC
89442003-01-31 Andrew Cagney <ac131313@redhat.com>
8945
8dbb1c65
AC
8946 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8947 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8948
8731e58e
AC
8949 * utils.c: Re-indent.
8950
b1364885
AC
8951 * config/djgpp/fnchange.lst: Delete nindy files.
8952 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8953 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8954 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8955 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8956 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8957 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8958 * Makefile.in (init.c): Remove nindy references.
8959 (saber_gdb): Delete rule.
8960 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8961 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8962 and a68v-nat.c.
8963 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8964 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8965 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8966 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8967 nindy-share/stop.h.
8968 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8969 * saber.suppress: Delete file.
8970
086df311
DJ
89712003-01-31 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * dbxread.c (stabs_data): New static variable.
8974 (fill_symbuf): Support an in-memory buffer for stabs data.
8975 (stabs_seek): New function.
8976 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8977 (read_ofile_symtab): Use stabs_seek.
8978 (elfstab_build_psymtabs): Take an asection* instead of
8979 an offset and size. Relocate the stabs data if necessary.
8980 Save the section* for dbx_psymtab_to_symtab.
8981 * dwarf2read.c: Add section variables for each debug section.
8982 (dwarf2_locate_sections): Fill them in.
8983 (dwarf2_read_section): Take an asection* argument.
8984 Relocate the section contents if necessary.
8985 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8986 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8987 it to dwarf2_read_section.
8988 (dwarf2_build_frame_info): Update callers.
8989 * elfread.c (elf_symfile_read): Update call to
8990 elfstab_build_psymtabs.
8991 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8992 (DBX_STAB_SECTION): New macro.
8ffd9b1b 8993 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
8994 * symfile.c (symfile_dummy_outputs): New function.
8995 (symfile_relocate_debug_section): New function.
8996 * symfile.h (symfile_relocate_debug_section): Add prototype.
8997
87d1b352
RH
89982003-01-31 Richard Henderson <rth@redhat.com>
8999
9000 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9001 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9002 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9003 * alpha-tdep.c (alpha_register_name): Add "unique".
9004 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9005 (ALPHA_UNIQUE_REGNUM): New.
9006 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9007
c48861fb
AC
90082003-01-31 Andrew Cagney <ac131313@redhat.com>
9009
9010 * README: Remove reference to Ericsson 1800 monitor.
9011 * Makefile.in (remote-es.o): Delete rule.
9012 (ALLDEPFILES): Delete remote-es.c.
9013 * remote-es.c: Delete file.
9014 * config/m68k/es1800.mt: Delete file.
9015 * config/djgpp/fnchange.lst: Update.
9016 * configure.tgt: Delete m68*-ericsson-* target.
9017
d764a824
AF
90182003-01-31 Adam Fedor <fedor@gnu.org>
9019
9020 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9021 Remove duplicate/shadowing variable of same name.
9022
fe36c4f4
JB
90232003-01-30 Jim Blandy <jimb@redhat.com>
9024
9025 * symfile.c (find_separate_debug_file): Assert that the objfile's
9026 directory name we compute ends with a slash, and then assume that
9027 that's so everywhere we use it.
9028
cb741690
DJ
90292003-01-30 Daniel Jacobowitz <drow@mvista.com>
9030
9031 * valops.c (value_assign): Flush frame cache after stores to memory
9032 also.
9033
96ee5227
AC
90342003-01-30 Andrew Cagney <ac131313@redhat.com>
9035
9036 * Makefile.in (mon960-rom.o): Delete rule.
9037 * mon960-rom.c: Delete file.
9038
7f6104a9
AC
90392003-01-30 Andrew Cagney <ac131313@redhat.com>
9040
9041 * d10v-tdep.c: Include "frame-unwind.h".
9042 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9043 list.
9044 (next_addr, uses_frame): Delete.
9045 (struct d10v_unwind_cache): Define.
9046 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9047 Use info instead of next_addr and uses_frame globals.
9048 (d10v_frame_init_saved_regs): Delete function.
9049 (d10v_init_extra_frame_info): Delete function.
9050 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9051 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9052 init_frame_pc or frame_saved_pc.
9053 (d10v_pop_frame): Delete function.
9054 (do_d10v_pop_frame): Delete function.
9055 (d10v_frame_chain): Delete function.
9056 (d10v_frame_chain_valid): Delete function.
9057 (d10v_frame_pc_unwind): New function.
9058 (d10v_frame_id_unwind): New function.
9059 (saved_regs_unwinder): New function.
9060 (d10v_frame_register_unwind): New function.
9061 (d10v_frame_pop): New function.
9062 (d10v_frame_unwind): New variable.
9063 (d10v_frame_p): New function.
9064 (d10v_frame_saved_pc): Delete function.
9065 * Makefile.in (d10v-tdep.o): Update dependencies.
9066
cad2e848
JB
90672003-01-30 J. Brobecker <brobecker@gnat.com>
9068
9069 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9070 causing some regressions due to a change in the default value
9071 for this macro.
9072
af34e669
DJ
90732003-01-29 Richard Henderson <rth@redhat.com>
9074 Elena Zannoni <ezannoni@redhat.com>
9075 Daniel Jacobowitz <drow@mvista.com>
9076
9077 Fix PR gdb/961.
8ffd9b1b 9078 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9079 variables.
9080 (RANGES_SECTION): New.
9081 (dwarf_ranges_buffer): New variable.
9082 (struct comp_unit_head): Add member "die".
9083 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9084 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9085 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9086 (dwarf2_locate_sections): Likewise.
9087 (dwarf2_build_psymtabs): Read .debug_ranges.
9088 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9089 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9090 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9091 Look for DW_AT_ranges and return the bounding box.
9092
baa93fa6
CF
90932003-01-29 Brian Ford <ford@vss.fsi.com>
9094
9095 * win32-nat.c (cygwin_pid): Removed as unused.
9096 (child_attach): Try fall back to Cygwin pid.
9097
c63f977f
JB
90982003-01-29 Jim Blandy <jimb@redhat.com>
9099
9100 * objfiles.h (struct objfile): Doc fix.
9101
d62d1979
AC
91022003-01-29 Andrew Cagney <ac131313@redhat.com>
9103
9104 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9105 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9106 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9107 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9108 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9109 (FRAME_SAVED_PC): Change to a function with predicate.
9110 * gdbarch.h, gdbarch.c: Re-generate.
9111
1ae18a04
AC
91122003-01-28 Andrew Cagney <ac131313@redhat.com>
9113
52287340
AC
9114 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9115
1ae18a04
AC
9116 * complaints.c (complain): Delete function.
9117 * complaints.h (struct deprecated_complaint): Delete definition.
9118 (complain): Delete declaration.
9119
f2c16bd6
KB
91202003-01-28 Kevin Buettner <kevinb@redhat.com>
9121
9122 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9123 dummy frames.
9124
a94dd1fd
AC
91252003-01-27 Andrew Cagney <ac131313@redhat.com>
9126
9127 * sentinel-frame.h, sentinel-frame.c: New files.
9128 * Makefile.in (frame.o): Update dependencies.
9129 (SFILES): Add sentinel-frame.c.
9130 (sentinel_frame_h): Define.
9131 (COMMON_OBS): Add sentinel-frame.o.
9132 (sentinel-frame.o): Specify dependencies.
9133 * frame.c: Include "sentinel-frame.h".
9134 (frame_register_unwind): Rewrite assuming that there is always a a
9135 ->next frame.
9136 (frame_register, generic_unwind_get_saved_register): Ditto.
9137 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9138 (create_sentinel_frame, unwind_to_current_frame): New functions.
9139 (get_current_frame): Rewrite using create_sentinel_frame and
9140 unwind_to_current_frame. When possible, always create a frame.
9141 (create_new_frame): Set next to the sentinel frame.
9142 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9143 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9144 ID cache when necessary.
9145 (frame_saved_regs_id_unwind): Use frame_relative_level.
9146 (deprecated_generic_get_saved_register): Use frame_relative_level,
9147 get_frame_saved_regs, get_frame_pc, get_frame_base and
9148 get_next_frame.
9149 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9150 frame_register.
9151
5378adc4
DJ
91522003-01-27 Daniel Jacobowitz <drow@mvista.com>
9153
9154 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9155
51ee2ddc
DJ
91562003-01-27 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9159 (maintenance_set_profile_cmd): Use error () instead of warning ().
9160
d9feb4e7
DJ
91612003-01-27 Daniel Jacobowitz <drow@mvista.com>
9162
9163 * configure.in: Check that -pg works if using --enable-profiling.
9164 Check for monstartup and _mcleanup regardless of --enable-profiling.
9165 * maint.c: Check for monstartup and _mcleanup before using them.
9166 * config.in: Regenerated.
9167 * configure: Regenerated.
9168
2d188dd3
NC
91692003-01-24 Nick Clifton <nickc@redhat.com>
9170
9171 * Add sh2e support:
9172
9173 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9174
9175 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9176 (sh2e_show_regs): New.
9177 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9178 * config/sh/tm-sh.h: Added sh2e to comments.
9179
cb3c37b2
JB
91802003-01-23 Jim Blandy <jimb@redhat.com>
9181
9182 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9183 symbols found)" message here; we haven't checked for a separate
9184 debug info file yet, so we don't know yet.
9185 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9186 we've looked everywhere. Also, there's no need to print a special
9187 message when we're loading the separate debug info file: the one
9188 symbol_file_add prints is fine.
9189
5b5d99cf
JB
91902003-01-23 Alexander Larsson <alexl@redhat.com>
9191 Jim Blandy <jimb@redhat.com>
9192
9193 Add support for executables whose debug info has been separated
9194 out into a separate file, leaving only a link behind.
9195 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9196 and separate_debug_objfile_backlink.
9197 (put_objfile_before): New declaration.
9198 * symfile.c: #include "filenames.h".
9199 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9200 debug info in a separate file, read that, too. Save the addrs
9201 argument, so we can use it again to read the separated debug info;
9202 syms_from_objfile modifies the table we pass it.
9203 (reread_symbols): After re-reading an objfile, call
9204 reread_separate_symbols to refresh its separate debug info
9205 objfile, if it has one.
9206 (reread_separate_symbols, find_separate_debug_file,
9207 get_debug_link_info, separate_debug_file_exists): New functions.
9208 (debug_file_directory): New global var.
9209 (_initialize_symfile): Initialize debug_file_directory, and
9210 provide the new `set debug-file-directory' command to let the user
9211 change it.
9212 * objfiles.c (free_objfile): If this objfile has its debug info in
9213 a separate objfile, free that one too. If this is itself a
9214 separate debug info objfile, clear our parent's backlink.
9215 (put_objfile_before): New function.
9216 * utils.c (gnu_debuglink_crc32): New function.
9217 * defs.h (gnu_debuglink_crc32): New declaration.
9218 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9219 * configure.in: Handle --with-separate-debug-dir config option.
9220 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9221 * acconfig.h (DEBUGDIR): New macro.
9222 * configure, aclocal.m4, config.in: Regenerated.
9223
7e8580c1
JB
92242003-01-22 Jim Blandy <jimb@redhat.com>
9225
7904e09f
JB
9226 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9227 like the old symbol_file_add, but taking new arguments: you can
9228 now pass in either a `struct section_addr_info' list to say where
9229 each section is loaded, or a `struct section_offsets' table. Pass
9230 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9231 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9232 with the appropriate quiescent values for the new arguments.
9233
7e8580c1
JB
9234 * symfile.c: #include "gdb_assert.h".
9235 (syms_from_objfile): Add the ability to pass in a section offset
9236 table directly, as an alternative to the section_addr_info table.
9237 Document arguments better.
9238 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9239 * symfile.h (syms_from_objfile): Update declaration.
9240 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9241 syms_from_objfile.
9242 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9243
d28f9cdf
DJ
92442003-01-22 Daniel Jacobowitz <drow@mvista.com>
9245
9246 Original patch by Tom Tromey <tromey@cygnus.com> and
9247 Jason Molenda <jmolenda@apple.com>.
9248 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9249 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9250 * NEWS: Mention profiling.
9251 * configure.in (--enable-gdbtk): Fix typo.
9252 (--enable-profiling): New. Set PROFILE_CFLAGS.
9253 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9254 Fill in function.
9255 (profiling_state): New variable.
9256 (mcleanup_wrapper): New function.
9257 (_initialize_maint): Remove NOTYET, fix call to
9258 add_setshow_boolean_cmd for "maint set profile".
9259 * configure: Regenerated.
9260
df21e465
MH
92612003-01-21 Martin M. Hunt <hunt@redhat.com>
9262
9263 * Makefile.in (install-gdbtk): Install PNG images too.
9264
73c1f219
AC
92652003-01-21 Andrew Cagney <ac131313@redhat.com>
9266
9267 * exec.c (text_start): Delete global variable.
9268 (exec_file_attach): Make text_start local to the function.
9269 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9270 * valops.c (hand_function_call): Delete code that handles
9271 BEFORE_TEXT_END and AFTER_TEXT_END.
9272 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9273 of CALL_DUMMY_LOCATION.
9274 * gdbarch.c: Regenerate.
9275 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9276 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9277 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9278 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9279 (text_end): Delete extern declaration.
9280
eb4f72c5
AC
92812003-01-21 Andrew Cagney <ac131313@redhat.com>
9282
9283 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9284 * blockframe.c (backtrace_below_main): Move to "frame.c".
9285 (frame_chain_valid): Delete check for backtrace_below_main.
9286 (_initialize_blockframe): Delete initialization, move ``set
9287 backtrace-below-main'' command to "frame.c".
9288 (do_flush_frames_sfunc): Delete function.
9289 * frame.c: Include "command.h" and "gdbcmd.h".
9290 (frame_type_from_pc): New function.
9291 (create_new_frame): Use frame_type_from_pc.
9292 (legacy_get_prev_frame): New function.
9293 (get_prev_frame): Rewrite. When an old style frame, call
9294 legacy_get_prev_frame. Otherwize, unwind the PC first.
9295 (_initialize_frame): Add ``set backtrace-below-main'' command.
9296 * Makefile.in (frame.o): Update dependencies.
9297
778ce8cc
AC
92982003-01-19 Andrew Cagney <ac131313@redhat.com>
9299
9300 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9301 DEPRECATED_REGISTERS_INFO.
9302
01c193c8
AC
93032003-01-19 Andrew Cagney <ac131313@redhat.com>
9304
9305 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9306 Maintainers'. Update `Various Maintainers'.
9307
dedc2a2b
AC
93082003-01-19 Andrew Cagney <ac131313@redhat.com>
9309
9310 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9311 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9312 Suppress actual parameters when `-'.
9313 * gdbarch.h, gdbarch.c: Regenerate.
9314
b7261c70
AC
93152003-01-19 Andrew Cagney <ac131313@redhat.com>
9316
9317 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9318 code handling dummy frames.
9319
dbe9fe58
AC
93202003-01-19 Andrew Cagney <ac131313@redhat.com>
9321
9322 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9323 (struct frame_unwind): Add field pop.
9324 * frame.h (frame_pop): Declare.
9325 * frame.c (frame_saved_regs_pop): New function.
9326 (trad_frame_unwinder): Add frame_saved_regs_pop.
9327 (frame_pop): New function.
9328 * dummy-frame.c (dummy_frame_pop): New function.
9329 (discard_innermost_dummy): New function.
9330 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9331 (dummy_frame_unwind): Add dummy_frame_pop.
9332 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9333 * valops.c (hand_function_call): Ditto.
9334 * stack.c (return_command): Ditto.
9335
570b8f7c
AC
93362003-01-18 Andrew Cagney <ac131313@redhat.com>
9337
9338 * cris-tdep.c: Fix function declaration indentation.
9339 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9340 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9341 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9342 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9343 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9344 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9345
93462003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9347
9348 * README (Unpacking and Installation -- quick overview):
9349 Warn against ".../gdb-5.3/gdb/configure".
9350
494cca16
AC
93512003-01-18 Andrew Cagney <ac131313@redhat.com>
9352
9353 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9354 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9355 (struct frame_unwind): Declare opaque.
9356 (dummy_frame_p): Declare function.
9357 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9358 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9359 * dummy-frame.c: Include "frame-unwind.h".
9360 (dummy_frame_p): New function.
9361 (dummy_frame_unwind): New variable.
9362 * frame.c: Include "frame-unwind.h".
9363 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9364 to use the new unwind field.
9365 (set_unwind_by_pc): Delete function.
9366 (create_new_frame, get_prev_frame): Set unwind field using
9367 frame_unwind_find_by_pc.
9368 (trad_frame_unwind, trad_frame_unwinder): New variables.
9369 * frame.h (trad_frame_unwind): Declare variable.
9370 (frame_id_unwind_ftype): Delete declaration.
9371 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9372 (struct frame_unwind): Declare opaque.
9373 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9374 register_unwind with a single unwind pointer.
9375 * frame-unwind.h, frame-unwind.c: New files.
9376 * Makefile.in (SFILES): Add frame-unwind.c.
9377 (frame_unwind_h): Define.
9378 (COMMON_OBS): Add frame-unwind.o.
9379 (frame-unwind.o): Specify dependencies.
9380 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9381
4efb68b1
AC
93822003-01-18 Andrew Cagney <ac131313@redhat.com>
9383
9384 * ada-valprint.c: Eliminate PTR.
9385 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9386 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9387 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9388 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9389 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9390 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9391 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9392
a84d24ee
AC
93932003-01-17 Andrew Cagney <ac131313@redhat.com>
9394
762f08a3
AC
9395 * main.c (captured_main): Don't use PTR.
9396 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9397 * gdbtypes.c (lookup_primitive_typename): Ditto.
9398 (lookup_struct_elt_type): Ditto.
9399 * f-valprint.c (info_common_command): Ditto.
9400 (list_all_visible_commons): Ditto.
9401 * jv-typeprint.c (java_type_print_base): Ditto.
9402
a84d24ee
AC
9403 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9404 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9405 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9406 i386-interix-nat.c and i386-interix-tdep.c. Rename
9407 m68klinux-nat.c and m68klinux-tdep.c. Rename
9408 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9409 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9410 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9411 * main.c (captured_main): Use xfree, not free.
9412
c170fb60
AC
94132003-01-16 Andrew Cagney <ac131313@redhat.com>
9414
9415 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9416 ID back using a parameter.
9417 * frame.c (frame_id_unwind): Update call.
9418 (frame_saved_regs_id_unwind): Update.
9419 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9420 * dummy-frame.h (struct frame_id): Add opaque declaration.
9421 (dummy_frame_id_unwind): Update declaration.
9422
867f3898
AC
94232003-01-15 Andrew Cagney <ac131313@redhat.com>
9424
9425 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9426
40622be8 94272003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9428
40622be8 9429 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9430
ae66c1fc
EZ
94312003-01-14 Elena Zannoni <ezannoni@redhat.com>
9432
997b089a 9433 Fix PR gdb/898
ae66c1fc
EZ
9434 * breakpoint.c (until_break_command): Add new argument. Use it to
9435 decide whether to stop only at the current frame or not.
9436 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9437 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9438 call.
9439 (advance_command): New function.
9440 (_initialize_infcmd): Update help string for 'until' command.
9441 Add new 'advance' command.
9442
a04257e6
DC
94432003-01-14 David Carlton <carlton@math.stanford.edu>
9444
9445 * linespec.c (decode_line_1): Normalize comments.
9446 (set_flags): Ditto.
9447 (locate_first_half): Ditto.
9448 (decode_compound): Ditto.
9449 (symtab_from_filename): Ditto.
9450 (decode_all_digits): Ditto.
9451 (decode_dollar): Ditto.
9452 (find_methods): Ditto.
9453 (find_toplevel_char): Ditto.
9454
1bac305b
AC
94552003-01-13 Andrew Cagney <ac131313@redhat.com>
9456
9457 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9458 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9459 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9460 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9461 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9462 * language.c, language.h, m32r-tdep.c: Update copyright.
9463 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9464 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9465 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9466 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9467 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9468 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9469
25caa7a8
EZ
94702003-01-13 Elena Zannoni <ezannoni@redhat.com>
9471
9472 * stabsread.h (process_later, resolve_cfront_continuation):
9473 Obsolete.
9474 Update copyright years.
9475 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9476 Update copyright year.
9477 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9478 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9479 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9480 Update copyright year.
9481 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9482 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9483 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9484 (parse_partial_symbols): Obsolete cfront support.
9485 * stabsread.c
9486 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9487 macros.
9488 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9489 read_cfront_baseclasses, read_cfront_member_functions,
9490 resolve_cfront_continuation,read_cfront_static_fields,
9491 copy_cfront_struct_fields): Obsolete functions.
9492 (define_symbol, read_one_struct_field): Obsolete cfront support.
9493 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9494 Update Copyright year.
9495
7789c6f5
EZ
94962003-01-13 Elena Zannoni <ezannoni@redhat.com>
9497
9498 * stack.c (print_frame_info, print_stack_frame_base_stub,
9499 print_stack_frame_base, show_and_print_stack_frame_stub,
9500 show_and_print_stack_frame, print_only_stack_frame_stub,
9501 print_only_stack_frame): Delete functions.
9502 (print_stack_frame_stub): Call print_frame_info instead of
9503 print_frame_info_base.
9504 (print_frame_info_base): Rename to print_frame_info.
9505 (backtrace_command_1): Call print_frame_info, instead of
9506 print_frame_info_base.
9507 (current_frame_command): Call print_stack_frame, instead of
9508 print_only_stack_frame.
9509 (frame_command): Call print_stack_frame, instead of
9510 show_and_print_stack_frame.
9511 (up_command): Ditto.
9512 (down_command): Ditto.
9513 * frame.h (print_only_stack_frame): Delete prototype.
9514 * infrun.c (normal_stop): Call print_stack_frame, instead of
9515 show_and_print_stack_frame.
9516 * thread.c (info_threads_command): Call print_stack_frame, instead
9517 of print_only_stack_frame.
9518
3f5a3016
AC
95192003-01-13 Andrew Cagney <ac131313@redhat.com>
9520
d99ba314
AC
9521 * README (Graphical interface to GDB): Update URL. Point at
9522 gdb/links/.
9523
3f5a3016
AC
9524 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9525 version match.
9526
083ae935
DJ
95272003-01-13 Daniel Jacobowitz <drow@mvista.com>
9528
9529 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9530 lines.
9531
5365276c
DJ
95322003-01-13 Daniel Jacobowitz <drow@mvista.com>
9533
9534 * thread-db.c (attach_thread): Prototype.
9535 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9536 thread information (ti), and valid flags (th_valid, ti_valid).
9537 (attach_thread): Move target_pid_to_str call to after the thread
9538 is added to GDB's list. Initialize the cache.
9539 (thread_get_info_callback, thread_db_map_id2thr)
9540 (thread_db_get_info): New functions.
9541 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9542 (thread_db_store_registers, thread_db_thread_alive)
9543 (thread_db_get_thread_local_address): Use them.
9544 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9545 of calling error() for threads in unknown state.
9546
9547 (clear_lwpid_callback): New function.
9548 (thread_db_resume): Use it to clear the cache.
9549
9fc30b6b
DJ
95502003-01-13 Daniel Jacobowitz <drow@mvista.com>
9551
9552 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9553 (resume_callback): Remove dead code.
9554
8f871025
AC
95552003-01-13 Andrew Cagney <ac131313@redhat.com>
9556
9557 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9558 predicate.
9559 * gdbarch.h, gdbarch.c: Regenerate.
9560 * stack.c (frame_info): Only initialize the saved registers when
9561 FRAME_INIT_SAVED_REGS_P.
9562 * frame.c (frame_saved_regs_register_unwind): Assert
9563 FRAME_INIT_SAVED_REGS_P.
9564 (deprecated_generic_get_saved_register): Ditto.
9565
3f565f1e
DJ
95662003-01-13 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * source.c (openp): Squelch warning about "filename".
9569
072b1022
DJ
95702003-01-13 Daniel Jacobowitz <drow@mvista.com>
9571
9572 * source.c (openp): If the file does not exist don't necessarily
9573 search the path.
9574
973ccf8b
DJ
95752003-01-13 Daniel Jacobowitz <drow@mvista.com>
9576
9577 Fix PR gdb/872.
9578 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9579 (integer_types_same_name_p): New function.
9580 (rank_one_type): Use it.
9581 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9582
030292b7
DJ
95832003-01-13 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9586 variables.
9587 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9588 * configure.in: Add --with-sysroot.
9589 * configure: Regenerated.
9590 * main.c (gdb_sysroot): New variable.
9591 (captured_main): Initialize gdb_sysroot.
9592 * defs.h (gdb_sysroot): New extern declaration.
9593 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9594
afb5d334
MC
95952003-01-12 Michael Chastain <mec@shout.net>
9596
9597 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9598
751ceeb4
MC
95992003-01-12 Michael Chastain <mec@shout.net>
9600
9601 * top.c (print_gdb_version): Bump copyright year to 2003.
9602
94cd26f8
DC
96032003-01-12 David Carlton <carlton@bactrian.org>
9604
9605 * linespec.c (symtab_from_filename): Rename variable 's' to
9606 'file_symtab'.
9607
1ce79225
AC
96082003-01-12 Andrew Cagney <ac131313@redhat.com>
9609
9610 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9611 dummy frame.
9612 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9613
fa1fd571
AC
96142003-01-12 Andrew Cagney <ac131313@redhat.com>
9615
9616 * d10v-tdep.c: Include "gdb_assert.h".
9617 (d10v_store_return_value): Rewrite to match current interface.
9618 (d10v_extract_struct_value_address): Ditto.
9619 (d10v_extract_return_value): Ditto.
9620 (d10v_gdbarch_init): Set store_restore_value,
9621 extract_struct_value_address and extract_return_value.
9622
68b8d23e
JB
96232003-01-12 J. Brobecker <brobecker@gnat.com>
9624
9625 * hpread.c (set_namestring): New procedure replacing the
9626 SET_NAMESTRING macro.
9627 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9628 by calls to set_namestring.
9629
96302003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
9631
9632 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9633 a compilation warning.
9634 (hpread_process_one_debug_symbol): Likewise.
9635
88d262ca
DC
96362003-01-10 David Carlton <carlton@math.stanford.edu>
9637
9638 * linespec.c (decode_line_1): Rename variable 's' to
9639 'file_symtab'.
9640 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9641 (decode_dollar): Ditto.
9642 (decode_variable): Ditto.
9643 (symbol_found): Ditto.
9644
86669319
MC
96452003-01-09 Michael Chastain <mec@shout.net>
9646
9647 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9648
616a9dc4
CV
96492003-01-07 Corinna Vinschen <vinschen@redhat.com>
9650
9651 * win32-nat.c (set_process_privilege): New function.
9652 (child_attach): Call set_process_privilege() to enable the
9653 SE_DEBUG_NAME user privilege if available in process token.
9654
3269bcfa
JB
96552003-01-10 J. Brobecker <brobecker@gnat.com>
9656
9657 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9658 compilation error in the previous revision.
9659
2b0ee454
DC
96602003-01-09 David Carlton <carlton@math.stanford.edu>
9661
9662 * linespec.c: Update copyright.
9663
b3ba1b44
DJ
96642003-01-09 Daniel Jacobowitz <drow@mvista.com>
9665
9666 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9667 than inferior_ptid.
9668 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9669
4ef3f3be
AC
96702003-01-09 Andrew Cagney <ac131313@redhat.com>
9671
479ab5a0
AC
9672 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9673 Update comments.
9674 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9675 (frame_saved_regs_zalloc): Update.
9676 (frame_saved_regs_register_unwind): Update.
9677 (create_new_frame): Update.
9678 (get_prev_frame): Update.
9679 (frame_extra_info_zalloc): Update.
9680 (deprecated_get_frame_saved_regs): Update.
9681 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9682 * cris-tdep.c: Update comment.
9683
bde58177
AC
9684 * somsolib.h: Fix function indentation.
9685 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9686 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9687 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9688 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9689 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9690
4ef3f3be
AC
9691 * infrun.c (follow_fork): Use ISO C definition.
9692 * expprint.c (print_subexp): Use xfree instead of free.
9693 * charset.c: Include "gdb_string.h" instead of <string.h>.
9694 (register_iconv_charsets): Use ISO C definition.
9695 (host_charset, target_charset): Ditto.
9696 * Makefile.in (charset.o): Update dependencies.
9697 (mi-cmd-env.o): Update dependencies.
9698
1c615f7a
AC
96992003-01-08 Andrew Cagney <cagney@redhat.com>
9700
9701 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9702 get_frame_base.
9703
c9a1dc08
AC
97042003-01-08 Andrew Cagney <ac131313@redhat.com>
9705
9706 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9707 build directories. Save edited gdb output in Mbuild.log. If a
9708 build fails, remove any final GDB executable.
9709
dbad9d94
AC
97102003-01-08 Andrew Cagney <ac131313@redhat.com>
9711
9712 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9713 replacing hex constants with function names and stripping leading
9714 file name directory prefixes.
9715
8d357cca
AC
97162003-01-08 Andrew Cagney <cagney@redhat.com>
9717
9718 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9719 get_frame_base.
9720
bca02a8a
DC
97212003-01-08 David Carlton <carlton@math.stanford.edu>
9722
9723 * linespec.c (decode_line_1): Move code into decode_variable.
9724 (decode_variable): New function.
9725
7f8ab3a0
AC
97262003-01-08 Andrew Cagney <ac131313@redhat.com>
9727
9728 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9729
7b5849cc
AC
97302003-01-08 Andrew Cagney <cagney@redhat.com>
9731
9732 * cris-tdep.c (cris_frame_init_saved_regs): Use
9733 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9734 saved_regs buffer.
9735 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9736 (sh64_nofp_frame_init_saved_regs): Ditto.
9737 (sh_fp_frame_init_saved_regs): Ditto.
9738 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9739 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9740 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9741 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9742
72a5efb3
DJ
97432003-01-08 Daniel Jacobowitz <drow@mvista.com>
9744
9745 * minsyms.c (lookup_minimal_symbol): Update comment.
9746 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9747 (lookup_minimal_symbol_solib_trampoline): Likewise.
9748
11c02a10
AC
97492003-01-08 Andrew Cagney <cagney@redhat.com>
9750
aab3ea25
AC
9751 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9752 frame_relative_level.
9753
da50a4b7
AC
9754 * alpha-tdep.c: Use get_frame_extra_info.
9755 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9756 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9757 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9758 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9759
11c02a10
AC
9760 * alpha-tdep.c: Use get_next_frame.
9761 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9762 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9763 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9764 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9765 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9766 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9767 * xstormy16-tdep.c: Ditto.
8ffd9b1b 9768
1e2330ba
AC
97692003-01-07 Andrew Cagney <cagney@redhat.com>
9770
9771 * alpha-tdep.c: Use get_frame_base.
9772 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9773 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9774 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9775 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9776 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9777 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9778 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9779 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 9780
2d75187b
AC
97812003-01-07 Andrew Cagney <cagney@redhat.com>
9782
9783 * frame.c (deprecated_get_frame_context): New function.
9784 (deprecated_set_frame_context): New function.
9785 * frame.h (deprecated_get_frame_context): Declare.
9786 (deprecated_set_frame_context): Declare.
9787 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9788 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 9789
483d36b2
AC
97902003-01-07 Andrew Cagney <cagney@redhat.com>
9791
9792 * frame.c (deprecated_set_frame_next_hack): New function.
9793 (deprecated_set_frame_prev_hack): New function.
9794 * frame.h (deprecated_set_frame_next_hack): Declare.
9795 (deprecated_set_frame_prev_hack): Declare.
9796 * mcore-tdep.c (analyze_dummy_frame): Use
9797 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9798 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9799
14e91ac5
DC
98002003-01-07 David Carlton <carlton@math.stanford.edu>
9801
9802 * linespec.c (decode_line_1): Move code into decode_dollar.
9803 (decode_dollar): New function.
9804
b0c6b05c
AC
98052003-01-07 Andrew Cagney <cagney@redhat.com>
9806
9807 * arm-tdep.c (arm_init_extra_frame_info): Use
9808 deprecated_update_frame_base_hack.
9809 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9810 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9811 (fix_frame_pointer): Ditto.
9812 (mn10300_analyze_prologue): Ditto.
9813
a00a19e9
AC
98142003-01-07 Andrew Cagney <cagney@redhat.com>
9815
9816 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9817 extra_info using frame_extra_info_zalloc.
9818 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9819 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9820 (sh64_init_extra_frame_info): Ditto.
9821 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9822 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9823 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9824 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9825 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9826 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9827 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9828 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9829 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9830 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9831 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9832 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9833
9834 * mn10300-tdep.c (analyze_dummy_frame): Use
9835 deprecated_set_frame_extra_info_hack.
9836 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9837
1fb4c65b
JB
98382003-01-07 J. Brobecker <brobecker@gnat.com>
9839
9840 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9841 class is not scText. These do not define "real" procedures.
9842 (parse_partial_symbols): Likewise.
9843
9fe7d6bf
MS
98442003-01-06 Michael Snyder <msnyder@redhat.com>
9845
9846 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9847
f6c609c4
AC
98482003-01-06 Andrew Cagney <ac131313@redhat.com>
9849
9850 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9851 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9852 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9853 deprecated_frame_xmalloc_with_cleanup.
9854 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9855 deprecated_frame_xmalloc.
9856 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9857 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9858
d995ff4b
AC
98592003-01-06 Andrew Cagney <cagney@redhat.com>
9860
84dc46cb
AC
9861 * x86-64-linux-tdep.c: Include "osabi.h".
9862 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9863
d995ff4b
AC
9864 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9865
66140c26
AC
98662003-01-06 Andrew Cagney <cagney@redhat.com>
9867
9868 * MAINTAINERS (Target Instruction Set Architectures): Update
9869 arm-elf. Can be built with -Werror, has been multiarched.
9870
9871 * value.h (unpack_long): Make buffer parameter constant.
9872 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9873 * scm-lang.h (scm_parse): Ditto.
9874 * defs.h (extract_typed_address, extract_address): Ditto.
9875 (extract_long_unsigned_integer): Ditto.
9876 * inferior.h (unsigned_pointer_to_address): Ditto.
9877 (signed_pointer_to_address): Ditto.
9878 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9879 * gdbarch.h, gdbarch.c: Regenerate.
9880 * findvar.c (extract_long_unsigned_integer): Update.
9881 (extract_address): Update.
9882 (extract_typed_address): Update.
9883 (unsigned_pointer_to_address): Update.
9884 * values.c (unpack_long): Update.
9885 (unpack_double): Update.
9886 (unpack_pointer): Update.
9887 (unpack_field_as_long): Update.
9888 * d10v-tdep.c (d10v_pointer_to_address): Update.
9889 * avr-tdep.c (avr_pointer_to_address): Update.
9890 * scm-lang.c (scm_unpack): Update.
9891 * findvar.c (signed_pointer_to_address): Update.
9892
b089b3da
ML
98932003-01-06 Michal Ludvig <mludvig@suse.cz>
9894
8ffd9b1b 9895 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
9896 since it is in i386-tdep.c.
9897
aff87235
JB
98982003-01-06 J. Brobecker <brobecker@gnat.com>
9899
9900 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9901 failure introduced in the previous change.
9902
34f5e845
MC
99032003-01-05 Michael Chastain <mec@shout.net>
9904
9905 * README: Remove references to deleted remote-*.c files:
9906 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9907 remote-nrom.c, remote-os9k.c, remote-udi.c.
9908
28bcfd30
MK
99092003-01-05 Mark Kettenis <kettenis@gnu.org>
9910
9911 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9912 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9913 i386_get_longjmp_target.
9914
15a5b3ee
AC
99152003-01-05 Andrew Cagney <ac131313@redhat.com>
9916
9917 * arm-tdep.c (prologue_cache): Change to a pointer.
9918 (_initialize_arm_tdep): Allocate prologue_cache.
9919 (check_prologue_cache): Update.
9920 (save_prologue_cache): Update.
9921 (arm_gdbarch_init): Update.
9922
c263362b
DJ
99232003-01-04 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * stabsread.c (update_method_name_from_physname): Call complaint()
9926 instead of error.
9927
51603483
DJ
99282003-01-04 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9931 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9932 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9933
9934 * blockframe.c: Include "gdbcmd.h" and "command.h".
9935 (backtrace_below_main): New variable.
9936 (file_frame_chain_valid, func_frame_chain_valid)
9937 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9938 (generic_func_frame_chain_valid): Remove functions.
9939 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9940 (_initialize_blockframe): New function.
9941 * Makefile.in (blockframe.o): Update dependencies.
9942 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9943 comment. Call frame_chain_valid ().
9944 * frame.h: Remove old prototypes. Add prototype for
9945 frame_chain_valid and update comments to match.
9946 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9947 Remove old comment.
9948 * gdbarch.h: Regenerated.
9949 * gdbarch.c: Regenerated.
9950
9951 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9952 set_gdbarch_frame_chain_valid.
9953 * avr-tdep.c (avr_gdbarch_init): Likewise.
9954 * cris-tdep.c (cris_gdbarch_init): Likewise.
9955 * frv-tdep.c (frv_gdbarch_init): Likewise.
9956 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9957 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9958 (i386_nw_init_abi): Likewise.
9959 (i386_gdbarch_init): Likewise.
9960 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9962 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9963 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9964 * mips-tdep.c (mips_gdbarch_init): Likewise.
9965 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9966 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9967 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9968 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9969 * s390-tdep.c (s390_gdbarch_init): Likewise.
9970 * sh-tdep.c (sh_gdbarch_init): Likewise.
9971 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9972 * v850-tdep.c (v850_gdbarch_init): Likewise.
9973 * vax-tdep.c (vax_gdbarch_init): Likewise.
9974 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9975
9976 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9977 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9978 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9979 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9980 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9981 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9982 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9983 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9984
b00a8037
DJ
99852002-01-04 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * Makefile.in (acconfig_h): Remove incorrect macro.
9988 (config_h): Define.
9989 (osabi.o): Update dependencies.
9990 * configure.tgt: Set gdb_osabi based on target triplet.
9991 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9992 * configure: Regenerated.
9993 * config.in: Regenerated.
9994 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9995 (GDB_OSABI_DEFAULT): Define if not already defined.
9996 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9997 (set_osabi_string): New variables.
9998 (gdbarch_register_osabi): Add new OS ABI to
9999 gdb_osabi_available_names.
10000 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10001 (set_osabi, show_osabi): New functions.
10002 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10003
4be87837
DJ
100042003-01-04 Daniel Jacobowitz <drow@mvista.com>
10005
10006 * arch-utils.c (gdbarch_info_init): Set osabi to
10007 GDB_OSABI_UNINITIALIZED.
10008 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10009 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10010 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10011 * gdbarch.c: Regenerated.
10012 * gdbarch.h: Regenerated.
10013 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10014 there's no BFD.
10015 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10016 * osabi.h (enum gdb_osabi): Move to defs.h.
10017 (gdbarch_init_osabi): Update prototype.
10018 * defs.h (enum gdb_osabi): Moved here.
10019 * Makefile.in: Update dependencies.
10020
10021 * alpha-tdep.h: Don't include "osabi.h".
10022 (struct gdbarch_tdep): Remove osabi member.
10023 * alpha-tdep.c: Include "osabi.h".
10024 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10025 iterate over arches. Update call to gdbarch_init_osabi.
10026 (alpha_dump_tdep): Don't dump osabi.
10027 * alpha-linux-tdep.c: Include "osabi.h".
10028 * alpha-osf1-tdep.c: Include "osabi.h".
10029 * alphafbsd-tdep.c: Include "osabi.h".
10030 * alphanbsd-tdep.c: Include "osabi.h".
10031
10032 * arm-tdep.h: Don't include "osabi.h".
10033 (struct gdbarch_tdep): Remove osabi member.
10034 * arm-tdep.c: Include "osabi.h".
10035 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10036 iterate over arches. Update call to gdbarch_init_osabi.
10037 (arm_dump_tdep): Don't dump osabi.
10038 * arm-linux-tdep.c: Include "osabi.h".
10039 * armnbsd-tdep.c: Include "osabi.h".
10040
10041 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10042 Update call to gdbarch_init_osabi.
10043
10044 * i386-tdep.h: Don't include "osabi.h".
10045 (struct gdbarch_tdep): Remove osabi member.
10046 * i386-tdep.c: Include "osabi.h".
10047 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10048 iterate over arches. Update call to gdbarch_init_osabi.
10049 (i386_dump_tdep): Don't dump osabi.
10050 * i386-linux-tdep.c: Include "osabi.h".
10051 * i386-sol2-tdep.c: Include "osabi.h".
10052 * i386bsd-tdep.c: Include "osabi.h".
10053 * i386gnu-tdep.c: Include "osabi.h".
10054 * i386ly-tdep.c: Include "osabi.h".
10055 * i386nbsd-tdep.c: Include "osabi.h".
10056 * i386obsd-tdep.c: Include "osabi.h".
10057
10058 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10059 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10060 check osabi when iterating over arches. Update call to
10061 gdbarch_init_osabi.
10062 (mips_dump_tdep): Don't dump osabi.
10063
10064 * ns32k-tdep.h: Don't include "osabi.h".
10065 (struct gdbarch_tdep): Remove.
10066 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10067 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10068 allocate tdep. Update call to gdbarch_init_osabi.
10069 (ns32k_dump_tdep): Remove.
10070 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10071 * ns32knbsd-tdep.c: Include "osabi.h".
10072
10073 * ppc-tdep.h: Don't include "osabi.h".
10074 (struct gdbarch_tdep): Remove osabi member.
10075 * rs6000-tdep.c: Include "osabi.h".
10076 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10077 osabi when iterating over arches. Update call to
10078 gdbarch_init_osabi.
10079 (rs6000_dump_tdep): Don't dump osabi.
10080 * ppc-linux-tdep.c: Include "osabi.h".
10081 * ppcnbsd-tdep.c: Include "osabi.h".
10082
10083 * sh-tdep.h: Don't include "osabi.h".
10084 (struct gdbarch_tdep): Remove osabi member.
10085 * sh-tdep.c: Include "osabi.h".
10086 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10087 iterate over arches. Update call to gdbarch_init_osabi.
10088 (sh_dump_tdep): Don't dump osabi.
10089 * shnbsd-tdep.c: Include "osabi.h".
10090
10091 * sparc-tdep.c: Include "osabi.h".
10092 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10093 iterate over arches. Update call to gdbarch_init_osabi.
10094 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10095 tdep structure.
10096
10097 * vax-tdep.h: Don't include "osabi.h".
10098 (struct gdbarch_tdep): Remove.
10099 * vax-tdep.c: Include "osabi.h".
10100 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10101 iterate over arches. Don't allocate tdep. Update call
10102 to gdbarch_init_osabi.
10103 (vax_dump_tdep): Remove.
10104 (_initialize_vax_tdep): Update call to gdbarch_register.
10105
a881cf8e
DJ
101062003-01-04 Daniel Jacobowitz <drow@mvista.com>
10107
10108 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10109 entirely.
10110 (breakpoint_re_set_one): Don't fetch the value for a disabled
10111 watchpoint.
10112
1e698235
DJ
101132003-01-04 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10116 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10117 (COERCE_FLOAT_TO_DOUBLE): Remove.
10118 * gdbarch.c: Regenerate.
10119 * gdbarch.h: Regenerate.
10120 * Makefile.in: Remove value_h from gdbarch_h.
10121 * valops.c (coerce_float_to_double): New variable.
10122 (default_coerce_float_to_double): Remove.
10123 (standard_coerce_float_to_double): Remove.
10124 (value_arg_coerce): Use coerce_float_to_double.
10125 (_initialize_valops): Add "set coerce-float-to-double".
10126 * value.h (default_coerce_float_to_double): Remove prototype.
10127 (standard_coerce_float_to_double): Remove prototype.
10128
10129 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10130 prototyped.
10131 * mdebugread.c (parse_symbol): Likewise.
10132 * stabsread.c (define_symbol): Mark all functions as prototyped.
10133
10134 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10135 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10136 set_gdbarch_coerce_float_to_double.
10137 * arm-tdep.c (arm_gdbarch_init): Likewise.
10138 * frv-tdep.c (frv_gdbarch_init): Likewise.
10139 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10140 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10141 * mips-tdep.c (mips_gdbarch_init): Likewise.
10142 (mips_coerce_float_to_double): Remove.
10143 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10144 (rs6000_coerce_float_to_double): Remove.
10145 * s390-tdep.c (s390_gdbarch_init): Likewise.
10146 * sh-tdep.c (sh_gdbarch_init): Likewise.
10147 (sh_coerce_float_to_double): Remove.
10148 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10149 (sparc_coerce_float_to_double): Remove.
10150 * v850-tdep.c (v850_gdbarch_init): Likewise.
10151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10152 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10153 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10154 (hppa_coerce_float_to_double): Remove prototype.
10155 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10156
f436a26a
DJ
101572003-01-04 Daniel Jacobowitz <drow@mvista.com>
10158
10159 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10160
248f8055
DJ
101612003-01-04 Daniel Jacobowitz <drow@mvista.com>
10162
10163 Suggested by Stewart Brown <sb24@avaya.com>:
10164 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10165 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10166 (c_type_print_varspec_suffix): Likewise.
10167
72cfdc76
MK
101682003-01-04 Mark Kettenis <kettenis@gnu.org>
10169
bfd260bb
MK
10170 * configure.in: Don't set and AC_SUBST SUBDIRS.
10171 * configure: Regenerated.
10172
72cfdc76
MK
10173 * configure.in: Remove code dealing with shared libraries.
10174 * Makefile.in: Remove HLDFLAGS and HLDENV.
10175 * configure: Regenerated.
10176
c8b8a898
AC
101772003-01-04 Andrew Cagney <ac131313@redhat.com>
10178
10179 * frame.c (deprecated_frame_xmalloc): New function.
10180 (deprecated_set_frame_saved_regs_hack): New function.
10181 (deprecated_set_frame_extra_info_hack): New function.
10182 * frame.h (deprecated_frame_xmalloc): Declare.
10183 (deprecated_set_frame_saved_regs_hack): Declare.
10184 (deprecated_set_frame_extra_info_hack): Declare.
10185
14abd0fb
MK
101862003-01-04 Mark Kettenis <kettenis@gnu.org>
10187
8ee53726
MK
10188 * configure.in: Move code that provides the --enable-gdbtk option
10189 right after the code that handles the --enable-tui option, and
10190 polish it somewhat.
10191 * configure: Regenerated.
10192
14abd0fb
MK
10193 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10194 AC_CHECK_FUNCS and remove the old check for pread64.
10195 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10196 * acconfig.h (_GNU_SOURCE): Add.
10197 (HAVE_PREAD64): Remove.
10198 * configure, aclocal.m4, config.in: Regenerated.
10199
b2fb4676
AC
102002003-01-03 Andrew Cagney <ac131313@redhat.com>
10201
10202 * alpha-tdep.c: Use get_frame_saved_regs.
10203 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10204 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10205 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10206 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10207 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10208
8dcde887
MK
102092003-01-03 Mark Kettenis <kettenis@gnu.org>
10210
10211 * configure.in: Remove all use of the SUBDIRS variable; add
10212 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10213 code providing the --enable-multi-ice option, and move it right in
10214 front of the code that checks whether gdbserver is supported.
10215 Polish that too.
10216 * configure: Regenerated.
10217 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10218 @SUBDIRS@.
10219
8ccd593b
AC
102202003-01-03 Andrew Cagney <cagney@redhat.com>
10221
10222 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10223 * avr-tdep.c, cris-tdep.c: Ditto.
10224 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10225 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10226
91151a06
MK
102272003-01-03 Mark Kettenis <kettenis@gnu.org>
10228
10229 * configure.in: Remove --enable-netrom option.
10230 * configure: Regenerated.
10231
8fe84d01
MK
102322003-01-03 Mark Kettenis <kettenis@gnu.org>
10233
10234 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10235 declaration for `struct re_pattern_buffer' instead.
10236 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10237
f0394be6
JB
102382003-01-03 J. Brobecker <brobecker@gnat.com>
10239
10240 * mdebugread.c (parse_symbol): Count until the stEnd matching
10241 the structure name.
10242
27e9bf90
MK
102432003-01-02 Mark Kettenis <kettenis@gnu.org>
10244
93d331ba
MK
10245 * configure.in: Remove --with-cpu option.
10246 subscripts. Remove evil changequotes here.
10247 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10248 * config.in, configure: Regenerated.
8ffd9b1b 10249
27e9bf90
MK
10250 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10251 * configure.in: Cleanup section that sources GDB and BFD configure
10252 subscripts. Remove evil changequotes here.
10253 * config.in, configure: Regenerated.
10254
50abf9e5
AC
102552003-01-02 Andrew Cagney <ac131313@redhat.com>
10256
10257 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10258 frame accessor methods.
10259 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10260 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10261 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10262 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10263 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10264 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10265 * z8k-tdep.c: Ditto.
8ffd9b1b 10266
287c1a40
MK
102672003-01-02 Mark Kettenis <kettenis@gnu.org>
10268
f5dbc56d
MK
10269 * configure.in: Remove UI_OUT configuration code.
10270 * ada-lang.c: Update assuming UI_OUT is always true.
10271 * Makefile.in (UIOUT_CFLAGS): Remove.
10272 * configure: Regenerated.
10273 * TODO: Remove blurb about elimination of -DUI_OUT.
10274
627af7ea
MK
10275 * configure.in: Move code that provides the --enable-gdbcli,
10276 --enable-gdbmi options right before the code that handles the
10277 --enable-tui option. Polish a bit.
10278 * configure: Regenerated.
10279
06825bd1
MK
10280 * configure.in: Rewrite check for GNU regex and the
10281 --without-included regex option, and move it into the "Checks for
10282 library functions" section. This makes us use the system regex
10283 again by default on systems with version 2 of the GNU C library.
10284 This was apparently broken.
10285 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10286 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10287 * config.in, configure: Regenerated.
10288
287c1a40
MK
10289 * configure.in: Move code that provides the --enable-tui option
10290 before the "Checks for libraries" section. Polish the code
10291 somewhat and set need_curses to yes if we build the TUI. Rewrite
10292 code that looks for a library providing termcap functionality to
10293 match more closely what's done in the Readline library, and move
10294 it into to the "Checks for libraries" section.
10295 * configure: Regenerated.
10296 * Makefile.in (TERMCAP): Remove variable.
10297 * config/i386/go32.mh (TERMCAP): Remove variable.
10298
684e56bf
AC
102992003-01-02 Andrew Cagney <ac131313@redhat.com>
10300
10301 * MAINTAINERS: Mention gdb_mbuild.sh.
10302 * gdb_mbuild.sh: Rewrite.
10303
e1ea1d75
MK
103042003-01-02 Mark Kettenis <kettenis@gnu.org>
10305
10306 * configure.in: Fix typo in last change.
10307 * config.in, configure: Regenerated.
10308
1b831c93
AC
103092003-01-02 Andrew Cagney <ac131313@redhat.com>
10310
10311 * valarith.c (value_binop): Delete obsolete code and comments.
10312 * configure.host: Ditto.
10313 * buildsym.h (make_blockvector): Ditto.
10314 * buildsym.c (make_blockvector): Ditto.
10315 * defs.h (enum language): Ditto.
10316 (chill_demangle): Ditto.
10317 * elfread.c (elf_symtab_read): Ditto.
10318 * dwarfread.c (CHILL_PRODUCER): Ditto.
10319 (set_cu_language): Ditto.
10320 (handle_producer): Ditto.
10321 * expprint.c (print_subexp): Ditto.
10322 * gdbtypes.c (chill_varying_type): Ditto.
10323 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10324 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10325 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10326 (chill_varying_type): Ditto.
10327 * language.h (_LANG_chill): Ditto.
10328 * language.c (binop_result_type, integral_type): Ditto.
10329 (character_type, string_type, structured_type): Ditto.
10330 (lang_bool_type, binop_type_check): Ditto.
10331 * stabsread.h (os9k_stabs): Ditto.
10332 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10333 (define_symbol, read_type, read_struct_fields): Ditto.
10334 (read_array_type, read_enum_type, read_huge_number): Ditto.
10335 (read_range_type, start_stabs): Ditto.
10336 * symfile.c (init_filename_language_table): Ditto.
10337 (add_psymbol_with_dem_name_to_list): Ditto.
10338 * symtab.c (symbol_init_language_specific): Ditto.
10339 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10340 * symtab.h (struct general_symbol_info): Ditto.
10341 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10342 * typeprint.c (typedef_print): Ditto.
10343 * utils.c (fprintf_symbol_filtered): Ditto.
10344 * valops.c (value_cast, search_struct_field, value_slice): Delete
10345 obsolete code.
10346 (varying_to_slice): Delete function.
10347 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10348 (varying_to_slice): Delete declaration.
10349 * MAINTAINERS: Update.
10350
8bb2c122
MK
103512003-01-02 Mark Kettenis <kettenis@gnu.org>
10352
97bf5e38
MK
10353 * configure.in: Reorganize "Checks for library functions section"
10354 a bit. Remove check for `btowc' and `isascii' functions.
10355 * configure: Regenerated.
10356
5ee754fc
MK
10357 * acconfig.h (_MSE_INT_H): Remove.
10358 * configure.in: Create "Checks for header files" section, and move
10359 appropriate tests there. Don't check for objlist.h, wchar.h,
10360 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10361 misdetection fix. Also add "Checks for types", "Checks for
10362 compiler characteristics" and "Checks for library functions"
10363 sections.
10364 * config.in, configure: Regenerated.
10365
8bb2c122
MK
10366 * configure.in: Create "Checks for programs" section, and move
10367 appropriate tests there.
10368
9a156167
MK
103692003-01-01 Mark Kettenis <kettenis@gnu.org>
10370
10371 * configure.in: Create "Checks for libraries" section, and move
10372 appropriate tests there. Cleanup check for wctype in libw. Use
10373 AC_SEARCH_LIBS to see whether we need libsocket.
10374 * configure: Regenerated.
10375
a80e2bcb 10376For older changes see ChangeLog-2002
c906108c
SS
10377\f
10378Local Variables:
10379mode: change-log
10380left-margin: 8
10381fill-column: 74
10382version-control: never
10383End:
This page took 0.901738 seconds and 4 git commands to generate.